aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/amd64-nat.c')
-rw-r--r--gdb/amd64-nat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c
index 1efe47a..31b3603 100644
--- a/gdb/amd64-nat.c
+++ b/gdb/amd64-nat.c
@@ -139,6 +139,12 @@ amd64_collect_native_gregset (const struct regcache *regcache,
if (regnum == -1 || regnum == i)
memset (regs + amd64_native_gregset_reg_offset (i), 0, 8);
}
+ /* Ditto for %cs, %ss, %ds, %es, %fs, and %gs. */
+ for (i = I386_CS_REGNUM; i <= I386_GS_REGNUM; i++)
+ {
+ if (regnum == -1 || regnum == i)
+ memset (regs + amd64_native_gregset_reg_offset (i), 0, 8);
+ }
}
if (num_regs > NUM_REGS)