diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-08 15:34:02 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-05-08 15:34:02 +0000 |
commit | 66099dd9af853e0504c975f7ac6416cc82b95903 (patch) | |
tree | dcf5e7769b5ffc0e04c68c1e1b790dc218363472 | |
parent | b689bc57d62dca9c48d8be15914d3dd53e33443e (diff) | |
download | qemu-66099dd9af853e0504c975f7ac6416cc82b95903.tar.gz qemu-66099dd9af853e0504c975f7ac6416cc82b95903.tar.bz2 qemu-66099dd9af853e0504c975f7ac6416cc82b95903.zip |
added trapno and error_code report in ucontext
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@124 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | linux-user/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index 1f779f9126..9873071394 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -527,8 +527,8 @@ setup_sigcontext(struct target_sigcontext *sc, struct target_fpstate *fpstate, err |= __put_user(env->regs[R_EDX], &sc->edx); err |= __put_user(env->regs[R_ECX], &sc->ecx); err |= __put_user(env->regs[R_EAX], &sc->eax); - err |= __put_user(/*current->thread.trap_no*/ 0, &sc->trapno); - err |= __put_user(/*current->thread.error_code*/ 0, &sc->err); + err |= __put_user(env->exception_index, &sc->trapno); + err |= __put_user(env->error_code, &sc->err); err |= __put_user(env->eip, &sc->eip); err |= __put_user(env->segs[R_CS], (unsigned int *)&sc->cs); err |= __put_user(env->eflags, &sc->eflags); |