This is the mail archive of the gdb@sources.redhat.com 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]

Re: ptype of prototype of a funtion


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


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