Add tests for the other variants of BreakpointCreateBySourceRegex.
authorJim Ingham <jingham@apple.com>
Sat, 16 Oct 2021 01:37:47 +0000 (18:37 -0700)
committerJim Ingham <jingham@apple.com>
Mon, 18 Oct 2021 17:59:04 +0000 (10:59 -0700)
commit9a2e9c5db692a010dd87a36907ba9d86bc54ac53
treefc71b4e313949d0384f82c013684561178f91238
parentbf32bb7e056c9174cf1cf1a4bf78a339494aed95
Add tests for the other variants of BreakpointCreateBySourceRegex.

I added some tests for the case where the breakpoints take immediately
to the extant test case, and made a new test case for when the source
regex breakpoint will be set in a dlopen-ed library.

I also noticed when doing this that "lldbutil.run_to_source_breakpoint
can't handle the case where the breakpoint will be in a dlopen-ed
library, since it requires the breakpoint to have at least 1 location
before run.  I fixed that by adding a parameter to say whether a
before run location is expected.

Differential Revision: https://reviews.llvm.org/D111920
lldb/packages/Python/lldbsuite/test/lldbutil.py
lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/Makefile [new file with mode: 0644]
lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/TestBreakInLoadedDylib.py [new file with mode: 0644]
lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/b.cpp [new file with mode: 0644]
lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/main.cpp [new file with mode: 0644]
lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py
lldb/test/API/functionalities/breakpoint/breakpoint_command/bktptcmd.py