diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-04-11 17:03:49 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-04-11 17:05:15 -0700 |
commit | 88f409194d5ac84eb19ee91260a17c6c8b992eda (patch) | |
tree | 888c9ece2dee40bfefe82c471908130462fffdd7 /lldb/examples/python/crashlog.py | |
parent | 9d701c8a8d65a830c3d454479b13a50dcc097b57 (diff) | |
download | llvm-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-x | lldb/examples/python/crashlog.py | 5 |
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): |