From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2429 invoked by alias); 18 Sep 2009 20:06:32 -0000 Received: (qmail 2415 invoked by uid 48); 18 Sep 2009 20:06:31 -0000 Date: Fri, 18 Sep 2009 20:06:00 -0000 From: "alexl at redhat dot com" To: gdb-prs@sourceware.org Message-ID: <20090918200631.10662.alexl@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug python/10662] New: Feature regression with pretty printed types X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00266.txt.bz2 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.