Re: ptype of prototype of a funtion

murugesan
2004-03-16T03:58:46Z

Thanks Daniel and Michael.

gdb>ptype fun
type = int ()

But 'ptype fun' just displays the return type followed by paranthesis.

Also,

gdb>ptype fun()
type = int
What a great! the paranthesis is missing.
But I am unable to get the parameter type.
Is there really a way to find the parameter type ?

Thanks,
Murugesan

----- Original Message -----
From: Daniel Jacobowitz
To: murugesan
Cc: gdb@sources.redhat.com
Sent: Friday, March 12, 2004 9:09 PM
Subject: Re: ptype of prototype of a funtion

On Fri, Mar 12, 2004 at 01:23:59PM +0530, murugesan wrote:
> Hello all,
> ptype fun(NULL,NULL)
> This gives me the return type of the function fun
> Is there a way to get the prototype of a function i gdb.
>
> I don't know the type of the parameters of fun which can have the value
> NULL. [ (void*)0 ]
>
> thanks in advance for the help.

How about 'ptype fun'?

--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer