[MPlayer-cvslog] r25009 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat Nov 10 12:09:08 CET 2007


Author: reimar
Date: Sat Nov 10 12:09:08 2007
New Revision: 25009

Log:
Restore terminal for gdb with -crash-debug by calling getch2_disable()


Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sat Nov 10 12:09:08 2007
@@ -774,6 +774,7 @@ static void exit_sighandler(int x){
         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) 



More information about the MPlayer-cvslog mailing list