From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5472 invoked by alias); 11 Feb 2004 16:38: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 5461 invoked from network); 11 Feb 2004 16:38:18 -0000 Received: from unknown (HELO babyruth.hotpop.com) (38.113.3.61) by sources.redhat.com with SMTP; 11 Feb 2004 16:38:18 -0000 Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id E4513102F75 for ; Wed, 11 Feb 2004 16:36:37 +0000 (UTC) Received: from [172.16.1.43] (unknown [203.129.254.138]) by smtp-1.hotpop.com (Postfix) with ESMTP id 8F6561A017F; Wed, 11 Feb 2004 16:15:28 +0000 (UTC) Subject: Re: Output the filename ,the function name and the line number after returning from a function call From: murugesan To: Bob Rossi Cc: "gdb@sources.redhat.com" In-Reply-To: <20040211130830.GA2311@white> References: <000b01c3efba$8b7ac420$f9b7573e@DOM> <20040211051509.GA22903@nevyn.them.org> <20040211052236.GA9887@redhat.com> <1076495025.4979.43.camel@mun-co> <20040211130830.GA2311@white> Content-Type: text/plain Organization: Message-Id: <1076517444.4979.54.camel@mun-co> Mime-Version: 1.0 Date: Wed, 11 Feb 2004 16:38: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/msg00111.txt.bz2 Thanks Bob. I haven't explained much about my requirement. Ofcourse finish does what you said. Bud what I am doing is that # gdb -x command | tee output where command contains 1000000 number of "s" in it So that I will get the flow from the beginning of the program to the end including where I give the input... So the output should contain the funs that has been called and returned. The program MAY contain several such functions and I cannot point where it occurs. Thanks again for the reply and expecting the same again. -Murugesan On Wed, 2004-02-11 at 18:38, Bob Rossi wrote: > On Wed, Feb 11, 2004 at 03:53:52PM +0530, murugesan wrote: > > 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. > > Did you use the 'finish' command to return from the function call? Or do > you just do a 'next'? This might make a difference. > > Bob Rossi