0
|
1 |
// Copyright (c) 2007-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 |
// Definitions for the list manager
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef T_LIST_MANAGER_H
|
|
19 |
#define T_LIST_MANAGER_H
|
|
20 |
|
|
21 |
#include <e32cmn.h>
|
|
22 |
#include <kernel/kern_priv.h>
|
|
23 |
#include <rm_debug_api.h>
|
|
24 |
|
|
25 |
/**
|
|
26 |
@file
|
|
27 |
@internalComponent
|
|
28 |
@released
|
|
29 |
*/
|
|
30 |
|
|
31 |
class TListManager
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
TInt GetThreadListForThread(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetThreadId) const;
|
|
35 |
TInt GetThreadListForProcess(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetProcessId) const;
|
|
36 |
TInt GetGlobalThreadList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
37 |
TInt GetProcessList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
38 |
TInt GetCodeSegListForThread(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetThreadId) const;
|
|
39 |
TInt GetCodeSegListForProcess(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetProcessId) const;
|
|
40 |
TInt GetGlobalCodeSegList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
41 |
TInt GetXipLibrariesList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
42 |
private:
|
|
43 |
TInt GetThreadList(TDes8& aBuffer, TUint32& aDataSize, TBool aGlobal, const TUint64 aTargetProcessId) const;
|
|
44 |
TInt GetDirectoryContents(RPointerArray<TRomEntry>& aRomEntryArray, const TLinAddr aAddress) const;
|
|
45 |
TInt GetDirectoryEntries(RPointerArray<TRomEntry>& aRomEntryArray, const TDesC& aDirectoryName) const;
|
|
46 |
TInt FindDirectory(const TDesC& aDirectory, TLinAddr& aAddress) const;
|
|
47 |
TInt GetDirectoryEntries(RPointerArray<TRomEntry>& aRomEntryArray, RArray<TPtr8>& aArray, TLinAddr& aAddress) const;
|
|
48 |
|
|
49 |
TInt AppendCodeSegData(TDes8& aBuffer, TUint32& aDataSize, const TModuleMemoryInfo& aMemoryInfo, const TBool aIsXip, const Debug::TCodeSegType aCodeSegType, const TDesC8& aFileName, const TUint32 aUid3) const;
|
|
50 |
void AppendThreadData(TDes8& aBuffer, TUint32& aDataSize, DThread* aThread) const;
|
|
51 |
TInt CopyAndExpandDes(const TDesC& aSrc, TDes& aDest) const;
|
|
52 |
TInt GetCodeSegType(const DCodeSeg* aCodeSeg, Debug::TCodeSegType& aType) const;
|
|
53 |
TInt SplitDirectoryName(const TDesC& aDirectoryName, RArray<TPtr8>& aSubDirectories) const;
|
|
54 |
};
|
|
55 |
|
|
56 |
#endif //T_LIST_MANAGER_H
|
|
57 |
|