Linux 从shell脚本启动GDB
要开始调试,我需要执行以下步骤:Linux 从shell脚本启动GDB,linux,shell,terminal,gdb,Linux,Shell,Terminal,Gdb,要开始调试,我需要执行以下步骤: 屏幕-S gdb_程序gdb/path/to/program 处理SIGPPIPE nostop noprint pass-是gdb命令 c-是gdb命令 如何编写一个可以运行的shell脚本: ./gdb.sh 使用: #/bin/bash 屏幕-S gdb_程序gdb/path/to/program #!/bin/bash screen -S gdb_program gdb /path/to/program <<EOF handle SIGPIP
屏幕-S gdb_程序gdb/path/to/program
处理SIGPPIPE nostop noprint pass
-是gdb命令
c
-是gdb命令
如何编写一个可以运行的shell脚本:
./gdb.sh
使用:
#/bin/bash
屏幕-S gdb_程序gdb/path/to/program
#!/bin/bash
screen -S gdb_program gdb /path/to/program <<EOF
handle SIGPIPE nostop noprint pass
EOF