* arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 25 Mar 2011 21:05:23 +0000 (21:05 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 25 Mar 2011 21:05:23 +0000 (21:05 +0000)
instead of checking for STT_ARM_TFUNC symbol type.

gdb/ChangeLog
gdb/arm-tdep.c

index 917d4939119f5a425297d39cc2d79d9d1c4e62d3..a21aa81bb0f6ac3c8c6603715e362635d07732a7 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-25  Ulrich Weigand  <ulrich.weigand@linaro.org>
+
+       * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
+       instead of checking for STT_ARM_TFUNC symbol type.
+
 2011-03-25  Tom Tromey  <tromey@redhat.com>
 
        * linespec.c (symbol_found): Restore line-based result for
index 480015d01c6ec8f98809fc95c80f40ce5084b772..5a5152cc477af063f510e09d88ef80dd0d77d76c 100644 (file)
@@ -7793,10 +7793,8 @@ coff_sym_is_thumb (int val)
 static void
 arm_elf_make_msymbol_special(asymbol *sym, struct minimal_symbol *msym)
 {
-  /* Thumb symbols are of type STT_LOPROC, (synonymous with
-     STT_ARM_TFUNC).  */
-  if (ELF_ST_TYPE (((elf_symbol_type *)sym)->internal_elf_sym.st_info)
-      == STT_LOPROC)
+  if (ARM_SYM_BRANCH_TYPE (&((elf_symbol_type *)sym)->internal_elf_sym)
+      == ST_BRANCH_TO_THUMB)
     MSYMBOL_SET_SPECIAL (msym);
 }