I am attempting to write a python command extension for lldb which can export the current set of breakpoints to a plist file, and restore the exported breakpoints from the file complete with conditions and commands (presumably in a new session.)
I looked over the lldb python API and searched the web (and stack overflow) but have not found answers to the following issues:
- Is there any way to get the list of breakpoint commands associated with an SBBreakpoint object via the Python API? (I overcame this issue by issuing a command line style "breakpoint list" to the HandleCommand API and parsing the results for commands - but it would be nice to be able to do it via the API.)
- Is there any way to set multiple commands on an SBBreakPoint object via the python API? The command line alternative only has an affordance for a singe line command. Other than setting an python method callback, there does not appear to be a way to set multiple lldb command line style breakpoint commands (non python) on a breakpoint object?