mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 05:01:03 +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,24 +1,25 @@
|
|||
|
||||
if(MSVC)
|
||||
add_library(rossym dummy.c)
|
||||
add_library(rossym dummy.c)
|
||||
else()
|
||||
add_definitions(-D_NTSYSTEM_)
|
||||
list(APPEND SOURCE
|
||||
delete.c
|
||||
dwarfabbrev.c
|
||||
dwarfaranges.c
|
||||
dwarfcfa.c
|
||||
dwarfinfo.c
|
||||
dwarfget.c
|
||||
dwarfopen.c
|
||||
dwarfpc.c
|
||||
dwarfpubnames.c
|
||||
find.c
|
||||
fromfile.c
|
||||
init.c
|
||||
initum.c
|
||||
pe.c
|
||||
zwfile.c)
|
||||
add_library(rossym ${SOURCE})
|
||||
add_dependencies(rossym psdk bugcodes)
|
||||
add_definitions(-D_NTSYSTEM_)
|
||||
list(APPEND SOURCE
|
||||
delete.c
|
||||
dwarfabbrev.c
|
||||
dwarfaranges.c
|
||||
dwarfcfa.c
|
||||
dwarfget.c
|
||||
dwarfinfo.c
|
||||
dwarfopen.c
|
||||
dwarfpc.c
|
||||
dwarfpubnames.c
|
||||
find.c
|
||||
fromfile.c
|
||||
init.c
|
||||
initum.c
|
||||
pe.c
|
||||
zwfile.c)
|
||||
add_library(rossym ${SOURCE})
|
||||
add_pch(rossym precomp.h)
|
||||
add_dependencies(rossym psdk bugcodes)
|
||||
endif()
|
||||
|
|
|
@ -7,17 +7,7 @@
|
|||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include <ntimage.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "rossympriv.h"
|
||||
#include "pe.h"
|
||||
#include "dwarf.h"
|
||||
#include <precomp.h>
|
||||
|
||||
VOID
|
||||
RosSymDelete(PROSSYM_INFO RosSymInfo)
|
||||
|
|
|
@ -6,18 +6,9 @@
|
|||
* explicit reference counting if this turns out not to be acceptable.
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <ntimage.h>
|
||||
#include <precomp.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "rossym.h"
|
||||
#include "rossympriv.h"
|
||||
#include "dwarf.h"
|
||||
|
||||
static int parseabbrevs(Dwarf*, ulong, DwarfAbbrev*, DwarfAttr*, int*, int*);
|
||||
DwarfAbbrev *dwarfgetabbrev(Dwarf*, ulong, ulong);
|
||||
|
|
|
@ -2,16 +2,9 @@
|
|||
* Dwarf address ranges parsing code.
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <ntimage.h>
|
||||
#include <precomp.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "dwarf.h"
|
||||
|
||||
int
|
||||
dwarfaddrtounit(Dwarf *d, ulong addr, ulong *unit)
|
||||
|
|
|
@ -8,17 +8,9 @@
|
|||
* the same encoding.
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <ntimage.h>
|
||||
#include <precomp.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "pe.h"
|
||||
#include "dwarf.h"
|
||||
|
||||
#define trace 1
|
||||
|
||||
|
|
|
@ -2,17 +2,9 @@
|
|||
* Dwarf data format parsing routines.
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <ntimage.h>
|
||||
#include <precomp.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "dwarf.h"
|
||||
#include "pe.h"
|
||||
|
||||
ulong
|
||||
dwarfget1(DwarfBuf *b)
|
||||
|
|
|
@ -2,19 +2,8 @@
|
|||
* Dwarf info parse and search.
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntifs.h>
|
||||
#include <ndk/ntndk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <ntimage.h>
|
||||
|
||||
#include <precomp.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "dwarf.h"
|
||||
#include "pe.h"
|
||||
#include <windef.h>
|
||||
|
||||
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
|
||||
#include <debug.h>
|
||||
|
||||
#include "dwarf.h"
|
||||
#include "pe.h"
|
||||
|
||||
/* Adapted for PE */
|
||||
|
||||
|
|
|
@ -11,18 +11,9 @@
|
|||
* The encoding may be small, but it sure isn't simple!
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <ntimage.h>
|
||||
#include <precomp.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "dwarf.h"
|
||||
#include "pe.h"
|
||||
|
||||
#define trace 0
|
||||
|
||||
enum
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include <ntimage.h>
|
||||
|
||||
#include <precomp.h>
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "dwarf.h"
|
||||
|
||||
static int
|
||||
_dwarfnametounit(Dwarf *d, char *name, DwarfBlock *bl, DwarfSym *s)
|
||||
|
|
|
@ -35,16 +35,9 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <precomp.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "rossym.h"
|
||||
#include "dwarf.h"
|
||||
#include "pe.h"
|
||||
|
||||
BOOLEAN
|
||||
RosSymGetAddressInformation
|
||||
|
|
|
@ -7,18 +7,7 @@
|
|||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#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>
|
||||
#include <precomp.h>
|
||||
|
||||
#define SYMBOL_SIZE 18
|
||||
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <precomp.h>
|
||||
|
||||
ROSSYM_CALLBACKS RosSymCallbacks;
|
||||
|
||||
|
|
|
@ -7,16 +7,7 @@
|
|||
* PROGRAMMERS: Ge van Geldorp (gvg@reactos.com)
|
||||
*/
|
||||
|
||||
#define WIN32_NO_STATUS
|
||||
#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>
|
||||
#include <precomp.h>
|
||||
|
||||
static PVOID
|
||||
RosSymAllocMemUM(ULONG_PTR Size)
|
||||
|
|
|
@ -1,16 +1,6 @@
|
|||
#define NTOSAPI
|
||||
#include <ntifs.h>
|
||||
#include <ndk/ntndk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
#include <ntimage.h>
|
||||
#include <precomp.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#include "dwarf.h"
|
||||
#include "pe.h"
|
||||
#include "rossympriv.h"
|
||||
|
||||
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)
|
||||
*/
|
||||
|
||||
#define NTOSAPI
|
||||
#include <ntddk.h>
|
||||
#include <reactos/rossym.h>
|
||||
#include "rossympriv.h"
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
#include <precomp.h>
|
||||
|
||||
NTSTATUS RosSymStatus;
|
||||
|
||||
|
|
Loading…
Reference in a new issue