dbghelp: Renamed pe_load_module (resp pe_load_module_from_pcs)
to pe_load_native_module (resp pe_load_builtin_module) to better describe what those functions actually do.
This commit is contained in:
parent
a6fd78d9a3
commit
9a0e666733
|
@ -478,11 +478,11 @@ extern BOOL pdb_fetch_file_info(struct pdb_lookup* pdb_lookup);
|
||||||
/* pe_module.c */
|
/* pe_module.c */
|
||||||
extern BOOL pe_load_nt_header(HANDLE hProc, DWORD base, IMAGE_NT_HEADERS* nth);
|
extern BOOL pe_load_nt_header(HANDLE hProc, DWORD base, IMAGE_NT_HEADERS* nth);
|
||||||
extern struct module*
|
extern struct module*
|
||||||
pe_load_module(struct process* pcs, const WCHAR* name,
|
pe_load_native_module(struct process* pcs, const WCHAR* name,
|
||||||
HANDLE hFile, DWORD base, DWORD size);
|
HANDLE hFile, DWORD base, DWORD size);
|
||||||
extern struct module*
|
extern struct module*
|
||||||
pe_load_module_from_pcs(struct process* pcs, const WCHAR* name,
|
pe_load_builtin_module(struct process* pcs, const WCHAR* name,
|
||||||
DWORD base, DWORD size);
|
DWORD base, DWORD size);
|
||||||
extern BOOL pe_load_debug_info(const struct process* pcs,
|
extern BOOL pe_load_debug_info(const struct process* pcs,
|
||||||
struct module* module);
|
struct module* module);
|
||||||
/* source.c */
|
/* source.c */
|
||||||
|
|
|
@ -524,13 +524,13 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
|
||||||
if (!module && module_is_elf_container_loaded(pcs, wImageName, BaseOfDll))
|
if (!module && module_is_elf_container_loaded(pcs, wImageName, BaseOfDll))
|
||||||
{
|
{
|
||||||
/* force the loading of DLL as builtin */
|
/* force the loading of DLL as builtin */
|
||||||
module = pe_load_module_from_pcs(pcs, wImageName, BaseOfDll, SizeOfDll);
|
module = pe_load_builtin_module(pcs, wImageName, BaseOfDll, SizeOfDll);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!module)
|
if (!module)
|
||||||
{
|
{
|
||||||
/* otherwise, try a regular PE module */
|
/* otherwise, try a regular PE module */
|
||||||
if (!(module = pe_load_module(pcs, wImageName, hFile, BaseOfDll, SizeOfDll)))
|
if (!(module = pe_load_native_module(pcs, wImageName, hFile, BaseOfDll, SizeOfDll)))
|
||||||
{
|
{
|
||||||
/* and finally and ELF module */
|
/* and finally and ELF module */
|
||||||
if (module_get_type_by_name(wImageName) == DMT_ELF)
|
if (module_get_type_by_name(wImageName) == DMT_ELF)
|
||||||
|
|
|
@ -320,11 +320,11 @@ BOOL pe_load_debug_info(const struct process* pcs, struct module* module)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* pe_load_module
|
* pe_load_native_module
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
struct module* pe_load_module(struct process* pcs, const WCHAR* name,
|
struct module* pe_load_native_module(struct process* pcs, const WCHAR* name,
|
||||||
HANDLE hFile, DWORD base, DWORD size)
|
HANDLE hFile, DWORD base, DWORD size)
|
||||||
{
|
{
|
||||||
struct module* module = NULL;
|
struct module* module = NULL;
|
||||||
BOOL opened = FALSE;
|
BOOL opened = FALSE;
|
||||||
|
@ -394,11 +394,11 @@ BOOL pe_load_nt_header(HANDLE hProc, DWORD base, IMAGE_NT_HEADERS* nth)
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* pe_load_module_from_pcs
|
* pe_load_builtin_module
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
struct module* pe_load_module_from_pcs(struct process* pcs, const WCHAR* name,
|
struct module* pe_load_builtin_module(struct process* pcs, const WCHAR* name,
|
||||||
DWORD base, DWORD size)
|
DWORD base, DWORD size)
|
||||||
{
|
{
|
||||||
struct module* module = NULL;
|
struct module* module = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue