diff options
author | Daniel Jacobowitz <dan@debian.org> | 2001-10-26 15:41:17 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2001-10-26 15:41:17 +0000 |
commit | 65266bcf657e1162cacfed0566d9131bc975843f (patch) | |
tree | 9bd16bbd3a91f5336b68641ad3852a994b95d128 | |
parent | 4999f141d0e5b3442306308bbc3780f209e1fd42 (diff) | |
download | gdb-65266bcf657e1162cacfed0566d9131bc975843f.tar.gz |
* arm-linux-nat.c (fill_gregset): Do not check register_valid[].
(fill_fpregset): Likewise.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-linux-nat.c | 25 |
2 files changed, 13 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59f3b360756..e05d5e50f86 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-10-24 Daniel Jacobowitz <drow@mvista.com> + + * arm-linux-nat.c (fill_gregset): Do not check register_valid[]. + (fill_fpregset): Likewise. + 2001-10-26 Orjan Friberg <orjanf@axis.com> * cris-tdep.c (constraint): Loop through the whole cris_spec_regs diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index 50368b7adc2..06dc601a7a3 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -577,26 +577,18 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno) { int regnum; for (regnum = A1_REGNUM; regnum <= PC_REGNUM; regnum++) - if (register_valid[regnum]) - read_register_gen (regnum, (char *) &(*gregsetp)[regnum]); + read_register_gen (regnum, (char *) &(*gregsetp)[regnum]); } else if (regno >= A1_REGNUM && regno <= PC_REGNUM) - { - if (register_valid[regno]) - read_register_gen (regno, (char *) &(*gregsetp)[regno]); - } + read_register_gen (regno, (char *) &(*gregsetp)[regno]); if (PS_REGNUM == regno || -1 == regno) { - if (register_valid[regno] || -1 == regno) - { - if (arm_apcs_32) - read_register_gen (PS_REGNUM, (char *) &(*gregsetp)[CPSR_REGNUM]); - else - read_register_gen (PC_REGNUM, (char *) &(*gregsetp)[PC_REGNUM]); - } + if (arm_apcs_32) + read_register_gen (PS_REGNUM, (char *) &(*gregsetp)[CPSR_REGNUM]); + else + read_register_gen (PC_REGNUM, (char *) &(*gregsetp)[PC_REGNUM]); } - } /* Fill GDB's register array with the general-purpose register values @@ -641,9 +633,8 @@ fill_fpregset (gdb_fpregset_t *fpregsetp, int regno) } /* Store fpsr. */ - if (register_valid[FPS_REGNUM]) - if (FPS_REGNUM == regno || -1 == regno) - read_register_gen (FPS_REGNUM, (char *) &fp->fpsr); + if (FPS_REGNUM == regno || -1 == regno) + read_register_gen (FPS_REGNUM, (char *) &fp->fpsr); } /* Fill GDB's register array with the floating-point register values |