diff options
author | Matthias Hille <matthiashille8@gmail.com> | 2017-05-03 10:42:05 +0200 |
---|---|---|
committer | Jason Lowe-Power <jason@lowepower.com> | 2017-06-15 21:00:34 +0000 |
commit | 5b662c51632afada2f81ef130f260e6e75c54f67 (patch) | |
tree | 2e8130bb761e9d87372db076db3ceeed98819dfd /src/arch/x86/remote_gdb.hh | |
parent | 92bce5770767a7ff76c24f06b7c58b257c495aec (diff) | |
download | gem5-5b662c51632afada2f81ef130f260e6e75c54f67.tar.xz |
x86: Fixed remote debugging of simulated code
GDB breaks if more bytes are sent than the transmitted registers
actually need. Therefore the GdbRegCache struct needs to be packed to
prevent padding at the end.
Change-Id: Ib2c14eb70becdac609eb4f475d5dddbd5bcc60da
Signed-off-by: Matthias Hille <matthiashille8@gmail.com>
Reviewed-on: https://gem5-review.googlesource.com/3020
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'src/arch/x86/remote_gdb.hh')
-rw-r--r-- | src/arch/x86/remote_gdb.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/remote_gdb.hh b/src/arch/x86/remote_gdb.hh index 4a917925e..f1cbcbe8c 100644 --- a/src/arch/x86/remote_gdb.hh +++ b/src/arch/x86/remote_gdb.hh @@ -96,7 +96,7 @@ class RemoteGDB : public BaseRemoteGDB { using BaseGdbRegCache::BaseGdbRegCache; private: - struct { + struct M5_ATTR_PACKED { uint64_t rax; uint64_t rbx; uint64_t rcx; |