aboutsummaryrefslogtreecommitdiff
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
commit0fbc10f7910c8ca50019047c6365bde647b590ec (patch)
tree9fef303140ad4168df696432b6aa5966872e4618
parent8013444f97177b728405d77ee7eb1a4cd5bc2e3e (diff)
downloadgdb-0fbc10f7910c8ca50019047c6365bde647b590ec.zip
gdb-0fbc10f7910c8ca50019047c6365bde647b590ec.tar.gz
gdb-0fbc10f7910c8ca50019047c6365bde647b590ec.tar.bz2
Fix regset numbering.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nto-tdep.c13
2 files changed, 9 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f665a15..f848cfd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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*.
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 *) &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