ReactOS 0.4.16-dev-329-g9223134
|
#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 50 of file symbol.c.
Referenced by symt_find_nearest(), symt_get_best_at(), and where_to_insert().
|
static |
Definition at line 1601 of file symbol.c.
Referenced by SymGetLineFromAddr(), SymGetLineNext(), and SymGetLinePrev().
|
static |
Definition at line 1572 of file symbol.c.
Referenced by SymGetLineNext(), and SymGetLinePrev().
|
static |
void copy_symbolW | ( | SYMBOL_INFOW * | siw, |
const SYMBOL_INFO * | si | ||
) |
Definition at line 1029 of file symbol.c.
Referenced by enum_types_AtoW(), sym_enumW(), and SymFromAddrW().
|
inlinestatic |
Definition at line 1120 of file symbol.c.
Referenced by SymEnumSymbols(), and SymEnumSymbolsW().
|
inlinestatic |
Definition at line 2050 of file symbol.c.
Referenced by SymSearch(), and SymSearchW().
Definition at line 159 of file symbol.c.
Referenced by SymEnumLines().
|
static |
Definition at line 1362 of file symbol.c.
Definition at line 1879 of file symbol.c.
Referenced by re_match_multi(), and re_match_one().
Definition at line 1942 of file symbol.c.
Referenced by re_match_multi(), and SymMatchStringW().
Definition at line 1894 of file symbol.c.
Referenced by re_match_multi().
Definition at line 812 of file symbol.c.
Referenced by resort_symbols(), and symt_find_nearest().
|
static |
|
static |
Definition at line 1054 of file symbol.c.
|
static |
Definition at line 1211 of file symbol.c.
Referenced by SymEnumerateSymbols().
|
static |
Definition at line 1238 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 2131 of file symbol.c.
BOOL WINAPI SymAddSymbolW | ( | HANDLE | hProcess, |
ULONG64 | BaseOfDll, | ||
PCWSTR | name, | ||
DWORD64 | addr, | ||
DWORD | size, | ||
DWORD | flags | ||
) |
Definition at line 2144 of file symbol.c.
Referenced by SymAddSymbol().
BOOL WINAPI SymEnumerateSymbols | ( | HANDLE | hProcess, |
DWORD | BaseOfDll, | ||
PSYM_ENUMSYMBOLS_CALLBACK | EnumSymbolsCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1220 of file symbol.c.
BOOL WINAPI SymEnumerateSymbols64 | ( | HANDLE | hProcess, |
DWORD64 | BaseOfDll, | ||
PSYM_ENUMSYMBOLS_CALLBACK64 | EnumSymbolsCallback, | ||
PVOID | UserContext | ||
) |
Definition at line 1247 of file symbol.c.
BOOL WINAPI SymEnumLines | ( | HANDLE | hProcess, |
ULONG64 | base, | ||
PCSTR | compiland, | ||
PCSTR | srcfile, | ||
PSYM_ENUMLINES_CALLBACK | cb, | ||
PVOID | user | ||
) |
Definition at line 2177 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 1147 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 1192 of file symbol.c.
BOOL WINAPI SymFromAddr | ( | HANDLE | hProcess, |
DWORD64 | Address, | ||
DWORD64 * | Displacement, | ||
PSYMBOL_INFO | Symbol | ||
) |
Definition at line 1263 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 1285 of file symbol.c.
BOOL WINAPI SymFromName | ( | HANDLE | hProcess, |
PCSTR | Name, | ||
PSYMBOL_INFO | Symbol | ||
) |
Definition at line 1392 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 1614 of file symbol.c.
BOOL WINAPI SymGetLineFromAddr64 | ( | HANDLE | hProcess, |
DWORD64 | dwAddr, | ||
PDWORD | pdwDisplacement, | ||
PIMAGEHLP_LINE64 | Line | ||
) |
Definition at line 1630 of file symbol.c.
Referenced by SymGetLineFromAddr(), and SymGetLineFromAddrW64().
BOOL WINAPI SymGetLineFromAddrW64 | ( | HANDLE | hProcess, |
DWORD64 | dwAddr, | ||
PDWORD | pdwDisplacement, | ||
PIMAGEHLP_LINEW64 | Line | ||
) |
Definition at line 1657 of file symbol.c.
BOOL WINAPI SymGetLineFromName | ( | HANDLE | hProcess, |
PCSTR | ModuleName, | ||
PCSTR | FileName, | ||
DWORD | dwLineNumber, | ||
PLONG | plDisplacement, | ||
PIMAGEHLP_LINE | Line | ||
) |
Definition at line 2246 of file symbol.c.
BOOL WINAPI SymGetLineFromNameW64 | ( | HANDLE | hProcess, |
PCWSTR | ModuleName, | ||
PCWSTR | FileName, | ||
DWORD | dwLineNumber, | ||
PLONG | plDisplacement, | ||
PIMAGEHLP_LINEW64 | Line | ||
) |
Definition at line 2262 of file symbol.c.
BOOL WINAPI SymGetLineNext | ( | HANDLE | hProcess, |
PIMAGEHLP_LINE | Line | ||
) |
Definition at line 1780 of file symbol.c.
BOOL WINAPI SymGetLineNext64 | ( | HANDLE | hProcess, |
PIMAGEHLP_LINE64 | Line | ||
) |
Definition at line 1759 of file symbol.c.
Referenced by SymGetLineNext().
BOOL WINAPI SymGetLinePrev | ( | HANDLE | hProcess, |
PIMAGEHLP_LINE | Line | ||
) |
Definition at line 1723 of file symbol.c.
BOOL WINAPI SymGetLinePrev64 | ( | HANDLE | hProcess, |
PIMAGEHLP_LINE64 | Line | ||
) |
Definition at line 1673 of file symbol.c.
Referenced by SymGetLinePrev().
BOOL WINAPI SymGetSymFromAddr | ( | HANDLE | hProcess, |
DWORD | Address, | ||
PDWORD | Displacement, | ||
PIMAGEHLP_SYMBOL | Symbol | ||
) |
Definition at line 1310 of file symbol.c.
BOOL WINAPI SymGetSymFromAddr64 | ( | HANDLE | hProcess, |
DWORD64 | Address, | ||
PDWORD64 | Displacement, | ||
PIMAGEHLP_SYMBOL64 | Symbol | ||
) |
Definition at line 1338 of file symbol.c.
BOOL WINAPI SymGetSymFromName | ( | HANDLE | hProcess, |
PCSTR | Name, | ||
PIMAGEHLP_SYMBOL | Symbol | ||
) |
Definition at line 1456 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 2038 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 2077 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 2107 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 326 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 378 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 452 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 143 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 440 of file symbol.c.
Referenced by codeview_snarf(), dwarf2_parse_inlined_subroutine(), dwarf2_parse_subprogram_block(), and stabs_parse().
Definition at line 57 of file symbol.c.
Referenced by coff_process_info(), and resort_symbols().
|
static |
Definition at line 1000 of file symbol.c.
Referenced by sym_enum().
|
static |
Definition at line 953 of file symbol.c.
Referenced by symt_enum_locals(), and symt_enum_locals_helper().
|
static |
Definition at line 761 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 1480 of file symbol.c.
Referenced by rsym_finalize_function(), stabs_finalize_function(), and SymGetLineFromAddr64().
|
static |
Definition at line 582 of file symbol.c.
Referenced by find_name(), send_symbol(), and SymFromAddr().
Definition at line 903 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 876 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 1734 of file symbol.c.
Referenced by rsym_finalize_function(), stabs_finalize_function(), and SymGetLineNext64().
|
static |
Definition at line 863 of file symbol.c.
Referenced by symt_find_nearest().
Definition at line 120 of file symbol.c.
Referenced by symt_add_module_ht().
Definition at line 110 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 207 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 525 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 293 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 256 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 554 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 224 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 496 of file symbol.c.
Referenced by codeview_snarf(), and elf_new_wine_thunks().
Definition at line 473 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 413 of file symbol.c.
Referenced by codeview_snarf(), dwarf2_parse_inlined_subroutine(), dwarf2_parse_subprogram_block(), and stabs_parse().
Definition at line 68 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 1812 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 1832 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 787 of file symbol.c.
Referenced by resort_symbols().
WINE_DECLARE_DEBUG_CHANNEL | ( | dbghelp_symt | ) |
WINE_DEFAULT_DEBUG_CHANNEL | ( | dbghelp | ) |
Definition at line 41 of file symbol.c.
Referenced by sym_enum(), symt_enum_locals(), and test_obj_dispex().