From 18bbbd9e520fd6ca95092a871fa1f9629e7b53ad Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 9 Apr 2004 21:16:05 +0000 Subject: * 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. --- gdb/amd64-linux-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/amd64-linux-nat.c') 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; -- cgit v1.1