[Lldb-commits] [lldb] r177779 - Fix a little fallout from the changes in r174757 where we would

Jason Molenda jmolenda at apple.com
Fri Mar 22 17:04:02 PDT 2013


Author: jmolenda
Date: Fri Mar 22 19:04:02 2013
New Revision: 177779

URL: http://llvm.org/viewvc/llvm-project?rev=177779&view=rev
Log:
Fix a little fallout from the changes in r174757 where we would
skip every other float/double/long double as we extracted data
from a buffer.
<rdar://problem/13485062>

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

Modified: lldb/trunk/source/Core/DataExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/DataExtractor.cpp?rev=177779&r1=177778&r2=177779&view=diff
==============================================================================
--- lldb/trunk/source/Core/DataExtractor.cpp (original)
+++ lldb/trunk/source/Core/DataExtractor.cpp Fri Mar 22 19:04:02 2013
@@ -740,9 +740,6 @@ DataExtractor::GetFloat (offset_t *offse
         {
             val = *src;
         }
-
-        // Advance the offset
-        *offset_ptr += sizeof(val);
     }
     return val;
 }
@@ -767,9 +764,6 @@ DataExtractor::GetDouble (offset_t *offs
         {
             val = *src;
         }
-        
-        // Advance the offset
-        *offset_ptr += sizeof(val);
     }
     return val;
 }
@@ -795,9 +789,6 @@ DataExtractor::GetLongDouble (offset_t *
         {
             val = *src;
         }
-        
-        // Advance the offset
-        *offset_ptr += sizeof(val);
     }
     return val;
 }





More information about the lldb-commits mailing list