Lines Matching refs:sberror
77 lldb::SBError &sberror) { in StartProcessorTrace() argument
78 sberror.Clear(); in StartProcessorTrace()
79 CheckDebuggerID(sbprocess, sberror); in StartProcessorTrace()
80 if (!sberror.Success()) in StartProcessorTrace()
88 sberror.SetErrorStringWithFormat("SBTraceOptions::TraceType not set to " in StartProcessorTrace()
94 lldb::SBStructuredData sbstructdata = sbtraceoptions.getTraceParams(sberror); in StartProcessorTrace()
95 if (!sberror.Success()) in StartProcessorTrace()
102 sberror.SetErrorStringWithFormat( in StartProcessorTrace()
112 sberror.SetErrorStringWithFormat( in StartProcessorTrace()
120 sberror.SetErrorStringWithFormat( in StartProcessorTrace()
133 sberror.SetErrorStringWithFormat("%s; ProcessID = %" PRIu64, in StartProcessorTrace()
137 sberror.SetErrorStringWithFormat( in StartProcessorTrace()
151 lldb::SBError &sberror, lldb::tid_t tid) { in StopProcessorTrace() argument
152 sberror.Clear(); in StopProcessorTrace()
153 CheckDebuggerID(sbprocess, sberror); in StopProcessorTrace()
154 if (!sberror.Success()) { in StopProcessorTrace()
165 sberror.SetErrorStringWithFormat( in StopProcessorTrace()
194 sberror.SetErrorStringWithFormat( in StopProcessorTrace()
228 sberror.SetErrorStringWithFormat( in StopProcessorTrace()
240 sberror.SetErrorStringWithFormat( in StopProcessorTrace()
252 lldb::tid_t tid, lldb::SBError &sberror, in ReadTraceDataAndImageInfo() argument
264 sberror.SetErrorStringWithFormat("%s; ProcessID = %" PRIu64, in ReadTraceDataAndImageInfo()
270 sberror.SetErrorStringWithFormat("invalid TraceType received from LLDB " in ReadTraceDataAndImageInfo()
278 lldb::SBStructuredData sbstructdata = traceoptions.getTraceParams(sberror); in ReadTraceDataAndImageInfo()
279 if (!sberror.Success()) in ReadTraceDataAndImageInfo()
282 ParseCPUInfo(pt_cpu, sbstructdata, sberror); in ReadTraceDataAndImageInfo()
283 if (!sberror.Success()) in ReadTraceDataAndImageInfo()
291 sberror.SetErrorStringWithFormat( in ReadTraceDataAndImageInfo()
302 GetTargetModulesInfo(sbtarget, readExecuteSectionInfos, sberror); in ReadTraceDataAndImageInfo()
303 if (!sberror.Success()) in ReadTraceDataAndImageInfo()
308 lldb::SBError &sberror, in DecodeProcessorTrace() argument
319 readExecuteSectionInfos, sberror); in DecodeProcessorTrace()
320 if (!sberror.Success()) in DecodeProcessorTrace()
326 DecodeTrace(decoder, instruction_list, sberror); in DecodeProcessorTrace()
334 lldb::SBError &sberror) { in GetTargetModulesInfo() argument
336 sberror.SetErrorStringWithFormat("Can't get target's modules info from " in GetTargetModulesInfo()
343 sberror.SetErrorStringWithFormat("Target has an invalid file spec"); in GetTargetModulesInfo()
354 sberror.SetErrorStringWithFormat( in GetTargetModulesInfo()
363 sberror.SetErrorStringWithFormat( in GetTargetModulesInfo()
385 sberror.SetErrorStringWithFormat( in GetTargetModulesInfo()
398 sberror.SetErrorStringWithFormat( in GetTargetModulesInfo()
420 lldb::SBError &sberror) { in ParseCPUInfo() argument
423 sberror.SetErrorStringWithFormat("lldb couldn't provide cpuinfo"); in ParseCPUInfo()
438 sberror.SetErrorStringWithFormat( in ParseCPUInfo()
444 sberror.SetErrorStringWithFormat( in ParseCPUInfo()
454 sberror.SetErrorStringWithFormat( in ParseCPUInfo()
461 sberror.SetErrorStringWithFormat("invalid CPU model value extracted from " in ParseCPUInfo()
472 sberror.SetErrorStringWithFormat( in ParseCPUInfo()
480 sberror.SetErrorStringWithFormat("invalid CPU stepping value extracted " in ParseCPUInfo()
493 sberror.SetErrorStringWithFormat( in ParseCPUInfo()
512 lldb::SBError &sberror) const { in InitializePTInstDecoder()
514 sberror.SetErrorStringWithFormat("internal error"); in InitializePTInstDecoder()
523 sberror.SetErrorStringWithFormat("processor trace decoding library: " in InitializePTInstDecoder()
537 sberror.SetErrorStringWithFormat("processor trace decoding library: " in InitializePTInstDecoder()
546 sberror.SetErrorStringWithFormat("processor trace decoding library: " in InitializePTInstDecoder()
557 sberror.SetErrorStringWithFormat("processor trace decoding library: " in InitializePTInstDecoder()
569 lldb::SBError &sberror) { in AppendErrorWithOffsetToInstructionList() argument
570 sberror.SetErrorStringWithFormat( in AppendErrorWithOffsetToInstructionList()
574 instruction_list.emplace_back(sberror.GetCString()); in AppendErrorWithOffsetToInstructionList()
578 int errcode, Instructions &instruction_list, lldb::SBError &sberror) { in AppendErrorWithoutOffsetToInstructionList() argument
579 sberror.SetErrorStringWithFormat("processor trace decoding library: \"%s\"", in AppendErrorWithoutOffsetToInstructionList()
581 instruction_list.emplace_back(sberror.GetCString()); in AppendErrorWithoutOffsetToInstructionList()
586 lldb::SBError &sberror) { in AppendErrorToInstructionList() argument
591 sberror); in AppendErrorToInstructionList()
595 instruction_list, sberror); in AppendErrorToInstructionList()
601 lldb::SBError &sberror) { in HandlePTInstructionEvents() argument
612 errcode, decoder, instruction_list, sberror); in HandlePTInstructionEvents()
625 lldb::SBError &sberror) { in DecodeTrace() argument
644 sberror); in DecodeTrace()
648 sberror.SetErrorStringWithFormat( in DecodeTrace()
652 instruction_list.emplace_back(sberror.GetCString()); in DecodeTrace()
664 sberror.SetErrorStringWithFormat( in DecodeTrace()
667 instruction_list.emplace_back(sberror.GetCString()); in DecodeTrace()
676 instruction_list, sberror); in DecodeTrace()
683 sberror); in DecodeTrace()
686 errcode, decoder, instruction_list, sberror); in DecodeTrace()
701 Diagnose(decoder, errcode, sberror, &insn); in DecodeTrace()
702 instruction_list.emplace_back(sberror.GetCString()); in DecodeTrace()
714 lldb::SBError &sberror, const struct pt_insn *insn) { in Diagnose() argument
721 sberror.SetErrorStringWithFormat( in Diagnose()
726 sberror.SetErrorStringWithFormat( in Diagnose()
732 sberror.SetErrorStringWithFormat( in Diagnose()
736 sberror.SetErrorStringWithFormat( in Diagnose()
747 lldb::SBError &sberror) { in GetInstructionLogAtOffset() argument
748 sberror.Clear(); in GetInstructionLogAtOffset()
749 CheckDebuggerID(sbprocess, sberror); in GetInstructionLogAtOffset()
750 if (!sberror.Success()) { in GetInstructionLogAtOffset()
759 FetchAndDecode(sbprocess, tid, sberror, &threadTraceInfo); in GetInstructionLogAtOffset()
760 if (!sberror.Success()) { in GetInstructionLogAtOffset()
764 sberror.SetErrorStringWithFormat("internal error"); in GetInstructionLogAtOffset()
774 sberror.SetErrorStringWithFormat( in GetInstructionLogAtOffset()
796 lldb::SBError &sberror) { in GetProcessorTraceInfo() argument
797 sberror.Clear(); in GetProcessorTraceInfo()
798 CheckDebuggerID(sbprocess, sberror); in GetProcessorTraceInfo()
799 if (!sberror.Success()) { in GetProcessorTraceInfo()
808 FetchAndDecode(sbprocess, tid, sberror, &threadTraceInfo); in GetProcessorTraceInfo()
809 if (!sberror.Success()) { in GetProcessorTraceInfo()
813 sberror.SetErrorStringWithFormat("internal error"); in GetProcessorTraceInfo()
832 sberror.SetErrorStringWithFormat("%s; ProcessID = %" PRIu64, in GetProcessorTraceInfo()
838 sberror.SetErrorStringWithFormat("invalid TraceType received from LLDB " in GetProcessorTraceInfo()
847 lldb::SBStructuredData sbstructdata = traceoptions.getTraceParams(sberror); in GetProcessorTraceInfo()
848 if (!sberror.Success()) in GetProcessorTraceInfo()
855 lldb::SBError &sberror, in FetchAndDecode() argument
861 sberror.SetErrorStringWithFormat( in FetchAndDecode()
868 sberror.SetErrorStringWithFormat( in FetchAndDecode()
880 sberror.SetErrorStringWithFormat("internal error"); in FetchAndDecode()
899 sberror.SetErrorStringWithFormat( in FetchAndDecode()
913 ReadTraceDataAndImageInfo(sbprocess, tid, sberror, itr_thread->second); in FetchAndDecode()
914 if (!sberror.Success()) { in FetchAndDecode()
915 std::string error_string(sberror.GetCString()); in FetchAndDecode()
921 DecodeProcessorTrace(sbprocess, tid, sberror, itr_thread->second); in FetchAndDecode()
922 if (!sberror.Success()) { in FetchAndDecode()
931 lldb::SBError &sberror) { in CheckDebuggerID() argument
933 sberror.SetErrorStringWithFormat("invalid process instance"); in CheckDebuggerID()
939 sberror.SetErrorStringWithFormat( in CheckDebuggerID()
947 sberror.SetErrorStringWithFormat("process's target contains an invalid " in CheckDebuggerID()
954 sberror.SetErrorStringWithFormat( in CheckDebuggerID()