summaryrefslogtreecommitdiffstats
path: root/src/PEImage.h
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2009-06-06 15:16:25 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2009-06-06 15:16:25 (GMT)
commit75930c8588ebf9f5eb77d5e49b7b7e6e33c2c15a (patch)
tree79d0064b694da77fbc9a44a256ba1333513e1466 /src/PEImage.h
parent5f8ec64d826f844ccc5e5f5b8767545e305a6e81 (diff)
downloadcv2pdb-75930c8588ebf9f5eb77d5e49b7b7e6e33c2c15a.zip
cv2pdb-75930c8588ebf9f5eb77d5e49b7b7e6e33c2c15a.tar.gz
cv2pdb-75930c8588ebf9f5eb77d5e49b7b7e6e33c2c15a.tar.bz2
v0.5:
* fixed error in __viewhelper field of string type, that could screw up type info * added support for wstring and dstring * fixed problems with debug info inside library by combining debug info of different modules into a single pseudo-module * now also replaces '.' by '@' in enumerator types for more consistent debug info
Diffstat (limited to 'src/PEImage.h')
-rw-r--r--src/PEImage.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PEImage.h b/src/PEImage.h
index df50395..039d2a1 100644
--- a/src/PEImage.h
+++ b/src/PEImage.h
@@ -48,7 +48,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,6 +63,8 @@ public:
int countCVEntries() const;
OMFDirEntry* getCVEntry(int i) const;
+ int getCVSize() const { return dbgDir->SizeOfData; }
+
// utilities
static void* alloc_aligned(unsigned int size, unsigned int align, unsigned int alignoff = 0);
static void free_aligned(void* p);