aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/ScriptInterpreter.cpp
diff options
context:
space:
mode:
authorjimingham <jingham@apple.com>2025-07-28 15:11:22 -0700
committerGitHub <noreply@github.com>2025-07-28 15:11:22 -0700
commit4c8e79f81582a757ed4333f8ff2ad4da18bab39a (patch)
tree80f46311f5b7d23c6b06f88f4269b41be7fd520e /lldb/source/Interpreter/ScriptInterpreter.cpp
parent6bcff9eb13f226b89bb6ebc80bb0f3e80b7868f7 (diff)
downloadllvm-4c8e79f81582a757ed4333f8ff2ad4da18bab39a.zip
llvm-4c8e79f81582a757ed4333f8ff2ad4da18bab39a.tar.gz
llvm-4c8e79f81582a757ed4333f8ff2ad4da18bab39a.tar.bz2
Switch the ScriptedBreakpointResolver over to the ScriptedInterface form (#150720)
This is NFC, I'm modernizing the interface before I add to it in a subsequent commit.
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp
index ae913e6..5ee19ff 100644
--- a/lldb/source/Interpreter/ScriptInterpreter.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreter.cpp
@@ -116,6 +116,13 @@ lldb::StreamSP ScriptInterpreter::GetOpaqueTypeFromSBStream(
return nullptr;
}
+SymbolContext ScriptInterpreter::GetOpaqueTypeFromSBSymbolContext(
+ const lldb::SBSymbolContext &sb_sym_ctx) const {
+ if (sb_sym_ctx.m_opaque_up)
+ return *sb_sym_ctx.m_opaque_up.get();
+ return {};
+}
+
std::optional<MemoryRegionInfo>
ScriptInterpreter::GetOpaqueTypeFromSBMemoryRegionInfo(
const lldb::SBMemoryRegionInfo &mem_region) const {