Hi,
I reported what I thought was a bug in glibc:
http://bugzilla.redhat.com/365111
in which I tried to make gdb simulate a mmap64 failure.
However, using ret (void*)-1 appears not to do what I expected.
In comment #6, Ulrich showed that setting an arch-specific register
did what I wanted
Version: 6.3, 6.4, 6.4.50.20060307-cvs, 6.6
In 6.6 it is just the same as in previous versions, and as described
on Fri, 31 Mar 2006 22:12:41 +0400 ([EMAIL PROTECTED]).
(gdb) p*(void(**)())$addr
A syntax error in expression, near `*)())$addr
Versions: 6.3, 6.4, 6.4.50.20060307-cvs
When current expression language is c, gdb considers the following
type cast an error
(gdb) p*(void(**)())$addr
A syntax error in expression, near `*)())$addr'.
Version 5.1 would process it the same way standard c implementations,
that is, as `(void