tracing ( was Re: what are gdbstubs?)

Ramana Radhakrishnan ramana.radhakrishnan@codito.com
Thu Mar 24 23:59:00 GMT 2005


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)



More information about the Gdb mailing list