- Add 'simple' implementation of MmDbgCopyMemory to read/write virtual memory in...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 31 Oct 2009 01:02:35 +0000 (01:02 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 31 Oct 2009 01:02:35 +0000 (01:02 +0000)
commit82bd7858d1467c70d980ca7e9b8a24a0408d0918
tree5744663d69a76b110cdef9f14977f4ce927ba296
parentc4d80689806fb218a6d8d27758d743da4af78a8f
- 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
21 files changed:
reactos/include/psdk/wdbgexts.h
reactos/ntoskrnl/include/internal/io.h
reactos/ntoskrnl/include/internal/kd64.h
reactos/ntoskrnl/include/internal/mm.h
reactos/ntoskrnl/io/iomgr/iomgr.c
reactos/ntoskrnl/kd64/i386/kdsup.c
reactos/ntoskrnl/kd64/kdapi.c
reactos/ntoskrnl/kd64/kdbreak.c
reactos/ntoskrnl/kd64/kddata.c
reactos/ntoskrnl/mm/ARM3/arm/init.c
reactos/ntoskrnl/mm/ARM3/expool.c
reactos/ntoskrnl/mm/ARM3/i386/init.c
reactos/ntoskrnl/mm/ARM3/miarm.h
reactos/ntoskrnl/mm/ARM3/pool.c
reactos/ntoskrnl/mm/freelist.c
reactos/ntoskrnl/mm/mmdbg.c [new file with mode: 0644]
reactos/ntoskrnl/mm/mminit.c
reactos/ntoskrnl/mm/pagefile.c
reactos/ntoskrnl/mm/section.c
reactos/ntoskrnl/mm/sysldr.c
reactos/ntoskrnl/ntoskrnl-generic.rbuild