#include <crashdata.h>
Link against: cdssupport.lib

Class TCrashInfo

Interface access: publishedPartner

class TCrashInfo;

Description

Crash event information. This is given to a formatter when a crash occurs.

Members

Defined in TCrashInfo More...

See also:

Construction and destruction


NewL(const TDesC8 &)

Interface access: publishedPartnerInherited from: crashdata.h

IMPORT_C static TCrashInfo* NewL(const TDesC8 &aStreamData);

Description

Constructs object from stream

Parameters

const TDesC8 &aStreamData

Return value

TCrashInfo *


NewL(const TCrashInfoHeader &)

Interface access: publishedPartnerInherited from: crashdata.h

IMPORT_C static TCrashInfo* NewL(const TCrashInfoHeader &aCrashHeader);

Description

Constructs from structure

Parameters

const TCrashInfoHeader &aCrashHeader

Return value

TCrashInfo *


TCrashInfo()

Interface access: publishedPartnerInherited from: crashdata.h

IMPORT_C TCrashInfo();

Description


TCrashInfo(const TCrashInfoHeader &)

Interface access: internal to technologyDefault as private.

private: TCrashInfo(const TCrashInfoHeader &aCrashHeader);

Description

Parameters

const TCrashInfoHeader &aCrashHeader


ConstructL(const TCrashInfoHeader &)

Interface access: internal to technologyDefault as private.

private: void ConstructL(const TCrashInfoHeader &aCrashHeader);

Description

Parameters

const TCrashInfoHeader &aCrashHeader

Member functions


InternalizeL(RReadStream &)

Interface access: publishedPartnerInherited from: crashdata.h

IMPORT_C void InternalizeL(RReadStream &aStream);

Description

Initializes ’this’ from stream

Parameters

RReadStream &aStream


ExternalizeL(RWriteStream &,CBufFlat *)

Interface access: publishedPartnerInherited from: crashdata.h

IMPORT_C void ExternalizeL(RWriteStream &aStream, CBufFlat *buf);

Description

Make a streamed representation of this object to a RWriteStream.

This method is typically by the core dump server when contructing a list of CPluginInfo for a client. Any modifications to this method should be synchronised with TCrashInfo::InternalizeL(RReadStream &). Also note that the methods used from RWriteStream (>> or WriteUint32L) can behave differently, especially for descriptors.

Post-Condition

The stream contains an externalised version of this object.

Parameters

RWriteStream &aStream

Stream to stream object onto

CBufFlat *buf

Buffer onto the same stream, used to obtain the correct size of the externalised object

See also:


MaxSize()

Interface access: publishedPartnerInherited from: crashdata.h

IMPORT_C static TInt MaxSize();

Description

Get the maximum size allowed for this object. This is needed as the object is passed across the Client Server interface.

Return value

TInt

maxSize

Member enumerations


Enum TCrashType

Interface access: publishedPartnerInherited from: crashdata.h

TCrashType

Description

Type of crash event

ECrashException

ECrashException is raised when a hardware exception occurs

ECrashKill

ECrashKill is raised when a thread is killed or panicked

ECrashLast

Guard


Enum TCrashSource

Interface access: publishedPartnerInherited from: crashdata.h

TCrashSource

Description

Tells us where the crash event came from. ie is it a system crash or a live crash

ESystemCrash

System Crash - Data in flash.

ELiveCrash

Live System - Data to be got from DSS.

ELast

ELast.

Guard

Member data


iType

Interface access: publishedPartnerInherited from: crashdata.h

TCrashType iType;

Description

Type of crash

See also:


iExcNumber

Interface access: publishedPartnerInherited from: crashdata.h

TUint32 iExcNumber;

Description

Exception type or exit type. If crash type iType is ECrashException, this is set to e32const.h::TExcType If crash type iType is ECrashKill, this is set to e32const.h::TExitType.


iReason

Interface access: publishedPartnerInherited from: crashdata.h

TInt iReason;

Description

This is only set when iType is ECrashKill. Kernel panic code.


iCategory

Interface access: publishedPartnerInherited from: crashdata.h

TBuf< KMaxExitCategoryName > iCategory;

Description

Crash category description. Valid when crash type is ECrashKill


iTid

Interface access: publishedPartnerInherited from: crashdata.h

TUint64 iTid;

Description

Crashed thread id


iPid

Interface access: publishedPartnerInherited from: crashdata.h

TUint64 iPid;

Description

Crashed process id


iTime

Interface access: publishedPartnerInherited from: crashdata.h

TUint64 iTime;

Description

Crash time


iContext

Interface access: publishedPartnerInherited from: crashdata.h

TRmdArmExcInfo iContext;

Description

Register context at time of crash.


iCrashId

Interface access: publishedPartnerInherited from: crashdata.h

TUint32 iCrashId;

Description

Id for crash in flash - only relevant for system crash


iSize

Interface access: publishedPartnerInherited from: crashdata.h

TUint iSize;

Description

Externalized size


iCrashSource

Interface access: publishedPartnerInherited from: crashdata.h

TCrashSource iCrashSource;

Description

Source of crash

See also: