Fix regset numbering.
This commit is contained in:
parent
8013444f97
commit
0fbc10f791
@ -1,3 +1,8 @@
|
||||
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*.
|
||||
|
@ -270,24 +270,19 @@ fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
|
||||
{
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user