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) if (home)
{ {
/* call e_sys gdb */ /* call e_sys gdb */
snprintf(buffer, 4096, snprintf(buffer, sizeof(buffer),
"gdb %i %s/.e-crashdump.txt", "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, child,
home); home);
r = system(buffer); r = system(buffer);