aboutsummaryrefslogtreecommitdiff
path: root/lldb/examples/python/crashlog.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-04-11 17:03:49 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-04-11 17:05:15 -0700
commit88f409194d5ac84eb19ee91260a17c6c8b992eda (patch)
tree888c9ece2dee40bfefe82c471908130462fffdd7 /lldb/examples/python/crashlog.py
parent9d701c8a8d65a830c3d454479b13a50dcc097b57 (diff)
downloadllvm-88f409194d5ac84eb19ee91260a17c6c8b992eda.zip
llvm-88f409194d5ac84eb19ee91260a17c6c8b992eda.tar.gz
llvm-88f409194d5ac84eb19ee91260a17c6c8b992eda.tar.bz2
[lldb] Parse the crashlog only once
Now that we can pass Python objects to the scripted process instance, we don't need to parse the crashlog twice anymore. Differential revision: https://reviews.llvm.org/D148063
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index b09c03a5..68ead43 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -1111,12 +1111,17 @@ def load_crashlog_in_scripted_process(debugger, crash_log_file, options, result)
launch_info.SetProcessPluginName("ScriptedProcess")
launch_info.SetScriptedProcessClassName("crashlog_scripted_process.CrashLogScriptedProcess")
launch_info.SetScriptedProcessDictionary(structured_data)
+ launch_info.SetLaunchFlags(lldb.eLaunchFlagStopAtEntry)
+
error = lldb.SBError()
process = target.Launch(launch_info, error)
if not process or error.Fail():
raise InteractiveCrashLogException("couldn't launch Scripted Process", error)
+ process.GetScriptedImplementation().set_crashlog(crashlog)
+ process.Continue()
+
if not options.skip_status:
@contextlib.contextmanager
def synchronous(debugger):