aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-01-14 21:34:36 +0000
committerAndrew Cagney <cagney@redhat.com>2005-01-14 21:34:36 +0000
commit22e9b0f12e97492fdffa9f212e61d877ffdb1030 (patch)
treebceda1e0855e6ab9ac63198da0d0a904d80f7c8f
parent05ff989b0b012d3c83f5908dd9750e01a74cc3de (diff)
downloadgdb-22e9b0f12e97492fdffa9f212e61d877ffdb1030.zip
gdb-22e9b0f12e97492fdffa9f212e61d877ffdb1030.tar.gz
gdb-22e9b0f12e97492fdffa9f212e61d877ffdb1030.tar.bz2
2005-01-14 Andrew Cagney <cagney@gnu.org>
* utils.c (error_output_message): Delete function. * defs.h (error_output_message): Delete declaration.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/defs.h3
-rw-r--r--gdb/utils.c14
3 files changed, 3 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a22ece8..835d828 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2005-01-14 Andrew Cagney <cagney@gnu.org>
+ * utils.c (error_output_message): Delete function.
+ * defs.h (error_output_message): Delete declaration.
+
* linespec.c (symtab_from_filename, decode_variable): Use
throw_error instead of error_silent.
* breakpoint.c (do_captured_parse_breakpoint): Change return type
diff --git a/gdb/defs.h b/gdb/defs.h
index c87f083..44eb9c1 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -893,9 +893,6 @@ extern NORETURN void error (const char *fmt, ...) ATTR_NORETURN ATTR_FORMAT (pri
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);
diff --git a/gdb/utils.c b/gdb/utils.c
index a7eea61..08dfdd4 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -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)
{