From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8799 invoked by alias); 18 Mar 2010 15:21:58 -0000 Received: (qmail 8745 invoked by uid 22791); 18 Mar 2010 15:21:57 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 15:21:53 +0000 Received: (qmail 10539 invoked from network); 18 Mar 2010 15:21:50 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Mar 2010 15:21:50 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Getting pissed off by gdb. Please help with stepping in. Date: Thu, 18 Mar 2010 15:21:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-19-generic; KDE/4.3.2; x86_64; ; ) Cc: Doug Evans , Eli Zaretskii , temp@sourceboost.com References: <11611.203.63.255.139.1268879984.squirrel@webmail5.pair.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003181521.48681.pedro@codesourcery.com> 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/msg00133.txt.bz2 On Thursday 18 March 2010 15:10:41, Doug Evans wrote: > The behaviour Pavel describes in his message, but which I do not see, is this: > > (gdb) f > #0 bar () at stepout.c:4 > 4 int bar () { return 1; } > (gdb) s > main () at stepout.c:12 > 12 return 0; > (gdb) > > Note that we've stepped out of bar, into foo, and back out of foo. He most probably used "next" when he said: > I do a step out and wtf... Instead of getting back to the line > where 'foo' is called I get passed it. -- Pedro Alves