This is the mail archive of the
mailing list for the GDB project.
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 <email@example.com>
Date: Mon, Mar 2, 2009 at 5:35 PM
Subject: Re: how to determine location of source?
To: Joel Brobecker <firstname.lastname@example.org>
On Mon, Mar 2, 2009 at 5:04 PM, Joel Brobecker <email@example.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:
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.