[Ltrace-devel] [PATCH v3] add library path to stack trace output when using -w

Petr Machata pmachata at redhat.com
Tue Oct 8 12:54:52 UTC 2013


Luca Clementi <luca.clementi at gmail.com> writes:

> I had the same doubt but then when I looked at the code:
>
>  $ grep -r unw_word_t include/* | grep typedef
> include/libunwind-x86_64.h:typedef uint64_t unw_word_t;
> include/libunwind-x86.h:typedef uint32_t unw_word_t;
> [...]
>
> I had the impression that this should be fine

Good point, I didn't realize this.  I wonder how this handles unwinding
64-bit processes under 32-bit tracer, but as I wrote in my previous
mail, that's not currently possible in ltrace, so your point stands.
However, I'd like to see a static assert near that code:

+       (void)sizeof(char[1 - 2*(sizeof(unw_word_t) != sizeof(arch_addr_t))]);

Thanks,
PM



More information about the Ltrace-devel mailing list