aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-04-09 21:16:05 +0000
committerMark Kettenis <kettenis@gnu.org>2004-04-09 21:16:05 +0000
commit18bbbd9e520fd6ca95092a871fa1f9629e7b53ad (patch)
tree2dff0f94e561140933eb1d9004eaa0b6c3f2ead4 /gdb
parent3c30bf1b019bd0d3cda3e6414f0861a6fddb9257 (diff)
downloadfsf-binutils-gdb-18bbbd9e520fd6ca95092a871fa1f9629e7b53ad.zip
fsf-binutils-gdb-18bbbd9e520fd6ca95092a871fa1f9629e7b53ad.tar.gz
fsf-binutils-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')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/amd64-linux-nat.c4
-rw-r--r--gdb/amd64bsd-nat.c4
3 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 33973e2..00e5652 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2004-04-09 Mark Kettenis <kettenis@gnu.org>
+ * 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.
+
* config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
* config/i386/linux64.mt (TDEPFILES): Likewise.
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;
diff --git a/gdb/amd64bsd-nat.c b/gdb/amd64bsd-nat.c
index 777fd69..02f4d58 100644
--- a/gdb/amd64bsd-nat.c
+++ b/gdb/amd64bsd-nat.c
@@ -54,7 +54,7 @@ fetch_inferior_registers (int regnum)
return;
}
- if (regnum == -1 || regnum >= AMD64_ST0_REGNUM)
+ if (regnum == -1 || !amd64_native_gregset_supplies_p (regnum))
{
struct fpreg fpregs;
@@ -90,7 +90,7 @@ store_inferior_registers (int regnum)
return;
}
- if (regnum == -1 || regnum >= AMD64_ST0_REGNUM)
+ if (regnum == -1 || !amd64_native_gregset_supplies_p (regnum))
{
struct fpreg fpregs;