This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Don't print saved registers with no name
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 22 Sep 2003 12:22:02 -0400
- Subject: [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. */