diff options
Diffstat (limited to 'gdb/cp-abi.c')
-rw-r--r-- | gdb/cp-abi.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c index b858b19..f82da4b 100644 --- a/gdb/cp-abi.c +++ b/gdb/cp-abi.c @@ -73,13 +73,13 @@ baseclass_offset (struct type *type, int index, const gdb_byte *valaddr, gdb_assert (current_cp_abi.baseclass_offset != NULL); - TRY + try { res = (*current_cp_abi.baseclass_offset) (type, index, valaddr, embedded_offset, address, val); } - CATCH (ex, RETURN_MASK_ERROR) + catch (const gdb_exception_RETURN_MASK_ERROR &ex) { if (ex.error != NOT_AVAILABLE_ERROR) throw_exception (ex); @@ -88,7 +88,6 @@ baseclass_offset (struct type *type, int index, const gdb_byte *valaddr, _("Cannot determine virtual baseclass offset " "of incomplete object")); } - END_CATCH return res; } @@ -112,15 +111,14 @@ value_rtti_type (struct value *v, int *full, if ((current_cp_abi.rtti_type) == NULL) return NULL; - TRY + try { ret = (*current_cp_abi.rtti_type) (v, full, top, using_enc); } - CATCH (e, RETURN_MASK_ERROR) + catch (const gdb_exception_RETURN_MASK_ERROR &e) { return NULL; } - END_CATCH return ret; } |