From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 789 invoked by alias); 21 Jun 2002 17:05:24 -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 731 invoked from network); 21 Jun 2002 17:05:20 -0000 Received: from unknown (HELO cygnus.com) (205.180.83.203) by sources.redhat.com with SMTP; 21 Jun 2002 17:05:20 -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 KAA15204 for ; Fri, 21 Jun 2002 10:05:19 -0700 (PDT) Received: from localhost (localhost.fidalgo.net [127.0.0.1]) by theotherone.redhat-remotie.org (Postfix) with ESMTP id 14026BB29C; Fri, 21 Jun 2002 10:05:25 -0700 (PDT) Date: Fri, 21 Jun 2002 10:05: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/msg00165.txt.bz2 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 '. -- dhoward@redhat.com gdb engineering