summaryrefslogtreecommitdiffstats
path: root/src/PEImage.h
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-03-03 08:15:49 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-03-03 08:15:49 (GMT)
commit6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49 (patch)
tree9858da29076fa52e2fda1f9ab8ad16d86a40a047 /src/PEImage.h
parent839d6ecd6402d7e0f29ef02c4a25ef6904c23f38 (diff)
downloadcv2pdb-6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49.zip
cv2pdb-6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49.tar.gz
cv2pdb-6f47f877b7b29c6fe8169a5dd7bced5fd68e9b49.tar.bz2
tabify
Diffstat (limited to 'src/PEImage.h')
-rw-r--r--src/PEImage.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/PEImage.h b/src/PEImage.h
index f3c5511..a2009aa 100644
--- a/src/PEImage.h
+++ b/src/PEImage.h
@@ -50,7 +50,7 @@ public:
for (int i = 0; i < hdr->FileHeader.NumberOfSections; i++)
{
if (rva >= sec[i].VirtualAddress &&
- rva + len <= sec[i].VirtualAddress + sec[i].SizeOfRawData)
+ rva + len <= sec[i].VirtualAddress + sec[i].SizeOfRawData)
return DPV<P>(sec[i].PointerToRawData + rva - sec[i].VirtualAddress, len);
}
return 0;
@@ -63,8 +63,8 @@ public:
bool initCVPtr(bool initDbgDir);
bool initDWARFPtr(bool initDbgDir);
- bool hasDWARF() const { return debug_line != 0; }
- bool isX64() const { return hdr64 != 0; }
+ bool hasDWARF() const { return debug_line != 0; }
+ bool isX64() const { return hdr64 != 0; }
int countCVEntries() const;
OMFDirEntry* getCVEntry(int i) const;
@@ -75,18 +75,18 @@ public:
static void* alloc_aligned(unsigned int size, unsigned int align, unsigned int alignoff = 0);
static void free_aligned(void* p);
- int countSections() const { return IMGHDR(FileHeader.NumberOfSections); }
- int findSection(unsigned int off) const;
- int findSymbol(const char* name, unsigned long& off) const;
- const IMAGE_SECTION_HEADER& getSection(int s) const { return sec[s]; }
- unsigned long long getImageBase() const { return IMGHDR(OptionalHeader.ImageBase); }
+ int countSections() const { return IMGHDR(FileHeader.NumberOfSections); }
+ int findSection(unsigned int off) const;
+ int findSymbol(const char* name, unsigned long& off) const;
+ const IMAGE_SECTION_HEADER& getSection(int s) const { return sec[s]; }
+ unsigned long long getImageBase() const { return IMGHDR(OptionalHeader.ImageBase); }
private:
int fd;
void* dump_base;
int dump_total_len;
- // codeview
+ // codeview
IMAGE_DOS_HEADER *dos;
IMAGE_NT_HEADERS32* hdr32;
IMAGE_NT_HEADERS64* hdr64;
@@ -96,20 +96,20 @@ private:
OMFDirEntry* dirEntry;
public:
- //dwarf
- char* debug_aranges;
- char* debug_pubnames;
- char* debug_pubtypes;
- char* debug_info; unsigned long debug_info_length;
- char* debug_abbrev; unsigned long debug_abbrev_length;
- char* debug_line; unsigned long debug_line_length;
- char* debug_frame;
- char* debug_str;
- char* debug_loc;
- char* debug_ranges; unsigned long debug_ranges_length;
- char* reloc; unsigned long reloc_length;
-
- int codeSegment;
+ //dwarf
+ char* debug_aranges;
+ char* debug_pubnames;
+ char* debug_pubtypes;
+ char* debug_info; unsigned long debug_info_length;
+ char* debug_abbrev; unsigned long debug_abbrev_length;
+ char* debug_line; unsigned long debug_line_length;
+ char* debug_frame;
+ char* debug_str;
+ char* debug_loc;
+ char* debug_ranges; unsigned long debug_ranges_length;
+ char* reloc; unsigned long reloc_length;
+
+ int codeSegment;
int cv_base;
};