From: Michal Ludvig <mludvig@suse.cz>
To: gdb-patches@sources.redhat.com
Subject: Re: [RFC] Re: Proposed fix to gdb for printing 64-bit addresses
Date: Tue, 07 May 2002 08:54:00 -0000 [thread overview]
Message-ID: <3CD7F89C.7050407@suse.cz> (raw)
In-Reply-To: <20020507145558.GB17670@nevyn.them.org>
Daniel Jacobowitz wrote:
> On Tue, May 07, 2002 at 03:19:02PM +0200, Michal Ludvig wrote:
>>I propose to change the format string from "016l" to just "l" so that
>>only valid digits will be printed:
>>#0 0x4000d3 in cpyptrs () at dwarf.c:11
>>#1 0x4000f8 in func () at dwarf.c:19
>
> I'd rather not do that, actually; I find it very confusing when a
> seven-digit hex number is printed (I assume it is an eight-digit one).
> It might be appropriate to print just eight digits of low 64-bit
> addresses... I don't feel too strongly about this issue, though.
So what about changing 'strcpy(addstr, local_hex_string_custom((unsigned
long) address, "016l"))' to 'sprintf(addstr, "%010p", address)' ?
This would print _at_least_ 8 digits, but wouldn't cut it down when the
number is longer.
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz
next prev parent reply other threads:[~2002-05-07 15:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-29 11:16 Proposed fix to gdb for printing 64-bit addresses on AIX Brian Taylor
2002-05-04 20:08 ` Andrew Cagney
2002-05-07 6:19 ` [RFC] Re: Proposed fix to gdb for printing 64-bit addresses Michal Ludvig
2002-05-07 7:56 ` Daniel Jacobowitz
2002-05-07 8:54 ` Michal Ludvig [this message]
2002-05-07 10:49 ` Andrew Cagney
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=3CD7F89C.7050407@suse.cz \
--to=mludvig@suse.cz \
--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