aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-18 09:21:44 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-18 09:21:44 +0000
commitc35475f9be6ff8985434778480594c62c7a0182d (patch)
tree345540852005fa684f70509f490508ec1c600eaa /gdb/main.c
parent2886f8b253118f6414e46d6944fb715fb8c92fcb (diff)
downloadgdb-c35475f9be6ff8985434778480594c62c7a0182d.zip
gdb-c35475f9be6ff8985434778480594c62c7a0182d.tar.gz
gdb-c35475f9be6ff8985434778480594c62c7a0182d.tar.bz2
* main.c (gdb_readline): Avoid printf_filtered, which sets char
position wrong if used for the prompt. * utils.c (puts_filtered): Comment: NOT a puts() replacement!
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 5433249..924aa90 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -1010,7 +1010,10 @@ gdb_readline (prrompt)
if (prrompt)
{
- printf_filtered (prrompt);
+ /* Don't use a _filtered function here. It causes the assumed
+ character position to be off, since the newline we read from
+ the user is not accounted for. */
+ fputs (prrompt, stdout);
fflush (stdout);
}