diff options
author | Jason Molenda <jmolenda@apple.com> | 2015-08-20 03:05:09 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2015-08-20 03:05:09 +0000 |
commit | 5543abb0363c4228fd025de641e1535d29a17eae (patch) | |
tree | e345f735af33a1d799a357f79aebfffb46d4a51a /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 9fdce9adee2eddec41a254ac9da8fc422850cab0 (diff) | |
download | bcm5719-llvm-5543abb0363c4228fd025de641e1535d29a17eae.tar.gz bcm5719-llvm-5543abb0363c4228fd025de641e1535d29a17eae.zip |
When the target definition is unparseable, print an error message
to the user. e.g. specified via the
plugin.process.gdb-remote.target-definition-file
setting. Currently we silently ignore the target definition if
there is a parse error.
llvm-svn: 245536
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 16a966dba42..ed660238375 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -529,7 +529,14 @@ ProcessGDBRemote::BuildDynamicRegisterInfo (bool force) { // See if we can get register definitions from a python file 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()); + } } if (GetGDBServerRegisterInfo ()) |