This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] stack: -b, --build-id shows module build-id, load address and pc offset.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 02 Jan 2014 21:14:28 +0100
- Subject: Re: [PATCH] stack: -b, --build-id shows module build-id, load address and pc offset.
On Mon, 23 Dec 2013 11:21:52 +0100, Mark Wielaard wrote:
[...]
> + {
> + printf ("\n [");
> + do
> + printf ("%02" PRIx8, *id++);
> + while (--id_len > 0);
> + printf ("]@0x%0" PRIx64 "+%" PRIx64, start, pc_adjusted - start);
why not:
printf ("]@0x%0" PRIx64 "+0x%" PRIx64, start, pc_adjusted - start);
> + }
Example output:
#63 0x000000000040054e bt
[dc2908a524b82c19b6f26e66803193d54d394b33]@0x400000+54d
why not:
[dc2908a524b82c19b6f26e66803193d54d394b33]@0x400000+0x54d
I would find it easier to handle by copy-pastes, for example for address
computations in GDB (or what other tool people use for computing addresseS).
Thanks,
Jan