os/kernelhwsrv/kerneltest/e32test/rm_debug/d_rmdebugserver.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // t_rmdebugserver.h
    15 // Definitions for the run mode debug agent server side session.
    16 // 
    17 //
    18 
    19 #ifndef RMDEBUGSVR_H
    20 #define RMDEBUGSVR_H
    21 
    22 // Server name
    23 _LIT(KDebugServerName,"DebugServer");
    24 _LIT(KDebugDriverName,"MetroTrk Driver");
    25 _LIT(KDebugDriverFileName,"trkdriver.ldd");
    26 
    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;
    33 
    34 class CDebugServSession;
    35 
    36 
    37 // Server
    38 class CDebugServServer : public CServer2
    39 	{
    40 	public:
    41 		CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
    42 	public:
    43 		static TInt ThreadFunction(TAny* aStarted);
    44 	protected:
    45 		CDebugServServer(CActive::TPriority aActiveObjectPriority);
    46 	};
    47 
    48 // Server side session
    49 class CDebugServSession : public CSession2
    50 	{
    51 	public:
    52 		CDebugServSession();
    53 		~CDebugServSession();
    54 		void ConstructL ( void );
    55 		void ServiceL(const RMessage2& aMessage);
    56 
    57 		TInt ReadMemory(const RMessage2& aMessage);
    58 		TInt WriteMemory(const RMessage2& aMessage);
    59 
    60 //		TInt ReadProcessInfo(const RMessage2& aMessage);
    61 //		TInt ReadThreadInfo(const RMessage2& aMessage);
    62 
    63 		TInt ResumeThread(const RMessage2& aMessage);
    64 		TInt SuspendThread(const RMessage2& aMessage);
    65 
    66 	public:
    67 		RMetroTrkDriver iKernelDriver;	
    68 
    69 	private:
    70 	};
    71 
    72 
    73 #endif // RMDEBUGSVR_H