From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14335 invoked by alias); 11 Dec 2005 15:34:06 -0000 Received: (qmail 14328 invoked by uid 22791); 11 Dec 2005 15:34:06 -0000 X-Spam-Check-By: sourceware.org Received: from velcro.umiacs.umd.edu (HELO velcro.umiacs.umd.edu) (128.8.120.103) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 11 Dec 2005 15:34:00 +0000 Received: from trifle.umiacs.umd.edu (trifle.umiacs.umd.edu [128.8.120.213]) by velcro.umiacs.umd.edu (8.13.1/8.13.1) with ESMTP id jBBFXR10000324; Sun, 11 Dec 2005 10:33:27 -0500 (EST) Received: from localhost (glassner@localhost) by trifle.umiacs.umd.edu (8.12.10/8.13.1) with ESMTP id jBBFXLuA012853; Sun, 11 Dec 2005 10:33:27 -0500 (EST) Date: Sun, 11 Dec 2005 15:34:00 -0000 From: Grazia Russo-Lassner To: Jim Blandy cc: gdb@sources.redhat.com Subject: Re: how to debug functions called from other classes In-Reply-To: <8f2776cb0512101044h7e870480i74b03b9058e54574@mail.gmail.com> Message-ID: References: <20051209214948.GA24287@nevyn.them.org> <8f2776cb0512101044h7e870480i74b03b9058e54574@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00129.txt.bz2 Hello Jim, On Sat, 10 Dec 2005, Jim Blandy wrote: > On 12/10/05, Grazia Russo-Lassner wrote: >> the function BuildVcb is where the error message of my code comes from: >> >> line50 : parser->BuildVcb(arg1, arg2); > > So, 'BuildVcb' is a method of whatever class 'parser' points to; and > when you call 'parser->BuildVcb', that code prints an error message; > is that right? the code exits and prints out the error message that was coded in that function. I know it has to do with the input file to that function, BuildVcb. I cannot pinpoint the input line that is breaking the code. grazia > > What does GDB do when you reach line 50 and type 'step' to step into > the method call? Can you show us a transcript? >