[Bug gdb/17934] substitute-source does not work for relative source filenames

wferi at niif dot hu sourceware-bugzilla@sourceware.org
Fri Dec 20 09:18:00 GMT 2019


Ferenc Wágner <wferi at niif dot hu> changed:

           What    |Removed                     |Added
                 CC|                            |wferi at niif dot hu

--- Comment #1 from Ferenc Wágner <wferi at niif dot hu> ---
Looks like `substitution-path` is only applied to the "compilation directory"
part, not to the "source file" (as reported by `info source`; `DW_AT_comp_dir`
and `DW_AT_name` in the dwarf info, respectively). This is rather inconvenient,
since out-of-tree recursive make builds often result in compilation directories
like `build/in/some/deep/location` paired with sources files like
`../../../../src/in/some/deep/location/file.c`, which seems impossible to
handle in this framework without creating the build directory structure for
debugging. Could this be solved without internal path simplification?

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Gdb-prs mailing list