[Lldb-commits] [lldb] r198718 - Fixed a bug where the expression parser doesn't

Sean Callanan scallanan at apple.com
Tue Jan 7 15:15:26 PST 2014


Author: spyffe
Date: Tue Jan  7 17:15:26 2014
New Revision: 198718

URL: http://llvm.org/viewvc/llvm-project?rev=198718&view=rev
Log:
Fixed a bug where the expression parser doesn't
materialize a variable in a register correctly
if the variable is a pointer.  This fixes a
regression introduced by my commit of Oct. 22nd
(r193191).

Modified:
    lldb/trunk/source/Expression/Materializer.cpp

Modified: lldb/trunk/source/Expression/Materializer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/Materializer.cpp?rev=198718&r1=198717&r2=198718&view=diff
==============================================================================
--- lldb/trunk/source/Expression/Materializer.cpp (original)
+++ lldb/trunk/source/Expression/Materializer.cpp Tue Jan  7 17:15:26 2014
@@ -461,7 +461,9 @@ public:
         }
         else
         {
-            lldb::addr_t addr_of_valobj = valobj_sp->GetAddressOf();
+            AddressType address_type = eAddressTypeInvalid;
+            const bool scalar_is_load_address = false;
+            lldb::addr_t addr_of_valobj = valobj_sp->GetAddressOf(scalar_is_load_address, &address_type);
             if (addr_of_valobj != LLDB_INVALID_ADDRESS)
             {
                 Error write_error;





More information about the lldb-commits mailing list