From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11521 invoked by alias); 11 Feb 2004 10:27:34 -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 11511 invoked from network); 11 Feb 2004 10:27:31 -0000 Received: from unknown (HELO snickers.hotpop.com) (38.113.3.51) by sources.redhat.com with SMTP; 11 Feb 2004 10:27:31 -0000 Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by snickers.hotpop.com (Postfix) with SMTP id 86624719CC for ; Wed, 11 Feb 2004 10:02:14 +0000 (UTC) Received: from [172.16.1.43] (unknown [203.129.254.138]) by smtp-1.hotpop.com (Postfix) with ESMTP id 91C631A0195 for ; Wed, 11 Feb 2004 10:01:59 +0000 (UTC) Subject: Output the filename ,the function name and the line number after returning from a function call From: murugesan To: "gdb@sources.redhat.com" In-Reply-To: <20040211052236.GA9887@redhat.com> References: <000b01c3efba$8b7ac420$f9b7573e@DOM> <20040211051509.GA22903@nevyn.them.org> <20040211052236.GA9887@redhat.com> Content-Type: text/plain Organization: Message-Id: <1076495025.4979.43.camel@mun-co> Mime-Version: 1.0 Date: Wed, 11 Feb 2004 10:27:00 -0000 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-02/txt/msg00102.txt.bz2 Hello all, As you all know gdb outputs the filename ,the function name and the line number after returning from a function call. But this does not happen when a function has a parameter as another function. That is, # gdb a.out gdb> break main gdb> s . gdb> bt fun main gdb> s . . main (Argc=1, Argv=0x7e9f081c) at openssl.c:236 This is getting printed when returning from fun. But this does not happen in the following case. eg: fun(ret_val()) { } Here when returning from ret_val main (Argc=1, Argv=0x7e9f081c) at openssl.c:236 is not getting printed. Instead it just enters fun function without returning main. If it is the case ( that it will not return to main ) then my "bt" might have printed ret_val fun main But this does not happened for this case. Just it gave me ret_val main Is there any way to make the gdb to output the filename ,the function name and the line number after returning from functions that has another function has parameter. Thanks in advance for the help. Regards, Murugesan