This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Why does ui_out_field_core_addr pad with leading zeroes?
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Doug Evans <dje at google dot com>
- Date: Thu, 18 Mar 2010 17:47:29 +0000
- Subject: Re: [RFC] Why does ui_out_field_core_addr pad with leading zeroes?
- References: <20100318173015.6765784413@ruffy.mtv.corp.google.com>
On Thursday 18 March 2010 17:30:15, Doug Evans wrote:
> I couldn't find an explanation of why ui_out_field_core_addr pads
> the address with leading zeroes.
>
> Does anyone know?
Personally, I find that zeros on the left serve as
a hint at the largest possible address width in
the architecture. That'd be my educated guess.
It also aids visual alignment I suppose. Try also adding
a breakpoint in a shared library in your example,
and redoing `info break'. The column is presently
aligned left. I suspect it won't look as neat after
your patch.
--
Pedro Alves