aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/parse-connection-spec-selftests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/unittests/parse-connection-spec-selftests.c')
-rw-r--r--gdb/unittests/parse-connection-spec-selftests.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/unittests/parse-connection-spec-selftests.c b/gdb/unittests/parse-connection-spec-selftests.c
index 969c51e..a33b3d8 100644
--- a/gdb/unittests/parse-connection-spec-selftests.c
+++ b/gdb/unittests/parse-connection-spec-selftests.c
@@ -212,18 +212,17 @@ test_conn (const parse_conn_test &c)
memset (&hint, 0, sizeof (hint));
- TRY
+ try
{
ret = parse_connection_spec (c.connspec, &hint);
}
- CATCH (ex, RETURN_MASK_ERROR)
+ catch (const gdb_exception_RETURN_MASK_ERROR &ex)
{
/* If we caught an error, we should check if this connection
spec was supposed to fail. */
SELF_CHECK (c.should_fail);
return;
}
- END_CATCH
SELF_CHECK (!c.should_fail);
SELF_CHECK (ret.host_str == c.expected_result.host_str);