diff options
author | Jeffrey Tan <jeffreytan@fb.com> | 2022-09-08 11:00:22 -0700 |
---|---|---|
committer | Jeffrey Tan <jeffreytan@fb.com> | 2022-09-11 20:50:03 -0700 |
commit | d5f54751048b59cc101125e03dabc57536fc1d2d (patch) | |
tree | bce86e2830eb9568ab810265eab302714dc1b5d4 /lldb/bindings | |
parent | 844f6c5d03d58e7ac0c6b838e4a7834ac575ab9b (diff) | |
download | llvm-d5f54751048b59cc101125e03dabc57536fc1d2d.tar.gz |
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
Diffstat (limited to 'lldb/bindings')
-rw-r--r-- | lldb/bindings/interface/SBDebugger.i | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/bindings/interface/SBDebugger.i b/lldb/bindings/interface/SBDebugger.i index 5d51a6ac20d2..e82ce2aa8e7c 100644 --- a/lldb/bindings/interface/SBDebugger.i +++ b/lldb/bindings/interface/SBDebugger.i @@ -225,6 +225,8 @@ public: } } + lldb::SBStructuredData GetSetting(const char *setting = nullptr); + SBError SetInputString (const char* data); |