static int do_sigframe_return_v2(CPUState *env, target_ulong frame_addr,
                                 struct target_ucontext_v2 *uc)
{
    sigset_t host_set;
    abi_ulong *regspace;
    target_to_host_sigset(&host_set, &uc->tuc_sigmask);
    sigprocmask(SIG_SETMASK, &host_set, NULL);
    if (restore_sigcontext(env, &uc->tuc_mcontext))
    if (do_sigaltstack(frame_addr + offsetof(struct target_ucontext_v2, tuc_stack), 0, get_sp_from_cpustate(env)) == -EFAULT)
#if 0
    /* Send SIGTRAP if we're single-stepping */
    if (ptrace_cancel_bpt(current))
            send_sig(SIGTRAP, current, 1);
#endif
    return 0;
static int do_sigframe_return_v2(CPUState *env, target_ulong frame_addr,
                                 struct target_ucontext_v2 *uc)
{
    sigset_t host_set;
    abi_ulong *regspace;
    target_to_host_sigset(&host_set, &uc->tuc_sigmask);
    sigprocmask(SIG_SETMASK, &host_set, NULL);
    if (restore_sigcontext(env, &uc->tuc_mcontext))
    if (do_sigaltstack(frame_addr + offsetof(struct target_ucontext_v2, tuc_stack), 0, get_sp_from_cpustate(env)) == -EFAULT)
#if 0
    
    if (ptrace_cancel_bpt(current))
            send_sig(SIGTRAP, current, 1);
#endif
    return 0;
static int FUNC_0(CPUState *VAR_0, target_ulong VAR_1,
                                 struct target_ucontext_v2 *VAR_2)
{
    sigset_t host_set;
    abi_ulong *regspace;
    target_to_host_sigset(&host_set, &VAR_2->tuc_sigmask);
    sigprocmask(SIG_SETMASK, &host_set, NULL);
    if (restore_sigcontext(VAR_0, &VAR_2->tuc_mcontext))
    if (do_sigaltstack(VAR_1 + offsetof(struct target_ucontext_v2, tuc_stack), 0, get_sp_from_cpustate(VAR_0)) == -EFAULT)
#if 0
    
    if (ptrace_cancel_bpt(current))
            send_sig(SIGTRAP, current, 1);
#endif
    return 0;
static int FUNC_0(CPUState *VAR_0, target_ulong VAR_1,
struct target_ucontext_v2 *VAR_2)
{ sigset_t host_set; abi_ulong *regspace; target_to_host_sigset(&host_set, &VAR_2->tuc_sigmask); sigprocmask(SIG_SETMASK, &host_set, NULL); if (restore_sigcontext(VAR_0, &VAR_2->tuc_mcontext))
if (do_sigaltstack(VAR_1 + offsetof(struct target_ucontext_v2, tuc_stack), 0, get_sp_from_cpustate(VAR_0)) == -EFAULT)
#if 0
if (ptrace_cancel_bpt(current))
send_sig(SIGTRAP, current, 1); #endif
return 0;