public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Merge branch 'master' of ssh://sourceware.org/git/frysk
@ 2008-04-19  0:32 scox
  0 siblings, 0 replies; 6+ messages in thread
From: scox @ 2008-04-19  0:32 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  52ced09bbfafaaf25f6b8d281797a0bd2fc7683a (commit)
       via  73d282bf3a5fcd53f93fefa656a5147241eea314 (commit)
      from  7818efc4183ec591a9272ec46b31b01e34b07ab8 (commit)

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

- Log -----------------------------------------------------------------
commit 52ced09bbfafaaf25f6b8d281797a0bd2fc7683a
Merge: 73d282bf3a5fcd53f93fefa656a5147241eea314 7818efc4183ec591a9272ec46b31b01e34b07ab8
Author: Stan Cox <scox@redhat.com>
Date:   Fri Apr 18 20:32:37 2008 -0400

    Merge branch 'master' of ssh://sourceware.org/git/frysk

commit 73d282bf3a5fcd53f93fefa656a5147241eea314
Author: Stan Cox <scox@redhat.com>
Date:   Fri Apr 18 20:29:47 2008 -0400

    Use SysRootCache if we don't have the ExeFile.
    
    * Host.java (requestCreateAttachedProc): If unable to use getExeFile
    to get SysRoot then use SysRootCache.

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

Summary of changes:
 frysk-core/frysk/proc/ChangeLog |    5 +++++
 frysk-core/frysk/proc/Host.java |    9 +++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index 2861790..77cafc4 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-18  Stan Cox  <scox@redhat.com>
+
+	* Host.java (requestCreateAttachedProc): If unable to use getExeFile
+	to get SysRoot then use SysRootCache.
+
 2008-04-17  Andrew Cagney  <cagney@redhat.com>
 
 	* StressAttachDetachSignaledTask.java: Use frysk.config.Prefix.
diff --git a/frysk-core/frysk/proc/Host.java b/frysk-core/frysk/proc/Host.java
index dda263c..ad05c6f 100644
--- a/frysk-core/frysk/proc/Host.java
+++ b/frysk-core/frysk/proc/Host.java
@@ -43,6 +43,7 @@ import java.io.File;
 import java.util.Collection;
 import frysk.rsl.Log;
 import frysk.sysroot.SysRoot;
+import frysk.sysroot.SysRootCache;
 import frysk.sysroot.SysRootFile;
 
 /**
@@ -102,8 +103,10 @@ public abstract class Host implements Comparable {
 					  TaskAttachedObserverXXX attachedObserver) {
 	fine.log(this, "requestCreateAttachedProc", args, "observer",
 		 attachedObserver);
+	SysRoot sysRoot = new SysRoot(SysRootCache.getSysRoot(args[0]));
 	requestCreateAttachedProc(new File(args[0]), stdin, stdout, stderr,
-				  args, "", attachedObserver);
+				  args, sysRoot.getLibPathViaSysRoot(),
+				  attachedObserver);
     }
     /**
      * Request that a new attached and running process(with stdin,
@@ -113,8 +116,10 @@ public abstract class Host implements Comparable {
 					  TaskAttachedObserverXXX attachedObserver) {
 	fine.log(this, "requestCreateAttachedProc", args, "observer",
 		 attachedObserver);
+	SysRoot sysRoot = new SysRoot(SysRootCache.getSysRoot(args[0]));
 	requestCreateAttachedProc(new File(args[0]), null, null, null,
-				  args, "", attachedObserver);
+				  args, sysRoot.getLibPathViaSysRoot(),
+				  attachedObserver);
     }
     /**
      * Request that a new attached and running process based on


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [SCM]  master: Merge branch 'master' of ssh://sourceware.org/git/frysk
@ 2008-05-29 15:51 tthomas
  0 siblings, 0 replies; 6+ messages in thread
From: tthomas @ 2008-05-29 15:51 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  b13abf2affd8f6f2011c4359e7df9956b96e7f3c (commit)
       via  4bae1f3d3f5fb5de4544c7aed24f683c26d9a5f6 (commit)
      from  8078d5459fa06dc2a04983d077d03412baf24d55 (commit)

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

- Log -----------------------------------------------------------------
commit b13abf2affd8f6f2011c4359e7df9956b96e7f3c
Merge: 4bae1f3d3f5fb5de4544c7aed24f683c26d9a5f6 8078d5459fa06dc2a04983d077d03412baf24d55
Author: Teresa Thomas <tthomas@redhat.com>
Date:   Thu May 29 11:53:16 2008 -0400

    Merge branch 'master' of ssh://sourceware.org/git/frysk

commit 4bae1f3d3f5fb5de4544c7aed24f683c26d9a5f6
Author: Teresa Thomas <tthomas@redhat.com>
Date:   Thu May 29 11:37:53 2008 -0400

    Display watchpoint set message only once when using multiple observers.
    
    frysk-core/frysk/rt/ChangeLog:
    2008-05-29  Teresa Thomas  <tthomas@redhat.com>
    
    	* WatchObserverInstaller.java (WatchpointObserver.addedTo):
    	Display set message only for first observer.
    
    frysk-core/frysk/hpd/ChangeLog:
    2008-05-29  Teresa Thomas  <tthomas@redhat.com>
    
    	* TestWatchCommand.java (testWatchpointSetMessage): New.

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

Summary of changes:
 frysk-core/frysk/hpd/ChangeLog                  |   10 +++++--
 frysk-core/frysk/hpd/TestWatchCommand.java      |   20 +++++++++++++++
 frysk-core/frysk/rt/ChangeLog                   |    5 ++++
 frysk-core/frysk/rt/WatchObserverInstaller.java |   29 +++++++++++++++++-----
 4 files changed, 54 insertions(+), 10 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 200c141..5f65fca 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,3 +1,7 @@
+2008-05-29  Teresa Thomas  <tthomas@redhat.com>
+
+	* TestWatchCommand.java (testWatchpointSetMessage): New.	
+
 2008-05-29  Rick Moseley  <rmoseley@redhat.com>
 
 	* CLI.java: Clean up by removing unnecessary methods;
@@ -12,11 +16,11 @@
 	* TestDisplayCommand.java: Fix message testing.
 	* TestFhpdStepping.java: Ditto.
 
-2008-05-28 Teresa Thomas  <tthomas@redhat.com>
+2008-05-28  Teresa Thomas  <tthomas@redhat.com>
 
 	* WatchCommand.java (interpret): Use rt.WatchObserverInstaller.
 
-2008-05-26 Teresa Thomas  <tthomas@redhat.com>
+2008-05-26  Teresa Thomas  <tthomas@redhat.com>
 
 	* WatchCommand.java (watchpointsInUse): New
 	(WatchpointObserver.addedTo): Increment watchpointsInUse.
@@ -25,7 +29,7 @@
 
 	* TestWatchCommand.java (testBadWatch): New.
 
-2008-05-23 Teresa Thomas  <tthomas@redhat.com>
+2008-05-23  Teresa Thomas  <tthomas@redhat.com>
 
 	* WatchCommand.java (interpret): Install multiple
 	watchobservers if necessary.
diff --git a/frysk-core/frysk/hpd/TestWatchCommand.java b/frysk-core/frysk/hpd/TestWatchCommand.java
index f7748fb..dbacbb4 100644
--- a/frysk-core/frysk/hpd/TestWatchCommand.java
+++ b/frysk-core/frysk/hpd/TestWatchCommand.java
@@ -120,6 +120,26 @@ public class TestWatchCommand extends TestLib {
       e.close();
   }  
   
+  public void testWatchpointSetMessage()
+  {
+      e = new HpdTestbed();
+      e.sendCommandExpectPrompt("load " + Prefix.pkgLibFile("funit-ctypes").getPath(),
+                                "Loaded executable file.*");
+      e.sendCommandExpectPrompt("start", "Attached to process.*");
+      
+      // Should show set message only once even 
+      // when multiple debug registers required.
+      e.send("watch long_long\n"); 
+      e.expect("Watchpoint set: long_long.*");
+            
+      e.send("watch char_\n"); 
+      e.expect("Watchpoint set: char_.*");
+
+      e.send("quit\n");
+      e.expect("Quitting\\.\\.\\.");
+      e.close();
+  }   
+  
   /*
    * Test to watch a data type whose size is larger than
    * that can be watched by all hardware watch registers
diff --git a/frysk-core/frysk/rt/ChangeLog b/frysk-core/frysk/rt/ChangeLog
index 82cf8e7..1651511 100644
--- a/frysk-core/frysk/rt/ChangeLog
+++ b/frysk-core/frysk/rt/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-29  Teresa Thomas  <tthomas@redhat.com>
+
+	* WatchObserverInstaller.java (WatchpointObserver.addedTo):
+	Display set message only for first observer. 
+
 2008-05-28  Teresa Thomas  <tthomas@redhat.com>
 
 	* WatchObserverInstaller.java (WatchpointObserver):
diff --git a/frysk-core/frysk/rt/WatchObserverInstaller.java b/frysk-core/frysk/rt/WatchObserverInstaller.java
index 3d0bfd6..df0034d 100644
--- a/frysk-core/frysk/rt/WatchObserverInstaller.java
+++ b/frysk-core/frysk/rt/WatchObserverInstaller.java
@@ -102,18 +102,21 @@ public class WatchObserverInstaller {
 	// to completely watch the variable.
 	int numberOfObservers = (int)Math.ceil((double)variableLength/
 	                           	       (double)maxWatchLength);
+	int observerNumber = 1;
 	
 	// Add watchpoint observers to task. 
 	for (int i=0; i< numberOfObservers-1; i++) {
 	    WatchpointObserver wpo = new WatchpointObserver
-	                               (expr, exprString, task, ste, writer);    
+	                               (expr, exprString, task, ste, writer, 
+	                        	observerNumber++, numberOfObservers);    
 	    task.requestAddWatchObserver
 	         (wpo, variableAddress + i*maxWatchLength, 
 	          maxWatchLength, writeOnly);
-	}	
+	}
 	// Last observer may not need to watch all watchLength bytes. 
 	WatchpointObserver wpo = new WatchpointObserver
-	                           (expr, exprString, task, ste, writer); 
+	                           (expr, exprString, task, ste, writer, 
+	                            observerNumber++, numberOfObservers); 
 	task.requestAddWatchObserver
 	       (wpo, variableAddress + (numberOfObservers-1)*maxWatchLength, 
 		variableLength-(numberOfObservers-1)*maxWatchLength, writeOnly);
@@ -134,17 +137,22 @@ public class WatchObserverInstaller {
 	PrintWriter writer;
 	String oldValue;
 	Task task;
+	int observerNumber;
+	int numberOfObservers;
 	
 	WatchpointObserver(Expression expr, String exprStr, Task task,
-		           SteppingEngine ste, PrintWriter writer) {
+		           SteppingEngine ste, PrintWriter writer,
+		           int observerNumber, int numberOfObservers) {
 	    this.expr = expr;
 	    this.exprString = exprStr;
 	    this.ste = ste;
 	    this.writer = writer;
 	    this.task = task;
 	    this.oldValue = "";
-
+	    this.observerNumber = observerNumber;
+	    this.numberOfObservers = numberOfObservers;
 	}
+	
 	public Action updateHit(Task task, long address, int length) {
 
 	    String newValue = expr.getValue().toPrint
@@ -166,11 +174,18 @@ public class WatchObserverInstaller {
 	}
 
 	public void addedTo(Object observable) {
-	    writer.println("Watchpoint set: " + exprString); 
+	    
+	    // Display set message only for first 
+	    // observer of an expression
+	    if (observerNumber == 1) {
+		writer.print("Watchpoint set: " + exprString); 
+		writer.println(" (Uses "+ numberOfObservers + " debug register(s))");	
+	    }
+	    
 	    watchpointsInUse++;
 	    // XXX: getValue may modify inferior.
 	    oldValue = expr.getValue().toPrint
-	                      (Format.NATURAL, task.getMemory());	    
+	                 (Format.NATURAL, task.getMemory());	    
 	}
 
 	public void deletedFrom(Object observable) {


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [SCM]  master: Merge branch 'master' of ssh://sourceware.org/git/frysk
@ 2008-05-07 15:23 tthomas
  0 siblings, 0 replies; 6+ messages in thread
From: tthomas @ 2008-05-07 15:23 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  a058347d11f607149992b34bba5be94ad4cc3355 (commit)
       via  8cc70a3388b24b69a0b8459b2750ff70265ad0b4 (commit)
      from  12cea45ad5e923dce81131eab960b85d65eeb690 (commit)

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

- Log -----------------------------------------------------------------
commit a058347d11f607149992b34bba5be94ad4cc3355
Merge: 8cc70a3388b24b69a0b8459b2750ff70265ad0b4 12cea45ad5e923dce81131eab960b85d65eeb690
Author: Teresa Thomas <tthomas@redhat.com>
Date:   Wed May 7 11:25:02 2008 -0400

    Merge branch 'master' of ssh://sourceware.org/git/frysk

commit 8cc70a3388b24b69a0b8459b2750ff70265ad0b4
Author: Teresa Thomas <tthomas@redhat.com>
Date:   Wed May 7 11:24:37 2008 -0400

    Fix exception message when watch set on unsupported sizes.
    
    frysk-core/frysk/isa/watchpoints/ChangeLog:
    2008-05-07  Teresa Thomas  <tthomas@redhat.com>
    
    	* IA32WatchpointFunctions.java (setWatchpoint): Fix
    	exception message.

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

Summary of changes:
 frysk-core/frysk/isa/watchpoints/ChangeLog         |    5 +++++
 .../isa/watchpoints/IA32WatchpointFunctions.java   |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/isa/watchpoints/ChangeLog b/frysk-core/frysk/isa/watchpoints/ChangeLog
index be0d350..961ea10 100644
--- a/frysk-core/frysk/isa/watchpoints/ChangeLog
+++ b/frysk-core/frysk/isa/watchpoints/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-07  Teresa Thomas  <tthomas@redhat.com>
+
+	* IA32WatchpointFunctions.java (setWatchpoint): Fix
+	exception message.
+
 2008-04-09  Phil Muldoon  <pmuldoon@redhat.com>
 
 	* TestWatchpoint.java (testWatchpointTrigger): Move
diff --git a/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java b/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java
index 42d2fce..ce962aa 100644
--- a/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java
+++ b/frysk-core/frysk/isa/watchpoints/IA32WatchpointFunctions.java
@@ -132,7 +132,7 @@ class IA32WatchpointFunctions extends WatchpointFunctions {
 	}
 	else
 	    throw new RuntimeException("Invalid size for watchpoint " +
-				       "range. Has to be 1, 2, 4 or 8");
+				       "range. Has to be 1, 2 or 4");
     }
 
 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [SCM]  master: Merge branch 'master' of ssh://sourceware.org/git/frysk
@ 2007-11-27  2:15 pzhao
  0 siblings, 0 replies; 6+ messages in thread
From: pzhao @ 2007-11-27  2:15 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  09eab2c9c52fbf13ed5d1c50a246868653fe7198 (commit)
       via  53364e361cad948dc4e34f2827e101b8e64b8df8 (commit)
      from  99e16d1871d3f7f834bdc8834b747591e01299a5 (commit)

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

- Log -----------------------------------------------------------------
commit 09eab2c9c52fbf13ed5d1c50a246868653fe7198
Merge: 53364e361cad948dc4e34f2827e101b8e64b8df8 99e16d1871d3f7f834bdc8834b747591e01299a5
Author: Zhao Shujing <pearly.zhao@oracle.com>
Date:   Tue Nov 27 23:14:19 2007 +0800

    Merge branch 'master' of ssh://sourceware.org/git/frysk

commit 53364e361cad948dc4e34f2827e101b8e64b8df8
Author: Zhao Shujing <pearly.zhao@oracle.com>
Date:   Tue Nov 27 23:05:41 2007 +0800

    Fix bug #5394
    
    frysk-core/frysk/proc/live/ChangeLog
    2007-11-22  Zhao shujing  <pearly.zhao@oracle.com>
    
           * TestByteBuffer.java (testMemoryBufferCapacity()): Fix bug 5394.

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

Summary of changes:
 frysk-core/frysk/proc/live/ChangeLog           |    4 ++++
 frysk-core/frysk/proc/live/TestByteBuffer.java |   24 +++++++++++++++++++-----
 2 files changed, 23 insertions(+), 5 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/live/ChangeLog b/frysk-core/frysk/proc/live/ChangeLog
index 0e8ba0d..30c52d9 100644
--- a/frysk-core/frysk/proc/live/ChangeLog
+++ b/frysk-core/frysk/proc/live/ChangeLog
@@ -1,3 +1,7 @@
+2007-11-22  Zhao shujing  <pearly.zhao@oracle.com>
+
+	* TestByteBuffer.java (testMemoryBufferCapacity()): Fix bug 5394.
+
 2007-11-22  Andrew Cagney  <cagney@redhat.com>
 
 	* TestByteBuffer.java (testMemoryBufferCapacity()): Mark as
diff --git a/frysk-core/frysk/proc/live/TestByteBuffer.java b/frysk-core/frysk/proc/live/TestByteBuffer.java
index d8d8063..921b477 100644
--- a/frysk-core/frysk/proc/live/TestByteBuffer.java
+++ b/frysk-core/frysk/proc/live/TestByteBuffer.java
@@ -40,9 +40,14 @@
 package frysk.proc.live;
 
 import inua.eio.ByteBuffer;
+import frysk.isa.ISA;
 import frysk.junit.TestCase;
+import frysk.proc.Task;
 import frysk.testbed.AttachedSelf;
+import frysk.testbed.ExecCommand;
+import frysk.testbed.ExecOffspring;
 import frysk.testbed.LocalMemory;
+import frysk.testbed.TearDownFile;
 import frysk.sys.Ptrace.RegisterSet;
 import frysk.sys.Ptrace.AddressSpace;
 import frysk.proc.Manager;
@@ -58,13 +63,12 @@ public class TestByteBuffer
     private ByteBuffer[] addressBuffers;
     private ByteBuffer[] registerBuffers;
 
-    private ByteBuffer memorySpaceByteBuffer;
-
     public void setUp () throws Exception
     {
       int pid;
       ByteBuffer addressSpaceByteBufferText;
       ByteBuffer addressSpaceByteBufferData;
+      ByteBuffer memorySpaceByteBuffer;
       ByteBuffer usrByteBuffer;
       ByteBuffer registerByteBuffer;
       ByteBuffer fpregisterByteBuffer;
@@ -266,12 +270,22 @@ public class TestByteBuffer
 	  verifyPeeks(registerBuffers[i], addr, origBytes);
 	}
     }
-
     public void testMemoryBufferCapacity() {
 	if (unresolved(5394))
 	    return;
-	assertEquals("Memory Buffer Capacity: ", -1L,
-		     memorySpaceByteBuffer.capacity());
+	TearDownFile tmpFile = TearDownFile.create();
+	ExecOffspring child
+		= new ExecOffspring(new ExecCommand (new String[] {
+						 "/bin/rm",
+						 tmpFile.toString()
+					     }));
+	Task task = child.findTaskUsingRefresh(true);
+	if (task.getISA() == ISA.IA32)
+		assertEquals("Memory Buffer Capacity: ", 0xffffffffL,
+		     task.getMemory().capacity());
+	if (task.getISA() == ISA.X8664)
+		assertEquals("Memory Buffer Capacity: ", 0xffffffffffffffffL,
+                     task.getMemory().capacity());
     }
 
     private class AsyncPeeks


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [SCM]  master: Merge branch 'master' of ssh://sourceware.org/git/frysk
@ 2007-11-20 17:23 cagney
  0 siblings, 0 replies; 6+ messages in thread
From: cagney @ 2007-11-20 17:23 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  8789dff1d92139a71529b529fe30aa4200e846e7 (commit)
       via  c5722b7dbd78021357932ea696a92c9224c24152 (commit)
       via  ba5fdd9695f974212a4d6b07362c7cc3071b261d (commit)
      from  c1fd6f37ec54c0d81fa3b56f4611832df6574dcd (commit)

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

- Log -----------------------------------------------------------------
commit 8789dff1d92139a71529b529fe30aa4200e846e7
Merge: c5722b7dbd78021357932ea696a92c9224c24152 c1fd6f37ec54c0d81fa3b56f4611832df6574dcd
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Nov 20 12:22:03 2007 -0500

    Merge branch 'master' of ssh://sourceware.org/git/frysk

commit c5722b7dbd78021357932ea696a92c9224c24152
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Nov 20 12:21:47 2007 -0500

    Prune old releases.

commit ba5fdd9695f974212a4d6b07362c7cc3071b261d
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Nov 20 12:13:38 2007 -0500

    Create sub-directories for old distros.

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

Summary of changes:
 htdocs/build/{ => debian}/index.html |    0 
 htdocs/build/{ => fedora}/index.html |    0 
 htdocs/build/index.html              |  128 ++++++++--------------------------
 htdocs/build/{ => rhel}/index.html   |    0 
 htdocs/build/{ => ubuntu}/index.html |    0 
 5 files changed, 29 insertions(+), 99 deletions(-)
 copy htdocs/build/{ => debian}/index.html (100%)
 copy htdocs/build/{ => fedora}/index.html (100%)
 copy htdocs/build/{ => rhel}/index.html (100%)
 copy htdocs/build/{ => ubuntu}/index.html (100%)

First 500 lines of diff:
diff --git a/htdocs/build/index.html b/htdocs/build/debian/index.html
similarity index 100%
copy from htdocs/build/index.html
copy to htdocs/build/debian/index.html
diff --git a/htdocs/build/index.html b/htdocs/build/fedora/index.html
similarity index 100%
copy from htdocs/build/index.html
copy to htdocs/build/fedora/index.html
diff --git a/htdocs/build/index.html b/htdocs/build/index.html
index c29f491..40062f2 100644
--- a/htdocs/build/index.html
+++ b/htdocs/build/index.html
@@ -56,14 +56,9 @@
 <a href="#faq">Build or Test Question?</a><br>
 <a href="#git">Frysk and Git</a><br>
 <br>
-<a href="#f8">Fedora 8</a><br>
-<a href="#f7">Fedora 7</a><br>
-<a href="#fc6">Fedora Core 6</a><br>
-<a href="#ubuntu-gutsy">Ubuntu - Gutsy</a><br>
-<a href="#ubuntu-edgy">Ubuntu - Edgy</a><br>
-<a href="#ubuntu-breezy">Ubuntu - Breezy</a><br>
-<a href="#rhel5">RHEL 5</a><br>
-<a href="#rhel4">RHEL 4</a><br>
+<a href="#f">Fedora</a><br>
+<a href="#ubuntu">Ubuntu</a><br>
+<a href="#rhel">RHEL</a><br>
 <a href="#debian">Debian</a><br>
 </p>
 	      <!-- end logo -->
@@ -81,9 +76,7 @@ that all its prerequisites are met.</p>
 
 <dl>
 
-<dt><a name="f8">Fedora 8</a><br><a name="f7">Fedora
-7</a><br><a name="fc6">Fedora Core 6</a><br><a name="rhel5">RHEL
-5</a></dt>
+<dt><a name="f">Fedora 8</a></dt>
 
 <dd>
 
@@ -100,37 +93,41 @@ sudo yum install -y \
 
 For additional updates, check
 the <a href="/bugzilla/showdependencytree.cgi?id=4743">Fedora
-8</a>, <a href="/bugzilla/showdependencytree.cgi?id=3620">Fedora
-7</a>, <a href="/bugzilla/showdependencytree.cgi?id=2654">Fedora Core
-6</a>, or <a href="/bugzilla/showdependencytree.cgi?id=3385">RHEL
-5</a> tracker bug.
+8</a>, tracker bug.
+
+<br>
+
+For earlier Fedora releases check the <a href="fedora/">Fedora
+Page</a.
 
 </dd>
 
-<dt><a name="rhel4"></a>Red Hat Enterprise Linux 4</dt>
+<dt><a name="rhel">RHEL 5.1</a></dt>
 
 <dd>
 
-Red Hat Enterprise Linux 4 Update 3 and later include <tt>gcc4</tt>
-and <tt><em>frysk</em></tt> RPMs that contain everything needed to
-build <em>frysk</em> from <tt>CVS</tt>; just install RPMs for the following:
+You will need to install the following:
 
 <pre>
-transfig xmlto passivetex xmltex \
-gcc4 gcc4-c++ gcc4-java libgcj4-devel \
-sharutils frysk automake ghostscript yelp
+sudo yum install -y \
+    antlr jdom junit gcc-java gcc-c++ \
+    libglade-java-devel libvte-java-devel \
+    automake xmlto transfig eclipse-ecj dogtail \
+    sharutils git audit-libs-devel binutils-devel \
+    yelp libtool make
 </pre>
 
-(A broken dependency in transfig means that ghostscript must also be
-explicitly specified.)
-<p>For additional updates, check Red Hat Enterprise Linux 4's tracker
-bug's <a
-href="/bugzilla/showdependencytree.cgi?id=2004">dependency
-tree</a>.
+For additional updates, <a
+href="/bugzilla/showdependencytree.cgi?id=3385">RHEL 5</a> tracker
+bug.
+
+<br>
+
+For earlier RHEL releases check the <a href="rhel/">RHEL Page</a>.
 
 </dd>
 
-<dt><a name="ubuntu-gutsy">Ubuntu (Gutsy Gibbon)</a><br>
+<dt><a name="ubuntu">Ubuntu (Gutsy Gibbon)</a><br>
 <a name="debian">Debian</a></dt>
 
 <dd>
@@ -150,77 +147,10 @@ For additional updates, check the
 <a href="/bugzilla/showdependencytree.cgi?id=4290">Debian</a> or
 <a href="/bugzilla/showdependencytree.cgi?id=1976">Ubuntu</a> tracker bug.
 
-</dd>
-
-<dt><a name="ubuntu-edgy">Ubuntu (Edgy Eft)</a></dt>
-
-<dd>
-
-Building <em>frysk</em> on this release is a big unknown, check the <a
-href="#ubuntu-breezy">Breeze Badger</a> notes for hints.
-
-<p>
-
-For additional updates, check Ubuntu' tracker bug's <a
-href="/bugzilla/showdependencytree.cgi?id=1976">dependency
-tree</a>.
-
-</dd>
-
-<dt><a name="ubuntu-breezy">Ubuntu (Breezy Badger)</a></dt>
-
-<dd>
-
-While it's a bit of a struggle, it is possible to build <em>frysk</em>
-on Ubuntu:
-
-<ul>
-
-<li><tt>gcc 4.0.1-4ubuntu9</tt> has a number of serious bugs. <br>
-Download, build, and install a snapshot of the RHEL-4 gcc4 compiler
-(found <a
-href="ftp://sources.redhat.com/pub/frysk/RHEL-4/">here</a>).</li>
-
-<li>Make certain that <tt>automake-1.9</tt> is installed and selected
-as the default:
-<pre>
-$ sudo aptitude install automake1.9
-$ sudo update-alternatives --display automake
-$ sudo update-alternatives --set automake /usr/bin/automake-1.9
-</pre>
-</li>
-
-<li>Per <a
-href="http://java-gnome.sourceforge.net/cgi-bin/bin/view/Main/GetJavaGnome">Get
-Java Gnome</a>, append the line:
-<pre>
-http://www.natemccallum.com/uploads/debs/ ./
-</pre>
-to the file:
-<pre>
-/etc/apt/sources.list
-</pre>
-and then install the java-gnome stuff vis:
-<pre>
-$ sudo aptitude install libglade-java \
-libgtk-java libglade2-dev libvte-dev
-$ pkg-config --modversion gtk2-java
-2.8.1
-</pre>
-</li>
-
-<li><tt>jdom</tt> had problems building; there appears to be some
-missing .jar dependencies. <br> Grabbing the jdom out of the RHEL-4
-mega-rpm and building that worked.</li>
-
-<li>The libvte-java bindings are missing. <br> You can hack around
-this by disabling the code using vte (there isn't much)</li>
-
-</ul>
+<br>
 
-For additional updates, check Ubuntu' tracker bug's <a
-href="/bugzilla/showdependencytree.cgi?id=1976">dependency
-tree</a>.
+For earlier Ubuntu releases check the <a href="ubuntu/">Ubuntu
+Page</a>.
 
 </dd>
 
diff --git a/htdocs/build/index.html b/htdocs/build/rhel/index.html
similarity index 100%
copy from htdocs/build/index.html
copy to htdocs/build/rhel/index.html
diff --git a/htdocs/build/index.html b/htdocs/build/ubuntu/index.html
similarity index 100%
copy from htdocs/build/index.html
copy to htdocs/build/ubuntu/index.html


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [SCM]  master: Merge branch 'master' of ssh://sourceware.org/git/frysk
@ 2007-11-08 20:57 cagney
  0 siblings, 0 replies; 6+ messages in thread
From: cagney @ 2007-11-08 20:57 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  d9bd1560c585138ab990d7ad0b65b3d9e6ad8ce1 (commit)
       via  f2f0a6b50c1d6adf0b8cf623ff48d7622db42a27 (commit)
      from  92e9c47e02ab8b02ccd29dac7763d286d4652353 (commit)

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

- Log -----------------------------------------------------------------
commit d9bd1560c585138ab990d7ad0b65b3d9e6ad8ce1
Merge: f2f0a6b50c1d6adf0b8cf623ff48d7622db42a27 92e9c47e02ab8b02ccd29dac7763d286d4652353
Author: Andrew Cagney <cagney@redhat.com>
Date:   Thu Nov 8 15:56:13 2007 -0500

    Merge branch 'master' of ssh://sourceware.org/git/frysk

commit f2f0a6b50c1d6adf0b8cf623ff48d7622db42a27
Author: Andrew Cagney <cagney@redhat.com>
Date:   Thu Nov 8 15:55:58 2007 -0500

    AttachCommand extends ParameterizedCommand; simplify.
    
    frysk-core/frysk/hpd/ChangeLog
    2007-11-08  Andrew Cagney  <cagney@redhat.com>
    
    	* CLI.java (doAttach(Task)): Delete.
    	(doAttach(Proc)): Replace doAttach(int,Proc,Task).
    	* RunCommand.java: Update.
    	* AttachCommand.java: Update; extend ParameterizedCommand; delete
    	-task option.

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

Summary of changes:
 frysk-core/frysk/hpd/AttachCommand.java |  101 +++++++++++--------------------
 frysk-core/frysk/hpd/CLI.java           |   23 +++-----
 frysk-core/frysk/hpd/ChangeLog          |    6 ++
 frysk-core/frysk/hpd/RunCommand.java    |   14 ++---
 4 files changed, 55 insertions(+), 89 deletions(-)

First 500 lines of diff:
diff --git a/frysk-core/frysk/hpd/AttachCommand.java b/frysk-core/frysk/hpd/AttachCommand.java
index 6271354..b87ec91 100644
--- a/frysk-core/frysk/hpd/AttachCommand.java
+++ b/frysk-core/frysk/hpd/AttachCommand.java
@@ -39,15 +39,14 @@
 
 package frysk.hpd;
 
-import java.util.Iterator;
 import frysk.proc.Proc;
 import frysk.proc.ProcId;
-import frysk.proc.Task;
 import frysk.proc.Manager;
 import frysk.proc.FindProc;
+import java.util.List;
+
+class AttachCommand extends ParameterizedCommand {
 
-class AttachCommand
-    extends Command {
     private class ProcFinder implements FindProc {
 	Proc proc = null;
 
@@ -66,75 +65,47 @@ class AttachCommand
 	}
     }
 
-    private static final String full = "The attach command causes the debugger "
-	    + "to attach to an existing\n"
-	    + "process(es), making it possible to continue the process' "
-	    + "execution under\n"
-	    + "debugger control. The command applies at the process level; all "
-	    + "threads\n"
-	    + "corresponding to the process will be attached by the operation. "
-	    + "It is\n"
-	    + "the user's responsibility to ensure that the process(es) "
-	    + "actually is\n" + "executing the specified executable.";
-
     AttachCommand() {
 	super("attach", "Attach to a running process.",
-	      "attach [executable] pid [-task tid]", full);
+	      "attach <pid> ...",
+	      ("The attach command causes the debugger to attach to an"
+	       + " existing process(es), making it possible to continue"
+	       + " the process' execution under debugger control.  The"
+	       + " command applies at the process level; all threads"
+	       + " corresponding to the process will be attached by the"
+	       + " operation.  It is the user's responsibility to ensure"
+	       + " that the process(es) actually is executing the specified"
+	       + " executable."));
     }
 
-    public void interpret(CLI cli, Input cmd) {
-	int pid = 0;
-	int tid = 0;
-	if (cmd.size() == 1 && cmd.parameter(0).equals("-help")) {
-	    cli.printUsage(cmd);
-	    return;
-	}
-
-	if (cmd.size() < 1) {
-	    cli.printUsage(cmd);
-	    return;
-	}
-
-	for (int idx = 0; idx < cmd.size(); idx++) {
-	    if (cmd.parameter(idx).equals("-task")) {
-		idx += 1;
-		tid = Integer.parseInt(cmd.parameter(idx));
-	    } else if (cmd.parameter(idx).indexOf('-') == 0) {
-		cli.printUsage(cmd);
-		return;
-	    } else if (cmd.parameter(idx).matches("[0-9]+"))
-		pid = Integer.parseInt(cmd.parameter(idx));
+    public void interpret(CLI cli, Input cmd, Object options) {
+	if (cmd.size() == 0) {
+	    throw new InvalidCommandException("Missing process ID");
 	}
-
-	ProcFinder findProc = new ProcFinder();
-	Manager.host.requestFindProc(new ProcId(pid), findProc);
-	synchronized (findProc) {
-	    while (!findProc.procSearchFinished) {
-		try {
-		    findProc.wait();
-		} catch (InterruptedException ie) {
-		    findProc.proc = null;
+	for (int i = 0; i < cmd.size(); i++) {
+	    int pid = Integer.parseInt(cmd.parameter(i));
+	    ProcFinder findProc = new ProcFinder();
+	    Manager.host.requestFindProc(new ProcId(pid), findProc);
+	    synchronized (findProc) {
+		while (!findProc.procSearchFinished) {
+		    try {
+			findProc.wait();
+		    } catch (InterruptedException ie) {
+			findProc.proc = null;
+		    }
 		}
 	    }
-	}
-	if (findProc.proc == null) {
-	    cli.addMessage("Couldn't find process " + pid, Message.TYPE_ERROR);
-	    return;
-	}
-	int procID = cli.idManager.reserveProcID();
-	Task task = null;
-	if (pid == tid || tid == 0)
-	    task = findProc.proc.getMainTask();
-	else
-	    for (Iterator i = findProc.proc.getTasks().iterator(); i.hasNext();) {
-		task = (Task) i.next();
-		if (task.getTid() == tid)
-		    break;
+	    if (findProc.proc == null) {
+		cli.outWriter.print("Couldn't find process ");
+		cli.outWriter.println(pid);
+		continue;
 	    }
-	cli.doAttach(pid, findProc.proc, task);
-        cli.getSteppingEngine().getBreakpointManager()
-            .manageProcess(findProc.proc);
-	cli.idManager.manageProc(findProc.proc, procID);
+	    cli.doAttach(findProc.proc);
+	}
+    }
 
+    int complete(CLI cli, PTSet ptset, String input, int base,
+		 List completions) {
+	return -1;
     }
 }
diff --git a/frysk-core/frysk/hpd/CLI.java b/frysk-core/frysk/hpd/CLI.java
index 70871e3..e077073 100644
--- a/frysk-core/frysk/hpd/CLI.java
+++ b/frysk-core/frysk/hpd/CLI.java
@@ -132,37 +132,30 @@ public class CLI {
     /*
      * Command handlers
      */
-
-    public void doAttach(int pid, Proc proc, Task task) {
-        Proc[] temp = new Proc[1];
-        temp[0] = proc;
+    public void doAttach(Proc proc) {
         synchronized (this) {
             attached = -1;
             attachedLatch = new CountDownLatch(1);
         }
         steppingEngine.addProc(proc);
-                // Wait till we are attached.
+	// Wait till we are attached.
         try {
             attachedLatch.await();
-            addMessage("Attached to process " + attached, Message.TYPE_NORMAL);
-        }
-        catch (InterruptedException ie) {
+	    outWriter.print("Attached to process ");
+	    outWriter.println(attached);
+        } catch (InterruptedException ie) {
             addMessage("Attach interrupted.", Message.TYPE_ERROR);
             return;
-        }
-        finally {
+        } finally {
             synchronized (this) {
                 attached = -1;
                 attachedLatch = null;
             }
         }
+        steppingEngine.getBreakpointManager().manageProcess(proc);
+        idManager.manageProc(proc, idManager.reserveProcID());
     }
 
-    public void doAttach(Task task) {
-        Proc proc = task.getProc();
-        doAttach(proc.getPid(), proc, task);
-    }
-    
     //private static PrintStream out = null;// = System.out;
     final PrintWriter outWriter;
     private Preprocessor prepro;
diff --git a/frysk-core/frysk/hpd/ChangeLog b/frysk-core/frysk/hpd/ChangeLog
index 347cd06..9c2e773 100644
--- a/frysk-core/frysk/hpd/ChangeLog
+++ b/frysk-core/frysk/hpd/ChangeLog
@@ -1,5 +1,11 @@
 2007-11-08  Andrew Cagney  <cagney@redhat.com>
 
+	* CLI.java (doAttach(Task)): Delete.
+	(doAttach(Proc)): Replace doAttach(int,Proc,Task).
+	* RunCommand.java: Update.
+	* AttachCommand.java: Update; extend ParameterizedCommand; delete
+	-task option.
+	
 	* TestAliasCommands.java: New file.
 
 	* AliasCommands.java: New.
diff --git a/frysk-core/frysk/hpd/RunCommand.java b/frysk-core/frysk/hpd/RunCommand.java
index f5e0c6c..d70035a 100644
--- a/frysk-core/frysk/hpd/RunCommand.java
+++ b/frysk-core/frysk/hpd/RunCommand.java
@@ -116,8 +116,8 @@ class RunCommand extends Command {
 
     public void interpret(CLI cli, Input cmd) {
 	if (cmd.size() < 1) {
-	    cli.printUsage(cmd);
-	    return;
+	    // XXX: should default to previous values.
+	    throw new InvalidCommandException("missing program");
 	}
 	Runner runner = new Runner(cli);
 	Manager.host.requestCreateAttachedProc(cmd.stringArrayValue(), runner);
@@ -126,12 +126,8 @@ class RunCommand extends Command {
         } catch (InterruptedException e) {
             return;
         }
-        // register with SteppingEngine
-	cli.doAttach(runner.launchedTask);
-        cli.getSteppingEngine().getBreakpointManager()
-            .manageProcess(runner.launchedTask.getProc());
-        cli.idManager.manageProc(runner.launchedTask.getProc(),
-				 cli.idManager.reserveProcID());
-        runner.launchedTask.requestUnblock(runner);
+        // register with SteppingEngine et.al.
+	cli.doAttach(runner.launchedTask.getProc());
+	runner.launchedTask.requestUnblock(runner);
     }
 }


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-05-29 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-19  0:32 [SCM] master: Merge branch 'master' of ssh://sourceware.org/git/frysk scox
  -- strict thread matches above, loose matches on Subject: below --
2008-05-29 15:51 tthomas
2008-05-07 15:23 tthomas
2007-11-27  2:15 pzhao
2007-11-20 17:23 cagney
2007-11-08 20:57 cagney

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).