Merge "Some minor updates in the libdexfile external API."

This commit is contained in:
Martin Stjernholm 2019-01-11 10:28:03 +00:00 committed by Gerrit Code Review
commit 810c57d610
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@
#include <memory> #include <memory>
#include <android-base/unique_fd.h> #include <android-base/unique_fd.h>
#include <art_api/ext_dex_file.h> #include <art_api/dex_file_support.h>
#include <unwindstack/MapInfo.h> #include <unwindstack/MapInfo.h>
#include <unwindstack/Memory.h> #include <unwindstack/Memory.h>
@ -46,7 +46,7 @@ std::unique_ptr<DexFile> DexFile::Create(uint64_t dex_file_offset_in_memory, Mem
bool DexFile::GetMethodInformation(uint64_t dex_offset, std::string* method_name, bool DexFile::GetMethodInformation(uint64_t dex_offset, std::string* method_name,
uint64_t* method_offset) { uint64_t* method_offset) {
art_api::dex::MethodInfo method_info = GetMethodInfoForOffset(dex_offset); art_api::dex::MethodInfo method_info = GetMethodInfoForOffset(dex_offset, false);
if (method_info.offset == 0) { if (method_info.offset == 0) {
return false; return false;
} }

View file

@ -25,7 +25,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include <art_api/ext_dex_file.h> #include <art_api/dex_file_support.h>
namespace unwindstack { namespace unwindstack {