This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tracing ( was Re: what are gdbstubs?)


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 <location>
commands
 > p <variable>
 > 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]