Issue Details
- Number
- 31204
- Title
- Source code mapping for debugger has changed since cmake
- Description
- developer-notes.md says:
>1. Configure source file mapping.
>
>For `gdb` create or append to `.gdbinit` file:
>```
>set substitute-path ./src /path/to/project/root/src
>```
>
>For `lldb` create or append to `.lldbinit` file:
>```
>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.
- URL
-
https://github.com/bitcoin/bitcoin/issue/31204
- Closed by
-
Back to List