GDB (xrefs)
Classes | Enumerations | Functions | Variables
common-exceptions.c File Reference
#include "common-defs.h"
#include "common-exceptions.h"

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_BUFexceptions_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 catchercurrent_catcher
 
static char ** exception_messages
 
static int exception_messages_size
 

Enumeration Type Documentation

Enumerator
CATCH_ITER 
CATCH_ITER_1 
CATCH_THROWING 

Definition at line 39 of file common-exceptions.c.

Enumerator
CATCHER_CREATED 
CATCHER_RUNNING 
CATCHER_RUNNING_1 
CATCHER_ABORTING 

Definition at line 28 of file common-exceptions.c.

Function Documentation

static void ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF ( ,
 
)
static
static int catcher_list_size ( void  )
static

Definition at line 63 of file common-exceptions.c.

References catcher::prev, and size.

Referenced by ATTRIBUTE_PRINTF().

static void catcher_pop ( void  )
static
static int exceptions_state_mc ( enum catcher_action  action)
static
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 
)
SIGJMP_BUF* exceptions_state_mc_init ( 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 addr_string_to_sals(), amd64_epilogue_frame_cache(), amd64_frame_cache(), amd64_sigtramp_frame_cache(), append_ocl_sos(), ATTRIBUTE_PRINTF(), baseclass_offset(), call_function_by_hand_dummy(), call_site_find_chain(), catch_errors(), catch_exceptions_with_msg(), cmd_record_btrace_bts_start(), cmd_record_btrace_pt_start(), cmd_record_btrace_start(), compile_object_run(), create_breakpoint(), dwarf2_evaluate_loc_desc_full(), dwarf2_frame_cache(), evaluate_subexp_standard(), exceptions_state_mc_catch(), fetch_subexp_value(), find_linespec_symbols(), frame_unwind_pc(), frame_unwind_try_unwinder(), gdb_xml_parse(), get_frame_address_in_block_if_available(), get_frame_language(), get_frame_pc_if_available(), get_prev_frame_always(), i386_epilogue_frame_cache(), i386_frame_cache(), i386_sigtramp_frame_cache(), inferior_event_handler(), linux_resume_one_lwp(), parse_exp_in_context_1(), parse_linespec(), post_create_inferior(), process_next_line(), re_set_exception_catchpoint(), record_btrace_insert_breakpoint(), record_btrace_remove_breakpoint(), record_btrace_start_replaying(), remote_get_trace_status(), remote_kill(), remote_open_1(), resume_stopped_resumed_lwps(), rs6000_epilogue_frame_cache(), s390_frame_unwind_cache(), save_breakpoints(), target_translate_tls_address(), tfile_open(), types_deeply_equal(), value_rtti_indirect_type(), watch_command_1(), and write_gcore_file().

void throw_quit ( const char *  fmt,
  ... 
)

Definition at line 381 of file common-exceptions.c.

References throw_vquit().

Referenced by internal_verror(), and quit().

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 gdb_xml_error(), mips_error(), 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().

Variable Documentation

struct catcher* current_catcher
static

Definition at line 58 of file common-exceptions.c.

Referenced by catcher_pop(), and exceptions_state_mc_init().

char** exception_messages
static

Definition at line 312 of file common-exceptions.c.

int exception_messages_size
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 }