mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 00:54:18 +00:00
Fixed vma command to show kernel memory space too, not just user
svn path=/trunk/; revision=2566
This commit is contained in:
parent
eea1010947
commit
c4a09186d3
1 changed files with 43 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue