GDB (API)
Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/exceptions.c File Reference
#include "defs.h"
#include "exceptions.h"
#include "breakpoint.h"
#include "target.h"
#include "inferior.h"
#include "annotate.h"
#include "ui-out.h"
#include "gdb_assert.h"
#include "gdb_string.h"
#include "serial.h"
#include "gdbthread.h"

Go to the source code of this file.

Enumerations

enum  catcher_state { CATCHER_CREATED, CATCHER_RUNNING, CATCHER_RUNNING_1, CATCHER_ABORTING }
enum  catcher_action { CATCH_ITER, CATCH_ITER_1, CATCH_THROWING }

Functions

EXCEPTIONS_SIGJMP_BUFexceptions_state_mc_init (volatile struct gdb_exception *exception, return_mask mask)
int exceptions_state_mc_action_iter (void)
int exceptions_state_mc_action_iter_1 (void)
void throw_exception (struct gdb_exception exception)
void exception_print (struct ui_file *file, struct gdb_exception e)
void exception_fprintf (struct ui_file *file, struct gdb_exception e, const char *prefix,...)
void throw_verror (enum errors error, const char *fmt, va_list ap)
void throw_vfatal (const char *fmt, va_list ap)
void throw_error (enum errors error, const char *fmt,...)
int catch_exceptions (struct ui_out *uiout, catch_exceptions_ftype *func, void *func_args, return_mask mask)
int catch_exceptions_with_msg (struct ui_out *func_uiout, catch_exceptions_ftype *func, void *func_args, char **gdberrmsg, return_mask mask)
int catch_errors (catch_errors_ftype *func, void *func_args, char *errstring, return_mask mask)
int catch_command_errors (catch_command_errors_ftype *command, char *arg, int from_tty, return_mask mask)
int catch_command_errors_const (catch_command_errors_const_ftype *command, const char *arg, int from_tty, return_mask mask)

Variables

struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL }

Enumeration Type Documentation

Enumerator:
CATCH_ITER 
CATCH_ITER_1 
CATCH_THROWING 

Definition at line 46 of file exceptions.c.

Enumerator:
CATCHER_CREATED 
CATCHER_RUNNING 
CATCHER_RUNNING_1 
CATCHER_ABORTING 

Definition at line 35 of file exceptions.c.


Function Documentation

int catch_command_errors ( catch_command_errors_ftype command,
char *  arg,
int  from_tty,
return_mask  mask 
)

Definition at line 544 of file exceptions.c.

int catch_command_errors_const ( catch_command_errors_const_ftype command,
const char *  arg,
int  from_tty,
return_mask  mask 
)

Definition at line 560 of file exceptions.c.

int catch_errors ( catch_errors_ftype func,
void *  func_args,
char *  errstring,
return_mask  mask 
)

Definition at line 512 of file exceptions.c.

int catch_exceptions ( struct ui_out *  uiout,
catch_exceptions_ftype func,
void *  func_args,
return_mask  mask 
)

Definition at line 451 of file exceptions.c.

int catch_exceptions_with_msg ( struct ui_out *  func_uiout,
catch_exceptions_ftype func,
void *  func_args,
char **  gdberrmsg,
return_mask  mask 
)

Definition at line 460 of file exceptions.c.

void exception_fprintf ( struct ui_file *  file,
struct gdb_exception  e,
const char *  prefix,
  ... 
)

Definition at line 316 of file exceptions.c.

void exception_print ( struct ui_file *  file,
struct gdb_exception  e 
)

Definition at line 306 of file exceptions.c.

Definition at line 208 of file exceptions.c.

Definition at line 214 of file exceptions.c.

EXCEPTIONS_SIGJMP_BUF* exceptions_state_mc_init ( volatile struct gdb_exception exception,
return_mask  mask 
)

Definition at line 86 of file exceptions.c.

void throw_error ( enum errors  error,
const char *  fmt,
  ... 
)

Definition at line 417 of file exceptions.c.

void throw_exception ( struct gdb_exception  exception)

Definition at line 222 of file exceptions.c.

void throw_verror ( enum errors  error,
const char *  fmt,
va_list  ap 
)

Definition at line 405 of file exceptions.c.

void throw_vfatal ( const char *  fmt,
va_list  ap 
)

Definition at line 411 of file exceptions.c.


Variable Documentation

struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL }

Definition at line 32 of file exceptions.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines