[Gammaray-interest] New plugin idea: Event inspector
Christian Gagneraud
chgans at gmail.com
Mon Sep 18 04:52:13 CEST 2017
On 18 September 2017 at 08:25, Milian Wolff <milian.wolff at kdab.com> wrote:
[...]
>>
>> I'm reading this right [1] now, it's called "Cheating the ELF -
>> Subversive Dynamic Linking to Libraries".
>> AFAIU, he's talking about manipulation of the PLT of an ELF image.
>> Which is, I think, what i would like to achieve: replace a symbol with
>> another one of my choice, and still be able to call the original
>> symbol.
>> Now, this does not seem easy....
>
> You can have a look at the heaptrack injector code, which does just that.
Yes, it is very interesting indeed, thanks for the pointer!
>
> But note that it might be a better idea to add custom trace points to Qt
> upstream at strategic points.
I agree, but at this point i don't really know what is the best way to
achieve that.
So maybe once i have some working code with a symbol injector, and the
event monitor plugin gets into shape and is deemed useful, then and
only then upstream trace point could be considered.
As a side note, having such a solution would allow to use the event
monitor on Qt version that doesn't have these trace points.
Chris
>
> Cheers
>
> --
> Milian Wolff | milian.wolff at kdab.com | Senior Software Engineer
> KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
> Tel: +49-30-521325470
> KDAB - The Qt Experts
>
>
More information about the Gammaray-interest
mailing list