X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fselftest-arch.c;h=91d9f8673724e7b3160867bb5e6eb68b8afa3349;hb=6ba0a321037b748f0b1285c44af762021a380bd3;hp=bcdd38d771823bde4a3bfb41dec13f56c960cad7;hpb=42a4f53d2bf8938c2aeda9f52be7a20534b214a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/selftest-arch.c b/gdb/selftest-arch.c index bcdd38d771..91d9f86737 100644 --- a/gdb/selftest-arch.c +++ b/gdb/selftest-arch.c @@ -1,5 +1,5 @@ /* GDB self-test for each gdbarch. - Copyright (C) 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2017-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,7 @@ #include "defs.h" #if GDB_SELF_TEST -#include "selftest.h" +#include "gdbsupport/selftest.h" #include "selftest-arch.h" #include "arch-utils.h" @@ -60,7 +60,7 @@ struct gdbarch_selftest : public selftest QUIT; - TRY + try { struct gdbarch_info info; @@ -72,13 +72,12 @@ struct gdbarch_selftest : public selftest function (gdbarch); } - CATCH (ex, RETURN_MASK_ERROR) + catch (const gdb_exception_error &ex) { pass = false; exception_fprintf (gdb_stderr, ex, _("Self test failed: arch %s: "), arches[i]); } - END_CATCH reset (); }