equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MEMSPYDRIVERUTILS_H |
|
19 #define MEMSPYDRIVERUTILS_H |
|
20 |
|
21 // System includes |
|
22 #include <kernel.h> |
|
23 #include <memspy/driver/memspydriverpanics.h> |
|
24 |
|
25 // User includes |
|
26 #include "MemSpyDriverLog.h" |
|
27 |
|
28 // Classes referenced |
|
29 class TMemSpyDriverRegSet; |
|
30 class DMemSpyDriverOSAdaption; |
|
31 |
|
32 |
|
33 class MemSpyDriverUtils |
|
34 { |
|
35 public: |
|
36 static void DataDump( const char* aFmt, const TUint8* aAddress, TInt aLength, TInt aMaxLength); |
|
37 static void PanicThread( DThread& aThread, TMemSpyDriverPanic aPanicType ); |
|
38 static void Fault( TInt aReason ); |
|
39 static void GetThreadRegisters( NThread* aThread, TMemSpyDriverRegSet& aInfo ); |
|
40 static TThreadPriority MapToUserThreadPriority( TInt aPriority ); |
|
41 static TInt MapToAbsoluteThreadPriority( TThreadPriority aPriority ); |
|
42 static void PrintChunkInfo( DChunk& aChunk, DMemSpyDriverOSAdaption& aOSAdaption ); |
|
43 }; |
|
44 |
|
45 |
|
46 |
|
47 #endif |