aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@cygnus>1998-02-11 02:33:22 +0000
committerKeith Seitz <keiths@cygnus>1998-02-11 02:33:22 +0000
commita5f4fbff1d7bb92016ad30c287c2a15e3c28ee54 (patch)
tree357646ec216a1c8b1a8675ee2168fb4a9ef90bc0 /gdb/tracepoint.c
parentbae2276c5b0326080c8c66b0f2f145f42638c742 (diff)
downloadgdb-a5f4fbff1d7bb92016ad30c287c2a15e3c28ee54.zip
gdb-a5f4fbff1d7bb92016ad30c287c2a15e3c28ee54.tar.gz
gdb-a5f4fbff1d7bb92016ad30c287c2a15e3c28ee54.tar.bz2
* tracepoint.c (tracepoint_operation): Call the modify_tracepoint_hook
if it exists. Remove static declaration of free_actions. * tracepoint.h: Add declaration of free_actions. * gdbtk.c (gdbtk_modify_tracepoint): Define new tracepoint modification hook. (gdbtk_print_frame_info): Define this hook so that current_source_symtab is set properly. (gdb_actions_command): Use free_actions () from tracepoint.c/h.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 936df3d..e77f103 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -517,8 +517,6 @@ enum tracepoint_opcode
delete
};
-static void free_actions PARAMS((struct tracepoint *));
-
/* This function implements enable, disable and delete. */
static void
tracepoint_operation (t, from_tty, opcode)
@@ -531,9 +529,13 @@ tracepoint_operation (t, from_tty, opcode)
switch (opcode) {
case enable:
t->enabled = enabled;
+ if (modify_tracepoint_hook)
+ modify_tracepoint_hook (t);
break;
case disable:
t->enabled = disabled;
+ if (modify_tracepoint_hook)
+ modify_tracepoint_hook (t);
break;
case delete:
if (tracepoint_chain == t)
@@ -1005,7 +1007,7 @@ validate_actionline (line, t)
}
/* worker function */
-static void
+void
free_actions (t)
struct tracepoint *t;
{