From: Matthias Hille Date: Wed, 3 May 2017 08:42:05 +0000 (+0200) Subject: x86: Fixed remote debugging of simulated code X-Git-Tag: v19.0.0.0~2746 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b662c51632afada2f81ef130f260e6e75c54f67;p=gem5.git 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 Reviewed-on: https://gem5-review.googlesource.com/3020 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- 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;