From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30688 invoked by alias); 16 Mar 2004 03:58:46 -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 30681 invoked from network); 16 Mar 2004 03:58:46 -0000 Received: from unknown (HELO babyruth.hotpop.com) (38.113.3.61) by sources.redhat.com with SMTP; 16 Mar 2004 03:58:46 -0000 Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id 1FF9316EC1C for ; Tue, 16 Mar 2004 03:47:29 +0000 (UTC) Received: from munco (unknown [203.129.254.138]) by smtp-1.hotpop.com (Postfix) with SMTP id 1A98A1A0177; Tue, 16 Mar 2004 03:26:02 +0000 (UTC) Message-ID: <00e001c40b0a$f941bcf0$4b0110ac@munco> From: "murugesan" To: "Daniel Jacobowitz" Cc: References: <123e01c40807$34e4ce20$2b0110ac@munco> <20040312153948.GA20371@nevyn.them.org> Subject: Re: ptype of prototype of a funtion Date: Tue, 16 Mar 2004 03:58:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- X-SW-Source: 2004-03/txt/msg00141.txt.bz2 Thanks Daniel and Michael. gdb>ptype fun type = int () But 'ptype fun' just displays the return type followed by paranthesis. Also, gdb>ptype fun() type = int What a great! the paranthesis is missing. But I am unable to get the parameter type. Is there really a way to find the parameter type ? Thanks, Murugesan ----- Original Message ----- From: Daniel Jacobowitz To: murugesan Cc: gdb@sources.redhat.com Sent: Friday, March 12, 2004 9:09 PM Subject: Re: ptype of prototype of a funtion On Fri, Mar 12, 2004 at 01:23:59PM +0530, murugesan wrote: > Hello all, > ptype fun(NULL,NULL) > This gives me the return type of the function fun > Is there a way to get the prototype of a function i gdb. > > I don't know the type of the parameters of fun which can have the value > NULL. [ (void*)0 ] > > thanks in advance for the help. How about 'ptype fun'? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer