解决Mac上During startup program terminated with signal SIG113, Real-time event 113.问题

在使用gdb调试过程中,run的时候遇到一个问题:

During startup program terminated with signal SIG113, Real-time event 113.

过程

编译:

gcc -g -Wall ideone_FVcyY0.c -o hello

执行报错:

(gdb) run
Starting program: /Users/ancongcong/Downloads/hello
During startup program terminated with signal SIG113, Real-time event 113.

解决

退出gdb后,在当前用户下,新增.gdbinit文件,内容如下:

set startup-with-shell off

顺利执行:

0条留言