From 133fc4d8a872c6ac037d9d8fafd146658e4cc9c8 Mon Sep 17 00:00:00 2001 From: "warren.toomey" Date: Mon, 19 May 2008 13:46:53 +0000 Subject: [PATCH] From Russ Cox: In v7trap.c, the case S_BREAK body is wrong: < i=0; break; --- > i=sarg1; break; since (in V6 at least) the break system call does not return anything -- it leaves r0 untouched. If break zeros r0, then db mysteriously fails to load the symbols from binaries. --- tools/apout/v7trap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/apout/v7trap.c b/tools/apout/v7trap.c index 6d40d41..00a2f31 100644 --- a/tools/apout/v7trap.c +++ b/tools/apout/v7trap.c @@ -1,8 +1,8 @@ /* v7trap.c - Deal with V7 trap instructions. V5 and V6 syscalls are also * done here, because the syscall interface is nearly the same as V7. * - * $Revision: 1.49 $ - * $Date: 2008/05/19 13:24:35 $ + * $Revision: 1.50 $ + * $Date: 2008/05/19 13:45:58 $ */ #include "defines.h" #include @@ -125,7 +125,7 @@ v7trap() case S_LOCK: case S_STIME: case S_BREAK: - i=0; break; + i=sarg1; break; case S_SYNC: sync(); i=0; break;