sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Definitions for the run mode debug test thread. sl@0: // sl@0: // sl@0: sl@0: #ifndef RMDEBUGSVRTHRD_H sl@0: #define RMDEBUGSVRTHRD_H sl@0: sl@0: #define SYMBIAN_RMDBG_MEMORYSIZE 1024*4 sl@0: sl@0: // Thread name sl@0: _LIT(KDebugThreadName,"DebugThread"); sl@0: sl@0: const TUint KDebugThreadDefaultHeapSize=0x10000; sl@0: sl@0: // enumeration of functions which the target debug thread can call, the sl@0: // debugger can choose to switch the thread to a different function by sl@0: // writing the appropriate enumeration value into FunctionChooser, the sl@0: // target thread will finish executing the function it is currently running sl@0: // then execute the chosen function. sl@0: enum TTestFunction sl@0: { sl@0: EDefaultFunction = 0, sl@0: EStepFunction = 1, sl@0: EDemandPagingFunction = 2, sl@0: EMultipleTraceCalls = 3, sl@0: }; sl@0: sl@0: class CDebugServThread : public CBase sl@0: { sl@0: public: sl@0: CDebugServThread(); sl@0: static TInt ThreadFunction(TAny* aStarted); sl@0: sl@0: public: sl@0: }; sl@0: sl@0: #endif // RMDEBUGSVRTHRD_H