This is the mail archive of the gdb@sources.redhat.com 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]

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


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