From patchwork Sun May 3 14:06:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kratochvil X-Patchwork-Id: 6535 Received: (qmail 86428 invoked by alias); 3 May 2015 14:07:02 -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 86413 invoked by uid 89); 3 May 2015 14:07:01 -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; Sun, 03 May 2015 14:07:01 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t43E6xO1022288 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Sun, 3 May 2015 10:06:59 -0400 Received: from host1.jankratochvil.net (ovpn-116-27.ams2.redhat.com [10.36.116.27]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t43E6w1R016212; Sun, 3 May 2015 10:06:58 -0400 Subject: [PATCH v4 01/11] compile: Add one debug message From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Phil Muldoon Date: Sun, 03 May 2015 16:06:58 +0200 Message-ID: <20150503140657.18583.74368.stgit@host1.jankratochvil.net> In-Reply-To: <20150503140647.18583.2012.stgit@host1.jankratochvil.net> References: <20150503140647.18583.2012.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 8a7f232..7d795cf 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -576,6 +576,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); }