Skip to content

lldb python scripting: unable to show target.debug-file-search-paths value using SBDebugger::GetSetting #110756

@ZequanWu

Description

@ZequanWu

After setting target.debug-file-search-paths on command line, lldb.debugger.GetSetting("target.debug-file-search-paths") is unable to show the value, while it works for target.source-map.

$ lldb
(lldb) settings set target.debug-file-search-paths /tmp/
(lldb) settings set target.source-map /tmp/a/ /tmp/b/
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> lldb.debugger.GetSetting("target.debug-file-search-paths")
NULL
>>> lldb.debugger.GetSetting("target.source-map")
[0]:
  [0]: /tmp/a
  [1]: /tmp/b
>>> lldb.debugger.GetSetting("target")
arg0: ""
auto-apply-fixits: True
auto-import-clang-modules: True
auto-install-main-executable: True
auto-source-map-relative: True
breakpoints-use-platform-avoid-list: True
clang-module-search-paths: NULL
debug-file-search-paths: NULL

lldb version is trunk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions