From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14957 invoked by alias); 11 Nov 2009 10:03:53 -0000 Received: (qmail 14874 invoked by uid 48); 11 Nov 2009 10:03:52 -0000 Date: Wed, 11 Nov 2009 10:03:00 -0000 From: "jed at 59a2 dot org" To: gdb-prs@sourceware.org Message-ID: <20091111100351.10940.jed@59a2.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug exp/10940] New: Cannot cast to function pointer pointer, (void(**)(void)) 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-q4/txt/msg00225.txt.bz2 To inspect an array of function pointers, I would expect to be able to do (gdb) p *(void(**)(void))$ops@8 but this gives A syntax error in expression, near `*)(void))$ops@4' This can be worked around using the more obtuse cast p (void(*)(void))*(void**)$ops@8 The need for such shenanigans is more with C++ since x/8a $ops does not pretty- print the addresses, but the cast should work. Arch Linux x86_64, kernel 2.6.31, gcc-4.4.2, gdb 7.0 -- Summary: Cannot cast to function pointer pointer, (void(**)(void)) Product: gdb Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: exp AssignedTo: unassigned at sourceware dot org ReportedBy: jed at 59a2 dot org CC: gdb-prs at sourceware dot org http://sourceware.org/bugzilla/show_bug.cgi?id=10940 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.