[lldb] Migrate ProcessGDBRemote to ReportWarning

This commit is contained in:
Jonas Devlieghere 2022-03-17 13:55:24 -07:00
parent ddb85f34f5
commit 74b45f91b8
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D
1 changed files with 6 additions and 6 deletions

View File

@ -410,13 +410,13 @@ void ProcessGDBRemote::BuildDynamicRegisterInfo(bool force) {
}
if (target_definition_fspec) {
// See if we can get register definitions from a python file
if (ParsePythonTargetDefinition(target_definition_fspec)) {
if (ParsePythonTargetDefinition(target_definition_fspec))
return;
} else {
StreamSP stream_sp = GetTarget().GetDebugger().GetAsyncOutputStream();
stream_sp->Printf("ERROR: target description file %s failed to parse.\n",
target_definition_fspec.GetPath().c_str());
}
Debugger::ReportError("target description file " +
target_definition_fspec.GetPath() +
" failed to parse",
GetTarget().GetDebugger().GetID());
}
const ArchSpec &target_arch = GetTarget().GetArchitecture();