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


> Is there a way to get  the prototype of a function i gdb.

If your compiler emits information for the function arguments,
then the gdb command 'ptype' will print that information.

Try compiling and linking your program with the "-g" flag to
get more debugging information.

Michael C
GDB QA Guy


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