contrib/gdb-4.7.LBL/gdb/main.c
/* Read commands from `instream' and execute them
   until end of file or error reading instream.  */
Read commands from `instream' and execute them
until end of file or error reading instream.
Read commands from ` instream ' and execute them until end of file or error reading instream .
static void
command_loop ()
{
  struct cleanup *old_chain;
  register int toplevel = (instream == stdin);
  register int interactive = (toplevel && ISATTY(stdin));
  while (!feof(instream))
    {
      register char *cmd_line;
      quit_flag = 0;
      if (interactive)
	reinitialize_more_filter ();
      old_chain = make_cleanup (command_loop_marker, 0);
      cmd_line = command_line_input (toplevel ? masterprompt : 0, toplevel);
      if (cmd_line == 0)
        {
	  do_cleanups (old_chain);
	  return;
        }
      execute_command (cmd_line, toplevel);
      bpstat_do_actions (&stop_bpstat);
      do_cleanups (old_chain);
    }
}
static void command_loop ( ) { struct cleanup * old_chain ; register int toplevel = ( instream == stdin ) ; register int interactive = ( toplevel && ISATTY ( stdin ) ) ; while ( ! feof ( instream ) ) { register char * cmd_line ; quit_flag = 0 ; if ( interactive ) reinitialize_more_filter ( ) ; old_chain = make_cleanup ( command_loop_marker , 0 ) ; cmd_line = command_line_input ( toplevel ? masterprompt : 0 , toplevel ) ; if ( cmd_line == 0 ) { do_cleanups ( old_chain ) ; return ; } execute_command ( cmd_line , toplevel ) ; bpstat_do_actions ( & stop_bpstat ) ; do_cleanups ( old_chain ) ; } }
Read commands from `instream' and execute them
until end of file or error reading instream.
Read commands from ` instream ' and execute them until end of file or error reading instream .
/* Do any commands attached to breakpoint we stopped at.  */