Lines Matching refs:bpt
2001 is_breakpoint (const struct breakpoint *bpt)
2003 return (bpt->type == bp_breakpoint
2004 || bpt->type == bp_hardware_breakpoint
2005 || bpt->type == bp_dprintf);
2008 /* Return true if BPT is of any hardware watchpoint kind. */
2011 is_hardware_watchpoint (const struct breakpoint *bpt)
2013 return (bpt->type == bp_hardware_watchpoint
2014 || bpt->type == bp_read_watchpoint
2015 || bpt->type == bp_access_watchpoint);
2021 is_watchpoint (const struct breakpoint *bpt)
2023 return (is_hardware_watchpoint (bpt)
2024 || bpt->type == bp_watchpoint);
3269 for (breakpoint &bpt : all_breakpoints ())
3270 if (is_hardware_watchpoint (&bpt))
3272 watchpoint &w = gdb::checked_static_cast<watchpoint &> (bpt);
3399 for (breakpoint &bpt : all_breakpoints ())
3403 if (!is_hardware_watchpoint (&bpt))
3406 if (!breakpoint_enabled (&bpt))
3409 if (bpt.disposition == disp_del_at_next_stop)
3412 for (bp_location &loc : bpt.locations ())
3421 for (bp_location &loc : bpt.locations ())
3428 bpt.number);
4589 for (breakpoint &bpt : all_breakpoints ())
4591 if (bpt.type != bp_hardware_watchpoint
4592 && bpt.type != bp_access_watchpoint)
4595 if (!breakpoint_enabled (&bpt))
4598 for (bp_location &loc : bpt.locations ())
9832 breakpoint *bpt = this;
9833 while (bpt->related_breakpoint != this)
9834 bpt = bpt->related_breakpoint;
9836 bpt->related_breakpoint = this->related_breakpoint;
11669 that the bpt instruction is only inserted once. If we have a
11670 permanent breakpoint at the same place as BPT, make that one the
11789 bpstat_remove_bp_location (bpstat *bps, struct breakpoint *bpt)
11794 if (bs->breakpoint_at == bpt)
11806 struct breakpoint *bpt = (struct breakpoint *) data;
11808 bpstat_remove_bp_location (th->control.stop_bpstat, bpt);
12591 delete_breakpoint (struct breakpoint *bpt)
12593 gdb_assert (bpt != NULL);
12611 if (bpt->type == bp_none)
12616 if (bpt->related_breakpoint != bpt)
12621 if (bpt->type == bp_watchpoint_scope)
12622 w = gdb::checked_static_cast<watchpoint *> (bpt->related_breakpoint);
12623 else if (bpt->related_breakpoint->type == bp_watchpoint_scope)
12624 w = gdb::checked_static_cast<watchpoint *> (bpt);
12630 /* Unlink bpt from the bpt->related_breakpoint ring. */
12631 for (related = bpt; related->related_breakpoint != bpt;
12633 related->related_breakpoint = bpt->related_breakpoint;
12634 bpt->related_breakpoint = bpt;
12641 if (bpt->number)
12642 notify_breakpoint_deleted (bpt);
12644 breakpoint_chain.erase (breakpoint_chain.iterator_to (*bpt));
12650 pointing at bpt from the stop_bpstat list entirely, as breakpoint
12656 iterate_over_threads (bpstat_remove_breakpoint_callback, bpt);
12667 bpt->clear_locations ();
12672 bpt->type = bp_none;
12673 delete bpt;
13702 disable_breakpoint (struct breakpoint *bpt)
13707 if (bpt->type == bp_watchpoint_scope)
13710 bpt->enable_state = bp_disabled;
13713 mark_breakpoint_modified (bpt);
13716 && current_trace_status ()->running && is_tracepoint (bpt))
13718 for (bp_location &location : bpt->locations ())
13724 notify_breakpoint_modified (bpt);
13737 for (breakpoint &bpt : all_breakpoints ())
13738 if (user_breakpoint_p (&bpt))
13741 enable_breakpoint (&bpt);
13743 disable_breakpoint (&bpt);
13793 enable_breakpoint_disp (struct breakpoint *bpt, enum bpdisp disposition,
13798 if (bpt->type == bp_hardware_breakpoint)
13811 if (is_watchpoint (bpt))
13818 watchpoint *w = gdb::checked_static_cast<watchpoint *> (bpt);
13820 orig_enable_state = bpt->enable_state;
13821 bpt->enable_state = bp_enabled;
13826 bpt->enable_state = orig_enable_state;
13828 bpt->number);
13833 bpt->enable_state = bp_enabled;
13836 mark_breakpoint_modified (bpt);
13839 && current_trace_status ()->running && is_tracepoint (bpt))
13841 for (bp_location &location : bpt->locations ())
13845 bpt->disposition = disposition;
13846 bpt->enable_count = count;
13849 notify_breakpoint_modified (bpt);
13854 enable_breakpoint (struct breakpoint *bpt)
13856 enable_breakpoint_disp (bpt, bpt->disposition, 0);
13877 (b, [&] (breakpoint *bpt)
13879 enable_breakpoint_disp (bpt, disp_disable, 1);
13898 (b, [&] (breakpoint *bpt)
13900 enable_breakpoint_disp (bpt, disp_disable, count);
13912 (b, [&] (breakpoint *bpt)
13914 enable_breakpoint_disp (bpt, disp_del, 1);
14031 for (breakpoint &bpt : all_breakpoints ())
14033 if (bpt.type == bp_single_step
14034 && breakpoint_has_location_inserted_here (&bpt, aspace, pc))