[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-patches
Subject:    PATCH: Morpho Technologies register patch
From:       mark () codesourcery ! com (Mark Mitchell)
Date:       2006-04-29 1:20:00
Message-ID: 200604290119.k3T1Jwjm017061 () sethra ! codesourcery ! com
[Download RAW message or body]


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)
        {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic