From: Michal Ludvig <mludvig@suse.cz>
To: Brian Taylor <briant@model.com>
Cc: gdb-patches@sources.redhat.com, Andrew Cagney <ac131313@redhat.com>
Subject: [RFC] Re: Proposed fix to gdb for printing 64-bit addresses
Date: Tue, 07 May 2002 06:19:00 -0000 [thread overview]
Message-ID: <3CD7D446.5020800@suse.cz> (raw)
In-Reply-To: <3CCD8E01.2020500@model.com>
Hi,
unfortunately this produces quite ugly output on x86-64 where the
debugged code usually lives on low addresses and thus the PC is
prepended with a long string of zeros. Now:
#0 0x00000000004000d3 in cpyptrs () at dwarf.c:11
#1 0x00000000004000f8 in func () at dwarf.c:19
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
Than there is no need for different handling of 32/64b archs.
Comments?
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz
Brian Taylor wrote:
> Problem:
> 64-bit addresses reported by 'info break' and 'backtrace' are truncated
> when debugging a 64-bit executable on AIX 4.3.
>
> ChangeLog entry:
> 2002-04-29 Brian Taylor <briant@model.com>
>
> * ui-out.c (ui_out_field_core_addr): Use the function
> 'longest_local_hex_string_custom' to format addresses > 32 bits
> wide.
>
next prev parent reply other threads:[~2002-05-07 13:19 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 ` Michal Ludvig [this message]
2002-05-07 7:56 ` [RFC] Re: Proposed fix to gdb for printing 64-bit addresses Daniel Jacobowitz
2002-05-07 8:54 ` Michal Ludvig
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=3CD7D446.5020800@suse.cz \
--to=mludvig@suse.cz \
--cc=ac131313@redhat.com \
--cc=briant@model.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