Pin
|
Classes | |
union | EXCEPTION_SPECIFIC |
Public Member Functions | |
EXCEPTION_INFO & | Init (EXCEPTION_CODE exceptCode, ADDRINT exceptAddress) |
EXCEPTION_CODE | GetExceptCode () const |
EXCEPTION_CLASS | GetExceptClass () const |
ADDRINT | GetExceptAddress () const |
VOID | SetExceptAddress (ADDRINT exceptAddress) |
BOOL | IsTrap () const |
VOID | Reset () |
BOOL | IsEmpty () const |
std::string | ToString () const |
std::string | GetCodeAsString () const |
EXCEPTION_INFO & | InitAccessFault (EXCEPTION_CODE exceptCode, ADDRINT exceptAddress, ADDRINT accessAddress, FAULTY_ACCESS_TYPE accessType=FAULTY_ACCESS_TYPE_UNKNOWN) |
BOOL | IsAccessFault () const |
FAULTY_ACCESS_TYPE | GetFaultyAccessType () const |
BOOL | GetFaultyAccessAddress (ADDRINT *pAccessAddress) const |
EXCEPTION_INFO & | InitMultipleFpError (EXCEPTION_CODE exceptCode, ADDRINT exceptAddress, UINT32 fpErrors) |
BOOL | IsMultipleFpException () const |
UINT32 | GetFpErrors () const |
EXCEPTION_INFO & | InitWindowsSysException (UINT32 sysExceptCode, ADDRINT exceptAddress, UINT32 numArgs=0, const ADDRINT *pArgs=0) |
BOOL | IsWindowsSysException () const |
UINT32 | GetWindowsSysExceptionCode () const |
UINT32 | CountWindowsSysArguments () const |
ADDRINT | GetWindowsSysArgument (UINT32 argNum) const |
Static Public Member Functions | |
static EXCEPTION_CLASS | GetExceptClass (EXCEPTION_CODE exceptCode) |
static BOOL | IsTrap (EXCEPTION_CODE exceptCode) |
Public Attributes | |
EXCEPTION_CODE | m_exceptCode |
ADDRINT | m_exceptAddress |
union EXCEPTION_INFO::EXCEPTION_SPECIFIC | m_specific |
Structure (POD) that describes an exception
|
inline |
std::string EXCEPTION_INFO::GetCodeAsString | ( | ) | const |
|
inline |
|
static |
|
inline |
|
inline |
Get the address of the faulty memory access, if known.
[out] | pAccessAddress | optional pointer to variable that receives the address of the faulty memory access, if known. |
|
inline |
|
inline |
|
inline |
Get the specified Windows system exception's argument.
[in] | argNum | ordinal number of the argument to be retrieved, starting from zero. The value of this parameter should not exceed the value returned by the CountWindowsSysArguments() function. |
|
inline |
EXCEPTION_INFO& EXCEPTION_INFO::Init | ( | EXCEPTION_CODE | exceptCode, |
ADDRINT | exceptAddress | ||
) |
Initialize this structure with the given generic exception's attributes. Set "unknown" state for all exception-specific attributes. This function is useful when the specified exception code does not require any additional exception information or such information is not available. The function can not be used to initialize EXCEPTCODE_WINDOWS exception information.
[in] | exceptCode | exception code |
[in] | exceptAddress | address of the instruction that caused the exception |
EXCEPTION_INFO& EXCEPTION_INFO::InitAccessFault | ( | EXCEPTION_CODE | exceptCode, |
ADDRINT | exceptAddress, | ||
ADDRINT | accessAddress, | ||
FAULTY_ACCESS_TYPE | accessType = FAULTY_ACCESS_TYPE_UNKNOWN |
||
) |
Initialize this structure with the given attributes of an EXCEPTCLASS_ACCESS_FAULT exception.
[in] | exceptCode | exception code that specifies an EXCEPTCLASS_ACCESS_FAULT exception |
[in] | exceptAddress | address of the instruction that caused the exception |
[in] | accessAddress | address of the faulty memory access |
[in] | accessType | type of the faulty memory access |
EXCEPTION_INFO& EXCEPTION_INFO::InitMultipleFpError | ( | EXCEPTION_CODE | exceptCode, |
ADDRINT | exceptAddress, | ||
UINT32 | fpErrors | ||
) |
Initialize this structure with the given attributes of an EXCEPTCLASS_MULTIPLE_FP_ERROR exception.
[in] | exceptCode | exception code that specifies an EXCEPTCLASS_MULTIPLE_FP_ERROR exception |
[in] | exceptAddress | address of the instruction that caused the exception |
[in] | fpErrors | bit mask of FP exception codes |
EXCEPTION_INFO& EXCEPTION_INFO::InitWindowsSysException | ( | UINT32 | sysExceptCode, |
ADDRINT | exceptAddress, | ||
UINT32 | numArgs = 0 , |
||
const ADDRINT * | pArgs = 0 |
||
) |
Initialize this structure with the given attributes of an EXCEPTCODE_WINDOWS exception.
[in] | sysExceptCode | the system exception code |
[in] | exceptAddress | address of the instruction that caused the exception |
[in] | numArgs | number of arguments in the [pArgs] array. The number should not exceed the MAX_WINDOWS_EXCEPTION_ARGS value. |
[in] | pArgs | pointer to an array of arguments associated with the exception or NULL if the number of arguments is zero |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
Remove the exception information and initialize this structure as empty.
|
inline |
Set the address of the instruction that caused the exception
std::string EXCEPTION_INFO::ToString | ( | ) | const |