jit: minor improvement to debug logging

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
This commit is contained in:
Mihails Strasuns 2019-11-28 09:59:23 +01:00 committed by Tankut Baris Aktemur
parent dcdec67858
commit 38b49e22b5
2 changed files with 11 additions and 1 deletions

View 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> 2019-11-27 Christian Biesinger <cbiesinger@google.com>
* NEWS: Mention the new multithreaded symbol loading. * NEWS: Mention the new multithreaded symbol loading.

View file

@ -874,7 +874,7 @@ jit_bfd_try_read_symtab (struct jit_code_entry *code_entry,
if (jit_debug) if (jit_debug)
fprintf_unfiltered (gdb_stdlog, fprintf_unfiltered (gdb_stdlog,
"jit_register_code, symfile_addr = %s, " "jit_bfd_try_read_symtab, symfile_addr = %s, "
"symfile_size = %s\n", "symfile_size = %s\n",
paddress (gdbarch, code_entry->symfile_addr), paddress (gdbarch, code_entry->symfile_addr),
pulongest (code_entry->symfile_size)); pulongest (code_entry->symfile_size));
@ -958,6 +958,9 @@ jit_register_code (struct gdbarch *gdbarch,
static void static void
jit_unregister_code (struct objfile *objfile) 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; delete objfile;
} }