This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/2540: GDB needs a --sysroot command line option


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]