Index: gdb/cp-abi.c |
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c |
index cdc4a139cffff691bb236e2a53bdba3be5fe2cf3..16b53566b58fbd0e24b063862d570ebea3ff51b9 100644 |
--- a/gdb/cp-abi.c |
+++ b/gdb/cp-abi.c |
@@ -111,7 +111,7 @@ value_rtti_type (struct value *v, int *full, |
int *top, int *using_enc) |
{ |
struct type *ret = NULL; |
- struct gdb_exception e; |
+ volatile struct gdb_exception e; |
if ((current_cp_abi.rtti_type) == NULL) |
return NULL; |
@@ -169,6 +169,16 @@ cplus_method_ptr_to_value (struct value **this_p, |
return (*current_cp_abi.method_ptr_to_value) (this_p, method_ptr); |
} |
+/* See cp-abi.h. */ |
+ |
+void |
+cplus_print_vtable (struct value *value) |
+{ |
+ if (current_cp_abi.print_vtable == NULL) |
+ error (_("GDB cannot print the vtable on this target")); |
+ return (*current_cp_abi.print_vtable) (value); |
+} |
+ |
int |
cp_pass_by_reference (struct type *type) |
{ |