Author: ion
Date: Fri Oct 20 09:41:01 2006
New Revision: 24576
URL:
http://svn.reactos.org/svn/reactos?rev=24576&view=rev
Log:
- Fix kernel symbol loading.
Modified:
trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c
Modified: trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kdbg/kdb_symbols.…
==============================================================================
--- trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c (original)
+++ trunk/reactos/ntoskrnl/kdbg/kdb_symbols.c Fri Oct 20 09:41:01 2006
@@ -595,13 +595,13 @@
BOOLEAN IsRaw;
PLIST_ENTRY ListHead, NextEntry;
PLDR_DATA_TABLE_ENTRY LdrEntry;
+ PUNICODE_STRING ModuleName = FileName;
UNICODE_STRING NtosSymName = RTL_CONSTANT_STRING(L"ntoskrnl.sym");
UNICODE_STRING NtosName = RTL_CONSTANT_STRING(L"ntoskrnl.exe");
- DPRINT("KdbSymProcessBootSymbols(%wZ)\n", FileName);
if (RtlEqualUnicodeString(FileName, &NtosSymName, TRUE))
{
- FileName = &NtosName;
+ ModuleName = &NtosName;
IsRaw = TRUE;
}
else
@@ -609,7 +609,7 @@
IsRaw = FALSE;
}
- ModuleObject = LdrGetModuleObject(FileName);
+ ModuleObject = LdrGetModuleObject(ModuleName);
if (ModuleObject != NULL)
{
@@ -647,6 +647,7 @@
if (IsRaw)
{
+ DPRINT1("Data: %p %p %wZ\n", LdrEntry->DllBase,
LdrEntry->SizeOfImage, &LdrEntry->FullDllName);
if (! RosSymCreateFromRaw(LdrEntry->DllBase,
LdrEntry->SizeOfImage,
(PROSSYM_INFO*)&ModuleObject->PatchInformation))