ReactOS 0.4.16-dev-747-gbc52d5f
|
#include "../../dll/win32/dbghelp/compat.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <wchar.h>
#include "rsym.h"
Go to the source code of this file.
Classes | |
struct | StringEntry |
struct | StringHashTable |
struct | DbgHelpLineEntry |
struct | DbgHelpStringTab |
Macros | |
#define | MAX_PATH 260 |
#define | MAX_SYM_NAME 2000 |
Functions | |
static unsigned int | ComputeDJBHash (const char *name) |
static void | AddStringToHash (struct StringHashTable *StringTable, unsigned int hash, ULONG Offset, char *StringPtr) |
static void | StringHashTableInit (struct StringHashTable *StringTable, ULONG StringsLength, char *StringsBase) |
static void | StringHashTableFree (struct StringHashTable *StringTable) |
static int | CompareSymEntry (const PROSSYM_ENTRY SymEntry1, const PROSSYM_ENTRY SymEntry2) |
static int | GetStabInfo (void *FileData, PIMAGE_FILE_HEADER PEFileHeader, PIMAGE_SECTION_HEADER PESectionHeaders, ULONG *StabSymbolsLength, void **StabSymbolsBase, ULONG *StabStringsLength, void **StabStringsBase) |
static int | GetCoffInfo (void *FileData, PIMAGE_FILE_HEADER PEFileHeader, PIMAGE_SECTION_HEADER PESectionHeaders, ULONG *CoffSymbolsLength, void **CoffSymbolsBase, ULONG *CoffStringsLength, void **CoffStringsBase) |
static ULONG | FindOrAddString (struct StringHashTable *StringTable, char *StringToFind, ULONG *StringsLength, void *StringsBase) |
static int | ConvertStabs (ULONG *SymbolsCount, PROSSYM_ENTRY *SymbolsBase, ULONG *StringsLength, void *StringsBase, ULONG StabSymbolsLength, void *StabSymbolsBase, ULONG StabStringsLength, void *StabStringsBase, ULONG_PTR ImageBase, PIMAGE_FILE_HEADER PEFileHeader, PIMAGE_SECTION_HEADER PESectionHeaders) |
static int | ConvertCoffs (ULONG *SymbolsCount, PROSSYM_ENTRY *SymbolsBase, ULONG *StringsLength, void *StringsBase, ULONG CoffSymbolsLength, void *CoffSymbolsBase, ULONG CoffStringsLength, void *CoffStringsBase, ULONG_PTR ImageBase, PIMAGE_FILE_HEADER PEFileHeader, PIMAGE_SECTION_HEADER PESectionHeaders) |
static struct DbgHelpLineEntry * | DbgHelpAddLineEntry (struct DbgHelpStringTab *tab) |
static int | DbgHelpAddStringToTable (struct DbgHelpStringTab *tab, char *name) |
const char * | DbgHelpGetString (struct DbgHelpStringTab *tab, int id) |
static char * | StrDupShortenPath (char *PathChop, char *FilePath) |
static BOOL | DbgHelpAddLineNumber (PSRCCODEINFO LineInfo, void *UserContext) |
static int | ConvertDbgHelp (void *process, DWORD module_base, char *SourcePath, ULONG *SymbolsCount, PROSSYM_ENTRY *SymbolsBase, ULONG *StringsLength, void **StringsBase) |
static int | MergeStabsAndCoffs (ULONG *MergedSymbolCount, PROSSYM_ENTRY *MergedSymbols, ULONG StabSymbolsCount, PROSSYM_ENTRY StabSymbols, ULONG CoffSymbolsCount, PROSSYM_ENTRY CoffSymbols) |
static PIMAGE_SECTION_HEADER | FindSectionForRVA (DWORD RVA, unsigned NumberOfSections, PIMAGE_SECTION_HEADER SectionHeaders) |
static int | ProcessRelocations (ULONG *ProcessedRelocsLength, void **ProcessedRelocs, void *RawData, PIMAGE_OPTIONAL_HEADER OptHeader, unsigned NumberOfSections, PIMAGE_SECTION_HEADER SectionHeaders) |
static const BYTE * | GetSectionName (void *StringsBase, const BYTE *SectionTitle) |
static int | CreateOutputFile (FILE *OutFile, void *InData, PIMAGE_DOS_HEADER InDosHeader, PIMAGE_FILE_HEADER InFileHeader, PIMAGE_OPTIONAL_HEADER InOptHeader, PIMAGE_SECTION_HEADER InSectionHeaders, ULONG RosSymLength, void *RosSymSection) |
int | main (int argc, char *argv[]) |
|
static |
Definition at line 65 of file rsym.c.
Referenced by FindOrAddString(), and StringHashTableInit().
|
static |
Definition at line 114 of file rsym.c.
Referenced by ConvertCoffs(), ConvertDbgHelp(), ConvertStabs(), and MergeStabsAndCoffs().
Definition at line 51 of file rsym.c.
Referenced by DbgHelpAddStringToTable(), FindOrAddString(), and StringHashTableInit().
|
static |
Definition at line 371 of file rsym.c.
Referenced by main().
|
static |
Definition at line 640 of file rsym.c.
Referenced by main().
|
static |
Definition at line 231 of file rsym.c.
Referenced by main().
|
static |
Definition at line 912 of file rsym.c.
Referenced by main().
|
static |
Definition at line 482 of file rsym.c.
Referenced by DbgHelpAddLineNumber().
|
static |
Definition at line 562 of file rsym.c.
Referenced by ConvertDbgHelp().
|
static |
Definition at line 502 of file rsym.c.
Referenced by DbgHelpAddLineNumber().
const char * DbgHelpGetString | ( | struct DbgHelpStringTab * | tab, |
int | id | ||
) |
|
static |
Definition at line 202 of file rsym.c.
Referenced by ConvertCoffs(), and ConvertStabs().
|
static |
Definition at line 808 of file rsym.c.
Referenced by CreateOutputFile(), and ProcessRelocations().
|
static |
Definition at line 900 of file rsym.c.
Referenced by CreateOutputFile().
|
static |
Definition at line 140 of file rsym.c.
Referenced by main().
Definition at line 1230 of file rsym.c.
|
static |
Definition at line 716 of file rsym.c.
Referenced by main().
|
static |
Definition at line 825 of file rsym.c.
Referenced by CreateOutputFile().
Definition at line 548 of file rsym.c.
Referenced by DbgHelpAddLineNumber().
|
static |
Definition at line 97 of file rsym.c.
Referenced by ConvertCoffs(), and ConvertStabs().
|
static |
Definition at line 78 of file rsym.c.
Referenced by ConvertCoffs(), and ConvertStabs().