]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/typeprint.c
* ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
[thirdparty/binutils-gdb.git] / gdb / typeprint.c
index c25e705d1c7154bf5df410ec9eef948f6e885eed..cc51497746fd75a2f02e94933d5bff86da5da6a8 100644 (file)
@@ -45,6 +45,17 @@ static void whatis_command (char *, int);
 
 static void whatis_exp (char *, int);
 
+const struct type_print_options type_print_raw_options =
+{
+  1                            /* raw */
+};
+
+/* The default flags for 'ptype' and 'whatis'.  */
+
+static struct type_print_options default_ptype_flags =
+{
+  0                            /* raw */
+};
 
 /* Print a description of a type in the format of a 
    typedef for the current language.
@@ -76,7 +87,7 @@ void
 type_print (struct type *type, const char *varstring, struct ui_file *stream,
            int show)
 {
-  LA_PRINT_TYPE (type, varstring, stream, show, 0);
+  LA_PRINT_TYPE (type, varstring, stream, show, 0, &default_ptype_flags);
 }
 
 /* Print TYPE to a string, returning it.  The caller is responsible for