This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/10662] New: Feature regression with pretty printed types
- From: "alexl at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 18 Sep 2009 20:06:31 -0000
- Subject: [Bug python/10662] New: Feature regression with pretty printed types
- Reply-to: sourceware-bugzilla at sourceware dot org
With no pretty printer a pointer variable is shown differently in a backtrace
and when its printer. For instance:
#11 0xf5299998 in g_main_context_iterate (context=0x6dd490,...) at gmain.c:2591
(gdb) p context
$4 = (GMainContext *) 0x6dd490
However, if i add a pretty printer for a pointer type this disappears. For
instance, here is a pretty printer that adds runtime type info:
(gdb) p/r widget
$2 = (GtkWidget *) 0x73e040
(gdb) p widget
$3 = 0x73e040 [GeditWindow]
I could add the defined type in the pretty printer, but then it would also
always be visible in the backtraces. I would like to get some kind of flag to
the to_string() method (or maybe an additional optional method) so i can decide
which version to return.
--
Summary: Feature regression with pretty printed types
Product: gdb
Version: archer
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: alexl at redhat dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10662
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.