LLDB mainline
|
This class finds address for source file and line. More...
#include "lldb/Core/FileLineResolver.h"
Public Member Functions | |
FileLineResolver () | |
FileLineResolver (const FileSpec &resolver, uint32_t line_no, bool check_inlines) | |
~FileLineResolver () override | |
Searcher::CallbackReturn | SearchCallback (SearchFilter &filter, SymbolContext &context, Address *addr) override |
lldb::SearchDepth | GetDepth () override |
void | GetDescription (Stream *s) override |
Prints a canonical description for the searcher to the stream s. | |
const SymbolContextList & | GetFileLineMatches () |
void | Clear () |
void | Reset (const FileSpec &file_spec, uint32_t line, bool check_inlines) |
Public Member Functions inherited from lldb_private::Searcher | |
Searcher () | |
virtual | ~Searcher () |
virtual CallbackReturn | SearchCallback (SearchFilter &filter, SymbolContext &context, Address *addr)=0 |
virtual lldb::SearchDepth | GetDepth ()=0 |
virtual void | GetDescription (Stream *s) |
Prints a canonical description for the searcher to the stream s. | |
Protected Attributes | |
FileSpec | m_file_spec |
uint32_t | m_line_number |
SymbolContextList | m_sc_list |
bool | m_inlines = true |
Private Member Functions | |
FileLineResolver (const FileLineResolver &)=delete | |
const FileLineResolver & | operator= (const FileLineResolver &)=delete |
Additional Inherited Members | |
Public Types inherited from lldb_private::Searcher | |
enum | CallbackReturn { eCallbackReturnStop = 0 , eCallbackReturnContinue , eCallbackReturnPop } |
This class finds address for source file and line.
Optionally, it will look for inlined instances of the file and line specification.
Definition at line 27 of file FileLineResolver.h.
|
inline |
Definition at line 29 of file FileLineResolver.h.
FileLineResolver::FileLineResolver | ( | const FileSpec & | resolver, |
uint32_t | line_no, | ||
bool | check_inlines | ||
) |
Definition at line 27 of file FileLineResolver.cpp.
|
overridedefault |
|
privatedelete |
void FileLineResolver::Clear | ( | ) |
Definition at line 76 of file FileLineResolver.cpp.
References lldb_private::SymbolContextList::Clear(), lldb_private::FileSpec::Clear(), m_file_spec, m_inlines, m_line_number, m_sc_list, and UINT32_MAX.
Referenced by CommandObjectSourceList::DisplayFunctionSource(), and CommandObjectSourceList::DoExecute().
|
overridevirtual |
Implements lldb_private::Searcher.
Definition at line 67 of file FileLineResolver.cpp.
References lldb::eSearchDepthCompUnit.
|
overridevirtual |
Prints a canonical description for the searcher to the stream s.
[in] | s | Stream to which the output is copied. |
Reimplemented from lldb_private::Searcher.
Definition at line 71 of file FileLineResolver.cpp.
References lldb_private::FileSpec::GetPath(), m_file_spec, m_line_number, and lldb_private::Stream::Printf().
|
inline |
Definition at line 47 of file FileLineResolver.h.
References m_sc_list.
Referenced by CommandObjectSourceList::GetBreakpointLocations().
|
privatedelete |
void FileLineResolver::Reset | ( | const FileSpec & | file_spec, |
uint32_t | line, | ||
bool | check_inlines | ||
) |
Definition at line 83 of file FileLineResolver.cpp.
References lldb_private::SymbolContextList::Clear(), m_file_spec, m_inlines, m_line_number, and m_sc_list.
Referenced by CommandObjectSourceList::DisplayFunctionSource(), and CommandObjectSourceList::DoExecute().
|
overridevirtual |
Implements lldb_private::Searcher.
Definition at line 35 of file FileLineResolver.cpp.
References lldb_private::SymbolContext::comp_unit, lldb_private::FileSpec::Compare(), lldb_private::Searcher::eCallbackReturnContinue, lldb_private::SupportFileList::FindFileIndex(), lldb_private::LineTable::FindLineEntriesForFileIndex(), lldb_private::FileSpec::GetDirectory(), lldb_private::CompileUnit::GetLineTable(), lldb_private::CompileUnit::GetPrimaryFile(), lldb_private::CompileUnit::GetSupportFiles(), m_file_spec, m_inlines, m_line_number, m_sc_list, and UINT32_MAX.
|
protected |
Definition at line 54 of file FileLineResolver.h.
Referenced by Clear(), GetDescription(), Reset(), and SearchCallback().
|
protected |
Definition at line 58 of file FileLineResolver.h.
Referenced by Clear(), Reset(), and SearchCallback().
|
protected |
Definition at line 55 of file FileLineResolver.h.
Referenced by Clear(), GetDescription(), Reset(), and SearchCallback().
|
protected |
Definition at line 57 of file FileLineResolver.h.
Referenced by Clear(), GetFileLineMatches(), Reset(), and SearchCallback().