GDBserver
Macros
gdb_assert.h File Reference

Go to the source code of this file.

Macros

#define gdb_static_assert(expr)   extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]
 
#define gdb_assert(expr)
 
#define gdb_assert_fail(assertion, file, line, function)
 
#define gdb_assert_not_reached(message)   internal_error (__FILE__, __LINE__, _(message))
 

Macro Definition Documentation

#define gdb_assert (   expr)
Value:
((void) ((expr) ? 0 : \
(gdb_assert_fail (#expr, __FILE__, __LINE__, FUNCTION_NAME), 0)))
#define gdb_assert_fail(assertion, file, line, function)
Definition: gdb_assert.h:44

Definition at line 33 of file gdb_assert.h.

Referenced by aarch64_align_watchpoint(), aarch64_dr_state_insert_one_point(), aarch64_dr_state_remove_one_point(), aarch64_linux_new_fork(), add_traceframe_block(), arm_hwbp_control_initialize(), arm_new_fork(), attach_thread(), ATTRIBUTE_PRINTF(), calculate_allocation(), check_mem_read(), check_mem_write(), check_ptrace_stopped_lwp_gone(), clone_fast_tracepoint(), complete_ongoing_step_over(), count_events_callback(), current_process(), debug_reg_change_callback(), download_trace_state_variables(), download_tracepoint_1(), find_minimal_symbol_address(), gdb_signal_to_symbol_string(), get_context_regcache(), get_dynamic(), get_thread_regcache(), handle_extended_wait(), handle_status(), handle_tracepoints(), ia64_fetch_register(), init_register_cache(), init_target_desc(), linux_common_xfer_osdata(), linux_fork_to_function(), linux_low_filter_event(), linux_mntns_open_cloexec(), linux_mntns_readlink(), linux_mntns_unlink(), linux_ns_filename(), linux_ns_get_namespace(), linux_resume_one_lwp_throw(), linux_wait_1(), linux_wait_for_event_filtered(), linux_write_pc(), make_my_cleanup2(), maybe_move_out_of_jump_pad(), mips_linux_new_fork(), mips_linux_watch_populate_regs(), mips_remove_point(), mnsh_recv_fd(), mnsh_recv_int(), mnsh_recv_intstr(), move_out_of_jump_pad_callback(), need_step_over_p(), new_register_cache(), proceed_one_lwp(), queue_stop_reply_callback(), regcache_cpy(), select_event_lwp(), select_event_lwp_callback(), stop_all_lwps(), stuck_in_jump_pad_callback(), thread_db_create_event(), thread_still_has_status_pending_p(), try_thread_db_load_1(), validate_inserted_breakpoint(), wait_for_sigstop(), x86_dr_low_get_addr(), x86_dr_low_set_addr(), x86_linux_dr_get(), x86_linux_dr_get_addr(), x86_linux_dr_set(), x86_linux_dr_set_addr(), x86_linux_new_fork(), x86_linux_update_debug_registers(), x86_remove_aligned_watchpoint(), x86_siginfo_fixup(), x86_update_inferior_debug_regs(), xsnprintf(), and Z_packet_to_bkpt_type().

#define gdb_assert_fail (   assertion,
  file,
  line,
  function 
)
Value:
internal_error (file, line, _("Assertion `%s' failed."), \
assertion)
void internal_error(const char *file, int line, const char *fmt,...)
Definition: errors.c:50
#define _(String)
Definition: gdb_locale.h:40

Definition at line 44 of file gdb_assert.h.

#define gdb_assert_not_reached (   message)    internal_error (__FILE__, __LINE__, _(message))
#define gdb_static_assert (   expr)    extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]

Definition at line 25 of file gdb_assert.h.