diff options
Diffstat (limited to 'lldb/tools/driver/Driver.cpp')
-rw-r--r-- | lldb/tools/driver/Driver.cpp | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 3ec2c2fd6d6..bfd706562af 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -901,133 +901,6 @@ Driver::HandleIOEvent (const SBEvent &event) return quit; } - -//struct CrashImageInfo -//{ -// std::string path; -// VMRange text_range; -// lldb_private::UUID uuid; -//}; -// -//void -//Driver::ParseCrashLog (const char *crash_log) -//{ -// printf("Parsing crash log: %s\n", crash_log); -// -// char image_path[PATH_MAX]; -// std::vector<CrashImageInfo> crash_infos; -// if (crash_log && crash_log[0]) -// { -// FileSpec crash_log_file (crash_log); -// STLStringArray crash_log_lines; -// if (crash_log_file.ReadFileLines (crash_log_lines)) -// { -// const size_t num_crash_log_lines = crash_log_lines.size(); -// size_t i; -// for (i=0; i<num_crash_log_lines; ++i) -// { -// const char *line = crash_log_lines[i].c_str(); -// if (strstr (line, "Code Type:")) -// { -// char arch_string[256]; -// if (sscanf(line, "%s", arch_string)) -// { -// if (strcmp(arch_string, "X86-64")) -// lldb::GetDefaultArchitecture ().SetArch ("x86_64"); -// else if (strcmp(arch_string, "X86")) -// lldb::GetDefaultArchitecture ().SetArch ("i386"); -// else -// { -// ArchSpec arch(arch_string); -// if (arch.IsValid ()) -// lldb::GetDefaultArchitecture () = arch; -// else -// fprintf(stderr, "Unrecognized architecture: %s\n", arch_string); -// } -// } -// } -// else -// if (strstr(line, "Path:")) -// { -// const char *p = line + strlen("Path:"); -// while (isspace(*p)) -// ++p; -// -// m_option_data.m_filename.assign (p); -// } -// else -// if (strstr(line, "Binary Images:")) -// { -// while (++i < num_crash_log_lines) -// { -// if (crash_log_lines[i].empty()) -// break; -// -// line = crash_log_lines[i].c_str(); -// uint64_t text_start_addr; -// uint64_t text_end_addr; -// char uuid_cstr[64]; -// int bytes_consumed_before_uuid = 0; -// int bytes_consumed_after_uuid = 0; -// -// int items_parsed = ::sscanf (line, -// "%llx - %llx %*s %*s %*s %n%s %n", -// &text_start_addr, -// &text_end_addr, -// &bytes_consumed_before_uuid, -// uuid_cstr, -// &bytes_consumed_after_uuid); -// -// if (items_parsed == 3) -// { -// -// CrashImageInfo info; -// info.text_range.SetBaseAddress(text_start_addr); -// info.text_range.SetEndAddress(text_end_addr); -// -// if (uuid_cstr[0] == '<') -// { -// if (info.uuid.SetfromCString (&uuid_cstr[1]) == 0) -// info.uuid.Clear(); -// -// ::strncpy (image_path, line + bytes_consumed_after_uuid, sizeof(image_path)); -// } -// else -// { -// ::strncpy (image_path, line + bytes_consumed_before_uuid, sizeof(image_path)); -// } -// -// info.path = image_path; -// -// crash_infos.push_back (info); -// -// info.uuid.GetAsCString(uuid_cstr, sizeof(uuid_cstr)); -// -// printf("0x%16.16llx - 0x%16.16llx <%s> %s\n", -// text_start_addr, -// text_end_addr, -// uuid_cstr, -// image_path); -// } -// } -// } -// } -// } -// -// if (crash_infos.size()) -// { -// SBTarget target (m_debugger.CreateTarget (crash_infos.front().path.c_str(), -// lldb::GetDefaultArchitecture().AsCString (), -// false)); -// if (target.IsValid()) -// { -// -// } -// } -// } -//} -// - void Driver::MasterThreadBytesReceived (void *baton, const void *src, size_t src_len) { |