diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-04-09 21:16:05 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-04-09 21:16:05 +0000 |
commit | 18bbbd9e520fd6ca95092a871fa1f9629e7b53ad (patch) | |
tree | 2dff0f94e561140933eb1d9004eaa0b6c3f2ead4 /gdb/amd64-linux-nat.c | |
parent | 3c30bf1b019bd0d3cda3e6414f0861a6fddb9257 (diff) | |
download | gdb-18bbbd9e520fd6ca95092a871fa1f9629e7b53ad.zip gdb-18bbbd9e520fd6ca95092a871fa1f9629e7b53ad.tar.gz gdb-18bbbd9e520fd6ca95092a871fa1f9629e7b53ad.tar.bz2 |
* amd64-linux-nat.c (fetch_inferior_registers): Correctly check
whether a register is supplied by PTRACE_GETFPREGS.
(store_inferior_registers): Likewise.
* amd64bsd-nat.c (fetch_inferior_registers): Correctly check
whether a register is supplied by PT_GETFPREGS.
(store_inferior_registers): Likewise.
Diffstat (limited to 'gdb/amd64-linux-nat.c')
-rw-r--r-- | gdb/amd64-linux-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index 72aa73c..ab4725e 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -169,7 +169,7 @@ fetch_inferior_registers (int regnum) return; } - if (regnum == -1 || regnum >= AMD64_ST0_REGNUM) + if (regnum == -1 || !amd64_native_gregset_supplies_p (regnum)) { elf_fpregset_t fpregs; @@ -210,7 +210,7 @@ store_inferior_registers (int regnum) return; } - if (regnum == -1 || regnum >= AMD64_ST0_REGNUM) + if (regnum == -1 || !amd64_native_gregset_supplies_p (regnum)) { elf_fpregset_t fpregs; |