From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] MIPS: Add mappings for HI and LO registers
Date: Mon, 31 Mar 2003 23:11:00 -0000 [thread overview]
Message-ID: <1030331231105.ZM23361@localhost.localdomain> (raw)
I've recently submitted some gcc patches which add debug info related
mappings for the MIPS "hi" and "lo" registers. (Previously, if either of
these appeared in DWARF 2 debug output, they'd show up as -1.)
The patch below adds the corresponding code for mapping these
registers from values that'll (hopefully soon) appear in debug info to
gdb's internal register numbers.
The most recent patch on the gcc side is:
http://gcc.gnu.org/ml/gcc-patches/2003-03/msg02596.html
Okay? (If so, I'll wait for approval on the gcc side before committing
this patch.)
* mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
(mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.178
diff -u -p -r1.178 mips-tdep.c
--- mips-tdep.c 26 Mar 2003 22:39:52 -0000 1.178
+++ mips-tdep.c 31 Mar 2003 22:49:23 -0000
@@ -5573,6 +5573,10 @@ mips_stab_reg_to_regnum (int num)
return num;
else if (num >= 38 && num < 70)
return num + FP0_REGNUM - 38;
+ else if (num == 70)
+ return HI_REGNUM;
+ else if (num == 71)
+ return LO_REGNUM;
else
{
/* This will hopefully (eventually) provoke a warning. Should
@@ -5591,6 +5595,10 @@ mips_dwarf_dwarf2_ecoff_reg_to_regnum (i
return num;
else if (num >= 32 && num < 64)
return num + FP0_REGNUM - 32;
+ else if (num == 64)
+ return HI_REGNUM;
+ else if (num == 65)
+ return LO_REGNUM;
else
{
/* This will hopefully (eventually) provoke a warning. Should
next reply other threads:[~2003-03-31 23:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-31 23:11 Kevin Buettner [this message]
2003-04-02 3:36 ` Andrew Cagney
-- strict thread matches above, loose matches on Subject: below --
2003-03-04 21:17 [RFA] mips-tdep.c: Add dwarf/dwarf2 regnum mapping functions Kevin Buettner
2003-03-07 17:04 ` Andrew Cagney
2003-03-07 17:52 ` Kevin Buettner
2003-03-07 18:52 ` Andrew Cagney
2003-03-11 21:22 ` Kevin Buettner
2003-03-11 22:06 ` Andrew Cagney
2003-03-07 19:13 ` Andrew Cagney
2003-03-04 17:24 [RFA] mips-tdep.c: Fix printing of floats in "info all-registers" Kevin Buettner
2003-03-04 18:01 ` Andrew Cagney
2002-12-17 10:35 [patch/rfc] Add get_*() to rs6000-tdep.c Andrew Cagney
[not found] ` <ac131313@redhat.com>
2002-12-17 14:13 ` Kevin Buettner
2002-12-18 7:37 ` Andrew Cagney
2003-03-11 23:16 ` [RFA] mips-tdep.c: Add dwarf/dwarf2 regnum mapping functions Kevin Buettner
2003-03-11 23:18 ` [RFA] mips-tdep.c: Fix printing of floats in "info all-registers" Kevin Buettner
2003-04-02 5:13 ` [RFA] MIPS: Add mappings for HI and LO registers Kevin Buettner
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=1030331231105.ZM23361@localhost.localdomain \
--to=kevinb@redhat.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