You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/12/09 16:37:02 UTC
svn commit: r888865 -
/incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/reader/CJVMTIBinReader.java
Author: monteith
Date: Wed Dec 9 16:37:01 2009
New Revision: 888865
URL: http://svn.apache.org/viewvc?rev=888865&view=rev
Log:
Fix missing line numbers. location was not being set from JavaStackFrames.
Modified:
incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/reader/CJVMTIBinReader.java
Modified: incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/reader/CJVMTIBinReader.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/reader/CJVMTIBinReader.java?rev=888865&r1=888864&r2=888865&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/reader/CJVMTIBinReader.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.cjvmti/src/main/java/org/apache/kato/jvmti/reader/CJVMTIBinReader.java Wed Dec 9 16:37:01 2009
@@ -1049,14 +1049,14 @@
loc.setCompilationLevel(1);
return;
- } else if (depth == CJVMTI_LOCAL_VARIABLE) {
- log.log(Level.FINEST, "Local var");
- } else {
+ } else if (depth != CJVMTI_LOCAL_VARIABLE) {
log.finer("Error reading frame type. Got "+depth);
throw new IOException("Error reading frame "+pos+" in thread. "+t+
". Error reading frame type. Got "+depth);
}
+ log.log(Level.FINEST, "Local var");
+
loc.setCompilationLevel(0);
if (clazz != null) {
@@ -1066,6 +1066,8 @@
long location = variablesIn.readLong();
log.log(Level.FINEST, "Location is " + location);
+ loc.setAddress(location);
+
loc.linenumber = loc.method.getLineNumber(location);
log.log(Level.FINEST, " Line number " + loc.linenumber + " to "
+ location);