Fix latent bug with custom word point completers
[deliverable/binutils-gdb.git] / gdb / ada-typeprint.c
index efcd14bedc57952be228e6f0853c071f590935e6..89a69e9bd4435b7be86eea82f8713f95655154f4 100644 (file)
@@ -163,12 +163,12 @@ print_range (struct type *type, struct ui_file *stream,
        LONGEST lo = 0, hi = 0; /* init for gcc -Wall */
        int got_error = 0;
 
-       TRY
+       try
          {
            lo = ada_discrete_type_low_bound (type);
            hi = ada_discrete_type_high_bound (type);
          }
-       CATCH (e, RETURN_MASK_ERROR)
+       catch (const gdb_exception_error &e)
          {
            /* This can happen when the range is dynamic.  Sometimes,
               resolving dynamic property values requires us to have
@@ -178,7 +178,6 @@ print_range (struct type *type, struct ui_file *stream,
            fprintf_filtered (stream, "<>");
            got_error = 1;
          }
-       END_CATCH
 
        if (!got_error)
          {
This page took 0.025394 seconds and 4 git commands to generate.