【发布时间】:2015-04-22 00:48:55
【问题描述】:
我开始使用 LLDB 作为 GDB 的替代品。通常我可以为特定目标调用调试器
$ gdb target
(gdb) set args `python -c 'print "a"*200'`
或者,
$ gdb target
(gdb) set args $(python -c 'print "a"*200')
这意味着我可以在 shell 中调用 Python 并将其管道输出用作 GDB 中的参数。但是我不能在 LLDB 中做到这一点,即使 LLDB 在很多方面都类似于 GDB。
$ lldb target
(lldb) settings set target.run-args `python -c 'print "a"*200'`
我知道可以这样做
$ lldb target -- `python -c 'print "a"*200'`
然而,一开始我无法在不退出 LLDB 的情况下更改参数。有更好的主意吗?
谢谢!
【问题讨论】: