From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12380 invoked by alias); 17 Mar 2004 04:35:57 -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 12348 invoked from network); 17 Mar 2004 04:35:55 -0000 Received: from unknown (HELO marvin.codito.net) (203.197.88.2) by sources.redhat.com with SMTP; 17 Mar 2004 04:35:55 -0000 Received: from codito.com (calvin.codito.co.in [203.199.140.162]) (authenticated bits=0) by marvin.codito.net (8.12.10/) with ESMTP id i2H4n3Xu021863; Wed, 17 Mar 2004 10:19:09 +0530 Message-ID: <4057D4E0.1070901@codito.com> Date: Wed, 17 Mar 2004 04:35:00 -0000 From: Ramana Radhakrishnan User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) MIME-Version: 1.0 To: murugesan CC: Michael Elizabeth Chastain , "gdb@sources.redhat.com" Subject: Re: ptype of prototype of a funtion References: <20040316141633.96FDE4B104@berman.michael-chastain.com> <1079497230.4953.25.camel@mun-co> In-Reply-To: <1079497230.4953.25.camel@mun-co> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00154.txt.bz2 ># gdb a.out >HP gdb 3.3 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00. >Copyright 1986 - 2001 Free Software Foundation, Inc. >Hewlett-Packard Wildebeest 3.3 (based on GDB) is covered by the >GNU General Public License. Type "show copying" to see the conditions to >change it and/or distribute copies. Type "show warranty" for >warranty/support. >.. >(gdb) break main >Breakpoint 1 at 0x2790: file dinesh.c, line 11. >(gdb) r >Starting program: /home/murugesh/openssl_test/a.out > >Breakpoint 1, main (argc=1, argv=0x7dbf07c4) at dinesh.c:11 >11 MKDIR(PATH); >(gdb) s >12 fp=fopen(PATH"/out","w"); >(gdb) >13 if(!fp) >(gdb) >19 if(PEM_write_PKCS8(fp,NULL)==0) >(gdb) ptype PEM_write_PKCS8 >type = int () >(gdb) ptype PEM_write_PKCS8() >type = int >(gdb) whatis PEM_write_PKCS8() >type = int >(gdb) whatis PEM_write_PKCS8 >type = > > I hope libcrypto, libssl have been compiled with debug info ? This seems to indicate a lack of debug info for the same ? cheers ramana >(gdb) The program is running. Exit anyway? (y or n) y ># > >script done on Wed Mar 17 09:32:26 2004 > > >I think I have covered all the answers for your questions. > >Thanks, >Murugesan > > >========================================================================================================= >On Tue, 2004-03-16 at 19:46, Michael Elizabeth Chastain wrote: > > >>Hello Murugesan, >> >> gdb>ptype fun >> type = int () >> >>Okay, I have some questions: >> >> What computer and operating system are you using? >> What compiler are you using to compile 'fun'? >> What version of the compiler are you using? >> What command line switches do you use to compile your program? >> What command line switches do you use to link your program? >> >>Can you make a small sample program which shows this problem? >>Then use the 'script' command. 'cat' the program, >>compile and link the program, run gdb on the program, >>exit 'script', and mail us the typescript. >> >>Michael C >> >> > > >