Solaris GDB: Howto pause execution?

徘徊边缘 提交于 2019-11-30 20:34:37

Just found a workaround. From another terminal give the following command:

kill -INT 1521

GDB will pause execution upon the debugged program receiving the SIGINT.

This would be a bug in GDB.

If you can reproduce this with the current version of GDB from CVS Head, please file a bug.

RandomNickName42

As you ar using Solaris, and I see you're using bash, you're probably not setting your terminal up properly, bash often can handle a lot of this for you but if you were in ksh or something, your backspace may be printing ^H instead of backspacing (in that case you need stty erase '^H'... you can always set your console with stty sane.

A likely problem here, which is not a bug, is that the app you're debugging, is resetting your termnial, I'm not on a Solaris box right now, but the GNU stty allow's you to do something like stty tostop,

  • [-]tostop stop background jobs that try to write to the terminal

You can also run reset or tset from another terminal and re-configure your ^C

from inside gdb, you can use the "tty" alias or set inferior-tty /path/to/term

Set terminal for future runs of program being debugged.
Usage: set inferior-tty /dev/pts/1
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!