[lldb-dev] No C++ SB API for Watchpoint callbacks?

Greg Clayton via lldb-dev lldb-dev at lists.llvm.org
Mon May 16 14:36:14 PDT 2016


We just haven't gotten to it yet. If you implement this, please do it like we do the breakpoints.

Greg Clayton

> On May 13, 2016, at 11:34 AM, Daniel Noland via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> 
> Please correct me if I have missed something critical here, but the C++
> SB API does not seem to provide a way to set callbacks to run when a
> watchpoint is hit (while SBBreakpoint and the private Watchpoint class
> does offer this functionality).
> 
> * Is this omission by design?
> * Is there another way to get similar functionality?
> * Would it be a good idea for me to contribute code which adds this
> functionality?
> 
> I read through some of the source code, and I think it would be quite
> possible to add callback functionality in a manor nearly identical to
> the SBBreakpoint implementation.
> 
> I have briefly started putting together the needed changes, but I
> thought I would check here to make sure I am solving a real problem in a
> good way before I go too far.
> 
> Thanks,
> \author{Daniel Noland}
> 
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev



More information about the lldb-dev mailing list