aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-abi.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/cp-abi.c')
-rw-r--r--gdb/cp-abi.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c
index 7ac2a20..a15e359 100644
--- a/gdb/cp-abi.c
+++ b/gdb/cp-abi.c
@@ -199,6 +199,16 @@ cplus_typeid_type (struct gdbarch *gdbarch)
return (*current_cp_abi.get_typeid_type) (gdbarch);
}
+/* See cp-abi.h. */
+
+struct type *
+cplus_type_from_type_info (struct value *value)
+{
+ if (current_cp_abi.get_type_from_type_info == NULL)
+ error (_("GDB cannot find the type from a std::type_info on this target"));
+ return (*current_cp_abi.get_type_from_type_info) (value);
+}
+
int
cp_pass_by_reference (struct type *type)
{