diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-10 11:14:15 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-10 11:14:15 +0000 |
commit | bdff251d8765073007afb2be2bafee3eb55e6345 (patch) | |
tree | 771cdb02704574f8fd4607e188815bed5cc152f5 /mplayer.c | |
parent | 406dab851b0f884f40671dafec5a5d9d357f0f09 (diff) | |
download | mpv-bdff251d8765073007afb2be2bafee3eb55e6345.tar.bz2 mpv-bdff251d8765073007afb2be2bafee3eb55e6345.tar.xz |
Make crash-debug gdb auto-execute "bt"
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25010 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |