Skip to content

Commit db94213

Browse files
authored
[lldb/crashlog] Fix test failure when creating a target using command options (#91653)
This should fix the various crashlog test failures on the bots: ``` lldb-shell :: ScriptInterpreter/Python/Crashlog/app_specific_backtrace_crashlog.test lldb-shell :: ScriptInterpreter/Python/Crashlog/interactive_crashlog_json.test lldb-shell :: ScriptInterpreter/Python/Crashlog/interactive_crashlog_legacy.test lldb-shell :: ScriptInterpreter/Python/Crashlog/last_exception_backtrace_crashlog.test lldb-shell :: ScriptInterpreter/Python/Crashlog/skipped_status_interactive_crashlog.test ``` When we create a target by using the command option, we don't set it in the crashlog object which later on cause us to fail loading the images. rdar://127832961 Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 99f45b4 commit db94213

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/examples/python/crashlog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,7 @@ def load_crashlog_in_scripted_process(debugger, crashlog_path, options, result):
14941494
raise InteractiveCrashLogException(
14951495
"couldn't create target provided by the user (%s)" % options.target_path
14961496
)
1497+
crashlog.target = target
14971498

14981499
# 2. If the user didn't provide a target, try to create a target using the symbolicator
14991500
if not target or not target.IsValid():

0 commit comments

Comments
 (0)