summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2014-10-27 16:29:58 -0700
committerBrian Carlstrom <bdc@google.com>2014-10-27 16:29:58 -0700
commit3f8d941d89f5dd8fff2d6faf705f1841d40c683e (patch)
tree74036b4d3d15696c48da1dd72ef61e3eb3f25d21 /dalvik
parent936306df62d7d44a806fbeb789c6432e7c325981 (diff)
downloadlibcore-3f8d941d89f5dd8fff2d6faf705f1841d40c683e.zip
libcore-3f8d941d89f5dd8fff2d6faf705f1841d40c683e.tar.gz
libcore-3f8d941d89f5dd8fff2d6faf705f1841d40c683e.tar.bz2
Improve DexFile debugging
Bug: 18105751 Change-Id: I16461b61cb7723ca1f3a52080c377d013d76675b
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/DexFile.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/dalvik/src/main/java/dalvik/system/DexFile.java b/dalvik/src/main/java/dalvik/system/DexFile.java
index 7aeba87..86bb531 100644
--- a/dalvik/src/main/java/dalvik/system/DexFile.java
+++ b/dalvik/src/main/java/dalvik/system/DexFile.java
@@ -80,7 +80,7 @@ public final class DexFile {
mCookie = openDexFile(fileName, null, 0);
mFileName = fileName;
guard.open("close");
- //System.out.println("DEX FILE cookie is " + mCookie);
+ //System.out.println("DEX FILE cookie is " + mCookie + " fileName=" + fileName);
}
/**
@@ -111,7 +111,7 @@ public final class DexFile {
mCookie = openDexFile(sourceName, outputName, flags);
mFileName = sourceName;
guard.open("close");
- //System.out.println("DEX FILE cookie is " + mCookie);
+ //System.out.println("DEX FILE cookie is " + mCookie + " sourceName=" + sourceName + " outputName=" + outputName);
}
/**
@@ -160,6 +160,10 @@ public final class DexFile {
return mFileName;
}
+ @Override public String toString() {
+ return getName();
+ }
+
/**
* Closes the DEX file.
* <p>