From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19902 invoked by alias); 27 Mar 2012 13:38:42 -0000 Received: (qmail 19884 invoked by uid 22791); 27 Mar 2012 13:38:41 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Mar 2012 13:38:28 +0000 From: "avi at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug exp/13907] New: RFE: Resolve static pointers in pretty printer Date: Tue, 27 Mar 2012 13:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: exp X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: avi at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2012-q1/txt/msg00475.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13907 Bug #: 13907 Summary: RFE: Resolve static pointers in pretty printer Product: gdb Version: 7.3 Status: NEW Severity: normal Priority: P2 Component: exp AssignedTo: unassigned@sourceware.org ReportedBy: avi@redhat.com Classification: Unclassified When gdb prints out a function pointer, it looks it up in the symbol table and prints the function name: $5 = {read = 0x55555567f85f , ... However, it doesn't do the same for data pointers: $3 = {ops = 0x555555b6ba60, ... (gdb) p &pic_base_ioport_ops $6 = (const MemoryRegionOps *) 0x555555b6ba60 It would be nice if $3 read as $3 = {ops = 0x555555b6ba60 <&pic_base_ioport_ops>, ... -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.