Refactor ElfDebugReader.
Make the code more flexible, which I will need for
future mini-debug-info work.
Bug: 110133331
Test: ./art/test.py -b -r -t 137
Change-Id: I8b0fe3c43537f546f2ff103bff3c63a59a0f940a
diff --git a/runtime/jit/debugger_interface.h b/runtime/jit/debugger_interface.h
index 17beb4b..51b7041 100644
--- a/runtime/jit/debugger_interface.h
+++ b/runtime/jit/debugger_interface.h
@@ -21,6 +21,7 @@
#include <vector>
#include "arch/instruction_set_features.h"
+#include "base/array_ref.h"
#include "base/locks.h"
namespace art {
@@ -33,7 +34,7 @@
typedef std::vector<uint8_t> PackElfFileForJITFunction(
InstructionSet isa,
const InstructionSetFeatures* features,
- std::vector<const uint8_t*>& added_elf_files,
+ std::vector<ArrayRef<const uint8_t>>& added_elf_files,
std::vector<const void*>& removed_symbols,
/*out*/ size_t* num_symbols);