From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5374 invoked by alias); 18 Mar 2010 09:07:54 -0000 Received: (qmail 5359 invoked by uid 22791); 18 Mar 2010 09:07:53 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 09:07:49 +0000 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NsBhj-0007rq-7D; Thu, 18 Mar 2010 05:07:47 -0400 From: Eli Zaretskii To: Doug Evans CC: temp@sourceboost.com, gdb@sourceware.org In-reply-to: (message from Doug Evans on Thu, 18 Mar 2010 00:22:20 -0700) Subject: Re: Getting pissed off by gdb. Please help with stepping in. Reply-to: Eli Zaretskii References: <11611.203.63.255.139.1268879984.squirrel@webmail5.pair.com> Message-Id: Date: Thu, 18 Mar 2010 09:07:00 -0000 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00123.txt.bz2 > Date: Thu, 18 Mar 2010 00:22:20 -0700 > From: Doug Evans > Cc: gdb@sourceware.org > > I agree it should work as you expect. I don't see the step out of bar > continuing passed foo, but I do see it stepping into foo (as if you > had done two steps, so to speak: step out of bar and step into foo). > [This is with gdb 7.0 and cvs head.] > One *could* use `finish' to accomplish what you want but I think a > `step' at the end of the function should behave like `finish' (modulo > printing the return value of course). I'm confused: what exactly does this patch fix, i.e. what was the behavior before it and what it will be after it? My confusion stems from the fact that you first say that the problem described by the OP does not exist, i.e. GDB does _not_ continue past foo, but then you say something is wrong and suggest a fix. What did I miss here? Thanks.