From 5fbce5dfb1729f6183be7b96b9b2c42ab2e595f4 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 1 Mar 2012 21:07:31 +0000 Subject: [PATCH] 2012-03-01 Pedro Alves * remote.c (encode_actions): Delete declaration. * tracepoint.c (encode_actions): Make extern. * tracepoint.h (encode_actions): Declare. --- gdb/ChangeLog | 6 ++++++ gdb/remote.c | 3 --- gdb/tracepoint.c | 3 ++- gdb/tracepoint.h | 3 +++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ccea751d5d..75a56d9f2ea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-03-01 Pedro Alves + + * remote.c (encode_actions): Delete declaration. + * tracepoint.c (encode_actions): Make extern. + * tracepoint.h (encode_actions): Declare. + 2012-03-01 Pedro Alves * python/py-breakpoint.c: Include python.h. diff --git a/gdb/remote.c b/gdb/remote.c index 2719241ee7e..baa3ddafa99 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -69,9 +69,6 @@ /* Temp hacks for tracepoint encoding migration. */ static char *target_buf; static long target_buf_size; -/*static*/ void -encode_actions (struct breakpoint *t, struct bp_location *tloc, - char ***tdp_actions, char ***stepping_actions); /* The size to align memory write packets, when practical. The protocol does not guarantee any alignment, and gdb will generate short diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 37e1f52938d..824d5728386 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1577,7 +1577,8 @@ encode_actions_1 (struct command_line *action, } /* Render all actions into gdb protocol. */ -/*static*/ void + +void encode_actions (struct breakpoint *t, struct bp_location *tloc, char ***tdp_actions, char ***stepping_actions) { diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h index 00c4d7cb18b..4003c668c12 100644 --- a/gdb/tracepoint.h +++ b/gdb/tracepoint.h @@ -238,6 +238,9 @@ void free_actions (struct breakpoint *); extern char *decode_agent_options (char *exp); +extern void encode_actions (struct breakpoint *t, struct bp_location *tloc, + char ***tdp_actions, char ***stepping_actions); + extern void validate_actionline (char **, struct breakpoint *); extern void end_actions_pseudocommand (char *args, int from_tty); -- 2.30.2