changed "pc - 1" to "pc" in getsrcpos, the source module has no business
[unix-history] / usr / src / old / dbx / coredump.c
index dbb42b0..ceee883 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1982 Regents of the University of California */
 
 /* Copyright (c) 1982 Regents of the University of California */
 
-static char sccsid[] = "@(#)@(#)coredump.c 1.1 %G%";
+static char sccsid[] = "@(#)coredump.c 1.4 %G%";
 
 /*
  * Deal with the core dump anachronism.
 
 /*
  * Deal with the core dump anachronism.
@@ -15,11 +15,11 @@ static char sccsid[] = "@(#)@(#)coredump.c 1.1 %G%";
 #include "main.h"
 #include <sys/param.h>
 #include <sys/dir.h>
 #include "main.h"
 #include <sys/param.h>
 #include <sys/dir.h>
-#include <sys/psl.h>
-#include <sys/pte.h>
+#include <machine/psl.h>
+#include <machine/pte.h>
 #include <sys/user.h>
 #include <sys/vm.h>
 #include <sys/user.h>
 #include <sys/vm.h>
-#include <sys/reg.h>
+#include <machine/reg.h>
 #include <a.out.h>
 
 #ifndef public
 #include <a.out.h>
 
 #ifndef public
@@ -108,7 +108,7 @@ int *signo;
       hdr.a_magic != up->u_exdata.ux_mag) {
        warning("core dump ignored");
        coredump = false;
       hdr.a_magic != up->u_exdata.ux_mag) {
        warning("core dump ignored");
        coredump = false;
-       fclose(coredump);
+       fclose(corefile);
        fclose(objfile);
        start(nil, nil, nil);
     }
        fclose(objfile);
        start(nil, nil, nil);
     }