From: Mark Kettenis Date: Fri, 9 Apr 2004 21:16:05 +0000 (+0000) Subject: * amd64-linux-nat.c (fetch_inferior_registers): Correctly check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18bbbd9e520fd6ca95092a871fa1f9629e7b53ad;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 33973e24a0f..00e56529eb5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2004-04-09 Mark Kettenis + * 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 72aa73ccd3d..ab4725e1dd6 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 777fd690b39..02f4d581321 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;