From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5848 invoked by alias); 15 May 2008 08:42:22 -0000 Received: (qmail 5814 invoked by uid 9514); 15 May 2008 08:42:19 -0000 Date: Thu, 15 May 2008 08:42:00 -0000 Message-ID: <20080515084219.5799.qmail@sourceware.org> From: pmuldoon@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Add function to get the maximum length of a single watchpoint, in a single register, per architecture. X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: ebcacc0987578fb83182763d10ef74828c933d83 X-Git-Newrev: 2b063520b309b9ddcefbc3835c876089adbbd44c Mailing-List: contact frysk-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-cvs-owner@sourceware.org Reply-To: frysk@sourceware.org X-SW-Source: 2008-q2/txt/msg00246.txt.bz2 The branch, master has been updated via 2b063520b309b9ddcefbc3835c876089adbbd44c (commit) from ebcacc0987578fb83182763d10ef74828c933d83 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 2b063520b309b9ddcefbc3835c876089adbbd44c Author: Phil Muldoon Date: Thu May 15 09:41:32 2008 +0100 Add function to get the maximum length of a single watchpoint, in a single register, per architecture. 2008-05-15 Phil Muldoon * WatchpointFunctions.java (getWatchpointMaxLength): New. (watchpointMaxLength): New. * IA32WatchpointFunctions.java (IA32WatchpointFunctions): Define maximum watchpoint length in a single register. * X8664WatchpointFunctions.java (X8664WatchpointFunctions): Ditto. ----------------------------------------------------------------------- Summary of changes: frysk-core/frysk/isa/watchpoints/ChangeLog | 8 ++++++++ .../isa/watchpoints/IA32WatchpointFunctions.java | 1 + .../frysk/isa/watchpoints/WatchpointFunctions.java | 14 ++++++++++++++ .../isa/watchpoints/X8664WatchpointFunctions.java | 1 + 4 files changed, 24 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/frysk-core/frysk/isa/watchpoints/ChangeLog b/frysk-core/frysk/isa/watchpoints/ChangeLog index d530ec2..93291a7 100644 --- a/frysk-core/frysk/isa/watchpoints/ChangeLog +++ b/frysk-core/frysk/isa/watchpoints/ChangeLog @@ -1,3 +1,11 @@ +2008-05-15 Phil Muldoon + + * WatchpointFunctions.java (getWatchpointMaxLength): New. + (watchpointMaxLength): New. + * IA32WatchpointFunctions.java (IA32WatchpointFunctions): Define + maximum watchpoint length in a single register. + * X8664WatchpointFunctions.java (X8664WatchpointFunctions): Ditto. + 2008-05-14 Phil Muldoon * WatchpointFunctionFactory.java (getWatchpointFunctions): Return null diff --git a/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java b/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java index 8d170df..8680b5d 100644 --- a/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java +++ b/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java @@ -48,6 +48,7 @@ class IA32WatchpointFunctions extends WatchpointFunctions { // Address-Breakpoint Registers (DR0-DR3) public IA32WatchpointFunctions () { noOfWatchpoints = 4; + watchpointMaxLength = 4; } /** diff --git a/frysk-core/frysk/isa/watchpoints/WatchpointFunctions.java b/frysk-core/frysk/isa/watchpoints/WatchpointFunctions.java index 5270459..9abfb6f 100644 --- a/frysk-core/frysk/isa/watchpoints/WatchpointFunctions.java +++ b/frysk-core/frysk/isa/watchpoints/WatchpointFunctions.java @@ -50,6 +50,10 @@ public abstract class WatchpointFunctions { // Address-Breakpoint Registers protected int noOfWatchpoints = 0; + // Maximum length of a single watchpoint, + // in a single hardware register + protected int watchpointMaxLength = 0; + /** * Builds and sets a hardware watchpoint on a task. * @@ -149,4 +153,14 @@ public abstract class WatchpointFunctions { public final int getWatchpointCount() { return noOfWatchpoints; } + + /** + * Returns maximum length of a single watchpoint + * in a single hardware register + * + * @return int maximum length + */ + public final int getWatchpointMaxLength() { + return watchpointMaxLength; + } } diff --git a/frysk-core/frysk/isa/watchpoints/X8664WatchpointFunctions.java b/frysk-core/frysk/isa/watchpoints/X8664WatchpointFunctions.java index 7104854..7524394 100644 --- a/frysk-core/frysk/isa/watchpoints/X8664WatchpointFunctions.java +++ b/frysk-core/frysk/isa/watchpoints/X8664WatchpointFunctions.java @@ -48,6 +48,7 @@ class X8664WatchpointFunctions extends WatchpointFunctions { // Address-Breakpoint Registers (DR0-DR3) public X8664WatchpointFunctions () { noOfWatchpoints = 4; + watchpointMaxLength = 8; } /** hooks/post-receive -- frysk system monitor/debugger