Skip to content

Commit e3ec080

Browse files
committed
[lldb/crashlog] Fix test failure when creating a target using command options (llvm#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 <ismail@bennani.ma> (cherry picked from commit db94213)
1 parent e6fd01f commit e3ec080

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
@@ -1490,6 +1490,7 @@ def load_crashlog_in_scripted_process(debugger, crashlog_path, options, result):
14901490
raise InteractiveCrashLogException(
14911491
"couldn't create target provided by the user (%s)" % options.target_path
14921492
)
1493+
crashlog.target = target
14931494

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

0 commit comments

Comments
 (0)