[Lldb-commits] [lldb] r282754 - Fix an issue where, in i386 mode, the wrong values were being copied into the pair object for a single-entry NSDictionary
Enrico Granata via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 29 12:46:48 PDT 2016
Author: enrico
Date: Thu Sep 29 14:46:48 2016
New Revision: 282754
URL: http://llvm.org/viewvc/llvm-project?rev=282754&view=rev
Log:
Fix an issue where, in i386 mode, the wrong values were being copied into the pair object for a single-entry NSDictionary
Fixes rdar://28502335
Modified:
lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp
Modified: lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp?rev=282754&r1=282753&r2=282754&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp (original)
+++ lldb/trunk/source/Plugins/Language/ObjC/NSDictionary.cpp Thu Sep 29 14:46:48 2016
@@ -573,8 +573,8 @@ lldb_private::formatters::NSDictionary1S
*(data_ptr + 1) = value_at_idx;
} else {
uint32_t *data_ptr = (uint32_t *)buffer_sp->GetBytes();
- *data_ptr = key_ptr;
- *(data_ptr + 1) = value_ptr;
+ *data_ptr = key_at_idx;
+ *(data_ptr + 1) = value_at_idx;
}
DataExtractor data(buffer_sp, process_sp->GetByteOrder(), ptr_size);
More information about the lldb-commits
mailing list