summaryrefslogtreecommitdiff
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
commit1abc2543bcbcb806d04473f404ef7eb12640e18c (patch)
tree36fa9fee092c8bd0bdf8b9672cc369dbdb9f695d /gdb/nto-tdep.c
parent99c53f77d9d68508157be8c74498fc4c7375e20a (diff)
downloadgdb-1abc2543bcbcb806d04473f404ef7eb12640e18c.tar.gz
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 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 *) &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