Save Breakpoints in LLDB

How to save breakpoints in lldb? This is the function that gdb has, and I suspect lldb also has this, but I could not find it in the help.

How is this done in gdb:

Getting gdb to save a list of breakpoints?

+4
source share
2 answers

As Jim Inham said above, you currently cannot save breakpoints in lldb. However, there is work. Lldb commands can be loaded from a batch file as follows:

lldb -S <path_to_command_file> 

You can get this in your batch file:

 file <path_to_binary> breakpoint set --file file0.cc --line 22 breakpoint set --file file1.cc --line 237 

The above batch file will load the binary and set breakpoints when lldb starts.

+8
source

This is currently not possible.

+2
source

Source: https://habr.com/ru/post/1211135/


All Articles