aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-03-14 17:46:54 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-03-14 17:46:54 +0000
commit952dc227b2fbc938feb2c4b8b9d5a4d5ed7473ad (patch)
treea7268117365025dd9fe59e51fec92fa93804b5bf
parent4cf46804f3a6d4ab31cbb59831b7ee18fae99498 (diff)
downloadgdb-952dc227b2fbc938feb2c4b8b9d5a4d5ed7473ad.zip
gdb-952dc227b2fbc938feb2c4b8b9d5a4d5ed7473ad.tar.gz
gdb-952dc227b2fbc938feb2c4b8b9d5a4d5ed7473ad.tar.bz2
* top.c (simplified_command_loop): Remove.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/top.c35
2 files changed, 4 insertions, 35 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0ecd1d1..075a799 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
+ * top.c (simplified_command_loop): Remove.
+
+2008-03-14 Vladimir Prus <vladimir@codesourcery.com>
+
Remove unused remote.c hooks.
* remote.c (deprecated_target_resume_hook)
(deprecated_target_wait_loop_hook): Remove.
diff --git a/gdb/top.c b/gdb/top.c
index fba212b..c205ec3 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -554,41 +554,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. */