This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Stopping Execution When Variables Change
- From: "andy wang" <ypwangreg at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sun, 24 Dec 2006 18:34:22 -0500
- Subject: 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.