* defs.h (gdb_readline_wrapper): Declare.

* utils.c (prompt_for_continue): Use gdb_readline_wrapper.
	* tracepoint.c (read_actions): Use gdb_readline_wrapper.
	* top.c (gdb_readline_wrapper): New function.
	(command_line_input): Use it.
This commit is contained in:
Tom Tromey 2002-07-24 17:58:46 +00:00
parent 8e1a114b75
commit b4f5539f04
5 changed files with 36 additions and 3 deletions

View file

@ -854,7 +854,7 @@ read_actions (struct tracepoint *t)
line = (*readline_hook) (prompt);
else if (instream == stdin && ISATTY (instream))
{
line = readline (prompt);
line = gdb_readline_wrapper (prompt);
if (line && *line) /* add it to command history */
add_history (line);
}