Mercurial > mplayer.hg
changeset 24982:5d338b18763d
Make crash-debug gdb auto-execute "bt"
author | reimar |
---|---|
date | Sat, 10 Nov 2007 11:14:15 +0000 |
parents | cacb3695a1a4 |
children | da81c5786907 |
files | mplayer.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Sat Nov 10 11:09:08 2007 +0000 +++ b/mplayer.c Sat Nov 10 11:14:15 2007 +0000 @@ -775,7 +775,7 @@ 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");