aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.h
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2014-12-12 16:36:10 +0000
committerMaciej W. Rozycki <macro@codesourcery.com>2014-12-12 16:36:10 +0000
commitf161c17134bdfa5f5e72d7afb7dfccf5599a67e1 (patch)
tree3a804befa6902f1d33dbac0c4c0a223a61a8b543 /gdb/mips-tdep.h
parent71c247087cbff23fbbe10333a9e504f3e197c107 (diff)
downloadgdb-f161c17134bdfa5f5e72d7afb7dfccf5599a67e1.zip
gdb-f161c17134bdfa5f5e72d7afb7dfccf5599a67e1.tar.gz
gdb-f161c17134bdfa5f5e72d7afb7dfccf5599a67e1.tar.bz2
MIPS: Define aliases for MSYMBOL_TARGET_FLAG macros
* mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro. (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise. * mips-tdep.c (mips_elf_make_msymbol_special): Use the new macros. (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips): Likewise.
Diffstat (limited to 'gdb/mips-tdep.h')
-rw-r--r--gdb/mips-tdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h
index b42f2d6..186f158 100644
--- a/gdb/mips-tdep.h
+++ b/gdb/mips-tdep.h
@@ -48,6 +48,10 @@ enum mips_isa
ISA_MICROMIPS
};
+/* Corresponding MSYMBOL_TARGET_FLAG aliases. */
+#define MSYMBOL_TARGET_FLAG_MIPS16 MSYMBOL_TARGET_FLAG_1
+#define MSYMBOL_TARGET_FLAG_MICROMIPS MSYMBOL_TARGET_FLAG_2
+
/* Return the MIPS ISA's register size. Just a short cut to the BFD
architecture's word size. */
extern int mips_isa_regsize (struct gdbarch *gdbarch);