From: Tom Tromey Date: Wed, 19 Feb 2020 19:18:09 +0000 (-0700) Subject: Fix declaration of mips_pc_is_mips X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfdeeca1cc6b785243a243d190872789417dda19;p=binutils-gdb.git Fix declaration of mips_pc_is_mips 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 78253116170..3fdebc9b153 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-02-19 Tom Tromey + + * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. + 2020-02-19 Tom Tromey * ada-lang.c (cache_symbol): Use obstack_strdup. 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. */