[Ltrace-devel] [PATCH] Add support for using elfutils as unwinder.

Mark Wielaard mjw at redhat.com
Thu Jan 9 22:17:02 UTC 2014


On Thu, 2014-01-09 at 22:09 +0100, Petr Machata wrote:
> I meant returning e.g. -2 instead of -1 as a result, just to indicate
> that it unwound something, but had to give up.  Your solution with
> "[...]"  seems reasonable.

But that is easy to detect. We keep count of the frames unwound through
the callback. So we now print an actual error if no frames could be
unwound at all and " > [...]" otherwise.

Rebased patch attached. Also tested on an older setup where the output
is now:

echo->getenv(0x404365, 0x7fffa80e4c68, 0x7fffa80e4c78, 0) = 0
 > echo(main+0x25) [401455]
        /usr/src/debug/coreutils-8.4/src/echo.c:114
 > libc.so.6(__libc_start_main+0xfc) [33c821ed1c]
        /usr/src/debug/glibc-2.12-2-gc4ccff1/csu/libc-start.c:226
 > echo(_start+0x28) [401028]
 > [...]

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-using-elfutils-as-unwinder.patch
Type: text/x-patch
Size: 14813 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20140109/5e9645db/attachment-0001.bin>


More information about the Ltrace-devel mailing list