Fix off-by-one errors in *scanf format strings.
[deliverable/binutils-gdb.git] / gdb / cp-abi.c
index a15e35902a0d60c11688657d8de970fa66b7395b..2540eca17aa14346f97f46f0c82bf9c1031f698c 100644 (file)
@@ -209,6 +209,17 @@ cplus_type_from_type_info (struct value *value)
   return (*current_cp_abi.get_type_from_type_info) (value);
 }
 
+/* See cp-abi.h.  */
+
+char *
+cplus_typename_from_type_info (struct value *value)
+{
+  if (current_cp_abi.get_typename_from_type_info == NULL)
+    error (_("GDB cannot find the type name "
+            "from a std::type_info on this target"));
+  return (*current_cp_abi.get_typename_from_type_info) (value);
+}
+
 int
 cp_pass_by_reference (struct type *type)
 {
This page took 0.027093 seconds and 4 git commands to generate.