From b49289b43a3e64db5c4605080911f3d54e262fb6 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Fri, 14 Dec 2018 15:26:32 +0000 Subject: [PATCH] Some minor updates in the libdexfile external API. Test: m Test: mmma system/core/{libunwindstack,libbacktrace} and run host gtests Bug: 119632407 Bug: 120978655 Change-Id: I919586ab503be3617e8a0604dfe48db331e7af94 --- libunwindstack/DexFile.cpp | 4 ++-- libunwindstack/DexFile.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libunwindstack/DexFile.cpp b/libunwindstack/DexFile.cpp index 9b0b2328f..eaf867fd0 100644 --- a/libunwindstack/DexFile.cpp +++ b/libunwindstack/DexFile.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -46,7 +46,7 @@ std::unique_ptr DexFile::Create(uint64_t dex_file_offset_in_memory, Mem bool DexFile::GetMethodInformation(uint64_t dex_offset, std::string* method_name, 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) { return false; } diff --git a/libunwindstack/DexFile.h b/libunwindstack/DexFile.h index 5797deec6..ca658e688 100644 --- a/libunwindstack/DexFile.h +++ b/libunwindstack/DexFile.h @@ -25,7 +25,7 @@ #include #include -#include +#include namespace unwindstack {