Home | History | Annotate | Download | only in runtime

Lines Matching refs:error_msg

47                                   std::string* error_msg) {
53 return oat_file->Setup(error_msg) ? oat_file.release() : nullptr;
58 std::string* error_msg) {
64 return oat_file->Setup(error_msg) ? oat_file.release() : nullptr;
71 std::string* error_msg) {
81 ret.reset(OpenDlopen(filename, location, requested_base, error_msg));
91 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno));
94 ret.reset(OpenElfFile(file.get(), location, requested_base, false, executable, error_msg));
103 OatFile* OatFile::OpenWritable(File* file, const std::string& location, std::string* error_msg) {
105 return OpenElfFile(file, location, NULL, true, false, error_msg);
108 OatFile* OatFile::OpenReadable(File* file, const std::string& location, std::string* error_msg) {
110 return OpenElfFile(file, location, NULL, false, false, error_msg);
116 std::string* error_msg) {
118 bool success = oat_file->Dlopen(elf_filename, requested_base, error_msg);
130 std::string* error_msg) {
132 bool success = oat_file->ElfFileOpen(file, requested_base, writable, executable, error_msg);
134 CHECK(!error_msg->empty());
155 std::string* error_msg) {
158 *error_msg = StringPrintf("Failed to find absolute path for '%s'", elf_filename.c_str());
164 *error_msg = StringPrintf("Failed to dlopen '%s': %s", elf_filename.c_str(), dlerror());
169 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s': %s", elf_filename.c_str(),
174 *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: "
177 ReadFileToString("/proc/self/maps", error_msg);
182 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s': %s", elf_filename.c_str(),
188 return Setup(error_msg);
192 std::string* error_msg) {
193 elf_file_.reset(ElfFile::Open(file, writable, true, error_msg));
195 DCHECK(!error_msg->empty());
198 bool loaded = elf_file_->Load(executable, error_msg);
200 DCHECK(!error_msg->empty());
205 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s'", file->GetPath().c_str());
209 *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: "
212 ReadFileToString("/proc/self/maps", error_msg);
217 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s'", file->GetPath().c_str());
222 return Setup(error_msg);
225 bool OatFile::Setup(std::string* error_msg) {
227 *error_msg = StringPrintf("Invalid oat magic for '%s'", GetLocation().c_str());
233 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str());
239 *error_msg = StringPrintf("In oat file '%s' found truncated variable-size data: "
251 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd with empty location name",
257 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd truncated after dex file "
265 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd with truncated dex file "
275 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated after "
283 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with zero dex "
288 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with dex file "
295 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated "
303 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with invalid "
309 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with invalid "
319 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' with truncated "
452 const DexFile* OatFile::OatDexFile::OpenDexFile(std::string* error_msg) const {
454 dex_file_location_checksum_, error_msg);