DavidEGrayson / nixcrpkgs

Nice nix expressions for cross-compiling.
Other
136 stars 8 forks source link

mingw-w64: GDB's set substitute-path has no effect #10

Closed DavidEGrayson closed 7 years ago

DavidEGrayson commented 7 years ago

I tried to use set substitute-path ../samples/ src/angle/samples/ in GDB when debugging the ANGLE samples, but I still get the message:

../samples/hello_triangle/HelloTriangle.cpp: No such file or directory.

Process Monitor shows that GDB is not even trying to open the src/angle directory.

The show command gives the expected output:

(gdb) show substitute-path ../samples/hello_trangle/HelloTriangle.cpp
Source path substitution rule matching `../samples/hello_trangle/HelloTriangle.cpp':
  `../samples' -> `src/angle/samples'.
DavidEGrayson commented 7 years ago

I added a patch to fix this last night and also submitted it upstream:

https://sourceware.org/ml/gdb-patches/2017-02/msg00693.html