[lldb-dev] Add multiple breakpoint commands via python

jingham at apple.com jingham at apple.com
Mon May 11 11:06:13 PDT 2015


That hasn't been exported to the SB layer yet.  All the clients we've had so far want to manage the breakpoint hits themselves so they add breakpoint callbacks (from C++) and then dispatch the commands by hand.  You can add a Python breakpoint callback function, you might be able to use that to run the commands.  Otherwise is shouldn't be hard to expose this functionality to the SB API's.  Either file a bug or if you feel inclined to fix it yourself that would be even better (and maybe faster!)

Jim

> On May 9, 2015, at 9:00 AM, John Sturgeon <john.sturgeon at me.com> wrote:
> 
> I am writing a python plugin to save/restore breakpoints.  I can’t seem to find a way to add debugger commands to a breakpoint.
> 
> Say I have a breakpoint with the two commands:
> po self
> continue
> 
> And I want to create a new breakpoint with the same commands, SBBreakpoint does not seem to have that facility.
> 
> Any help would be appreciated.
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev





More information about the lldb-dev mailing list