Home | History | Annotate | Download | only in runtime

Lines Matching full:error_msg

93                                   std::string* error_msg);
99 std::string* error_msg) const = 0;
108 std::string* error_msg) = 0;
112 std::string* error_msg);
116 bool Setup(const char* abs_dex_location, std::string* error_msg);
141 std::string* error_msg) {
151 error_msg)) {
155 if (!ret->ComputeFields(requested_base, elf_filename, error_msg)) {
161 if (!ret->Setup(abs_dex_location, error_msg)) {
170 std::string* error_msg) {
174 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s' %s",
184 *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: "
191 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s' %s",
206 *error_msg = StringPrintf("Failed to find oatbasslastword symbol in '%s'", file_path.c_str());
236 bool OatFileBase::Setup(const char* abs_dex_location, std::string* error_msg) {
239 *error_msg = StringPrintf("Invalid oat header for '%s': %s",
247 *error_msg = StringPrintf("In oat file '%s' found truncated OatHeader", GetLocation().c_str());
253 *error_msg = StringPrintf("In oat file '%s' found truncated variable-size data: "
270 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu truncated after dex file "
277 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu with empty location name",
283 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu with truncated dex file "
298 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' truncated after "
308 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' truncated "
316 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with zero dex "
324 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with dex file "
334 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with dex file "
347 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with invalid "
356 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with invalid "
366 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with dex file "
379 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' truncated "
388 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with truncated "
399 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with unaligned "
412 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zd for '%s' truncated "
426 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with truncated "
442 *error_msg = StringPrintf("In oat file '%s' found OatDexFile #%zu for '%s' with "
481 *error_msg = StringPrintf("In oat file '%s' found unexpected bss size bigger by %zu bytes.",
515 std::string* error_msg) const OVERRIDE {
519 *error_msg = dlerror();
531 std::string* error_msg) OVERRIDE;
539 std::string* error_msg);
594 std::string* error_msg) {
600 *error_msg = "DlOpen is disabled.";
604 *error_msg = "DlOpen does not support low 4gb loading.";
608 *error_msg = "DlOpen does not support writable loading.";
612 *error_msg = "DlOpen does not support non-executable loading.";
622 *error_msg = "DlOpen disabled for host.";
627 bool success = Dlopen(elf_filename, oat_file_begin, error_msg);
635 std::string* error_msg) {
640 *error_msg = "Dlopen unsupported on Mac.";
646 *error_msg = StringPrintf("Failed to find absolute path for '%s'", elf_filename.c_str());
670 *error_msg = StringPrintf("host dlopen re-opened '%s'", elf_filename.c_str());
677 *error_msg = StringPrintf("Failed to dlopen '%s': %s", elf_filename.c_str(), dlerror());
767 std::string* error_msg);
771 std::string* error_msg);
775 std::string* error_msg) const OVERRIDE {
778 *error_msg = "(Internal implementation could not find symbol)";
791 std::string* error_msg) OVERRIDE;
802 std::string* error_msg);
819 std::string* error_msg) {
827 error_msg);
829 CHECK(!error_msg->empty());
834 if (!oat_file->ComputeFields(requested_base, file->GetPath(), error_msg)) {
838 if (!oat_file->Setup(abs_dex_location, error_msg)) {
847 std::string* error_msg) {
850 *error_msg = "Cannot initialize from elf file in executable mode.";
860 return Setup(abs_dex_location, error_msg);
868 std::string* error_msg) {
872 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno));
880 error_msg);
888 std::string* error_msg) {
895 error_msg,
898 DCHECK(!error_msg->empty());
901 bool loaded = elf_file_->Load(file, executable, low_4gb, error_msg);
902 DCHECK(loaded || !error_msg->empty());
937 std::string* error_msg) {
939 return oat_file->InitializeFromElfFile(elf_file, abs_dex_location, error_msg)
951 std::string* error_msg) {
958 *error_msg = StringPrintf("File %s does not exist.", filename.c_str());
972 error_msg);
977 LOG(ERROR) << "Failed to dlopen: " << filename << " with error " << *error_msg;
1000 error_msg);
1007 std::string* error_msg) {
1017 error_msg);
1023 std::string* error_msg) {
1033 error_msg);
1168 std::unique_ptr<const DexFile> OatFile::OatDexFile::OpenDexFile(std::string* error_msg) const {
1176 error_msg);
1369 std::string error_msg;
1372 &error_msg)) {
1382 error_msg.c_str());