diff options
| author | 2012-03-07 09:40:28 -0800 | |
|---|---|---|
| committer | 2012-03-07 09:40:28 -0800 | |
| commit | 7cce95f86941dfd791496229d90fd1a5714b2ec1 (patch) | |
| tree | 9eb4e40b75a4068be8b1062ebdbf52a34a41febf | |
| parent | 720fc19a1602ca1ee06cd7936979c2c30422a739 (diff) | |
| parent | 4dcbffb3c6e8757d127dede32c8efa6c04e44a70 (diff) | |
Merge "Fix oatdump OAT_LOCATION output" into dalvik-dev
| -rw-r--r-- | src/oatdump.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/oatdump.cc b/src/oatdump.cc index 7333bc3b5c..4b492aaa01 100644 --- a/src/oatdump.cc +++ b/src/oatdump.cc @@ -521,18 +521,22 @@ class ImageDumper { } os_ << "\n"; + os_ << "OAT LOCATION:\n" << std::flush; ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); Object* oat_location_object = image_header_.GetImageRoot(ImageHeader::kOatLocation); std::string oat_location(oat_location_object->AsString()->ToModifiedUtf8()); + os_ << oat_location; if (!host_prefix_.empty()) { oat_location = host_prefix_ + oat_location; os_ << " (" << oat_location << ")"; } + os_ << "\n"; const OatFile* oat_file = class_linker->FindOatFileFromOatLocation(oat_location); if (oat_file == NULL) { - os_ << "OAT FILE NOT FOUND: " << oat_location << std::endl << std::flush; + os_ << "NOT FOUND\n"; return; } + os_ << "\n"; stats_.oat_file_bytes = oat_file->Size(); @@ -556,9 +560,6 @@ class ImageDumper { os_ << std::flush; - os_ << "OAT LOCATION:\n" << std::flush; - os_ << oat_location; - os_ << "\n"; oat_dumper_->Dump(os_); } |