This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [SCM] master: Merge branch 'master' of ssh://sources.redhat.com/git/frysk


pmuldoon@sourceware.org wrote:

This commit build a dead simple watchpoint scenario. The assembly level program writes to a global and exits. For the time being it is a sanity tests for the upcoming Watchpoint observer code, and tests that watchpoints at the lowest and most simple level work.

Regards

Phil
The branch, master has been updated
       via  22a5428f36763f5bf81885fcc19f03104541c18c (commit)
       via  0b3aa7428253d10407c79d4be51e02afcdf92952 (commit)
      from  e1ebce24e45ed9778fa430444318ec8f92de1f5e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 22a5428f36763f5bf81885fcc19f03104541c18c
Merge: 0b3aa7428253d10407c79d4be51e02afcdf92952 e1ebce24e45ed9778fa430444318ec8f92de1f5e
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Tue Apr 1 13:28:34 2008 +0100

Merge branch 'master' of ssh://sources.redhat.com/git/frysk

commit 0b3aa7428253d10407c79d4be51e02afcdf92952
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Tue Apr 1 13:27:36 2008 +0100

Add new assembler progream funit-watchpoint.S
2008-04-01 Phil Muldoon <pmuldoon@redhat.com>
* funit-watchpoint.S: New.


-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/pkglibdir/ChangeLog               |    4 ++
 .../{funit-libcall.c => funit-watchpoint.S}        |   40 ++++++++++++--------
 2 files changed, 28 insertions(+), 16 deletions(-)
 copy frysk-core/frysk/pkglibdir/{funit-libcall.c => funit-watchpoint.S} (87%)

First 500 lines of diff:
diff --git a/frysk-core/frysk/pkglibdir/ChangeLog b/frysk-core/frysk/pkglibdir/ChangeLog
index 7ec6e15..504e7f5 100644
--- a/frysk-core/frysk/pkglibdir/ChangeLog
+++ b/frysk-core/frysk/pkglibdir/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-01 Phil Muldoon <pmuldoon@redhat.com>
+
+ * funit-watchpoint.S: New.
+
2008-03-18 Stan Cox <scox@redhat.com>
* funit-quicksort.c (main): Make sortlist extern.
diff --git a/frysk-core/frysk/pkglibdir/funit-libcall.c b/frysk-core/frysk/pkglibdir/funit-watchpoint.S
similarity index 87%
copy from frysk-core/frysk/pkglibdir/funit-libcall.c
copy to frysk-core/frysk/pkglibdir/funit-watchpoint.S
index 578b0a2..eb0863f 100644
--- a/frysk-core/frysk/pkglibdir/funit-libcall.c
+++ b/frysk-core/frysk/pkglibdir/funit-watchpoint.S
@@ -37,22 +37,30 @@
// version and license this file solely under the GPL without
// exception.
-#include <stdlib.h>
-#include <sys/time.h>
+#include "frysk-asm.h"
-static volatile long tmp = 0;
+FUNCTION_BEGIN(main,0)
+MAIN_PROLOGUE(0)
+NOP
+
+LOAD_IMMED_BYTE (REG1, source)
+LOAD_IMMED_BYTE (REG3, 0x77)
+NOP
+NOP
+NOP
+STORE(REG3, REG1)
+NOP
+NOP
+NOP
+
+
+MAIN_EPILOGUE(0)
+FUNCTION_RETURN(main,0)
+FUNCTION_END(main,0)
+
+.data
+.globl source
+source: // Set up memory locations
+ .byte 0x99
-void
-foo ()
-{
- struct timeval t;
- gettimeofday (&t, NULL); // _testIStepThrough_
- tmp += t.tv_usec;
-}
-int
-main (int argc, char **argv)
-{
- foo ();
- exit (0);
-}



hooks/post-receive
--
frysk system monitor/debugger


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]