diff options
Diffstat (limited to 'oatdump/oatdump.cc')
-rw-r--r-- | oatdump/oatdump.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index 6a68b55fad..44050ff8ed 100644 --- a/oatdump/oatdump.cc +++ b/oatdump/oatdump.cc @@ -2156,7 +2156,8 @@ class ImageDumper { oat_file = runtime->GetOatFileManager().FindOpenedOatFileFromOatLocation(oat_location); } if (oat_file == nullptr) { - oat_file = OatFile::Open(oat_location, + oat_file = OatFile::Open(/* zip_fd */ -1, + oat_location, oat_location, nullptr, nullptr, @@ -3044,7 +3045,8 @@ static int DumpImages(Runtime* runtime, OatDumperOptions* options, std::ostream* // We need to map the oat file in the low 4gb or else the fixup wont be able to fit oat file // pointers into 32 bit pointer sized ArtMethods. std::string error_msg; - std::unique_ptr<OatFile> oat_file(OatFile::Open(options->app_oat_, + std::unique_ptr<OatFile> oat_file(OatFile::Open(/* zip_fd */ -1, + options->app_oat_, options->app_oat_, nullptr, nullptr, @@ -3167,7 +3169,8 @@ static int DumpOat(Runtime* runtime, << "oatdump might fail if the oat file does not contain the dex code."; } std::string error_msg; - std::unique_ptr<OatFile> oat_file(OatFile::Open(oat_filename, + std::unique_ptr<OatFile> oat_file(OatFile::Open(/* zip_fd */ -1, + oat_filename, oat_filename, nullptr, nullptr, @@ -3192,7 +3195,8 @@ static int SymbolizeOat(const char* oat_filename, std::string& output_name, bool no_bits) { std::string error_msg; - std::unique_ptr<OatFile> oat_file(OatFile::Open(oat_filename, + std::unique_ptr<OatFile> oat_file(OatFile::Open(/* zip_fd */ -1, + oat_filename, oat_filename, nullptr, nullptr, @@ -3239,7 +3243,8 @@ class IMTDumper { if (oat_filename != nullptr) { std::string error_msg; - std::unique_ptr<OatFile> oat_file(OatFile::Open(oat_filename, + std::unique_ptr<OatFile> oat_file(OatFile::Open(/* zip_fd */ -1, + oat_filename, oat_filename, nullptr, nullptr, |