* tracepoint.c (trace_command): We now have tracepoint
events. Get rid of those ugly hooks. (tracepoint_operation): Likewise. (trace_pass_command): Likewise.
This commit is contained in:
parent
0b317b0807
commit
578c1fe6f0
|
@ -1,3 +1,10 @@
|
||||||
|
2001-06-14 Keith Seitz <keiths@redhat.com>
|
||||||
|
|
||||||
|
* tracepoint.c (trace_command): We now have tracepoint
|
||||||
|
events. Get rid of those ugly hooks.
|
||||||
|
(tracepoint_operation): Likewise.
|
||||||
|
(trace_pass_command): Likewise.
|
||||||
|
|
||||||
2001-06-13 Michael Snyder <msnyder@redhat.com>
|
2001-06-13 Michael Snyder <msnyder@redhat.com>
|
||||||
|
|
||||||
* gdbthread.h (struct thread_info): Add new fields:
|
* gdbthread.h (struct thread_info): Add new fields:
|
||||||
|
|
|
@ -424,10 +424,6 @@ trace_command (char *arg, int from_tty)
|
||||||
t->addr_string = savestring (addr_start, addr_end - addr_start);
|
t->addr_string = savestring (addr_start, addr_end - addr_start);
|
||||||
|
|
||||||
trace_mention (t);
|
trace_mention (t);
|
||||||
|
|
||||||
/* Let the UI know of any additions */
|
|
||||||
if (create_tracepoint_hook)
|
|
||||||
create_tracepoint_hook (t);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sals.nelts > 1)
|
if (sals.nelts > 1)
|
||||||
|
@ -574,14 +570,10 @@ tracepoint_operation (struct tracepoint *t, int from_tty,
|
||||||
{
|
{
|
||||||
case enable_op:
|
case enable_op:
|
||||||
t->enabled = enabled;
|
t->enabled = enabled;
|
||||||
if (modify_tracepoint_hook)
|
|
||||||
modify_tracepoint_hook (t);
|
|
||||||
tracepoint_modify_event (t->number);
|
tracepoint_modify_event (t->number);
|
||||||
break;
|
break;
|
||||||
case disable_op:
|
case disable_op:
|
||||||
t->enabled = disabled;
|
t->enabled = disabled;
|
||||||
if (modify_tracepoint_hook)
|
|
||||||
modify_tracepoint_hook (t);
|
|
||||||
tracepoint_modify_event (t->number);
|
tracepoint_modify_event (t->number);
|
||||||
break;
|
break;
|
||||||
case delete_op:
|
case delete_op:
|
||||||
|
@ -596,10 +588,6 @@ tracepoint_operation (struct tracepoint *t, int from_tty,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Let the UI know of any deletions */
|
|
||||||
if (delete_tracepoint_hook)
|
|
||||||
delete_tracepoint_hook (t);
|
|
||||||
|
|
||||||
if (t->addr_string)
|
if (t->addr_string)
|
||||||
xfree (t->addr_string);
|
xfree (t->addr_string);
|
||||||
if (t->source_file)
|
if (t->source_file)
|
||||||
|
@ -745,8 +733,6 @@ trace_pass_command (char *args, int from_tty)
|
||||||
if (t1 == (struct tracepoint *) -1 || t1 == t2)
|
if (t1 == (struct tracepoint *) -1 || t1 == t2)
|
||||||
{
|
{
|
||||||
t2->pass_count = count;
|
t2->pass_count = count;
|
||||||
if (modify_tracepoint_hook)
|
|
||||||
modify_tracepoint_hook (t2);
|
|
||||||
tracepoint_modify_event (t2->number);
|
tracepoint_modify_event (t2->number);
|
||||||
if (from_tty)
|
if (from_tty)
|
||||||
printf_filtered ("Setting tracepoint %d's passcount to %d\n",
|
printf_filtered ("Setting tracepoint %d's passcount to %d\n",
|
||||||
|
|
Loading…
Reference in New Issue