Debug::TCodeSegListEntry Class Reference

class Debug::TCodeSegListEntry

Structure used for extracting data from a descriptor returned by a call to RSecuritySvrSession::GetList() when GetList() is called with TListId::ECodeSegs as the first argument.

RSecuritySvrSession::GetList()
        //buffer is a TDesC8 containing 4-byte aligned TCodeSegListEntry objects
//create a pointer to the start of the data
TUint8* ptr = (TUint8*)buffer.Ptr();
//create a pointer to the end of the data
const TUint8* ptrEnd = ptr + buffer.Length();
while(ptr < ptrEnd)
	{
	//cast the pointer to be a TCodeSegListEntry object
	TCodeSegListEntry& entry = *(TCodeSegListEntry*)ptr;
	//use the TCodeSegListEntry pointer, i.e.
	TUint16 nameLength = entry.iNameLength;
	TPtr name(&(entry.iName[0]), nameLength, nameLength);
	// move ptr on to point to the next TCodeSegListEntry object
	ptr += Align4(entry.GetSize());
	}
       

Member Functions Documentation

GetSize()

TInt GetSize ( ) const [inline]

Returns the size of the TCodeSegListEntry , including the file name length

Member Data Documentation

TUint32 iCodeBase

TUint32 iCodeBase

Address of the start of the code segment.

TCodeSegType iCodeSegType

TCodeSegType iCodeSegType

Indicates whether the code segment is from an executable or a dll, or neither

TUint32 iCodeSize

TUint32 iCodeSize

Size of the code segment.

TUint32 iConstDataSize

TUint32 iConstDataSize

Size of the const data segment

TUint32 iInitialisedDataBase

TUint32 iInitialisedDataBase

Address of the initialised data

TUint32 iInitialisedDataSize

TUint32 iInitialisedDataSize

Size of the initialised data

TBool iIsXip

TBool iIsXip

Boolean indicating whether the code segment is execute in place

TUint16 iName

TUint16 iName

First two bytes of the code segment's name, the name should be considered to extend past the end of the TCodeSegListEntry structure to a length corresponding to iNameLength

TUint16 iNameLength

TUint16 iNameLength

Length of the code segment's name

TUint32 iSpare2

TUint32 iSpare2

Currently unused element. May be used in future to aid maintaining compatibility.

TUint32 iUid3

TUint32 iUid3

Uid3 of this segment.

TUint32 iUninitialisedDataSize

TUint32 iUninitialisedDataSize

Size of the uninitialised data