summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectRegister.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2013-09-28 16:01:26 +0000
committerSylvestre Ledru <sylvestre@debian.org>2013-09-28 16:01:26 +0000
commit789cefb83c944790dfd76ff3ce9724f777d56c1f (patch)
tree728de9b115b21aee21bf0e3bc298d26249684ea5 /lldb/source/Commands/CommandObjectRegister.cpp
parentfaa63ce2a2dd91ba8fe3dbff7f7b25b28e095c19 (diff)
downloadbcm5719-llvm-789cefb83c944790dfd76ff3ce9724f777d56c1f.tar.gz
bcm5719-llvm-789cefb83c944790dfd76ff3ce9724f777d56c1f.zip
Display the errno error message instead of the id
llvm-svn: 191621
Diffstat (limited to 'lldb/source/Commands/CommandObjectRegister.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectRegister.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectRegister.cpp b/lldb/source/Commands/CommandObjectRegister.cpp
index 1cd6452b2f5..fd54ecceb9c 100644
--- a/lldb/source/Commands/CommandObjectRegister.cpp
+++ b/lldb/source/Commands/CommandObjectRegister.cpp
@@ -192,7 +192,7 @@ protected:
if (!DumpRegisterSet (m_exe_ctx, strm, reg_ctx, set_idx))
{
if (errno)
- result.AppendErrorWithFormat ("register read failed with errno: %d\n", errno);
+ result.AppendErrorWithFormat ("register read failed: %s\n", strerror(errno));
else
result.AppendError ("unknown error while reading registers.\n");
result.SetStatus (eReturnStatusFailed);
OpenPOWER on IntegriCloud