[Ltrace-devel] Getting prototypes from debug information
Dima Kogan
lists at dima.secretsauce.net
Wed May 21 10:55:45 UTC 2014
Petr Machata <pmachata at redhat.com> writes:
> Dima Kogan <lists at dima.secretsauce.net> writes:
>
>> Petr Machata <pmachata at redhat.com> writes:
>>
>>> I understand what's happening. In proc.c, you look at
>>> proc->leader->dwfl, and use that if it's present. If it's not, you
>>> create a new one. But then you only store it at lib->dwfl, never at
>>> proc->leader->dwfl. Only when -w is active is proc->leader->dwfl
>>> actually initialized, in which case the duplication scenario does occur.
>>
>> Hmmm. I still don't see the duplication. Have you observed it?
>
> Yeah. Annotate like this:
> <snip>
Aha. Thanks for that.
Here's a commit that does what you were asking. Is this what you were
thinking?
https://github.com/dkogan/ltrace/tree/no_double_cu
More information about the Ltrace-devel
mailing list