From a633c5e11b4443000aa199a2df41eda4e2c6851b Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 3 Aug 2022 14:11:43 -0700 Subject: [lldb/crashlog] Add '-t|--target' option to interactive mode This patch introduces a new flag for the interactive crashlog mode, that allow the user to specify, which target to use to create the scripted process. This can be very useful when lldb already have few targets created: Instead of taking the first one (zeroth index), we will use that flag to create a new target. If the user didn't provide a target path, we will rely on the symbolicator to create a targer.If that fails and there are already some targets loaded in lldb, we use the first one. rdar://94682869 Differential Revision: https://reviews.llvm.org/D129611 Signed-off-by: Med Ismail Bennani --- .../ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/test/Shell/ScriptInterpreter/Python/Crashlog') diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test index 0c5c252..d8c9167 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/scripted_crashlog_json.test @@ -2,8 +2,8 @@ # RUN: mkdir -p %t.dir # RUN: yaml2obj %S/Inputs/interactive_crashlog/multithread-test.yaml > %t.dir/multithread-test -# RUN: %lldb %t.dir/multithread-test -o 'command script import lldb.macosx.crashlog' \ -# RUN: -o 'crashlog -a -i %S/Inputs/interactive_crashlog/multithread-test.ips' \ +# RUN: %lldb -o 'command script import lldb.macosx.crashlog' \ +# RUN: -o 'crashlog -a -i -t %t.dir/multithread-test %S/Inputs/interactive_crashlog/multithread-test.ips' \ # RUN: -o "thread list" -o "bt all" 2>&1 | FileCheck %s # CHECK: "crashlog" {{.*}} commands have been installed, use the "--help" options on these commands -- cgit v1.1