From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5057 invoked by alias); 10 Mar 2008 17:01:19 -0000 Received: (qmail 5045 invoked by uid 22791); 10 Mar 2008 17:01:18 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Mar 2008 17:01:01 +0000 Received: (qmail 14953 invoked from network); 10 Mar 2008 17:00:59 -0000 Received: from unknown (HELO localhost) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Mar 2008 17:00:59 -0000 From: Vladimir Prus Date: Mon, 10 Mar 2008 17:01:00 -0000 Subject: [RFA] Remove simplified_command_loop. To: gdb-patches@sources.redhat.com X-TUID: c1191ada343d2fc1 X-Length: 1755 X-UID: 142 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803102000.57308.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00100.txt.bz2 I cannot find any use of simplified_command_loop neither in gdb proper, nor in gdbtk, from which I conclude this is not longer needed. OK? - Volodya * top.c (simplified_command_loop): Remove. --- gdb/top.c | 35 ----------------------------------- 1 files changed, 0 insertions(+), 35 deletions(-) diff --git a/gdb/top.c b/gdb/top.c index b1efb2b..8867c7a 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -632,41 +632,6 @@ command_loop (void) } } } - -/* Read commands from `instream' and execute them until end of file or - error reading instream. This command loop doesnt care about any - such things as displaying time and space usage. If the user asks - for those, they won't work. */ -void -simplified_command_loop (char *(*read_input_func) (char *), - void (*execute_command_func) (char *, int)) -{ - struct cleanup *old_chain; - char *command; - int stdin_is_tty = ISATTY (stdin); - - while (instream && !feof (instream)) - { - quit_flag = 0; - if (instream == stdin && stdin_is_tty) - reinitialize_more_filter (); - old_chain = make_cleanup (null_cleanup, 0); - - /* Get a command-line. */ - command = (*read_input_func) (instream == stdin ? - get_prompt () : (char *) NULL); - - if (command == 0) - return; - - (*execute_command_func) (command, instream == stdin); - - /* Do any commands attached to breakpoint we stopped at. */ - bpstat_do_actions (&stop_bpstat); - - do_cleanups (old_chain); - } -} /* Commands call this if they do not want to be repeated by null lines. */ -- 1.5.3.5