diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 47f6cbb5412..0df9e312d33 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -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. */ |