aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/commands/command/script/persistence.py
blob: 9fc6b6224549240941486b79c6f09b0645b9a0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)