This is the mail archive of the gdb-patches@sources.redhat.com 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] Don't print saved registers with no name


More cosmetic fallout from the MIPS pseudo-register handling.  Register ""
appeared many times in "info frame".

I'll commit this in a day or two.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-09-22  Daniel Jacobowitz  <drow@mvista.com>

	* stack.c (frame_info): Don't print saved registers with no name.

--- stack.c.orig	2003-09-22 12:18:58.000000000 -0400
+++ stack.c	2003-09-22 12:19:42.000000000 -0400
@@ -1079,7 +1079,7 @@
     count = 0;
     numregs = NUM_REGS + NUM_PSEUDO_REGS;
     for (i = 0; i < numregs; i++)
-      if (i != SP_REGNUM)
+      if (REGISTER_NAME (i) && REGISTER_NAME (i)[0] && i != SP_REGNUM)
 	{
 	  /* Find out the location of the saved register without
              fetching the corresponding value.  */


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