This is the mail archive of the gdb-patches@sources.redhat.com 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]

[ob] Delete error_output_message


It's never used.

committed,
Andrew
2005-01-14  Andrew Cagney  <cagney@gnu.org>

	* utils.c (error_output_message): Delete function.
	* defs.h (error_output_message): Delete declaration.

Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.178
diff -p -u -r1.178 defs.h
--- defs.h	14 Jan 2005 20:24:20 -0000	1.178
+++ defs.h	14 Jan 2005 21:28:08 -0000
@@ -893,9 +893,6 @@ extern NORETURN void error (const char *
 
 extern NORETURN void error_stream (struct ui_file *) ATTR_NORETURN;
 
-/* Output arbitrary error message.  */
-extern void error_output_message (char *pre_print, char *msg);
-
 extern NORETURN void vfatal (const char *fmt, va_list ap) ATTR_NORETURN;
 
 extern NORETURN void fatal (const char *fmt, ...) ATTR_NORETURN ATTR_FORMAT (printf, 1, 2);
Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.144
diff -p -u -r1.144 utils.c
--- utils.c	14 Jan 2005 20:24:20 -0000	1.144
+++ utils.c	14 Jan 2005 21:28:09 -0000
@@ -641,20 +641,6 @@ fatal (const char *string, ...)
   va_end (args);
 }
 
-/* Output an error message including any pre-print text to gdb_stderr.  */
-void
-error_output_message (char *pre_print, char *msg)
-{
-  target_terminal_ours ();
-  wrap_here ("");		/* Force out any buffered output */
-  gdb_flush (gdb_stdout);
-  annotate_error_begin ();
-  if (pre_print)
-    fputs_filtered (pre_print, gdb_stderr);
-  fputs_filtered (msg, gdb_stderr);
-  fprintf_filtered (gdb_stderr, "\n");
-}
-
 NORETURN void
 error_stream (struct ui_file *stream)
 {

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