This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Instruction address catching
On Oct 5, 3:37am, Fredrik Tolf wrote:
> The strangest thing happened. I made a small test program to test this.
> The program spawns two threads, each of which increments a variable of
> its own once a second. Even when I set a watchpoint on any of the
> variables (i.e. "watch var1"), the program doesn't halt. I checked
> manually, and the vars are increased, but gdb won't stop the program.
> What can I possibly have done wrong?
Are your variables local to a function or are they globals?
Kevin