From 0fbc10f7910c8ca50019047c6365bde647b590ec Mon Sep 17 00:00:00 2001 From: Kris Warkentin Date: Tue, 20 May 2003 21:35:28 +0000 Subject: Fix regset numbering. --- gdb/nto-tdep.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'gdb/nto-tdep.c') 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 -- cgit v1.1