Source code mapping for debugger has changed since cmake #31204

issue pinheadmz openend this issue on November 1, 2024
  1. pinheadmz commented at 2:37 pm on November 1, 2024: member

    developer-notes.md says:

    1. 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.

  2. bitcoin deleted a comment on Nov 3, 2024


pinheadmz


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-01-02 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me