|
GDBserver
|
#include "gdb_setjmp.h"Go to the source code of this file.
Classes | |
| struct | gdb_exception |
Macros | |
| #define | RETURN_MASK(reason) (1 << (int)(-reason)) |
| #define | TRY |
| #define | CATCH(EXCEPTION, MASK) |
| #define | END_CATCH } |
Enumerations | |
| enum | return_reason { RETURN_QUIT = -2, RETURN_ERROR } |
| enum | return_mask { RETURN_MASK_QUIT = RETURN_MASK (RETURN_QUIT), RETURN_MASK_ERROR = RETURN_MASK (RETURN_ERROR), RETURN_MASK_ALL = (RETURN_MASK_QUIT | RETURN_MASK_ERROR) } |
| enum | errors { GDB_NO_ERROR, GENERIC_ERROR, NOT_FOUND_ERROR, TLS_NO_LIBRARY_SUPPORT_ERROR, TLS_LOAD_MODULE_NOT_FOUND_ERROR, TLS_NOT_ALLOCATED_YET_ERROR, TLS_GENERIC_ERROR, XML_PARSE_ERROR, MEMORY_ERROR, NOT_AVAILABLE_ERROR, OPTIMIZED_OUT_ERROR, NO_ENTRY_VALUE_ERROR, TARGET_CLOSE_ERROR, UNDEFINED_COMMAND_ERROR, NOT_SUPPORTED_ERROR, MAX_COMPLETIONS_REACHED_ERROR, NR_ERRORS } |
Functions | |
| SIGJMP_BUF * | exceptions_state_mc_init (void) |
| int | exceptions_state_mc_action_iter (void) |
| int | exceptions_state_mc_action_iter_1 (void) |
| int | exceptions_state_mc_catch (struct gdb_exception *, int) |
| void | prepare_to_throw_exception (void) |
| void | throw_exception (struct gdb_exception exception) ATTRIBUTE_NORETURN |
| void | throw_verror (enum errors, const char *fmt, va_list ap) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(2 |
| void void | throw_vquit (const char *fmt, va_list ap) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(1 |
| void void void | throw_error (enum errors error, const char *fmt,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(2 |
| void void void void | throw_quit (const char *fmt,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF(1 |
Variables | |
| void void void void const struct gdb_exception | exception_none |
| #define CATCH | ( | EXCEPTION, | |
| MASK | |||
| ) |
Definition at line 171 of file common-exceptions.h.
Referenced by captured_main(), detach_or_kill_for_exit_cleanup(), linux_resume_one_lwp(), and main().
| #define END_CATCH } |
Definition at line 176 of file common-exceptions.h.
Referenced by captured_main(), detach_or_kill_for_exit_cleanup(), linux_resume_one_lwp(), and main().
| #define RETURN_MASK | ( | reason | ) | (1 << (int)(-reason)) |
Definition at line 39 of file common-exceptions.h.
Referenced by exceptions_state_mc_catch().
| #define TRY |
Definition at line 162 of file common-exceptions.h.
Referenced by captured_main(), detach_or_kill_for_exit_cleanup(), linux_resume_one_lwp(), and main().
| enum errors |
Definition at line 50 of file common-exceptions.h.
| enum return_mask |
| Enumerator | |
|---|---|
| RETURN_MASK_QUIT | |
| RETURN_MASK_ERROR | |
| RETURN_MASK_ALL | |
Definition at line 41 of file common-exceptions.h.
| enum return_reason |
| Enumerator | |
|---|---|
| RETURN_QUIT | |
| RETURN_ERROR | |
Definition at line 31 of file common-exceptions.h.
| 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 * | , |
| int | |||
| ) |
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 prepare_to_throw_exception | ( | void | ) |
Definition at line 144 of file utils.c.
Referenced by throw_exception().
| void void void throw_error | ( | enum errors | error, |
| const char * | fmt, | ||
| ... | |||
| ) |
| 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 void void void throw_quit | ( | const char * | fmt, |
| ... | |||
| ) |
| void throw_verror | ( | enum errors | , |
| const char * | fmt, | ||
| va_list | ap | ||
| ) |
| void void throw_vquit | ( | const char * | fmt, |
| va_list | ap | ||
| ) |
| void void void void const struct gdb_exception exception_none |
Definition at line 23 of file common-exceptions.c.
Referenced by exceptions_state_mc_init().
1.8.10