ReactOS
0.4.15-dev-2106-g6de3300
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "dbghelp_private.h"
#include "image_private.h"
#include "psapi.h"
#include "winternl.h"
#include "wine/debug.h"
#include "wine/heap.h"
Go to the source code of this file.
Classes | |
struct | enum_modW64_32 |
struct | enum_modW64_64 |
struct | enum_load_modW64_64 |
struct | enum_load_modW64_32 |
Macros | |
#define | NOTE_GNU_BUILD_ID 3 |
Variables | |
const WCHAR | S_ElfW [] = {'<','e','l','f','>','\0'} |
const WCHAR | S_WineLoaderW [] = {'<','w','i','n','e','-','l','o','a','d','e','r','>','\0'} |
static const WCHAR | S_DotSoW [] = {'.','s','o','\0'} |
const WCHAR | S_SlashW [] = {'/','\0'} |
static const WCHAR | S_AcmW [] = {'.','a','c','m','\0'} |
static const WCHAR | S_DllW [] = {'.','d','l','l','\0'} |
static const WCHAR | S_DrvW [] = {'.','d','r','v','\0'} |
static const WCHAR | S_ExeW [] = {'.','e','x','e','\0'} |
static const WCHAR | S_OcxW [] = {'.','o','c','x','\0'} |
static const WCHAR | S_VxdW [] = {'.','v','x','d','\0'} |
static const WCHAR *const | ext [] = {S_AcmW, S_DllW, S_DrvW, S_ExeW, S_OcxW, S_VxdW, NULL} |
const struct loader_ops | no_loader_ops |
Definition at line 1144 of file module.c.
Referenced by SymGetModuleInfo(), and SymGetModuleInfo64().
|
static |
Definition at line 1084 of file module.c.
|
static |
Definition at line 1052 of file module.c.
Definition at line 964 of file module.c.
Definition at line 995 of file module.c.
BOOL WINAPI EnumerateLoadedModules | ( | HANDLE | hProcess, |
PENUMLOADED_MODULES_CALLBACK | EnumLoadedModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1092 of file module.c.
BOOL WINAPI EnumerateLoadedModules64 | ( | HANDLE | hProcess, |
PENUMLOADED_MODULES_CALLBACK64 | EnumLoadedModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1061 of file module.c.
BOOL WINAPI EnumerateLoadedModulesW64 | ( | HANDLE | hProcess, |
PENUMLOADED_MODULES_CALLBACKW64 | EnumLoadedModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1108 of file module.c.
Referenced by EnumerateLoadedModules(), EnumerateLoadedModules64(), fetch_modules_info(), and SymInitializeW().
Definition at line 70 of file module.c.
Referenced by basic_tests(), is_wine_loader(), module_fill_module(), module_is_already_loaded(), and module_is_container_loaded().
|
static |
Definition at line 184 of file module.c.
Referenced by module_new().
Definition at line 150 of file module.c.
Referenced by elf_read_wine_loader_dbg_info(), and macho_search_loader().
Definition at line 697 of file module.c.
Referenced by elf_load_debug_info_from_map(), and pe_load_debug_info().
|
static |
Definition at line 481 of file module.c.
Referenced by image_locate_build_id_target(), and image_locate_debug_link().
|
static |
Definition at line 617 of file module.c.
Referenced by image_check_alternate().
|
static |
Definition at line 543 of file module.c.
Referenced by image_check_alternate().
Definition at line 83 of file module.c.
Referenced by module_fill_module().
Definition at line 118 of file module.c.
Referenced by EnumerateLoadedModulesW64(), and module_set_module().
struct module* module_find_by_addr | ( | const struct process * | pcs, |
DWORD64 | addr, | ||
enum module_type | type | ||
) |
Definition at line 420 of file module.c.
Referenced by dwarf2_virtual_unwind(), pdb_virtual_unwind(), sym_enum(), SymAddSymbolW(), SymEnumLines(), SymEnumSourceFilesW(), SymEnumTypes(), SymFromAddr(), SymFunctionTableAccess64(), SymGetLineFromAddr64(), SymGetLineNext64(), SymGetLinePrev64(), SymGetModuleBase64(), SymGetModuleInfoW64(), SymGetTypeFromName(), SymGetTypeInfo(), symt_enum_locals(), SymUnloadModule(), SymUnloadModule64(), and x86_64_fetch_minidump_module().
Definition at line 291 of file module.c.
Referenced by SymFromName().
Definition at line 279 of file module.c.
Referenced by module_find_by_nameA(), and SymEnumSourceFilesW().
Definition at line 349 of file module.c.
Referenced by sym_enum(), and SymFromName().
|
static |
Definition at line 329 of file module.c.
Referenced by module_get_debug(), and SymGetModuleInfoW64().
BOOL module_get_debug | ( | struct module_pair * | pair | ) |
Definition at line 374 of file module.c.
Referenced by dwarf2_virtual_unwind(), find_name(), pdb_virtual_unwind(), sym_enum(), SymAddSymbolW(), SymEnumLines(), SymEnumSourceFilesW(), SymEnumTypes(), SymFromAddr(), SymGetLineFromAddr64(), SymGetLineNext64(), SymGetLinePrev64(), SymGetTypeFromName(), SymGetTypeInfo(), and symt_enum_locals().
Definition at line 303 of file module.c.
Referenced by elf_load_cb(), elf_search_and_load_file(), macho_search_and_load_file(), and SymLoadModuleExW().
|
static |
Definition at line 451 of file module.c.
Referenced by SymLoadModuleExW().
struct module* module_new | ( | struct process * | pcs, |
const WCHAR * | name, | ||
enum module_type | type, | ||
BOOL | virtual, | ||
DWORD64 | mod_addr, | ||
DWORD64 | size, | ||
ULONG_PTR | stamp, | ||
ULONG_PTR | checksum | ||
) |
Definition at line 198 of file module.c.
Referenced by elf_load_file_from_fmap(), macho_load_file(), pe_load_builtin_module(), pe_load_native_module(), and SymLoadModuleExW().
Definition at line 885 of file module.c.
Referenced by elf_synchronize_module_list(), macho_synchronize_module_list(), SymCleanup(), SymUnloadModule(), and SymUnloadModule64().
Definition at line 1324 of file module.c.
Referenced by stabs_parse().
Definition at line 142 of file module.c.
Referenced by elf_read_wine_loader_dbg_info(), macho_read_wine_loader_dbg_info(), module_new(), and SymLoadModuleExW().
|
static |
|
static |
|
static |
BOOL WINAPI SymEnumerateModules | ( | HANDLE | hProcess, |
PSYM_ENUMMODULES_CALLBACK | EnumModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 972 of file module.c.
BOOL WINAPI SymEnumerateModules64 | ( | HANDLE | hProcess, |
PSYM_ENUMMODULES_CALLBACK64 | EnumModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1003 of file module.c.
BOOL WINAPI SymEnumerateModulesW64 | ( | HANDLE | hProcess, |
PSYM_ENUMMODULES_CALLBACKW64 | EnumModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1019 of file module.c.
Referenced by SymEnumerateModules(), and SymEnumerateModules64().
Definition at line 1359 of file module.c.
Referenced by StackWalk().
Definition at line 1367 of file module.c.
Referenced by PrintStackBacktrace(), StackWalk64(), and SymFunctionTableAccess().
Definition at line 1298 of file module.c.
Referenced by StackWalk().
Definition at line 1309 of file module.c.
Referenced by PrintStackBacktrace(), StackWalk64(), and SymGetModuleBase().
BOOL WINAPI SymGetModuleInfo | ( | HANDLE | hProcess, |
DWORD | dwAddr, | ||
PIMAGEHLP_MODULE | ModuleInfo | ||
) |
Definition at line 1154 of file module.c.
BOOL WINAPI SymGetModuleInfo64 | ( | HANDLE | hProcess, |
DWORD64 | dwAddr, | ||
PIMAGEHLP_MODULE64 | ModuleInfo | ||
) |
Definition at line 1215 of file module.c.
Referenced by PrintStackBacktrace(), supports_pdb(), and supports_rsym().
BOOL WINAPI SymGetModuleInfoW | ( | HANDLE | hProcess, |
DWORD | dwAddr, | ||
PIMAGEHLP_MODULEW | ModuleInfo | ||
) |
Definition at line 1185 of file module.c.
BOOL WINAPI SymGetModuleInfoW64 | ( | HANDLE | hProcess, |
DWORD64 | dwAddr, | ||
PIMAGEHLP_MODULEW64 | ModuleInfo | ||
) |
Definition at line 1265 of file module.c.
Referenced by SymGetModuleInfo(), SymGetModuleInfo64(), and SymGetModuleInfoW().
DWORD WINAPI SymLoadModule | ( | HANDLE | hProcess, |
HANDLE | hFile, | ||
PCSTR | ImageName, | ||
PCSTR | ModuleName, | ||
DWORD | BaseOfDll, | ||
DWORD | SizeOfDll | ||
) |
Definition at line 749 of file module.c.
Referenced by main().
DWORD64 WINAPI SymLoadModule64 | ( | HANDLE | hProcess, |
HANDLE | hFile, | ||
PCSTR | ImageName, | ||
PCSTR | ModuleName, | ||
DWORD64 | BaseOfDll, | ||
DWORD | SizeOfDll | ||
) |
Definition at line 874 of file module.c.
Referenced by LoadModuleWithSymbolsFullPath(), main(), START_TEST(), and test_SymRegCallback().
DWORD64 WINAPI SymLoadModuleEx | ( | HANDLE | hProcess, |
HANDLE | hFile, | ||
PCSTR | ImageName, | ||
PCSTR | ModuleName, | ||
DWORD64 | BaseOfDll, | ||
DWORD | DllSize, | ||
PMODLOAD_DATA | Data, | ||
DWORD | Flags | ||
) |
Definition at line 759 of file module.c.
Referenced by SymLoadModule(), and SymLoadModule64().
DWORD64 WINAPI SymLoadModuleExW | ( | HANDLE | hProcess, |
HANDLE | hFile, | ||
PCWSTR | wImageName, | ||
PCWSTR | wModuleName, | ||
DWORD64 | BaseOfDll, | ||
DWORD | SizeOfDll, | ||
PMODLOAD_DATA | Data, | ||
DWORD | Flags | ||
) |
Definition at line 796 of file module.c.
Referenced by process_invade_cb(), and SymLoadModuleEx().
Definition at line 1345 of file module.c.
Definition at line 924 of file module.c.
Referenced by main().
Definition at line 940 of file module.c.
WINE_DEFAULT_DEBUG_CHANNEL | ( | dbghelp | ) |
Definition at line 53 of file module.c.
Referenced by match_ext().
const struct loader_ops no_loader_ops |
Definition at line 1405 of file module.c.
Referenced by SymInitializeW().
Definition at line 44 of file module.c.
Referenced by module_fill_module(), and module_is_container_loaded().
Definition at line 40 of file module.c.
Referenced by elf_load_debug_info_from_map(), and module_fill_module().
Definition at line 42 of file module.c.
Referenced by elf_load_debug_info_from_map(), elf_read_wine_loader_dbg_info(), macho_read_wine_loader_dbg_info(), and module_fill_module().