gdb crashdump - restore old e_sys magic into e_start
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 9 Dec 2013 10:51:24 +0000 (19:51 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 9 Dec 2013 10:51:24 +0000 (19:51 +0900)
src/bin/e_start_main.c

index 22994de..22af23d 100644 (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);