- Add const keyword / casting to supress more stringient compiler warnings

- Move DynamicImage::Print() from dynamic_images.h to dynamic_images.cc



git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@170 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
waylonis 2007-05-19 00:41:39 +00:00
parent af3c43f00e
commit 32d4064736
5 changed files with 20 additions and 17 deletions

View file

@ -147,19 +147,8 @@ class DynamicImage {
}
// Debugging
void Print() {
char *path = GetFilePath();
if (!path) {
path = "(unknown)";
}
printf("%p: %s\n", GetLoadAddress(), path);
mach_header *header = GetMachHeader();
MachHeader(*header).Print();
printf("vmaddr\t\t: %p\n", reinterpret_cast<void*>(GetVMAddr()));
printf("vmsize\t\t: %d\n", GetVMSize());
printf("slide\t\t: %d\n", GetVMAddrSlide());
}
void Print();
private:
friend class DynamicImages;