Cannot get mac os x lldb process to read the STDIN

后端 未结 1 1958
小鲜肉
小鲜肉 2021-02-12 10:30

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?

reading the instructions there

相关标签:
1条回答
  • 2021-02-12 11:06
    (lldb) process launch -i <file>
    

    Should do the trick. Note you can't say:

    (lldb) run -i <file>
    

    since run is an alias for process launch -- so all its arguments are passed to the process being launched.

    There's a general "help" facility that can show you more about all the lldb commands.

    (lldb) help process launch
    

    would have shown you this option.

    0 讨论(0)
提交回复
热议问题