Re: Instruction address catching

Kevin Buettner
2002-10-08T20:09:04Z

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