]> git.eshelyaron.com Git - emacs.git/commitdiff
rework debug dump
authorAndrea Corallo <andrea_corallo@yahoo.it>
Thu, 20 Jun 2019 21:31:16 +0000 (23:31 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:33:43 +0000 (11:33 +0100)
src/comp.c

index d08ec8c7c9c28a566cbef0b1c616a30b290d2020..201ffa655978b4ea94943b103ae5cfa83c836066 100644 (file)
@@ -1111,8 +1111,12 @@ init_comp (int opt_level)
     }
   if (COMP_DEBUG > 1)
     {
+      gcc_jit_context_set_bool_option (comp.ctxt,
+                                      GCC_JIT_BOOL_OPTION_DEBUGINFO,
+                                      1);
+
       gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c");
-      gcc_jit_context_dump_to_file (comp.ctxt, "emacs-gcc-code.c", 0);
+
     }
 
   gcc_jit_context_set_int_option (comp.ctxt,
@@ -1268,6 +1272,8 @@ init_comp (int opt_level)
 static void
 release_comp (void)
 {
+  if (COMP_DEBUG)
+    gcc_jit_context_dump_to_file (comp.ctxt, "gcc-ctxt-dump.c", 1);
   if (comp.ctxt)
     gcc_jit_context_release(comp.ctxt);