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?)


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)


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