LLDB mainline
|
#include <SBFileSpec.h>
Public Member Functions | |
SBFileSpec () | |
SBFileSpec (const lldb::SBFileSpec &rhs) | |
LLDB_DEPRECATED_FIXME ("Use the other constructor to determine if this the file " "spec should be resolved", "SBFileSpec(const char *, bool)") SBFileSpec(const char *path) | |
SBFileSpec (const char *path, bool resolve) | |
~SBFileSpec () | |
const SBFileSpec & | operator= (const lldb::SBFileSpec &rhs) |
operator bool () const | |
bool | operator== (const SBFileSpec &rhs) const |
bool | operator!= (const SBFileSpec &rhs) const |
bool | IsValid () const |
bool | Exists () const |
bool | ResolveExecutableLocation () |
const char * | GetFilename () const |
const char * | GetDirectory () const |
void | SetFilename (const char *filename) |
void | SetDirectory (const char *directory) |
uint32_t | GetPath (char *dst_path, size_t dst_len) const |
bool | GetDescription (lldb::SBStream &description) const |
void | AppendPathComponent (const char *file_or_directory) |
Static Public Member Functions | |
static int | ResolvePath (const char *src_path, char *dst_path, size_t dst_len) |
Private Member Functions | |
SBFileSpec (const lldb_private::FileSpec &fspec) | |
void | SetFileSpec (const lldb_private::FileSpec &fspec) |
const lldb_private::FileSpec * | operator-> () const |
const lldb_private::FileSpec * | get () const |
const lldb_private::FileSpec & | operator* () const |
const lldb_private::FileSpec & | ref () const |
Private Attributes | |
std::unique_ptr< lldb_private::FileSpec > | m_opaque_up |
Friends | |
class | SBAttachInfo |
class | SBBlock |
class | SBCommandInterpreter |
class | SBCompileUnit |
class | SBDeclaration |
class | SBFileSpecList |
class | SBHostOS |
class | SBLaunchInfo |
class | SBLineEntry |
class | SBModule |
class | SBModuleSpec |
class | SBPlatform |
class | SBProcess |
class | SBProcessInfo |
class | SBSourceManager |
class | SBTarget |
class | SBThread |
class | SBTrace |
class | SBSaveCoreOptions |
Definition at line 16 of file SBFileSpec.h.
SBFileSpec::SBFileSpec | ( | ) |
Definition at line 26 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA.
SBFileSpec::SBFileSpec | ( | const lldb::SBFileSpec & | rhs | ) |
Definition at line 30 of file SBFileSpec.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.
SBFileSpec::SBFileSpec | ( | const char * | path, |
bool | resolve | ||
) |
Definition at line 46 of file SBFileSpec.cpp.
References lldb_private::FileSystem::Instance(), LLDB_INSTRUMENT_VA, m_opaque_up, and lldb_private::FileSystem::Resolve().
|
default |
|
private |
Definition at line 36 of file SBFileSpec.cpp.
void SBFileSpec::AppendPathComponent | ( | const char * | file_or_directory | ) |
Definition at line 178 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBFileSpec::Exists | ( | ) | const |
Definition at line 86 of file SBFileSpec.cpp.
References lldb_private::FileSystem::Exists(), lldb_private::FileSystem::Instance(), LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBPlatform::Install(), and lldb::SBPlatform::Put().
|
private |
Definition at line 154 of file SBFileSpec.cpp.
References m_opaque_up.
Referenced by lldb::SBCompileUnit::FindLineEntryIndex().
bool SBFileSpec::GetDescription | ( | lldb::SBStream & | description | ) | const |
Definition at line 168 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, m_opaque_up, PATH_MAX, lldb_private::Stream::PutCString(), and lldb::SBStream::ref().
Referenced by lldb::SBCommandInterpreter::HandleCommandsFromFile().
const char * SBFileSpec::GetDirectory | ( | ) | const |
Definition at line 114 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
const char * SBFileSpec::GetFilename | ( | ) | const |
Definition at line 108 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
uint32_t SBFileSpec::GetPath | ( | char * | dst_path, |
size_t | dst_len | ||
) | const |
Definition at line 140 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
Referenced by lldb::SBProcess::GetDescription().
bool SBFileSpec::IsValid | ( | ) | const |
Definition at line 76 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by lldb::SBTarget::BreakpointCreateBySourceRegex(), lldb::SBModule::FindCompileUnits(), lldb::SBTarget::FindCompileUnits(), lldb::SBTarget::FindModule(), lldb::SBCommandInterpreter::HandleCommandsFromFile(), lldb::SBAttachInfo::SetExecutable(), lldb::SBDeclaration::SetFileSpec(), lldb::SBLineEntry::SetFileSpec(), and lldb::SBThread::StepOverUntil().
lldb::SBFileSpec::LLDB_DEPRECATED_FIXME | ( | "Use the other constructor to determine if this the file " "spec should be resolved" | , |
"SBFileSpec(const char *, bool)" | |||
) | const |
|
explicit |
Definition at line 80 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA.
bool SBFileSpec::operator!= | ( | const SBFileSpec & | rhs | ) | const |
Definition at line 70 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA.
|
private |
Definition at line 158 of file SBFileSpec.cpp.
References m_opaque_up.
|
private |
Definition at line 150 of file SBFileSpec.cpp.
References m_opaque_up.
const SBFileSpec & SBFileSpec::operator= | ( | const lldb::SBFileSpec & | rhs | ) |
Definition at line 56 of file SBFileSpec.cpp.
References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.
bool SBFileSpec::operator== | ( | const SBFileSpec & | rhs | ) | const |
Definition at line 64 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, and ref().
|
private |
Definition at line 162 of file SBFileSpec.cpp.
References m_opaque_up.
Referenced by lldb::SBFileSpecList::Append(), lldb::SBFileSpecList::AppendIfUnique(), lldb::SBTarget::BreakpointsCreateFromFile(), lldb::SBTarget::BreakpointsWriteToFile(), lldb::SBSourceManager::DisplaySourceLinesWithLineNumbers(), lldb::SBSourceManager::DisplaySourceLinesWithLineNumbersAndColumn(), lldb::SBFileSpecList::FindFileIndex(), lldb::SBCompileUnit::FindSupportFileIndex(), lldb::SBPlatform::Get(), lldb::SBCommandInterpreter::HandleCommandsFromFile(), lldb::SBPlatform::Install(), lldb::SBThread::JumpToLine(), lldb::SBTrace::LoadTraceFromFile(), operator==(), lldb::SBPlatform::Put(), lldb::SBTrace::SaveToDisk(), lldb::SBAttachInfo::SetExecutable(), lldb::SBLaunchInfo::SetExecutableFile(), lldb::SBDeclaration::SetFileSpec(), lldb::SBLineEntry::SetFileSpec(), lldb::SBPlatform::SetLocateModuleCallback(), lldb::SBSaveCoreOptions::SetOutputFile(), lldb::SBModule::SetRemoteInstallFileSpec(), and lldb::SBThread::StepOverUntil().
bool SBFileSpec::ResolveExecutableLocation | ( | ) |
Definition at line 92 of file SBFileSpec.cpp.
References lldb_private::FileSystem::Instance(), LLDB_INSTRUMENT_VA, m_opaque_up, and lldb_private::FileSystem::ResolveExecutableLocation().
|
static |
Definition at line 98 of file SBFileSpec.cpp.
References lldb_private::FileSystem::Instance(), LLDB_INSTRUMENT_VA, and lldb_private::FileSystem::Resolve().
void SBFileSpec::SetDirectory | ( | const char * | directory | ) |
Definition at line 131 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
void SBFileSpec::SetFilename | ( | const char * | filename | ) |
Definition at line 122 of file SBFileSpec.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_up.
|
private |
Definition at line 164 of file SBFileSpec.cpp.
References m_opaque_up.
Referenced by lldb::SBTarget::GetExecutable(), lldb::SBProcessInfo::GetExecutableFile(), lldb::SBCompileUnit::GetFileSpec(), lldb::SBDeclaration::GetFileSpec(), lldb::SBLineEntry::GetFileSpec(), lldb::SBModule::GetFileSpec(), lldb::SBFileSpecList::GetFileSpecAtIndex(), lldb::SBBlock::GetInlinedCallSiteFile(), lldb::SBHostOS::GetLLDBPath(), lldb::SBModule::GetPlatformFileSpec(), lldb::SBHostOS::GetProgramFileSpec(), lldb::SBModule::GetRemoteInstallFileSpec(), lldb::SBCompileUnit::GetSupportFileAtIndex(), lldb::SBModule::GetSymbolFileSpec(), lldb::SBHostOS::GetUserHomeDirectory(), and lldb::SBTrace::SaveToDisk().
|
friend |
Definition at line 63 of file SBFileSpec.h.
|
friend |
Definition at line 64 of file SBFileSpec.h.
|
friend |
Definition at line 65 of file SBFileSpec.h.
|
friend |
Definition at line 66 of file SBFileSpec.h.
|
friend |
Definition at line 67 of file SBFileSpec.h.
|
friend |
Definition at line 68 of file SBFileSpec.h.
|
friend |
Definition at line 69 of file SBFileSpec.h.
|
friend |
Definition at line 70 of file SBFileSpec.h.
|
friend |
Definition at line 71 of file SBFileSpec.h.
|
friend |
Definition at line 72 of file SBFileSpec.h.
|
friend |
Definition at line 73 of file SBFileSpec.h.
|
friend |
Definition at line 74 of file SBFileSpec.h.
|
friend |
Definition at line 75 of file SBFileSpec.h.
|
friend |
Definition at line 76 of file SBFileSpec.h.
|
friend |
Definition at line 81 of file SBFileSpec.h.
|
friend |
Definition at line 77 of file SBFileSpec.h.
|
friend |
Definition at line 78 of file SBFileSpec.h.
|
friend |
Definition at line 79 of file SBFileSpec.h.
|
friend |
Definition at line 80 of file SBFileSpec.h.
|
private |
Definition at line 95 of file SBFileSpec.h.
Referenced by AppendPathComponent(), Exists(), get(), GetDescription(), GetDirectory(), GetFilename(), GetPath(), operator*(), operator->(), operator=(), ref(), ResolveExecutableLocation(), SBFileSpec(), SetDirectory(), SetFilename(), and SetFileSpec().