linux-mips
[Top] [All Lists]

Using hardware watchpoint for applications debugging

To: <linux-mips@linux-mips.org>
Subject: Using hardware watchpoint for applications debugging
From: "colin" <colin@realtek.com.tw>
Date: Wed, 29 Mar 2006 21:47:58 +0800
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi all,
Our applications encounter memory crash very often. Thus we would like to
use hardware watchpoint on our platform, MIPS 4KEc.
After starting to design it, more and more issues emerge. They are listed
below:
    1. WatchLo Register only has 29 bits to indicate the VAddr. Therefore,
it will also trigger exceptions when accessing nearby addresses.
    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.

Is there any easy way to solve these problems?

Regards,
Colin





<Prev in Thread] Current Thread [Next in Thread>