ruslo / CGold

:whale2: The Hitchhiker’s Guide to the CMake
https://cgold.readthedocs.io
BSD 2-Clause "Simplified" License
523 stars 56 forks source link

gdb: working with debug symbols #7

Open ruslo opened 8 years ago

ruslo commented 8 years ago

Migrated from https://github.com/ruslo/hunter/issues/359#issuecomment-240917420:

gdb would require a .gdbinit file in the debugging directory with:

set substitute-path <old-build-directory>/Build <root-id>/Install

Source: https://sourceware.org/gdb/onlinedocs/gdb/Source-Path.html