libdragon
Loading...
Searching...
No Matches
Functions | Variables
exception_internal.h File Reference

Go to the source code of this file.

Functions

void __exception_dump_header (FILE *out, exception_t *ex)
 Dump a brief recap of the exception.
 
void __exception_dump_gpr (exception_t *ex, void(*cb)(void *arg, const char *regname, char *value), void *arg)
 Helper to dump the GPRs of an exception.
 
void __exception_dump_fpr (exception_t *ex, void(*cb)(void *arg, const char *regname, char *hexvalue, char *singlevalue, char *doublevalue), void *arg)
 Helper to dump the FPRs of an exception.
 
void __inspector_exception (exception_t *ex)
 Trigger the inspector for an exception.
 
void __inspector_assertion (const char *failedexpr, const char *msg, va_list args)
 Trigger the inspector for an assertion failure.
 
void __inspector_cppexception (const char *exctype, const char *what)
 Trigger the inspector for a C++ exception.
 

Variables

const char * __mips_gpr [34]
 Names of the 34 MIPS general-purpose registers.
 
const char * __mips_fpreg [32]
 Names of the 32 MIPS floating-point registers.
 

Detailed Description

Author
Giovanni Bajo giova.nosp@m.nnib.nosp@m.ajo@g.nosp@m.mail.nosp@m..com

Function Documentation

◆ __exception_dump_header()

void __exception_dump_header ( FILE *  out,
exception_t ex 
)

Dump a brief recap of the exception.

Parameters
[in]outFile to write to
[in]exException to dump

◆ __exception_dump_gpr()

void __exception_dump_gpr ( exception_t ex,
void(*)(void *arg, const char *regname, char *value)  cb,
void *  arg 
)

Helper to dump the GPRs of an exception.

Parameters
exException
cbCallback that will be called for each register
argArgument to pass to the callback

◆ __exception_dump_fpr()

void __exception_dump_fpr ( exception_t ex,
void(*)(void *arg, const char *regname, char *hexvalue, char *singlevalue, char *doublevalue)  cb,
void *  arg 
)

Helper to dump the FPRs of an exception.

Parameters
exException
cbCallback that will be called for each register
argArgument to pass to the callback

◆ __inspector_exception()

void __inspector_exception ( exception_t ex)

Trigger the inspector for an exception.

Parameters
exPointer to the exception structure.

◆ __inspector_assertion()

void __inspector_assertion ( const char *  failedexpr,
const char *  msg,
va_list  args 
)

Trigger the inspector for an assertion failure.

Parameters
failedexprThe failed expression string.
msgThe assertion message.
argsVariable argument list for the message.

◆ __inspector_cppexception()

void __inspector_cppexception ( const char *  exctype,
const char *  what 
)

Trigger the inspector for a C++ exception.

Parameters
exctypeThe exception type string.
whatThe exception message.