+2003-05-20 Kris Warkentin <kewarken@qnx.com>
+
+ * nto-tdep.c (fetch_core_registers): Match gdb's idea of
+ regset numbering rather than our own.
+
2003-05-19 David Carlton <carlton@bactrian.org>
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
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