Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Mitchell <mark@codesourcery.com>
To: gdb-patches@sources.redhat.com
Cc: kevinb@redhat.com
Subject: PATCH: Morpho Technologies register patch
Date: Sat, 29 Apr 2006 01:20:00 -0000	[thread overview]
Message-ID: <200604290119.k3T1Jwjm017061@sethra.codesourcery.com> (raw)


I noticed that in MI mode, which the Morpho patches previously posted,
I wasn't seeing all of the registers with -data-list-register-names.
The problem was that we had hard-coded the last register number into
mt_register_name; this change updates that to use the enumeral that
actually corresponds to the last register number, rather than just
using the register that happens to be last.

I've now got three patches outstanding:

http://sources.redhat.com/ml/gdb-patches/2006-04/msg00141.html

http://sources.redhat.com/ml/gdb-patches/2006-04/msg00251.html

and this one.

Kevin, I see that you're listed as the maintainer for this port, so
I've CC'd you on this mail, in the hopes that you might have a spare
minute to look at the patches.

Thanks,

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

2006-04-28  Mark Mitchell  <mark@codesourcery.com>

	* gdb/mt-tdep.c (mt_register_name): Correct out-of-range logic to
	include additional registers. 

Index: gdb/mt-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mt-tdep.c,v
retrieving revision 1.4.2.2
diff -c -5 -p -r1.4.2.2 mt-tdep.c
*** gdb/mt-tdep.c	19 Apr 2006 04:53:13 -0000	1.4.2.2
--- gdb/mt-tdep.c	29 Apr 2006 00:34:08 -0000
*************** mt_register_name (int regnum)
*** 183,193 ****
      dim_1 = ((regnum / MT_COPRO_PSEUDOREG_REGS / MT_COPRO_PSEUDOREG_DIM_2)
  	     %  MT_COPRO_PSEUDOREG_DIM_1);
      
      if (index == MT_COPRO_PSEUDOREG_MAC_REGNUM)
        stub = register_names[MT_MAC_PSEUDOREG_REGNUM];
!     else if (index > MT_QCHANNEL_REGNUM - MT_CPR0_REGNUM)
        stub = "";
      else
        stub = register_names[index + MT_CPR0_REGNUM];
      if (!*stub)
        {
--- 183,193 ----
      dim_1 = ((regnum / MT_COPRO_PSEUDOREG_REGS / MT_COPRO_PSEUDOREG_DIM_2)
  	     %  MT_COPRO_PSEUDOREG_DIM_1);
      
      if (index == MT_COPRO_PSEUDOREG_MAC_REGNUM)
        stub = register_names[MT_MAC_PSEUDOREG_REGNUM];
!     else if (index >= MT_NUM_REGS - MT_CPR0_REGNUM)
        stub = "";
      else
        stub = register_names[index + MT_CPR0_REGNUM];
      if (!*stub)
        {


             reply	other threads:[~2006-04-29  1:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-29  1:20 Mark Mitchell [this message]
2006-05-23  4:54 ` Kevin Buettner
2006-05-23 19:24   ` Mark Mitchell

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=200604290119.k3T1Jwjm017061@sethra.codesourcery.com \
    --to=mark@codesourcery.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@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