mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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"));
|
DPRINT((0,"ShowVirtualMemory()\n"));
|
||||||
if( my_current )
|
if( my_current )
|
||||||
vma = &(my_current->AddressSpace);
|
vma = &(my_current->AddressSpace);
|
||||||
|
if( !vma )
|
||||||
if(vma)
|
vma = my_init_mm;
|
||||||
|
while( vma )
|
||||||
{
|
{
|
||||||
if(pArgs->Count == 0)
|
if(pArgs->Count == 0)
|
||||||
{
|
{
|
||||||
|
@ -1980,12 +1981,15 @@ COMMAND_PROTOTYPE(ShowVirtualMemory)
|
||||||
filename);
|
filename);
|
||||||
Print(OUTPUT_WINDOW,tempCmd);
|
Print(OUTPUT_WINDOW,tempCmd);
|
||||||
|
|
||||||
if(WaitForKey()==FALSE)break;
|
if(WaitForKey()==FALSE)
|
||||||
|
break;
|
||||||
current_entry = current_entry->Flink;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue