This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix thinko in print_doc_line.


Hi.

I was getting a failure in ui-redirect.exp, an internal gdb error.
I traced it to this, committed as obvious.

2012-04-25  Doug Evans  <dje@google.com>

	* cli/cli-decode.c (print_doc_line): Use stream instead of
	current_uiout.

Index: cli/cli-decode.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-decode.c,v
retrieving revision 1.101
diff -u -p -r1.101 cli-decode.c
--- cli/cli-decode.c	28 Jan 2012 18:08:21 -0000	1.101
+++ cli/cli-decode.c	25 Apr 2012 18:57:59 -0000
@@ -1018,7 +1018,7 @@ print_doc_line (struct ui_file *stream, 
   line_buffer[p - str] = '\0';
   if (islower (line_buffer[0]))
     line_buffer[0] = toupper (line_buffer[0]);
-  ui_out_text (current_uiout, line_buffer);
+  ui_out_text (stream, line_buffer);
 }
 
 /* Print one-line help for command C.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]