From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: deuling@de.ibm.com (Markus Deuling)
Cc: gdb-patches@sourceware.org (GDB Patches)
Subject: Re: [patch]: Get rid of deprecated_print_address_numeric
Date: Tue, 20 May 2008 17:40:00 -0000 [thread overview]
Message-ID: <200805201521.m4KFL31Y007381@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <48313ECB.4040105@de.ibm.com> from "Markus Deuling" at May 19, 2008 10:48:11 AM
Markus Deuling wrote:
> * annotate.c (annotate_source, annotate_frame_begin): Replace
> deprecated_print_address_numeric with paddress.
> * cli/cli-cmds.c (list_command, edit_command): Likewise.
> * tui/tui-stack.c (tui_make_status_line): Likewise.
>
> * defs.h (deprecated_print_address_numeric): Remove.
> * printcmd.c (deprecated_print_address_numeric): Remove.
> * maint.c (maint_print_section_info): Fix comment.
In general, I like the idea, but I was wondering about one thing:
> @@ -418,10 +418,9 @@ annotate_source (char *filename, int lin
> else
> printf_filtered (("\032\032"));
>
> - printf_filtered (("%s:%d:%d:%s:0x"), filename,
> - line, character,
> + printf_filtered (("%s:%d:%d:%s:"), filename, line, character,
> mid ? "middle" : "beg");
> - deprecated_print_address_numeric (pc, 0, gdb_stdout);
> + fputs_filtered (paddress (pc), gdb_stdout);
> printf_filtered (("\n"));
Hmm, I guess one of the benefits of paddress is that you no longer
need to break out a single (logical) message into multiple pieces.
Something like
printf_filtered (("%s:%d:%d:%s:%s\n"), filename, line, character,
mid ? "middle" : "beg", paddress (pc));
instead of the lines above would be better.
(Even if that doesn't really matter in this particular case, in
general it is also better to use complete phrases as strings for
translation.)
Would you mind changing the patch accordingly?
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2008-05-20 15:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-19 15:18 Markus Deuling
2008-05-20 17:40 ` Ulrich Weigand [this message]
2008-05-21 15:52 ` Markus Deuling
2008-05-21 18:36 ` Ulrich Weigand
2008-05-23 16:46 ` Markus Deuling
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=200805201521.m4KFL31Y007381@d12av02.megacenter.de.ibm.com \
--to=uweigand@de.ibm.com \
--cc=deuling@de.ibm.com \
--cc=gdb-patches@sourceware.org \
/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