public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] jit: minor improvement to debug logging
@ 2019-11-28 9:06 Tankut Baris Aktemur
0 siblings, 0 replies; only message in thread
From: Tankut Baris Aktemur @ 2019-11-28 9:06 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=38b49e22b56e9ee93a5a5d4499c02caf2e41af25
commit 38b49e22b56e9ee93a5a5d4499c02caf2e41af25
Author: Mihails Strasuns <mihails.strasuns@intel.com>
Date: Thu Nov 28 09:59:23 2019 +0100
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
Diff:
---
gdb/ChangeLog | 7 +++++++
gdb/jit.c | 5 ++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6bd149b..49f17ec 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/jit.c b/gdb/jit.c
index 85a01ef..480b459 100644
--- 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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-28 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-28 9:06 [binutils-gdb] jit: minor improvement to debug logging Tankut Baris Aktemur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).