Lines Matching refs:bp

54   struct breakpoint *bp;
59 bp = malloc (sizeof (struct breakpoint));
60 memset (bp, 0, sizeof (struct breakpoint));
62 (*the_target->read_memory) (where, bp->old_data,
67 bp->pc = where;
68 bp->handler = handler;
70 bp->next = breakpoints;
71 breakpoints = bp;
75 delete_breakpoint (struct breakpoint *bp)
79 if (breakpoints == bp)
81 breakpoints = bp->next;
82 (*the_target->write_memory) (bp->pc, bp->old_data,
84 free (bp);
90 if (cur->next == bp)
92 cur->next = bp->next;
93 (*the_target->write_memory) (bp->pc, bp->old_data,
95 free (bp);
105 struct breakpoint *bp = breakpoints;
107 while (bp != NULL)
109 if (bp->pc == where)
110 return bp;
111 bp = bp->next;
139 struct breakpoint *bp, *orig_bp;
147 bp = find_breakpoint_at (stop_at);
148 if (bp == NULL)
150 bp->breakpoint_to_reinsert = orig_bp;
160 struct breakpoint *bp;
162 bp = find_breakpoint_at (stopped_at);
163 if (bp == NULL)
166 (*the_target->write_memory) (bp->pc, bp->old_data,
168 bp->reinserting = 1;
174 struct breakpoint *bp;
176 bp = find_breakpoint_at (stopped_at);
177 if (bp == NULL)
179 if (! bp->reinserting)
182 (*the_target->write_memory) (bp->pc, breakpoint_data,
184 bp->reinserting = 0;
190 struct breakpoint *bp;
192 bp = find_breakpoint_at (stop_pc);
193 if (bp == NULL)
195 if (bp->reinserting)
201 (*bp->handler) (bp->pc);
215 struct breakpoint *bp = breakpoints;
218 for (; bp != NULL; bp = bp->next)
220 CORE_ADDR bp_end = bp->pc + breakpoint_len;
226 if (bp->pc >= mem_end)
229 start = bp->pc;
238 copy_offset = start - bp->pc;
241 memcpy (buf + buf_offset, bp->old_data + copy_offset, copy_len);
248 struct breakpoint *bp = breakpoints;
251 for (; bp != NULL; bp = bp->next)
253 CORE_ADDR bp_end = bp->pc + breakpoint_len;
259 if (bp->pc >= mem_end)
262 start = bp->pc;
271 copy_offset = start - bp->pc;
274 memcpy (bp->old_data + copy_offset, buf + buf_offset, copy_len);
275 if (bp->reinserting == 0)