[Lldb-commits] [lldb] [LLDB] ASanLibsanitizers Use `sanitizers_address_on_report` breakpoint (PR #84583)

via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 8 16:15:27 PST 2024


jimingham wrote:

ReportRetriever::SetupBreakpoint is a weird way to set a breakpoint.  This is somewhat off topic, but do you know why it was done this way?  You could set it by symbol & module and then you'd have something that survives rebuilds of the module, or you could set it by Address, in which case it would survive re-running, but instead it converts the Address to an addr_t - the most fragile way to set a breakpoint - and uses that...

This came up because you could (if this weren't done so oddly) handle this by having a list of candidate functions, and make a single breakpoint with all those names...

https://github.com/llvm/llvm-project/pull/84583


More information about the lldb-commits mailing list