|
LLDB mainline
|
#include <SBStream.h>
Public Member Functions | |
| SBStream () | |
| SBStream (SBStream &&rhs) | |
| ~SBStream () | |
| operator bool () const | |
| bool | IsValid () const |
| const char * | GetData () |
| size_t | GetSize () |
| __attribute__ ((format(printf, 2, 3))) void Printf(const char *format | |
| void | Print (const char *str) |
| void | RedirectToFile (const char *path, bool append) |
| void | RedirectToFile (lldb::SBFile file) |
| void | RedirectToFile (lldb::FileSP file) |
| void | RedirectToFileHandle (FILE *fh, bool transfer_fh_ownership) |
| void | RedirectToFileDescriptor (int fd, bool transfer_fh_ownership) |
| void | Clear () |
Protected Member Functions | |
| lldb_private::Stream * | operator-> () |
| lldb_private::Stream * | get () |
| lldb_private::Stream & | ref () |
Private Member Functions | |
| SBStream (const SBStream &)=delete | |
| const SBStream & | operator= (const SBStream &)=delete |
| const char * | GetString () const |
| Exists so friend classes can use the StringString's data without putting it in the ConstString pool. | |
Private Attributes | |
| std::unique_ptr< lldb_private::Stream > | m_opaque_up |
| bool | m_is_file = false |
Friends | |
| class | SBAddress |
| class | SBAddressRange |
| class | SBAddressRangeList |
| class | SBBlock |
| class | SBBreakpoint |
| class | SBBreakpointLocation |
| class | SBBreakpointName |
| class | SBCommandReturnObject |
| class | SBCommandInterpreter |
| class | SBCompileUnit |
| class | SBData |
| class | SBDebugger |
| class | SBDeclaration |
| class | SBEvent |
| class | SBFileSpec |
| class | SBFileSpecList |
| class | SBFrame |
| class | SBFrameList |
| class | SBFunction |
| class | SBInstruction |
| class | SBInstructionList |
| class | SBLaunchInfo |
| class | SBLineEntry |
| class | SBMemoryRegionInfo |
| class | SBModule |
| class | SBModuleSpec |
| class | SBModuleSpecList |
| class | SBProcess |
| class | SBSection |
| class | SBSourceManager |
| class | SBStructuredData |
| class | SBSymbol |
| class | SBSymbolContext |
| class | SBSymbolContextList |
| class | SBTarget |
| class | SBThread |
| class | SBThreadPlan |
| class | SBType |
| class | SBTypeEnumMember |
| class | SBTypeMemberFunction |
| class | SBTypeMember |
| class | SBTypeSummary |
| class | SBValue |
| class | SBWatchpoint |
| class | lldb_private::ScriptInterpreterBridge |
Definition at line 22 of file SBStream.h.
| SBStream::SBStream | ( | ) |
Definition at line 24 of file SBStream.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by operator=(), SBStream(), and SBStream().
| SBStream::SBStream | ( | SBStream && | rhs | ) |
Definition at line 28 of file SBStream.cpp.
References m_is_file, m_opaque_up, and SBStream().
|
privatedelete |
References SBStream().
| lldb::SBStream::__attribute__ | ( | (format(printf, 2, 3)) | ) | const |
References Clear(), Print(), RedirectToFile(), RedirectToFileDescriptor(), and RedirectToFileHandle().
| void SBStream::Clear | ( | ) |
Definition at line 185 of file SBStream.cpp.
References lldb_private::StreamString::Clear(), LLDB_INSTRUMENT_VA, m_is_file, and m_opaque_up.
Referenced by __attribute__().
|
protected |
Definition at line 177 of file SBStream.cpp.
References m_opaque_up.
Referenced by lldb::SBSourceManager::DisplaySourceLinesWithLineNumbersAndColumn(), lldb::SBBreakpoint::GetDescription(), lldb::SBBreakpointName::GetDescription(), lldb::SBThreadPlan::GetDescription(), and lldb_private::ScriptInterpreterBridge.
| const char * SBStream::GetData | ( | ) |
Definition at line 45 of file SBStream.cpp.
References lldb_private::ConstString::GetCString(), lldb_private::StreamString::GetData(), LLDB_INSTRUMENT_VA, m_is_file, and m_opaque_up.
Referenced by lldb::SBDebugger::GetSelectedTarget(), lldb::SBValue::GetSummary(), lldb::SBDebugger::SetSelectedTarget(), and ~SBStream().
| size_t SBStream::GetSize | ( | ) |
Definition at line 57 of file SBStream.cpp.
References lldb_private::StreamString::GetSize(), LLDB_INSTRUMENT_VA, m_is_file, and m_opaque_up.
Referenced by ~SBStream().
|
private |
Exists so friend classes can use the StringString's data without putting it in the ConstString pool.
The return value only lives as long as the this SBStream class.
Definition at line 201 of file SBStream.cpp.
References lldb_private::StreamString::GetString(), m_is_file, and m_opaque_up.
Referenced by lldb::SBTypeSummary::CreateWithCallback(), lldb::SBCommandInterpreter::HandleCommandsFromFile(), operator=(), and lldb::SBStructuredData::SetFromJSON().
| bool SBStream::IsValid | ( | ) | const |
Definition at line 33 of file SBStream.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by ~SBStream().
|
explicit |
Definition at line 37 of file SBStream.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
|
protected |
Definition at line 175 of file SBStream.cpp.
References m_opaque_up.
Referenced by lldb_private::ScriptInterpreterBridge.
References GetString(), and SBStream().
| void SBStream::Print | ( | const char * | str | ) |
Definition at line 66 of file SBStream.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by __attribute__(), and lldb::SBStructuredData::SetFromJSON().
| void SBStream::RedirectToFile | ( | const char * | path, |
| bool | append ) |
Definition at line 81 of file SBStream.cpp.
References lldb_private::API, lldb_private::File::eOpenOptionAppend, lldb_private::File::eOpenOptionCanCreate, lldb_private::File::eOpenOptionTruncate, lldb_private::File::eOpenOptionWriteOnly, lldb_private::GetLog(), lldb_private::StreamString::GetString(), lldb_private::FileSystem::Instance(), LLDB_INSTRUMENT_VA, LLDB_LOG_ERROR, m_is_file, m_opaque_up, and lldb_private::FileSystem::Open().
Referenced by __attribute__(), RedirectToFile(), and RedirectToFileHandle().
| void SBStream::RedirectToFile | ( | lldb::FileSP | file | ) |
Definition at line 130 of file SBStream.cpp.
References lldb_private::StreamString::GetString(), LLDB_INSTRUMENT_VA, m_is_file, and m_opaque_up.
| void SBStream::RedirectToFile | ( | lldb::SBFile | file | ) |
Definition at line 125 of file SBStream.cpp.
References lldb::SBFile::GetFile(), LLDB_INSTRUMENT_VA, and RedirectToFile().
| void SBStream::RedirectToFileDescriptor | ( | int | fd, |
| bool | transfer_fh_ownership ) |
Definition at line 154 of file SBStream.cpp.
References lldb_private::StreamString::GetString(), LLDB_INSTRUMENT_VA, m_is_file, and m_opaque_up.
Referenced by __attribute__().
| void SBStream::RedirectToFileHandle | ( | FILE * | fh, |
| bool | transfer_fh_ownership ) |
Definition at line 118 of file SBStream.cpp.
References lldb_private::File::eOpenOptionReadWrite, LLDB_INSTRUMENT_VA, and RedirectToFile().
Referenced by __attribute__().
|
protected |
Definition at line 179 of file SBStream.cpp.
References m_opaque_up.
Referenced by lldb::SBStructuredData::GetAsJSON(), lldb::SBAddress::GetDescription(), lldb::SBAddressRange::GetDescription(), lldb::SBAddressRangeList::GetDescription(), lldb::SBBlock::GetDescription(), lldb::SBBreakpointLocation::GetDescription(), lldb::SBCommandReturnObject::GetDescription(), lldb::SBCompileUnit::GetDescription(), lldb::SBData::GetDescription(), lldb::SBDebugger::GetDescription(), lldb::SBDeclaration::GetDescription(), lldb::SBEvent::GetDescription(), lldb::SBEvent::GetDescription(), lldb::SBFileSpec::GetDescription(), lldb::SBFileSpecList::GetDescription(), lldb::SBFrame::GetDescription(), lldb::SBFrameList::GetDescription(), lldb::SBInstruction::GetDescription(), lldb::SBInstructionList::GetDescription(), lldb::SBInstructionList::GetDescription(), lldb::SBLineEntry::GetDescription(), lldb::SBMemoryRegionInfo::GetDescription(), lldb::SBModule::GetDescription(), lldb::SBModuleSpec::GetDescription(), lldb::SBModuleSpecList::GetDescription(), lldb::SBProcess::GetDescription(), lldb::SBSection::GetDescription(), lldb::SBStructuredData::GetDescription(), lldb::SBSymbol::GetDescription(), lldb::SBSymbolContext::GetDescription(), lldb::SBSymbolContextList::GetDescription(), lldb::SBTarget::GetDescription(), lldb::SBThread::GetDescription(), lldb::SBType::GetDescription(), lldb::SBTypeEnumMember::GetDescription(), lldb::SBTypeMember::GetDescription(), lldb::SBTypeMemberFunction::GetDescription(), lldb::SBValue::GetDescription(), lldb::SBWatchpoint::GetDescription(), lldb::SBFrame::GetDescriptionWithFormat(), lldb::SBThread::GetDescriptionWithFormat(), lldb::SBValue::GetExpressionPath(), lldb::SBValue::GetExpressionPath(), lldb::SBThread::GetInfoItemByPathAsString(), lldb::SBProcess::GetStatus(), lldb::SBThread::GetStatus(), lldb::SBThread::GetStopDescription(), lldb::SBThread::GetStopReasonExtendedInfoAsJSON(), lldb_private::ScriptInterpreterBridge, and lldb::SBInstruction::TestEmulation().
|
friend |
Definition at line 113 of file SBStream.h.
References get(), operator->(), and ref().
|
friend |
|
friend |
|
friend |
Definition at line 70 of file SBStream.h.
References SBAddressRangeList.
Referenced by SBAddressRangeList.
|
friend |
|
friend |
|
friend |
Definition at line 73 of file SBStream.h.
References SBBreakpointLocation.
Referenced by SBBreakpointLocation.
|
friend |
Definition at line 74 of file SBStream.h.
References SBBreakpointName.
Referenced by SBBreakpointName.
|
friend |
Definition at line 76 of file SBStream.h.
References SBCommandInterpreter.
Referenced by SBCommandInterpreter.
|
friend |
Definition at line 75 of file SBStream.h.
References SBCommandReturnObject.
Referenced by SBCommandReturnObject.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 88 of file SBStream.h.
References SBInstructionList.
Referenced by SBInstructionList.
|
friend |
|
friend |
|
friend |
Definition at line 91 of file SBStream.h.
References SBMemoryRegionInfo.
Referenced by SBMemoryRegionInfo.
|
friend |
|
friend |
|
friend |
Definition at line 94 of file SBStream.h.
References SBModuleSpecList.
Referenced by SBModuleSpecList.
|
friend |
|
friend |
|
friend |
Definition at line 97 of file SBStream.h.
References SBSourceManager.
Referenced by SBSourceManager.
|
friend |
Definition at line 98 of file SBStream.h.
References SBStructuredData.
Referenced by SBStructuredData.
|
friend |
|
friend |
Definition at line 100 of file SBStream.h.
References SBSymbolContext.
Referenced by SBSymbolContext.
|
friend |
Definition at line 101 of file SBStream.h.
References SBSymbolContextList.
Referenced by SBSymbolContextList.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 106 of file SBStream.h.
References SBTypeEnumMember.
Referenced by SBTypeEnumMember.
|
friend |
|
friend |
Definition at line 107 of file SBStream.h.
References SBTypeMemberFunction.
Referenced by SBTypeMemberFunction.
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 126 of file SBStream.h.
Referenced by Clear(), GetData(), GetSize(), GetString(), RedirectToFile(), RedirectToFile(), RedirectToFileDescriptor(), and SBStream().
|
private |
Definition at line 125 of file SBStream.h.
Referenced by Clear(), get(), GetData(), GetSize(), lldb_private::ScriptInterpreterBridge::GetStream(), GetString(), operator bool(), operator->(), RedirectToFile(), RedirectToFile(), RedirectToFileDescriptor(), ref(), SBStream(), and SBStream().