mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Add new API to SBTarget and SBModule classes.
Summary: The new API allows to find a list of compile units related to target/module. Reviewers: aprantl, clayborg Reviewed By: aprantl Subscribers: jingham, lldb-commits Differential Revision: https://reviews.llvm.org/D48801 llvm-svn: 336200
This commit is contained in:
@@ -179,6 +179,23 @@ public:
|
||||
lldb::SBCompileUnit
|
||||
GetCompileUnitAtIndex (uint32_t);
|
||||
|
||||
%feature("docstring", "
|
||||
//------------------------------------------------------------------
|
||||
/// Find compile units related to *this module and passed source
|
||||
/// file.
|
||||
///
|
||||
/// @param[in] sb_file_spec
|
||||
/// A lldb::SBFileSpec object that contains source file
|
||||
/// specification.
|
||||
///
|
||||
/// @return
|
||||
/// A lldb::SBSymbolContextList that gets filled in with all of
|
||||
/// the symbol contexts for all the matches.
|
||||
//------------------------------------------------------------------
|
||||
") FindCompileUnits;
|
||||
lldb::SBSymbolContextList
|
||||
FindCompileUnits (const lldb::SBFileSpec &sb_file_spec);
|
||||
|
||||
size_t
|
||||
GetNumSymbols ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user