public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM] master: 2008-04-01 Phil Muldoon <pmuldoon@redhat.com>
@ 2008-04-01 12:56 pmuldoon
0 siblings, 0 replies; only message in thread
From: pmuldoon @ 2008-04-01 12:56 UTC (permalink / raw)
To: frysk-cvs
The branch, master has been updated
via 3320ba30bfea0b4d2eda0c7f368834097dcde46a (commit)
from 22a5428f36763f5bf81885fcc19f03104541c18c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 3320ba30bfea0b4d2eda0c7f368834097dcde46a
Author: Phil Muldoon <pmuldoon@redhat.com>
Date: Tue Apr 1 13:55:46 2008 +0100
2008-04-01 Phil Muldoon <pmuldoon@redhat.com>
* funit-watchpoint.S: Comment.
-----------------------------------------------------------------------
Summary of changes:
frysk-core/frysk/pkglibdir/ChangeLog | 1 +
frysk-core/frysk/pkglibdir/funit-watchpoint.S | 23 +++++++++++++++++++++--
2 files changed, 22 insertions(+), 2 deletions(-)
First 500 lines of diff:
diff --git a/frysk-core/frysk/pkglibdir/ChangeLog b/frysk-core/frysk/pkglibdir/ChangeLog
index 504e7f5..97d9c2c 100644
--- a/frysk-core/frysk/pkglibdir/ChangeLog
+++ b/frysk-core/frysk/pkglibdir/ChangeLog
@@ -1,6 +1,7 @@
2008-04-01 Phil Muldoon <pmuldoon@redhat.com>
* funit-watchpoint.S: New.
+ Comment.
2008-03-18 Stan Cox <scox@redhat.com>
diff --git a/frysk-core/frysk/pkglibdir/funit-watchpoint.S b/frysk-core/frysk/pkglibdir/funit-watchpoint.S
index eb0863f..67fce05 100644
--- a/frysk-core/frysk/pkglibdir/funit-watchpoint.S
+++ b/frysk-core/frysk/pkglibdir/funit-watchpoint.S
@@ -39,25 +39,44 @@
#include "frysk-asm.h"
+// Function to write to a global var memory address and then exit.
+// This tests the ability of a the watchpoint code to catch
+// a dead simple and basic watchpoint test condition. If the
+// program exits before the Watchpoint fired, the test fails.
+//
+// This program is normally started, blocked at entry. Then the
+// watchpoint is applied in the debugger. Then the program is set
+// to continue.
FUNCTION_BEGIN(main,0)
MAIN_PROLOGUE(0)
NOP
-
+
+// Load source variables address into GPR 1
LOAD_IMMED_BYTE (REG1, source)
+
+// Load the literal value 0x77 into GPR3. The value isn't important
+// the actual writing of the data is.
LOAD_IMMED_BYTE (REG3, 0x77)
+
+// Clear the decks ...
NOP
NOP
NOP
+
+// Write 0x77 into the location of source (held by GPR1)
STORE(REG3, REG1)
+
+// Clear the decks ....
NOP
NOP
NOP
-
+// End. And exit
MAIN_EPILOGUE(0)
FUNCTION_RETURN(main,0)
FUNCTION_END(main,0)
+// Declare a global variable source. One byte and populate it
.data
.globl source
source: // Set up memory locations
hooks/post-receive
--
frysk system monitor/debugger
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-01 12:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-01 12:56 [SCM] master: 2008-04-01 Phil Muldoon <pmuldoon@redhat.com> pmuldoon
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).