Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Debug source lookup question

On Mon, Nov 24, 2008 at 10:50:22AM -0000, Mikhail Khodjaiants wrote:
> Daniel,
> Not sure I understand how substitute-path is used. Are the rules defined
> by substitute-path applied (in reverse) when setting a breakpoint? Are
> they used when the "full path" attribute of a stack frame is generated?

Sorry for the delay over the holidays, I almost missed this message.

Most paths you specify to GDB are where-GDB-found-the-file paths, not
what-was-in-the-debug-info paths.  So if you apply set substitute-path
to convert a missing (or incorrect) /foo/bar.c into /new/bar.c, then
/new/bar.c:100 ought to work.

Daniel Jacobowitz

Back to the top