|
1 // Copyright (c) 2006-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 // Definitions for the run mode debug test thread. |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef RMDEBUGSVRTHRD_H |
|
19 #define RMDEBUGSVRTHRD_H |
|
20 |
|
21 #include <e32property.h> |
|
22 |
|
23 #define SYMBIAN_RMDBG_MEMORYSIZE 1024*4 |
|
24 |
|
25 // Thread name |
|
26 _LIT(KDebugThreadName,"DebugThread"); |
|
27 |
|
28 |
|
29 IMPORT_C TInt TestRunCountSame( |
|
30 RProperty & aProperty, |
|
31 RTimer & aTimer, |
|
32 TTimeIntervalMicroSeconds32 aTimeOut = 500000 ); |
|
33 |
|
34 |
|
35 IMPORT_C TInt WaitForRunCountChange( |
|
36 RProperty & aProperty, |
|
37 RTimer & aTimer, |
|
38 TTimeIntervalMicroSeconds32 aTimeOut = 500000 ); |
|
39 |
|
40 const TUint KDebugThreadDefaultHeapSize=0x10000; |
|
41 |
|
42 // enumeration of functions which the target debug thread can call, the |
|
43 // debugger can choose to switch the thread to a different function by |
|
44 // writing the appropriate enumeration value into FunctionChooser, the |
|
45 // target thread will finish executing the function it is currently running |
|
46 // then execute the chosen function. |
|
47 enum TTestFunction |
|
48 { |
|
49 EDefaultFunction = 0, |
|
50 EStepFunction = 1, |
|
51 EDemandPagingFunction = 2, |
|
52 EMultipleTraceCalls = 3, |
|
53 EDoNothing = 4 |
|
54 }; |
|
55 |
|
56 class CDebugServThread : public CBase |
|
57 { |
|
58 public: |
|
59 CDebugServThread(); |
|
60 ~CDebugServThread(); |
|
61 static TInt ThreadFunction(TAny* aStarted); |
|
62 |
|
63 |
|
64 //Enums for all the properties used by this class |
|
65 enum TRMDebugProperties |
|
66 { |
|
67 ERMDBGRunCountProperty = 3 |
|
68 }; |
|
69 }; |
|
70 |
|
71 #endif // RMDEBUGSVRTHRD_H |