[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 17:21:33 PST 2024


jimingham wrote:

> @jimingham, thanks for the review and feedback on how to improve the code. Are you okay with us addressing this in a follow-up?
> 
> > do you know why it was done this way?
> 
> I don't think we do. I think we just copied what was done in the old ASan plugin. My guess for the original code is that there was no specific reason other than "it worked". I definitely want to follow your guidance and improve this if it has benefits (and it seems easy to do).
> 
> > survives rebuilds
> 
> I think we are fine for rebuilds. The module we are setting the breakpoint in is the ASan runtime, which doesn't get rebuilt.

Unless you happen to be working on the asan runtime...

> 
> > 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...
> 
> @usama54321 please add a FIXME/TODO in the code and file a radar to improve this (you can assign it to me)



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


More information about the lldb-commits mailing list