mirror of
https://github.com/reactos/reactos.git
synced 2025-07-25 17:53:48 +00:00
[ROSSYM_NEW]
* Add a PCH. svn path=/trunk/; revision=53236
This commit is contained in:
parent
e3a1ac4593
commit
6b69d04d59
17 changed files with 48 additions and 156 deletions
|
@ -1,15 +1,15 @@
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_library(rossym dummy.c)
|
add_library(rossym dummy.c)
|
||||||
else()
|
else()
|
||||||
add_definitions(-D_NTSYSTEM_)
|
add_definitions(-D_NTSYSTEM_)
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
delete.c
|
delete.c
|
||||||
dwarfabbrev.c
|
dwarfabbrev.c
|
||||||
dwarfaranges.c
|
dwarfaranges.c
|
||||||
dwarfcfa.c
|
dwarfcfa.c
|
||||||
dwarfinfo.c
|
|
||||||
dwarfget.c
|
dwarfget.c
|
||||||
|
dwarfinfo.c
|
||||||
dwarfopen.c
|
dwarfopen.c
|
||||||
dwarfpc.c
|
dwarfpc.c
|
||||||
dwarfpubnames.c
|
dwarfpubnames.c
|
||||||
|
@ -19,6 +19,7 @@ list(APPEND SOURCE
|
||||||
initum.c
|
initum.c
|
||||||
pe.c
|
pe.c
|
||||||
zwfile.c)
|
zwfile.c)
|
||||||
add_library(rossym ${SOURCE})
|
add_library(rossym ${SOURCE})
|
||||||
add_dependencies(rossym psdk bugcodes)
|
add_pch(rossym precomp.h)
|
||||||
|
add_dependencies(rossym psdk bugcodes)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -7,17 +7,7 @@
|
||||||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include "pe.h"
|
|
||||||
#include "dwarf.h"
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
RosSymDelete(PROSSYM_INFO RosSymInfo)
|
RosSymDelete(PROSSYM_INFO RosSymInfo)
|
||||||
|
|
|
@ -6,18 +6,9 @@
|
||||||
* explicit reference counting if this turns out not to be acceptable.
|
* explicit reference counting if this turns out not to be acceptable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "rossym.h"
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include "dwarf.h"
|
|
||||||
|
|
||||||
static int parseabbrevs(Dwarf*, ulong, DwarfAbbrev*, DwarfAttr*, int*, int*);
|
static int parseabbrevs(Dwarf*, ulong, DwarfAbbrev*, DwarfAttr*, int*, int*);
|
||||||
DwarfAbbrev *dwarfgetabbrev(Dwarf*, ulong, ulong);
|
DwarfAbbrev *dwarfgetabbrev(Dwarf*, ulong, ulong);
|
||||||
|
|
|
@ -2,16 +2,9 @@
|
||||||
* Dwarf address ranges parsing code.
|
* Dwarf address ranges parsing code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
|
|
||||||
int
|
int
|
||||||
dwarfaddrtounit(Dwarf *d, ulong addr, ulong *unit)
|
dwarfaddrtounit(Dwarf *d, ulong addr, ulong *unit)
|
||||||
|
|
|
@ -8,17 +8,9 @@
|
||||||
* the same encoding.
|
* the same encoding.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "pe.h"
|
|
||||||
#include "dwarf.h"
|
|
||||||
|
|
||||||
#define trace 1
|
#define trace 1
|
||||||
|
|
||||||
|
|
|
@ -2,17 +2,9 @@
|
||||||
* Dwarf data format parsing routines.
|
* Dwarf data format parsing routines.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
#include "pe.h"
|
|
||||||
|
|
||||||
ulong
|
ulong
|
||||||
dwarfget1(DwarfBuf *b)
|
dwarfget1(DwarfBuf *b)
|
||||||
|
|
|
@ -2,19 +2,8 @@
|
||||||
* Dwarf info parse and search.
|
* Dwarf info parse and search.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntifs.h>
|
|
||||||
#include <ndk/ntndk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
#include "pe.h"
|
|
||||||
#include <windef.h>
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
#define NTOSAPI
|
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
|
#include <precomp.h>
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
#include "pe.h"
|
|
||||||
|
|
||||||
/* Adapted for PE */
|
/* Adapted for PE */
|
||||||
|
|
||||||
|
|
|
@ -11,18 +11,9 @@
|
||||||
* The encoding may be small, but it sure isn't simple!
|
* The encoding may be small, but it sure isn't simple!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
#include "pe.h"
|
|
||||||
|
|
||||||
#define trace 0
|
#define trace 0
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
#define NTOSAPI
|
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
|
#include <precomp.h>
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_dwarfnametounit(Dwarf *d, char *name, DwarfBlock *bl, DwarfSym *s)
|
_dwarfnametounit(Dwarf *d, char *name, DwarfBlock *bl, DwarfSym *s)
|
||||||
|
|
|
@ -35,16 +35,9 @@
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ntddk.h>
|
#include <precomp.h>
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "rossym.h"
|
|
||||||
#include "dwarf.h"
|
|
||||||
#include "pe.h"
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
RosSymGetAddressInformation
|
RosSymGetAddressInformation
|
||||||
|
|
|
@ -7,18 +7,7 @@
|
||||||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntifs.h>
|
|
||||||
#include <ndk/ntndk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include "pe.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
|
|
||||||
#define NDEBUG
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#define SYMBOL_SIZE 18
|
#define SYMBOL_SIZE 18
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#include <precomp.h>
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
|
|
||||||
ROSSYM_CALLBACKS RosSymCallbacks;
|
ROSSYM_CALLBACKS RosSymCallbacks;
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,7 @@
|
||||||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#include <precomp.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#define NTOS_MODE_USER
|
|
||||||
#include <ndk/ntndk.h>
|
|
||||||
#include <pseh/pseh.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
static PVOID
|
static PVOID
|
||||||
RosSymAllocMemUM(ULONG_PTR Size)
|
RosSymAllocMemUM(ULONG_PTR Size)
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntifs.h>
|
|
||||||
#include <ndk/ntndk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
#include <ntimage.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
#include "dwarf.h"
|
|
||||||
#include "pe.h"
|
|
||||||
#include "rossympriv.h"
|
|
||||||
|
|
||||||
PeSect *pesection(Pe *pe, const char *name)
|
PeSect *pesection(Pe *pe, const char *name)
|
||||||
{
|
{
|
||||||
|
|
12
reactos/lib/rossym_new/precomp.h
Normal file
12
reactos/lib/rossym_new/precomp.h
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
#define NTOSAPI
|
||||||
|
#include <ntifs.h>
|
||||||
|
#include <ntimage.h>
|
||||||
|
#include <ndk/psfuncs.h>
|
||||||
|
#include <ndk/rtlfuncs.h>
|
||||||
|
#include <reactos/rossym.h>
|
||||||
|
|
||||||
|
#include "rossympriv.h"
|
||||||
|
#include "pe.h"
|
||||||
|
#include "dwarf.h"
|
||||||
|
|
||||||
|
#include <debug.h>
|
|
@ -7,13 +7,7 @@
|
||||||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NTOSAPI
|
#include <precomp.h>
|
||||||
#include <ntddk.h>
|
|
||||||
#include <reactos/rossym.h>
|
|
||||||
#include "rossympriv.h"
|
|
||||||
|
|
||||||
#define NDEBUG
|
|
||||||
#include <debug.h>
|
|
||||||
|
|
||||||
NTSTATUS RosSymStatus;
|
NTSTATUS RosSymStatus;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue