diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-04-20 23:01:51 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-04-20 23:01:51 +0000 |
commit | 7f0e6aaed2df0d5d8a16ad4eda2c9f47abfaf76e (patch) | |
tree | d6057f6f2d142bde88acb3c365a7b007e7d5883d /gdb | |
parent | bc17beea2dca4c00d2a0b4b9df58bb4cd55e7dbe (diff) | |
download | gdb-7f0e6aaed2df0d5d8a16ad4eda2c9f47abfaf76e.zip gdb-7f0e6aaed2df0d5d8a16ad4eda2c9f47abfaf76e.tar.gz gdb-7f0e6aaed2df0d5d8a16ad4eda2c9f47abfaf76e.tar.bz2 |
* mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
of mips16 symbols.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5f6217f..f7afb07 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 7b0ca70..fa10abe 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; } |