Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
15 // Definitions for the run mode debug agent server side session.
23 _LIT(KDebugServerName,"DebugServer");
24 _LIT(KDebugDriverName,"MetroTrk Driver");
25 _LIT(KDebugDriverFileName,"trkdriver.ldd");
27 // A version must be specifyed when creating a session with the server
28 const TUint KDebugServMajorVersionNumber=0;
29 const TUint KDebugServMinorVersionNumber=1;
30 const TUint KDebugServBuildVersionNumber=1;
31 const TUint KDefaultMessageSlots=4;
32 const TUint KDefaultHeapSize=0x10000;
34 class CDebugServSession;
38 class CDebugServServer : public CServer2
41 CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
43 static TInt ThreadFunction(TAny* aStarted);
45 CDebugServServer(CActive::TPriority aActiveObjectPriority);
48 // Server side session
49 class CDebugServSession : public CSession2
54 void ConstructL ( void );
55 void ServiceL(const RMessage2& aMessage);
57 TInt ReadMemory(const RMessage2& aMessage);
58 TInt WriteMemory(const RMessage2& aMessage);
60 // TInt ReadProcessInfo(const RMessage2& aMessage);
61 // TInt ReadThreadInfo(const RMessage2& aMessage);
63 TInt ResumeThread(const RMessage2& aMessage);
64 TInt SuspendThread(const RMessage2& aMessage);
67 RMetroTrkDriver iKernelDriver;
73 #endif // RMDEBUGSVR_H