SCCS-vsn: old/adb/common_source/main.c 5.5
-static char sccsid[] = "@(#)main.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.5 (Berkeley) %G%";
void fault();
off_t lseek();
void fault();
off_t lseek();
+static int readline();
+
main(argc, argv)
register int argc;
register char **argv;
main(argc, argv)
register int argc;
register char **argv;
* If the error occurred while the process was running,
* we need to remove any breakpoints.
*/
* If the error occurred while the process was running,
* we need to remove any breakpoints.
*/
- (void) setjmp(mainloop);
+ if (setjmp(mainloop))
+ waserr = 1; /* well, presumably */
+ else
+ waserr = 0;
if (executing) {
executing = 0;
delbp();
if (executing) {
executing = 0;
delbp();
* Alas, cannot read more than one character at a time here (except
* possibly on tty devices; must think about that later).
*/
* Alas, cannot read more than one character at a time here (except
* possibly on tty devices; must think about that later).
*/
readline(p, n)
register char *p;
register int n;
readline(p, n)
register char *p;
register int n;