A problem about read / access watchpoint
Jim Blandy
jimb@red-bean.com
Mon Jan 16 07:17:00 GMT 2006
On 1/15/06, Wu Zhou <woodzltc@cn.ibm.com> wrote:
> I did some tracing on that, and find that the kernel _did_ issue signal
> trap on line 15, and gdb could also get the stopped data address by
> ptrace. But when gdb call watchpoint_check to check if the value changed
> or not. It will reports WP_VALUE_CHANGED, which really confuse me.
Just out of curiosity, could you post a disassembly of main? The
kernel is watching what the machine code version of the program does,
and I wouldn't assume that it was the same as what the source code
version does, even if you compile with -O0.
More information about the Gdb
mailing list