* Copyright (c) 1982 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)remake.c 5.3 (Berkeley) %G%";
* Remake the object file from the source.
* Invoke "pi" on the dotpfile, then reread the symbol table information.
* We have to save tracing info before, and read it in after, because
* it might contain symbol table pointers.
* We also have to restart the process so that px dependent information
if (call("pi", stdin
, stdout
, dotpfile
, NIL
) == 0) {
if (strcmp(objname
, "obj") != 0) {
call("mv", stdin
, stdout
, "obj", objname
, NIL
);
tmpfile
= mktemp(strdup("/tmp/pdxXXXX"));