raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0ec99b2ac553809b57993b34de3228b2380b34c2

commit 0ec99b2ac553809b57993b34de3228b2380b34c2
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Dec 9 19:51:24 2013 +0900

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

-- 


Reply via email to