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?
On Thu, 18 Mar 2010 20:19:11 +0100, Doug Evans wrote:
> Having stared at both alignments, I don't see aligning the address to
> the right as being easier to read than aligning them to the left, and
> even less so.
>
> Right Aligned
>
> (gdb) i b
> Num Type Disp Enb Address What
> 2 breakpoint keep y 0x40049c in main at hello.c:6
> 3 breakpoint keep y 0x7ffff7acbe40 <printf>
> (gdb)
>
> Left Aligned
>
> (gdb) i b
> Num Type Disp Enb Address What
> 2 breakpoint keep y 0x40049c in main at hello.c:6
> 3 breakpoint keep y 0x7ffff7acbe40 <printf>
> (gdb)
I am definitely for the "Right Aligned" one and against the "Left Aligned"
one. While analyzing various crash dumps one looks for the same last three
digits (ignoring PIC/PIE different PAGE_SIZE-aligned placement). Also
sometimes sorting addresses from various sources by hand to find out the
memory layout and having to additionally re-align even the GDB dump itself is
not helpful.
Thanks,
Jan