mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
ios: Use correct address when storing register memory.
The memory region data saved in the intermediate dump is an address offset by 128 bytes. However, the MemorySnapshot generated was using the original address and not the offset address. The same data is being captured in the minidump. Change-Id: Ia34912c035319e79cf446a130e662084f4ab51ea Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5529059 Commit-Queue: Justin Cohen <justincohen@chromium.org> Reviewed-by: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Rohit Rao <rohitrao@chromium.org>
This commit is contained in:
parent
8e60a935d9
commit
371083179b
@ -415,7 +415,7 @@ void MaybeCaptureMemoryAround(IOSIntermediateDumpWriter* writer,
|
||||
|
||||
IOSIntermediateDumpWriter::ScopedArrayMap memory_region(writer);
|
||||
WriteProperty(
|
||||
writer, IntermediateDumpKey::kThreadContextMemoryRegionAddress, &address);
|
||||
writer, IntermediateDumpKey::kThreadContextMemoryRegionAddress, &target);
|
||||
// Don't use WritePropertyBytes, this one will fail regularly if |target|
|
||||
// cannot be read.
|
||||
writer->AddPropertyBytes(IntermediateDumpKey::kThreadContextMemoryRegionData,
|
||||
|
Loading…
x
Reference in New Issue
Block a user