Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: [patch] Don't print saved registers with no name
Date: Mon, 22 Sep 2003 16:22:00 -0000	[thread overview]
Message-ID: <20030922162202.GA4953@nevyn.them.org> (raw)

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.  */


             reply	other threads:[~2003-09-22 16:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-22 16:22 Daniel Jacobowitz [this message]
2003-09-22 16:28 ` Andrew Cagney
2003-09-23 20:30   ` Daniel Jacobowitz
2003-09-23 21:23     ` Andrew Cagney
2003-09-25 16:12       ` Daniel Jacobowitz

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=20030922162202.GA4953@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@sources.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