along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-
-/* Standard C includes. */
#include <ctype.h>
-
-/* Local non-gdb includes. */
-#include "ada-lang.h"
+#include "symtab.h"
+#include "gdbtypes.h"
+#include "expression.h"
+#include "value.h"
+#include "demangle.h"
+#include "valprint.h"
+#include "language.h"
#include "annotate.h"
+#include "ada-lang.h"
#include "c-lang.h"
-#include "demangle.h"
-#include "expression.h"
-#include "gdbtypes.h"
#include "infcall.h"
-#include "language.h"
#include "objfiles.h"
-#include "symtab.h"
#include "target-float.h"
-#include "valprint.h"
-#include "value.h"
static int print_field_values (struct type *, const gdb_byte *,
int,
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