mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:17:10 +00:00
- Add 'simple' implementation of MmDbgCopyMemory to read/write virtual memory in a somewhat safe way (still no support for physical memory). Properly implement KdpCopyMemoryChunks as a wrapper around MmDbgCopyMemory and make most of the remaining unsafe copies use it instead of RtlCopyMemory. This fixes most of the remaining crashes during KD debugging as WinDbg/KD relies on the kernel support to handle bad addresses.
- Stub out the remaining missing global variables for the debugger data block -- fixes some cases of WinDbg failures and gives it a chance to handle errors instead of failing on a NULL read. Several of these variables are for functionality we don't yet implement, so I tried to put them where they are "least wrong". Everything besides the MmLoadedUserImageList variable is left unitialized -- KD should mostly be able to handle this properly. - Define correctly sized KDDEBUGGER_DATA64 for our kernel (needs to be done in a better way). svn path=/trunk/; revision=43863
This commit is contained in:
parent
c4d8068980
commit
82bd7858d1
21 changed files with 417 additions and 121 deletions
|
@ -87,7 +87,10 @@ typedef struct _POOL_HEADER
|
|||
C_ASSERT(sizeof(POOL_HEADER) == 8);
|
||||
C_ASSERT(sizeof(POOL_HEADER) == sizeof(LIST_ENTRY));
|
||||
|
||||
extern ULONG ExpNumberOfPagedPools;
|
||||
extern POOL_DESCRIPTOR NonPagedPoolDescriptor;
|
||||
extern PPOOL_DESCRIPTOR ExpPagedPoolDescriptor[16 + 1];
|
||||
extern PVOID PoolTrackTable;
|
||||
|
||||
//
|
||||
// END FIXFIX
|
||||
|
@ -156,6 +159,12 @@ extern PVOID MmSessionBase;
|
|||
extern PVOID MiSessionSpaceEnd;
|
||||
extern ULONG MmSizeOfPagedPoolInBytes;
|
||||
extern PMMPTE MmSystemPagePtes;
|
||||
extern PVOID MmSystemCacheStart;
|
||||
extern PVOID MmSystemCacheEnd;
|
||||
extern MMSUPPORT MmSystemCacheWs;
|
||||
extern SIZE_T MmAllocatedNonPagedPool;
|
||||
extern ULONG_PTR MmSubsectionBase;
|
||||
extern ULONG MmSpecialPoolTag;
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue