From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4993 invoked by alias); 17 Apr 2003 18:48:53 -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 4971 invoked from network); 17 Apr 2003 18:48:52 -0000 Received: from unknown (HELO 3am-software.com) (12.234.130.112) by sources.redhat.com with SMTP; 17 Apr 2003 18:48:52 -0000 Received: from i8k.3am-software.com (localhost [127.0.0.1]) by 3am-software.com (8.11.6/8.11.2) with ESMTP id h3HIkXU04383; Thu, 17 Apr 2003 11:46:34 -0700 (PDT) Message-Id: <5.1.1.6.2.20030417114351.04b179c0@3am-software.com> X-Sender: matt@3am-software.com Date: Thu, 17 Apr 2003 18:48:00 -0000 To: Michael Snyder From: Matt Thomas Subject: Re: breakpoint commands and finish Cc: gdb@sources.redhat.com In-Reply-To: <3E9EE89D.4A3D55DA@redhat.com> References: <5.1.1.6.2.20030414135022.04175790@3am-software.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2003-04/txt/msg00198.txt.bz2 At 10:47 AM 4/17/2003, Michael Snyder wrote: >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. Well, I just rebuilt gdb from the latest on sources.redhat.com and the behavior is unchanged. I was wondering (as an alternative) whether it would be possible to get a variant of the break command which would place a breakpoint at the return of a function (and print the return value like finish does). rbreak (or ebreak). I find I often was to place a breakpoint at the end of a function; it'd be nice if gdb could do that automaticly. -- Matt Thomas Internet: matt@3am-software.com 3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt/ Cupertino, CA Disclaimer: I avow all knowledge of this message