jit: minor improvement to debug logging
authorMihails Strasuns <mihails.strasuns@intel.com>
Thu, 28 Nov 2019 08:59:23 +0000 (09:59 +0100)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Thu, 28 Nov 2019 08:59:23 +0000 (09:59 +0100)
gdb/ChangeLog:
2019-11-28  Mihails Strasuns  <mihails.strasuns@intel.com>

* jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
debug output.
* jit.c (jit_unregister_code): Add debug print to match
`jit_register_code`.

Change-Id: Ie66064f3aaa1c74facfc025c8d87f3a057869779

gdb/ChangeLog
gdb/jit.c

index 6bd149bec7a3c8437ea1a1e01f002726ec5d1e8d..49f17ecaad12ea75994f9647051ec7232dc57d07 100644 (file)
@@ -1,3 +1,10 @@
+2019-11-28  Mihails Strasuns  <mihails.strasuns@intel.com>
+
+       * jit.c (jit_bfd_try_read_symtab): Fix printed function name in the
+       debug output.
+       * jit.c (jit_unregister_code): Add debug print to match
+       `jit_register_code`.
+
 2019-11-27  Christian Biesinger  <cbiesinger@google.com>
 
        * NEWS: Mention the new multithreaded symbol loading.
index 85a01ef2c748e169aadc73ea2f6047477ece5a45..480b4596ac544bc4020fcc419c0540a563ef9cc2 100644 (file)
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -874,7 +874,7 @@ jit_bfd_try_read_symtab (struct jit_code_entry *code_entry,
 
   if (jit_debug)
     fprintf_unfiltered (gdb_stdlog,
-                       "jit_register_code, symfile_addr = %s, "
+                       "jit_bfd_try_read_symtab, symfile_addr = %s, "
                        "symfile_size = %s\n",
                        paddress (gdbarch, code_entry->symfile_addr),
                        pulongest (code_entry->symfile_size));
@@ -958,6 +958,9 @@ jit_register_code (struct gdbarch *gdbarch,
 static void
 jit_unregister_code (struct objfile *objfile)
 {
+  if (jit_debug)
+    fprintf_unfiltered (gdb_stdlog, "jit_unregister_code (%s)\n",
+                       host_address_to_string (objfile));
   delete objfile;
 }
 
This page took 0.032894 seconds and 4 git commands to generate.