无法使Mac OS X LLDB进程读取STDIN [英] Cannot get mac os x lldb process to read the STDIN
问题描述
是Mac OS X的lldb还是我的lldb(替代gdb),不允许您将文件通过管道输入到stdin中,以供正在调试的进程使用?
Is it me or lldb for mac os x (replacing gdb) does not allow you to pipe a file into the stdin, to be used by the process being debugged?
阅读说明,对此没有引用.
我已经阅读并安装了gnu gdb,但是想利用我认为是经过改进的lldb功能呢?
I've gone through and installed gnu gdb, but would like to take advantage of what I suppose is improved lldb capability?
推荐答案
(lldb) process launch -i <file>
应该做到这一点.请注意,您不能说:
Should do the trick. Note you can't say:
(lldb) run -i <file>
因为run
是process launch --
的别名,所以其所有参数都传递给正在启动的进程.
since run
is an alias for process launch --
so all its arguments are passed to the process being launched.
有一个常规的帮助"功能,可以向您显示有关所有lldb命令的更多信息.
There's a general "help" facility that can show you more about all the lldb commands.
(lldb) help process launch
将向您显示此选项.
这篇关于无法使Mac OS X LLDB进程读取STDIN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!