From patchwork Wed Feb 19 19:21:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 38243 Received: (qmail 28064 invoked by alias); 19 Feb 2020 19:21: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 28050 invoked by uid 89); 19 Feb 2020 19:21:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Feb 2020 19:21:30 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id A722B5605F; Wed, 19 Feb 2020 14:21:28 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UGI924gIZ7Jj; Wed, 19 Feb 2020 14:21:28 -0500 (EST) Received: from murgatroyd.Home (75-166-123-50.hlrn.qwest.net [75.166.123.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 639FC5605C; Wed, 19 Feb 2020 14:21:28 -0500 (EST) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [pushed] Fix declaration of mips_pc_is_mips Date: Wed, 19 Feb 2020 12:21:26 -0700 Message-Id: <20200219192126.2557-1-tromey@adacore.com> MIME-Version: 1.0 A build where CORE_ADDR is not the same as bfd_vma pointed out that mips_pc_is_mips is declared using bfd_vma as the parameter type, but defined using CORE_ADDR. This patch fixes the declaration. gdb/ChangeLog 2020-02-19 Tom Tromey * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. --- gdb/ChangeLog | 4 ++++ gdb/mips-tdep.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h index 032e2cc26df..17589e3907d 100644 --- a/gdb/mips-tdep.h +++ b/gdb/mips-tdep.h @@ -162,7 +162,7 @@ extern CORE_ADDR mips_unmake_compact_addr (CORE_ADDR addr); /* Tell if the program counter value in MEMADDR is in a standard MIPS function. */ -extern int mips_pc_is_mips (bfd_vma memaddr); +extern int mips_pc_is_mips (CORE_ADDR memaddr); /* Tell if the program counter value in MEMADDR is in a MIPS16 function. */