linux-user/signal.c: Fix several issues for target alpha
A message that is not in the archive (sent off-list or not yet received): [email protected]
Review
Quoted 13 lines · On 09/12/2015 08:15 PM, [email protected] wrote:
env->ir[IR_RA] = r26; env->ir[IR_PV] = env->pc = ka->_sa_handler; env->ir[IR_A0] = sig; env->ir[IR_A1] = 0; env->ir[IR_A2] = frame_addr + offsetof(struct target_sigframe, sc); env->ir[IR_SP] = frame_addr;(quoted diff) +6
-0+ +give_sigsegv: + if (sig == TARGET_SIGSEGV) { + ka->_sa_handler = TARGET_SIG_DFL; + } + force_sig(TARGET_SIGSEGV); }
Fallthrough into the sigsegv handler?
That's clearly wrong.
r~
Quoted 18 lines · Richard Henderson
Review
Quoted 13 lines · On 09/12/2015 08:15 PM, [email protected] wrote:
env->ir[IR_RA] = r26; env->ir[IR_PV] = env->pc = ka->_sa_handler; env->ir[IR_A0] = sig; env->ir[IR_A1] = 0; env->ir[IR_A2] = frame_addr + offsetof(struct target_sigframe, sc); env->ir[IR_SP] = frame_addr;(quoted diff) +6
-0+ +give_sigsegv: + if (sig == TARGET_SIGSEGV) { + ka->_sa_handler = TARGET_SIG_DFL; + } + force_sig(TARGET_SIGSEGV); }Fallthrough into the sigsegv handler?
That's clearly wrong.
OK, thanks. Need add "return" before "give_sigsegv". I shall send patch v2 for it.
Thanks.
Signature · 3 lines
Chen Gang (陈刚) Open, share, and attitude like air, water, and life which God blessed