[all-commits] [llvm/llvm-project] 9a2e9c: Add tests for the other variants of BreakpointCrea...

jimingham via All-commits all-commits at lists.llvm.org
Mon Oct 18 10:59:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a2e9c5db692a010dd87a36907ba9d86bc54ac53
      https://github.com/llvm/llvm-project/commit/9a2e9c5db692a010dd87a36907ba9d86bc54ac53
  Author: Jim Ingham <jingham at apple.com>
  Date:   2021-10-18 (Mon, 18 Oct 2021)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/lldbutil.py
    A lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/Makefile
    A lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/TestBreakInLoadedDylib.py
    A lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/b.cpp
    A lldb/test/API/functionalities/breakpoint/break_in_loaded_dylib/main.cpp
    M lldb/test/API/functionalities/breakpoint/breakpoint_command/TestBreakpointCommandsFromPython.py
    M lldb/test/API/functionalities/breakpoint/breakpoint_command/bktptcmd.py

  Log Message:
  -----------
  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




More information about the All-commits mailing list