aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-11-12 17:26:21 +0000
committerTom Tromey <tromey@redhat.com>2012-11-12 17:26:21 +0000
commit53342f27db8e8a418ac202335ac2e55af50c1c2f (patch)
treece676d5c4c9bedaad60673e5ef3f3960571433a3 /gdb/python
parent6c8702eb92aa9ebaaf9367e54fa6e392d989c589 (diff)
downloadgdb-53342f27db8e8a418ac202335ac2e55af50c1c2f.zip
gdb-53342f27db8e8a418ac202335ac2e55af50c1c2f.tar.gz
gdb-53342f27db8e8a418ac202335ac2e55af50c1c2f.tar.bz2
* 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/python')
-rw-r--r--gdb/python/py-type.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index f20f974..1f4e72c 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -30,6 +30,7 @@
#include "vec.h"
#include "bcache.h"
#include "dwarf2loc.h"
+#include "typeprint.h"
typedef struct pyty_type_object
{
@@ -954,7 +955,8 @@ typy_str (PyObject *self)
stb = mem_fileopen ();
old_chain = make_cleanup_ui_file_delete (stb);
- type_print (type_object_to_type (self), "", stb, -1);
+ LA_PRINT_TYPE (type_object_to_type (self), "", stb, -1, 0,
+ &type_print_raw_options);
thetype = ui_file_xstrdup (stb, &length);
do_cleanups (old_chain);