gdb crashdump - restore old e_sys magic into e_start

This commit is contained in:
Carsten Haitzler 2013-12-09 19:51:24 +09:00
parent 5ca535383f
commit 0ec99b2ac5
1 changed files with 7 additions and 2 deletions

View File

@ -566,8 +566,13 @@ main(int argc, char **argv)
if (home)
{
/* call e_sys gdb */
snprintf(buffer, 4096,
"gdb %i %s/.e-crashdump.txt",
snprintf(buffer, sizeof(buffer),
"gdb "
"--pid=%i "
"-batch "
"-ex 'set logging file %s/.e-crashdump.txt' "
"-ex 'thread apply all backtrace full' "
"-ex detach > /dev/null 2>&1 < /dev/zero",
child,
home);
r = system(buffer);