在bash中,我可以使用该script命令将shell上显示的所有内容转储到文件中,包括:
script
gdb中的等价物是什么?
我试图shell script从GDB内部运行,但是在我返回后,我在shell中并且丢失了shell提示符并且无法再运行命令.而且我无法使用ctrl + c或ctrl + \退出.我需要强迫杀死/bin/login tty2才能退出.
shell script
/bin/login tty2
gdb
gdb ×1