mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 08:08:38 +00:00
7a6072bcfa
* Several improvements to debug symbols handling. * A new (killer/awesome/...etc) feature has been introduced to kdbg: argument values support. Now backtraces contain not only usermode and kernelmode addresses translated, but also the argument values passed to the functions along the trace. * Brought to you by the Arty. svn path=/branches/cmake-bringup/; revision=52027
54 lines
996 B
C
54 lines
996 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS kernel
|
|
* FILE: lib/rossym/initum.c
|
|
* PURPOSE: Initialize library for use in user mode
|
|
*
|
|
* 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>
|
|
|
|
static PVOID
|
|
RosSymAllocMemUM(ULONG_PTR Size)
|
|
{
|
|
return RtlAllocateHeap(RtlGetProcessHeap(), 0, Size);
|
|
}
|
|
|
|
static VOID
|
|
RosSymFreeMemUM(PVOID Area)
|
|
{
|
|
RtlFreeHeap(RtlGetProcessHeap(), 0, Area);
|
|
}
|
|
|
|
static BOOLEAN
|
|
RosSymGetMemUM(ULONG_PTR *Target, PVOID SourceMem, ULONG Size)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
VOID
|
|
RosSymInitUserMode(VOID)
|
|
{
|
|
static ROSSYM_CALLBACKS KmCallbacks =
|
|
{
|
|
RosSymAllocMemUM,
|
|
RosSymFreeMemUM,
|
|
RosSymZwReadFile,
|
|
RosSymZwSeekFile,
|
|
RosSymGetMemUM
|
|
};
|
|
|
|
RosSymInit(&KmCallbacks);
|
|
}
|
|
|
|
/* EOF */
|