[all-commits] [llvm/llvm-project] d5f547: Add SBDebugger::GetSetting() public APIs

jeffreytan81 via All-commits all-commits at lists.llvm.org
Sun Sep 11 20:50:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5f54751048b59cc101125e03dabc57536fc1d2d
      https://github.com/llvm/llvm-project/commit/d5f54751048b59cc101125e03dabc57536fc1d2d
  Author: Jeffrey Tan <jeffreytan at fb.com>
  Date:   2022-09-11 (Sun, 11 Sep 2022)

  Changed paths:
    M lldb/bindings/interface/SBDebugger.i
    M lldb/include/lldb/API/SBDebugger.h
    M lldb/include/lldb/Core/UserSettingsController.h
    M lldb/include/lldb/Interpreter/OptionValue.h
    M lldb/include/lldb/Interpreter/OptionValueArray.h
    M lldb/include/lldb/Interpreter/OptionValueBoolean.h
    M lldb/include/lldb/Interpreter/OptionValueChar.h
    M lldb/include/lldb/Interpreter/OptionValueDictionary.h
    M lldb/include/lldb/Interpreter/OptionValueFileSpec.h
    M lldb/include/lldb/Interpreter/OptionValueFormat.h
    M lldb/include/lldb/Interpreter/OptionValueFormatEntity.h
    M lldb/include/lldb/Interpreter/OptionValueLanguage.h
    M lldb/include/lldb/Interpreter/OptionValuePathMappings.h
    M lldb/include/lldb/Interpreter/OptionValueProperties.h
    M lldb/include/lldb/Interpreter/OptionValueRegex.h
    M lldb/include/lldb/Interpreter/OptionValueSInt64.h
    M lldb/include/lldb/Interpreter/OptionValueString.h
    M lldb/include/lldb/Interpreter/OptionValueUInt64.h
    M lldb/include/lldb/Interpreter/OptionValueUUID.h
    M lldb/include/lldb/Target/PathMappingList.h
    M lldb/source/API/SBDebugger.cpp
    M lldb/source/Core/UserSettingsController.cpp
    M lldb/source/Interpreter/OptionValueArray.cpp
    M lldb/source/Interpreter/OptionValueDictionary.cpp
    M lldb/source/Interpreter/OptionValueFormat.cpp
    M lldb/source/Interpreter/OptionValueFormatEntity.cpp
    M lldb/source/Interpreter/OptionValueLanguage.cpp
    M lldb/source/Interpreter/OptionValuePathMappings.cpp
    M lldb/source/Interpreter/OptionValueProperties.cpp
    M lldb/source/Target/PathMappingList.cpp
    M lldb/test/API/commands/settings/TestSettings.py
    M lldb/test/API/functionalities/source-map/TestTargetSourceMap.py

  Log Message:
  -----------
  Add SBDebugger::GetSetting() public APIs

This patch adds new SBDebugger::GetSetting() API which
enables client to access settings as SBStructedData.

Implementation wise, a new ToJSON() virtual function is added to OptionValue
class so that each concrete child class can override and provides its
own JSON representation. This patch aims to define the APIs and implement
a common set of OptionValue child classes, leaving the remaining for
future patches.

This patch is used later by auto deduce source map from source line breakpoint
feature for testing generated source map entries.

Differential Revision: https://reviews.llvm.org/D133038




More information about the All-commits mailing list