[Lldb-commits] [lldb] r189062 - add register name to UnwindLog error message

Michael Sartain mikesart at valvesoftware.com
Thu Aug 22 14:00:35 PDT 2013


Author: mikesart
Date: Thu Aug 22 16:00:35 2013
New Revision: 189062

URL: http://llvm.org/viewvc/llvm-project?rev=189062&view=rev
Log:
add register name to UnwindLog error message

Modified:
    lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp?rev=189062&r1=189061&r2=189062&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/RegisterContextLLDB.cpp Thu Aug 22 16:00:35 2013
@@ -1101,7 +1101,8 @@ RegisterContextLLDB::SavedLocationForReg
             const RegisterInfo *reg_info = GetRegisterInfoAtIndex(lldb_regnum);
             if (reg_info && abi->RegisterIsVolatile (reg_info))
             {
-                UnwindLogMsg ("did not supply reg location for %d because it is volatile", lldb_regnum);
+                UnwindLogMsg ("did not supply reg location for %d (%s) because it is volatile",
+                    lldb_regnum, reg_info->name ? reg_info->name : "??");
                 return UnwindLLDB::RegisterSearchResult::eRegisterIsVolatile;
             }
         }





More information about the lldb-commits mailing list