This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Adding an auxiliary shared library to a debug session
- From: Andriy Symonovych <sima dot rv at gmail dot com>
- To: gdb <gdb at sourceware dot org>
- Date: Sun, 8 Nov 2009 13:25:51 +0200
- Subject: Adding an auxiliary shared library to a debug session
I'm trying to add some shared library to GDB session to be able to
call functions from it.
The only possible way I found is to execute program with
LD_PRELOAD=/path/to/aux/lib and attach with gdb to it's process.
Is there any another way?
I've checked documentation and found only `add-symbol-file` &
`sharedlibrary` which seem to serve another purpose.
Thanks!
-Andriy