This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Formatting of function pointer value
On Mon, Jul 11, 2005 at 10:34:55AM +0200, Andreas Schwab wrote:
> Vladimir Prus <ghost@cs.msu.su> writes:
>
> > I'm sorry, I don't understand this. Is human user supposed to know that '{'
> > starts a function? What harm will it make if parenthesis are used in both
> > cases?
>
> `{TYPE} ADDR' is a special syntax for expressions in gdb and is actually a
> shorthand for `*(TYPE *) ADDR'.
Woah... and yes, it's in the manual. Thanks, Andreas; I've never seen
that syntax before!
--
Daniel Jacobowitz
CodeSourcery, LLC