developer-notes.md says:
- Configure source file mapping.
For
gdb
create or append to.gdbinit
file:0set substitute-path ./src /path/to/project/root/src
For
lldb
create or append to.lldbinit
file:0settings set target.source-map ./src /path/to/project/root/src
But I found I needed to create a .lldbinit
file with these lines:
0settings append target.source-map build/src/test/ /Users/matthewzipkin/Desktop/work/bitcoin/
1settings append target.source-map build/src/src/ /Users/matthewzipkin/Desktop/work/bitcoin/src/
Here’s an example of lldb’s confused guess of source location:
0(lldb) image lookup -vn ProcessMessages
11 match found in /Users/matthewzipkin/Desktop/work/bitcoin/build/src/bitcoind:
2...
3 LineEntry: [0x00000001003302f4-0x000000010033032c): build/src/src/net_processing.cpp:5373
Could just be fixed by updating developer-notes.md – would we ever include a .lldbinit
file in the repo itself? Or am I missing something else.