mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 13:47:39 +00:00
Make crash-debug gdb auto-execute "bt"
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25010 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
406dab851b
commit
bdff251d87
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user