LLDB  mainline
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
lldb_private::FileLineResolver Class Reference

#include "lldb/Core/FileLineResolver.h"

Inheritance diagram for lldb_private::FileLineResolver:
Inheritance graph
Collaboration diagram for lldb_private::FileLineResolver:
Collaboration graph

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. More...
const SymbolContextListGetFileLineMatches ()
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 ()

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 FileLineResolveroperator= (const FileLineResolver &)=delete

Additional Inherited Members

- Public Types inherited from lldb_private::Searcher
enum  CallbackReturn { eCallbackReturnStop = 0, eCallbackReturnContinue, eCallbackReturnPop }

Detailed Description

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.

Constructor & Destructor Documentation

◆ FileLineResolver() [1/3]

lldb_private::FileLineResolver::FileLineResolver ( )

Definition at line 29 of file FileLineResolver.h.

◆ FileLineResolver() [2/3]

FileLineResolver::FileLineResolver ( const FileSpec resolver,
uint32_t  line_no,
bool  check_inlines 

Definition at line 27 of file FileLineResolver.cpp.

◆ ~FileLineResolver()

FileLineResolver::~FileLineResolver ( )

◆ FileLineResolver() [3/3]

lldb_private::FileLineResolver::FileLineResolver ( const FileLineResolver )

Member Function Documentation

◆ Clear()

void FileLineResolver::Clear ( )

◆ GetDepth()

lldb::SearchDepth FileLineResolver::GetDepth ( )

Implements lldb_private::Searcher.

Definition at line 67 of file FileLineResolver.cpp.

References lldb::eSearchDepthCompUnit.

◆ GetDescription()

void FileLineResolver::GetDescription ( Stream s)

Prints a canonical description for the searcher to the stream s.

[in]sStream 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().

◆ GetFileLineMatches()

const SymbolContextList& lldb_private::FileLineResolver::GetFileLineMatches ( )

Definition at line 47 of file FileLineResolver.h.

References m_sc_list.

◆ operator=()

const FileLineResolver& lldb_private::FileLineResolver::operator= ( const FileLineResolver )

◆ Reset()

void FileLineResolver::Reset ( const FileSpec file_spec,
uint32_t  line,
bool  check_inlines 

◆ SearchCallback()

Searcher::CallbackReturn FileLineResolver::SearchCallback ( SearchFilter filter,
SymbolContext context,
Address addr 

Member Data Documentation

◆ m_file_spec

FileSpec lldb_private::FileLineResolver::m_file_spec

Definition at line 54 of file FileLineResolver.h.

Referenced by Clear(), GetDescription(), Reset(), and SearchCallback().

◆ m_inlines

bool lldb_private::FileLineResolver::m_inlines = true

Definition at line 58 of file FileLineResolver.h.

Referenced by Clear(), Reset(), and SearchCallback().

◆ m_line_number

uint32_t lldb_private::FileLineResolver::m_line_number
Initial value:

Definition at line 55 of file FileLineResolver.h.

Referenced by Clear(), GetDescription(), Reset(), and SearchCallback().

◆ m_sc_list

SymbolContextList lldb_private::FileLineResolver::m_sc_list

Definition at line 57 of file FileLineResolver.h.

Referenced by Clear(), GetFileLineMatches(), Reset(), and SearchCallback().

The documentation for this class was generated from the following files:
#define UINT32_MAX
Definition: lldb-defines.h:19