This is the mail archive of the gdb@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]

Fwd: how to determine location of source?


Er, I meant to send this to the GDB list originally so I could clarify
what I'm trying to do.


---------- Forwarded message ----------
From: Brendan Miller <catphive@catphive.net>
Date: Mon, Mar 2, 2009 at 5:35 PM
Subject: Re: how to determine location of source?
To: Joel Brobecker <brobecker@adacore.com>


On Mon, Mar 2, 2009 at 5:04 PM, Joel Brobecker <brobecker@adacore.com> wrote:
> Have a look at "set substitute-path".
Right, but before I can use that I need to know what the original path
was so I can do the substitution. My binaries come from a daily build,
and I can't know what particular path the build machine made them on
without inspecting the binaries themselves.

I did read the gdb documentation here, scroll down to the Specifying
Source Directories section:
http://sourceware.org/gdb/download/onlinedocs/gdb_8.html#SEC51

which is why I was posting on the list, because the documentation is
incomplete, or maybe I just missed something. It says that GDB
inspects the source path embeded in the binary, but I can't find where
it says how the user can do it.


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