Luca Clementi <[email protected]> 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

_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to