mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-08 15:38:23 +01:00
- 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:
parent
af3c43f00e
commit
32d4064736
5 changed files with 20 additions and 17 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue