From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2084 invoked by alias); 21 Jun 2002 17:08:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2067 invoked from network); 21 Jun 2002 17:08:01 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 21 Jun 2002 17:08:01 -0000 Received: from theotherone.redhat-remotie.org (romulus.sfbay.redhat.com [172.16.27.251]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id KAA15443 for ; Fri, 21 Jun 2002 10:08:01 -0700 (PDT) Received: from localhost (localhost.fidalgo.net [127.0.0.1]) by theotherone.redhat-remotie.org (Postfix) with ESMTP id 91654BB29C; Fri, 21 Jun 2002 10:08:06 -0700 (PDT) Date: Fri, 21 Jun 2002 10:08:00 -0000 From: Don Howard X-X-Sender: To: "NewHaka@hotmail" Cc: Subject: Re: How can I get the C function prototype from a SO(link by cc) on solaris using gdb? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-06/txt/msg00166.txt.bz2 On Fri, 21 Jun 2002, Don Howard wrote: > On Fri, 21 Jun 2002, NewHaka@hotmail wrote: > > > 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 = {} 0xff273374 > > (gdb) p GetDatVersion > > type = int () > > > > Does the library must complied by gcc? > > > > 'p ' or 'print ' tells you only the returned type. > Try 'ptype '. No. I'm quite wrong here. Both commands should give you full prototype info when applied to a function. Sorry for the confusion. -- dhoward@redhat.com gdb engineering