summaryrefslogtreecommitdiffstats
path: root/libjava/classpath
diff options
context:
space:
mode:
authorkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-28 01:02:10 +0000
committerkseitz <kseitz@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-28 01:02:10 +0000
commit996048158846d1a81bd7c363ba0ad2759abb051a (patch)
treebddf0f058c343970e23c7d7087ed3c04a58c722b /libjava/classpath
parent5e9db045713255a09a312ccbe905c283f7f92e51 (diff)
downloadppe42-gcc-996048158846d1a81bd7c363ba0ad2759abb051a.tar.gz
ppe42-gcc-996048158846d1a81bd7c363ba0ad2759abb051a.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124249 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath')
-rw-r--r--libjava/classpath/ChangeLog9
-rw-r--r--libjava/classpath/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java18
-rw-r--r--libjava/classpath/gnu/classpath/jdwp/util/Location.java14
-rw-r--r--libjava/classpath/lib/gnu/classpath/jdwp/VMMethod.classbin1983 -> 2165 bytes
-rw-r--r--libjava/classpath/lib/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.classbin889 -> 1109 bytes
-rw-r--r--libjava/classpath/lib/gnu/classpath/jdwp/util/Location.classbin2633 -> 2867 bytes
6 files changed, 29 insertions, 12 deletions
diff --git a/libjava/classpath/ChangeLog b/libjava/classpath/ChangeLog
index 4877b1de2f0..e9ad54b28b7 100644
--- a/libjava/classpath/ChangeLog
+++ b/libjava/classpath/ChangeLog
@@ -1,3 +1,12 @@
+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>
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
diff --git a/libjava/classpath/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java b/libjava/classpath/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java
index 7190317a4ae..a3125371c5d 100644
--- a/libjava/classpath/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java
+++ b/libjava/classpath/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java
@@ -1,5 +1,5 @@
/* 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.
@@ -49,13 +49,6 @@ import gnu.classpath.jdwp.util.Location;
* May be used with breakpoint, field access, field modification, step,
* 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)
*/
public class LocationOnlyFilter
@@ -90,9 +83,12 @@ public class LocationOnlyFilter
*
* @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.
- return true;
+ Location loc = (Location) event.getParameter(Event.EVENT_LOCATION);
+ if (loc != null)
+ return (getLocation().equals(loc));
+
+ return false;
}
}
diff --git a/libjava/classpath/gnu/classpath/jdwp/util/Location.java b/libjava/classpath/gnu/classpath/jdwp/util/Location.java
index 89e81e563a1..ff045a5eccc 100644
--- a/libjava/classpath/gnu/classpath/jdwp/util/Location.java
+++ b/libjava/classpath/gnu/classpath/jdwp/util/Location.java
@@ -1,5 +1,5 @@
/* 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.
@@ -153,4 +153,16 @@ public class Location
{
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;
+ }
}
diff --git a/libjava/classpath/lib/gnu/classpath/jdwp/VMMethod.class b/libjava/classpath/lib/gnu/classpath/jdwp/VMMethod.class
index 25cc9e0c40f..e19c61b5109 100644
--- a/libjava/classpath/lib/gnu/classpath/jdwp/VMMethod.class
+++ b/libjava/classpath/lib/gnu/classpath/jdwp/VMMethod.class
Binary files differ
diff --git a/libjava/classpath/lib/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.class b/libjava/classpath/lib/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.class
index 1e8d19b24e6..a76fdfdcfcc 100644
--- a/libjava/classpath/lib/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.class
+++ b/libjava/classpath/lib/gnu/classpath/jdwp/event/filters/LocationOnlyFilter.class
Binary files differ
diff --git a/libjava/classpath/lib/gnu/classpath/jdwp/util/Location.class b/libjava/classpath/lib/gnu/classpath/jdwp/util/Location.class
index 593418c29b7..ed85dd09e7d 100644
--- a/libjava/classpath/lib/gnu/classpath/jdwp/util/Location.class
+++ b/libjava/classpath/lib/gnu/classpath/jdwp/util/Location.class
Binary files differ
OpenPOWER on IntegriCloud