* arch-utils.h: Update copyright.
[deliverable/binutils-gdb.git] / gdb / arch-utils.c
index bdc9d65f9fe22ea8ef44c5ef1d6be1aa75b614df..23caf9f98a3a47042dbe6fbd227c6c4f3718af14 100644 (file)
@@ -419,6 +419,24 @@ generic_register_virtual_size (int regnum)
   return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (regnum));
 }
 
+#if !defined (IN_SIGTRAMP)
+#if defined (SIGTRAMP_START)
+#define IN_SIGTRAMP(pc, name) \
+       ((pc) >= SIGTRAMP_START(pc)   \
+        && (pc) < SIGTRAMP_END(pc) \
+        )
+#else
+#define IN_SIGTRAMP(pc, name) \
+       (name && STREQ ("_sigtramp", name))
+#endif
+#endif
+\f
+int
+legacy_pc_in_sigtramp (CORE_ADDR pc, char *name)
+{
+  return IN_SIGTRAMP(pc, name);
+}
+
 \f
 /* Functions to manipulate the endianness of the target.  */
 
This page took 0.023741 seconds and 4 git commands to generate.