* mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 20 Apr 2012 23:01:51 +0000 (23:01 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Fri, 20 Apr 2012 23:01:51 +0000 (23:01 +0000)
of mips16 symbols.

gdb/ChangeLog
gdb/mips-tdep.c

index 5f6217f6ac329d0ebb4dc8dc6034fbb5a992055d..f7afb07c43f0a827781d8ce31615a94da3ca9ca0 100644 (file)
@@ -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.
index 7b0ca703c891dcba9e0f6b6208c03585d51bf129..fa10abe2f029d2697a5141a7ecbc85113c929bf4 100644 (file)
@@ -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;
     }