This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: tracing ( was Re: what are gdbstubs?)
- From: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>
- To: james osburn <jjosburn at hotmail dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 25 Mar 2005 05:28:18 +0530
- Subject: Re: tracing ( was Re: what are gdbstubs?)
- References: <BAY13-F4029FB867B3C92AF7B57ACD8400@phx.gbl>
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 <location>
commands
> p <variable>
> p $eax
> p $ebx
> end
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)