aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/handler/dynamic_images.cc
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-05-05 18:20:04 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-05-05 18:20:04 +0000
commit47df365bf8ecaa31da752f2e61fc8257238544b2 (patch)
tree3ef9ebeb19c2e3ff96052a322a7836fd86f2812e /src/client/mac/handler/dynamic_images.cc
parentStyle changes (diff)
downloadbreakpad-47df365bf8ecaa31da752f2e61fc8257238544b2.tar.xz
Issue 261/262: 64-bit bug fix when iterating through load commands of a 64-bit binary, and added new test case for ReadImageInfoForTask
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@266 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/handler/dynamic_images.cc')
-rw-r--r--src/client/mac/handler/dynamic_images.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/mac/handler/dynamic_images.cc b/src/client/mac/handler/dynamic_images.cc
index 1019fe22..9f5e0fc9 100644
--- a/src/client/mac/handler/dynamic_images.cc
+++ b/src/client/mac/handler/dynamic_images.cc
@@ -210,7 +210,11 @@ void DynamicImage::CalculateMemoryInfo() {
reinterpret_cast<const struct load_command *>(header + 1);
for (unsigned int i = 0; cmd && (i < header->ncmds); ++i) {
+#ifdef __LP64__
+ if (cmd->cmd == LC_SEGMENT_64) {
+#else
if (cmd->cmd == LC_SEGMENT) {
+#endif
const breakpad_mach_segment_command *seg =
reinterpret_cast<const breakpad_mach_segment_command *>(cmd);