Mercurial > mplayer.hg
changeset 24981:cacb3695a1a4
Restore terminal for gdb with -crash-debug by calling getch2_disable()
author | reimar |
---|---|
date | Sat, 10 Nov 2007 11:09:08 +0000 |
parents | 19e208a0296d |
children | 5d338b18763d |
files | mplayer.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Nov 10 02:07:34 2007 +0000 +++ b/mplayer.c Sat Nov 10 11:09:08 2007 +0000 @@ -774,6 +774,7 @@ gdb_pid = fork(); mp_msg(MSGT_CPLAYER, MSGL_INFO, "Forked...\n"); if (gdb_pid == 0) { // We are the child + getch2_disable(); // allow terminal to work properly with gdb if (execlp("gdb", "gdb", prog_path, spid, NULL) == -1) mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't start gdb\n"); } else if (gdb_pid < 0)