From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8220 invoked by alias); 11 Feb 2004 16:43:05 -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 8213 invoked from network); 11 Feb 2004 16:43:04 -0000 Received: from unknown (HELO babyruth.hotpop.com) (38.113.3.61) by sources.redhat.com with SMTP; 11 Feb 2004 16:43:04 -0000 Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id 918C0103D1E for ; Wed, 11 Feb 2004 16:41:24 +0000 (UTC) Received: from [172.16.1.43] (unknown [203.129.254.138]) by smtp-1.hotpop.com (Postfix) with ESMTP id 634971A018E; Wed, 11 Feb 2004 16:19:57 +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: <1076517714.4979.61.camel@mun-co> Mime-Version: 1.0 Date: Wed, 11 Feb 2004 16:43: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/msg00112.txt.bz2 Thans for the reply Bob. I haven't specified my requirement. # gdb -x command | tee output where command contains 1000's of "s" so that I can get all the output to a file. Ofcourse finish worked the way you said. The problem is that there MAY be more functions like this. I need to specify it in the file command 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