From cad1498f8a8aaa41ca54ffdde76263740372975a Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Sat, 23 Jul 1994 00:53:28 +0000 Subject: * Makefile.in: Add stuff to build nlmstub. * Add rule for annotate.o to keep Sun make happy. * configure.in: Add config for powerpc/Netware. * partial-stab.h (near N_SO): Don't call START_PSYMTAB with null filename. This speeds up handling of trailing N_SO stabs (they mark the end of a .o file). * target.c, target.h: Change the way pushing and popping of targets work to support target overlays and inheritance. * corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c: Fixup references to current_target, due to previous changes. * config/i386/tm-i386nw.h: Enable longjmp support. More work is needed to get the address of longjmp out of the target. --- gdb/utils.c | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'gdb/utils.c') diff --git a/gdb/utils.c b/gdb/utils.c index de02160b6e4..e7f4b9cee29 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -465,7 +465,7 @@ quit () if (job_control /* If there is no terminal switching for this target, then we can't possibly get screwed by the lack of job control. */ - || current_target->to_terminal_ours == NULL) + || current_target.to_terminal_ours == NULL) fprintf_unfiltered (gdb_stderr, "Quit\n"); else fprintf_unfiltered (gdb_stderr, @@ -541,8 +541,12 @@ request_quit (signo) about USG defines and stuff like that. */ signal (signo, request_quit); +#ifdef REQUEST_QUIT + REQUEST_QUIT; +#else if (immediate_quit) quit (); +#endif } @@ -823,6 +827,13 @@ query (va_alist) /* Automatically answer "yes" if input is not from a terminal. */ if (!input_from_terminal_p ()) return 1; +/* start-sanitize-mpw */ +#ifdef MPW + /* Automatically answer "yes" if called from MacGDB. */ + if (mac_app) + return 1; +#endif /* MPW */ +/* end-sanitize-mpw */ while (1) { @@ -841,6 +852,14 @@ query (va_alist) if (annotation_level > 1) printf_filtered ("\n\032\032query\n"); +/* start-sanitize-mpw */ +#ifdef MPW + /* If not in MacGDB, move to a new line so the entered line doesn't + have a prompt on the front of it. */ + if (!mac_app) + fputs_unfiltered ("\n", gdb_stdout); +#endif /* MPW */ +/* end-sanitize-mpw */ gdb_flush (gdb_stdout); answer = fgetc (stdin); clearerr (stdin); /* in case of C-d */ @@ -1148,6 +1167,10 @@ void wrap_here(indent) char *indent; { + /* This should have been allocated, but be paranoid anyway. */ + if (!wrap_buffer) + abort (); + if (wrap_buffer[0]) { *wrap_pointer = '\0'; @@ -1331,16 +1354,6 @@ fputs_filtered (linebuffer, stream) fputs_maybe_filtered (linebuffer, stream, 1); } -#ifndef FPUTS_UNFILTERED_OVERRIDE -void -fputs_unfiltered (linebuffer, stream) - const char *linebuffer; - FILE *stream; -{ - fputs (linebuffer, stream); -} -#endif /* FPUTS_UNFILTERED_OVERRIDE */ - void putc_unfiltered (c) int c; -- cgit v1.2.1