[Ltrace-devel] [RFC] add xtensa architecture support to ltrace

Max Filippov jcmvbkbc at gmail.com
Thu Jun 19 14:05:11 UTC 2014


Hi Petr,

On Thu, Jun 19, 2014 at 5:15 PM, Petr Machata <pmachata at redhat.com> wrote:
> - From the updated token, you figure out what the address is where the
>   symbol got resolved ("final address" below), and store it at struct
>   breakpoint.arch.  Then you undo what the dynamic linker did
>   ("unresolve" the token).

Cool. Somehow I haven't thought about such unresolving. Thanks!

[...]

> - Or yet simpler, do the on_return thing from previous paragraph, figure
>   out the final address, and then just relocate the breakpoint there.
>   In addition to the disadvantage above, this one also can't distinguish
>   local calls from PLT ones (except for the first one).  If I recall
>   correctly, this is what the MIPS backend does.

That's what I've implemented for xtensa now, but yes, I'll do the full
thing for v2.

-- 
Thanks.
-- Max



More information about the Ltrace-devel mailing list