aboutsummaryrefslogtreecommitdiff
path: root/gdb/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/exceptions.c')
-rw-r--r--gdb/exceptions.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/exceptions.c b/gdb/exceptions.c
index def1f41..ddaf250 100644
--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -390,7 +390,7 @@ throw_verror (enum errors error, const char *fmt, va_list ap)
}
void
-throw_vfatal (const char *fmt, va_list ap)
+throw_vquit (const char *fmt, va_list ap)
{
throw_it (RETURN_QUIT, GDB_NO_ERROR, fmt, ap);
}
@@ -401,7 +401,17 @@ throw_error (enum errors error, const char *fmt, ...)
va_list args;
va_start (args, fmt);
- throw_it (RETURN_ERROR, error, fmt, args);
+ throw_verror (error, fmt, args);
+ va_end (args);
+}
+
+void
+throw_quit (const char *fmt, ...)
+{
+ va_list args;
+
+ va_start (args, fmt);
+ throw_vquit (fmt, args);
va_end (args);
}