|
1 /* |
|
2 * Copyright (c) 2004-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 using System; |
|
19 using System.Collections.Generic; |
|
20 using System.Text; |
|
21 |
|
22 namespace CrashDebuggerLib.Platform |
|
23 { |
|
24 public static class ProcessNames |
|
25 { |
|
26 public const string KKernel = "ekern.exe"; |
|
27 } |
|
28 |
|
29 public static class NKernSizes |
|
30 { |
|
31 public const int KSizeOf_Pointer = 4; |
|
32 public const int KSizeOf_Byte = 1; |
|
33 public const int KSizeOf_TInt = 4; |
|
34 public const int KSizeOf_SDblQueLink = KSizeOf_Pointer + KSizeOf_Pointer; // sizeof( SDblQueLink.iPrev ) + sizeof( SDblQueLink.iNext ) |
|
35 public const int KSizeOf_TPriListLink = KSizeOf_SDblQueLink + ( 4 * KSizeOf_Byte ); // iPriority, iSpare1, iSpare2, iSpare3 |
|
36 } |
|
37 |
|
38 public static class NKernOffsets |
|
39 { |
|
40 public const int KOffsetOf_iRequestSemaphore_In_NThread = NKernSizes.KSizeOf_TPriListLink + |
|
41 NKernSizes.KSizeOf_Pointer + // NFastMutex* iHeldFastMutex |
|
42 NKernSizes.KSizeOf_Pointer + // NFastMutex* iWaitFastMutex |
|
43 NKernSizes.KSizeOf_Pointer + // TAny* iAddressSpace |
|
44 NKernSizes.KSizeOf_TInt + // TInt iTime |
|
45 NKernSizes.KSizeOf_TInt // TInt iTimeslice |
|
46 ; |
|
47 } |
|
48 } |