First public contribution.
1 // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\memmodel\epoc\direct\mmonitor.cpp
15 // Kernel crash debugger - machine independent portion
19 #include <kernel/monitor.h>
22 void Monitor::DumpMemModelProcessData(DProcess* aProcess)
26 void Monitor::DumpChunkData(DChunk* aChunk)
28 DMemModelChunk* pC=(DMemModelChunk*)aChunk;
29 Printf("Owning Process %08x\r\n",pC->iOwningProcess);
30 Printf("Size %x, MaxSize %x, Base %08x\r\n",pC->iSize,pC->iMaxSize,pC->iBase);
31 Printf("Attrib %x, StartPos %x\r\n",pC->iAttributes,pC->iStartPos);
32 Printf("Type %d, Region Base %08x, RegionSize %08x\r\n",pC->iChunkType,pC->iRegionBase,pC->iRegionSize);
35 void Monitor::MMProcessInfoCommand()
39 EXPORT_C TUint Monitor::MapAndLocateUserStack(DThread* aThread)
41 return (TUint)aThread->iUserStackRunAddress;
44 void Monitor::MDisplayCodeSeg(DCodeSeg* aSeg)
46 DMemModelCodeSeg* seg = (DMemModelCodeSeg*) aSeg;
47 Printf(" iDataAlloc: %08x\r\n",seg->iDataAlloc);
48 Printf(" iKernelData: %08x\r\n",seg->iKernelData);
51 EXPORT_C TInt Monitor::SwitchAddressSpace(DProcess*, TBool)