From: Andreas Schwab <schwab@suse.de>
To: Paul Pluzhnikov <ppluzhnikov@google.com>
Cc: Michael Snyder <msnyder@vmware.com>,
Eli Zaretskii <eliz@gnu.org>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [RFA] [patch] 'info symbol' to print more info
Date: Sat, 15 Nov 2008 23:35:00 -0000 [thread overview]
Message-ID: <jevduoexgo.fsf@sykes.suse.de> (raw)
In-Reply-To: <8ac60eac0811150842x78206050t435c6f8c89ddc8ae@mail.gmail.com> (Paul Pluzhnikov's message of "Sat, 15 Nov 2008 08:42:12 -0800")
Paul Pluzhnikov <ppluzhnikov@google.com> writes:
> Index: maint.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/maint.c,v
> retrieving revision 1.68
> diff -u -p -u -r1.68 maint.c
> --- maint.c 30 Oct 2008 20:35:30 -0000 1.68
> +++ maint.c 15 Nov 2008 15:01:17 -0000
> @@ -484,9 +484,19 @@ maintenance_translate_address (char *arg
> sym = lookup_minimal_symbol_by_pc (address);
>
> if (sym)
> - printf_filtered ("%s+%s\n",
> - SYMBOL_PRINT_NAME (sym),
> - pulongest (address - SYMBOL_VALUE_ADDRESS (sym)));
> + {
> + printf_filtered ("%s + %s",
> + SYMBOL_PRINT_NAME (sym),
> + pulongest (address - SYMBOL_VALUE_ADDRESS (sym)));
> + if ((sect = SYMBOL_OBJ_SECTION(sym)))
Please move the assignment out of the condition.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2008-11-15 17:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-15 16:15 Paul Pluzhnikov
2008-11-15 17:00 ` Michael Snyder
2008-11-15 17:22 ` Paul Pluzhnikov
2008-11-15 18:51 ` Michael Snyder
2008-11-15 23:16 ` Paul Pluzhnikov
2008-11-15 23:35 ` Andreas Schwab [this message]
2008-11-16 1:35 ` Eli Zaretskii
2008-11-16 1:38 ` Paul Pluzhnikov
2008-11-16 8:20 ` Joel Brobecker
2008-11-17 22:37 ` Paul Pluzhnikov
2008-11-17 23:35 ` Daniel Jacobowitz
2008-11-18 16:07 ` Paul Pluzhnikov
2008-11-18 19:55 ` Eli Zaretskii
2008-11-19 4:20 ` Joel Brobecker
2008-11-19 12:45 ` Paul Pluzhnikov
2008-11-15 17:40 ` Eli Zaretskii
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=jevduoexgo.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=msnyder@vmware.com \
--cc=ppluzhnikov@google.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