Rename gdb exception types
[deliverable/binutils-gdb.git] / gdb / dwarf-index-write.c
index 01c1256bcb63ef81a5341ec6a13bf2d8a97cb648..3f96ffdafb628bd297052daea3282afe37ce5a00 100644 (file)
@@ -1675,19 +1675,18 @@ save_gdb_index_command (const char *arg, int from_tty)
 
       if (dwarf2_per_objfile != NULL)
        {
-         TRY
+         try
            {
              const char *basename = lbasename (objfile_name (objfile));
              write_psymtabs_to_index (dwarf2_per_objfile, arg, basename,
                                       index_kind);
            }
-         CATCH (except, RETURN_MASK_ERROR)
+         catch (const gdb_exception_error &except)
            {
              exception_fprintf (gdb_stderr, except,
                                 _("Error while writing index for `%s': "),
                                 objfile_name (objfile));
            }
-         END_CATCH
            }
 
     }
This page took 0.024538 seconds and 4 git commands to generate.