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 | 0fbc10f7910c8ca50019047c6365bde647b590ec (patch) | |
tree | 9fef303140ad4168df696432b6aa5966872e4618 /gdb/nto-tdep.c | |
parent | 8013444f97177b728405d77ee7eb1a4cd5bc2e3e (diff) | |
download | gdb-0fbc10f7910c8ca50019047c6365bde647b590ec.zip gdb-0fbc10f7910c8ca50019047c6365bde647b590ec.tar.gz gdb-0fbc10f7910c8ca50019047c6365bde647b590ec.tar.bz2 |
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 834daff..94f156e 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 |