1
0
mirror of https://github.com/DoctorWkt/unix-jun72.git synced 2026-04-13 23:45:05 +00:00

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.
This commit is contained in:
warren.toomey
2008-05-19 13:46:53 +00:00
parent b51690ad06
commit 133fc4d8a8

View File

@@ -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 <sys/stat.h>
@@ -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;