diff options
Diffstat (limited to 'gdb/mips-tdep.h')
-rw-r--r-- | gdb/mips-tdep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h index 096bceb..91d7cb0 100644 --- a/gdb/mips-tdep.h +++ b/gdb/mips-tdep.h @@ -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 */ |