summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/ThreadPlanStepInRange.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-03-14 22:00:18 +0000
committerJim Ingham <jingham@apple.com>2013-03-14 22:00:18 +0000
commitcf2667c46e25b781a625f81d8a260d6a3ddec180 (patch)
tree7e20840bf65a3e5ab8b4393f61fccb5fc07b112c /lldb/source/Target/ThreadPlanStepInRange.cpp
parent616bef4ad164a0ddde9d26533514f5ab305915da (diff)
downloadbcm5719-llvm-cf2667c46e25b781a625f81d8a260d6a3ddec180.tar.gz
bcm5719-llvm-cf2667c46e25b781a625f81d8a260d6a3ddec180.zip
Log the match substring as well in the case where we match the step-avoid regexp.
llvm-svn: 177119
Diffstat (limited to 'lldb/source/Target/ThreadPlanStepInRange.cpp')
-rw-r--r--lldb/source/Target/ThreadPlanStepInRange.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/lldb/source/Target/ThreadPlanStepInRange.cpp b/lldb/source/Target/ThreadPlanStepInRange.cpp
index c21eb690cd1..9c09d070a54 100644
--- a/lldb/source/Target/ThreadPlanStepInRange.cpp
+++ b/lldb/source/Target/ThreadPlanStepInRange.cpp
@@ -275,14 +275,22 @@ ThreadPlanStepInRange::FrameMatchesAvoidRegexp ()
const char *frame_function_name = sc.GetFunctionName().GetCString();
if (frame_function_name)
{
- bool return_value = avoid_regexp_to_use->Execute(frame_function_name);
+ size_t num_matches = 0;
+ LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
+ if (log)
+ num_matches = 1;
+ bool return_value = avoid_regexp_to_use->Execute(frame_function_name, num_matches);
if (return_value)
{
- LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_STEP));
if (log)
- log->Printf ("Stepping out of function %s because it matches the avoid regexp \"%s\".",
+ {
+ std::string match;
+ avoid_regexp_to_use->GetMatchAtIndex(frame_function_name,0, match);
+ log->Printf ("Stepping out of function \"%s\" because it matches the avoid regexp \"%s\" - match substring: \"%s\".",
frame_function_name,
- avoid_regexp_to_use->GetText());
+ avoid_regexp_to_use->GetText(),
+ match.c_str());
+ }
}
return return_value;
OpenPOWER on IntegriCloud