ReactOS 0.4.16-dev-334-g4d9f67c
|
#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 1148 of file module.c.
Referenced by SymGetModuleInfo(), and SymGetModuleInfo64().
|
static |
|
static |
BOOL WINAPI EnumerateLoadedModules | ( | HANDLE | hProcess, |
PENUMLOADED_MODULES_CALLBACK | EnumLoadedModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1096 of file module.c.
BOOL WINAPI EnumerateLoadedModules64 | ( | HANDLE | hProcess, |
PENUMLOADED_MODULES_CALLBACK64 | EnumLoadedModulesCallback, | ||
PVOID | UserContext | ||
) |
BOOL WINAPI EnumerateLoadedModulesW64 | ( | HANDLE | hProcess, |
PENUMLOADED_MODULES_CALLBACKW64 | EnumLoadedModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1112 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 701 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 621 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 55 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(), module_find_by_addr(), 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 889 of file module.c.
Referenced by elf_synchronize_module_list(), macho_synchronize_module_list(), SymCleanup(), SymUnloadModule(), and SymUnloadModule64().
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 |
BOOL WINAPI SymEnumerateModules | ( | HANDLE | hProcess, |
PSYM_ENUMMODULES_CALLBACK | EnumModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 976 of file module.c.
BOOL WINAPI SymEnumerateModules64 | ( | HANDLE | hProcess, |
PSYM_ENUMMODULES_CALLBACK64 | EnumModulesCallback, | ||
PVOID | UserContext | ||
) |
BOOL WINAPI SymEnumerateModulesW64 | ( | HANDLE | hProcess, |
PSYM_ENUMMODULES_CALLBACKW64 | EnumModulesCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1023 of file module.c.
Referenced by SymEnumerateModules(), and SymEnumerateModules64().
Definition at line 1363 of file module.c.
Referenced by StackWalk().
Definition at line 1371 of file module.c.
Referenced by PrintStackBacktrace(), StackWalk64(), and SymFunctionTableAccess().
Definition at line 1302 of file module.c.
Referenced by StackWalk().
Definition at line 1313 of file module.c.
Referenced by PrintStackBacktrace(), StackWalk64(), and SymGetModuleBase().
BOOL WINAPI SymGetModuleInfo | ( | HANDLE | hProcess, |
DWORD | dwAddr, | ||
PIMAGEHLP_MODULE | ModuleInfo | ||
) |
Definition at line 1158 of file module.c.
BOOL WINAPI SymGetModuleInfo64 | ( | HANDLE | hProcess, |
DWORD64 | dwAddr, | ||
PIMAGEHLP_MODULE64 | ModuleInfo | ||
) |
Definition at line 1219 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 1189 of file module.c.
BOOL WINAPI SymGetModuleInfoW64 | ( | HANDLE | hProcess, |
DWORD64 | dwAddr, | ||
PIMAGEHLP_MODULEW64 | ModuleInfo | ||
) |
Definition at line 1269 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 753 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 878 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 763 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 800 of file module.c.
Referenced by process_invade_cb(), and SymLoadModuleEx().
WINE_DEFAULT_DEBUG_CHANNEL | ( | dbghelp | ) |
Definition at line 53 of file module.c.
Referenced by __attribute__(), _makepath(), _tsplitpath_x(), _tstat64(), _wmakepath(), ACTION_RegisterExtensionInfo(), ACTION_UnregisterExtensionInfo(), add_cert_extension_detail(), add_ext_holes(), allocate_cache_chunk(), assign_file_addresses(), AX_ConvertDialogTemplate(), bad_name(), balance_data_chunk(), ATL::CImage::BuildCodecFilterString(), cert_find_alt_name_entry(), CertContext_GetProperty(), CertGetEnhancedKeyUsage(), CertGetIntendedKeyUsage(), CertIsValidCRLForCertificate(), compare_crl_issued_by(), create_snapshot(), CreateUrlCacheEntryW(), CRYPT_AsnDecodeExtension(), CRYPT_AsnEncodeExtension(), CRYPT_CheckNameConstraints(), CRYPT_CheckUsages(), CRYPT_DecodeBasicConstraints(), CRYPT_FileNameOpenStoreW(), crypt_format_extension(), CRYPT_GetIssuer(), CRYPT_GetNameConstraints(), CRYPT_GetPolicies(), CRYPT_GetUrlFromCertificateCRLDistPoint(), CRYPT_GetUrlFromCertificateIssuer(), CRYPT_IsCertificateSelfSigned(), CRYPT_KeyUsageValid(), divide_ext(), do_create_snapshot(), dump_alt_name(), dump_basic_constraints(), dump_basic_constraints2(), dump_cert_policies(), dump_enhanced_key_usage(), dump_extension(), dump_key_usage(), dump_name_constraints(), dump_netscape_cert_type(), dup_basename(), dup_basename_token(), duplicate_extents(), duplicate_fcb(), dwarf2_parse_variable(), ext4_ext_get_actual_len(), ext4_ext_is_uninitialized(), ext4_ext_is_unwritten(), ext4_ext_mark_initialized(), ext4_ext_mark_uninitialized(), ext4_ext_mark_unwritten(), ext_in_list(), fcb_is_inline(), fcb_load_csums(), field_format_detailed_extension(), field_format_extension_hex_with_ascii(), file_cvt(), FILEDLG95_OnOpen(), FileProtocol_StartEx(), filesys_GetExtensionName(), find_cert_by_issuer(), find_mime_from_ext(), find_mime_from_url(), flush_fcb(), format_enhanced_key_usage_value(), free_extension(), free_package_structures(), FxVerifierBreakOnDeviceStateError(), FxVerifierDbgBreakPoint(), get_csum_info(), get_engine_clsid(), get_first_ext_from_spec(), get_inode_info(), get_ndr_types_params(), get_path_with_extension(), get_retrieval_pointers(), get_subject_alt_name_ext(), get_uri_path(), GetAssocClass(), GetFileTypeIconsEx(), GPOS_apply_lookup(), GPOS_get_subtable(), GSUB_apply_lookup(), GSUB_get_subtable(), handle_WM_KEY(), has_extension(), HCR_GetProgIdKeyOfExtension(), BookmarkList::import_IE_favorites(), install_file(), install_gl_compat_wrapper(), is_ca_cert(), FileTypeManager::is_exe_file(), is_valid_file(), IsBinaryExt(), iterate_all_extensions(), key_event(), load_extension(), load_given_extension(), load_gl_funcs(), makestringfile(), match_dns_to_subject_alt_name(), match_ext(), MMIO_ParseExtA(), move_across_subvols(), nsURL_GetFileBaseName(), on_command_filetype(), on_default_action(), FileTypeManager::operator[](), PathYetAnotherMakeUniqueName(), print_version(), query_ranges(), rationalize_extents(), ShellDirectory::read_directory(), reap_fcb(), BtrfsContextMenu::reflink_copy(), rename_file_to_stream(), run_script(), runscript(), savedc_emf_enum_proc(), FileTypeManager::set_type(), set_zero_data(), CFSFolder::SetNameOf(), SHAddToRecentDocs(), SHELL32_AssocGetExtensionDescription(), SHELL32_GetFSItemAttributes(), ShellExecute_GetClassKey(), SplitFileSysURL(), START_TEST(), test_decodeExtensions(), test_DeviceCapabilities(), test_encodeCertToBeSigned(), test_findExtension(), test_GetExtensionName(), test_LoadImageFile(), test_LongtoShortA(), test_PathFindExtensionA(), test_splitpath(), test_SplitShortPathA(), testIntendedKeyUsage(), TrustIsCertificateSelfSigned(), try_find_new_name(), UDFDOSName100(), UDFDOSName200(), UDFDOSName201(), ui_key_down(), ui_key_up(), update_chunks(), urlcache_entry_create(), URLDownloadToCacheFileW(), verify_cert_revocation(), vol_get_disk_extents(), WhereGetPathExt(), wWinMain(), XCOPY_ProcessDestParm(), xsltExtModuleElementLookup(), xsltExtModuleElementPreComputeLookup(), xsltFreeExtData(), xsltFreeExtElement(), xsltFreeExtModule(), xsltPreComputeExtModuleElement(), and xsltRegisterExtModuleElement().
const struct loader_ops no_loader_ops |
Definition at line 1409 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().