3 ms·
Yes: many debuggers support setting watchpoints[1] that break on writes to a particular memory location. Depending on the platform and the debugger, these can
by jasomill 3y ago
Yes: many debuggers support setting watchpoints[1] that break on writes to a particular memory location.
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-Watchpoints.html https://sourceware.org/gdb/current/onlinedocs/gdb.html/Set-W...