For some use cases the executable being debugged expects to find its sources relative to the current working directory ($cwd) instead of the compilation directory ($cdir).
This can happen in a couple of circumstances:
The source and executable have been moved from the location it was compiled from.
The compiler did not save the compilation directory for the given file.
The compilation directory can be examined with "info source" in the GDB debugger console.
For some use cases the executable being debugged expects to find its sources relative to the current working directory ($cwd) instead of the compilation directory ($cdir).
This can happen in a couple of circumstances:
The compilation directory can be examined with "info source" in the GDB debugger console.