Matthias Hille has uploaded this change for review. ( https://gem5-review.googlesource.com/3020

Change subject: x86: Fixed remote debugging of simulated code
......................................................................

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 <[email protected]>
---
M src/arch/x86/remote_gdb.hh
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/arch/x86/remote_gdb.hh b/src/arch/x86/remote_gdb.hh
index 5696e3d..361632f 100644
--- a/src/arch/x86/remote_gdb.hh
+++ b/src/arch/x86/remote_gdb.hh
@@ -92,7 +92,7 @@
     {
       using BaseGdbRegCache::BaseGdbRegCache;
       private:
-        struct {
+        struct M5_ATTR_PACKED {
           uint64_t rax;
           uint64_t rbx;
           uint64_t rcx;

--
To view, visit https://gem5-review.googlesource.com/3020
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib2c14eb70becdac609eb4f475d5dddbd5bcc60da
Gerrit-Change-Number: 3020
Gerrit-PatchSet: 1
Gerrit-Owner: Matthias Hille <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to