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]

[PATCH 1/4] Remove deprecated_throw_reason from internal_verror.


Removes the use of deprecated_throw_reason from internal_verror.  The user
will now get an extra "Command aborted" error message in the case where gdb
hits an internal error, and the user decides not to quit.  This feels like
an improvement to me as it /might/ not be obvious that choosing to continue
the session will still drop you out of whatever command you were attempting
at the time.  What do you think?

OK to apply?

Thanks,
Andrew

gdb/ChangeLog

2013-07-30  Andrew Burgess  <aburgess@broadcom.com>

	* utils.c (internal_verror): Replace use of deprecated_throw_reason
	with throw_error.

diff --git a/gdb/utils.c b/gdb/utils.c
index 01212ab..a4ce01c 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -831,7 +831,7 @@ void
 internal_verror (const char *file, int line, const char *fmt, va_list ap)
 {
   internal_vproblem (&internal_error_problem, file, line, fmt, ap);
-  deprecated_throw_reason (RETURN_ERROR);
+  throw_error (GENERIC_ERROR, _("Command aborted"));
 }
 
 void



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