PR24704, Internal error building skiboot for powerpc64-linux-gnu
[binutils-gdb.git] / gdb / gnu-v3-abi.c
index 15c7c66700133c119e7b556946f5b886c17761cb..6407c9beb82fe3aeb6dd0b5ef1aa9d855bfa939e 100644 (file)
@@ -906,16 +906,15 @@ print_one_vtable (struct gdbarch *gdbarch, struct value *value,
       if (gdbarch_vtable_function_descriptors (gdbarch))
        vfn = value_addr (vfn);
 
-      TRY
+      try
        {
          addr = value_as_address (vfn);
        }
-      CATCH (ex, RETURN_MASK_ERROR)
+      catch (const gdb_exception_error &ex)
        {
-         printf_filtered (_("<error: %s>"), ex.message);
+         printf_filtered (_("<error: %s>"), ex.what ());
          got_error = 1;
        }
-      END_CATCH
 
       if (!got_error)
        print_function_pointer_address (opts, gdbarch, addr, gdb_stdout);