bool SBBlock::GetDescription (SBStream &description) { Stream &strm = description.ref(); if (m_opaque_ptr) { lldb::user_id_t id = m_opaque_ptr->GetID(); strm.Printf ("Block: {id: %" PRIu64 "} ", id); if (IsInlined()) { strm.Printf (" (inlined, '%s') ", GetInlinedName()); } lldb_private::SymbolContext sc; m_opaque_ptr->CalculateSymbolContext (&sc); if (sc.function) { m_opaque_ptr->DumpAddressRanges (&strm, sc.function->GetAddressRange().GetBaseAddress().GetFileAddress()); } } else strm.PutCString ("No value"); return true; }
bool SBProcess::GetDescription (SBStream &description) { Stream &strm = description.ref(); ProcessSP process_sp(GetSP()); if (process_sp) { char path[PATH_MAX]; GetTarget().GetExecutable().GetPath (path, sizeof(path)); Module *exe_module = process_sp->GetTarget().GetExecutableModulePointer(); const char *exe_name = NULL; if (exe_module) exe_name = exe_module->GetFileSpec().GetFilename().AsCString(); strm.Printf ("SBProcess: pid = %" PRIu64 ", state = %s, threads = %d%s%s", process_sp->GetID(), lldb_private::StateAsCString (GetState()), GetNumThreads(), exe_name ? ", executable = " : "", exe_name ? exe_name : ""); } else strm.PutCString ("No value"); return true; }
bool SBCommandReturnObject::GetDescription (SBStream &description) { Stream &strm = description.ref(); if (m_opaque_ap.get()) { description.Printf ("Status: "); lldb::ReturnStatus status = m_opaque_ap->GetStatus(); if (status == lldb::eReturnStatusStarted) strm.PutCString ("Started"); else if (status == lldb::eReturnStatusInvalid) strm.PutCString ("Invalid"); else if (m_opaque_ap->Succeeded()) strm.PutCString ("Success"); else strm.PutCString ("Fail"); if (GetOutputSize() > 0) strm.Printf ("\nOutput Message:\n%s", GetOutput()); if (GetErrorSize() > 0) strm.Printf ("\nError Message:\n%s", GetError()); } else strm.PutCString ("No value"); return true; }
bool SBFileSpec::GetDescription (SBStream &description) const { Stream &strm = description.ref(); char path[PATH_MAX]; if (m_opaque_ap->GetPath(path, sizeof(path))) strm.PutCString (path); return true; }
bool SBCompileUnit::GetDescription(SBStream &description) { Stream &strm = description.ref(); if (m_opaque_ptr) { m_opaque_ptr->Dump(&strm, false); } else strm.PutCString("No value"); return true; }
bool SBSymbolContext::GetDescription(SBStream &description) { Stream &strm = description.ref(); if (m_opaque_ap.get()) { m_opaque_ap->GetDescription(&strm, lldb::eDescriptionLevelFull, NULL); } else strm.PutCString("No value"); return true; }
bool SBValue::GetExpressionPath (SBStream &description) { if (m_opaque_sp) { m_opaque_sp->GetExpressionPath (description.ref(), false); return true; } return false; }
bool SBValue::GetExpressionPath (SBStream &description, bool qualify_cxx_base_classes) { if (m_opaque_sp) { m_opaque_sp->GetExpressionPath (description.ref(), qualify_cxx_base_classes); return true; } return false; }
bool SBModule::GetDescription(SBStream &description) { Stream &strm = description.ref(); ModuleSP module_sp(GetSP()); if (module_sp) { module_sp->GetDescription(&strm); } else strm.PutCString("No value"); return true; }
bool SBValue::GetExpressionPath (SBStream &description) { ValueLocker locker; lldb::ValueObjectSP value_sp(GetSP(locker)); if (value_sp) { value_sp->GetExpressionPath (description.ref(), false); return true; } return false; }
bool SBValue::GetExpressionPath (SBStream &description, bool qualify_cxx_base_classes) { ValueLocker locker; lldb::ValueObjectSP value_sp(GetSP(locker)); if (value_sp) { value_sp->GetExpressionPath (description.ref(), qualify_cxx_base_classes); return true; } return false; }
bool SBMemoryRegionInfo::GetDescription(SBStream &description) { Stream &strm = description.ref(); const addr_t load_addr = m_opaque_ap->GetRange().base; strm.Printf("[0x%16.16" PRIx64 "-0x%16.16" PRIx64 " ", load_addr, load_addr + m_opaque_ap->GetRange().size); strm.Printf(m_opaque_ap->GetReadable() ? "R" : "-"); strm.Printf(m_opaque_ap->GetWritable() ? "W" : "-"); strm.Printf(m_opaque_ap->GetExecutable() ? "X" : "-"); strm.Printf("]"); return true; }
bool SBSymbolContext::GetDescription(SBStream &description) { LLDB_RECORD_METHOD(bool, SBSymbolContext, GetDescription, (lldb::SBStream &), description); Stream &strm = description.ref(); if (m_opaque_up) { m_opaque_up->GetDescription(&strm, lldb::eDescriptionLevelFull, NULL); } else strm.PutCString("No value"); return true; }
bool SBSymbolContext::GetDescription (SBStream &description) { if (m_opaque_ap.get()) { description.ref(); m_opaque_ap->GetDescription (description.get(), lldb::eDescriptionLevelFull, NULL); } else description.Printf ("No value"); return true; }
bool SBCompileUnit::GetDescription (SBStream &description) { if (m_opaque_ptr) { description.ref(); m_opaque_ptr->Dump (description.get(), false); } else description.Printf ("No Value"); return true; }
bool SBThread::GetStatus(SBStream &status) const { Stream &strm = status.ref(); std::unique_lock<std::recursive_mutex> lock; ExecutionContext exe_ctx(m_opaque_sp.get(), lock); if (exe_ctx.HasThreadScope()) { exe_ctx.GetThreadPtr()->GetStatus(strm, 0, 1, 1, true); } else strm.PutCString("No status"); return true; }
bool SBValue::GetDescription (SBStream &description) { Stream &strm = description.ref(); if (m_opaque_sp) { ValueObject::DumpValueObject (strm, m_opaque_sp.get()); } else strm.PutCString ("No value"); return true; }
bool SBEvent::GetDescription (SBStream &description) const { Stream &strm = description.ref(); if (get()) { m_opaque_ptr->Dump (&strm); } else strm.PutCString ("No value"); return true; }
bool SBType::GetDescription (SBStream &description, lldb::DescriptionLevel description_level) { Stream &strm = description.ref(); if (m_opaque_sp) { m_opaque_sp->GetDescription (strm, description_level); } else strm.PutCString ("No value"); return true; }
bool SBLineEntry::GetDescription(SBStream &description) { Stream &strm = description.ref(); if (m_opaque_ap.get()) { char file_path[PATH_MAX * 2]; m_opaque_ap->file.GetPath(file_path, sizeof(file_path)); strm.Printf("%s:%u", file_path, GetLine()); if (GetColumn() > 0) strm.Printf(":%u", GetColumn()); } else strm.PutCString("No value"); return true; }
bool SBThread::GetDescription (SBStream &description) const { Stream &strm = description.ref(); if (m_opaque_sp) { strm.Printf("SBThread: tid = 0x%4.4llx", m_opaque_sp->GetID()); } else strm.PutCString ("No value"); return true; }
bool SBSection::GetDescription(SBStream &description) { Stream &strm = description.ref(); SectionSP section_sp(GetSP()); if (section_sp) { const addr_t file_addr = section_sp->GetFileAddress(); strm.Printf("[0x%16.16" PRIx64 "-0x%16.16" PRIx64 ") ", file_addr, file_addr + section_sp->GetByteSize()); section_sp->DumpName(&strm); } else { strm.PutCString("No value"); } return true; }
bool SBThread::GetStatus (SBStream &status) const { Stream &strm = status.ref(); ExecutionContext exe_ctx (m_opaque_sp.get()); if (exe_ctx.HasThreadScope()) { exe_ctx.GetThreadPtr()->GetStatus(strm, 0, 1, 1); } else strm.PutCString ("No status"); return true; }
bool SBThread::GetDescription (SBStream &description) const { Stream &strm = description.ref(); ExecutionContext exe_ctx (m_opaque_sp.get()); if (exe_ctx.HasThreadScope()) { strm.Printf("SBThread: tid = 0x%4.4" PRIx64, exe_ctx.GetThreadPtr()->GetID()); } else strm.PutCString ("No value"); return true; }
bool SBWatchpoint::GetDescription(SBStream &description, DescriptionLevel level) { Stream &strm = description.ref(); lldb::WatchpointSP watchpoint_sp(GetSP()); if (watchpoint_sp) { std::lock_guard<std::recursive_mutex> guard( watchpoint_sp->GetTarget().GetAPIMutex()); watchpoint_sp->GetDescription(&strm, level); strm.EOL(); } else strm.PutCString("No value"); return true; }
bool SBFrame::GetDescription (SBStream &description) { Stream &strm = description.ref(); if (m_opaque_sp) { Mutex::Locker api_locker (m_opaque_sp->GetThread().GetProcess().GetTarget().GetAPIMutex()); m_opaque_sp->DumpUsingSettingsFormat (&strm); } else strm.PutCString ("No value"); return true; }
bool SBDebugger::GetDescription (SBStream &description) { Stream &strm = description.ref(); if (m_opaque_sp) { const char *name = m_opaque_sp->GetInstanceName().AsCString(); user_id_t id = m_opaque_sp->GetID(); strm.Printf ("Debugger (instance: \"%s\", id: %llu)", name, id); } else strm.PutCString ("No value"); return true; }
bool SBFileSpecList::GetDescription(SBStream &description) const { Stream &strm = description.ref(); if (m_opaque_ap.get()) { uint32_t num_files = m_opaque_ap->GetSize(); strm.Printf("%d files: ", num_files); for (uint32_t i = 0; i < num_files; i++) { char path[PATH_MAX]; if (m_opaque_ap->GetFileSpecAtIndex(i).GetPath(path, sizeof(path))) strm.Printf("\n %s", path); } } else strm.PutCString("No value"); return true; }
bool SBValue::GetDescription (SBStream &description) { Stream &strm = description.ref(); ValueLocker locker; lldb::ValueObjectSP value_sp(GetSP(locker)); if (value_sp) { ValueObject::DumpValueObject (strm, value_sp.get()); } else strm.PutCString ("No value"); return true; }
bool SBLineEntry::GetDescription(SBStream &description) { LLDB_RECORD_METHOD(bool, SBLineEntry, GetDescription, (lldb::SBStream &), description); Stream &strm = description.ref(); if (m_opaque_up) { char file_path[PATH_MAX * 2]; m_opaque_up->file.GetPath(file_path, sizeof(file_path)); strm.Printf("%s:%u", file_path, GetLine()); if (GetColumn() > 0) strm.Printf(":%u", GetColumn()); } else strm.PutCString("No value"); return true; }