aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-03-17 13:55:24 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2022-03-17 15:13:48 -0700
commit74b45f91b8bf7231f76c5676c4bedc9a667012e8 (patch)
tree49ce47fff006d2b9e07ec7afaa677a99e084463b /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parentddb85f34f534ed74312ef91e4c1f8792ad8f08f0 (diff)
downloadllvm-74b45f91b8bf7231f76c5676c4bedc9a667012e8.zip
llvm-74b45f91b8bf7231f76c5676c4bedc9a667012e8.tar.gz
llvm-74b45f91b8bf7231f76c5676c4bedc9a667012e8.tar.bz2
[lldb] Migrate ProcessGDBRemote to ReportWarning
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index d8dc229..2e652e1 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -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();