summaryrefslogtreecommitdiff
path: root/gdb/typeprint.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-12 17:26:18 +0000
committerTom Tromey <tromey@redhat.com>2012-11-12 17:26:18 +0000
commit9fd6ecf117ad3235e06d154941f15aa037a0c21d (patch)
tree00eb4c31f8d7b1e98b2f07cac531d428424d26e7 /gdb/typeprint.h
parentcb8444995ae08213f95344a774cf1f6dfbdba56a (diff)
downloadgdb-9fd6ecf117ad3235e06d154941f15aa037a0c21d.tar.gz
* NEWS: Update.
* c-typeprint.c (c_type_print_base): Handle print_method and print_typedefs flags. * gdbcmd.h (setprinttypelist, showprinttypelist): Declare. * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw options. * typeprint.c (type_print_raw_options, default_ptype_flags): Update for new field.s (whatis_exp): Parse flags. Use LA_PRINT_TYPE. (setprinttypelist, showprinttypelist, print_methods, print_typedefs): New globals. (set_print_type, show_print_type, set_print_type_methods, show_print_type_methods, set_print_type_typedefs, show_print_type_typedefs): New functions. (_initialize_typeprint): Update documentation. Add "print type methods" and "print type typedefs" parameters. * typeprint.h (struct type_print_options) <print_methods, print_typedefs>: New fields. doc * gdb.texinfo (Symbols): Document "set print type methods", "set print type typedefs", and flags to ptype and whatis.
Diffstat (limited to 'gdb/typeprint.h')
-rw-r--r--gdb/typeprint.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/typeprint.h b/gdb/typeprint.h
index c57c75e45f4..1e1509782f9 100644
--- a/gdb/typeprint.h
+++ b/gdb/typeprint.h
@@ -27,6 +27,12 @@ struct type_print_options
{
/* True means that no special printing flags should apply. */
unsigned int raw : 1;
+
+ /* True means print methods in a class. */
+ unsigned int print_methods : 1;
+
+ /* True means print typedefs in a class. */
+ unsigned int print_typedefs : 1;
};
extern const struct type_print_options type_print_raw_options;