gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gdb / selftest-arch.c
index 7a64295efa8e762addd167abe5c825771079ea97..91d9f8673724e7b3160867bb5e6eb68b8afa3349 100644 (file)
@@ -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 "common/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 ();
       }
This page took 0.026734 seconds and 4 git commands to generate.