This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] sigaltstack fixes for hppa-linux
- From: Andrew Cagney <cagney at gnu dot org>
- To: Randolph Chung <randolph at tausq dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 06 May 2004 15:33:04 -0400
- Subject: Re: [patch] sigaltstack fixes for hppa-linux
- References: <20040504150219.GJ3965@tausq.org>
This patch fixes sigaltstack handling on hppa. It requires one arch-indep
change in frame.c: on hppa (stack-grows-up), the relationship of the
sigaltstack can be that it is not "inner" to the signal frame, if the
sigaltstack resides in a caller's stack frame (as is true in gdb's testcase.)
The current code handles the transition:
stk 1: caller (this_frame)
stk 2: trampoline (this_frame->next)
stk 2: handler
are you saying that the transition:
stk 1: caller
stk 1: trampoline (this_frame)
stk 2: handler (this_frame->next)
is also possible?
Perhaphs the test should be just:
if (this_frame->type == NORMAL_FRAME
&& this_frame->next->type == NORMAL_FRAME
&& frame_id_inner (get_frame_id (this_frame),
get_frame_id (this_frame->next)))
Andrew
ok to apply?