mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-25 22:30:49 +08: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> (cherry picked from commit 371083179b7b3bc68dc8ff03ac235717805c78bd) Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5632884 Reviewed-by: Justin Cohen <justincohen@chromium.org>
This commit is contained in:
parent
6ce83d80f7
commit
dc2d082b92
@ -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