diff options
author | Ciro Santilli <ciro.santilli@arm.com> | 2018-11-14 00:00:01 +0000 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@arm.com> | 2018-12-03 10:43:15 +0000 |
commit | cb5479e45a9d6c3166fbee6f12bce33a64c98258 (patch) | |
tree | f91970360cf085dd6875bed94f41bc45960bbf5c /src/base/remote_gdb.hh | |
parent | 32e2157355b79af2c3b0af8429e5df3d4c7df562 (diff) | |
download | gem5-cb5479e45a9d6c3166fbee6f12bce33a64c98258.tar.xz |
base: increase the GDB buffer size dynamically
The size was not large enough for the 'G' packet on aarch64, which the
client sends to set registers.
This would lead to the stub not to be able to find the end of the input
packet and keep waiting forever.
Change-Id: Icb149f15a6c769371ebcb6ec5fbebc6170c31fc6
Reviewed-on: https://gem5-review.googlesource.com/c/14497
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/base/remote_gdb.hh')
-rw-r--r-- | src/base/remote_gdb.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/remote_gdb.hh b/src/base/remote_gdb.hh index 27b4ab488..82a1e15bc 100644 --- a/src/base/remote_gdb.hh +++ b/src/base/remote_gdb.hh @@ -171,7 +171,7 @@ class BaseRemoteGDB uint8_t getbyte(); void putbyte(uint8_t b); - int recv(char *data, int len); + void recv(std::vector<char> &bp); void send(const char *data); /* |