This is the mail archive of the gdb@sourceware.org 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: A problem about read / access watchpoint


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.


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