public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [review] jit: minor improvement to debug logging
@ 2019-11-25 12:54 Mihails Strasuns (Code Review)
  2019-11-25 14:06 ` Simon Marchi (Code Review)
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Mihails Strasuns (Code Review) @ 2019-11-25 12:54 UTC (permalink / raw)
  To: gdb-patches

Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/703
......................................................................

jit: minor improvement to debug logging

gdb/ChangeLog:
2019-11-14  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`.

Signed-off-by: Mihails Strasuns <mihails.strasuns@intel.com>
Change-Id: Ie66064f3aaa1c74facfc025c8d87f3a057869779
---
M gdb/jit.c
1 file changed, 3 insertions(+), 1 deletion(-)



diff --git a/gdb/jit.c b/gdb/jit.c
index 85a01ef..5014dfd 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -874,7 +874,7 @@
 
   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,8 @@
 static void
 jit_unregister_code (struct objfile *objfile)
 {
+  if (jit_debug)
+    fprintf_unfiltered (gdb_stdlog, "jit_unregister_code (%p)\n", objfile);
   delete objfile;
 }
 

-- 
Gerrit-Project: binutils-gdb
Gerrit-Branch: master
Gerrit-Change-Id: Ie66064f3aaa1c74facfc025c8d87f3a057869779
Gerrit-Change-Number: 703
Gerrit-PatchSet: 1
Gerrit-Owner: Mihails Strasuns <mihails.strasuns@intel.com>
Gerrit-MessageType: newchange

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-11-28  9:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 12:54 [review] jit: minor improvement to debug logging Mihails Strasuns (Code Review)
2019-11-25 14:06 ` Simon Marchi (Code Review)
2019-11-26 11:27 ` [review v2] " Mihails Strasuns (Code Review)
2019-11-26 11:28 ` Mihails Strasuns (Code Review)
2019-11-26 13:51 ` Tom Tromey (Code Review)
2019-11-27  1:08 ` Luis Machado (Code Review)
2019-11-28  8:48 ` [review v3] " Mihails Strasuns (Code Review)
2019-11-28  9:07 ` [pushed] " Sourceware to Gerrit sync (Code Review)
2019-11-28  9:07 ` Sourceware to Gerrit sync (Code Review)

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).