summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Target/ThreadPlanStepInRange.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lldb/source/Target/ThreadPlanStepInRange.cpp b/lldb/source/Target/ThreadPlanStepInRange.cpp
index 4fd8254971b..725d48d8e6a 100644
--- a/lldb/source/Target/ThreadPlanStepInRange.cpp
+++ b/lldb/source/Target/ThreadPlanStepInRange.cpp
@@ -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;
OpenPOWER on IntegriCloud