aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.c
diff options
context:
space:
mode:
authorKris Warkentin <kewarken@qnx.com>2003-05-20 21:35:28 +0000
committerKris Warkentin <kewarken@qnx.com>2003-05-20 21:35:28 +0000
commit0fbc10f7910c8ca50019047c6365bde647b590ec (patch)
tree9fef303140ad4168df696432b6aa5966872e4618 /gdb/nto-tdep.c
parent8013444f97177b728405d77ee7eb1a4cd5bc2e3e (diff)
downloadgdb-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.c13
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 *) &regset, core_reg_sect,
min (core_reg_size, sizeof (regset)));
nto_supply_gregset ((char *) &regset);
}
- else if (which == NTO_REG_FLOAT)
+ else if (which == 2)
{
memcpy ((char *) &regset, core_reg_sect,
min (core_reg_size, sizeof (regset)));
nto_supply_fpregset ((char *) &regset);
}
- else if (which == NTO_REG_ALT)
- {
- memcpy ((char *) &regset, core_reg_sect,
- min (core_reg_size, sizeof (regset)));
- nto_supply_altregset ((char *) &regset);
- }
}
void