From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28470 invoked by alias); 17 Apr 2003 02:11:16 -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 28453 invoked from network); 17 Apr 2003 02:11:15 -0000 Received: from unknown (HELO sundance.cse.ucsc.edu) (128.114.48.62) by sources.redhat.com with SMTP; 17 Apr 2003 02:11:15 -0000 Received: from localhost (smita@localhost) by sundance.cse.ucsc.edu (8.6.10/8.6.12) with ESMTP id TAA07908 for ; Wed, 16 Apr 2003 19:11:14 -0700 X-Authentication-Warning: sundance.cse.ucsc.edu: smita owned process doing -bs Date: Thu, 17 Apr 2003 02:11:00 -0000 From: Smita To: gdb@sources.redhat.com Subject: finish for nested function calls In-Reply-To: <16030.2067.89123.654341@localhost.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-04/txt/msg00187.txt.bz2 Hi, What is the expected behavior of finish when it is called from multiple nested funtions? e.g: f1() calls f2(): f1() { f2() } i do this in gdb: b f1 finish end b f2 finish end finish takes effect only for f2() (the innermost function) So, I get return value from f2() and gdb stops after it returns from f2(). I don't get the return value for f1(). Is that the expected beahvior? Thanks Smita