This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Morpho Technologies register patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]