public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: swagiaal: Fixed incorrect use of ConcreteFunction.
@ 2008-04-15 17:53 swagiaal
  0 siblings, 0 replies; only message in thread
From: swagiaal @ 2008-04-15 17:53 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  d2aaf054d27691e560dfb8a568f5aeccb7e7d465 (commit)
       via  c78f2d5d0e29ea6d6422dbf342b903d0f6af865e (commit)
      from  31ece4d92880db8625f44f94f09688bb2704e449 (commit)

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

- Log -----------------------------------------------------------------
commit d2aaf054d27691e560dfb8a568f5aeccb7e7d465
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Tue Apr 15 13:51:00 2008 -0400

    swagiaal: Fixed incorrect use of ConcreteFunction.
    
    frysk-core/frysk/debuginfo/ChangeLog
    +2008-04-15  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	* TestFrameDebugInfo.java: Replaced use of ConcreteFunction with
    +	Function.
    +	* DebugInfoStackFactory.java: Updated.
    +	* DebugInfoFrame.java: Updated.
    +
    
    frysk-core/frysk/scopes/ChangeLog
    +2008-04-15  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	* ConcreteFunction.java: Moved getName, getParameters,
    +	toString, getFunctionType, setFunctionType, printParameters,
    +	printScopes, getDeclaredObjectByName from here to...
    +	* Function.java: ...here.
    +	* TestScopes.java: Replaced use of ConcreteFucntion
    +	with Function.
    +

commit c78f2d5d0e29ea6d6422dbf342b903d0f6af865e
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date:   Mon Apr 14 16:37:58 2008 -0400

    swagiaal: Renamed Subprogram to CocreteFuction.
    
    frysk-core/frysk/debuginfo/ChangeLog
    +2008-04-14  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	Renamed Subprogram to CocreteFuction.
    +	* DebugInfoStackFactory.java: Updated.
    +	* DebugInfoFrame.java: Updated.
    +
    
    frysk-core/frysk/scopes/ChangeLog
    +2008-04-14  Sami Wagiaalla  <swagiaal@redhat.com>
    +
    +	* ConcreteFunction.java: Renamed Subprogram to CocreteFuction.
    +	* TestScopes.java: Updated.
    +	* ScopeFactory.java: Updated.
    +

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

Summary of changes:
 frysk-core/frysk/debuginfo/ChangeLog               |   17 ++-
 frysk-core/frysk/debuginfo/DebugInfoFrame.java     |   21 ++--
 .../frysk/debuginfo/DebugInfoStackFactory.java     |    8 +-
 frysk-core/frysk/debuginfo/TestFrameDebugInfo.java |   11 +-
 frysk-core/frysk/scopes/ChangeLog                  |   15 ++
 .../{TestScopes.java => ConcreteFunction.java}     |   50 ++-----
 frysk-core/frysk/scopes/Function.java              |   89 ++++++++++++
 frysk-core/frysk/scopes/ScopeFactory.java          |    2 +-
 frysk-core/frysk/scopes/Subprogram.java            |  152 --------------------
 frysk-core/frysk/scopes/TestScopes.java            |    4 +-
 10 files changed, 156 insertions(+), 213 deletions(-)
 copy frysk-core/frysk/scopes/{TestScopes.java => ConcreteFunction.java} (61%)
 delete mode 100644 frysk-core/frysk/scopes/Subprogram.java

First 500 lines of diff:
diff --git a/frysk-core/frysk/debuginfo/ChangeLog b/frysk-core/frysk/debuginfo/ChangeLog
index b6414e4..0fd29e1 100644
--- a/frysk-core/frysk/debuginfo/ChangeLog
+++ b/frysk-core/frysk/debuginfo/ChangeLog
@@ -1,8 +1,23 @@
+2008-04-15  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	* TestFrameDebugInfo.java: Replaced use of ConcreteFunction with
+	Function.
+	* DebugInfoStackFactory.java: Updated.
+	* DebugInfoFrame.java: Updated.
+
+2008-04-14  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	Renamed Subprogram to CocreteFuction.
+	* DebugInfoStackFactory.java: Updated.
+	* DebugInfoFrame.java: Updated.
+	* TestFrameDebugInfo.java: Updated.
+
 2008-04-14  Sami Wagiaalla  <swagiaal@redhat.com>
 
 	Renamed Subroutine to Function.
 	* DebugInfoFrame.java: Updated.
-	* TestDebugInfoStackTrace.java: Updated.
+	* TestFrameDebugInfo.java: Updated.
+	* DebugInfoStackFactory.java: Updated.
 
 2008-04-14  Andrew Cagney  <cagney@redhat.com>
 
diff --git a/frysk-core/frysk/debuginfo/DebugInfoFrame.java b/frysk-core/frysk/debuginfo/DebugInfoFrame.java
index 71a24ee..91e6e12 100644
--- a/frysk-core/frysk/debuginfo/DebugInfoFrame.java
+++ b/frysk-core/frysk/debuginfo/DebugInfoFrame.java
@@ -47,18 +47,17 @@ import lib.dwfl.Dwfl;
 import lib.dwfl.DwflDieBias;
 import frysk.dwfl.DwflCache;
 import frysk.rt.LineXXX;
+import frysk.scopes.Function;
 import frysk.scopes.Scope;
 import frysk.scopes.ScopeFactory;
 import frysk.scopes.SourceLocation;
 import frysk.scopes.SourceLocationFactory;
-import frysk.scopes.Subprogram;
-import frysk.scopes.Function;
 import frysk.stack.Frame;
 import frysk.stack.FrameDecorator;
 
 public class DebugInfoFrame extends FrameDecorator {
 
-    private Subprogram subprogram;
+    private Function subprogram;
     private Scope scope;
 
     private LinkedList inlinedSubprograms;
@@ -70,7 +69,7 @@ public class DebugInfoFrame extends FrameDecorator {
 	this.typeFactory = new TypeFactory(getTask().getISA());
     }
 
-    public final Subprogram getSubprogram ()
+    public final Function getSubprogram ()
     {
       if (subprogram == null) {
 	  this.getScopes();
@@ -101,8 +100,8 @@ public class DebugInfoFrame extends FrameDecorator {
 		scope = ScopeFactory.theFactory.getScope(scopes[0], typeFactory);
 		Scope tempScope = scope;
 		
-		if (tempScope instanceof Subprogram && !(((Subprogram)tempScope).isInlined()) && subprogram == null) {
-		    subprogram = (Subprogram) tempScope;
+		if (tempScope instanceof Function && !(((Function)tempScope).isInlined()) && subprogram == null) {
+		    subprogram = (Function) tempScope;
 		}
 		    
 		Scope outer = null;
@@ -111,8 +110,8 @@ public class DebugInfoFrame extends FrameDecorator {
 		    tempScope.setOuter(outer);
 		    tempScope = outer;
 		    
-		    if (tempScope instanceof Subprogram && !(((Subprogram)tempScope).isInlined()) && subprogram == null) {
-			subprogram = (Subprogram) tempScope;
+		    if (tempScope instanceof Function && !(((Function)tempScope).isInlined()) && subprogram == null) {
+			subprogram = (Function) tempScope;
 		    }
 		}
 	    }
@@ -147,7 +146,7 @@ public class DebugInfoFrame extends FrameDecorator {
             
             for (int i = 0; i < scopes.length; i++) {
         	Scope scope = ScopeFactory.theFactory.getScope(scopes[i], typeFactory);
-        	if(scope instanceof Subprogram && ((Subprogram)scope).isInlined()){
+        	if(scope instanceof Function && ((Function)scope).isInlined()){
         	    inlinedSubprograms.add(scope);
         	}
             }
@@ -188,7 +187,7 @@ public class DebugInfoFrame extends FrameDecorator {
     
     public void toPrint(PrintWriter writer, boolean printParameters,
 		 boolean fullpath){
-        Subprogram subprogram = this.getSubprogram();
+        Function subprogram = this.getSubprogram();
 
         if (subprogram != null) {
 	    writer.print("0x");
@@ -238,7 +237,7 @@ public class DebugInfoFrame extends FrameDecorator {
 	}
     }
 
-    public final void setSubprogram (Subprogram subprogram)
+    public final void setSubprogram (Function subprogram)
       {
         this.subprogram = subprogram;
       }
diff --git a/frysk-core/frysk/debuginfo/DebugInfoStackFactory.java b/frysk-core/frysk/debuginfo/DebugInfoStackFactory.java
index a5f6c6e..7023da6 100644
--- a/frysk-core/frysk/debuginfo/DebugInfoStackFactory.java
+++ b/frysk-core/frysk/debuginfo/DebugInfoStackFactory.java
@@ -43,7 +43,7 @@ import java.io.PrintWriter;
 
 import frysk.proc.Task;
 import frysk.scopes.Scope;
-import frysk.scopes.Subprogram;
+import frysk.scopes.Function;
 import frysk.stack.StackFactory;
 
 /**
@@ -72,7 +72,7 @@ public class DebugInfoStackFactory {
     public static DebugInfoFrame createVirtualStackTrace (Task task) {
 	DebugInfoFrame currentFrame = null;
 	DebugInfoFrame innermostFrame = null;
-	
+
 	for (DebugInfoFrame debugFrame = createDebugInfoStackTrace (task);
 	     debugFrame != null;
 	     debugFrame = debugFrame.getOuterDebugInfoFrame()) {
@@ -80,8 +80,8 @@ public class DebugInfoStackFactory {
 	    // For any inlined scopes, create virtual frames.
 	    for (Scope scope = debugFrame.getScopes();
 		 scope != null; scope = scope.getOuter()) {
-		if (scope instanceof Subprogram && ((Subprogram)scope).isInlined()) {
-		    Subprogram subprogram = (Subprogram) scope;
+		if (scope instanceof Function && ((Function)scope).isInlined()) {
+		    Function subprogram = (Function) scope;
 		    currentFrame = new VirtualDebugInfoFrame(currentFrame,
 							     debugFrame);
 		    currentFrame.setSubprogram(subprogram);
diff --git a/frysk-core/frysk/debuginfo/TestFrameDebugInfo.java b/frysk-core/frysk/debuginfo/TestFrameDebugInfo.java
index c6375ef..34cd4bd 100644
--- a/frysk-core/frysk/debuginfo/TestFrameDebugInfo.java
+++ b/frysk-core/frysk/debuginfo/TestFrameDebugInfo.java
@@ -52,7 +52,6 @@ import frysk.dwfl.DwflCache;
 import frysk.proc.Task;
 import frysk.scopes.LexicalBlock;
 import frysk.scopes.Scope;
-import frysk.scopes.Subprogram;
 import frysk.scopes.Function;
 import frysk.stack.Frame;
 import frysk.stack.StackFactory;
@@ -120,7 +119,7 @@ public class TestFrameDebugInfo extends TestLib {
     Task task = (new DaemonBlockedAtSignal("funit-empty-functions" + ext)).getMainTask();
     
     DebugInfoFrame frame = DebugInfoStackFactory.createVirtualStackTrace(task);
-    Subprogram subprogram = frame.getSubprogram();
+    Function subprogram = frame.getSubprogram();
     assertNotNull(subprogram);
   }
   
@@ -344,7 +343,7 @@ public class TestFrameDebugInfo extends TestLib {
       Task task = (new DaemonBlockedAtSignal("funit-stack-inlined" + ext)).getMainTask();
     
     DebugInfoFrame frame = DebugInfoStackFactory.createVirtualStackTrace(task);
-    Subprogram subprogram = null;
+    Function subprogram = null;
     
     while(frame.getOuterDebugInfoFrame() != null){
 	subprogram = frame.getSubprogram();
@@ -377,7 +376,7 @@ public class TestFrameDebugInfo extends TestLib {
   public void values(String ext) throws NameNotFoundException
   {
     Task task = (new DaemonBlockedAtSignal("funit-stacks-values" + ext)).getMainTask();
-    Subprogram subprogram;
+    Function subprogram;
     DebugInfoFrame frame;
     Variable variable;
     
@@ -454,7 +453,7 @@ public class TestFrameDebugInfo extends TestLib {
   {
       Task task = (new DaemonBlockedAtSignal("funit-stacks-linenum" + ext)).getMainTask();
       
-      Subprogram subprogram;
+      Function subprogram;
       DebugInfoFrame frame;
       Variable variable;
       
@@ -524,7 +523,7 @@ public class TestFrameDebugInfo extends TestLib {
 	      
 	DebugInfoFrame frame = DebugInfoStackFactory
 		.createVirtualStackTrace(task);
-	Subprogram subprogram = frame.getSubprogram();
+	Function subprogram = frame.getSubprogram();
 
 	LinkedList parameters = subprogram.getParameters();
 	assertEquals("Correct number of parameters", 1, parameters.size());
diff --git a/frysk-core/frysk/scopes/ChangeLog b/frysk-core/frysk/scopes/ChangeLog
index 9027826..797cc1a 100644
--- a/frysk-core/frysk/scopes/ChangeLog
+++ b/frysk-core/frysk/scopes/ChangeLog
@@ -1,3 +1,18 @@
+2008-04-15  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	* ConcreteFunction.java: Moved getName, getParameters,
+	toString, getFunctionType, setFunctionType, printParameters,
+	printScopes, getDeclaredObjectByName from here to...
+	* Function.java: ...here.
+	* TestScopes.java: Replaced use of ConcreteFucntion
+	with Function.
+
+2008-04-14  Sami Wagiaalla  <swagiaal@redhat.com>
+
+	* ConcreteFunction.java: Renamed Subprogram to CocreteFuction.
+	* TestScopes.java: Updated.
+	* ScopeFactory.java: Updated.
+
 2008-04-14  Sami Wagiaalla  <swagiaal@redhat.com> 
 
 	* Function.java: renamed Subroutine to Function. 
diff --git a/frysk-core/frysk/scopes/TestScopes.java b/frysk-core/frysk/scopes/ConcreteFunction.java
similarity index 61%
copy from frysk-core/frysk/scopes/TestScopes.java
copy to frysk-core/frysk/scopes/ConcreteFunction.java
index c8f66d2..3dea9e9 100644
--- a/frysk-core/frysk/scopes/TestScopes.java
+++ b/frysk-core/frysk/scopes/ConcreteFunction.java
@@ -1,6 +1,6 @@
 // This file is part of the program FRYSK.
 //
-// Copyright 2007, Red Hat Inc.
+// Copyright 2005, 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
@@ -37,45 +37,23 @@
 // version and license this file solely under the GPL without
 // exception.
 
-package frysk.scopes;
+/**
+ * A concrete instance of a subprogram.
+ */
 
-import frysk.debuginfo.DebugInfoFrame;
-import frysk.debuginfo.DebugInfoStackFactory;
-import frysk.proc.Task;
-import frysk.testbed.DaemonBlockedAtSignal;
-import frysk.testbed.TestLib;
+package frysk.scopes;
 
-public class TestScopes extends TestLib{
+import lib.dwfl.DwarfDie;
+import frysk.debuginfo.TypeFactory;
 
-    /**
-     * This tests that we can retrieve a the die corresponding to the declaration
-     * of a function that belongs to a class. 
-     *
-     */
-    public void testGetOriginalSubprogram(){
-	Task task = (new DaemonBlockedAtSignal("funit-cpp-scopes-class")).getMainTask();
-	DebugInfoFrame frame = DebugInfoStackFactory.createDebugInfoStackTrace(task);
-	Subprogram subprogram = frame.getSubprogram();
-	
-	Composite struct = subprogram.getComposite();
-	
-	assertEquals("Correct struct was found", "A", struct.getName());
-	
-    }
+/**
+ * A Subprogram refers to a concrete (not inlined) instance of a function.
+ */
+public class ConcreteFunction extends Function
+{
 
-    /**
-     * Test that we can retrive the {@link Composite} Object that this /static/
-     * function blongs to.
-     */
-    public void testGetOriginalStaticSubprogram(){
-	Task task = (new DaemonBlockedAtSignal("funit-cpp-scopes-class-static")).getMainTask();
-	DebugInfoFrame frame = DebugInfoStackFactory.createDebugInfoStackTrace(task);
-	Subprogram subprogram = frame.getSubprogram();
-	
-	Composite struct = subprogram.getComposite();
-	
-	assertEquals("Correct struct was found", "A", struct.getName());
-	
+    public ConcreteFunction(DwarfDie die, TypeFactory typeFactory) {
+	super(die, typeFactory);
     }
 
 }
diff --git a/frysk-core/frysk/scopes/Function.java b/frysk-core/frysk/scopes/Function.java
index 8444174..39c9036 100644
--- a/frysk-core/frysk/scopes/Function.java
+++ b/frysk-core/frysk/scopes/Function.java
@@ -39,11 +39,17 @@
 
 package frysk.scopes;
 
+import java.io.PrintWriter;
+import java.util.Iterator;
+import java.util.LinkedList;
+
 import frysk.debuginfo.DebugInfoFrame;
 import frysk.debuginfo.LocationExpression;
 import frysk.debuginfo.PieceLocation;
 import frysk.debuginfo.TypeFactory;
 import frysk.isa.ISA;
+import frysk.value.FunctionType;
+import frysk.value.ObjectDeclaration;
 import frysk.value.Type;
 import frysk.value.Value;
 import lib.dwfl.DwAt;
@@ -60,11 +66,78 @@ public class Function extends NamedScope {
     Composite struct;
     Type type;
     private LocationExpression locationExpression;
+
+    FunctionType functionType;
+    LinkedList parameters;
     
     public Function(DwarfDie die, TypeFactory typeFactory) {
 	super(die, typeFactory);
 	this.type = typeFactory.getType(die);
 	locationExpression = new LocationExpression(die);
+	
+	parameters = new LinkedList();
+	die = die.getChild();
+	while (die != null) {
+	    
+	    boolean artificial = die.hasAttribute(DwAt.ARTIFICIAL)
+		    && die.getAttrConstant(DwAt.ARTIFICIAL) != 1;
+
+	    if (die.getTag().equals(DwTag.FORMAL_PARAMETER) && !artificial) {
+		Variable variable = new Variable(die);
+		parameters.add(variable);
+	    }
+	    
+	    die = die.getSibling();
+	}
+
+    }
+
+    public LinkedList getParameters ()
+    {
+      return parameters;
+    }
+
+    public void setFunctionType (FunctionType functionType)
+    {
+      this.functionType = functionType;
+    }
+    
+    public void printScopes(PrintWriter writer, DebugInfoFrame frame){
+	super.toPrint(frame, writer, " ");
+    }
+
+    public FunctionType getFunctionType ()
+    {
+      return functionType;
+    }
+
+    public String toString()
+    {
+      return super.toString() + " " + this.getName();
+    }
+
+    public ObjectDeclaration getDeclaredObjectByName(String name) {
+	ObjectDeclaration objectDeclaration = null;
+
+	Iterator iterator = this.parameters.iterator();
+	while (iterator.hasNext()) {
+	    ObjectDeclaration tempObjectDeclaration = (Variable) iterator.next();
+	    if (tempObjectDeclaration.getName().equals(name)) {
+		objectDeclaration = tempObjectDeclaration;
+		continue;
+	    }
+	}
+	
+	Composite composite = this.getComposite();
+	if(composite != null){
+	    objectDeclaration = composite.getDeclaredObjectByName(name);
+	}
+	
+	if(objectDeclaration == null){
+	    objectDeclaration =  super.getDeclaredObjectByName(name);
+	}
+	
+	return objectDeclaration;
     }
 
     /**
@@ -147,4 +220,20 @@ public class Function extends NamedScope {
 	return value;
 
     }
+    
+    public void printParameters (PrintWriter writer, DebugInfoFrame frame)
+    {
+      
+      Iterator iterator = this.parameters.iterator();
+      while(iterator.hasNext()) {
+        Variable parameter = (Variable) iterator.next();
+	parameter.toPrint(writer, frame);
+	writer.flush();
+        if(parameters.indexOf(parameter) < (this.parameters.size()-1)){
+            writer.print(",");
+        }
+      }
+      
+    }
+    
 }
diff --git a/frysk-core/frysk/scopes/ScopeFactory.java b/frysk-core/frysk/scopes/ScopeFactory.java
index 723d3cd..07d32d9 100644
--- a/frysk-core/frysk/scopes/ScopeFactory.java
+++ b/frysk-core/frysk/scopes/ScopeFactory.java
@@ -78,7 +78,7 @@ public class ScopeFactory {
 	
 	case DwTag.INLINED_SUBROUTINE_:
 	case DwTag.SUBPROGRAM_:
-	    Subprogram subprogram = new Subprogram(die, typeFactory);
+	    ConcreteFunction subprogram = new ConcreteFunction(die, typeFactory);
 	    if(subprogram.isInlined()){
 		return new InlinedSubroutine(die,typeFactory);
 	    }
diff --git a/frysk-core/frysk/scopes/Subprogram.java b/frysk-core/frysk/scopes/Subprogram.java
deleted file mode 100644
index 2facac1..0000000
--- a/frysk-core/frysk/scopes/Subprogram.java
+++ /dev/null
@@ -1,152 +0,0 @@
-// This file is part of the program FRYSK.
-//
-// Copyright 2005, 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.
-
-/**
- * A concrete instance of a subprogram.
- */
-
-package frysk.scopes;
-
-import java.io.PrintWriter;
-import java.util.Iterator;
-import java.util.LinkedList;
-
-import lib.dwfl.DwAt;
-import lib.dwfl.DwTag;
-import lib.dwfl.DwarfDie;
-import frysk.debuginfo.DebugInfoFrame;
-import frysk.debuginfo.TypeFactory;
-import frysk.value.ObjectDeclaration;
-import frysk.value.FunctionType;
-
-/**
- * A Subprogram refers to a concrete (not inlined) instance of a function.
- */


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-15 17:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-15 17:53 [SCM] master: swagiaal: Fixed incorrect use of ConcreteFunction swagiaal

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