/* Copyright (c) 1982 Regents of the University of California */
static char sccsid
[] = "@(#)pstatus.c 1.3 2/11/82";
* process status routines
* Print the status of the process.
* This routine does not return.
if (process
->signo
== SIGINT
) {
if (isbperr() && isstopped
) {
skimsource(srcfilename(pc
));
printwhere(curline
, cursource
);
printlines(curline
, curline
);
if (process
->status
== FINISHED
) {
* Print out the "line N [in file F]" information that accompanies
* messages in various places.
printwhere(lineno
, filename
)
printf("line %d", lineno
);
printf(" in file %s", filename
);
printf("location %d\n", pc
);
printf("location 0x%x\n", pc
);
* Return TRUE if the process is finished.
return(p
->status
== FINISHED
);