From 0fbc10f7910c8ca50019047c6365bde647b590ec Mon Sep 17 00:00:00 2001 From: Kris Warkentin Date: Tue, 20 May 2003 21:35:28 +0000 Subject: [PATCH] Fix regset numbering. --- gdb/ChangeLog | 5 +++++ gdb/nto-tdep.c | 13 ++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f665a153d6b..f848cfdc156 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-05-20 Kris Warkentin + + * nto-tdep.c (fetch_core_registers): Match gdb's idea of + regset numbering rather than our own. + 2003-05-19 David Carlton * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*. 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 *) ®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 -- 2.30.2