From c35475f9be6ff8985434778480594c62c7a0182d Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Fri, 18 Sep 1992 09:21:44 +0000 Subject: [PATCH] * 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! --- gdb/ChangeLog | 4 ++++ gdb/main.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0242843aa0..a13ab7e31f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ Fri Sep 18 02:07:39 1992 John Gilmore (gnu@cygnus.com) + * 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! + Support for accessing arbitrary MIPS stack frames in memory. * blockframe.c (get_prev_frame_info): If INIT_FRAME_PC_FIRST is diff --git a/gdb/main.c b/gdb/main.c index 54332490aa..924aa90312 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); } -- 2.34.1