diff options
author | sagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8> | 2012-02-15 07:11:27 (GMT) |
---|---|---|
committer | sagitario <sagitario@fc51e93f-b9fe-4711-8d8d-3ae870c5f7d8> | 2012-02-15 07:11:27 (GMT) |
commit | 839d6ecd6402d7e0f29ef02c4a25ef6904c23f38 (patch) | |
tree | 31a21b843e44b8ebd102a2e3c2143e613ddb7994 /src/PEImage.h | |
parent | 96e6e9fa7388b010f55cf8d122ef03a2a8ab87e4 (diff) | |
download | cv2pdb-839d6ecd6402d7e0f29ef02c4a25ef6904c23f38.zip cv2pdb-839d6ecd6402d7e0f29ef02c4a25ef6904c23f38.tar.gz cv2pdb-839d6ecd6402d7e0f29ef02c4a25ef6904c23f38.tar.bz2 |
DWARF TLS support
Diffstat (limited to 'src/PEImage.h')
-rw-r--r-- | src/PEImage.h | 9 |
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); }
|