From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14106 invoked by alias); 15 Mar 2010 22:49:10 -0000 Received: (qmail 14085 invoked by uid 48); 15 Mar 2010 22:49:09 -0000 Date: Mon, 15 Mar 2010 22:49:00 -0000 From: "chrisj at rtems dot org" To: gdb-prs@sourceware.org Message-ID: <20100315224909.11380.chrisj@rtems.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug python/11380] New: print formats (/FMT) do not invoke Python pretty printers 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: 2010-q1/txt/msg00457.txt.bz2 If a /FMT is used with the print command a type's pretty printer is not invoked. For example a pretty printer to print an RTEMS Object ID (an unsigned long) produces: (gdb) p /f the_semaphore->Object.id $10 = to_string = { id = 436273170, node = 1, api = classic, class = semaphores, index = 18 } and with a /FMT option added: (gdb) p /c the_semaphore->Object.id $15 = 18 '\022' (gdb) p /f the_semaphore->Object.id $16 = 2.66766316e-23 (gdb) p /u the_semaphore->Object.id $17 = 436273170 (gdb) p /t the_semaphore->Object.id $18 = 11010000000010000000000010010 It would be nice if the pretty printer followed the requested output where a printer is creating a struct type output (display hint 'struct'). -- Summary: print formats (/FMT) do not invoke Python pretty printers Product: gdb Version: 7.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: python AssignedTo: unassigned at sourceware dot org ReportedBy: chrisj at rtems dot org CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=11380 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.