Commit e91ada38 by Keith Seitz Committed by Keith Seitz

LocationOnlyFilter.class: Regenerated;

        * classpath/lib/gnu/classpath/jdwp/event/filters/
        LocationOnlyFilter.class: Regenerated;
        * classpath/lib/gnu/classpath/jdwp/util/Location.class:
        Regenerated.
        * gnu/classpath/jdwp/VMMethod.java
        * classpath/lib/gnu/classpath/jdwp/VMMethod.class:
        Regenerated.
        * gnu/classpath/jdwp/VMMethod.h: Regenerated.
        * gnu/classpath/jdwp/util/Location.h: Regenerated.

        * gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java
        (matches): Use Location.equals to determine equality.
        * gnu/classpath/jdwp/VMMethod.java (equals):
        New method.
        * gnu/classpath/jdwp/util/Location.java (equals):
        New method.

From-SVN: r124249
parent eb996a4a
2007-04-27 Keith Seitz <keiths@redhat.com>
* classpath/lib/gnu/classpath/jdwp/event/filters/
LocationOnlyFilter.class: Regenerated;
* classpath/lib/gnu/classpath/jdwp/util/Location.class:
Regenerated.
* gnu/classpath/jdwp/VMMethod.java
* classpath/lib/gnu/classpath/jdwp/VMMethod.class:
Regenerated.
* gnu/classpath/jdwp/VMMethod.h: Regenerated.
* gnu/classpath/jdwp/util/Location.h: Regenerated.
2007-04-27 Thomas Fitzsimmons <fitzsim@redhat.com> 2007-04-27 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/CairoGraphics2D.h: Regenerate. * gnu/java/awt/peer/gtk/CairoGraphics2D.h: Regenerate.
......
2007-04-27 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java
(matches): Use Location.equals to determine equality.
* gnu/classpath/jdwp/VMMethod.java (equals):
New method.
* gnu/classpath/jdwp/util/Location.java (equals):
New method.
2007-03-16 Francis Kung <fkung@redhat.com> 2007-03-16 Francis Kung <fkung@redhat.com>
* gnu/java/awt/peer/gtk/CairoGraphics2D.java * gnu/java/awt/peer/gtk/CairoGraphics2D.java
/* LocationOnlyFilter.java -- filter on location /* LocationOnlyFilter.java -- filter on location
Copyright (C) 2005, 2006 Free Software Foundation Copyright (C) 2005, 2006, 2007 Free Software Foundation
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -49,13 +49,6 @@ import gnu.classpath.jdwp.util.Location; ...@@ -49,13 +49,6 @@ import gnu.classpath.jdwp.util.Location;
* May be used with breakpoint, field access, field modification, step, * May be used with breakpoint, field access, field modification, step,
* and exception event kinds. * and exception event kinds.
* *
* This "filter" is not really a filter. It is simply a way to communicate
* location information for supported events in a generic way to ease
* the burden of special casing several things in
* EventReqeustCommandSet.executeSet.
*
* Consequently, this "filter" always matches any event.
*
* @author Keith Seitz (keiths@redhat.com) * @author Keith Seitz (keiths@redhat.com)
*/ */
public class LocationOnlyFilter public class LocationOnlyFilter
...@@ -90,9 +83,12 @@ public class LocationOnlyFilter ...@@ -90,9 +83,12 @@ public class LocationOnlyFilter
* *
* @param event the <code>Event</code> to scrutinize * @param event the <code>Event</code> to scrutinize
*/ */
public boolean matches (Event event) public boolean matches(Event event)
{ {
// This filter always matches. See comments in class javadoc. Location loc = (Location) event.getParameter(Event.EVENT_LOCATION);
return true; if (loc != null)
return (getLocation().equals(loc));
return false;
} }
} }
/* Location.java -- class to read/write JDWP locations /* Location.java -- class to read/write JDWP locations
Copyright (C) 2005, 2006 Free Software Foundation Copyright (C) 2005, 2006, 2007 Free Software Foundation
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -153,4 +153,16 @@ public class Location ...@@ -153,4 +153,16 @@ public class Location
{ {
return method.toString () + "." + index; return method.toString () + "." + index;
} }
public boolean equals(Object obj)
{
if (obj instanceof Location)
{
Location l = (Location) obj;
return (getMethod().equals(l.getMethod())
&& getIndex() == l.getIndex());
}
return false;
}
} }
...@@ -49,6 +49,7 @@ public: ...@@ -49,6 +49,7 @@ public:
virtual ::java::lang::String * toString(); virtual ::java::lang::String * toString();
virtual void writeId(::java::io::DataOutputStream *); virtual void writeId(::java::io::DataOutputStream *);
static ::gnu::classpath::jdwp::VMMethod * readId(::java::lang::Class *, ::java::nio::ByteBuffer *); static ::gnu::classpath::jdwp::VMMethod * readId(::java::lang::Class *, ::java::nio::ByteBuffer *);
virtual jboolean equals(::java::lang::Object *);
static const jint SIZE = 8; static const jint SIZE = 8;
private: private:
::java::lang::Class * __attribute__((aligned(__alignof__( ::java::lang::Object)))) _class; ::java::lang::Class * __attribute__((aligned(__alignof__( ::java::lang::Object)))) _class;
......
/* VMMethod.java -- a method in a virtual machine /* VMMethod.java -- a method in a virtual machine
Copyright (C) 2006 Free Software Foundation, Inc. Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -175,4 +175,15 @@ public class VMMethod ...@@ -175,4 +175,15 @@ public class VMMethod
{ {
return VMVirtualMachine.getClassMethod(klass, bb.getLong()); return VMVirtualMachine.getClassMethod(klass, bb.getLong());
} }
public boolean equals(Object obj)
{
if (obj instanceof VMMethod)
{
VMMethod m = (VMMethod) obj;
return (getId() == m.getId());
}
return false;
}
} }
...@@ -43,6 +43,7 @@ public: ...@@ -43,6 +43,7 @@ public:
virtual ::gnu::classpath::jdwp::VMMethod * getMethod(); virtual ::gnu::classpath::jdwp::VMMethod * getMethod();
virtual jlong getIndex(); virtual jlong getIndex();
virtual ::java::lang::String * toString(); virtual ::java::lang::String * toString();
virtual jboolean equals(::java::lang::Object *);
private: private:
::gnu::classpath::jdwp::VMMethod * __attribute__((aligned(__alignof__( ::java::lang::Object)))) method; ::gnu::classpath::jdwp::VMMethod * __attribute__((aligned(__alignof__( ::java::lang::Object)))) method;
jlong index; jlong index;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment