public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/10662] New: Feature regression with pretty printed types
@ 2009-09-18 20:06 alexl at redhat dot com
2009-09-18 20:11 ` [Bug python/10662] " tromey at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: alexl at redhat dot com @ 2009-09-18 20:06 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-18 20:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-18 20:06 [Bug python/10662] New: Feature regression with pretty printed types alexl at redhat dot com
2009-09-18 20:11 ` [Bug python/10662] " tromey at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).