GDB (xrefs)

Classes | Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/breakpoint.h File Reference
`#include "frame.h"`
`#include "value.h"`
`#include "vec.h"`
`#include "ax.h"`
`#include "command.h"`
`#include "break-common.h"`
`#include "probe.h"`
`#include "location.h"`
`#include <vector>`
`#include "common/array-view.h"`
`#include "cli/cli-script.h"`

Go to the source code of this file.

## Classes
struct | bp_target_info
struct | bp_location_ops
class | bp_location
struct | breakpoint_ops
struct | breakpoint
struct | watchpoint
struct | tracepoint
struct | bpstat_what
struct | bpstats
struct | breakpoint_deleter
class | scoped_rbreak_breakpoints

## Macros
#define | BREAKPOINT_MAX 16
#define | CATCH_PERMANENT ((void *) (uintptr_t) 0)
#define | CATCH_TEMPORARY ((void *) (uintptr_t) 1)

## Typedefs
typedef struct bp_location * | bp_location_p
typedef std::shared_ptr< command_line > | counted_command_line
typedef struct breakpoint * | breakpoint_p
typedef struct bpstats * | bpstat
typedef std::unique_ptr< struct breakpoint, breakpoint_deleter > | breakpoint_up
typedef void(* | walk_bp_location_callback) (struct bp_location *, void *)

## Enumerations
enum | remove_bp_reason { REMOVE_BREAKPOINT, DETACH_BREAKPOINT }
enum | bptype { bp_none = 0, bp_breakpoint, bp_hardware_breakpoint, bp_single_step, bp_until, bp_finish, bp_watchpoint, bp_hardware_watchpoint, bp_read_watchpoint, bp_access_watchpoint, bp_longjmp, bp_longjmp_resume, bp_longjmp_call_dummy, bp_exception, bp_exception_resume, bp_step_resume, bp_hp_step_resume, bp_watchpoint_scope, bp_call_dummy, bp_std_terminate, bp_shlib_event, bp_thread_event, bp_overlay_event, bp_longjmp_master, bp_std_terminate_master, bp_exception_master, bp_catchpoint, bp_tracepoint, bp_fast_tracepoint, bp_static_tracepoint, bp_dprintf, bp_jit_event, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return }
enum | enable_state { bp_disabled, bp_enabled, bp_call_disabled }
enum | bpdisp { disp_del, disp_del_at_next_stop, disp_disable, disp_donttouch }
enum | condition_status { condition_unchanged = 0, condition_modified, condition_updated }
enum | bp_loc_type { bp_loc_software_breakpoint, bp_loc_hardware_breakpoint, bp_loc_hardware_watchpoint, bp_loc_other }
enum | print_stop_action { PRINT_UNKNOWN = -1, PRINT_SRC_AND_LOC, PRINT_SRC_ONLY, PRINT_NOTHING }
enum | watchpoint_triggered { watch_triggered_no = 0, watch_triggered_unknown, watch_triggered_yes }
enum | bpstat_what_main_action { BPSTAT_WHAT_KEEP_CHECKING, BPSTAT_WHAT_SINGLE, BPSTAT_WHAT_SET_LONGJMP_RESUME, BPSTAT_WHAT_CLEAR_LONGJMP_RESUME, BPSTAT_WHAT_STEP_RESUME, BPSTAT_WHAT_STOP_SILENT, BPSTAT_WHAT_STOP_NOISY, BPSTAT_WHAT_HP_STEP_RESUME }
enum | stop_stack_kind { STOP_NONE = 0, STOP_STACK_DUMMY, STOP_STD_TERMINATE }
enum | bp_print_how { print_it_normal, print_it_noop, print_it_done }
enum | inf_context { inf_starting, inf_running, inf_exited, inf_execd }
enum | breakpoint_here { no_breakpoint_here = 0, ordinary_breakpoint_here, permanent_breakpoint_here }
enum | breakpoint_create_flags { CREATE_BREAKPOINT_FLAGS_INSERTED = 1 << 0 }

## Functions
void | print_recreate_thread (struct breakpoint *b, struct ui_file *fp)
| DEF_VEC_P (bp_location_p)
struct breakpoint * | breakpoint_find_if (int(*func)(struct breakpoint *b, void *d), void *user_data)
int | is_breakpoint (const struct breakpoint *bpt)
int | is_watchpoint (const struct breakpoint *bpt)
| DEF_VEC_P (breakpoint_p)
void | bpstat_clear (bpstat *)
bpstat | bpstat_copy (bpstat)
bpstat | bpstat_stop_status (const address_space *aspace, CORE_ADDR pc, ptid_t ptid, const struct target_waitstatus *ws)
struct bpstat_what | bpstat_what (bpstat)
void | bpstat_run_callbacks (bpstat bs_head)
bpstat | bpstat_find_breakpoint (bpstat, struct breakpoint *)
int | bpstat_explains_signal (bpstat, enum gdb_signal)
int | bpstat_causes_stop (bpstat)
int | bpstat_should_step (void)
enum print_stop_action | bpstat_print (bpstat, int)
int | bpstat_num (bpstat *, int *)
void | bpstat_do_actions (void)
void | bpstat_clear_actions (void)
int | program_breakpoint_here_p (struct gdbarch *gdbarch, CORE_ADDR address)
enum breakpoint_here | breakpoint_here_p (const address_space *, CORE_ADDR)
int | breakpoint_in_range_p (const address_space *aspace, CORE_ADDR addr, ULONGEST len)
int | moribund_breakpoint_here_p (const address_space *, CORE_ADDR)
int | breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
int | software_breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
int | hardware_breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
int | breakpoint_has_location_inserted_here (struct breakpoint *bp, const address_space *aspace, CORE_ADDR pc)
int | single_step_breakpoint_inserted_here_p (const address_space *, CORE_ADDR)
int | hardware_watchpoint_inserted_in_range (const address_space *, CORE_ADDR addr, ULONGEST len)
int | breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, const address_space *aspace2, CORE_ADDR addr2)
void | until_break_command (const char *, int, int)
void | update_breakpoint_locations (struct breakpoint *b, struct program_space *filter_pspace, gdb::array_view< const symtab_and_line > sals, gdb::array_view< const symtab_and_line > sals_end)
void | breakpoint_re_set (void)
void | breakpoint_re_set_thread (struct breakpoint *)
void | delete_breakpoint (struct breakpoint *)
breakpoint_up | set_momentary_breakpoint (struct gdbarch *, struct symtab_and_line, struct frame_id, enum bptype)
breakpoint_up | set_momentary_breakpoint_at_pc (struct gdbarch *, CORE_ADDR pc, enum bptype type)
struct breakpoint * | clone_momentary_breakpoint (struct breakpoint *bpkt)
void | set_ignore_count (int, int, int)
void | breakpoint_init_inferior (enum inf_context)
void | breakpoint_auto_delete (bpstat)
void | iterate_over_bp_locations (walk_bp_location_callback)
struct command_line * | breakpoint_commands (struct breakpoint *b)
const char * | bpdisp_text (enum bpdisp disp)
void | break_command (const char *, int)
void | hbreak_command_wrapper (const char *, int)
void | thbreak_command_wrapper (const char *, int)
void | rbreak_command_wrapper (const char *, int)
void | watch_command_wrapper (const char *, int, int)
void | awatch_command_wrapper (const char *, int, int)
void | rwatch_command_wrapper (const char *, int, int)
void | tbreak_command (const char *, int)
void | initialize_breakpoint_ops (void)
void | add_catch_command (const char *name, const char *docstring, cmd_const_sfunc_ftype *sfunc, completer_ftype *completer, void *user_data_catch, void *user_data_tcatch)
void | init_ada_exception_breakpoint (struct breakpoint *b, struct gdbarch *gdbarch, struct symtab_and_line sal, const char *addr_string, const struct breakpoint_ops *ops, int tempflag, int enabled, int from_tty)
void | init_catchpoint (struct breakpoint *b, struct gdbarch *gdbarch, int tempflag, const char *cond_string, const struct breakpoint_ops *ops)
void | install_breakpoint (int internal, std::unique_ptr< breakpoint > &&b, int update_gll)
int | create_breakpoint (struct gdbarch *gdbarch, const struct event_location *location, const char *cond_string, int thread, const char *extra_string, int parse_extra, int tempflag, enum bptype wanted_type, int ignore_count, enum auto_boolean pending_break_support, const struct breakpoint_ops *ops, int from_tty, int enabled, int internal, unsigned flags)
void | insert_breakpoints (void)
int | remove_breakpoints (void)
int | remove_breakpoints_pid (int pid)
void | update_breakpoints_after_exec (void)
int | detach_breakpoints (ptid_t ptid)
void | breakpoint_program_space_exit (struct program_space *pspace)
void | set_longjmp_breakpoint (struct thread_info *tp, struct frame_id frame)
void | delete_longjmp_breakpoint (int thread)
void | delete_longjmp_breakpoint_at_next_stop (int thread)
struct breakpoint * | set_longjmp_breakpoint_for_call_dummy (void)
void | check_longjmp_breakpoint_for_call_dummy (struct thread_info *tp)
void | enable_overlay_breakpoints (void)
void | disable_overlay_breakpoints (void)
void | set_std_terminate_breakpoint (void)
void | delete_std_terminate_breakpoint (void)
void | disable_watchpoints_before_interactive_call_start (void)
void | enable_watchpoints_after_interactive_call_stop (void)
void | disable_breakpoints_before_startup (void)
void | enable_breakpoints_after_startup (void)
enum command_control_type | commands_from_control_command (const char *arg, struct command_line *cmd)
void | clear_breakpoint_hit_counts (void)
struct breakpoint * | get_breakpoint (int num)
void | disable_current_display (void)
void | do_displays (void)
void | disable_display (int)
void | clear_displays (void)
void | disable_breakpoint (struct breakpoint *)
void | enable_breakpoint (struct breakpoint *)
void | breakpoint_set_commands (struct breakpoint *b, command_line_up &&commands)
void | breakpoint_set_silent (struct breakpoint *b, int silent)
void | breakpoint_set_thread (struct breakpoint *b, int thread)
void | breakpoint_set_task (struct breakpoint *b, int task)
void | mark_breakpoints_out (void)
struct breakpoint * | create_jit_event_breakpoint (struct gdbarch *, CORE_ADDR)
struct breakpoint * | create_solib_event_breakpoint (struct gdbarch *, CORE_ADDR)
struct breakpoint * | create_and_insert_solib_event_breakpoint (struct gdbarch *gdbarch, CORE_ADDR address)
struct breakpoint * | create_thread_event_breakpoint (struct gdbarch *, CORE_ADDR)
void | remove_jit_event_breakpoints (void)
void | remove_solib_event_breakpoints (void)
void | remove_solib_event_breakpoints_at_next_stop (void)
void | disable_breakpoints_in_shlibs (void)
int | is_catchpoint (struct breakpoint *)
void | add_solib_catchpoint (const char *arg, int is_load, int is_temp, int enabled)
void | insert_single_step_breakpoint (struct gdbarch *, const address_space *, CORE_ADDR)
int | insert_single_step_breakpoints (struct gdbarch *)
int | watchpoints_triggered (struct target_waitstatus *)
void | breakpoint_xfer_memory (gdb_byte *readbuf, gdb_byte *writebuf, const gdb_byte *writebuf_org, ULONGEST memaddr, LONGEST len)
int | breakpoints_should_be_inserted_now (void)
void | breakpoint_retire_moribund (void)
void | set_breakpoint_condition (struct breakpoint *b, const char *exp, int from_tty)
int | catch_syscall_enabled (void)
int | catching_syscall_number (int syscall_number)
struct tracepoint * | get_tracepoint (int num)
struct tracepoint * | get_tracepoint_by_number_on_target (int num)
struct tracepoint * | get_tracepoint_by_number (const char **arg, number_or_range_parser *parser)
| VEC (breakpoint_p) *all_tracepoints(void)
int | is_tracepoint (const struct breakpoint *b)
void | check_tracepoint_command (char *line, void *closure)
struct breakpoint * | iterate_over_breakpoints (int(*)(struct breakpoint *, void *), void *)
int | pc_at_non_inline_function (const address_space *aspace, CORE_ADDR pc, const struct target_waitstatus *ws)
int | user_breakpoint_p (struct breakpoint *)
int | pending_breakpoint_p (struct breakpoint *)
struct gdbarch * | get_sal_arch (struct symtab_and_line sal)
void | breakpoint_free_objfile (struct objfile *objfile)
const char * | ep_parse_optional_if_clause (const char **arg)
void | maybe_print_thread_hit_breakpoint (struct ui_out *uiout)
void | print_breakpoint (breakpoint *bp)

## Variables
int | target_exact_watchpoints
struct breakpoint_ops | base_breakpoint_ops
struct breakpoint_ops | bkpt_breakpoint_ops
struct breakpoint_ops | tracepoint_breakpoint_ops
struct breakpoint_ops | dprintf_breakpoint_ops

## Macro Definition Documentation

## ◆ BREAKPOINT_MAX

#define BREAKPOINT_MAX 16

Definition at line 62 of file breakpoint.h.

Referenced by memory_validate_breakpoint(), microblaze_linux_memory_remove_breakpoint(), and ppc_linux_memory_remove_breakpoint().

## ◆ CATCH_PERMANENT

#define CATCH_PERMANENT ((void *) (uintptr_t) 0)

Definition at line 1282 of file breakpoint.h.

Referenced by _initialize_ada_language(), _initialize_break_catch_sig(), _initialize_break_catch_syscall(), _initialize_break_catch_throw(), and _initialize_breakpoint().

## ◆ CATCH_TEMPORARY

#define CATCH_TEMPORARY ((void *) (uintptr_t) 1)

Definition at line 1283 of file breakpoint.h.

Referenced by _initialize_ada_language(), _initialize_break_catch_sig(), _initialize_break_catch_syscall(), _initialize_break_catch_throw(), _initialize_breakpoint(), catch_ada_exception_command(), catch_ada_handlers_command(), catch_assert_command(), catch_catch_command(), catch_exec_command_1(), catch_load_or_unload(), catch_rethrow_command(), catch_signal_command(), catch_syscall_command_1(), and catch_throw_command().

## Typedef Documentation

## ◆ bp_location_p

typedef struct bp_location* bp_location_p

Definition at line 662 of file breakpoint.h.

## ◆ bpstat

typedef struct bpstats* bpstat

Definition at line 910 of file breakpoint.h.

## ◆ breakpoint_p

typedef struct breakpoint* breakpoint_p

Definition at line 903 of file breakpoint.h.

## ◆ breakpoint_up

typedef std::unique_ptr<struct breakpoint, breakpoint_deleter> breakpoint_up

Definition at line 1236 of file breakpoint.h.

## ◆ counted_command_line

typedef std::shared_ptr<command_line> counted_command_line

Definition at line 667 of file breakpoint.h.

## ◆ walk_bp_location_callback

typedef void(* walk_bp_location_callback) (struct bp_location *, void *)

Definition at line 1252 of file breakpoint.h.

## Enumeration Type Documentation

## ◆ bp_loc_type

enum bp_loc_type

Enumerator
bp_loc_software_breakpoint |
bp_loc_hardware_breakpoint |
bp_loc_hardware_watchpoint |
bp_loc_other |

Definition at line 296 of file breakpoint.h.

## ◆ bp_print_how

enum bp_print_how

Enumerator
print_it_normal |
print_it_noop |
print_it_done |

Definition at line 1072 of file breakpoint.h.

## ◆ bpdisp

enum bpdisp

Enumerator
disp_del |
disp_del_at_next_stop |
disp_disable |
disp_donttouch |

Definition at line 217 of file breakpoint.h.

## ◆ bpstat_what_main_action

enum bpstat_what_main_action

Enumerator
BPSTAT_WHAT_KEEP_CHECKING |
BPSTAT_WHAT_SINGLE |
BPSTAT_WHAT_SET_LONGJMP_RESUME |
BPSTAT_WHAT_CLEAR_LONGJMP_RESUME |
BPSTAT_WHAT_STEP_RESUME |
BPSTAT_WHAT_STOP_SILENT |
BPSTAT_WHAT_STOP_NOISY |
BPSTAT_WHAT_HP_STEP_RESUME |

Definition at line 940 of file breakpoint.h.

## ◆ bptype

enum bptype

Enumerator
bp_none |
bp_breakpoint |
bp_hardware_breakpoint |
bp_single_step |
bp_until |
bp_finish |
bp_watchpoint |
bp_hardware_watchpoint |
bp_read_watchpoint |
bp_access_watchpoint |
bp_longjmp |
bp_longjmp_resume |
bp_longjmp_call_dummy |
bp_exception |
bp_exception_resume |
bp_step_resume |
bp_hp_step_resume |
bp_watchpoint_scope |
bp_call_dummy |
bp_std_terminate |
bp_shlib_event |
bp_thread_event |
bp_overlay_event |
bp_longjmp_master |
bp_std_terminate_master |
bp_exception_master |
bp_catchpoint |
bp_tracepoint |
bp_fast_tracepoint |
bp_static_tracepoint |
bp_dprintf |
bp_jit_event |
bp_gnu_ifunc_resolver |
bp_gnu_ifunc_resolver_return |

Definition at line 67 of file breakpoint.h.

## ◆ breakpoint_create_flags

enum breakpoint_create_flags

Enumerator
CREATE_BREAKPOINT_FLAGS_INSERTED |

Definition at line 1325 of file breakpoint.h.

## ◆ breakpoint_here

enum breakpoint_here

Enumerator
no_breakpoint_here |
ordinary_breakpoint_here |
permanent_breakpoint_here |

Definition at line 1151 of file breakpoint.h.

## ◆ condition_status

enum condition_status

Enumerator
condition_unchanged |
condition_modified |
condition_updated |

Definition at line 229 of file breakpoint.h.

## ◆ enable_state

enum enable_state

Enumerator
bp_disabled |
bp_enabled |
bp_call_disabled |

Definition at line 198 of file breakpoint.h.

## ◆ inf_context

enum inf_context

Enumerator
inf_starting |
inf_running |
inf_exited |
inf_execd |

Definition at line 1141 of file breakpoint.h.

## ◆ print_stop_action

enum print_stop_action

Enumerator
PRINT_UNKNOWN |
PRINT_SRC_AND_LOC |
PRINT_SRC_ONLY |
PRINT_NOTHING |

Definition at line 498 of file breakpoint.h.

## ◆ remove_bp_reason

enum remove_bp_reason

Enumerator
REMOVE_BREAKPOINT |
DETACH_BREAKPOINT |

Definition at line 47 of file breakpoint.h.

## ◆ stop_stack_kind

enum stop_stack_kind

Enumerator
STOP_NONE |
STOP_STACK_DUMMY |
STOP_STD_TERMINATE |

Definition at line 991 of file breakpoint.h.

## ◆ watchpoint_triggered

enum watchpoint_triggered

Enumerator
watch_triggered_no |
watch_triggered_unknown |
watch_triggered_yes |

Definition at line 649 of file breakpoint.h.

## Function Documentation

## ◆ add_catch_command()

void add_catch_command | ( | const char * | name,
|  | const char * | docstring,
|  | cmd_const_sfunc_ftype * | sfunc,
|  | completer_ftype * | completer,
|  | void * | user_data_catch,
|  | void * | user_data_tcatch
| ) |  |

Definition at line 15317 of file breakpoint.c.

References add_cmd(), catch_cmdlist, class_breakpoint, cmd_list_element::completer, name, set_cmd_completer(), set_cmd_context(), set_cmd_sfunc(), cmd_list_element::sfunc, and tcatch_cmdlist.

Referenced by _initialize_ada_language(), _initialize_break_catch_sig(), _initialize_break_catch_syscall(), _initialize_break_catch_throw(), and _initialize_breakpoint().

## ◆ add_solib_catchpoint()

void add_solib_catchpoint | ( | const char * | arg,
|  | int | is_load,
|  | int | is_temp,
|  | int | enabled
| ) |  |

Definition at line 8180 of file breakpoint.c.

References _, bp_disabled, bp_enabled, catch_solib_breakpoint_ops, get_current_arch(), init_catchpoint(), install_breakpoint(), and skip_spaces().

Referenced by catch_load_or_unload(), and mi_catch_load_unload().

## ◆ awatch_command_wrapper()

void awatch_command_wrapper | ( | const char * | ,
|  | int | ,
|  | int |
| ) |  |

Definition at line 11052 of file breakpoint.c.

References hw_access, and watch_command_1().

Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().

## ◆ bpdisp_text()

const char* bpdisp_text | ( | enum bpdisp | disp | ) |

Definition at line 314 of file breakpoint.c.

Referenced by bkpt_print_it(), print_it_catch_exec(), print_it_catch_fork(), print_it_catch_solib(), print_it_catch_syscall(), print_it_catch_vfork(), print_it_exception(), print_it_exception_catchpoint(), print_it_ranged_breakpoint(), and print_one_breakpoint_location().

## ◆ bpstat_causes_stop()

int bpstat_causes_stop | ( | bpstat |  | ) |

Definition at line 5780 of file breakpoint.c.

References bpstats::next, and bpstats::stop.

Referenced by bpstat_stop_status(), handle_inferior_event_1(), and handle_syscall_event().

## ◆ bpstat_clear()

void bpstat_clear | ( | bpstat * |  | ) |

Definition at line 4212 of file breakpoint.c.

References bpstats::next.

Referenced by clear_proceed_status_thread(), clear_thread_inferior_resources(), discard_infcall_control_state(), handle_signal_stop(), and restore_infcall_control_state().

## ◆ bpstat_clear_actions()

void bpstat_clear_actions | ( | void |  | ) |

Definition at line 4349 of file breakpoint.c.

References bpstats::commands, thread_info::control, find_thread_ptid(), inferior_ptid, bpstats::next, null_ptid, bpstats::old_val, ptid_equal(), thread_control_state::stop_bpstat, and value_free().

Referenced by do_bpstat_clear_actions_cleanup().

## ◆ bpstat_copy()

bpstat bpstat_copy | ( | bpstat |  | ) |

Definition at line 4251 of file breakpoint.c.

References bpstats::next.

Referenced by save_infcall_control_state().

## ◆ bpstat_do_actions()

void bpstat_do_actions | ( | void |  | ) |

Definition at line 4494 of file breakpoint.c.

References bpstat_do_actions_1(), discard_cleanups(), inferior_ptid, inferior_thread(), is_executing(), is_exited(), make_bpstat_clear_actions_cleanup(), null_ptid, ptid_equal(), and target_has_execution.

Referenced by command_handler(), execute_gdb_command(), inferior_event_handler(), and mi_execute_command().

## ◆ bpstat_explains_signal()

int bpstat_explains_signal | ( | bpstat | ,
|  | enum | gdb_signal
| ) |  |

Definition at line 4294 of file breakpoint.c.

References bpstats::breakpoint_at, breakpoint_ops::explains_signal, bpstats::next, and breakpoint::ops.

Referenced by handle_signal_stop().

## ◆ bpstat_find_breakpoint()

bpstat bpstat_find_breakpoint | ( | bpstat | ,
|  | struct breakpoint * |
| ) |  |

Definition at line 4278 of file breakpoint.c.

References bpstats::breakpoint_at, and bpstats::next.

Referenced by finish_command_fsm_should_stop(), and until_break_fsm_should_stop().

## ◆ bpstat_num()

int bpstat_num | ( | bpstat * | ,
|  | int * |
| ) |  |

Definition at line 4327 of file breakpoint.c.

References bpstats::next, and breakpoint::number.

Referenced by continue_command(), and info_program_command().

## ◆ bpstat_print()

enum print_stop_action bpstat_print | ( | bpstat | ,
|  | int |
| ) |  |

Definition at line 4686 of file breakpoint.c.

References bpstats::next, print_bp_stop_message(), PRINT_NOTHING, print_solib_event(), PRINT_SRC_AND_LOC, PRINT_SRC_ONLY, PRINT_UNKNOWN, and TARGET_WAITKIND_LOADED.

Referenced by print_stop_location().

## ◆ bpstat_run_callbacks()

void bpstat_run_callbacks | ( | bpstat | bs_head | ) |

Definition at line 5739 of file breakpoint.c.

References bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_jit_event, bpstats::breakpoint_at, gnu_ifunc_resolver_return_stop, gnu_ifunc_resolver_stop, handle_jit_event(), bpstats::next, and breakpoint::type.

Referenced by process_event_stop_test().

## ◆ bpstat_should_step()

int bpstat_should_step | ( | void |  | ) |

Definition at line 5769 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_watchpoint, breakpoint_enabled(), breakpoint::loc, and breakpoint::type.

Referenced by currently_stepping(), and resume_1().

## ◆ bpstat_stop_status()

bpstat bpstat_stop_status | ( | const address_space * | aspace,
|  | CORE_ADDR | pc,
|  | ptid_t | ptid,
|  | const struct target_waitstatus * | ws
| ) |  |

Definition at line 5365 of file breakpoint.c.

References breakpoint_ops::after_condition_true, ALL_BREAKPOINTS, bp_disabled, bp_hardware_watchpoint, bp_shlib_event, bp_watchpoint_scope, bpstat_causes_stop(), bpstat_check_breakpoint_conditions(), bpstat_check_location(), bpstats::breakpoint_at, breakpoint_enabled(), breakpoint_location_address_match(), breakpoint_ops::check_status, command_line_is_silent(), breakpoint::commands, bpstats::commands, disp_disable, breakpoint::disposition, breakpoint::enable_count, breakpoint::enable_state, bp_location::enabled, handle_solib_event(), breakpoint::hit_count, is_hardware_watchpoint(), breakpoint::loc, loc, need_moribund_for_location_type(), bp_location::next, bpstats::next, observer_notify_breakpoint_modified(), breakpoint::ops, bpstats::print, bpstats::print_it, print_it_noop, breakpoint::related_breakpoint, bp_location::shlib_disabled, breakpoint::silent, bpstats::stop, target_supports_stopped_by_hw_breakpoint, target_supports_stopped_by_sw_breakpoint, breakpoint::type, UGLL_DONT_INSERT, UGLL_MAY_INSERT, update_global_location_list(), update_watchpoint(), VEC_iterate, watch_triggered_yes, and watchpoint::watchpoint_triggered.

Referenced by handle_inferior_event_1(), handle_signal_stop(), and handle_syscall_event().

## ◆ bpstat_what()

struct bpstat_what bpstat_what | ( | bpstat |  | ) |

Definition at line 5563 of file breakpoint.c.

References _, bp_access_watchpoint, bp_breakpoint, bp_call_dummy, bp_catchpoint, bp_dprintf, bp_exception, bp_exception_master, bp_exception_resume, bp_fast_tracepoint, bp_finish, bp_gnu_ifunc_resolver, bp_gnu_ifunc_resolver_return, bp_hardware_breakpoint, bp_hardware_watchpoint, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_none, bp_overlay_event, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_static_tracepoint, bp_std_terminate, bp_std_terminate_master, bp_step_resume, bp_thread_event, bp_tracepoint, bp_until, bp_watchpoint, bp_watchpoint_scope, BPSTAT_WHAT_CLEAR_LONGJMP_RESUME, BPSTAT_WHAT_HP_STEP_RESUME, BPSTAT_WHAT_KEEP_CHECKING, BPSTAT_WHAT_SET_LONGJMP_RESUME, BPSTAT_WHAT_SINGLE, BPSTAT_WHAT_STEP_RESUME, BPSTAT_WHAT_STOP_NOISY, BPSTAT_WHAT_STOP_SILENT, bpstat_what::call_dummy, internal_error(), bpstat_what::is_longjmp, bpstat_what::main_action, STOP_NONE, STOP_STACK_DUMMY, and STOP_STD_TERMINATE.

Referenced by process_event_stop_test().

## ◆ break_command()

void break_command | ( | const char * | ,
|  | int |
| ) |  |

Definition at line 9596 of file breakpoint.c.

References break_command_1().

Referenced by _initialize_breakpoint(), mi_cmd_break_commands(), and rbreak_command().

## ◆ breakpoint_address_match()

int breakpoint_address_match | ( | const address_space * | aspace1,
|  | CORE_ADDR | addr1,
|  | const address_space * | aspace2,
|  | CORE_ADDR | addr2
| ) |  |

Definition at line 6838 of file breakpoint.c.

References gdbarch_has_global_breakpoints(), and target_gdbarch().

Referenced by bkpt_breakpoint_hit(), bp_location_inserted_here_p(), breakpoint_location_address_match(), breakpoint_locations_match(), one_breakpoint_xfer_memory(), and stepping_past_instruction_at().

## ◆ breakpoint_auto_delete()

void breakpoint_auto_delete | ( | bpstat |  | ) |

Definition at line 11624 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bpstats::breakpoint_at, delete_breakpoint(), disp_del, disp_del_at_next_stop, breakpoint::disposition, bpstats::next, and bpstats::stop.

Referenced by normal_stop(), and run_inferior_call().

## ◆ breakpoint_commands()

struct command_line* breakpoint_commands | ( | struct breakpoint * | b | ) |

Definition at line 303 of file breakpoint.c.

References breakpoint::commands.

Referenced by all_tracepoint_actions_and_cleanup(), bppy_get_commands(), gdbscm_breakpoint_commands(), and remote_download_tracepoint().

## ◆ breakpoint_find_if()

struct breakpoint* breakpoint_find_if | ( | int(*)(struct breakpoint *b, void *d) | func,
|  | void * | user_data
| ) |  |

Referenced by catching_syscall_number().

## ◆ breakpoint_free_objfile()

void breakpoint_free_objfile | ( | struct objfile * | objfile | ) |

Definition at line 15404 of file breakpoint.c.

References ALL_BP_LOCATIONS, loc, and SYMTAB_OBJFILE.

Referenced by objfile::~objfile().

## ◆ breakpoint_has_location_inserted_here()

int breakpoint_has_location_inserted_here | ( | struct breakpoint * | bp,
|  | const address_space * | aspace,
|  | CORE_ADDR | pc
| ) |  |

Definition at line 14647 of file breakpoint.c.

References bp, breakpoint_location_address_match(), and loc.

Referenced by single_step_breakpoint_inserted_here_p(), and thread_has_single_step_breakpoint_here().

## ◆ breakpoint_here_p()

enum breakpoint_here breakpoint_here_p | ( | const address_space * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 3989 of file breakpoint.c.

References ALL_BP_LOCATIONS, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, breakpoint_enabled(), breakpoint_location_address_match(), bp_location::loc_type, no_breakpoint_here, ordinary_breakpoint_here, overlay_debugging, bp_location::owner, bp_location::permanent, permanent_breakpoint_here, bp_location::section, section_is_mapped(), and section_is_overlay().

Referenced by crisv32_single_step_through_delay(), mips_single_step_through_delay(), proceed(), resume_1(), thread_still_needs_step_over_bp(), and tui_set_disassem_content().

## ◆ breakpoint_in_range_p()

int breakpoint_in_range_p | ( | const address_space * | aspace,
|  | CORE_ADDR | addr,
|  | ULONGEST | len
| ) |  |

Definition at line 4022 of file breakpoint.c.

References ALL_BP_LOCATIONS, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, breakpoint_enabled(), breakpoint_location_address_range_overlap(), bp_location::loc_type, overlay_debugging, bp_location::owner, bp_location::permanent, bp_location::section, section_is_mapped(), and section_is_overlay().

Referenced by displaced_step_prepare_throw().

## ◆ breakpoint_init_inferior()

void breakpoint_init_inferior | ( | enum | inf_context | ) |

Definition at line 3872 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_access_watchpoint, bp_call_dummy, bp_hardware_watchpoint, bp_longjmp_call_dummy, bp_read_watchpoint, bp_shlib_event, bp_single_step, bp_step_resume, bp_watchpoint, bp_watchpoint_scope, current_program_space, decref_bp_location(), delete_breakpoint(), watchpoint::exp_valid_block, gdbarch_has_global_breakpoints(), inf_starting, breakpoint::loc, mark_breakpoints_out(), bp_location::pspace, target_gdbarch(), breakpoint::type, watchpoint::val, watchpoint::val_valid, value_free(), VEC_free, and VEC_iterate.

Referenced by detach_command(), follow_exec(), generic_mourn_inferior(), and init_wait_for_inferior().

## ◆ breakpoint_inserted_here_p()

int breakpoint_inserted_here_p | ( | const address_space * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 4092 of file breakpoint.c.

References ALL_BP_LOCATIONS_AT_ADDR, bp_loc_hardware_breakpoint, bp_loc_software_breakpoint, bp_location_inserted_here_p(), and bp_location::loc_type.

Referenced by cancel_breakpoint(), do_target_wait(), handle_inferior_event_1(), record_check_stopped_by_breakpoint(), resume_1(), resume_stopped_resumed_lwps(), and status_callback().

## ◆ breakpoint_program_space_exit()

void breakpoint_program_space_exit | ( | struct program_space * | pspace | ) |

Definition at line 2802 of file breakpoint.c.

References ALL_BP_LOCATIONS, ALL_BREAKPOINTS_SAFE, delete_breakpoint(), loc, bp_location::next, bp_location::pspace, breakpoint::pspace, UGLL_DONT_INSERT, and update_global_location_list().

Referenced by release_program_space().

## ◆ breakpoint_re_set()

void breakpoint_re_set | ( | void |  | ) |

Definition at line 13952 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, breakpoint_re_set_one(), CATCH, create_exception_master_breakpoint(), create_longjmp_master_breakpoint(), create_overlay_event_breakpoint(), create_std_terminate_master_breakpoint(), END_CATCH, exception_fprintf(), gdb_stderr, input_radix, jit_breakpoint_re_set(), make_scoped_restore(), breakpoint::number, RETURN_MASK_ALL, TRY, UGLL_MAY_INSERT, and update_global_location_list().

Referenced by clear_symtab_users(), enable_breakpoints_after_startup(), finish_new_objfile(), follow_exec(), follow_inferior_reset_breakpoints(), generic_load(), objfile_rebase(), objfile_relocate(), post_create_inferior(), reload_shared_libraries(), and solib_add().

## ◆ breakpoint_re_set_thread()

void breakpoint_re_set_thread | ( | struct breakpoint * |  | ) |

Definition at line 13998 of file breakpoint.c.

References current_program_space, in_thread_list(), inferior_ptid, breakpoint::loc, bp_location::pspace, ptid_to_global_thread_id(), and breakpoint::thread.

Referenced by follow_inferior_reset_breakpoints().

## ◆ breakpoint_retire_moribund()

void breakpoint_retire_moribund | ( | void |  | ) |

Definition at line 12195 of file breakpoint.c.

References decref_bp_location(), loc, VEC_iterate, and VEC_unordered_remove.

Referenced by handle_inferior_event_1().

## ◆ breakpoint_set_commands()

void breakpoint_set_commands | ( | struct breakpoint * | b,
|  | command_line_up && | commands
| ) |  |

Definition at line 1169 of file breakpoint.c.

References breakpoint::commands, observer_notify_breakpoint_modified(), and validate_commands_for_breakpoint().

Referenced by actions_command(), create_tracepoint_from_upload(), mi_cmd_break_commands(), and update_dprintf_command_list().

## ◆ breakpoint_set_silent()

void breakpoint_set_silent | ( | struct breakpoint * | b,
|  | int | silent
| ) |  |

Definition at line 1183 of file breakpoint.c.

References observer_notify_breakpoint_modified(), and breakpoint::silent.

Referenced by bppy_set_silent(), and gdbscm_set_breakpoint_silent_x().

## ◆ breakpoint_set_task()

void breakpoint_set_task | ( | struct breakpoint * | b,
|  | int | task
| ) |  |

Definition at line 1209 of file breakpoint.c.

References observer_notify_breakpoint_modified(), and breakpoint::task.

Referenced by bppy_set_task(), and gdbscm_set_breakpoint_task_x().

## ◆ breakpoint_set_thread()

void breakpoint_set_thread | ( | struct breakpoint * | b,
|  | int | thread
| ) |  |

Definition at line 1196 of file breakpoint.c.

References observer_notify_breakpoint_modified(), and breakpoint::thread.

Referenced by bppy_set_thread(), and gdbscm_set_breakpoint_thread_x().

## ◆ breakpoint_xfer_memory()

void breakpoint_xfer_memory | ( | gdb_byte * | readbuf,
|  | gdb_byte * | writebuf,
|  | const gdb_byte * | writebuf_org,
|  | ULONGEST | memaddr,
|  | LONGEST | len
| ) |  |

Definition at line 1423 of file breakpoint.c.

References _, bp_location::address, bp_location_has_shadow(), bp_locations, bp_locations_count, bp_locations_placed_address_before_address_max, bp_locations_shadow_len_after_address_max, bp_none, bp_location::gdbarch, breakpoint::number, one_breakpoint_xfer_memory(), bp_location::owner, bp_location::target_info, breakpoint::type, and warning().

Referenced by memory_xfer_partial().

## ◆ breakpoints_should_be_inserted_now()

int breakpoints_should_be_inserted_now | ( | void |  | ) |

Definition at line 391 of file breakpoint.c.

References ALL_NON_EXITED_THREADS, always_inserted_mode, gdbarch_has_global_breakpoints(), thread_info::resumed, thread_info::suspend, target_gdbarch(), target_has_execution, threads_are_executing(), and thread_suspend_state::waitstatus_pending_p.

Referenced by maybe_remove_breakpoints(), remote_start_remote(), and update_global_location_list().

## ◆ catch_syscall_enabled()

int catch_syscall_enabled | ( | void |  | ) |

Definition at line 506 of file break-catch-syscall.c.

References current_inferior(), get_catch_syscall_inferior_data(), and catch_syscall_inferior_data::total_syscalls_count.

Referenced by handle_syscall_event(), i386_linux_resume(), inf_ptrace_resume(), and linux_handle_syscall_trap().

## ◆ catching_syscall_number()

int catching_syscall_number | ( | int | syscall_number | ) |

Definition at line 542 of file break-catch-syscall.c.

References breakpoint_find_if(), and catching_syscall_number_1().

Referenced by handle_syscall_event(), and linux_handle_syscall_trap().

## ◆ check_longjmp_breakpoint_for_call_dummy()

void check_longjmp_breakpoint_for_call_dummy | ( | struct thread_info * | tp | ) |

Definition at line 7392 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_call_dummy, bp_longjmp_call_dummy, delete_breakpoint(), dummy_frame_discard(), frame_find_by_id(), breakpoint::frame_id, thread_info::global_num, breakpoint::next, thread_info::ptid, breakpoint::related_breakpoint, breakpoint::thread, and breakpoint::type.

Referenced by process_event_stop_test().

## ◆ check_tracepoint_command()

void check_tracepoint_command | ( | char * | line,
|  | void * | closure
| ) |  |

Definition at line 1219 of file breakpoint.c.

References validate_actionline().

Referenced by actions_command(), and mi_cmd_break_commands().

## ◆ clear_breakpoint_hit_counts()

void clear_breakpoint_hit_counts | ( | void |  | ) |

Definition at line 639 of file breakpoint.c.

References ALL_BREAKPOINTS, and breakpoint::hit_count.

Referenced by run_command_1().

## ◆ clear_displays()

void clear_displays | ( | void |  | ) |

Definition at line 1768 of file printcmd.c.

References display_chain, free_display(), and display::next.

Referenced by clear_symtab_users(), and undisplay_command().

## ◆ clone_momentary_breakpoint()

struct breakpoint* clone_momentary_breakpoint | ( | struct breakpoint * | bpkt | ) |

Definition at line 8611 of file breakpoint.c.

References momentary_breakpoint_from_master(), breakpoint::ops, and breakpoint::type.

Referenced by follow_fork().

## ◆ commands_from_control_command()

enum command_control_type commands_from_control_command | ( | const char * | arg,
|  | struct command_line * | cmd
| ) |  |

Definition at line 1289 of file breakpoint.c.

References commands_command_1(), and simple_control.

Referenced by execute_control_command_1().

## ◆ create_and_insert_solib_event_breakpoint()

struct breakpoint* create_and_insert_solib_event_breakpoint | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | address
| ) |  |

Definition at line 7568 of file breakpoint.c.

References create_solib_event_breakpoint_1(), delete_breakpoint(), bp_location::inserted, breakpoint::loc, and UGLL_INSERT.

## ◆ create_breakpoint()

int create_breakpoint | ( | struct gdbarch * | gdbarch,
|  | const struct event_location * | location,
|  | const char * | cond_string,
|  | int | thread,
|  | const char * | extra_string,
|  | int | parse_extra,
|  | int | tempflag,
|  | enum bptype | wanted_type,
|  | int | ignore_count,
|  | enum auto_boolean | pending_break_support,
|  | const struct breakpoint_ops * | ops,
|  | int | from_tty,
|  | int | enabled,
|  | int | internal,
|  | unsigned | flags
| ) |  |

Definition at line 9325 of file breakpoint.c.

References _, AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, bp_breakpoint, bp_disabled, bp_dprintf, bp_enabled, bp_fast_tracepoint, bp_hardware_breakpoint, bptype_string(), breakpoint_sals_to_pc(), CATCH, check_fast_tracepoint_sals(), copy_event_location(), breakpoint_ops::create_breakpoints_sal, breakpoint_ops::create_sals_from_location, current_program_space, discard_cleanups(), disp_del, disp_donttouch, END_CATCH, error(), exception_print(), find_condition_and_thread(), flags, gdb_assert, gdb_stderr, init_raw_breakpoint_without_location(), install_breakpoint(), linespec_result::lsals, make_cleanup(), new_breakpoint_from_type(), NOT_FOUND_ERROR, nquery(), null_cleanup(), pending_break_support, RETURN_MASK_ERROR, linespec_sals::sals, throw_exception(), TRY, UGLL_MAY_INSERT, update_global_location_list(), and warning().

Referenced by bpfinishpy_init(), bppy_init(), break_command_1(), create_tracepoint_from_upload(), dprintf_command(), ftrace_command(), gdbscm_register_breakpoint_x(), mi_cmd_break_insert_1(), spu_catch_start(), strace_command(), and trace_command().

## ◆ create_jit_event_breakpoint()

struct breakpoint* create_jit_event_breakpoint | ( | struct gdbarch * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 7500 of file breakpoint.c.

References bp_jit_event, create_internal_breakpoint(), and internal_breakpoint_ops.

Referenced by jit_breakpoint_re_set_internal().

## ◆ create_solib_event_breakpoint()

struct breakpoint* create_solib_event_breakpoint | ( | struct gdbarch * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 7560 of file breakpoint.c.

References create_solib_event_breakpoint_1(), and UGLL_MAY_INSERT.

Referenced by darwin_solib_create_inferior_hook(), enable_break(), enable_break2(), ocl_enable_break(), spu_enable_break(), svr4_create_probe_breakpoints(), and svr4_create_solib_event_breakpoints().

## ◆ create_thread_event_breakpoint()

struct breakpoint* create_thread_event_breakpoint | ( | struct gdbarch * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 7475 of file breakpoint.c.

References bp_location::address, bp_enabled, bp_thread_event, create_internal_breakpoint(), breakpoint::enable_state, internal_breakpoint_ops, breakpoint::loc, breakpoint::location, new_address_location(), UGLL_MAY_INSERT, and update_global_location_list_nothrow().

Referenced by pd_enable().

## ◆ DEF_VEC_P() [1/2]

DEF_VEC_P | ( | bp_location_p |  | ) |

## ◆ DEF_VEC_P() [2/2]

DEF_VEC_P | ( | breakpoint_p |  | ) |

## ◆ delete_breakpoint()

void delete_breakpoint | ( | struct breakpoint * |  | ) |

Definition at line 13226 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_none, bp_watchpoint_scope, bpstat_remove_breakpoint_callback(), breakpoint_chain, gdb_assert, if(), iterate_over_threads(), breakpoint::next, breakpoint::number, observer_notify_breakpoint_deleted(), breakpoint::related_breakpoint, breakpoint::type, UGLL_DONT_INSERT, update_global_location_list(), and watchpoint_del_at_next_stop().

Referenced by bkpt_re_set(), bpfinishpy_out_of_scope(), bppy_delete_breakpoint(), breakpoint_auto_delete(), breakpoint_init_inferior(), breakpoint_program_space_exit(), check_longjmp_breakpoint_for_call_dummy(), clear_command(), create_and_insert_solib_event_breakpoint(), delete_command(), delete_longjmp_breakpoint(), delete_std_terminate_breakpoint(), delete_thread_breakpoint(), delete_trace_command(), elf_gnu_ifunc_resolver_return_stop(), finish_command_fsm_clean_up(), free_objfile_data(), gdbscm_delete_breakpoint_x(), internal_bkpt_re_set(), jit_breakpoint_re_set_internal(), breakpoint_deleter::operator()(), pop_dummy_frame_bpt(), remove_jit_event_breakpoints(), remove_solib_event_breakpoints(), until_break_fsm_clean_up(), and update_breakpoints_after_exec().

## ◆ delete_longjmp_breakpoint()

void delete_longjmp_breakpoint | ( | int | thread | ) |

Definition at line 7324 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_exception, bp_longjmp, delete_breakpoint(), breakpoint::thread, and breakpoint::type.

Referenced by delete_longjmp_breakpoint_cleanup(), finish_command_fsm_clean_up(), step_command_fsm_clean_up(), until_break_fsm_clean_up(), and until_next_fsm_clean_up().

## ◆ delete_longjmp_breakpoint_at_next_stop()

void delete_longjmp_breakpoint_at_next_stop | ( | int | thread | ) |

Definition at line 7337 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_exception, bp_longjmp, disp_del_at_next_stop, breakpoint::disposition, breakpoint::thread, and breakpoint::type.

Referenced by clear_thread_inferior_resources().

## ◆ delete_std_terminate_breakpoint()

void delete_std_terminate_breakpoint | ( | void |  | ) |

Definition at line 7465 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_std_terminate, delete_breakpoint(), and breakpoint::type.

Referenced by cleanup_delete_std_terminate_breakpoint().

## ◆ detach_breakpoints()

int detach_breakpoints | ( | ptid_t | ptid | ) |

Definition at line 3645 of file breakpoint.c.

References _, ALL_BP_LOCATIONS, bp_loc_other, current_inferior(), DETACH_BREAKPOINT, error(), inferior_ptid, bp_location::inserted, bp_location::loc_type, make_scoped_restore(), bp_location::pspace, ptid_get_pid(), and remove_breakpoint_1().

Referenced by handle_inferior_event_1(), and linux_handle_extended_wait().

## ◆ disable_breakpoint()

void disable_breakpoint | ( | struct breakpoint * |  | ) |

Definition at line 14330 of file breakpoint.c.

References bp_disabled, bp_watchpoint_scope, current_trace_status(), breakpoint::enable_state, is_tracepoint(), breakpoint::loc, mark_breakpoint_modified(), bp_location::next, observer_notify_breakpoint_modified(), target_disable_tracepoint, target_supports_enable_disable_tracepoint, breakpoint::type, UGLL_DONT_INSERT, and update_global_location_list().

Referenced by bpfinishpy_post_stop_hook(), bppy_set_enabled(), enable_disable_command(), gdbscm_set_breakpoint_enabled_x(), and svr4_update_solib_event_breakpoint().

## ◆ disable_breakpoints_before_startup()

void disable_breakpoints_before_startup | ( | void |  | ) |

Definition at line 8507 of file breakpoint.c.

References current_program_space, program_space::executing_startup, UGLL_DONT_INSERT, and update_global_location_list().

Referenced by spu_solib_create_inferior_hook().

## ◆ disable_breakpoints_in_shlibs()

void disable_breakpoints_in_shlibs | ( | void |  | ) |

Definition at line 7587 of file breakpoint.c.

References bp_location::address, ALL_BP_LOCATIONS, bp_breakpoint, bp_hardware_breakpoint, bp_jit_event, current_program_space, is_tracepoint(), breakpoint::loc, loc, bp_location::owner, bp_location::pspace, bp_location::shlib_disabled, solib_name_from_address(), and breakpoint::type.

Referenced by clear_solib(), and do_initial_windows_stuff().

## ◆ disable_current_display()

void disable_current_display | ( | void |  | ) |

Definition at line 2042 of file printcmd.c.

References _, current_display_number, disable_display(), fprintf_unfiltered(), and gdb_stderr.

Referenced by normal_stop().

## ◆ disable_display()

void disable_display | ( | int |  | ) |

Definition at line 2028 of file printcmd.c.

References _, display_chain, display::enabled_p, display::next, display::number, and printf_unfiltered().

Referenced by disable_current_display().

## ◆ disable_overlay_breakpoints()

void disable_overlay_breakpoints | ( | void |  | ) |

Definition at line 7434 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_disabled, bp_overlay_event, breakpoint::enable_state, overlay_events_enabled, breakpoint::type, UGLL_DONT_INSERT, and update_global_location_list().

Referenced by overlay_manual_command(), and overlay_off_command().

## ◆ disable_watchpoints_before_interactive_call_start()

void disable_watchpoints_before_interactive_call_start | ( | void |  | ) |

Definition at line 8477 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_call_disabled, breakpoint_enabled(), breakpoint::enable_state, is_watchpoint(), UGLL_DONT_INSERT, and update_global_location_list().

Referenced by run_inferior_call().

## ◆ do_displays()

void do_displays | ( | void |  | ) |

Definition at line 2016 of file printcmd.c.

References display_chain, do_one_display(), and display::next.

Referenced by display_command(), print_stop_event(), and tfind_1().

## ◆ enable_breakpoint()

void enable_breakpoint | ( | struct breakpoint * |  | ) |

Definition at line 14485 of file breakpoint.c.

References breakpoint::disposition, and enable_breakpoint_disp().

Referenced by bppy_set_enabled(), enable_disable_command(), gdbscm_set_breakpoint_enabled_x(), and svr4_update_solib_event_breakpoint().

## ◆ enable_breakpoints_after_startup()

void enable_breakpoints_after_startup | ( | void |  | ) |

Definition at line 8514 of file breakpoint.c.

References breakpoint_re_set(), current_program_space, and program_space::executing_startup.

Referenced by spu_current_sos().

## ◆ enable_overlay_breakpoints()

void enable_overlay_breakpoints | ( | void |  | ) |

Definition at line 7420 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_enabled, bp_overlay_event, breakpoint::enable_state, overlay_events_enabled, breakpoint::type, UGLL_MAY_INSERT, and update_global_location_list().

Referenced by overlay_auto_command().

## ◆ enable_watchpoints_after_interactive_call_stop()

void enable_watchpoints_after_interactive_call_stop | ( | void |  | ) |

Definition at line 8492 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_call_disabled, bp_enabled, breakpoint::enable_state, is_watchpoint(), UGLL_MAY_INSERT, and update_global_location_list().

Referenced by run_inferior_call().

## ◆ ep_parse_optional_if_clause()

const char* ep_parse_optional_if_clause | ( | const char ** | arg | ) |

Definition at line 11279 of file breakpoint.c.

References skip_spaces().

Referenced by catch_exception_command_1(), catch_exec_command_1(), and catch_fork_command_1().

## ◆ get_breakpoint()

struct breakpoint* get_breakpoint | ( | int | num | ) |

Definition at line 652 of file breakpoint.c.

References ALL_BREAKPOINTS, and breakpoint::number.

Referenced by bpscm_breakpoint_deleted(), gdbpy_breakpoint_deleted(), gdbpy_breakpoint_modified(), and mi_cmd_break_commands().

## ◆ get_sal_arch()

struct gdbarch* get_sal_arch | ( | struct symtab_and_line | sal | ) |

Definition at line 7227 of file breakpoint.c.

References get_objfile_arch(), obj_section::objfile, symtab_and_line::section, symtab_and_line::symtab, and SYMTAB_OBJFILE.

Referenced by add_location_to_breakpoint(), check_fast_tracepoint_sals(), init_ada_exception_breakpoint(), and init_breakpoint_sal().

## ◆ get_tracepoint()

struct tracepoint* get_tracepoint | ( | int | num | ) |

Definition at line 15018 of file breakpoint.c.

References ALL_TRACEPOINTS, and breakpoint::number.

Referenced by create_tracepoint_from_upload(), get_traceframe_location(), mi_cmd_break_passcount(), tfile_trace_find(), tfind_tracepoint_command(), and tracefile_fetch_registers().

## ◆ get_tracepoint_by_number()

struct tracepoint* get_tracepoint_by_number | ( | const char ** | arg,
|  | number_or_range_parser * | parser
| ) |  |

Definition at line 15055 of file breakpoint.c.

References _, ALL_TRACEPOINTS, number_or_range_parser::finished(), gdb_assert, number_or_range_parser::get_number(), get_number(), breakpoint::number, printf_filtered(), and printf_unfiltered().

Referenced by actions_command(), and trace_pass_command().

## ◆ get_tracepoint_by_number_on_target()

struct tracepoint* get_tracepoint_by_number_on_target | ( | int | num | ) |

Definition at line 15034 of file breakpoint.c.

References ALL_TRACEPOINTS, and tracepoint::number_on_target.

Referenced by tfile_get_traceframe_address(), and tfind_1().

## ◆ hardware_breakpoint_inserted_here_p()

int hardware_breakpoint_inserted_here_p | ( | const address_space * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 4136 of file breakpoint.c.

References ALL_BP_LOCATIONS_AT_ADDR, bp_loc_hardware_breakpoint, bp_location_inserted_here_p(), and bp_location::loc_type.

Referenced by record_check_stopped_by_breakpoint(), save_stop_reason(), and save_waitstatus().

## ◆ hardware_watchpoint_inserted_in_range()

int hardware_watchpoint_inserted_in_range | ( | const address_space * | ,
|  | CORE_ADDR | addr,
|  | ULONGEST | len
| ) |  |

Definition at line 4156 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_access_watchpoint, bp_hardware_watchpoint, breakpoint_enabled(), breakpoint::loc, loc, and breakpoint::type.

Referenced by record_full_exec_insn().

## ◆ hbreak_command_wrapper()

void hbreak_command_wrapper | ( | const char * | ,
|  | int |
| ) |  |

## ◆ init_ada_exception_breakpoint()

void init_ada_exception_breakpoint | ( | struct breakpoint * | b,
|  | struct gdbarch * | gdbarch,
|  | struct symtab_and_line | sal,
|  | const char * | addr_string,
|  | const struct breakpoint_ops * | ops,
|  | int | tempflag,
|  | int | enabled,
|  | int | from_tty
| ) |  |

Definition at line 11391 of file breakpoint.c.

References bp_breakpoint, bp_disabled, bp_enabled, describe_other_breakpoints(), disp_del, disp_donttouch, breakpoint::disposition, breakpoint::enable_state, get_sal_arch(), init_raw_breakpoint(), breakpoint::language, language_ada, language_def(), breakpoint::location, symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, and string_to_event_location().

Referenced by create_ada_exception_catchpoint().

## ◆ init_catchpoint()

void init_catchpoint | ( | struct breakpoint * | b,
|  | struct gdbarch * | gdbarch,
|  | int | tempflag,
|  | const char * | cond_string,
|  | const struct breakpoint_ops * | ops
| ) |  |

Definition at line 8241 of file breakpoint.c.

References bp_catchpoint, breakpoint::cond_string, current_program_space, disp_del, disp_donttouch, breakpoint::disposition, init_raw_breakpoint(), and symtab_and_line::pspace.

Referenced by add_solib_catchpoint(), catch_exec_command_1(), create_fork_vfork_event_catchpoint(), create_signal_catchpoint(), create_syscall_event_catchpoint(), and handle_gnu_v3_exceptions().

## ◆ initialize_breakpoint_ops()

void initialize_breakpoint_ops | ( | void |  | ) |

Definition at line 15414 of file breakpoint.c.

References breakpoint_ops::after_condition_true, base_breakpoint_ops, bkpt_base_breakpoint_ops, bkpt_breakpoint_hit(), bkpt_breakpoint_ops, bkpt_create_breakpoints_sal(), bkpt_create_sals_from_location(), bkpt_decode_location(), bkpt_insert_location(), bkpt_print_it(), bkpt_print_mention(), bkpt_print_recreate(), bkpt_probe_breakpoint_ops, bkpt_probe_create_sals_from_location(), bkpt_probe_decode_location(), bkpt_probe_insert_location(), bkpt_probe_remove_location(), bkpt_re_set(), bkpt_remove_location(), bkpt_resources_needed(), breakpoint_ops::breakpoint_hit, breakpoint_hit_catch_exec(), breakpoint_hit_catch_fork(), breakpoint_hit_catch_solib(), breakpoint_hit_catch_vfork(), breakpoint_hit_ranged_breakpoint(), breakpoint_hit_watchpoint(), catch_exec_breakpoint_ops, catch_fork_breakpoint_ops, catch_solib_breakpoint_ops, catch_vfork_breakpoint_ops, breakpoint_ops::check_status, check_status_catch_solib(), check_status_watchpoint(), breakpoint_ops::create_breakpoints_sal, breakpoint_ops::create_sals_from_location, breakpoint_ops::decode_location, dprintf_after_condition_true(), dprintf_breakpoint_hit(), dprintf_breakpoint_ops, dprintf_print_recreate(), dprintf_re_set(), breakpoint_ops::explains_signal, explains_signal_watchpoint(), insert_catch_exec(), insert_catch_fork(), insert_catch_solib(), insert_catch_vfork(), breakpoint_ops::insert_location, insert_masked_watchpoint(), insert_watchpoint(), internal_bkpt_check_status(), internal_bkpt_print_it(), internal_bkpt_print_mention(), internal_bkpt_re_set(), internal_breakpoint_ops, masked_watchpoint_breakpoint_ops, momentary_bkpt_check_status(), momentary_bkpt_print_it(), momentary_bkpt_print_mention(), momentary_bkpt_re_set(), momentary_breakpoint_ops, breakpoint_ops::print_it, print_it_catch_exec(), print_it_catch_fork(), print_it_catch_solib(), print_it_catch_vfork(), print_it_masked_watchpoint(), print_it_ranged_breakpoint(), print_it_watchpoint(), breakpoint_ops::print_mention, print_mention_catch_exec(), print_mention_catch_fork(), print_mention_catch_solib(), print_mention_catch_vfork(), print_mention_masked_watchpoint(), print_mention_ranged_breakpoint(), print_mention_watchpoint(), breakpoint_ops::print_one, print_one_catch_exec(), print_one_catch_fork(), print_one_catch_solib(), print_one_catch_vfork(), breakpoint_ops::print_one_detail, print_one_detail_masked_watchpoint(), print_one_detail_ranged_breakpoint(), print_one_ranged_breakpoint(), breakpoint_ops::print_recreate, print_recreate_catch_exec(), print_recreate_catch_fork(), print_recreate_catch_solib(), print_recreate_catch_vfork(), print_recreate_masked_watchpoint(), print_recreate_ranged_breakpoint(), print_recreate_watchpoint(), ranged_breakpoint_ops, breakpoint_ops::re_set, re_set_watchpoint(), remove_catch_exec(), remove_catch_fork(), remove_catch_solib(), remove_catch_vfork(), breakpoint_ops::remove_location, remove_masked_watchpoint(), remove_watchpoint(), breakpoint_ops::resources_needed, resources_needed_masked_watchpoint(), resources_needed_ranged_breakpoint(), resources_needed_watchpoint(), strace_marker_breakpoint_ops, strace_marker_create_breakpoints_sal(), strace_marker_create_sals_from_location(), strace_marker_decode_location(), tracepoint_breakpoint_hit(), tracepoint_breakpoint_ops, tracepoint_create_breakpoints_sal(), tracepoint_create_sals_from_location(), tracepoint_decode_location(), tracepoint_print_mention(), tracepoint_print_one_detail(), tracepoint_print_recreate(), tracepoint_probe_breakpoint_ops, tracepoint_probe_create_sals_from_location(), tracepoint_probe_decode_location(), tracepoint_re_set(), watchpoint_breakpoint_ops, breakpoint_ops::works_in_software_mode, works_in_software_mode_masked_watchpoint(), and works_in_software_mode_watchpoint().

Referenced by _initialize_breakpoint(), initialize_ada_catchpoint_ops(), initialize_signal_catchpoint_ops(), initialize_syscall_catchpoint_ops(), and initialize_throw_catchpoint_ops().

## ◆ insert_breakpoints()

void insert_breakpoints | ( | void |  | ) |

Definition at line 2845 of file breakpoint.c.

References ALL_BREAKPOINTS, is_hardware_watchpoint(), UGLL_INSERT, update_global_location_list(), and update_watchpoint().

Referenced by arm_linux_copy_svc(), finish_step_over(), follow_exec(), follow_inferior_reset_breakpoints(), gdbsim_create_inferior(), go32_create_inferior(), handle_inferior_event_1(), inferior_call_waitpid(), inferior_call_waitpid_cleanup(), keep_going_pass_signal(), linux_fork_context(), remote_start_remote(), and resume_1().

## ◆ insert_single_step_breakpoint()

void insert_single_step_breakpoint | ( | struct gdbarch * | ,
|  | const address_space * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 14597 of file breakpoint.c.

References add_location_to_breakpoint(), thread_info::control, symtab_and_line::explicit_pc, find_pc_line(), find_pc_overlay(), thread_info::global_num, inferior_thread(), new_single_step_breakpoint(), symtab_and_line::pc, symtab_and_line::section, thread_control_state::single_step_breakpoints, UGLL_INSERT, and update_global_location_list().

Referenced by insert_single_step_breakpoints(), keep_going_stepped_thread(), and resume_1().

## ◆ insert_single_step_breakpoints()

int insert_single_step_breakpoints | ( | struct gdbarch * |  | ) |

Definition at line 14623 of file breakpoint.c.

References frame_info::aspace, gdbarch_software_single_step(), get_current_frame(), get_current_regcache(), get_frame_address_space(), and insert_single_step_breakpoint().

Referenced by maybe_software_singlestep(), record_full_resume(), and record_full_wait_1().

## ◆ install_breakpoint()

void install_breakpoint | ( | int | internal,
|  | std::unique_ptr< breakpoint > && | b,
|  | int | update_gll
| ) |  |

Definition at line 8256 of file breakpoint.c.

References add_to_breakpoint_chain(), is_tracepoint(), mention(), observer_notify_breakpoint_created(), set_breakpoint_number(), set_tracepoint_count(), UGLL_MAY_INSERT, and update_global_location_list().

Referenced by add_solib_catchpoint(), catch_exec_command_1(), create_ada_exception_catchpoint(), create_breakpoint(), create_breakpoint_sal(), create_fork_vfork_event_catchpoint(), create_signal_catchpoint(), create_syscall_event_catchpoint(), handle_gnu_v3_exceptions(), strace_marker_create_breakpoints_sal(), and watch_command_1().

## ◆ is_breakpoint()

int is_breakpoint | ( | const struct breakpoint * | bpt | ) |

Definition at line 1512 of file breakpoint.c.

References bp_breakpoint, bp_dprintf, bp_hardware_breakpoint, and breakpoint::type.

Referenced by bp_condition_evaluator(), bp_location_condition_evaluator(), build_target_command_list(), build_target_condition_list(), condition_command(), disable_breakpoints_in_freed_objfile(), force_breakpoint_reinsertion(), insert_bp_location(), mark_breakpoint_location_modified(), mark_breakpoint_modified(), print_breakpoint_location(), print_one_breakpoint_location(), set_condition_evaluation_mode(), update_global_location_list(), and update_inserted_breakpoint_locations().

## ◆ is_catchpoint()

int is_catchpoint | ( | struct breakpoint * |  | ) |

Definition at line 4192 of file breakpoint.c.

References bp_catchpoint, and breakpoint::type.

Referenced by print_one_breakpoint_location(), and print_solib_event().

## ◆ is_tracepoint()

int is_tracepoint | ( | const struct breakpoint * | b | ) |

Definition at line 1053 of file breakpoint.c.

References is_tracepoint_type(), and breakpoint::type.

Referenced by breakpoint_locations_match(), delete_trace_command(), disable_breakpoint(), disable_breakpoints_in_freed_objfile(), disable_breakpoints_in_shlibs(), disable_breakpoints_in_unloaded_shlib(), enable_breakpoint_disp(), enable_disable_bp_num_loc(), info_tracepoints_command(), install_breakpoint(), mi_cmd_break_commands(), print_one_breakpoint_location(), remove_breakpoints(), save_breakpoints(), save_tracepoints_command(), set_breakpoint_location_function(), set_ignore_count(), swap_insertion(), tracepoint_locations_match(), update_global_location_list(), and validate_commands_for_breakpoint().

## ◆ is_watchpoint()

int is_watchpoint | ( | const struct breakpoint * | bpt | ) |

Definition at line 1533 of file breakpoint.c.

References bp_watchpoint, is_hardware_watchpoint(), and breakpoint::type.

Referenced by aarch64_dr_state_insert_one_point(), aarch64_dr_state_remove_one_point(), aarch64_notify_debug_reg_change(), aarch64_point_is_aligned(), bppy_get_expression(), bppy_get_pending(), bpstat_check_breakpoint_conditions(), check_status_watchpoint(), clear_command(), debug_reg_change_callback(), disable_watchpoints_before_interactive_call_start(), enable_breakpoint_disp(), enable_watchpoints_after_interactive_call_stop(), gdbscm_breakpoint_expression(), info_watchpoints_command(), print_one_breakpoint_location(), save_breakpoints(), and set_breakpoint_condition().

## ◆ iterate_over_bp_locations()

void iterate_over_bp_locations | ( | walk_bp_location_callback |  | ) |

Definition at line 2866 of file breakpoint.c.

References ALL_BP_LOCATIONS, and loc.

Referenced by record_full_init_record_breakpoints().

## ◆ iterate_over_breakpoints()

struct breakpoint* iterate_over_breakpoints | ( | int(*)(struct breakpoint *, void *) | ,
|  | void * |
| ) |  |

Definition at line 15347 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE.

Referenced by bpfinishpy_handle_exit(), bpfinishpy_handle_stop(), gdbpy_breakpoints(), gdbscm_breakpoints(), pop_dummy_frame(), and svr4_update_solib_event_breakpoints().

## ◆ mark_breakpoints_out()

void mark_breakpoints_out | ( | void |  | ) |

Definition at line 3850 of file breakpoint.c.

References ALL_BP_LOCATIONS, current_program_space, bp_location::inserted, and bp_location::pspace.

Referenced by breakpoint_init_inferior(), follow_exec(), and generic_mourn_inferior().

## ◆ maybe_print_thread_hit_breakpoint()

void maybe_print_thread_hit_breakpoint | ( | struct ui_out * | uiout | ) |

Definition at line 4532 of file breakpoint.c.

References ui_out::field_fmt(), inferior_thread(), ui_out::is_mi_like_p(), name, thread_info::name, print_thread_id(), show_thread_that_caused_stop(), target_thread_name(), and ui_out::text().

Referenced by bkpt_print_it(), print_it_catch_exec(), print_it_catch_fork(), print_it_catch_solib(), print_it_catch_syscall(), print_it_catch_vfork(), print_it_exception_catchpoint(), print_it_masked_watchpoint(), print_it_ranged_breakpoint(), print_it_watchpoint(), and signal_catchpoint_print_it().

## ◆ moribund_breakpoint_here_p()

int moribund_breakpoint_here_p | ( | const address_space * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 4056 of file breakpoint.c.

References breakpoint_location_address_match(), loc, and VEC_iterate.

Referenced by adjust_pc_after_break().

## ◆ pc_at_non_inline_function()

int pc_at_non_inline_function | ( | const address_space * | aspace,
|  | CORE_ADDR | pc,
|  | const struct target_waitstatus * | ws
| ) |  |

Definition at line 15379 of file breakpoint.c.

References ALL_BREAKPOINTS, bpstat_check_location(), is_non_inline_function(), breakpoint::loc, bp_location::next, and bp_location::shlib_disabled.

Referenced by handle_signal_stop().

## ◆ pending_breakpoint_p()

int pending_breakpoint_p | ( | struct breakpoint * |  | ) |

Definition at line 6501 of file breakpoint.c.

References breakpoint::loc.

Referenced by bppy_get_pending().

## ◆ print_breakpoint()

void print_breakpoint | ( | breakpoint * | bp | ) |

Definition at line 6483 of file breakpoint.c.

References print_one_breakpoint().

Referenced by breakpoint_notify(), and mi_print_breakpoint_for_event().

## ◆ print_recreate_thread()

void print_recreate_thread | ( | struct breakpoint * | b,
|  | struct ui_file * | fp
| ) |  |

Definition at line 15093 of file breakpoint.c.

References fprintf_unfiltered(), breakpoint::task, and breakpoint::thread.

Referenced by bkpt_print_recreate(), dprintf_print_recreate(), print_recreate_catch_exec(), print_recreate_catch_fork(), print_recreate_catch_syscall(), print_recreate_catch_vfork(), print_recreate_exception(), print_recreate_exception_catchpoint(), print_recreate_masked_watchpoint(), print_recreate_ranged_breakpoint(), print_recreate_watchpoint(), and tracepoint_print_recreate().

## ◆ program_breakpoint_here_p()

int program_breakpoint_here_p | ( | struct gdbarch * | gdbarch,
|  | CORE_ADDR | address
| ) |  |

Definition at line 8715 of file breakpoint.c.

References gdbarch_breakpoint_from_pc(), make_scoped_restore_show_memory_breakpoints(), and target_read_memory().

Referenced by bp_loc_is_permanent(), and handle_signal_stop().

## ◆ rbreak_command_wrapper()

void rbreak_command_wrapper | ( | const char * | ,
|  | int |
| ) |  |

## ◆ remove_breakpoints()

int remove_breakpoints | ( | void |  | ) |

Definition at line 3038 of file breakpoint.c.

References ALL_BP_LOCATIONS, bp_location::inserted, is_tracepoint(), bp_location::owner, and remove_breakpoint().

Referenced by gdbsim_create_inferior(), gdbsim_mourn_inferior(), inferior_call_waitpid(), inferior_call_waitpid_cleanup(), linux_fork_context(), maybe_remove_breakpoints(), and target_disconnect().

## ◆ remove_breakpoints_pid()

int remove_breakpoints_pid | ( | int | pid | ) |

Definition at line 3078 of file breakpoint.c.

References ALL_BP_LOCATIONS, find_inferior_pid(), bp_location::inserted, bp_target_info::persist, pid, bp_location::pspace, remove_breakpoint(), and bp_location::target_info.

Referenced by follow_fork_inferior(), and target_detach().

## ◆ remove_jit_event_breakpoints()

void remove_jit_event_breakpoints | ( | void |  | ) |

Definition at line 7509 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_jit_event, current_program_space, delete_breakpoint(), breakpoint::loc, bp_location::pspace, and breakpoint::type.

## ◆ remove_solib_event_breakpoints()

void remove_solib_event_breakpoints | ( | void |  | ) |

Definition at line 7520 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_shlib_event, current_program_space, delete_breakpoint(), breakpoint::loc, bp_location::pspace, and breakpoint::type.

Referenced by enable_break2(), and reload_shared_libraries().

## ◆ remove_solib_event_breakpoints_at_next_stop()

void remove_solib_event_breakpoints_at_next_stop | ( | void |  | ) |

Definition at line 7533 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_shlib_event, current_program_space, disp_del_at_next_stop, breakpoint::disposition, breakpoint::loc, bp_location::pspace, and breakpoint::type.

## ◆ rwatch_command_wrapper()

void rwatch_command_wrapper | ( | const char * | ,
|  | int | ,
|  | int |
| ) |  |

Definition at line 11040 of file breakpoint.c.

References hw_read, and watch_command_1().

Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().

## ◆ set_breakpoint_condition()

void set_breakpoint_condition | ( | struct breakpoint * | b,
|  | const char * | exp,
|  | int | from_tty
| ) |  |

Definition at line 838 of file breakpoint.c.

References _, block_for_pc(), watchpoint::cond_exp, watchpoint::cond_exp_valid_block, breakpoint::cond_string, breakpoint::condition_not_parsed, error(), watchpoint::exp, innermost_block, is_watchpoint(), breakpoint::loc, loc, mark_breakpoint_modified(), breakpoint::number, observer_notify_breakpoint_modified(), parse_exp_1(), printf_filtered(), and xfree().

Referenced by bppy_set_condition(), condition_command(), create_ada_exception_catchpoint(), and gdbscm_set_breakpoint_condition_x().

## ◆ set_ignore_count()

void set_ignore_count | ( | int | ,
|  | int | ,
|  | int |
| ) |  |

Definition at line 14018 of file breakpoint.c.

References _, ALL_BREAKPOINTS, error(), breakpoint::ignore_count, is_tracepoint(), breakpoint::number, observer_notify_breakpoint_modified(), and printf_filtered().

Referenced by bppy_set_ignore_count(), continue_command(), gdbscm_set_breakpoint_ignore_count_x(), and ignore_command().

## ◆ set_longjmp_breakpoint()

void set_longjmp_breakpoint | ( | struct thread_info * | tp,
|  | struct frame_id | frame
| ) |  |

Definition at line 7295 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_exception, bp_exception_master, bp_longjmp, bp_longjmp_master, current_program_space, thread_info::global_num, thread_info::initiating_frame, momentary_breakpoint_from_master(), momentary_breakpoint_ops, breakpoint::pspace, breakpoint::thread, and breakpoint::type.

Referenced by finish_forward(), step_command_fsm_prepare(), until_break_command(), and until_next_command().

## ◆ set_longjmp_breakpoint_for_call_dummy()

struct breakpoint* set_longjmp_breakpoint_for_call_dummy | ( | void |  | ) |

Definition at line 7355 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_longjmp_call_dummy, bp_longjmp_master, current_program_space, gdb_assert, inferior_ptid, momentary_breakpoint_from_master(), momentary_breakpoint_ops, breakpoint::pspace, ptid_to_global_thread_id(), breakpoint::related_breakpoint, breakpoint::thread, and breakpoint::type.

Referenced by call_function_by_hand_dummy().

## ◆ set_momentary_breakpoint()

breakpoint_up set_momentary_breakpoint | ( | struct gdbarch * | ,
|  | struct symtab_and_line | ,
|  | struct frame_id | ,
|  | enum | bptype
| ) |  |

## ◆ set_momentary_breakpoint_at_pc()

breakpoint_up set_momentary_breakpoint_at_pc | ( | struct gdbarch * | ,
|  | CORE_ADDR | pc,
|  | enum bptype | type
| ) |  |

Definition at line 8621 of file breakpoint.c.

References find_pc_line(), find_pc_overlay(), null_frame_id, symtab_and_line::pc, and set_momentary_breakpoint().

Referenced by insert_exception_resume_breakpoint(), insert_exception_resume_from_probe(), and insert_longjmp_resume_breakpoint().

## ◆ set_std_terminate_breakpoint()

void set_std_terminate_breakpoint | ( | void |  | ) |

Definition at line 7450 of file breakpoint.c.

References ALL_BREAKPOINTS_SAFE, bp_std_terminate, bp_std_terminate_master, current_program_space, momentary_breakpoint_from_master(), momentary_breakpoint_ops, breakpoint::pspace, and breakpoint::type.

Referenced by call_function_by_hand_dummy().

## ◆ single_step_breakpoint_inserted_here_p()

int single_step_breakpoint_inserted_here_p | ( | const address_space * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 14665 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_single_step, breakpoint_has_location_inserted_here(), and breakpoint::type.

Referenced by handle_signal_stop().

## ◆ software_breakpoint_inserted_here_p()

int software_breakpoint_inserted_here_p | ( | const address_space * | ,
|  | CORE_ADDR |
| ) |  |

Definition at line 4114 of file breakpoint.c.

References ALL_BP_LOCATIONS_AT_ADDR, bp_loc_software_breakpoint, bp_location_inserted_here_p(), and bp_location::loc_type.

Referenced by adjust_pc_after_break(), save_stop_reason(), and save_waitstatus().

## ◆ tbreak_command()

void tbreak_command | ( | const char * | ,
|  | int |
| ) |  |

Definition at line 9602 of file breakpoint.c.

References BP_TEMPFLAG, and break_command_1().

Referenced by _initialize_breakpoint(), and run_command_1().

## ◆ thbreak_command_wrapper()

void thbreak_command_wrapper | ( | const char * | ,
|  | int |
| ) |  |

## ◆ until_break_command()

void until_break_command | ( | const char * | ,
|  | int | ,
|  | int |
| ) |  |

Definition at line 11173 of file breakpoint.c.

References _, bp_until, clear_proceed_status(), command_interp(), current_language, decode_line_1(), DECODE_LINE_FUNFIRSTLINE, delete_longjmp_breakpoint_cleanup(), discard_cleanups(), error(), find_pc_line(), frame_id_p(), frame_unwind_caller_arch(), frame_unwind_caller_id(), frame_unwind_caller_pc(), get_frame_arch(), get_last_displayed_line(), get_last_displayed_symtab(), get_selected_frame(), get_stack_frame_id(), thread_info::global_num, inferior_thread(), last_displayed_sal_is_valid(), make_cleanup(), new_until_break_fsm(), null_cleanup(), null_frame_id, symtab_and_line::pc, proceed(), resolve_sal_pc(), set_longjmp_breakpoint(), set_momentary_breakpoint(), string_to_event_location(), thread_info::thread_fsm, and until_break_fsm::thread_fsm.

Referenced by advance_command(), and until_command().

## ◆ update_breakpoint_locations()

void update_breakpoint_locations | ( | struct breakpoint * | b,
|  | struct program_space * | filter_pspace,
|  | gdb::array_view< const symtab_and_line > | sals,
|  | gdb::array_view< const symtab_and_line > | sals_end
| ) |  |

Definition at line 13646 of file breakpoint.c.

References _, add_location_to_breakpoint(), all_locations_are_pending(), ambiguous_names_p(), block_for_pc(), bp_disabled, breakpoint_locations_match(), CATCH, bp_location::cond, breakpoint::cond_string, gdb::array_view< T >::empty(), breakpoint::enable_state, bp_location::enabled, END_CATCH, find_breakpoint_range_end(), bp_location::function_name, hoist_existing_locations(), bp_location::length, breakpoint::loc, locations_are_equal(), bp_location::next, breakpoint::number, observer_notify_breakpoint_modified(), parse_exp_1(), printf_unfiltered(), RETURN_MASK_ERROR, gdb::array_view< T >::size(), switch_to_program_space_and_thread(), TRY, and warning().

Referenced by breakpoint_re_set_default(), elf_gnu_ifunc_resolver_return_stop(), and re_set_exception_catchpoint().

## ◆ update_breakpoints_after_exec()

void update_breakpoints_after_exec | ( | void |  | ) |

Definition at line 3523 of file breakpoint.c.

References ALL_BP_LOCATIONS, ALL_BREAKPOINTS_SAFE, bp_catchpoint, bp_exception, bp_exception_master, bp_exception_resume, bp_finish, bp_hp_step_resume, bp_jit_event, bp_longjmp, bp_longjmp_call_dummy, bp_longjmp_master, bp_longjmp_resume, bp_overlay_event, bp_shlib_event, bp_single_step, bp_std_terminate_master, bp_step_resume, bp_thread_event, breakpoint_event_location_empty_p(), current_program_space, delete_breakpoint(), gdb_assert, bp_location::inserted, bp_location::pspace, breakpoint::pspace, and breakpoint::type.

Referenced by follow_exec().

## ◆ user_breakpoint_p()

int user_breakpoint_p | ( | struct breakpoint * |  | ) |

Definition at line 6493 of file breakpoint.c.

References breakpoint::number.

Referenced by bppy_get_visibility(), breakpoint_1(), delete_command(), delete_trace_command(), describe_other_breakpoints(), enable_disable_command(), gdbpy_breakpoint_created(), remove_threaded_breakpoints(), save_breakpoints(), and should_be_inserted().

## ◆ VEC()

VEC | ( | breakpoint_p |  | ) |

Definition at line 1147 of file breakpoint.c.

References ALL_BREAKPOINTS, bp_static_tracepoint, breakpoint::loc, loc, breakpoint::type, VEC(), and VEC_safe_push.

## ◆ watch_command_wrapper()

void watch_command_wrapper | ( | const char * | ,
|  | int | ,
|  | int |
| ) |  |

Definition at line 11009 of file breakpoint.c.

References hw_write, and watch_command_1().

Referenced by bppy_init(), gdbscm_register_breakpoint_x(), and mi_cmd_break_watch().

## ◆ watchpoints_triggered()

int watchpoints_triggered | ( | struct target_waitstatus * |  | ) |

Definition at line 4762 of file breakpoint.c.

References ALL_BREAKPOINTS, current_target, watchpoint::hw_wp_mask, is_hardware_watchpoint(), is_masked_watchpoint(), breakpoint::loc, loc, target_stopped_by_watchpoint, target_stopped_data_address, target_watchpoint_addr_within_range, watch_triggered_no, watch_triggered_unknown, watch_triggered_yes, and watchpoint::watchpoint_triggered.

Referenced by handle_signal_stop().

## Variable Documentation

## ◆ base_breakpoint_ops

struct breakpoint_ops base_breakpoint_ops

Definition at line 12476 of file breakpoint.c.

Referenced by initialize_breakpoint_ops(), initialize_signal_catchpoint_ops(), and initialize_syscall_catchpoint_ops().

## ◆ bkpt_breakpoint_ops

struct breakpoint_ops bkpt_breakpoint_ops

Definition at line 255 of file breakpoint.c.

Referenced by bpfinishpy_init(), bppy_init(), break_command_1(), check_status_exception_catchpoint(), gdbscm_register_breakpoint_x(), initialize_ada_catchpoint_ops(), initialize_breakpoint_ops(), initialize_throw_catchpoint_ops(), mi_cmd_break_insert_1(), re_set_exception(), and spu_catch_start().

## ◆ dprintf_breakpoint_ops

struct breakpoint_ops dprintf_breakpoint_ops

Definition at line 261 of file breakpoint.c.

Referenced by dprintf_command(), initialize_breakpoint_ops(), and mi_cmd_break_insert_1().

## ◆ target_exact_watchpoints

int target_exact_watchpoints

Definition at line 489 of file breakpoint.c.

Referenced by _initialize_rs6000_tdep(), can_use_hardware_watchpoint(), and update_watchpoint().

## ◆ tracepoint_breakpoint_ops

struct breakpoint_ops tracepoint_breakpoint_ops

Definition at line 13027 of file breakpoint.c.

Referenced by create_tracepoint_from_upload(), ftrace_command(), initialize_breakpoint_ops(), mi_cmd_break_insert_1(), strace_command(), and trace_command().