[RFC PATCH 0/3] implement dlmopen hooks for gdb
Carlos O'Donell
carlos@redhat.com
Thu Sep 17 13:53:30 GMT 2020
On 9/17/20 8:59 AM, Florian Weimer wrote:
> * Carlos O'Donell:
>
>> You will always have .dynsym with a definition for _r_debug_dlmopen.
>
> Note that this doesn't work if you just have a core file. In order to
> find _r_debug (or _r_debug_dlmopen), a debugger needs the exact same
> copy of ld.so that was used by the executable, otherwise the symbol
> cannot be found in the image.
You are correct.
I followed up on my own email regarding this.
So in the end to get process and core file debugging we'll need:
* _r_debug_dlmopen
* DT_DEBUG_DLMOPEN
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list