Return 调试交互式命令行程序时到 lldb 提示符
Return to lldb prompt when debugging interactive command-line program
我正在使用 lldb
调试交互式命令行程序。该程序向用户显示自己的提示(以类似于 fdisk
的方式)。
我的问题是,如何在执行程序时退出或返回 lldb
提示?
以下是我如何启动程序并到达我要询问的点:
bash$ lldb progname progarg1
(lldb) target create "progname"
Current executable set to 'progname' (x86_64).
(lldb) settings set -- target.run-args "progarg1"
(lldb) process launch
Process launched Process 29286 launched: '/home/chb/progdir/progname' (x86_64)
progname>help
Commands are:
buy: use schmeckles to buy a plumbus
lube: rub with the fleeb
...
progname>
进入程序的命令循环后,如何返回 lldb
以发出其他与 lldb
相关的命令?
在键盘上点击 Control-C 会中断程序,lldb 接管控制权。
我正在使用 lldb
调试交互式命令行程序。该程序向用户显示自己的提示(以类似于 fdisk
的方式)。
我的问题是,如何在执行程序时退出或返回 lldb
提示?
以下是我如何启动程序并到达我要询问的点:
bash$ lldb progname progarg1
(lldb) target create "progname"
Current executable set to 'progname' (x86_64).
(lldb) settings set -- target.run-args "progarg1"
(lldb) process launch
Process launched Process 29286 launched: '/home/chb/progdir/progname' (x86_64)
progname>help
Commands are:
buy: use schmeckles to buy a plumbus
lube: rub with the fleeb
...
progname>
进入程序的命令循环后,如何返回 lldb
以发出其他与 lldb
相关的命令?
在键盘上点击 Control-C 会中断程序,lldb 接管控制权。