From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15346 invoked by alias); 23 Aug 2004 17:05:15 -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 15332 invoked from network); 23 Aug 2004 17:05:15 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 23 Aug 2004 17:05:15 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i7NH5Ee3009427 for ; Mon, 23 Aug 2004 13:05:15 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i7NH5Ea22976; Mon, 23 Aug 2004 13:05:14 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 163582B9D; Mon, 23 Aug 2004 13:04:06 -0400 (EDT) Message-ID: <412A2385.3060908@gnu.org> Date: Mon, 23 Aug 2004 17:05:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040801 MIME-Version: 1.0 To: Tron Thomas Cc: gdb@sources.redhat.com Subject: Re: How to step into multi-command statements References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00284.txt.bz2 > 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. Try: (gdb) advance formatter.DisplayText Andrew