contrib/gdb-7/gdb/utils.c
static void
prompt_for_continue (void)
{
  char *ignore;
  char cont_prompt[120];

  if (annotation_level > 1)
    printf_unfiltered (("\n\032\032pre-prompt-for-continue\n"));

  strcpy (cont_prompt,
	  "---Type <return> to continue, or q <return> to quit---");
  if (annotation_level > 1)
    strcat (cont_prompt, "\n\032\032prompt-for-continue\n");

  /* We must do this *before* we call gdb_readline, else it will eventually
     call us -- thinking that we're trying to print beyond the end of the 
     screen.  */
  reinitialize_more_filter ();

  immediate_quit++;
  /* On a real operating system, the user can quit with SIGINT.
     But not on GO32.

     'q' is provided on all systems so users don't have to change habits
     from system to system, and because telling them what to do in
     the prompt is more user-friendly than expecting them to think of
     SIGINT.  */
  /* Call readline, not gdb_readline, because GO32 readline handles control-C
     whereas control-C to gdb_readline will cause the user to get dumped
     out to DOS.  */
  ignore = gdb_readline_wrapper (cont_prompt);

  if (annotation_level > 1)
    printf_unfiltered (("\n\032\032post-prompt-for-continue\n"));

  if (ignore)
    {
      char *p = ignore;

      while (*p == ' ' || *p == '\t')
	++p;
      if (p[0] == 'q')
	async_request_quit (0);
      xfree (ignore);
    }
  immediate_quit--;

  /* Now we have to do this again, so that GDB will know that it doesn't
     need to save the ---Type <return>--- line at the top of the screen.  */
  reinitialize_more_filter ();

  dont_repeat ();		/* Forget prev cmd -- CR won't repeat it.  */
}
/* Wait, so the user can read what's on the screen.  Prompt the user
   to continue by pressing RETURN.  */
Wait, so the user can read what's on the screen.  Prompt the user
to continue by pressing RETURN.
Wait so the user can read what ' s on the screen . Prompt the user to continue by pressing RETURN .
static void
prompt_for_continue (void)
{
  char *ignore;
  char cont_prompt[120];
  if (annotation_level > 1)
    printf_unfiltered (("\n\032\032pre-prompt-for-continue\n"));
  strcpy (cont_prompt,
	  "---Type <return> to continue, or q <return> to quit---");
  if (annotation_level > 1)
    strcat (cont_prompt, "\n\032\032prompt-for-continue\n");
  reinitialize_more_filter ();
  immediate_quit++;
  ignore = gdb_readline_wrapper (cont_prompt);
  if (annotation_level > 1)
    printf_unfiltered (("\n\032\032post-prompt-for-continue\n"));
  if (ignore)
    {
      char *p = ignore;
      while (*p == ' ' || *p == '\t')
	++p;
      if (p[0] == 'q')
	async_request_quit (0);
      xfree (ignore);
    }
  immediate_quit--;
  reinitialize_more_filter ();
  dont_repeat ();		
}
static void prompt_for_continue ( void ) { char * ignore ; char cont_prompt [ 120 ] ; if ( annotation_level > 1 ) printf_unfiltered ( ( " \n \032 \032 \n " ) ) ; strcpy ( cont_prompt , " " ) ; if ( annotation_level > 1 ) strcat ( cont_prompt , " \n \032 \032 \n " ) ; reinitialize_more_filter ( ) ; immediate_quit ++ ; ignore = gdb_readline_wrapper ( cont_prompt ) ; if ( annotation_level > 1 ) printf_unfiltered ( ( " \n \032 \032 \n " ) ) ; if ( ignore ) { char * p = ignore ; while ( * p == ' ' || * p == ' \t ' ) ++ p ; if ( p [ 0 ] == ' ' ) async_request_quit ( 0 ) ; xfree ( ignore ) ; } immediate_quit -- ; reinitialize_more_filter ( ) ; dont_repeat ( ) ; }
Wait, so the user can read what's on the screen.
Wait so the user can read what ' s on the screen .
/* We must do this *before* we call gdb_readline, else it will eventually
     call us -- thinking that we're trying to print beyond the end of the 
     screen.  */ /* On a real operating system, the user can quit with SIGINT.
     But not on GO32.

     'q' is provided on all systems so users don't have to change habits
     from system to system, and because telling them what to do in
     the prompt is more user-friendly than expecting them to think of
     SIGINT.  */ /* Call readline, not gdb_readline, because GO32 readline handles control-C
     whereas control-C to gdb_readline will cause the user to get dumped
     out to DOS.  */ /* Now we have to do this again, so that GDB will know that it doesn't
     need to save the ---Type <return>--- line at the top of the screen.  */ /* Forget prev cmd -- CR won't repeat it.  */