From: Andrew Cagney <ac131313@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] exec.c: print_section_info() format string fixes
Date: Mon, 23 Dec 2002 14:50:00 -0000 [thread overview]
Message-ID: <3E0366C3.10607@redhat.com> (raw)
In-Reply-To: <1021219190121.ZM13455@localhost.localdomain>
> On 64-bit targets, I found that the values printed by print_section_info()
> were not being printed in their entirety. I've just committed the patch
> below to fix this problem.
>
> As I look at it now, I see that the FIXME comment can go. I'll zap it
> in a moment.
I don't think the problem is fixed, just improved. The 08l / 016l test
assumes that the address is <= 64 bits. Hence, I think some sort of
FIXME should remain (look for other similar cases). The bug database
contains a suggestion that a new function -
local_address_string_custom()(?) be added.
> * exec.c (print_section_info): Select a format string to use with
> local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
>
> printf_filtered (" @ %s",
> - local_hex_string_custom ((unsigned long) p->the_bfd_section->filepos, "08l"));
> + local_hex_string_custom (p->the_bfd_section->filepos, "08l"));
BTW, Is the above correct?
Andrew
next prev parent reply other threads:[~2002-12-23 22:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-19 11:44 Kevin Buettner
2002-12-23 14:50 ` Andrew Cagney [this message]
2002-12-23 15:39 ` Kevin Buettner
2002-12-23 15:53 ` Kevin Buettner
2003-01-03 21:38 ` 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=3E0366C3.10607@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@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