Lines Matching +defs:error +defs:target
42 static bool CheckTargetForWatchpointOperations(Target *target,
45 target->GetProcessSP() && target->GetProcessSP()->IsAlive();
70 Target *target, Args &args, std::vector<uint32_t> &wp_ids) {
73 if (target == nullptr)
75 WatchpointSP watch_sp = target->GetLastCreatedWatchpoint();
105 // there is any error, return false and the client should ignore wp_ids.
113 // returns true to signify error while parsing.
136 // It is an error if after the loop, we're still in_range.
171 Status error;
188 return error;
206 Target *target = &GetSelectedTarget();
208 if (target->GetProcessSP() && target->GetProcessSP()->IsAlive()) {
210 target->GetProcessSP()->GetWatchpointSlotCount();
218 const WatchpointList &watchpoints = target->GetWatchpointList();
221 target->GetWatchpointList().GetListMutex(lock);
245 target, command, wp_ids)) {
289 Target *target = &GetSelectedTarget();
290 if (!CheckTargetForWatchpointOperations(target, result))
294 target->GetWatchpointList().GetListMutex(lock);
296 const WatchpointList &watchpoints = target->GetWatchpointList();
307 target->EnableAllWatchpoints();
316 target, command, wp_ids)) {
324 if (target->EnableWatchpointByID(wp_ids[i]))
358 Target *target = &GetSelectedTarget();
359 if (!CheckTargetForWatchpointOperations(target, result))
363 target->GetWatchpointList().GetListMutex(lock);
365 const WatchpointList &watchpoints = target->GetWatchpointList();
375 if (target->DisableAllWatchpoints()) {
387 target, command, wp_ids)) {
395 if (target->DisableWatchpointByID(wp_ids[i]))
467 Target *target = &GetSelectedTarget();
468 if (!CheckTargetForWatchpointOperations(target, result))
472 target->GetWatchpointList().GetListMutex(lock);
474 const WatchpointList &watchpoints = target->GetWatchpointList();
490 target->RemoveAllWatchpoints();
501 if (!CommandObjectMultiwordWatchpoint::VerifyWatchpointIDs(target, command,
510 if (target->RemoveWatchpointByID(wp_ids[i]))
556 Status error;
562 error.SetErrorStringWithFormat("invalid ignore count '%s'",
569 return error;
587 Target *target = &GetSelectedTarget();
588 if (!CheckTargetForWatchpointOperations(target, result))
592 target->GetWatchpointList().GetListMutex(lock);
594 const WatchpointList &watchpoints = target->GetWatchpointList();
604 target->IgnoreAllWatchpoints(m_options.m_ignore_count);
613 target, command, wp_ids)) {
621 if (target->IgnoreWatchpointByID(wp_ids[i], m_options.m_ignore_count))
674 Status error;
686 return error;
706 Target *target = &GetSelectedTarget();
707 if (!CheckTargetForWatchpointOperations(target, result))
711 target->GetWatchpointList().GetListMutex(lock);
713 const WatchpointList &watchpoints = target->GetWatchpointList();
723 WatchpointSP watch_sp = target->GetLastCreatedWatchpoint();
730 target, command, wp_ids)) {
799 Target *target = static_cast<Target *>(baton);
800 if (target)
801 target->GetImages().FindGlobalVariables(ConstString(name), UINT32_MAX,
807 Target *target = GetDebugger().GetSelectedTarget().get();
810 // If no argument is present, issue an error message. There's no way to
839 Status error;
845 var_sp, error);
853 Status error(Variable::GetValuesForVariableExpressionPath(
855 m_exe_ctx.GetBestExecutionContextScope(), GetVariableCallback, target,
876 const char *error_cstr = error.AsCString(nullptr);
905 error.Clear();
907 target->CreateWatchpoint(addr, size, &compiler_type, watch_type, error);
913 if (const char *error_message = error.AsCString(nullptr))
954 "If no '-s' option is specified, it defaults to the target's "
994 Target *target = GetDebugger().GetSelectedTarget().get();
1006 // If no argument is present, issue an error message. There's no way to
1037 target->EvaluateExpression(expr, frame, valobj_sp, options);
1057 size = target->GetArchitecture().GetAddressByteSize();
1096 Status error;
1098 target->CreateWatchpoint(addr, size, &compiler_type, watch_type, error);
1110 if (error.AsCString(nullptr))
1111 result.AppendError(error.AsCString());