Lines Matching +defs:error +defs:target

64     Status error;
92 error = CreateOptionParsingError(option_arg, short_option, long_option,
98 error = CreateOptionParsingError(option_arg, short_option, long_option,
109 error = CreateOptionParsingError(option_arg, short_option, long_option,
116 error = CreateOptionParsingError(
122 error =
130 error = CreateOptionParsingError(option_arg, short_option, long_option,
145 error = CreateOptionParsingError(option_arg, short_option, long_option,
155 return error;
197 Status error;
209 return error;
266 Status error;
275 LLDB_INVALID_ADDRESS, &error);
289 error =
329 error = CreateOptionParsingError(option_arg, short_option,
346 error =
365 error =
372 error =
380 error =
395 error =
412 if (BreakpointID::StringIsBreakpointName(option_arg, error))
415 error = CreateOptionParsingError(
423 option_arg, 0, &error);
424 if (error.Success())
454 error =
468 error = CreateOptionParsingError(option_arg, short_option,
481 return error;
542 Target &target = GetSelectedOrDummyTarget(m_dummy_options.m_use_dummy);
588 if (!GetDefaultFile(target, file, result)) {
602 bp_sp = target.CreateBreakpoint(
618 bp_sp = target.CreateAddressInModuleBreakpoint(
621 bp_sp = target.CreateBreakpoint(m_options.m_load_addr, internal,
637 bp_sp = target.CreateBreakpoint(
663 bp_sp = target.CreateFuncRegexBreakpoint(
674 if (!GetDefaultFile(target, file, result)) {
690 bp_sp = target.CreateSourceRegexBreakpoint(
697 bp_sp = target.CreateExceptionBreakpoint(
705 target.RemoveBreakpointByID(bp_sp->GetID());
711 Status error;
712 bp_sp = target.CreateScriptedBreakpoint(
715 m_python_class_options.GetStructuredData(), &error);
716 if (error.Fail()) {
718 "Error setting extra exception arguments: %s", error.AsCString());
719 target.RemoveBreakpointByID(bp_sp->GetID());
734 target.AddNameToBreakpoint(bp_sp, name.c_str(), name_error);
738 target.RemoveBreakpointByID(bp_sp->GetID());
750 if (&target == &GetDummyTarget())
751 output_stream.Printf("Breakpoint set in dummy target, will get copied "
755 // get set before the target is set, but we won't know how to actually
769 bool GetDefaultFile(Target &target, FileSpec &file,
774 if (!target.GetSourceManager().GetDefaultFileAndLine(file, default_line)) {
842 Target &target = GetSelectedOrDummyTarget(m_dummy_opts.m_use_dummy);
845 target.GetBreakpointList().GetListMutex(lock);
850 command, &target, result, &valid_bp_ids,
860 target.GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
906 Target &target = GetSelectedOrDummyTarget();
909 target.GetBreakpointList().GetListMutex(lock);
911 const BreakpointList &breakpoints = target.GetBreakpointList();
922 target.EnableAllowedBreakpoints();
931 command, &target, result, &valid_bp_ids,
943 target.GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
1013 Target &target = GetSelectedOrDummyTarget();
1015 target.GetBreakpointList().GetListMutex(lock);
1017 const BreakpointList &breakpoints = target.GetBreakpointList();
1027 target.DisableAllowedBreakpoints();
1037 command, &target, result, &valid_bp_ids,
1049 target.GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
1105 Status error;
1128 return error;
1151 Target &target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
1154 target.GetBreakpointList(m_options.m_internal);
1156 target.GetBreakpointList(m_options.m_internal).GetListMutex(lock);
1182 command, &target, result, &valid_bp_ids,
1189 target.GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
1234 Status error;
1250 return error;
1270 Target &target = GetSelectedOrDummyTarget();
1282 target.GetBreakpointList().GetListMutex(lock);
1284 BreakpointList &breakpoints = target.GetBreakpointList();
1317 target.RemoveBreakpointByID(bp->GetID());
1378 Status error;
1398 return error;
1419 Target &target = GetSelectedOrDummyTarget(m_options.m_use_dummy);
1423 target.GetBreakpointList().GetListMutex(lock);
1425 BreakpointList &breakpoints = target.GetBreakpointList();
1442 target.RemoveAllowedBreakpoints();
1461 command, &target, result, &excluded_bp_ids,
1480 command, &target, result, &valid_bp_ids,
1495 target.GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();
1505 target.RemoveBreakpointByID(cur_bp_id.GetBreakpointID());
1537 Status error;
1543 if (BreakpointID::StringIsBreakpointName(option_arg, error) &&
1544 error.Success())
1549 error = CreateOptionParsingError(option_arg, short_option, long_option,
1554 error = CreateOptionParsingError(option_arg, short_option, long_option,
1564 return error;
1595 Status error;
1608 error = CreateOptionParsingError(option_arg, short_option, long_option,
1617 error = CreateOptionParsingError(option_arg, short_option, long_option,
1626 error = CreateOptionParsingError(option_arg, short_option, long_option,
1633 return error;
1679 Target &target = GetSelectedOrDummyTarget(false);
1682 target.GetBreakpointList().GetListMutex(lock);
1686 Status error;
1687 if (!BreakpointID::StringIsBreakpointName(entry.ref(), error)) {
1689 entry.c_str(), error.AsCString());
1694 // check the error:
1699 bp_sp = target.GetBreakpointByID(bp_id);
1707 Status error;
1710 BreakpointName *bp_name = target.FindBreakpointName(name, true, error);
1720 target.ConfigureBreakpointName(*bp_name, bp_sp->GetOptions(),
1723 target.ConfigureBreakpointName(*bp_name,
1766 Target &target =
1770 target.GetBreakpointList().GetListMutex(lock);
1772 const BreakpointList &breakpoints = target.GetBreakpointList();
1783 command, &target, result, &valid_bp_ids,
1793 Status error; // This error reports illegal names, but we've already
1799 target.AddNameToBreakpoint(bp_sp, bp_name, error);
1840 Target &target =
1844 target.GetBreakpointList().GetListMutex(lock);
1846 const BreakpointList &breakpoints = target.GetBreakpointList();
1857 command, &target, result, &valid_bp_ids,
1871 target.RemoveNameFromBreakpoint(bp_sp, bp_name);
1899 Target &target =
1904 target.GetBreakpointNames(name_list);
1917 Status error;
1919 target.FindBreakpointName(ConstString(name), false, error);
1928 target.GetBreakpointList().GetListMutex(lock);
1930 BreakpointList &breakpoints = target.GetBreakpointList();
2098 Status error;
2111 error = CreateOptionParsingError(option_arg, short_option,
2121 return error;
2159 Status error;
2161 StructuredData::ParseJSONFromFile(*file_spec, error);
2162 if (!error.Success())
2212 Target &target = GetSelectedOrDummyTarget();
2215 target.GetBreakpointList().GetListMutex(lock);
2220 Status error = target.CreateBreakpointsFromFile(input_spec,
2223 if (!error.Success()) {
2224 result.AppendError(error.AsCString());
2238 Breakpoint *bp = target.GetBreakpointList()
2288 Status error;
2302 return error;
2322 Target &target = GetSelectedOrDummyTarget();
2325 target.GetBreakpointList().GetListMutex(lock);
2330 command, &target, result, &valid_bp_ids,
2340 Status error = target.SerializeBreakpointsToFile(file_spec, valid_bp_ids,
2342 if (!error.Success()) {
2343 result.AppendErrorWithFormat("error serializing breakpoints: %s.",
2344 error.AsCString());
2412 Args &args, Target *target, bool allow_locations,
2429 if (target->GetLastCreatedBreakpoint()) {
2431 target->GetLastCreatedBreakpoint()->GetID(), LLDB_INVALID_BREAK_ID));
2447 args, target, allow_locations, purpose, temp_args)) {
2471 target->GetBreakpointByID(cur_bp_id.GetBreakpointID()).get();