From: Jim Blandy <jimb@red-bean.com>
To: Wu Zhou <woodzltc@cn.ibm.com>
Cc: gdb@sources.redhat.com, anton@au1.ibm.com, pgilliam@us.ibm.com
Subject: Re: A problem about read / access watchpoint
Date: Mon, 16 Jan 2006 07:17:00 -0000 [thread overview]
Message-ID: <8f2776cb0601152317x5146926ard81b8ad36ba2d362@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0601151901120.15022@wks190239wss.cn.ibm.com>
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.
next prev parent reply other threads:[~2006-01-16 7:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-15 11:21 Wu Zhou
2006-01-16 7:17 ` Jim Blandy [this message]
2006-01-16 9:59 ` Wu Zhou
2006-01-16 10:12 ` Wu Zhou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f2776cb0601152317x5146926ard81b8ad36ba2d362@mail.gmail.com \
--to=jimb@red-bean.com \
--cc=anton@au1.ibm.com \
--cc=gdb@sources.redhat.com \
--cc=pgilliam@us.ibm.com \
--cc=woodzltc@cn.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox