This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Adding an auxiliary shared library to a debug session
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andriy Symonovych <sima dot rv at gmail dot com>
- Cc: gdb <gdb at sourceware dot org>
- Date: Sun, 8 Nov 2009 10:07:52 -0500
- Subject: Re: Adding an auxiliary shared library to a debug session
- References: <3be040390911080325g452d9cb2u5f7b89db263390f2@mail.gmail.com>
On Sun, Nov 08, 2009 at 01:25:51PM +0200, Andriy Symonovych wrote:
> 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?
Try using "set env"?
--
Daniel Jacobowitz
CodeSourcery