public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
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.
Date: Thu, 15 May 2008 08:42:00 -0000	[thread overview]
Message-ID: <20080515084219.5799.qmail@sourceware.org> (raw)

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


                 reply	other threads:[~2008-05-15  8:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080515084219.5799.qmail@sourceware.org \
    --to=pmuldoon@sourceware.org \
    --cc=frysk-cvs@sourceware.org \
    --cc=frysk@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).