Commit 66099dd9af853e0504c975f7ac6416cc82b95903
1 parent
b689bc57
added trapno and error_code report in ucontext
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@124 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
linux-user/signal.c
... | ... | @@ -527,8 +527,8 @@ setup_sigcontext(struct target_sigcontext *sc, struct target_fpstate *fpstate, |
527 | 527 | err |= __put_user(env->regs[R_EDX], &sc->edx); |
528 | 528 | err |= __put_user(env->regs[R_ECX], &sc->ecx); |
529 | 529 | err |= __put_user(env->regs[R_EAX], &sc->eax); |
530 | - err |= __put_user(/*current->thread.trap_no*/ 0, &sc->trapno); | |
531 | - err |= __put_user(/*current->thread.error_code*/ 0, &sc->err); | |
530 | + err |= __put_user(env->exception_index, &sc->trapno); | |
531 | + err |= __put_user(env->error_code, &sc->err); | |
532 | 532 | err |= __put_user(env->eip, &sc->eip); |
533 | 533 | err |= __put_user(env->segs[R_CS], (unsigned int *)&sc->cs); |
534 | 534 | err |= __put_user(env->eflags, &sc->eflags); | ... | ... |