fix ci warnings in dbg

This commit is contained in:
harshvardhangupta 2021-07-15 14:19:10 -04:00
parent 697c924089
commit 71f92a5b6d
2 changed files with 3 additions and 1 deletions

View File

@ -980,7 +980,8 @@ bool DebugServices::IsWatchPointNodeInput(const std::string &w_name, const CNode
auto input_kernel = kernel->input(j + 1);
std::string input_kernel_name = GetKernelNodeName(input_kernel);
auto found = w_name.find_last_of('/');
if (found != std::string::npos && w_name.substr(found + 1) == input_kernel_name) return true;
if (found != std::string::npos && w_name.size() > found && w_name.substr(found + 1) == input_kernel_name)
return true;
}
return false;
} else {

View File

@ -69,6 +69,7 @@ Debugger::Debugger()
device_target_(""),
num_step_(0),
debugger_enabled_(false),
suspended_at_last_kernel_(false),
run_level_(""),
node_name_(""),
cur_name_(""),