This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: gdb/2540: GDB needs a --sysroot command line option
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 21 Oct 2008 22:18:01 -0000
- Subject: Re: gdb/2540: GDB needs a --sysroot command line option
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR gdb/2540; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: psmith@gnu.org
Cc: gdb-gnats@sources.redhat.com
Subject: Re: gdb/2540: GDB needs a --sysroot command line option
Date: Tue, 21 Oct 2008 18:12:53 -0400
On Tue, Oct 21, 2008 at 09:59:56PM -0000, psmith@gnu.org wrote:
> Even if I try something like "gdb -ex 'set sysroot ...' <targ> <core>" it won't help, because GDB will internalize the executable and core before running the set sysroot command.
I think that this is the actual bug; we should have a way to run
commands before or after loading. I usually work around it with this
awkward form:
gdb -ex 'set sysroot ...' -ex 'core-file core' <targ>
--
Daniel Jacobowitz
CodeSourcery