aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/main.c7
2 files changed, 6 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 809afe5..8898962 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2014-08-29 Gary Benson <gbenson@redhat.com>
+ * main.c (captured_main): Replace a fprintf/exit
+ pair with a call to error. Wrap the message with _().
+
+2014-08-29 Gary Benson <gbenson@redhat.com>
+
* tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
pairs with calls to error. Wrap the message with _().
diff --git a/gdb/main.c b/gdb/main.c
index ed2187a..415b900 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -984,12 +984,7 @@ captured_main (void *data)
error (_("Interpreter `%s' unrecognized"), interpreter_p);
/* Install it. */
if (!interp_set (interp, 1))
- {
- fprintf_unfiltered (gdb_stderr,
- "Interpreter `%s' failed to initialize.\n",
- interpreter_p);
- exit (1);
- }
+ error (_("Interpreter `%s' failed to initialize."), interpreter_p);
}
/* FIXME: cagney/2003-02-03: The big hack (part 2 of 2) that lets