From fd0ef3dda9fa7af181d059e4b3e26c17c1385c0d Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Mon, 4 Aug 2014 14:08:46 +0100 Subject: Replace hardwired error handler in captured_main If the requested interpreter cannot be set captured_main reports the error with a hardwired fprintf/exit pair. A fprintf/exit pair on the previous line was replaced with a call to error in March 2003 (https://sourceware.org/ml/gdb-patches/2003-03/msg00444.html) but I found no documentation as to why this particular hardwired handler was left untouched. I was also unable to come up with a situation where error would not be suitable, so I have replaced it with a call to error. gdb/ChangeLog: * main.c (captured_main): Replace a fprintf/exit pair with a call to error. Wrap the message with _(). --- gdb/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/ChangeLog') 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 + * main.c (captured_main): Replace a fprintf/exit + pair with a call to error. Wrap the message with _(). + +2014-08-29 Gary Benson + * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit pairs with calls to error. Wrap the message with _(). -- cgit v1.1