GDB (xrefs)
|
#include "defs.h"
#include "exceptions.h"
#include "breakpoint.h"
#include "target.h"
#include "inferior.h"
#include "annotate.h"
#include "ui-out.h"
#include "serial.h"
#include "gdbthread.h"
Go to the source code of this file.
Functions | |
void | prepare_to_throw_exception (void) |
static void | print_flush (void) |
static void | print_exception (struct ui_file *file, struct gdb_exception e) |
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,...) |
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_errors | ( | catch_errors_ftype * | func, |
void * | func_args, | ||
char * | errstring, | ||
return_mask | mask | ||
) |
Definition at line 228 of file exceptions.c.
References CATCH, current_uiout, END_CATCH, exception_fprintf(), exception_none, func, gdb_stderr, gdb_exception::reason, RETURN_MASK, RETURN_MASK_ALL, throw_exception(), and TRY.
Referenced by bpstat_check_breakpoint_conditions(), bpstat_check_watchpoint(), breakpoint_re_set(), captured_main(), dump_symtab_1(), find_objc_msgcall_submethod(), gdb_main(), get_windows_debug_event(), m32r_load(), normal_stop(), record_full_message_wrapper_safe(), restore_infcall_control_state(), and update_solib_list().
int catch_exceptions | ( | struct ui_out * | uiout, |
catch_exceptions_ftype * | func, | ||
void * | func_args, | ||
return_mask | mask | ||
) |
Definition at line 162 of file exceptions.c.
References catch_exceptions_with_msg().
Referenced by add_vsyscall_page(), get_current_frame(), and remote_fileio_request().
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 171 of file exceptions.c.
References CATCH, current_uiout, END_CATCH, exception_none, exception_print(), gdb_assert, gdb_stderr, gdb_exception::message, gdb_exception::reason, RETURN_MASK, RETURN_MASK_ALL, throw_exception(), and TRY.
Referenced by catch_exceptions(), gdb_breakpoint_query(), gdb_list_thread_ids(), and gdb_thread_select().
void exception_fprintf | ( | struct ui_file * | file, |
struct gdb_exception | e, | ||
const char * | prefix, | ||
... | |||
) |
Definition at line 119 of file exceptions.c.
References gdb_exception::message, print_exception(), print_flush(), gdb_exception::reason, and vfprintf_filtered().
Referenced by catch_errors(), enable_breakpoint_disp(), find_new_threads_once(), reload_shared_libraries_1(), remote_get_noisy_reply(), remote_get_trace_status(), save_gdb_index_command(), should_stop_exception(), solib_read_symbols(), thread_db_find_new_threads_silently(), and update_solib_list().
void exception_print | ( | struct ui_file * | file, |
struct gdb_exception | e | ||
) |
Definition at line 109 of file exceptions.c.
References gdb_exception::message, print_exception(), print_flush(), and gdb_exception::reason.
Referenced by call_site_find_chain(), catch_exceptions_with_msg(), check_status_exception_catchpoint(), core_open(), create_breakpoint(), do_gdb_disassembly(), dwarf2_build_psymtabs(), dwarf2_evaluate_loc_desc_full(), dwarf2_tailcall_sniffer_first(), finish_command_continuation(), handle_command_errors(), inferior_event_handler(), keep_going(), linux_make_corefile_notes(), quit_force(), safe_execute_command(), solib_svr4_r_ldsomap(), solib_svr4_r_map(), start_event_loop(), and tui_rl_switch_mode().
void prepare_to_throw_exception | ( | void | ) |
Definition at line 31 of file exceptions.c.
References clear_quit_flag(), and immediate_quit.
Referenced by throw_exception().
|
static |
Definition at line 73 of file exceptions.c.
References _, annotate_error(), annotate_quit(), fprintf_filtered(), fputs_filtered(), internal_error(), gdb_exception::message, gdb_exception::reason, RETURN_ERROR, RETURN_QUIT, and ui_file_write().
Referenced by exception_fprintf(), and exception_print().
|
static |
Definition at line 38 of file exceptions.c.
References annotate_error_begin(), deprecated_error_begin_hook, filtered_printing_initialized(), gdb_flush(), gdb_stderr, gdb_stdout, serial_drain_output(), serial_fdopen(), serial_un_fdopen(), target_supports_terminal_ours(), target_terminal_ours(), and wrap_here().
Referenced by exception_fprintf(), and exception_print().