Re: ptype of prototype of a funtion

Michael Elizabeth Chastain
2004-03-16T14:16:39Z

Hello Murugesan,

gdb>ptype fun
type = int ()

Okay, I have some questions:

What computer and operating system are you using?
What compiler are you using to compile 'fun'?
What version of the compiler are you using?
What command line switches do you use to compile your program?
What command line switches do you use to link your program?

Can you make a small sample program which shows this problem?
Then use the 'script' command. 'cat' the program,
compile and link the program, run gdb on the program,
exit 'script', and mail us the typescript.

Michael C