|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\memmodel\epoc\direct\mmonitor.cpp |
|
15 // Kernel crash debugger - machine independent portion |
|
16 // |
|
17 // |
|
18 |
|
19 #include <kernel/monitor.h> |
|
20 #include <memmodel.h> |
|
21 |
|
22 void Monitor::DumpMemModelProcessData(DProcess* aProcess) |
|
23 { |
|
24 } |
|
25 |
|
26 void Monitor::DumpChunkData(DChunk* aChunk) |
|
27 { |
|
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); |
|
33 } |
|
34 |
|
35 void Monitor::MMProcessInfoCommand() |
|
36 { |
|
37 } |
|
38 |
|
39 EXPORT_C TUint Monitor::MapAndLocateUserStack(DThread* aThread) |
|
40 { |
|
41 return (TUint)aThread->iUserStackRunAddress; |
|
42 } |
|
43 |
|
44 void Monitor::MDisplayCodeSeg(DCodeSeg* aSeg) |
|
45 { |
|
46 DMemModelCodeSeg* seg = (DMemModelCodeSeg*) aSeg; |
|
47 Printf(" iDataAlloc: %08x\r\n",seg->iDataAlloc); |
|
48 Printf(" iKernelData: %08x\r\n",seg->iKernelData); |
|
49 } |
|
50 |
|
51 EXPORT_C TInt Monitor::SwitchAddressSpace(DProcess*, TBool) |
|
52 { |
|
53 return KErrNone; |
|
54 } |