improved error message when getting an exception printing a variable
[deliverable/binutils-gdb.git] / gdb / ada-valprint.c
index 91dc301af5f2d0f9f31e36c796dd605ebc90db6b..b4a48ce515248e92328f39ac356fc4e7f090f940 100644 (file)
@@ -1168,16 +1168,16 @@ ada_val_print (struct type *type,
               struct value *val,
               const struct value_print_options *options)
 {
-
-  /* XXX: this catches QUIT/ctrl-c as well.  Isn't that busted?  */
   TRY
     {
       ada_val_print_1 (type, embedded_offset, address,
                       stream, recurse, val, options,
                       current_language);
     }
-  CATCH (except, RETURN_MASK_ALL)
+  CATCH (except, RETURN_MASK_ERROR)
     {
+      fprintf_filtered (stream, _("<error reading variable: %s>"),
+                       except.message);
     }
   END_CATCH
 }
This page took 0.035958 seconds and 4 git commands to generate.