From patchwork Wed May 13 20:16:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 6712 Received: (qmail 8031 invoked by alias); 13 May 2015 20:16:31 -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 8021 invoked by uid 89); 13 May 2015 20:16:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 13 May 2015 20:16:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4DKGSJP000726 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 13 May 2015 16:16:28 -0400 Received: from host1.jankratochvil.net (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4DKGQO6032131; Wed, 13 May 2015 16:16:26 -0400 Subject: [PATCH v5 1/7] compile: Add one debug message From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Phil Muldoon Date: Wed, 13 May 2015 22:16:25 +0200 Message-ID: <20150513201625.4051.2512.stgit@host1.jankratochvil.net> In-Reply-To: <20150513201615.4051.5261.stgit@host1.jankratochvil.net> References: <20150513201615.4051.5261.stgit@host1.jankratochvil.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-IsSubscribed: yes Hi, trivial, there is an inter-patch dependency. Jan 2015-04-28 Jan Kratochvil * compile/compile-object-load.c (compile_object_load): Add COMPILE_DEBUG message. --- gdb/compile/compile-object-load.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index fe23448..745d787 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -580,6 +580,12 @@ compile_object_load (const char *object_file, const char *source_file) TYPE_LENGTH (regs_type), GDB_MMAP_PROT_READ); gdb_assert (regs_addr != 0); + if (compile_debug) + fprintf_unfiltered (gdb_stdout, + "allocated %s bytes at %s for registers\n", + paddress (target_gdbarch (), + TYPE_LENGTH (regs_type)), + paddress (target_gdbarch (), regs_addr)); store_regs (regs_type, regs_addr); }