From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1451 invoked by alias); 17 Apr 2003 17:47:13 -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 1442 invoked from network); 17 Apr 2003 17:47:11 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 17 Apr 2003 17:47:11 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h3HHlBD24905 for ; Thu, 17 Apr 2003 13:47:11 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h3HHlAW10653; Thu, 17 Apr 2003 13:47:10 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h3HHl9M29228; Thu, 17 Apr 2003 10:47:09 -0700 Message-ID: <3E9EE89D.4A3D55DA@redhat.com> Date: Thu, 17 Apr 2003 17:47:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: Matt Thomas CC: gdb@sources.redhat.com Subject: Re: breakpoint commands and finish References: <5.1.1.6.2.20030414135022.04175790@3am-software.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00196.txt.bz2 Matt Thomas wrote: > > What should be the behavour of the following? > > break function > commands > finish > continue > end > > Should finish cause gdb to stop and wait for a prompt > or should gdb act on the continue? (gdb5.x does the > former while gdb4.x did the latter) Consistant with your observations, the traditional behavior has been that gdb would stop and prompt for a new command. I believe that recently someone has changed it so that it would at least try to execute the finish and the continue.