1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-28 20:21:45 +02:00

(unw_is_signal_frame): Need to (re-)create state record before we can check

IA64_FLAG_SIGTRAMP.

(Logical change 1.18)
This commit is contained in:
mostang.com!davidm 2002-04-25 06:47:29 +00:00
parent 83da1e6ac1
commit 118746f9e5

View file

@ -27,6 +27,15 @@ int
unw_is_signal_frame (unw_cursor_t *cursor)
{
struct ia64_cursor *c = (struct ia64_cursor *) cursor;
struct ia64_state_record sr;
int ret;
return (c->flags & IA64_FLAG_SIGTRAMP) != 0;
/* Crude and slow, but we need to peek ahead into the unwind
descriptors to find out if the current IP is inside the signal
trampoline. */
ret = ia64_create_state_record (c, &sr);
if (ret < 0)
return ret;
return (c->pi.flags & IA64_FLAG_SIGTRAMP) != 0;
}