|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <limits.h>#include <sys/types.h>#include <assert.h>#include "wine/debug.h"#include "dbghelp_private.h"#include "winnls.h"
Go to the source code of this file.
Classes | |
| struct | sym_enum |
| struct | sym_enumW |
| struct | sym_enumerate |
| struct | sym_enumerate64 |
Macros | |
| #define | NONAMELESSUNION |
| #define | WILDCHAR(x) (-(x)) |
Variables | |
| static const WCHAR | starW [] = {'*','\0'} |
Definition at line 52 of file symbol.c.
Referenced by symt_find_nearest(), symt_get_best_at(), and where_to_insert().
|
static |
Definition at line 1603 of file symbol.c.
Referenced by SymGetLineFromAddr(), SymGetLineNext(), and SymGetLinePrev().
|
static |
Definition at line 1574 of file symbol.c.
Referenced by SymGetLineNext(), and SymGetLinePrev().
|
static |
| void copy_symbolW | ( | SYMBOL_INFOW * | siw, |
| const SYMBOL_INFO * | si | ||
| ) |
Definition at line 1031 of file symbol.c.
Referenced by enum_types_AtoW(), sym_enumW(), and SymFromAddrW().
|
inlinestatic |
Definition at line 1122 of file symbol.c.
Referenced by SymEnumSymbols(), and SymEnumSymbolsW().
|
inlinestatic |
Definition at line 2052 of file symbol.c.
Referenced by SymSearch(), and SymSearchW().
Definition at line 161 of file symbol.c.
Referenced by SymEnumLines().
|
static |
Definition at line 1364 of file symbol.c.
Definition at line 1881 of file symbol.c.
Referenced by re_match_multi(), and re_match_one().
Definition at line 1944 of file symbol.c.
Referenced by re_match_multi(), and SymMatchStringW().
Definition at line 1896 of file symbol.c.
Referenced by re_match_multi().
Definition at line 814 of file symbol.c.
Referenced by resort_symbols(), and symt_find_nearest().
|
static |
|
static |
Definition at line 1056 of file symbol.c.
|
static |
Definition at line 1213 of file symbol.c.
Referenced by SymEnumerateSymbols().
|
static |
Definition at line 1240 of file symbol.c.
Referenced by SymEnumerateSymbols64().
| BOOL WINAPI SymAddSymbol | ( | HANDLE | hProcess, |
| ULONG64 | BaseOfDll, | ||
| PCSTR | name, | ||
| DWORD64 | addr, | ||
| DWORD | size, | ||
| DWORD | flags | ||
| ) |
Definition at line 2133 of file symbol.c.
| BOOL WINAPI SymAddSymbolW | ( | HANDLE | hProcess, |
| ULONG64 | BaseOfDll, | ||
| PCWSTR | name, | ||
| DWORD64 | addr, | ||
| DWORD | size, | ||
| DWORD | flags | ||
| ) |
Definition at line 2146 of file symbol.c.
Referenced by SymAddSymbol().
| BOOL WINAPI SymEnumerateSymbols | ( | HANDLE | hProcess, |
| DWORD | BaseOfDll, | ||
| PSYM_ENUMSYMBOLS_CALLBACK | EnumSymbolsCallback, | ||
| PVOID | UserContext | ||
| ) |
Definition at line 1222 of file symbol.c.
| BOOL WINAPI SymEnumerateSymbols64 | ( | HANDLE | hProcess, |
| DWORD64 | BaseOfDll, | ||
| PSYM_ENUMSYMBOLS_CALLBACK64 | EnumSymbolsCallback, | ||
| PVOID | UserContext | ||
| ) |
Definition at line 1249 of file symbol.c.
| BOOL WINAPI SymEnumLines | ( | HANDLE | hProcess, |
| ULONG64 | base, | ||
| PCSTR | compiland, | ||
| PCSTR | srcfile, | ||
| PSYM_ENUMLINES_CALLBACK | cb, | ||
| PVOID | user | ||
| ) |
Definition at line 2179 of file symbol.c.
Referenced by ConvertDbgHelp().
| BOOL WINAPI SymEnumSymbols | ( | HANDLE | hProcess, |
| ULONG64 | BaseOfDll, | ||
| PCSTR | Mask, | ||
| PSYM_ENUMERATESYMBOLS_CALLBACK | EnumSymbolsCallback, | ||
| PVOID | UserContext | ||
| ) |
Definition at line 1149 of file symbol.c.
Referenced by DumpParams(), main(), ParseImageSymbols(), SymEnumerateSymbols(), SymEnumerateSymbols64(), and test_SymEnumSymbols().
| BOOL WINAPI SymEnumSymbolsW | ( | HANDLE | hProcess, |
| ULONG64 | BaseOfDll, | ||
| PCWSTR | Mask, | ||
| PSYM_ENUMERATESYMBOLS_CALLBACKW | EnumSymbolsCallback, | ||
| PVOID | UserContext | ||
| ) |
Definition at line 1194 of file symbol.c.
| BOOL WINAPI SymFromAddr | ( | HANDLE | hProcess, |
| DWORD64 | Address, | ||
| DWORD64 * | Displacement, | ||
| PSYMBOL_INFO | Symbol | ||
| ) |
Definition at line 1265 of file symbol.c.
Referenced by DbgHelpAddLineNumber(), ParseImageSymbols(), PrintStackBacktrace(), SymFromAddrW(), SymGetSymFromAddr(), SymGetSymFromAddr64(), and test_SymFromAddr().
| BOOL WINAPI SymFromAddrW | ( | HANDLE | hProcess, |
| DWORD64 | Address, | ||
| DWORD64 * | Displacement, | ||
| PSYMBOL_INFOW | Symbol | ||
| ) |
Definition at line 1287 of file symbol.c.
| BOOL WINAPI SymFromName | ( | HANDLE | hProcess, |
| PCSTR | Name, | ||
| PSYMBOL_INFO | Symbol | ||
| ) |
Definition at line 1394 of file symbol.c.
Referenced by elf_search_auxv(), ImageSymToVa(), SymGetSymFromName(), SymGetSymFromName64(), and test_SymFromName().
| BOOL WINAPI SymGetLineFromAddr | ( | HANDLE | hProcess, |
| DWORD | dwAddr, | ||
| PDWORD | pdwDisplacement, | ||
| PIMAGEHLP_LINE | Line | ||
| ) |
Definition at line 1616 of file symbol.c.
| BOOL WINAPI SymGetLineFromAddr64 | ( | HANDLE | hProcess, |
| DWORD64 | dwAddr, | ||
| PDWORD | pdwDisplacement, | ||
| PIMAGEHLP_LINE64 | Line | ||
| ) |
Definition at line 1632 of file symbol.c.
Referenced by SymGetLineFromAddr(), and SymGetLineFromAddrW64().
| BOOL WINAPI SymGetLineFromAddrW64 | ( | HANDLE | hProcess, |
| DWORD64 | dwAddr, | ||
| PDWORD | pdwDisplacement, | ||
| PIMAGEHLP_LINEW64 | Line | ||
| ) |
Definition at line 1659 of file symbol.c.
| BOOL WINAPI SymGetLineFromName | ( | HANDLE | hProcess, |
| PCSTR | ModuleName, | ||
| PCSTR | FileName, | ||
| DWORD | dwLineNumber, | ||
| PLONG | plDisplacement, | ||
| PIMAGEHLP_LINE | Line | ||
| ) |
Definition at line 2248 of file symbol.c.
| BOOL WINAPI SymGetLineFromNameW64 | ( | HANDLE | hProcess, |
| PCWSTR | ModuleName, | ||
| PCWSTR | FileName, | ||
| DWORD | dwLineNumber, | ||
| PLONG | plDisplacement, | ||
| PIMAGEHLP_LINEW64 | Line | ||
| ) |
Definition at line 2264 of file symbol.c.
| BOOL WINAPI SymGetLineNext | ( | HANDLE | hProcess, |
| PIMAGEHLP_LINE | Line | ||
| ) |
Definition at line 1782 of file symbol.c.
| BOOL WINAPI SymGetLineNext64 | ( | HANDLE | hProcess, |
| PIMAGEHLP_LINE64 | Line | ||
| ) |
Definition at line 1761 of file symbol.c.
Referenced by SymGetLineNext().
| BOOL WINAPI SymGetLinePrev | ( | HANDLE | hProcess, |
| PIMAGEHLP_LINE | Line | ||
| ) |
Definition at line 1725 of file symbol.c.
| BOOL WINAPI SymGetLinePrev64 | ( | HANDLE | hProcess, |
| PIMAGEHLP_LINE64 | Line | ||
| ) |
Definition at line 1675 of file symbol.c.
Referenced by SymGetLinePrev().
| BOOL WINAPI SymGetSymFromAddr | ( | HANDLE | hProcess, |
| DWORD | Address, | ||
| PDWORD | Displacement, | ||
| PIMAGEHLP_SYMBOL | Symbol | ||
| ) |
Definition at line 1312 of file symbol.c.
| BOOL WINAPI SymGetSymFromAddr64 | ( | HANDLE | hProcess, |
| DWORD64 | Address, | ||
| PDWORD64 | Displacement, | ||
| PIMAGEHLP_SYMBOL64 | Symbol | ||
| ) |
Definition at line 1340 of file symbol.c.
| BOOL WINAPI SymGetSymFromName | ( | HANDLE | hProcess, |
| PCSTR | Name, | ||
| PIMAGEHLP_SYMBOL | Symbol | ||
| ) |
Definition at line 1458 of file symbol.c.
| BOOL WINAPI SymGetSymFromName64 | ( | HANDLE | hProcess, |
| PCSTR | Name, | ||
| PIMAGEHLP_SYMBOL64 | Symbol | ||
| ) |
| BOOL WINAPI SymGetSymNext | ( | HANDLE | hProcess, |
| PIMAGEHLP_SYMBOL | Symbol | ||
| ) |
| BOOL WINAPI SymGetSymNext64 | ( | HANDLE | hProcess, |
| PIMAGEHLP_SYMBOL64 | Symbol | ||
| ) |
| BOOL WINAPI SymGetSymPrev | ( | HANDLE | hProcess, |
| PIMAGEHLP_SYMBOL | Symbol | ||
| ) |
| BOOL WINAPI SymGetSymPrev64 | ( | HANDLE | hProcess, |
| PIMAGEHLP_SYMBOL64 | Symbol | ||
| ) |
Definition at line 2040 of file symbol.c.
Referenced by sym_enum(), SymEnumLines(), SymMatchStringA(), symt_enum_locals_helper(), and symt_enum_module().
| BOOL WINAPI SymSearch | ( | HANDLE | hProcess, |
| ULONG64 | BaseOfDll, | ||
| DWORD | Index, | ||
| DWORD | SymTag, | ||
| PCSTR | Mask, | ||
| DWORD64 | Address, | ||
| PSYM_ENUMERATESYMBOLS_CALLBACK | EnumSymbolsCallback, | ||
| PVOID | UserContext, | ||
| DWORD | Options | ||
| ) |
Definition at line 2079 of file symbol.c.
| BOOL WINAPI SymSearchW | ( | HANDLE | hProcess, |
| ULONG64 | BaseOfDll, | ||
| DWORD | Index, | ||
| DWORD | SymTag, | ||
| PCWSTR | Mask, | ||
| DWORD64 | Address, | ||
| PSYM_ENUMERATESYMBOLS_CALLBACKW | EnumSymbolsCallback, | ||
| PVOID | UserContext, | ||
| DWORD | Options | ||
| ) |
Definition at line 2109 of file symbol.c.
| void symt_add_func_line | ( | struct module * | module, |
| struct symt_function * | func, | ||
| unsigned | source_idx, | ||
| int | line_num, | ||
| ULONG_PTR | offset | ||
| ) |
Definition at line 328 of file symbol.c.
Referenced by codeview_snarf_linetab(), codeview_snarf_linetab2(), coff_process_info(), dwarf2_set_line_number(), pending_flush(), rsym_parse(), and stabs_parse().
| struct symt_data * symt_add_func_local | ( | struct module * | module, |
| struct symt_function * | func, | ||
| enum DataKind | dt, | ||
| const struct location * | loc, | ||
| struct symt_block * | block, | ||
| struct symt * | type, | ||
| const char * | name | ||
| ) |
Definition at line 380 of file symbol.c.
Referenced by codeview_snarf(), dwarf2_parse_variable(), pending_flush(), and stabs_parse().
| struct symt_hierarchy_point * symt_add_function_point | ( | struct module * | module, |
| struct symt_function * | func, | ||
| enum SymTagEnum | point, | ||
| const struct location * | loc, | ||
| const char * | name | ||
| ) |
Definition at line 454 of file symbol.c.
Referenced by codeview_snarf(), dwarf2_parse_subprogram(), dwarf2_parse_subprogram_label(), rsym_finalize_function(), and stabs_finalize_function().
Definition at line 145 of file symbol.c.
Referenced by symt_new_constant(), symt_new_function(), symt_new_global_variable(), symt_new_label(), symt_new_public(), and symt_new_thunk().
| struct symt_block * symt_close_func_block | ( | struct module * | module, |
| const struct symt_function * | func, | ||
| struct symt_block * | block, | ||
| unsigned | pc | ||
| ) |
Definition at line 442 of file symbol.c.
Referenced by codeview_snarf(), dwarf2_parse_inlined_subroutine(), dwarf2_parse_subprogram_block(), and stabs_parse().
Definition at line 59 of file symbol.c.
Referenced by coff_process_info(), and resort_symbols().
|
static |
Definition at line 1002 of file symbol.c.
Referenced by sym_enum().
|
static |
Definition at line 955 of file symbol.c.
Referenced by symt_enum_locals(), and symt_enum_locals_helper().
|
static |
Definition at line 763 of file symbol.c.
Referenced by sym_enum().
| BOOL symt_fill_func_line_info | ( | const struct module * | module, |
| const struct symt_function * | func, | ||
| DWORD64 | addr, | ||
| IMAGEHLP_LINE64 * | line | ||
| ) |
Definition at line 1482 of file symbol.c.
Referenced by rsym_finalize_function(), stabs_finalize_function(), and SymGetLineFromAddr64().
|
static |
Definition at line 584 of file symbol.c.
Referenced by find_name(), send_symbol(), and SymFromAddr().
Definition at line 905 of file symbol.c.
Referenced by codeview_add_variable(), codeview_snarf_linetab(), codeview_snarf_linetab2(), dwarf2_set_line_number(), elf_new_wine_thunks(), macho_finish_stabs(), SymFromAddr(), SymGetLineFromAddr64(), symt_enum_locals(), and symt_new_public().
Definition at line 878 of file symbol.c.
Referenced by symt_find_nearest().
| BOOL symt_get_func_line_next | ( | const struct module * | module, |
| PIMAGEHLP_LINE64 | line | ||
| ) |
Definition at line 1736 of file symbol.c.
Referenced by rsym_finalize_function(), stabs_finalize_function(), and SymGetLineNext64().
|
static |
Definition at line 865 of file symbol.c.
Referenced by symt_find_nearest().
Definition at line 122 of file symbol.c.
Referenced by symt_add_module_ht().
Definition at line 112 of file symbol.c.
Referenced by SymGetTypeInfo(), symt_fill_sym_info(), and symt_get_length().
| struct symt_compiland * symt_new_compiland | ( | struct module * | module, |
| ULONG_PTR | address, | ||
| unsigned | src_idx | ||
| ) |
Definition at line 209 of file symbol.c.
Referenced by codeview_snarf(), coff_add_file(), dwarf2_parse_compilation_unit(), elf_hash_symtab(), pe_load_coff_symbol_table(), and stabs_parse().
| struct symt_data * symt_new_constant | ( | struct module * | module, |
| struct symt_compiland * | compiland, | ||
| const char * | name, | ||
| struct symt * | type, | ||
| const VARIANT * | v | ||
| ) |
Definition at line 527 of file symbol.c.
Referenced by codeview_snarf(), and dwarf2_parse_variable().
| struct symt_function * symt_new_function | ( | struct module * | module, |
| struct symt_compiland * | compiland, | ||
| const char * | name, | ||
| ULONG_PTR | addr, | ||
| ULONG_PTR | size, | ||
| struct symt * | sig_type | ||
| ) |
Definition at line 295 of file symbol.c.
Referenced by codeview_snarf(), coff_process_info(), dwarf2_parse_subprogram(), elf_new_wine_thunks(), macho_finish_stabs(), rsym_parse(), and stabs_parse().
| struct symt_data * symt_new_global_variable | ( | struct module * | module, |
| struct symt_compiland * | compiland, | ||
| const char * | name, | ||
| unsigned | is_static, | ||
| struct location | loc, | ||
| ULONG_PTR | size, | ||
| struct symt * | type | ||
| ) |
Definition at line 258 of file symbol.c.
Referenced by codeview_add_variable(), coff_process_info(), dwarf2_parse_variable(), elf_new_wine_thunks(), macho_finish_stabs(), and stabs_parse().
| struct symt_hierarchy_point * symt_new_label | ( | struct module * | module, |
| struct symt_compiland * | compiland, | ||
| const char * | name, | ||
| ULONG_PTR | address | ||
| ) |
Definition at line 556 of file symbol.c.
Referenced by codeview_snarf().
| struct symt_public * symt_new_public | ( | struct module * | module, |
| struct symt_compiland * | compiland, | ||
| const char * | name, | ||
| BOOL | is_function, | ||
| ULONG_PTR | address, | ||
| unsigned | size | ||
| ) |
Definition at line 226 of file symbol.c.
Referenced by codeview_snarf_public(), elf_new_public_symbols(), macho_finish_stabs(), pe_load_coff_symbol_table(), pe_load_export_debug_info(), and rsym_parse().
| struct symt_thunk * symt_new_thunk | ( | struct module * | module, |
| struct symt_compiland * | compiland, | ||
| const char * | name, | ||
| THUNK_ORDINAL | ord, | ||
| ULONG_PTR | addr, | ||
| ULONG_PTR | size | ||
| ) |
Definition at line 498 of file symbol.c.
Referenced by codeview_snarf(), and elf_new_wine_thunks().
Definition at line 475 of file symbol.c.
Referenced by codeview_snarf(), dwarf2_parse_subprogram(), rsym_finalize_function(), and stabs_finalize_function().
| struct symt_block * symt_open_func_block | ( | struct module * | module, |
| struct symt_function * | func, | ||
| struct symt_block * | parent_block, | ||
| unsigned | pc, | ||
| unsigned | len | ||
| ) |
Definition at line 415 of file symbol.c.
Referenced by codeview_snarf(), dwarf2_parse_inlined_subroutine(), dwarf2_parse_subprogram_block(), and stabs_parse().
Definition at line 70 of file symbol.c.
Referenced by SymEnumTypes(), SymGetTypeFromName(), symt_fill_sym_info(), and symt_get_info().
| BOOL WINAPI SymUnDName | ( | PIMAGEHLP_SYMBOL | sym, |
| PSTR | UnDecName, | ||
| DWORD | UnDecNameLength | ||
| ) |
| BOOL WINAPI SymUnDName64 | ( | PIMAGEHLP_SYMBOL64 | sym, |
| PSTR | UnDecName, | ||
| DWORD | UnDecNameLength | ||
| ) |
|
static |
Definition at line 1814 of file symbol.c.
Referenced by UnDecorateSymbolName(), and UnDecorateSymbolNameW().
| DWORD WINAPI UnDecorateSymbolName | ( | const char * | decorated_name, |
| char * | undecorated_name, | ||
| DWORD | undecorated_length, | ||
| DWORD | flags | ||
| ) |
Definition at line 1834 of file symbol.c.
Referenced by symt_fill_sym_info(), SymUnDName(), and SymUnDName64().
| DWORD WINAPI UnDecorateSymbolNameW | ( | const WCHAR * | decorated_name, |
| WCHAR * | undecorated_name, | ||
| DWORD | undecorated_length, | ||
| DWORD | flags | ||
| ) |
|
inlinestatic |
Definition at line 789 of file symbol.c.
Referenced by resort_symbols().
| WINE_DECLARE_DEBUG_CHANNEL | ( | dbghelp_symt | ) |
| WINE_DEFAULT_DEBUG_CHANNEL | ( | dbghelp | ) |
Definition at line 43 of file symbol.c.
Referenced by sym_enum(), and symt_enum_locals().