diff options
author | Kris Warkentin <kewarken@qnx.com> | 2003-05-20 21:35:28 +0000 |
---|---|---|
committer | Kris Warkentin <kewarken@qnx.com> | 2003-05-20 21:35:28 +0000 |
commit | 1abc2543bcbcb806d04473f404ef7eb12640e18c (patch) | |
tree | 36fa9fee092c8bd0bdf8b9672cc369dbdb9f695d /gdb/nto-tdep.c | |
parent | 99c53f77d9d68508157be8c74498fc4c7375e20a (diff) | |
download | gdb-1abc2543bcbcb806d04473f404ef7eb12640e18c.tar.gz |
Fix regset numbering.
Diffstat (limited to 'gdb/nto-tdep.c')
-rw-r--r-- | gdb/nto-tdep.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c index 834daff9c2d..94f156e571b 100644 --- a/gdb/nto-tdep.c +++ b/gdb/nto-tdep.c @@ -269,25 +269,20 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which, CORE_ADDR reg_addr) { nto_regset_t regset; - - if (which == NTO_REG_GENERAL) + +/* See corelow.c:get_core_registers for values of WHICH. */ + if (which == 0) { memcpy ((char *) ®set, core_reg_sect, min (core_reg_size, sizeof (regset))); nto_supply_gregset ((char *) ®set); } - else if (which == NTO_REG_FLOAT) + else if (which == 2) { memcpy ((char *) ®set, core_reg_sect, min (core_reg_size, sizeof (regset))); nto_supply_fpregset ((char *) ®set); } - else if (which == NTO_REG_ALT) - { - memcpy ((char *) ®set, core_reg_sect, - min (core_reg_size, sizeof (regset))); - nto_supply_altregset ((char *) ®set); - } } void |