vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit 1d93ce1739b4384b73d0c4848e9bb1aeb1054fc6
parent 28845f6805e8e426c2be4613e8a000bba933cf27
Author: Russ Cox <rsc@swtch.com>
Date:   Sun, 29 Jun 2008 13:59:20 -0400

libvx32/OSX: have now tested single-stepping

Diffstat:
src/libvx32/darwin.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/libvx32/darwin.c b/src/libvx32/darwin.c @@ -162,12 +162,11 @@ int vx32_sighandler(int signo, siginfo_t *si, void *v) break; case SIGTRAP: -#warning "OS X: neeed to test single-stepping" - // Linux sends SIGTRAP when it gets a processor + // OS X sends SIGTRAP when it gets a processor // debug exception, which is caused by single-stepping // with the TF bit, among other things. The processor // turns off the TF bit before generating the trap, but - // it appears that Linux turns it back on for us. + // it appears that the handler turns it back on for us. // Let's use it to confirm that this is a single-step trap. if (ctx->ss.eflags & EFLAGS_TF){ newtrap = VXTRAP_SINGLESTEP;