mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
Stefan Ginsberg <stefan__100__@hotmail.com>
- Remove KiRosPrintAddress export from ntoskrnl_i386.def, and CcRos* apis too. - Make win32k use KeRosDumpStackFrames instead of KiRosPrintAddress. svn path=/trunk/; revision=33646
This commit is contained in:
parent
1e5dd70adb
commit
8522c6766e
|
@ -3,9 +3,6 @@
|
|||
; ReactOS Operating System
|
||||
;
|
||||
EXPORTS
|
||||
CcRosInitializeFileCache@16
|
||||
CcRosReleaseFileCache@4
|
||||
CcRosTraceCacheMap@8
|
||||
CcCanIWrite@16
|
||||
CcCopyRead@24
|
||||
CcCopyWrite@20
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifdef GDI_DEBUG
|
||||
|
||||
BOOLEAN STDCALL KiRosPrintAddress(PVOID Address);
|
||||
NTSYSAPI VOID NTAPI KeRosDumpStackFrames(PULONG, ULONG);
|
||||
NTSYSAPI ULONG NTAPI RtlWalkFrameChain(OUT PVOID *Callers, IN ULONG Count, IN ULONG Flags);
|
||||
|
||||
static int leak_reported = 0;
|
||||
|
@ -79,14 +79,13 @@ done:
|
|||
DbgPrint("Worst GDI Handle leak offenders (out of %i unique locations):\n", n);
|
||||
for (i = 0; i < n && h[i].count > 1; i++)
|
||||
{
|
||||
int j;
|
||||
/* Print out the allocation count */
|
||||
DbgPrint(" %i allocs: ", h[i].count);
|
||||
for (j = 0; j < GDI_STACK_LEVELS; j++)
|
||||
{
|
||||
ULONG Addr = GDIHandleAllocator[h[i].idx][j];
|
||||
if (!KiRosPrintAddress((PVOID)Addr))
|
||||
DbgPrint("<%X>", Addr);
|
||||
}
|
||||
|
||||
/* Dump the frames */
|
||||
KeRosDumpStackFrames(GDIHandleAllocator[h[i].idx], GDI_STACK_LEVELS);
|
||||
|
||||
/* Print new line for better readability */
|
||||
DbgPrint("\n");
|
||||
}
|
||||
if (i < n && h[i].count == 1)
|
||||
|
|
|
@ -9,15 +9,9 @@
|
|||
/** INCLUDES ******************************************************************/
|
||||
|
||||
#include <w32k.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FIXME include right header for KeRosDumpStackFrames */
|
||||
VOID NTAPI KeRosDumpStackFrames(PULONG, ULONG);
|
||||
|
||||
//#define GDI_DEBUG
|
||||
|
||||
#define GDI_ENTRY_TO_INDEX(ht, e) \
|
||||
(((ULONG_PTR)(e) - (ULONG_PTR)&((ht)->Entries[0])) / sizeof(GDI_TABLE_ENTRY))
|
||||
#define GDI_HANDLE_GET_ENTRY(HandleTable, h) \
|
||||
|
@ -83,7 +77,7 @@ OBJ_TYPE_INFO ObjTypeInfo[] =
|
|||
static LARGE_INTEGER ShortDelay;
|
||||
|
||||
/** DEBUGGING *****************************************************************/
|
||||
|
||||
//#define GDI_DEBUG
|
||||
#include "gdidbg.c"
|
||||
|
||||
/** INTERNAL FUNCTIONS ********************************************************/
|
||||
|
|
Loading…
Reference in a new issue