[PATCH] D36347: New lldb python module for adding diagnostic breakpoints
Don Hinton via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 25 16:50:22 PDT 2017
hintonda added inline comments.
================
Comment at: utils/clangdiag.py:83
+ # Remove all diag breakpoints.
+ bkpts = lldb.SBBreakpointList(target)
+ target.FindBreakpointsByName("clang::Diagnostic", bkpts)
----------------
Can't use iterator because it gets invalidated and not all breakpoints get removed. Also, `target.BreakpointDeleteByName` doesn't seem to exist, so iterated over `SBBreakpointList instead`.
https://reviews.llvm.org/D36347
More information about the cfe-commits
mailing list