diff options
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThread.cpp')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachThread.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp index 386ba2317eb..0fe65b6927a 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp +++ b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp @@ -698,70 +698,3 @@ MachThread::GetName () return NULL; } - -// -//const char * -//MachThread::GetDispatchQueueName() -//{ -// if (GetIdentifierInfo ()) -// { -// if (m_ident_info.dispatch_qaddr == 0) -// return NULL; -// -// uint8_t memory_buffer[8]; -// DNBDataRef data(memory_buffer, sizeof(memory_buffer), false); -// ModuleSP module_sp(GetProcess()->GetTarget().GetImages().FindFirstModuleForFileSpec (FileSpec("libSystem.B.dylib"))); -// if (module_sp.get() == NULL) -// return NULL; -// -// lldb::addr_t dispatch_queue_offsets_addr = LLDB_INVALID_ADDRESS; -// const Symbol *dispatch_queue_offsets_symbol = module_sp->FindFirstSymbolWithNameAndType (ConstString("dispatch_queue_offsets"), eSymbolTypeData); -// if (dispatch_queue_offsets_symbol) -// dispatch_queue_offsets_addr = dispatch_queue_offsets_symbol->GetValue().GetLoadAddress(GetProcess()); -// -// if (dispatch_queue_offsets_addr == LLDB_INVALID_ADDRESS) -// return NULL; -// -// // Excerpt from src/queue_private.h -// struct dispatch_queue_offsets_s -// { -// uint16_t dqo_version; -// uint16_t dqo_label; -// uint16_t dqo_label_size; -// } dispatch_queue_offsets; -// -// -// if (GetProcess()->ReadMemory (dispatch_queue_offsets_addr, memory_buffer, sizeof(dispatch_queue_offsets)) == sizeof(dispatch_queue_offsets)) -// { -// uint32_t data_offset = 0; -// if (data.GetU16(&data_offset, &dispatch_queue_offsets.dqo_version, sizeof(dispatch_queue_offsets)/sizeof(uint16_t))) -// { -// if (GetProcess()->ReadMemory (m_ident_info.dispatch_qaddr, &memory_buffer, data.GetAddressByteSize()) == data.GetAddressByteSize()) -// { -// data_offset = 0; -// lldb::addr_t queue_addr = data.GetAddress(&data_offset); -// lldb::addr_t label_addr = queue_addr + dispatch_queue_offsets.dqo_label; -// const size_t chunk_size = 32; -// uint32_t label_pos = 0; -// m_dispatch_queue_name.resize(chunk_size, '\0'); -// while (1) -// { -// size_t bytes_read = GetProcess()->ReadMemory (label_addr + label_pos, &m_dispatch_queue_name[label_pos], chunk_size); -// -// if (bytes_read <= 0) -// break; -// -// if (m_dispatch_queue_name.find('\0', label_pos) != std::string::npos) -// break; -// label_pos += bytes_read; -// } -// m_dispatch_queue_name.erase(m_dispatch_queue_name.find('\0')); -// } -// } -// } -// } -// -// if (m_dispatch_queue_name.empty()) -// return NULL; -// return m_dispatch_queue_name.c_str(); -//} |