Files
llvm-project/lldb/test/Shell/Breakpoint/source-regex-missing-source.test
Jonas Devlieghere ce1b12ee08 [lldb] Iterate over a copy of the ModuleList in SearchFilter (#189009)
Avoid a potential deadlock caused by the search filter callback
acquiring the target's module lock by iterating over a copy of the list.

Fixes #188766
2026-03-27 15:41:14 -05:00

12 lines
348 B
Plaintext

# Test that setting a source regex breakpoint doesn't deadlock when the source
# file has been deleted after compilation.
# RUN: cp %p/Inputs/main.c %t.c
# RUN: %clang_host -g -o %t %t.c
# RUN: rm %t.c
# RUN: %lldb -b -o "br set -p any" %t 2>&1 | FileCheck %s
# CHECK: Breakpoint 1: no locations (pending).
# CHECK-NOT: error
# CHECK-NOT: assert