Add multiple breakpoint commands via python

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

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.

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!)