* objfiles.h (pc_in_section): New prototype.
[deliverable/binutils-gdb.git] / gdb / mips-tdep.h
index 096bcebbb4692b99d4d41d9dac36dcc7b7d048d2..91d7cb02cdde5a04e6fdf8b4045e12085b9d7555 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef MIPS_TDEP_H
 #define MIPS_TDEP_H
 
+#include "objfiles.h"
+
 struct gdbarch;
 
 /* All the possible MIPS ABIs.  */
@@ -184,4 +186,12 @@ extern void mips_write_pc (struct regcache *regcache, CORE_ADDR pc);
 extern struct target_desc *mips_tdesc_gp32;
 extern struct target_desc *mips_tdesc_gp64;
 
+/* Return non-zero if PC is in a MIPS SVR4 lazy binding stub section.  */
+
+static inline int
+in_mips_stubs_section (CORE_ADDR pc)
+{
+  return pc_in_section (pc, ".MIPS.stubs");
+}
+
 #endif /* MIPS_TDEP_H */
This page took 0.024212 seconds and 4 git commands to generate.