libdragon
Loading...
Searching...
No Matches
exception_internal.h
Go to the documentation of this file.
1
5#ifndef __LIBDRAGON_EXCEPTION_INTERNAL_H
6#define __LIBDRAGON_EXCEPTION_INTERNAL_H
7
8#include <stdio.h>
9#include <stdbool.h>
10#include <stdarg.h>
11#include "exception.h"
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
20extern const char *__mips_gpr[34];
24extern const char *__mips_fpreg[32];
25
26void __exception_dump_header(FILE *out, exception_t* ex);
27void __exception_dump_gpr(exception_t* ex, void (*cb)(void *arg, const char *regname, char* value), void *arg);
28void __exception_dump_fpr(exception_t* ex, void (*cb)(void *arg, const char *regname, char* hexvalue, char *singlevalue, char *doublevalue), void *arg);
29
35__attribute__((noreturn))
37
45__attribute__((noreturn))
46void __inspector_assertion(const char *failedexpr, const char *msg, va_list args);
47
54__attribute__((noreturn))
55void __inspector_cppexception(const char *exctype, const char *what);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif
Exception Handler.
void __inspector_cppexception(const char *exctype, const char *what)
Trigger the inspector for a C++ exception.
Definition inspector.c:576
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.
Definition exception.c:121
void __inspector_assertion(const char *failedexpr, const char *msg, va_list args)
Trigger the inspector for an assertion failure.
Definition inspector.c:564
void __exception_dump_header(FILE *out, exception_t *ex)
Dump a brief recap of the exception.
Definition exception.c:56
const char * __mips_fpreg[32]
Names of the 32 MIPS floating-point registers.
Definition inspector.c:72
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.
Definition exception.c:144
const char * __mips_gpr[34]
Names of the 34 MIPS general-purpose registers.
Definition inspector.c:64
void __inspector_exception(exception_t *ex)
Trigger the inspector for an exception.
Definition inspector.c:559
Structure representing an exception.
Definition exception.h:114