@@ -52,7 +52,7 @@ CBinaryFile::CBinaryFile(unsigned long ulAddr, unsigned long ulSize)
52
52
m_ulSize = ulSize;
53
53
}
54
54
55
- CPointer* CBinaryFile::find_signature (object oSignature)
55
+ CPointer* CBinaryFile::FindSignature (object oSignature)
56
56
{
57
57
// This is required because there's no straight way to get a string from a python
58
58
// object from boost (without using the stl).
@@ -101,7 +101,7 @@ CPointer* CBinaryFile::find_signature(object oSignature)
101
101
return new CPointer ();
102
102
}
103
103
104
- CPointer* CBinaryFile::find_symbol (char * szSymbol)
104
+ CPointer* CBinaryFile::FindSymbol (char * szSymbol)
105
105
{
106
106
#ifdef _WIN32
107
107
return new CPointer ((unsigned long ) GetProcAddress ((HMODULE) m_ulAddr, szSymbol));
@@ -207,24 +207,24 @@ CPointer* CBinaryFile::find_symbol(char* szSymbol)
207
207
return new CPointer ((unsigned long ) sym_addr);
208
208
209
209
#else
210
- #error "BinaryFile::find_symbol () is not implemented on this OS"
210
+ #error "BinaryFile::FindSymbol () is not implemented on this OS"
211
211
#endif
212
212
}
213
213
214
- CPointer* CBinaryFile::find_pointer (object oIdentifier, int iOffset)
214
+ CPointer* CBinaryFile::FindPointer (object oIdentifier, int iOffset)
215
215
{
216
- CPointer* ptr = find_address (oIdentifier);
217
- return ptr->is_valid () ? ptr->get_ptr (iOffset) : ptr;
216
+ CPointer* ptr = FindAddress (oIdentifier);
217
+ return ptr->IsValid () ? ptr->GetPtr (iOffset) : ptr;
218
218
}
219
219
220
- CPointer* CBinaryFile::find_address (object oIdentifier)
220
+ CPointer* CBinaryFile::FindAddress (object oIdentifier)
221
221
{
222
222
#ifdef _WIN32
223
223
if (CheckClassname (oIdentifier, " bytes" ))
224
- return find_signature (oIdentifier);
224
+ return FindSignature (oIdentifier);
225
225
#endif
226
226
227
- return find_symbol (extract<char *>(oIdentifier));
227
+ return FindSymbol (extract<char *>(oIdentifier));
228
228
}
229
229
230
230
// -----------------------------------------------------------------------------
@@ -241,7 +241,7 @@ bool str_ends_with(const char *szString, const char *szSuffix)
241
241
return strncmp (szString + stringlen - suffixlen, szSuffix, suffixlen) == 0 ;
242
242
}
243
243
244
- CBinaryFile* CBinaryManager::find_binary (char * szPath, bool bSrvCheck /* = true */ )
244
+ CBinaryFile* CBinaryManager::FindBinary (char * szPath, bool bSrvCheck /* = true */ )
245
245
{
246
246
std::string szBinaryPath = szPath;
247
247
#ifdef __linux__
@@ -266,7 +266,7 @@ CBinaryFile* CBinaryManager::find_binary(char* szPath, bool bSrvCheck /* = true
266
266
for (std::list<CBinaryFile *>::iterator iter=m_Binaries.begin (); iter != m_Binaries.end (); iter++)
267
267
{
268
268
CBinaryFile* binary = *iter;
269
- if (binary->get_address () == ulAddr)
269
+ if (binary->m_ulAddr == ulAddr)
270
270
{
271
271
// We don't need to open it several times
272
272
dlFreeLibrary ((DLLib *) ulAddr);
@@ -292,7 +292,7 @@ CBinaryFile* CBinaryManager::find_binary(char* szPath, bool bSrvCheck /* = true
292
292
ulSize = buf.st_size ;
293
293
294
294
#else
295
- #error "BinaryManager::find_binary () is not implemented on this OS"
295
+ #error "BinaryManager::FindBinary () is not implemented on this OS"
296
296
#endif
297
297
298
298
// Create a new Binary object and add it to the list
@@ -304,7 +304,7 @@ CBinaryFile* CBinaryManager::find_binary(char* szPath, bool bSrvCheck /* = true
304
304
// -----------------------------------------------------------------------------
305
305
// Functions
306
306
// -----------------------------------------------------------------------------
307
- CBinaryFile* find_binary (char * szPath, bool bSrvCheck /* = true */ )
307
+ CBinaryFile* FindBinary (char * szPath, bool bSrvCheck /* = true */ )
308
308
{
309
- return s_pBinaryManager->find_binary (szPath, bSrvCheck);
309
+ return s_pBinaryManager->FindBinary (szPath, bSrvCheck);
310
310
}
0 commit comments