Skip to content

Commit 74b45f9

Browse files
committed
[lldb] Migrate ProcessGDBRemote to ReportWarning
1 parent ddb85f3 commit 74b45f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,13 @@ void ProcessGDBRemote::BuildDynamicRegisterInfo(bool force) {
410410
}
411411
if (target_definition_fspec) {
412412
// See if we can get register definitions from a python file
413-
if (ParsePythonTargetDefinition(target_definition_fspec)) {
413+
if (ParsePythonTargetDefinition(target_definition_fspec))
414414
return;
415-
} else {
416-
StreamSP stream_sp = GetTarget().GetDebugger().GetAsyncOutputStream();
417-
stream_sp->Printf("ERROR: target description file %s failed to parse.\n",
418-
target_definition_fspec.GetPath().c_str());
419-
}
415+
416+
Debugger::ReportError("target description file " +
417+
target_definition_fspec.GetPath() +
418+
" failed to parse",
419+
GetTarget().GetDebugger().GetID());
420420
}
421421

422422
const ArchSpec &target_arch = GetTarget().GetArchitecture();

0 commit comments

Comments
 (0)