diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2013-09-28 16:01:26 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2013-09-28 16:01:26 +0000 |
commit | 789cefb83c944790dfd76ff3ce9724f777d56c1f (patch) | |
tree | 728de9b115b21aee21bf0e3bc298d26249684ea5 /lldb/source/Commands/CommandObjectRegister.cpp | |
parent | faa63ce2a2dd91ba8fe3dbff7f7b25b28e095c19 (diff) | |
download | bcm5719-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.cpp | 2 |
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); |