Fixed vma command to show kernel memory space too, not just user

svn path=/trunk/; revision=2566
This commit is contained in:
Phillip Susi 2002-01-27 00:34:59 +00:00
parent eea1010947
commit c4a09186d3

View file

@ -1948,8 +1948,9 @@ COMMAND_PROTOTYPE(ShowVirtualMemory)
DPRINT((0,"ShowVirtualMemory()\n"));
if( my_current )
vma = &(my_current->AddressSpace);
if(vma)
if( !vma )
vma = my_init_mm;
while( vma )
{
if(pArgs->Count == 0)
{
@ -1980,12 +1981,15 @@ COMMAND_PROTOTYPE(ShowVirtualMemory)
filename);
Print(OUTPUT_WINDOW,tempCmd);
if(WaitForKey()==FALSE)break;
if(WaitForKey()==FALSE)
break;
current_entry = current_entry->Flink;
}
}
if( vma == &(my_current->AddressSpace) )
vma = my_init_mm; // switch to kernel memory area
else vma = 0; // if we already did kernel, end loop
}
return TRUE;
}