gdb/
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index 6c809a401a3511583a365e2acfa565ad7ceb3717..9069a1122e768e0e629a41d7de3973e14a60a58d 100644 (file)
@@ -239,6 +239,21 @@ get_type_arch (const struct type *type)
     return TYPE_OWNER (type).gdbarch;
 }
 
+/* See gdbtypes.h.  */
+
+struct type *
+get_target_type (struct type *type)
+{
+  if (type != NULL)
+    {
+      type = TYPE_TARGET_TYPE (type);
+      if (type != NULL)
+       type = check_typedef (type);
+    }
+
+  return type;
+}
+
 /* Alloc a new type instance structure, fill it with some defaults,
    and point it at OLDTYPE.  Allocate the new type instance from the
    same place as OLDTYPE.  */
This page took 0.024812 seconds and 4 git commands to generate.