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

reimar subversion at mplayerhq.hu
Sat Nov 10 12:14:15 CET 2007


Author: reimar
Date: Sat Nov 10 12:14:15 2007
New Revision: 25010

Log:
Make crash-debug gdb auto-execute "bt"


Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sat Nov 10 12:14:15 2007
@@ -775,7 +775,7 @@ static void exit_sighandler(int x){
         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)
+          if (execlp("gdb", "gdb", prog_path, spid, "-ex", "bt", NULL) == -1)
             mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't start gdb\n");
         } else if (gdb_pid < 0) 
           mp_msg(MSGT_CPLAYER, MSGL_ERR, "Couldn't fork\n");



More information about the MPlayer-cvslog mailing list