aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/selftest.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/common/selftest.c')
-rw-r--r--gdb/common/selftest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/common/selftest.c b/gdb/common/selftest.c
index 1e73708..3f3ff74 100644
--- a/gdb/common/selftest.c
+++ b/gdb/common/selftest.c
@@ -81,18 +81,17 @@ run_tests (const char *filter)
&& name.find (filter) == std::string::npos)
continue;
- TRY
+ try
{
debug_printf (_("Running selftest %s.\n"), name.c_str ());
++ran;
(*test) ();
}
- CATCH (ex, RETURN_MASK_ERROR)
+ catch (const gdb_exception_RETURN_MASK_ERROR &ex)
{
++failed;
debug_printf ("Self test failed: %s\n", ex.what ());
}
- END_CATCH
reset ();
}