From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22600 invoked by alias); 18 Mar 2010 18:37:15 -0000 Received: (qmail 22591 invoked by uid 22791); 18 Mar 2010 18:37:14 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from aussmtpmrkps320.us.dell.com (HELO aussmtpmrkps320.us.dell.com) (143.166.224.254) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 18:37:04 +0000 X-Loopcount0: from 12.110.134.31 Received: from unknown (HELO M31.equallogic.com) ([12.110.134.31]) by aussmtpmrkps320.us.dell.com with SMTP; 18 Mar 2010 13:37:03 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Getting pissed off by gdb. Please help with stepping in. Date: Thu, 18 Mar 2010 18:37:00 -0000 Message-ID: In-Reply-To: <834okdv5wb.fsf@gnu.org> References: <11611.203.63.255.139.1268879984.squirrel@webmail5.pair.com> <834okdv5wb.fsf@gnu.org> From: "Paul Koning" To: "Eli Zaretskii" , "Doug Evans" Cc: , 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/msg00142.txt.bz2 I'd say it is useful because it matches the documentation. "s" is documented as "run until you're at a different source line". In foo(bar()), the source line you come to after exit from bar() is the call to foo(), not the first line of foo -- that would take "s 2". paul > -----Original Message----- > From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On > Behalf Of Eli Zaretskii > Sent: Thursday, March 18, 2010 2:31 PM > To: Doug Evans > Cc: temp@sourceboost.com; gdb@sourceware.org > Subject: Re: Getting pissed off by gdb. Please help with stepping in. >=20 > > Date: Thu, 18 Mar 2010 08:10:41 -0700 > > From: Doug Evans > > Cc: temp@sourceboost.com, gdb@sourceware.org > > > > Here's what gdb 7.1 does: > > > > (gdb) f > > #0 bar () at stepout.c:4 > > 4 int bar () { return 1; } > > (gdb) s > > foo (x=3D1) at stepout.c:6 > > 6 void foo (int x) { g =3D x; } > > (gdb) > > > > Note that we've stepped out of bar and into foo. > > > > Here is what Pavel is expecting instead: > > > > (gdb) f > > #0 bar () at stepout.c:4 > > 4 int bar () { return 1; } > > (gdb) s > > 0x00000000004003b7 in main () at stepout.c:11 > > 11 foo (bar ()); > > (gdb) >=20 > Thanks. But why is ``what Pavel is expecting'' useful? What use-case > does it handle that the v7.1 behavior does not?