mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
doc: update .lldbinit configuration for cmake builds
This commit is contained in:
parent
639279e86a
commit
3a77f13992
1 changed files with 6 additions and 2 deletions
|
@ -380,11 +380,15 @@ For `gdb` create or append to [`.gdbinit` file](https://sourceware.org/gdb/curre
|
||||||
set substitute-path ./src /path/to/project/root/src
|
set substitute-path ./src /path/to/project/root/src
|
||||||
```
|
```
|
||||||
|
|
||||||
For `lldb` create or append to [`.lldbinit` file](https://lldb.llvm.org/man/lldb.html#configuration-files):
|
For `lldb` create or append to [`~/.lldbinit` file](https://lldb.llvm.org/man/lldb.html#configuration-files):
|
||||||
```
|
```
|
||||||
settings set target.source-map ./src /path/to/project/root/src
|
settings set target.source-map /path/to/bitcoin/build/src /path/to/bitcoin/src
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that both target (`build/` or whatever directory you created with `cmake -B`)
|
||||||
|
and replacement paths must be absolute. A `.lldbinit` file in the root of the
|
||||||
|
working directory will be ignored without specific settings to include it.
|
||||||
|
|
||||||
2. Add a symlink to the `./src` directory:
|
2. Add a symlink to the `./src` directory:
|
||||||
```
|
```
|
||||||
ln -s /path/to/project/root/src src
|
ln -s /path/to/project/root/src src
|
||||||
|
|
Loading…
Add table
Reference in a new issue