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.
sl@0
     1
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// t_rmdebugserver.h
sl@0
    15
// Definitions for the run mode debug agent server side session.
sl@0
    16
// 
sl@0
    17
//
sl@0
    18
sl@0
    19
#ifndef RMDEBUGSVR_H
sl@0
    20
#define RMDEBUGSVR_H
sl@0
    21
sl@0
    22
// Server name
sl@0
    23
_LIT(KDebugServerName,"DebugServer");
sl@0
    24
_LIT(KDebugDriverName,"MetroTrk Driver");
sl@0
    25
_LIT(KDebugDriverFileName,"trkdriver.ldd");
sl@0
    26
sl@0
    27
// A version must be specifyed when creating a session with the server
sl@0
    28
const TUint KDebugServMajorVersionNumber=0;
sl@0
    29
const TUint KDebugServMinorVersionNumber=1;
sl@0
    30
const TUint KDebugServBuildVersionNumber=1;
sl@0
    31
const TUint KDefaultMessageSlots=4;
sl@0
    32
const TUint KDefaultHeapSize=0x10000;
sl@0
    33
sl@0
    34
class CDebugServSession;
sl@0
    35
sl@0
    36
sl@0
    37
// Server
sl@0
    38
class CDebugServServer : public CServer2
sl@0
    39
	{
sl@0
    40
	public:
sl@0
    41
		CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const;
sl@0
    42
	public:
sl@0
    43
		static TInt ThreadFunction(TAny* aStarted);
sl@0
    44
	protected:
sl@0
    45
		CDebugServServer(CActive::TPriority aActiveObjectPriority);
sl@0
    46
	};
sl@0
    47
sl@0
    48
// Server side session
sl@0
    49
class CDebugServSession : public CSession2
sl@0
    50
	{
sl@0
    51
	public:
sl@0
    52
		CDebugServSession();
sl@0
    53
		~CDebugServSession();
sl@0
    54
		void ConstructL ( void );
sl@0
    55
		void ServiceL(const RMessage2& aMessage);
sl@0
    56
sl@0
    57
		TInt ReadMemory(const RMessage2& aMessage);
sl@0
    58
		TInt WriteMemory(const RMessage2& aMessage);
sl@0
    59
sl@0
    60
//		TInt ReadProcessInfo(const RMessage2& aMessage);
sl@0
    61
//		TInt ReadThreadInfo(const RMessage2& aMessage);
sl@0
    62
sl@0
    63
		TInt ResumeThread(const RMessage2& aMessage);
sl@0
    64
		TInt SuspendThread(const RMessage2& aMessage);
sl@0
    65
sl@0
    66
	public:
sl@0
    67
		RMetroTrkDriver iKernelDriver;	
sl@0
    68
sl@0
    69
	private:
sl@0
    70
	};
sl@0
    71
sl@0
    72
sl@0
    73
#endif // RMDEBUGSVR_H