[gimp] libgimpbase: gimp_stack_trace_*() should get backtraces for all threads.



commit bb52431cdd424a9068069977549e5eab66768bad
Author: Jehan <jehan girinstud io>
Date:   Mon Apr 9 02:15:37 2018 +0200

    libgimpbase: gimp_stack_trace_*() should get backtraces for all threads.
    
    Now that GIMP core is multi-threaded, let's get traces for all threads,
    otherwise we may get some useless traces in some cases.

 libgimpbase/gimputils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c
index 4b7c14f..d157eef 100644
--- a/libgimpbase/gimputils.c
+++ b/libgimpbase/gimputils.c
@@ -1187,7 +1187,7 @@ gimp_stack_trace_print (const gchar *prog_name,
   if (pid == 0)
     {
       /* Child process. */
-      gchar *args[7] = { "gdb", "-batch", "-ex", "backtrace full",
+      gchar *args[7] = { "gdb", "-batch", "-ex", "thread apply all backtrace",
                          (gchar *) prog_name, NULL, NULL };
 
       if (prog_name == NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]