diff options
author | Mihails Strasuns <mihails.strasuns@intel.com> | 2019-11-28 09:59:23 +0100 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2019-11-28 09:59:23 +0100 |
commit | 38b49e22b56e9ee93a5a5d4499c02caf2e41af25 (patch) | |
tree | 6378f6474f61a01447f57803d540cb5154ba5d33 /gdb/jit.c | |
parent | dcdec67858b1db5a91c1947569d6085310bfabe6 (diff) | |
download | fsf-binutils-gdb-38b49e22b56e9ee93a5a5d4499c02caf2e41af25.zip fsf-binutils-gdb-38b49e22b56e9ee93a5a5d4499c02caf2e41af25.tar.gz fsf-binutils-gdb-38b49e22b56e9ee93a5a5d4499c02caf2e41af25.tar.bz2 |
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
Diffstat (limited to 'gdb/jit.c')
-rw-r--r-- | gdb/jit.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |