PR c++/15176:
[deliverable/binutils-gdb.git] / gdb / cp-abi.c
index 7ac2a204c6300ae895efcf4b931e28aba63913c6..a15e35902a0d60c11688657d8de970fa66b7395b 100644 (file)
@@ -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)
 {
This page took 0.024046 seconds and 4 git commands to generate.