From: "Kris Warkentin" <kewarken@qnx.com>
To: "Gdb-Patches@Sources.Redhat.Com" <gdb-patches@sources.redhat.com>
Subject: [patch] QNX core file reading fix
Date: Tue, 20 May 2003 21:35:00 -0000 [thread overview]
Message-ID: <0b4301c31f17$c4ada8d0$0202040a@catdog> (raw)
We were switching on our own regset numbers rather than gdb's. Applied as
obvious.
cheers,
Kris
ChangeLog:
* nto-tdep.c (fetch_core_registers): Match gdb's idea of
regset numbering rather than our own.
Index: nto-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/nto-tdep.c,v
retrieving revision 1.4
diff -u -r1.4 nto-tdep.c
--- nto-tdep.c 12 May 2003 19:11:51 -0000 1.4
+++ nto-tdep.c 20 May 2003 21:33:26 -0000
@@ -269,24 +269,19 @@
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);
}
}
reply other threads:[~2003-05-20 21:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='0b4301c31f17$c4ada8d0$0202040a@catdog' \
--to=kewarken@qnx.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox