[Lldb-commits] [lldb] r191621 - Display the errno error message instead of the id

Sylvestre Ledru sylvestre at debian.org
Sat Sep 28 09:01:26 PDT 2013


Author: sylvestre
Date: Sat Sep 28 11:01:26 2013
New Revision: 191621

URL: http://llvm.org/viewvc/llvm-project?rev=191621&view=rev
Log:
Display the errno error message instead of the id

Modified:
    lldb/trunk/source/Commands/CommandObjectRegister.cpp

Modified: lldb/trunk/source/Commands/CommandObjectRegister.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectRegister.cpp?rev=191621&r1=191620&r2=191621&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectRegister.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectRegister.cpp Sat Sep 28 11:01:26 2013
@@ -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);





More information about the lldb-commits mailing list