From: Andrew Cagney <ac131313@cygnus.com>
To: "H . J . Lu" <hjl@lucon.org>
Cc: GDB <gdb@sourceware.cygnus.com>
Subject: Re: Print 64bit address from gdb
Date: Thu, 09 Aug 2001 17:30:00 -0000 [thread overview]
Message-ID: <3B732B2A.1020304@cygnus.com> (raw)
In-Reply-To: <20010809161153.A25494@lucon.org>
> I am looking at the sign extended vma bug. The gdb output doesn't make
> any sesnes to me:
>
> During symbol reading, inner block (0x802ac9d4-0xffffffff) not inside outer block (0x802aca18-0xffffffff).
Mutter something about varargs being dangerous .... This was on a
little endian host right?
> There is
>
> struct complaint innerblock_anon_complaint =
> {"inner block (0x%lx-0x%lx) not inside outer block (0x%lx-0x%lx)", 0, 0};
>
> I don't think it works with the sign extended vma from the 64bit bfd.
> Am I right? Are we going to fix it? I guess we should pass
>
> {"inner block (0x%llx-0x%llx) not inside outer block (0x%llx-0x%llx)", 0, 0};
>
> if the address is long long.
``long long''? ``%ll''?
There are two possible fixes. Use paddr()/paddr_nz() when the message
is for debugging or is considered language independant raw value. Use
GDB's print formatting mechanism when the context is language dependant.
Looking at complaints.[hc] other than changing things to functions, is
there a robust (i.e. verifiable at complile time) way of fixing this?
Andrew
prev parent reply other threads:[~2001-08-09 17:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-09 16:11 H . J . Lu
2001-08-09 16:31 ` Daniel Jacobowitz
2001-08-10 9:41 ` H . J . Lu
2001-08-10 10:40 ` Daniel Jacobowitz
2001-08-10 11:21 ` H . J . Lu
2001-08-14 21:38 ` Elena Zannoni
2001-08-14 21:55 ` H . J . Lu
2001-08-14 22:03 ` Elena Zannoni
2001-08-14 22:06 ` H . J . Lu
2001-08-14 22:13 ` Elena Zannoni
2001-08-14 22:25 ` H . J . Lu
2001-08-09 17:30 ` Andrew Cagney [this message]
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=3B732B2A.1020304@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb@sourceware.cygnus.com \
--cc=hjl@lucon.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