From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14434 invoked by alias); 25 Mar 2005 00:09:20 -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 14324 invoked from network); 25 Mar 2005 00:09:14 -0000 Received: from unknown (HELO calvin.codito.co.in) (220.225.32.98) by sourceware.org with SMTP; 25 Mar 2005 00:09:14 -0000 Received: from [192.168.100.52] (arnor.codito.co.in [192.168.100.52]) by calvin.codito.co.in (8.12.10/8.12.10) with ESMTP id j2P07689025606; Fri, 25 Mar 2005 05:37:06 +0530 Message-ID: <42435623.2000906@codito.com> Date: Fri, 25 Mar 2005 00:09:00 -0000 From: Ramana Radhakrishnan User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) MIME-Version: 1.0 To: james osburn CC: gdb@sources.redhat.com Subject: Re: tracing ( was Re: what are gdbstubs?) References: <4243541A.2010300@codito.com> In-Reply-To: <4243541A.2010300@codito.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00232.txt.bz2 Ramana Radhakrishnan wrote: > james osburn wrote: > >> no actually i am very very new to using >> gdb so no i didnt know about scripting the >> break points. how does that work? >> jim > > > Its like this . Look at the commands command for gdb . > > So at each program point if you specify the variables of interest for > you, you could generate the following set of commands for the same. > > break > commands > > p > > p $eax > > p $ebx > > end > and I failed to add that you can put this into a file called foo and from the gdb command line use the command source foo. > etc. > > or you could use the display command for each of the variables that you > wish to see and then single step as many instructions / source lines as > you want. > > > cheers > Ramana > > -- Ramana Radhakrishnan GNU Tools codito ergo sum (www.codito.com)