aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-05-28 02:55:04 +0000
committerYao Qi <yao@codesourcery.com>2013-05-28 02:55:04 +0000
commita73e3634d1f2873959629046578ef562aed68592 (patch)
treec3183a076194ab12f86cd299389543e14344b068 /gdb/tracepoint.c
parent3bc357f6f2d122f5f88e045511790387dcaf9434 (diff)
downloadgdb-a73e3634d1f2873959629046578ef562aed68592.zip
gdb-a73e3634d1f2873959629046578ef562aed68592.tar.gz
gdb-a73e3634d1f2873959629046578ef562aed68592.tar.bz2
gdb/
* tracepoint.c (stringify_collection_list): Remove parameter 'string'. (encode_actions): Caller update. Remove local variables.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index ba59ab0..899e538 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -1241,7 +1241,7 @@ clear_collection_list (struct collection_list *list)
/* Reduce a collection list to string form (for gdb protocol). */
static char **
-stringify_collection_list (struct collection_list *list, char *string)
+stringify_collection_list (struct collection_list *list)
{
char temp_buf[2048];
char tmp2[40];
@@ -1611,7 +1611,6 @@ void
encode_actions (struct breakpoint *t, struct bp_location *tloc,
char ***tdp_actions, char ***stepping_actions)
{
- static char tdp_buff[2048], step_buff[2048];
char *default_collect_line = NULL;
struct command_line *actions;
struct command_line *default_collect_action = NULL;
@@ -1656,10 +1655,8 @@ encode_actions (struct breakpoint *t, struct bp_location *tloc,
memrange_sortmerge (&tracepoint_list);
memrange_sortmerge (&stepping_list);
- *tdp_actions = stringify_collection_list (&tracepoint_list,
- tdp_buff);
- *stepping_actions = stringify_collection_list (&stepping_list,
- step_buff);
+ *tdp_actions = stringify_collection_list (&tracepoint_list);
+ *stepping_actions = stringify_collection_list (&stepping_list);
do_cleanups (back_to);
}