developer-notes.md says:
- Configure source file mapping.
For
gdbcreate or append to.gdbinitfile:set substitute-path ./src /path/to/project/root/srcFor
lldbcreate or append to.lldbinitfile:settings set target.source-map ./src /path/to/project/root/src
But I found I needed to create a .lldbinit file with these lines:
settings append target.source-map build/src/test/ /Users/matthewzipkin/Desktop/work/bitcoin/
settings 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:
(lldb) image lookup -vn ProcessMessages
1 match found in /Users/matthewzipkin/Desktop/work/bitcoin/build/src/bitcoind:
...
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.