Rewrite TRY/CATCH
[deliverable/binutils-gdb.git] / gdb / windows-nat.c
index 47f6cbb541265c62f59931fb562412ee92325012..0df9e312d33c866b0b3942354895f427a33dcc7f 100644 (file)
@@ -943,15 +943,14 @@ handle_unload_dll ()
 static void
 catch_errors (void (*func) ())
 {
-  TRY
+  try
     {
       func ();
     }
-  CATCH (ex, RETURN_MASK_ALL)
+  catch (const gdb_exception_RETURN_MASK_ALL &ex)
     {
       exception_print (gdb_stderr, ex);
     }
-  END_CATCH
 }
 
 /* Clear list of loaded DLLs.  */
This page took 0.025221 seconds and 4 git commands to generate.