forked from OSchip/llvm-project
Make the setting for "target.process.thread.step-avoid-regexp" work for inlined functions, not just concrete top level functions.
llvm-svn: 160151
This commit is contained in:
parent
d59fd74eec
commit
4592cbc473
|
@ -242,13 +242,12 @@ ThreadPlanStepInRange::FrameMatchesAvoidRegexp ()
|
|||
|
||||
if (avoid_regexp_to_use != NULL)
|
||||
{
|
||||
SymbolContext sc = frame->GetSymbolContext(eSymbolContextSymbol);
|
||||
SymbolContext sc = frame->GetSymbolContext(eSymbolContextFunction|eSymbolContextBlock|eSymbolContextSymbol);
|
||||
if (sc.symbol != NULL)
|
||||
{
|
||||
const char *unnamed_symbol = "<UNKNOWN>";
|
||||
const char *sym_name = sc.symbol->GetMangled().GetName().AsCString(unnamed_symbol);
|
||||
if (strcmp (sym_name, unnamed_symbol) != 0)
|
||||
return avoid_regexp_to_use->Execute(sym_name);
|
||||
const char *frame_function_name = sc.GetFunctionName().GetCString();
|
||||
if (frame_function_name)
|
||||
return avoid_regexp_to_use->Execute(frame_function_name);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue