From patchwork Thu Nov 28 09:07:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Simon Marchi (Code Review)" X-Patchwork-Id: 36345 Received: (qmail 50165 invoked by alias); 28 Nov 2019 09:07:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 49995 invoked by uid 89); 28 Nov 2019 09:07:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy= X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Nov 2019 09:07:14 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id 586E620387; Thu, 28 Nov 2019 04:07:11 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [IPv6:2620:52:3:1:5054:ff:fe06:16ca]) by mx1.osci.io (Postfix) with ESMTP id B3E10203AE; Thu, 28 Nov 2019 04:07:07 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 7FDAB28173; Thu, 28 Nov 2019 04:07:07 -0500 (EST) X-Gerrit-PatchSet: 4 Date: Thu, 28 Nov 2019 04:07:07 -0500 From: "Sourceware to Gerrit sync (Code Review)" To: Mihails Strasuns , Tankut Baris Aktemur , gdb-patches@sourceware.org Cc: Luis Machado , Tom Tromey , Simon Marchi Auto-Submitted: auto-generated X-Gerrit-MessageType: merged Subject: [pushed] jit: minor improvement to debug logging X-Gerrit-Change-Id: Ie66064f3aaa1c74facfc025c8d87f3a057869779 X-Gerrit-Change-Number: 703 X-Gerrit-ChangeURL: X-Gerrit-Commit: 38b49e22b56e9ee93a5a5d4499c02caf2e41af25 In-Reply-To: References: Reply-To: noreply@gnutoolchain-gerrit.osci.io, tankut.baris.aktemur@intel.com, simon.marchi@polymtl.ca, tromey@sourceware.org, mihails.strasuns@intel.com, luis.machado@linaro.org, gdb-patches@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Gerrit/3.0.3-79-g83ff7f88f1 Message-Id: <20191128090707.7FDAB28173@gnutoolchain-gerrit.osci.io> Sourceware to Gerrit sync has submitted this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/703 ...................................................................... jit: minor improvement to debug logging gdb/ChangeLog: 2019-11-28 Mihails Strasuns * 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 --- M gdb/ChangeLog M gdb/jit.c 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 + + * 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 * 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 @@ 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 @@ 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; }