From patchwork Sat Jun 11 20:48:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Baldwin X-Patchwork-Id: 12992 Received: (qmail 3546 invoked by alias); 11 Jun 2016 20:56:21 -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 3525 invoked by uid 89); 11 Jun 2016 20:56:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL, BAYES_50, SPF_HELO_PASS, SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=2.7.0, baldwin, Baldwin, U*jhb X-Spam-User: qpsmtpd, 2 recipients X-HELO: bigwig.baldwin.cx Received: from bigwig.baldwin.cx (HELO bigwig.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Sat, 11 Jun 2016 20:56:19 +0000 Received: from ralph.baldwin.cx.net (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A36B8B9C6; Sat, 11 Jun 2016 16:49:27 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org, binutils@sourceware.org Subject: [PATCH 6/8] Pass a NULL pointer as the last argument to find_pc_partial_function. Date: Sat, 11 Jun 2016 13:48:33 -0700 Message-Id: <1465678115-58170-7-git-send-email-jhb@FreeBSD.org> In-Reply-To: <1465678115-58170-1-git-send-email-jhb@FreeBSD.org> References: <1465678115-58170-1-git-send-email-jhb@FreeBSD.org> X-IsSubscribed: yes gdb/ChangeLog: * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch. --- gdb/ChangeLog | 4 ++++ gdb/tui/tui-stack.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 243b717..d188af9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2016-06-11 John Baldwin + * tui/tui-stack.c (tui_show_frame_info): Fix type mismatch. + +2016-06-11 John Baldwin + * sh64-tdep.c (sh64_analyze_prologue): Compare FP register against -1 to detect missing FP. diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index da6c7b1..b6cf144 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -416,7 +416,7 @@ tui_show_frame_info (struct frame_info *fi) { if (find_pc_partial_function (get_frame_pc (fi), (const char **) NULL, - &low, (CORE_ADDR) 0) == 0) + &low, NULL) == 0) { /* There is no symbol available for current PC. There is no safe way how to "disassemble backwards". */