GDBserver
|
Go to the source code of this file.
Classes | |
struct | catcher |
Enumerations | |
enum | catcher_state { CATCHER_CREATED, CATCHER_RUNNING, CATCHER_RUNNING_1, CATCHER_ABORTING } |
enum | catcher_action { CATCH_ITER, CATCH_ITER_1, CATCH_THROWING } |
Functions | |
static int | catcher_list_size (void) |
SIGJMP_BUF * | exceptions_state_mc_init (void) |
static void | catcher_pop (void) |
static int | exceptions_state_mc (enum catcher_action action) |
int | exceptions_state_mc_catch (struct gdb_exception *exception, int mask) |
int | exceptions_state_mc_action_iter (void) |
int | exceptions_state_mc_action_iter_1 (void) |
void | throw_exception (struct gdb_exception exception) |
static void ATTRIBUTE_NORETURN | ATTRIBUTE_PRINTF (3, 0) |
void | throw_verror (enum errors error, const char *fmt, va_list ap) |
void | throw_vquit (const char *fmt, va_list ap) |
void | throw_error (enum errors error, const char *fmt,...) |
void | throw_quit (const char *fmt,...) |
Variables | |
const struct gdb_exception | exception_none = { 0, GDB_NO_ERROR, NULL } |
static struct catcher * | current_catcher |
static char ** | exception_messages |
static int | exception_messages_size |
enum catcher_action |
Enumerator | |
---|---|
CATCH_ITER | |
CATCH_ITER_1 | |
CATCH_THROWING |
Definition at line 39 of file common-exceptions.c.
enum catcher_state |
Enumerator | |
---|---|
CATCHER_CREATED | |
CATCHER_RUNNING | |
CATCHER_RUNNING_1 | |
CATCHER_ABORTING |
Definition at line 28 of file common-exceptions.c.
|
static |
Definition at line 317 of file common-exceptions.c.
References catcher_list_size(), error(), gdb_exception::error, exception_messages_size, gdb_assert, gdb_exception::message, gdb_exception::reason, throw_exception(), xfree(), xrealloc(), and xstrvprintf().
|
static |
Definition at line 63 of file common-exceptions.c.
References catcher::prev.
Referenced by ATTRIBUTE_PRINTF().
|
static |
Definition at line 97 of file common-exceptions.c.
References current_catcher, catcher::prev, restore_cleanups(), catcher::saved_cleanup_chain, and xfree().
Referenced by exceptions_state_mc_catch().
|
static |
Definition at line 115 of file common-exceptions.c.
References _, CATCH_ITER, CATCH_ITER_1, CATCH_THROWING, CATCHER_ABORTING, CATCHER_CREATED, CATCHER_RUNNING, CATCHER_RUNNING_1, internal_error(), and catcher::state.
Referenced by exceptions_state_mc_action_iter(), exceptions_state_mc_action_iter_1(), and throw_exception().
int exceptions_state_mc_action_iter | ( | void | ) |
Definition at line 205 of file common-exceptions.c.
References CATCH_ITER, and exceptions_state_mc().
int exceptions_state_mc_action_iter_1 | ( | void | ) |
Definition at line 211 of file common-exceptions.c.
References CATCH_ITER_1, and exceptions_state_mc().
int exceptions_state_mc_catch | ( | struct gdb_exception * | exception, |
int | mask | ||
) |
Definition at line 180 of file common-exceptions.c.
References catcher_pop(), catcher::exception, gdb_exception::reason, RETURN_MASK, and throw_exception().
SIGJMP_BUF* exceptions_state_mc_init | ( | void | ) |
Definition at line 77 of file common-exceptions.c.
References catcher::buf, CATCHER_CREATED, current_catcher, catcher::exception, exception_none, catcher::prev, save_cleanups(), catcher::saved_cleanup_chain, and catcher::state.
void throw_error | ( | enum errors | error, |
const char * | fmt, | ||
... | |||
) |
Definition at line 371 of file common-exceptions.c.
References throw_verror().
void throw_exception | ( | struct gdb_exception | exception | ) |
Definition at line 269 of file common-exceptions.c.
References all_cleanups(), catcher::buf, CATCH_THROWING, do_cleanups(), catcher::exception, exceptions_state_mc(), gdb_assert_not_reached, prepare_to_throw_exception(), gdb_exception::reason, RETURN_ERROR, RETURN_QUIT, and SIGLONGJMP.
Referenced by ATTRIBUTE_PRINTF(), exceptions_state_mc_catch(), and linux_resume_one_lwp().
void throw_quit | ( | const char * | fmt, |
... | |||
) |
Definition at line 381 of file common-exceptions.c.
References throw_vquit().
Referenced by captured_main().
void throw_verror | ( | enum errors | error, |
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 359 of file common-exceptions.c.
References RETURN_ERROR.
Referenced by throw_error(), and verror().
void throw_vquit | ( | const char * | fmt, |
va_list | ap | ||
) |
Definition at line 365 of file common-exceptions.c.
References GDB_NO_ERROR, and RETURN_QUIT.
Referenced by throw_quit().
|
static |
Definition at line 58 of file common-exceptions.c.
Referenced by catcher_pop(), and exceptions_state_mc_init().
|
static |
Definition at line 312 of file common-exceptions.c.
|
static |
Definition at line 315 of file common-exceptions.c.
Referenced by ATTRIBUTE_PRINTF().
const struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL } |
Definition at line 23 of file common-exceptions.c.
Referenced by exceptions_state_mc_init().