|
|
|
|
|
by lukan
875 days ago
|
|
"you might see the flag as 0 and eventually it would switch to 1" Sorry, noob question: Were there easy avaiable tools (in the debugger), to monitor a variable like this and have the debugger stop exactly when it was going to change, so you could see which thread and function did it and why? |
|
Depending on the platform and the debugger, these can be implemented using CPU architecture-specific debugging features, or in software, by single-step program execution and checking watched addresses for changes after each step.
[1] https://sourceware.org/gdb/current/onlinedocs/gdb.html/Set-W...