ReactOS  0.4.12-dev-914-g71f84a3
symbols.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) 1998-2001 Klaus P. Gerlicher
4 
5 Module Name:
6 
7  symbols.h
8 
9 Abstract:
10 
11  HEADER for symbols.c
12 
13 Environment:
14 
15  LINUX 2.2.X
16  Kernel mode only
17 
18 Author:
19 
20  Klaus P. Gerlicher
21 
22 Revision History:
23 
24  15-Nov-2000: general cleanup of source files
25 
26 Copyright notice:
27 
28  This file may be distributed under the terms of the GNU Public License.
29 
30 --*/
31 
32 typedef struct _LOCAL_VARIABLE
33 {
34  char type_name[64];
35  char name[64];
39 
40 
42 {
44  char* name;
45 };
46 
47 typedef struct _DEBUG_MODULE_
48 {
56 
58 BOOLEAN LoadExports(void);
60 void UnloadExports(void);
61 BOOLEAN ScanExports(const char *pFind,PULONG pValue);
62 BOOLEAN ScanExportsByAddress(LPSTR *pFind,ULONG ulValue);
64 BOOLEAN LoadSymbolsFromConfig(BOOLEAN bIgnoreBootParams);
65 void UnloadSymbols(void);
67 LPSTR FindFunctionByAddress(ULONG ulValue,PULONG pulstart,PULONG pulend);
68 LPSTR FindSourceLineForAddress(ULONG addr,PULONG pulLineNumber,LPSTR* ppSrcStart,LPSTR* ppSrcEnd,LPSTR* ppFilename);
72 BOOLEAN FindAddressForSourceLine(ULONG ulLineNumber,LPSTR pFilename, PDEBUG_MODULE pMod,PULONG pValue);
78 void Evaluate(PICE_SYMBOLFILE_HEADER* pSymbols,LPSTR p);
82 
83 //extern ULONG kernel_end;
85 
86 //extern struct module fake_kernel_module;
87 #define KERNEL_START (0xc0000000)
88 
LPSTR ExtractTypeName(LPSTR p)
Definition: symbols.c:2412
BOOLEAN ScanExportsByAddress(LPSTR *pFind, ULONG ulValue)
Definition: symbols.c:599
struct _LOCAL_VARIABLE LOCAL_VARIABLE
PDEBUG_MODULE IsModuleLoaded(LPSTR p)
Definition: symbols.c:296
ULONG offset
Definition: symbols.h:36
char * LPSTR
Definition: xmlstorage.h:182
const char * filename
Definition: ioapi.h:135
struct _LOCAL_VARIABLE * PLOCAL_VARIABLE
struct _DEBUG_MODULE_ * next
Definition: symbols.h:49
LPSTR FindSourceLineForAddress(ULONG addr, PULONG pulLineNumber, LPSTR *ppSrcStart, LPSTR *ppSrcEnd, LPSTR *ppFilename)
Definition: symbols.c:1476
PICE_SYMBOLFILE_HEADER * apSymbols[32]
Definition: symbols.c:53
PVOID EntryPoint
Definition: symbols.h:52
void Evaluate(PICE_SYMBOLFILE_HEADER *pSymbols, LPSTR p)
Definition: symbols.c:2918
long LONG
Definition: pedump.c:60
#define DEBUG_MODULE_NAME_LEN
Definition: shared.h:79
LPSTR FindFunctionByAddress(ULONG ulValue, PULONG pulstart, PULONG pulend)
Definition: symbols.c:767
PDEBUG_MODULE FindModuleByName(LPSTR modname)
Definition: symbols.c:539
unsigned char BOOLEAN
struct _DEBUG_MODULE_ DEBUG_MODULE
ULONG size
Definition: symbols.h:50
GLuint index
Definition: glext.h:6031
PICE_SYMBOLFILE_HEADER * FindModuleSymbols(ULONG addr)
Definition: symbols.c:463
BOOLEAN LoadSymbolsFromConfig(BOOLEAN bIgnoreBootParams)
Definition: symbols.c:2116
BOOLEAN LoadExports(void)
Definition: symbols.c:1909
BOOLEAN InitFakeKernelModule(void)
ULONG ListSymbolStartingAt(PDEBUG_MODULE pMod, PICE_SYMBOLFILE_HEADER *pSymbols, ULONG index, LPSTR pOutput)
Definition: symbols.c:1792
LONG ExtractNumber(LPSTR p)
Definition: symbols.c:2436
__wchar_t WCHAR
Definition: xmlstorage.h:180
void UnloadExports(void)
Definition: symbols.c:1974
BOOLEAN SanityCheckExports(void)
Definition: symbols.c:1860
ULONG value
Definition: symbols.h:36
GLenum const GLvoid * addr
Definition: glext.h:9621
BOOLEAN ReloadSymbols(void)
Definition: symbols.c:2074
BOOLEAN bRegister
Definition: symbols.h:37
ULONG ConvertDecimalToUlong(LPSTR p)
PLOCAL_VARIABLE FindLocalsByAddress(ULONG addr)
Definition: symbols.c:1317
ULONG FindFunctionInModuleByName(LPSTR szFunctionname, PDEBUG_MODULE pMod)
Definition: symbols.c:955
unsigned int * PULONG
Definition: retypes.h:1
void UnloadSymbols(void)
Definition: symbols.c:2093
BOOLEAN ScanExports(const char *pFind, PULONG pValue)
Definition: symbols.c:327
char type_name[64]
Definition: symbols.h:34
BOOLEAN FindAddressForSourceLine(ULONG ulLineNumber, LPSTR pFilename, PDEBUG_MODULE pMod, PULONG pValue)
Definition: symbols.c:1689
Definition: name.c:36
PVOID BaseAddress
Definition: symbols.h:51
unsigned int ULONG
Definition: retypes.h:1
PICE_SYMBOLFILE_HEADER * LoadSymbols(LPSTR filename)
Definition: symbols.c:1990
GLfloat GLfloat p
Definition: glext.h:8902
PDEBUG_MODULE FindModuleFromAddress(ULONG addr)
Definition: symbols.c:507
PICE_SYMBOLFILE_HEADER * FindModuleSymbolsByModuleName(LPSTR modname)
Definition: symbols.c:574
struct _DEBUG_MODULE_SYMBOL_ syms
Definition: symbols.h:54
struct _DEBUG_MODULE_ * PDEBUG_MODULE
ULONG line
Definition: symbols.h:36