This is the mail archive of the gdb@sourceware.org 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]

Stopping Execution When Variables Change


Hi, All:

Last question before Xmas :-) I want to find the same function in gdb
as in sun's dbx

I can't find it in GDB manual so I came here. Thanks in advanced!

============ the following is from sun dbx manual =========
topping Execution When Variables Change

To stop program execution if the value of a specified variable has
changed, type:

(dbx) stop change variable

Keep these points in mind when using the stop change command:

   * dbx stops the program at the line after the line that caused a
change in the value of the specified variable.

   * If variable is local to a function, the variable is considered
to have changed when the function is first entered and storage for
variable is allocated. The same is true with respect to parameters.

* The command does not work with multithreaded applications.

For more information on specifying a change event, see change variable
and stop Command.


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