bolt/deps/llvm-18.1.8/lldb/test/API/commands/command/script/persistence.py

13 lines
317 B
Python
Raw Normal View History

2025-02-14 19:21:04 +01:00
import lldb
debugger_copy = None
result_copy = None
def save_debugger(debugger, command, context, result, internal_dict):
global debugger_copy, result_copy
debugger_copy = debugger
result_copy = result
result.AppendMessage(str(debugger))
result.SetStatus(lldb.eReturnStatusSuccessFinishResult)