aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/handler/dynamic_images.h
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-06-04 22:57:09 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-06-04 22:57:09 +0000
commitd55398a492d56f7f136f20d65172cbf541e06b0b (patch)
tree099d4fd1c43ae1153d5eb5a9c8b970d638332bc0 /src/client/mac/handler/dynamic_images.h
parentSet the dump thread id and the requesting thread id properties of MDRawBreakp... (diff)
downloadbreakpad-d55398a492d56f7f136f20d65172cbf541e06b0b.tar.xz
Filter out duplicates from the image list when creating a minidump. See issue 266 for more details.
Reviewer = mmentovai git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@277 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/handler/dynamic_images.h')
-rw-r--r--src/client/mac/handler/dynamic_images.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/mac/handler/dynamic_images.h b/src/client/mac/handler/dynamic_images.h
index 5764280b..c9acf70a 100644
--- a/src/client/mac/handler/dynamic_images.h
+++ b/src/client/mac/handler/dynamic_images.h
@@ -230,6 +230,11 @@ class DynamicImageRef {
< (*const_cast<DynamicImageRef&>(inRef).p);
}
+ bool operator==(const DynamicImageRef &inInfo) const {
+ return (*const_cast<DynamicImageRef*>(this)->p).GetLoadAddress() ==
+ (*const_cast<DynamicImageRef&>(inInfo)).GetLoadAddress();
+ }
+
// Be just like DynamicImage*
DynamicImage *operator->() {return p;}
operator DynamicImage*() {return p;}