2004-08-04 Mark Kettenis <kettenis@gnu.org>
+ * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
+ trampoline in OpenBSD 3.5-current.
+
* i387-tdep.c (i387_supply_fsave): Provide summy values for the
SSE registers.
if (find_pc_section (pc) != NULL)
return 0;
- /* If we can't read the instructions at START_PC, return zero. */
+ /* Allocate buffer. */
buf = alloca (sizeof sigreturn);
- if (target_read_memory (start_pc + 0x14, buf, sizeof sigreturn))
+
+ /* If we can't read the instructions at START_PC, return zero. */
+ if (target_read_memory (start_pc + 0x0a, buf, sizeof sigreturn))
return 0;
/* Check for sigreturn(2). */
if (memcmp (buf, sigreturn, sizeof sigreturn) == 0)
return 1;
+ /* If we can't read the instructions at START_PC, return zero. */
+ if (target_read_memory (start_pc + 0x14, buf, sizeof sigreturn))
+ return 0;
+
+ /* Check for sigreturn(2) (again). */
+ if (memcmp (buf, sigreturn, sizeof sigreturn) == 0)
+ return 1;
+
return 0;
}
\f