summaryrefslogtreecommitdiffstats
path: root/src/PEImage.h
diff options
context:
space:
mode:
authorsagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-02-15 07:11:27 (GMT)
committersagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8>2012-02-15 07:11:27 (GMT)
commit839d6ecd6402d7e0f29ef02c4a25ef6904c23f38 (patch)
tree31a21b843e44b8ebd102a2e3c2143e613ddb7994 /src/PEImage.h
parent96e6e9fa7388b010f55cf8d122ef03a2a8ab87e4 (diff)
downloadcv2pdb-839d6ecd6402d7e0f29ef02c4a25ef6904c23f38.zip
cv2pdb-839d6ecd6402d7e0f29ef02c4a25ef6904c23f38.tar.gz
cv2pdb-839d6ecd6402d7e0f29ef02c4a25ef6904c23f38.tar.bz2
DWARF TLS support
Diffstat (limited to 'src/PEImage.h')
-rw-r--r--src/PEImage.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/PEImage.h b/src/PEImage.h
index 4eac1dc..f3c5511 100644
--- a/src/PEImage.h
+++ b/src/PEImage.h
@@ -22,21 +22,21 @@ public:
PEImage(const char* iname = 0);
~PEImage();
- template<class P> P* DP(int off)
+ template<class P> P* DP(int off) const
{
return (P*) ((char*) dump_base + off);
}
- template<class P> P* DPV(int off, int size)
+ template<class P> P* DPV(int off, int size) const
{
if(off < 0 || off + size > dump_total_len)
return 0;
return (P*) ((char*) dump_base + off);
}
- template<class P> P* DPV(int off)
+ template<class P> P* DPV(int off) const
{
return DPV<P>(off, sizeof(P));
}
- template<class P> P* CVP(int off)
+ template<class P> P* CVP(int off) const
{
return DPV<P>(cv_base + off, sizeof(P));
}
@@ -77,6 +77,7 @@ public:
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); }