Lines Matching defs:bp_location
127 static bool watchpoint_locations_match (const struct bp_location *loc1,
128 const struct bp_location *loc2);
130 static bool breakpoint_locations_match (const struct bp_location *loc1,
131 const struct bp_location *loc2,
134 static bool breakpoint_location_address_match (struct bp_location *bl,
138 static bool breakpoint_location_address_range_overlap (struct bp_location *,
142 static int remove_breakpoint (struct bp_location *);
143 static int remove_breakpoint_1 (struct bp_location *, enum remove_bp_reason);
158 static void decref_bp_location (struct bp_location **loc);
165 static bool bl_address_is_meaningful (bp_location *loc);
167 static int find_loc_num_by_location (const bp_location *loc);
252 breakpoint_location_address_str (const bp_location *bl)
330 int resources_needed (const struct bp_location *) override;
405 int breakpoint_hit (const struct bp_location *bl,
423 bp_location *bl = add_location (sal_start);
432 int breakpoint_hit (const struct bp_location *bl,
436 int resources_needed (const struct bp_location *) override;
438 bool print_one (const bp_location **) const override;
728 static std::vector<bp_location *> bp_locations;
732 const std::vector<bp_location *> &
742 using iterator = std::vector<bp_location *>::iterator;
748 bool operator() (const bp_location *loc, CORE_ADDR addr_) const
751 bool operator() (CORE_ADDR addr_, const bp_location *loc) const
781 for (bp_location *loc : range)
784 for (bp_location *loc : range)
816 static std::vector<bp_location *> moribund_locations;
930 for (bp_location &loc : b->locations ())
938 mark_breakpoint_location_modified (struct bp_location *loc)
994 for (bp_location *loc : all_bp_locations ())
1002 for (bp_location *loc : all_bp_locations ())
1038 set_breakpoint_location_condition (const char *cond_string, bp_location *loc,
1104 for (bp_location &loc : b->locations ())
1146 for (const bp_location &loc : b->locations ())
1169 for (bp_location &loc : b->locations ())
1509 for (bp_location &loc : b.locations ())
1695 bp_location_has_shadow (struct bp_location *bl)
1808 The range of shadowed area by each bp_location is:
1836 struct bp_location *bl;
1880 struct bp_location *bl = bp_locations[bc];
1882 /* bp_location array has BL->OWNER always non-NULL. */
2001 bp_location *loc = new bp_location (b, bp_loc_other);
2103 /* We don't free locations. They are stored in the bp_location array
2239 bp_location *loc = b->allocate_location ();
2357 for (bp_location &bl : b->locations ())
2385 should_be_inserted (struct bp_location *bl)
2452 unduplicated_should_be_inserted (struct bp_location *bl)
2498 build_target_condition_list (struct bp_location *bl)
2525 for (bp_location *loc : loc_range)
2557 for (bp_location *loc : loc_range)
2577 for (bp_location *loc : loc_range)
2676 build_target_command_list (struct bp_location *bl)
2697 for (bp_location *loc : loc_range)
2708 for (bp_location *loc : loc_range)
2737 for (bp_location *loc : loc_range)
2758 for (bp_location *loc : loc_range)
2784 breakpoint_kind (const struct bp_location *bl, CORE_ADDR *addr)
2826 Returns 0 for success, 1 if the bp_location type is not supported or
2832 insert_bp_location (struct bp_location *bl,
3086 for (bp_location *loc : all_bp_locations ())
3155 for (bp_location *loc : all_bp_locations ())
3158 /* ALL_BP_LOCATIONS bp_location has LOC->OWNER always non-NULL. */
3213 for (bp_location *bl : all_bp_locations ())
3268 for (bp_location *bl : all_bp_locations ())
3274 the thread no longer exists. ALL_BP_LOCATIONS bp_location
3317 for (bp_location &loc : bpt.locations ())
3326 for (bp_location &loc : bpt.locations ())
3361 for (bp_location *bl : all_bp_locations ())
3420 for (bp_location *bl : all_bp_locations ())
3915 for (bp_location *bploc : all_bp_locations ())
4035 for (bp_location *bl : all_bp_locations ())
4064 remove_breakpoint_1 (struct bp_location *bl, enum remove_bp_reason reason)
4208 remove_breakpoint (struct bp_location *bl)
4229 for (bp_location *bl : all_bp_locations ())
4326 for (bp_location *bl : moribund_locations)
4351 for (bp_location *bl : all_bp_locations ())
4357 /* ALL_BP_LOCATIONS bp_location has BL->OWNER always non-NULL. */
4382 for (bp_location *bl : all_bp_locations ())
4413 for (bp_location *loc : moribund_locations)
4423 bp_location_inserted_here_p (const struct bp_location *bl,
4443 for (bp_location *bl : all_bp_locations_at_addr (pc))
4462 for (bp_location *bl : all_bp_locations_at_addr (pc))
4480 for (bp_location *bl : all_bp_locations_at_addr (pc))
4505 for (bp_location &loc : bpt.locations ())
4658 const struct bp_location *bl = bs->bp_location_at.get ();
4664 for (bp_location &loc : b->locations ())
5115 bpstat::bpstat (struct bp_location *bl, bpstat ***bs_link_pointer)
5188 for (bp_location &loc : b.locations ())
5382 bpstat_check_location (const struct bp_location *bl,
5400 const struct bp_location *bl;
5567 const struct bp_location *bl;
5731 need_moribund_for_location_type (const struct bp_location *loc)
5752 for (bp_location &bl : b.locations ())
5798 for (bp_location *loc : moribund_locations)
6253 for (bp_location &bl : b->locations ())
6273 bp_location_condition_evaluator (const struct bp_location *bl)
6291 print_breakpoint_location (const breakpoint *b, const bp_location *loc)
6470 struct bp_location *loc,
6472 const bp_location **last_loc,
6845 print_one_breakpoint (breakpoint *b, const bp_location **last_loc, int allflag)
6897 for (bp_location &loc : b->locations ())
6913 for (bp_location &loc : b->locations ())
6931 const bp_location *dummy_loc = nullptr;
6969 const bp_location *last_loc = nullptr;
7078 for (bp_location &loc : b.locations ())
7173 for (bp_location &bl : b->locations ())
7245 bl_address_is_meaningful (bp_location *loc)
7254 watchpoint_locations_match (const struct bp_location *loc1,
7255 const struct bp_location *loc2)
7327 breakpoint_location_address_match (struct bp_location *bl,
7346 breakpoint_location_address_range_overlap (struct bp_location *bl,
7366 tracepoint_locations_match (const struct bp_location *loc1,
7367 const struct bp_location *loc2)
7385 breakpoint_locations_match (const struct bp_location *loc1,
7386 const struct bp_location *loc2,
7405 /* We compare bp_location.length in order to cover ranged
7553 bp_location::bp_location (breakpoint *owner, bp_loc_type type)
7570 bp_location::bp_location (breakpoint *owner)
7571 : bp_location::bp_location (owner,
7579 bp_location::to_string () const
7588 destroy the bp_location. Sets *BLP to NULL. */
7591 decref_bp_location (struct bp_location **blp)
7613 set_breakpoint_location_function (struct bp_location *loc)
7991 for (bp_location *loc : all_bp_locations ())
7993 /* ALL_BP_LOCATIONS bp_location has LOC->OWNER always non-NULL. */
8024 for (bp_location *loc : all_bp_locations ())
8026 /* ALL_BP_LOCATIONS bp_location has LOC->OWNER always non-NULL. */
8089 for (bp_location &loc : b.locations ())
8188 for (bp_location &bl : b.locations ())
8209 for (bp_location &bl : b->locations ())
8336 const bp_location &orig_loc = orig->first_loc ();
8337 bp_location *copy_loc = copy->allocate_location ();
8397 static bool bp_loc_is_permanent (struct bp_location *loc);
8414 handle_automatic_hardware_breakpoints (bp_location *bl)
8453 bp_location *
8473 bp_location *new_loc = this->allocate_location ();
8518 bp_loc_is_permanent (struct bp_location *loc)
8706 bp_location *new_loc = add_location (sal);
8725 for (bp_location &bl : locations ())
9579 ranged_breakpoint::breakpoint_hit (const struct bp_location *bl,
9596 ranged_breakpoint::resources_needed (const struct bp_location *bl)
9636 ranged_breakpoint::print_one (const bp_location **last_loc) const
9663 const bp_location &bl = this->first_loc ();
9682 const bp_location &bl = this->first_loc ();
9895 watchpoint::insert_location (struct bp_location *bl)
9906 watchpoint::remove_location (struct bp_location *bl,
9916 watchpoint::breakpoint_hit (const struct bp_location *bl,
9945 watchpoint::resources_needed (const struct bp_location *bl)
10123 int insert_location (struct bp_location *) override;
10124 int remove_location (struct bp_location *,
10126 int resources_needed (const struct bp_location *) override;
10137 masked_watchpoint::insert_location (struct bp_location *bl)
10146 masked_watchpoint::remove_location (struct bp_location *bl,
10157 masked_watchpoint::resources_needed (const struct bp_location *bl)
10549 bp_location &loc = scope_breakpoint->first_loc ();
11106 for (bp_location &loc : b.locations ())
11201 /* A comparison function for bp_location AP and BP being interfaced to
11208 bp_location_is_less_than (const bp_location *a, const bp_location *b)
11256 for (bp_location *bl : all_bp_locations ())
11309 for (bp_location &bl : b.locations ())
11335 swap_insertion (struct bp_location *left, struct bp_location *right)
11364 force_breakpoint_reinsertion (struct bp_location *bl)
11384 for (bp_location *loc : all_bp_locations_at_addr (address))
11423 bp_locations, points to the first bp_location of a given address.
11428 struct bp_location *bp_loc_first; /* breakpoint */
11429 struct bp_location *wp_loc_first; /* hardware watchpoint */
11430 struct bp_location *awp_loc_first; /* access watchpoint */
11431 struct bp_location *rwp_loc_first; /* read watchpoint */
11435 std::vector<bp_location *> old_locations = std::move (bp_locations);
11439 for (bp_location &loc : b.locations ())
11446 for (bp_location *loc : bp_locations)
11455 /* Identify bp_location instances that are no longer present in the
11463 and former bp_location array state respectively. */
11466 for (bp_location *old_loc : old_locations)
11546 bp_location *loc2 = bp_locations[loc2_i];
11685 for (bp_location *loc : all_bp_locations ())
11687 /* ALL_BP_LOCATIONS bp_location has LOC->OWNER always
11689 struct bp_location **loc_first_p;
11696 `struct bp_location'. */
11766 struct bp_location *loc = moribund_locations[ix];
11850 const bp_location &bl = this->first_loc ();
11891 struct bp_location *
11894 return new bp_location (this);
11900 breakpoint::add_location (bp_location &loc)
11907 [] (const bp_location &left,
11908 const bp_location &right)
11916 breakpoint::unadd_location (bp_location &loc)
11928 breakpoint::insert_location (struct bp_location *bl)
11934 breakpoint::remove_location (struct bp_location *bl,
11941 breakpoint::breakpoint_hit (const struct bp_location *bl,
11950 breakpoint::resources_needed (const struct bp_location *bl)
11990 code_breakpoint::insert_location (struct bp_location *bl)
12014 code_breakpoint::remove_location (struct bp_location *bl,
12030 code_breakpoint::breakpoint_hit (const struct bp_location *bl,
12052 dprintf_breakpoint::breakpoint_hit (const struct bp_location *bl,
12070 ordinary_breakpoint::resources_needed (const struct bp_location *bl)
12080 const struct bp_location *bl;
12349 tracepoint::breakpoint_hit (const struct bp_location *bl,
12763 for (bp_location &loc : b->locations ())
12782 for (const bp_location &l : locs)
12966 bp_location &loc = *it;
13014 struct bp_location *new_loc;
13057 for (const bp_location &e : existing_locations)
13063 for (bp_location &l : b->locations ())
13082 for (bp_location &l : b->locations ())
13437 static struct bp_location *
13449 for (bp_location &loc : b->locations ())
13587 struct bp_location *loc = find_location_by_number (bp_num, loc_num);
13609 /* Calculates LOC_NUM for LOC by traversing the bp_location chain of LOC's
13613 find_loc_num_by_location (const bp_location *loc)
13619 for (bp_location &it : loc->owner->locations ())
13633 enable_disable_bp_location (bp_location *loc, bool enable)
13702 for (bp_location &location : bpt->locations ())
13825 for (bp_location &location : bpt->locations ())
13921 for (bp_location &loc : bp.locations ())
14000 for (bp_location &loc : bp->locations ())
14544 for (bp_location &loc : tp.locations ())
14686 for (bp_location &bl : b.locations ())
14702 for (bp_location *loc : all_bp_locations ())