[all-commits] [llvm/llvm-project] a3c348: [lldb] Consider binary as module of last resort

Will Hawkins via All-commits all-commits at lists.llvm.org
Fri May 20 14:01:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a3c3482ceb529206b0ae4e7782e5496da5e0879d
      https://github.com/llvm/llvm-project/commit/a3c3482ceb529206b0ae4e7782e5496da5e0879d
  Author: Will Hawkins <whh8b at obs.cr>
  Date:   2022-05-20 (Fri, 20 May 2022)

  Changed paths:
    M lldb/source/Breakpoint/BreakpointResolverAddress.cpp
    M lldb/source/Commands/Options.td
    A lldb/test/API/commands/breakpoint/set/address-nomodule/Makefile
    A lldb/test/API/commands/breakpoint/set/address-nomodule/TestBreakpointAddressNoModule.py
    A lldb/test/API/commands/breakpoint/set/address-nomodule/inferior.c

  Log Message:
  -----------
  [lldb] Consider binary as module of last resort

When setting an address breakpoint using a non-section address in lldb
before having ever run the program, the binary itself is not considered
a module. As a result, the breakpoint is unresolved (and never gets
resolved subsequently).

This patch changes that behavior: as a last resort, the binary is
considered as a module when resolving a non-section address breakpoint.

Differential revision: https://reviews.llvm.org/D124731




More information about the All-commits mailing list