Fix crash in dwarf2read.c with template parameters
[deliverable/binutils-gdb.git] / gdb / ada-valprint.c
index d4661e1f1d4c451220092ad9958a900b8b0a831a..5d7823d7204186afd43f87b9ec58fa381184d724 100644 (file)
@@ -1203,18 +1203,17 @@ ada_val_print (struct type *type,
               struct value *val,
               const struct value_print_options *options)
 {
-  TRY
+  try
     {
       ada_val_print_1 (type, embedded_offset, address,
                       stream, recurse, val, options,
                       current_language);
     }
-  CATCH (except, RETURN_MASK_ERROR)
+  catch (const gdb_exception_error &except)
     {
       fprintf_filtered (stream, _("<error reading variable: %s>"),
-                       except.message);
+                       except.what ());
     }
-  END_CATCH
 }
 
 void
This page took 0.023466 seconds and 4 git commands to generate.