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 <pmuldoon@redhat.com> 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 <pmuldoon@redhat.com> * 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 <pmuldoon@redhat.com> + + * 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 <pmuldoon@redhat.com> * 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