Broken patch for a wrapping libdl
Hi Matthew,
I have a working solution for that (also based on LD_PRELOADing) as part of my base address tracing stuff.
I'm going submit the whole patch series next week (hopefully).
Best,
Paul
Quoted 27 lines · Matthew Khouzam
Hello tracing arch-wizards,
I was working a bit on a trace with the
cyg_profilestuff, and an issue that would arise is when you dynamically lync a library, you don't have it's name in the symbol tables of the executable, so you cannot nm it to have something human readable in the callstack.The easy solution is to wrap libdl, that way you get the handle of the lib i dlopen, and from that you get the function name in dlsym, it also handles seamlessly if a lib is closed, and another would replace the addresses used.
The only problem is, it doesn't work and I don't have time to get it working (in the short term).
I am posting this beginning idea to see if it generates any interest/solutions.
Hope this works out,
Matthew
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
Signature · 3 lines
Paul Woegerer, SW Development Engineer Sourcery Analyzer <http://go.mentor.com/sourceryanalyzer> Mentor Graphics, Embedded Software Division