From 0ec99b2ac553809b57993b34de3228b2380b34c2 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 9 Dec 2013 19:51:24 +0900 Subject: [PATCH] gdb crashdump - restore old e_sys magic into e_start --- src/bin/e_start_main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c index 22994de59..22af23dd8 100644 --- a/src/bin/e_start_main.c +++ b/src/bin/e_start_main.c @@ -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);