You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This ends up including extra paths not in GDB (e.g. /usr/bin/.build-id/<uuid_str>), and excluding paths that are (e.g. /usr/lib/debug/usr/bin/ls.debug). The paths are also in a different order, compared to GDB.
The text was updated successfully, but these errors were encountered:
Extended Description
See e.g. https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html
For an example file /usr/bin/ls with a debuglink file of ls.debug, the search paths should be, in order:
On FreeBSD, we use by default the 4th case from the GDB example above - /bin/ls has debug info in /usr/lib/debug/bin/ls.debug.
Adding some debug logging to Symbols::LocateExecutableSymbolFile shows the following paths being tried:
Directory /bin
Trying file /bin/ls.debug
Trying file /bin/.debug/ls.debug
Trying file /bin/.build-id/F4/DD1447000000000000000000000000.debug
Trying file /bin/bin/ls
Directory /data/emaste/src/llvm/build
Trying file /data/emaste/src/llvm/build/ls.debug
Trying file /data/emaste/src/llvm/build/.debug/ls.debug
Trying file /data/emaste/src/llvm/build/.build-id/F4/DD1447000000000000000000000000.debug
Trying file /data/emaste/src/llvm/build/bin/ls
Directory /usr/lib/debug
Trying file /usr/lib/debug/ls.debug
Trying file /usr/lib/debug/.debug/ls.debug
Trying file /usr/lib/debug/.build-id/F4/DD1447000000000000000000000000.debug
Trying file /usr/lib/debug/bin/ls
The current set of LLDB search paths is, for each of dirname in <module_dir>, , and /usr/lib/debug:
This ends up including extra paths not in GDB (e.g. /usr/bin/.build-id/<uuid_str>), and excluding paths that are (e.g. /usr/lib/debug/usr/bin/ls.debug). The paths are also in a different order, compared to GDB.
The text was updated successfully, but these errors were encountered: