From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: "Pierre Muller" <muller@ics.u-strasbg.fr>
Subject: Re: [RFA] ARI fix: %p rule
Date: Fri, 17 Apr 2009 13:59:00 -0000 [thread overview]
Message-ID: <200904171459.39219.pedro@codesourcery.com> (raw)
In-Reply-To: <000601c9bf26$50f53740$f2dfa5c0$@u-strasbg.fr>
On Friday 17 April 2009 07:32:43, Pierre Muller wrote:
> Most of the remaining usages of %p
> in printf family messages
> are related to pointers in the host space
> rater that target space.
>
> Thus the recommendation to use paddress
> is not correct for these cases, and I
> used host_address_to_string instead.
>
> Is this OK?
Looks okay. Thanks.
(I have a sekret itch that keeps telling me that
host_address_to_string is such a long name for this)
> Pierre Muller
> Pascal language support maintainer for GDB
>
> I left a few cases out, where
> the %p value was not a simple pointer
> but a arithmetic operation,
> I don't know the rules for C,
> is an addition of a pointer and a integer
> always of type pointer?
>
> 2009-04-17 Pierre Muller <muller.u-strasbg.fr>
>
> ARI fix: Do not use %p, replace by call to host_address_to_string
> for host pointers.
> * darwin-nat.c (darwin_xfer_partial): Apply change.
> * gnu-nat.c (inf_continue, gnu_xfer_memory): Ditto.
> * gnu-nat.h (proc_debug): Ditto.
> * symmisc.c (maintenance_info_symtabs): Ditto.
> (maintenance_info_psymtabs): Ditto.
> * windows-nat.c (handle_load_dll): Ditto.
> (handle_unload_dll, info_w32_command, handle_exception): Ditto.
> * xtensa-tdep.c (xtensa_unwind_pc): Ditto.
>
--
Pedro Alves
next prev parent reply other threads:[~2009-04-17 13:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-17 6:32 Pierre Muller
2009-04-17 13:59 ` Pedro Alves [this message]
2009-04-17 15:37 ` Joel Brobecker
2009-04-17 15:54 ` Pierre Muller
2009-04-17 16:00 ` Joel Brobecker
2009-04-17 16:05 ` Pedro Alves
2009-04-21 11:26 ` [PATCH/Obvious] Fix error in last ARI fix for gnu-nat.h Pierre Muller
2009-04-22 18:45 ` Pedro Alves
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=200904171459.39219.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=muller@ics.u-strasbg.fr \
/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