mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
Added the ability to restrict breakpoints by function name, function regexp, selector
etc to specific source files. Added SB API's to specify these source files & also more than one module. Added an "exact" option to CompileUnit's FindLineEntry API. llvm-svn: 140362
This commit is contained in:
@@ -98,6 +98,13 @@ SBCompileUnit::GetLineEntryAtIndex (uint32_t idx) const
|
||||
|
||||
uint32_t
|
||||
SBCompileUnit::FindLineEntryIndex (uint32_t start_idx, uint32_t line, SBFileSpec *inline_file_spec) const
|
||||
{
|
||||
const bool exact = true;
|
||||
return FindLineEntryIndex (start_idx, line, inline_file_spec, exact);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
SBCompileUnit::FindLineEntryIndex (uint32_t start_idx, uint32_t line, SBFileSpec *inline_file_spec, bool exact) const
|
||||
{
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
|
||||
|
||||
@@ -114,6 +121,7 @@ SBCompileUnit::FindLineEntryIndex (uint32_t start_idx, uint32_t line, SBFileSpec
|
||||
index = m_opaque_ptr->FindLineEntry (start_idx,
|
||||
line,
|
||||
inline_file_spec ? inline_file_spec->get() : NULL,
|
||||
exact,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user