public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
From: swagiaal@sourceware.org
To: frysk-cvs@sourceware.org
Subject: [SCM]  master: frysk-core/frysk/hpd/ChangeLog
Date: Fri, 06 Jun 2008 19:31:00 -0000	[thread overview]
Message-ID: <20080606193105.22794.qmail@sourceware.org> (raw)

The branch, master has been updated
       via  d457d47661f4f6f233456e7f2ec24a94a79b2f90 (commit)
      from  203393a2fbb9559a36f78993d292cf9ce5df9f13 (commit)

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

- Log -----------------------------------------------------------------
commit d457d47661f4f6f233456e7f2ec24a94a79b2f90
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Fri Jun 6 15:26:38 2008 -0400

    frysk-core/frysk/hpd/ChangeLog
    +2008-06-06  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	* TestFhpdThreads.java
    +	(testHpdSteppingBothThreads): New test.
    +
    
    frysk-core/frysk/pkglibdir/ChangeLog
    +2008-06-06  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	* funit-2threads.c: New test program.
    +

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

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog              |    5 ++
 frysk-core/frysk/hpd/TestFhpdThreads.java   |   76 +++++++++++++++++++++++++++
 frysk-core/frysk/pkglibdir/ChangeLog        |    4 ++
 frysk-core/frysk/pkglibdir/funit-2threads.c |   72 +++++++++++++++++++++++++
 4 files changed, 157 insertions(+), 0 deletions(-)
 create mode 100644 frysk-core/frysk/hpd/TestFhpdThreads.java
 create mode 100644 frysk-core/frysk/pkglibdir/funit-2threads.c

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 99eba18..61bfb02 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-06  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	* TestFhpdThreads.java 
+	(testHpdSteppingBothThreads): New test.
+
 2008-06-06  Teresa Thomas  <tthomas@redhat.com>
 
 	* BreakpointCommand.java (*.updateHit): 
diff --git a/frysk-core/frysk/hpd/TestFhpdThreads.java b/frysk-core/frysk/hpd/TestFhpdThreads.java
new file mode 100644
index 0000000..aefa5e4
--- /dev/null
+++ b/frysk-core/frysk/hpd/TestFhpdThreads.java
@@ -0,0 +1,76 @@
+// This file is part of the program FRYSK.
+//
+// Copyright 2006, 2007, 2008, Red Hat Inc.
+//
+// FRYSK is free software; you can redistribute it and/or modify it
+// under the terms of the GNU General Public License as published by
+// the Free Software Foundation; version 2 of the License.
+//
+// FRYSK is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with FRYSK; if not, write to the Free Software Foundation,
+// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+// 
+// In addition, as a special exception, Red Hat, Inc. gives You the
+// additional right to link the code of FRYSK with code not covered
+// under the GNU General Public License ("Non-GPL Code") and to
+// distribute linked combinations including the two, subject to the
+// limitations in this paragraph. Non-GPL Code permitted under this
+// exception must only link to the code of FRYSK through those well
+// defined interfaces identified in the file named EXCEPTION found in
+// the source code files (the "Approved Interfaces"). The files of
+// Non-GPL Code may instantiate templates or use macros or inline
+// functions from the Approved Interfaces without causing the
+// resulting work to be covered by the GNU General Public
+// License. Only Red Hat, Inc. may make changes or additions to the
+// list of Approved Interfaces. You must obey the GNU General Public
+// License in all respects for all of the FRYSK code and other code
+// used in conjunction with FRYSK except the Non-GPL Code covered by
+// this exception. If you modify this file, you may extend this
+// exception to your version of the file, but you are not obligated to
+// do so. If you do not wish to provide this exception without
+// modification, you must delete this exception statement from your
+// version and license this file solely under the GPL without
+// exception.
+
+package frysk.hpd;
+
+import frysk.testbed.TestLib;
+
+/**
+ * This performs a "sniff" test of Fstack, confirming basic
+ * functionality of the command line interface.
+ *
+ * For more specific tests see frysk.hpd.
+ */
+
+public class TestFhpdThreads extends TestLib {
+
+    public void testHpdSteppingBothThreads() {
+	
+	if(unresolved(6604)){
+	    return;
+	}
+	    
+	HpdTestbed e = HpdTestbed.load("funit-2threads", "");
+	e.sendCommandExpectPrompt("break main", ".*breakpoint 0.*");
+	e.send("run\n");
+	e.expect(".*Breakpoint 0 main.*");
+
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	e.sendCommandExpectPrompt("next", ".*Task stopped at line.*");
+	
+    }
+    
+}
diff --git a/frysk-core/frysk/pkglibdir/ChangeLog b/frysk-core/frysk/pkglibdir/ChangeLog
index 60d3428..181dd43 100644
--- a/frysk-core/frysk/pkglibdir/ChangeLog
+++ b/frysk-core/frysk/pkglibdir/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-06  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	* funit-2threads.c: New test program.
+
 2008-06-05  Andrew Cagney  <cagney@redhat.com>
 
 	* funit-raise.S: Fix ADD parameter order.
diff --git a/frysk-core/frysk/pkglibdir/funit-2threads.c b/frysk-core/frysk/pkglibdir/funit-2threads.c
new file mode 100644
index 0000000..83a4db5
--- /dev/null
+++ b/frysk-core/frysk/pkglibdir/funit-2threads.c
@@ -0,0 +1,72 @@
+// This file is part of the program FRYSK.
+//
+// Copyright 2005, Red Hat Inc.
+//
+// FRYSK is free software; you can redistribute it and/or modify it
+// under the terms of the GNU General Public License as published by
+// the Free Software Foundation; version 2 of the License.
+//
+// FRYSK is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with FRYSK; if not, write to the Free Software Foundation,
+// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+// 
+// In addition, as a special exception, Red Hat, Inc. gives You the
+// additional right to link the code of FRYSK with code not covered
+// under the GNU General Public License ("Non-GPL Code") and to
+// distribute linked combinations including the two, subject to the
+// limitations in this paragraph. Non-GPL Code permitted under this
+// exception must only link to the code of FRYSK through those well
+// defined volatile interfaces identified in the file named EXCEPTION found in
+// the source code files (the "Approved volatile interfaces"). The files of
+// Non-GPL Code may instantiate templates or use macros or inline
+// functions from the Approved volatile interfaces without causing the
+// resulting work to be covered by the GNU General Public
+// License. Only Red Hat, Inc. may make changes or additions to the
+// list of Approved volatile interfaces. You must obey the GNU General Public
+// License in all respects for all of the FRYSK code and other code
+// used in conjunction with FRYSK except the Non-GPL Code covered by
+// this exception. If you modify this file, you may extend this
+// exception to your version of the file, but you are not obligated to
+// do so. If you do not wish to provide this exception without
+// modification, you must delete this exception statement from your
+// version and license this file solely under the GPL without
+// exception.
+
+#include <stdio.h>
+#include <sys/types.h>
+#include <signal.h>
+#include <unistd.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <pthread.h>
+
+pthread_t thread;
+
+void* thread_func ()
+{
+  int count1 = 0;
+
+  while(count1 < 1000){
+    printf("Thread 1: %d\n", count1++);
+  }
+  return NULL;
+}
+
+int main (){
+
+  pthread_create (&thread, NULL, thread_func, NULL);
+  
+  int count0 = 0;
+
+  while(count0 < 1000){
+    printf("Thread 0: %d\n", count0++);
+  }
+
+  pthread_join(thread,NULL);
+  return 0;
+}


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


             reply	other threads:[~2008-06-06 19:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 19:31 swagiaal [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-03-17 19:09 cagney
2008-03-03 23:09 cagney
2008-02-26 16:54 cagney
2008-02-25 17:17 cagney
2008-01-08 21:41 cagney

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=20080606193105.22794.qmail@sourceware.org \
    --to=swagiaal@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).