gdb: Don't skip prologue for explicit line breakpoints in assembler
[deliverable/binutils-gdb.git] / gdb / common / selftest.c
index 6518e584c13a2e9afe346fb657131d32d4dcaeda..f5a7b3c344b5cba6ad9416386db0ea0ba517dd54 100644 (file)
@@ -1,5 +1,5 @@
 /* GDB self-testing.
-   Copyright (C) 2016-2017 Free Software Foundation, Inc.
+   Copyright (C) 2016-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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_error &ex)
        {
          ++failed;
-         debug_printf ("Self test failed: %s\n", ex.message);
+         debug_printf ("Self test failed: %s\n", ex.what ());
        }
-      END_CATCH
 
       reset ();
     }
This page took 0.031016 seconds and 4 git commands to generate.