Currently, lldb crashes when adding a stop hook with --shlib because we unconditionally use the target in SymbolContextSpecifier::AddSpecification. This patch prevents the crash and add a test. rdar://68524781 Differential revision: https://reviews.llvm.org/D123746
5 lines
230 B
Plaintext
5 lines
230 B
Plaintext
# RUN: %clang_host -g %S/Inputs/main.c -o %t
|
|
# RUN: %lldb -b -o 'target stop-hook add --name test --shlib test -o "p 95000 + 126"' -o 'file %t' -o 'b main' -o 'r' 2>&1 | FileCheck %s
|
|
# CHECK: Stop hook #1 added
|
|
# CHECK-NOT: 95126
|