diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-03-02 15:58:59 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-03-02 15:58:59 +0000 |
commit | e9ff708b9b63638bd9dfa404bc8ab403c1dc7402 (patch) | |
tree | c6672518e7a9d0938eb307164d8ccce5a2e526d6 /gdb/amd64-nat.c | |
parent | d4715e41adbde61d0492f7f5e28c47cf655d24e1 (diff) | |
download | gdb-e9ff708b9b63638bd9dfa404bc8ab403c1dc7402.zip gdb-e9ff708b9b63638bd9dfa404bc8ab403c1dc7402.tar.gz gdb-e9ff708b9b63638bd9dfa404bc8ab403c1dc7402.tar.bz2 |
2004-03-02 Andrew Cagney <cagney@redhat.com>
* i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
trailing comma and redundant assignment of I386_ST0_REGNUM.
* amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
32-bit segment registers.
Diffstat (limited to 'gdb/amd64-nat.c')
-rw-r--r-- | gdb/amd64-nat.c | 6 |
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) |