在LLDB中保存断点 [英] Save breakpoints in LLDB
本文介绍了在LLDB中保存断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在lldb中保存断点?这是一个gdb的功能,我怀疑lldb也有,但是我无法在帮助中找到它。
How can I save breakpoints in lldb? This is a feature that gdb has and I suspect that lldb has it too but I haven't been able to find it in the help.
如何在gdb中完成:
推荐答案
正如Jim Ingham上面所述,您目前无法保存断点lldb但是,有一个工作。您可以从命令文件中加载lldb命令,如下所示:
As Jim Ingham said above, you currently cannot save breakpoints in lldb. However, there is a work around. You can load lldb commands from a command file as follows:
lldb -S <path_to_command_file>
您可以在命令文件中找到:
You can have this in your command file:
file <path_to_binary>
breakpoint set --file file0.cc --line 22
breakpoint set --file file1.cc --line 237
上述命令文件将加载二进制文件,并在lldb启动时设置断点。
The above command file will load the binary and set the breakpoints when lldb starts.
这篇关于在LLDB中保存断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文