This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

exp/2408: (void(**)())


>Number:         2408
>Category:       exp
>Synopsis:       (void(**)())
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 17 19:08:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     gin@mo.msk.ru
>Release:        6.3, 6.4, 6.6, 6.7.1
>Organization:
>Environment:
Hardly relevant.  Observed in x86_64-unknown-linux-gnu, i686-pc-linux-gnu.
>Description:
Posted to <bug-gdb@gnu.org> since Fri, 31 Mar 2006 22:12:41 +0400
(<66bqvm8ova.fsf@mo.msk.ru>).

In C `(void(**)())EXPR' type cast expression means the same as
`(void(*(*))())EXPR'.

(gdb) sho lang
The current source language is "auto; currently c".

With this setting, expecting that `gdb' also processes both of these
expressions the same way.  Instead:

(gdb) p*(void(**)())$addr
A syntax error in expression, near `*)())$addr'.

>How-To-Repeat:
p*(void(**)())$addr
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]