[Lldb-commits] [lldb] r219549 - Reinstate setting addr_width to the result of the computation,

Eric Christopher echristo at gmail.com
Fri Oct 10 17:04:42 PDT 2014


Author: echristo
Date: Fri Oct 10 19:04:42 2014
New Revision: 219549

URL: http://llvm.org/viewvc/llvm-project?rev=219549&view=rev
Log:
Reinstate setting addr_width to the result of the computation,
but in the conditional rather than at initialization time.

Modified:
    lldb/trunk/source/Core/Debugger.cpp

Modified: lldb/trunk/source/Core/Debugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=219549&r1=219548&r2=219549&view=diff
==============================================================================
--- lldb/trunk/source/Core/Debugger.cpp (original)
+++ lldb/trunk/source/Core/Debugger.cpp Fri Oct 10 19:04:42 2014
@@ -2734,7 +2734,7 @@ FormatPromptRecurse
                                         int addr_width = 0;
                                         if (exe_ctx && target)
                                         {
-                                            target->GetArchitecture().GetAddressByteSize() * 2;
+                                            addr_width = target->GetArchitecture().GetAddressByteSize() * 2;
                                         }
                                         if (addr_width == 0)
                                             addr_width = 16;





More information about the lldb-commits mailing list