* Stopping Execution When Variables Change
@ 2006-12-24 23:34 andy wang
2006-12-25 1:09 ` Daniel Jacobowitz
2006-12-25 3:37 ` Joel Brobecker
0 siblings, 2 replies; 3+ messages in thread
From: andy wang @ 2006-12-24 23:34 UTC (permalink / raw)
To: gdb
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Stopping Execution When Variables Change
2006-12-24 23:34 Stopping Execution When Variables Change andy wang
@ 2006-12-25 1:09 ` Daniel Jacobowitz
2006-12-25 3:37 ` Joel Brobecker
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2006-12-25 1:09 UTC (permalink / raw)
To: andy wang; +Cc: gdb
On Sun, Dec 24, 2006 at 06:34:22PM -0500, andy wang wrote:
> 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!
Search for "watchpoint" in the manual.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Stopping Execution When Variables Change
2006-12-24 23:34 Stopping Execution When Variables Change andy wang
2006-12-25 1:09 ` Daniel Jacobowitz
@ 2006-12-25 3:37 ` Joel Brobecker
1 sibling, 0 replies; 3+ messages in thread
From: Joel Brobecker @ 2006-12-25 3:37 UTC (permalink / raw)
To: andy wang; +Cc: gdb
> Stopping Execution When Variables Change
You didn't look very hard! What you're looking for is the "watch"
command.
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-25 3:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-24 23:34 Stopping Execution When Variables Change andy wang
2006-12-25 1:09 ` Daniel Jacobowitz
2006-12-25 3:37 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox