summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2012-04-20 23:01:50 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2012-04-20 23:01:50 +0000
commitb51c313c064a2df39d9285356f012cdeb0ef4cd9 (patch)
tree366e249836d5add5df9bd133d33a6792ece4ca4f
parent96191898222cd1e8b701990f0da9dd6c74c9bb56 (diff)
downloadgdb-b51c313c064a2df39d9285356f012cdeb0ef4cd9.tar.gz
* mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
of mips16 symbols.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips-tdep.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5f6217f6ac3..f7afb07c43f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
+
+ * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
+ of mips16 symbols.
+
2012-04-20 Andrew Pinski <apinski@cavium.com>
* MAINTAINERS (Write After Approval): Add myself to the list.
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 7b0ca703c89..fa10abe2f02 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -268,7 +268,8 @@ mips_abi_regsize (struct gdbarch *gdbarch)
static void
mips_elf_make_msymbol_special (asymbol * sym, struct minimal_symbol *msym)
{
- if (((elf_symbol_type *) (sym))->internal_elf_sym.st_other == STO_MIPS16)
+ if (ELF_ST_IS_MIPS16 (((elf_symbol_type *)
+ (sym))->internal_elf_sym.st_other))
{
MSYMBOL_TARGET_FLAG_1 (msym) = 1;
}