42
|
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
|
56
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
42
|
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 |
class TListManager
|
|
27 |
{
|
|
28 |
public:
|
|
29 |
TInt GetThreadListForThread(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetThreadId) const;
|
|
30 |
TInt GetThreadListForProcess(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetProcessId) const;
|
|
31 |
TInt GetGlobalThreadList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
32 |
TInt GetProcessList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
33 |
TInt GetCodeSegListForThread(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetThreadId) const;
|
|
34 |
TInt GetCodeSegListForProcess(TDes8& aBuffer, TUint32& aDataSize, const TUint64 aTargetProcessId) const;
|
|
35 |
TInt GetGlobalCodeSegList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
36 |
TInt GetXipLibrariesList(TDes8& aBuffer, TUint32& aDataSize) const;
|
|
37 |
private:
|
|
38 |
TInt GetThreadList(TDes8& aBuffer, TUint32& aDataSize, TBool aGlobal, const TUint64 aTargetProcessId) const;
|
|
39 |
TInt GetDirectoryContents(RPointerArray<TRomEntry>& aRomEntryArray, const TLinAddr aAddress) const;
|
|
40 |
TInt GetDirectoryEntries(RPointerArray<TRomEntry>& aRomEntryArray, const TDesC& aDirectoryName) const;
|
|
41 |
TInt FindDirectory(const TDesC& aDirectory, TLinAddr& aAddress) const;
|
|
42 |
TInt GetDirectoryEntries(RPointerArray<TRomEntry>& aRomEntryArray, RArray<TPtr8>& aArray, TLinAddr& aAddress) const;
|
|
43 |
|
|
44 |
TInt AppendCodeSegData(TDes8& aBuffer, TUint32& aDataSize, const TModuleMemoryInfo& aMemoryInfo, const TBool aIsXip, const Debug::TCodeSegType aCodeSegType, const TDesC8& aFileName, const TUint32 aUid3) const;
|
|
45 |
void AppendThreadData(TDes8& aBuffer, TUint32& aDataSize, DThread* aThread) const;
|
|
46 |
TInt CopyAndExpandDes(const TDesC& aSrc, TDes& aDest) const;
|
|
47 |
TInt GetCodeSegType(const DCodeSeg* aCodeSeg, Debug::TCodeSegType& aType) const;
|
|
48 |
TInt SplitDirectoryName(const TDesC& aDirectoryName, RArray<TPtr8>& aSubDirectories) const;
|
|
49 |
};
|
|
50 |
|
|
51 |
#endif //T_LIST_MANAGER_H
|
|
52 |
|