* target.h (struct target): <to_download_tracepoint> Change type

of parameter from tracepoint to bp_location.
	* target.c (update_current_target): Update.
	* tracepoint.c (start_tracing): Update.
	* remote.c (remote_download_tracepoint): Remove loop for each location
	of a tracepoint.
This commit is contained in:
Yao Qi 2011-11-14 14:11:36 +00:00
parent 9301f9c3e3
commit e8ba31153a
5 changed files with 158 additions and 150 deletions

View file

@ -1701,6 +1701,7 @@ start_tracing (void)
for (ix = 0; VEC_iterate (breakpoint_p, tp_vec, ix, b); ix++)
{
struct tracepoint *t = (struct tracepoint *) b;
struct bp_location *loc;
if ((b->type == bp_fast_tracepoint
? !may_insert_fast_tracepoints
@ -1708,7 +1709,10 @@ start_tracing (void)
continue;
t->number_on_target = 0;
target_download_tracepoint (b);
for (loc = b->loc; loc; loc = loc->next)
target_download_tracepoint (loc);
t->number_on_target = b->number;
}
VEC_free (breakpoint_p, tp_vec);