All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nigel Stephens <nigel@mips.com>
To: colin <colin@realtek.com.tw>
Cc: linux-mips@linux-mips.org
Subject: Re: Using hardware watchpoint for applications debugging
Date: Wed, 29 Mar 2006 15:08:16 +0100	[thread overview]
Message-ID: <442A94D0.1020106@mips.com> (raw)
In-Reply-To: <024c01c65337$63931c90$106215ac@realtek.com.tw>



colin wrote:.
>     2. When an exception happens and we find that it's not touching the righ
> address, we will discard it. However, exception will happen again because
> the former instruction will be re-executed when the exception is finished.
>
>   

You'll need to single-step over the instruction which generated the
unwanted watchpoint exception, with the watchpoint disabled. Then after
handling the single step reenable the watchpoint and resume normal
execution.

It would be best if you added watchpoint support to the kernel ptrace
code: since that would make the watchpoints usable by GDB also.

Nigel

  reply	other threads:[~2006-03-29 13:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-29 13:47 Using hardware watchpoint for applications debugging colin
2006-03-29 13:47 ` colin
2006-03-29 14:08 ` Nigel Stephens [this message]
2006-03-29 14:32   ` Kevin D. Kissell
2006-03-29 14:32     ` Kevin D. Kissell
2006-03-30  2:19     ` colin
2006-03-30  2:19       ` colin
2006-03-30  2:15   ` colin
2006-03-30  2:15     ` colin
2006-03-30 10:49     ` Nigel Stephens
2006-03-30 18:37       ` Ralf Baechle
2006-03-30 18:57       ` Daniel Jacobowitz

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=442A94D0.1020106@mips.com \
    --to=nigel@mips.com \
    --cc=colin@realtek.com.tw \
    --cc=linux-mips@linux-mips.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.