From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5817 invoked by alias); 21 Jun 2002 09:16:18 -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 5708 invoked from network); 21 Jun 2002 09:16:11 -0000 Received: from unknown (HELO hotmail.com) (207.68.162.205) by sources.redhat.com with SMTP; 21 Jun 2002 09:16:11 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 21 Jun 2002 02:16:11 -0700 X-Originating-IP: [210.21.93.12] From: "NewHaka@hotmail" To: Subject: How can I get the C function prototype from a SO(link by cc) on solaris using gdb? Date: Fri, 21 Jun 2002 02:16:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 21 Jun 2002 09:16:11.0609 (UTC) FILETIME=[490F2C90:01C21904] X-SW-Source: 2002-06/txt/msg00163.txt.bz2 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? Thanks. regards haka