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]

How can I get the C function prototype from a SO(link by cc) on solaris using gdb?


 hi,all
 
 (gdb 5.0 sparc solaris 8)
 
 I have a library link by sun cc,this library is complied and link
 with flag -g.
 
 I try to find out the prototype of functions in this library,gdb output:
(gdb) p GetDatVersion    
 $1 = {<text variable, no debug info>} 0xff273374 <GetDatVersion>
(gdb) p GetDatVersion
type = int ()
 
 Does the library must complied by gcc?
 
 
 Thanks.
 
 regards
 haka
 


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