From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19407 invoked by alias); 1 Apr 2008 12:56:07 -0000 Received: (qmail 19382 invoked by uid 9514); 1 Apr 2008 12:56:07 -0000 Date: Tue, 01 Apr 2008 12:56:00 -0000 Message-ID: <20080401125607.19367.qmail@sourceware.org> From: pmuldoon@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: 2008-04-01 Phil Muldoon X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 22a5428f36763f5bf81885fcc19f03104541c18c X-Git-Newrev: 3320ba30bfea0b4d2eda0c7f368834097dcde46a 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/msg00001.txt.bz2 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 Date: Tue Apr 1 13:55:46 2008 +0100 2008-04-01 Phil Muldoon * 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 * funit-watchpoint.S: New. + Comment. 2008-03-18 Stan Cox 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