This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[OB PATCH] Remove unused parameter in stringify_collection_list

Function stringify_collection_list doesn't use its 2nd parameter
'string', so this patch is to remove the parameter.  It is obvious,
and I'll check it in.


2013-05-25  Yao Qi  <>

	* tracepoint.c (stringify_collection_list): Remove parameter
	(encode_actions): Caller update.  Remove local variables.
 gdb/tracepoint.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index e2b21af..ac8f336 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -1243,7 +1243,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];
@@ -1613,7 +1613,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;
@@ -1658,10 +1657,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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]