From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18639 invoked by alias); 21 Aug 2004 17:41:27 -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 18632 invoked from network); 21 Aug 2004 17:41:26 -0000 Received: from unknown (HELO lakermmtao12.cox.net) (68.230.240.27) by sourceware.org with SMTP; 21 Aug 2004 17:41:26 -0000 Received: from white ([68.9.64.121]) by lakermmtao12.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040821174124.RZQT10626.lakermmtao12.cox.net@white>; Sat, 21 Aug 2004 13:41:24 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1ByZrm-0001wE-00; Sat, 21 Aug 2004 13:41:22 -0400 Date: Sat, 21 Aug 2004 17:41:00 -0000 From: Bob Rossi To: Tron Thomas Cc: gdb@sources.redhat.com Subject: Re: How to step into multi-command statements Message-ID: <20040821174121.GA7442@white> Mail-Followup-To: Tron Thomas , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-SW-Source: 2004-08/txt/msg00272.txt.bz2 On Sat, Aug 21, 2004 at 10:30:25AM -0700, Tron Thomas wrote: > If I were debugging a program and ran across code like the following: > > string text; > ... > formatter.DisplayText(text.c_str()); > > What commands do I use to step into the DisplayText method of the > formatter object? Stepping into the statement takes me into the code > for the c_str method of the string class, which I don't care about. > After getting into this code I'm finding it impossible to get into the > actual code I want. Instead I end up being going to the next statement > that follows the call to DisplayText. You need to 'step', 'finish', 'step', 'finish', until you get to the function that you want. Bob Rossi