This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Re: Proposed fix to gdb for printing 64-bit addresses
> Than there is no need for different handling of 32/64b archs.
Hmm, what interesting timing, note the patch:
http://sources.redhat.com/ml/gdb-patches/2002-05/msg00114.html
in particular:
> There are, I think, several good follow-on patches:
>
> local_address_string{,_custom}()
> to handle the address case
> Get rid of all those if (TARGET_ADDR_BIT) ... else ...
>
[I'm not the cli maintainer so it isn't my call]
I suspect it would be better to retain the current behavour - print all
TARGET_ADDR_BITs of a core address but then let the user override that
using a ``set ...'' command (like `set output-radix'). If there is a
``local_address_string()'' function then that is much easier.
Part of the intent of ui_out_field_core_addr() was to address this -
have one place determining the way that addresses were displayed so that
it could be changed uniformly across all of GDB.
Andrew