From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20784 invoked by alias); 18 Mar 2010 18:33:30 -0000 Received: (qmail 20769 invoked by uid 22791); 18 Mar 2010 18:33:29 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 18:33:24 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0KZH00A00Q48SK00@a-mtaout20.012.net.il> for gdb@sourceware.org; Thu, 18 Mar 2010 20:32:21 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.182.236]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KZH002TRQ5V1LK0@a-mtaout20.012.net.il>; Thu, 18 Mar 2010 20:32:21 +0200 (IST) Date: Thu, 18 Mar 2010 18:33:00 -0000 From: Eli Zaretskii Subject: Re: Getting pissed off by gdb. Please help with stepping in. In-reply-to: <201003181521.48681.pedro@codesourcery.com> To: Pedro Alves Cc: gdb@sourceware.org, dje@google.com, temp@sourceboost.com Reply-to: Eli Zaretskii Message-id: <8339zxv5tp.fsf@gnu.org> References: <11611.203.63.255.139.1268879984.squirrel@webmail5.pair.com> <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/msg00141.txt.bz2 > From: Pedro Alves > Date: Thu, 18 Mar 2010 15:21:48 +0000 > Cc: Doug Evans , > Eli Zaretskii , > temp@sourceboost.com > > 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. I would expect "next" on line 4 to behave the same as "step", since there's no function call there.