* top.c (get_prompt_1), tracepoint.c (replace_comma): Update
authorAndrew Cagney <cagney@redhat.com>
Tue, 1 Aug 2000 05:06:03 +0000 (05:06 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 1 Aug 2000 05:06:03 +0000 (05:06 +0000)
function signatures so that they match catch_errors and
make_cleanup callbacks.
* tracepoint.c (encode_actions): Fix arguments passed to
stringify_collection_list.

gdb/ChangeLog
gdb/top.c
gdb/tracepoint.c

index 6a581df8b717ebd7ff4ddee8ab2dfb9268813942..386220e4d5b463c97bf32c21a059123a19812405 100644 (file)
@@ -1,3 +1,12 @@
+Tue Aug  1 14:50:55 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * top.c (get_prompt_1), tracepoint.c (replace_comma): Update
+       function signatures so that they match catch_errors and
+       make_cleanup callbacks.
+
+       * tracepoint.c (encode_actions): Fix arguments passed to
+       stringify_collection_list.
+
 2000-07-31  Kevin Buettner  <kevinb@redhat.com>
 
        * ppc-tdep.h: New file.
index 442f1491e4ee1b89288153e04207b0f1e0ee1381..ccb6aecd6e4863316c7e5b6837bf5836ca48755c 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -3179,8 +3179,9 @@ show_version (char *args, int from_tty)
 static int gdb_prompt_escape;
 
 static int
-get_prompt_1 (char *formatted_prompt)
+get_prompt_1 (void *data)
 {
+  char *formatted_prompt = data;
   char *local_prompt;
 
   if (event_loop_p)
index 83dce01784158c4b2b076193e7a5ed8efb93cb82..7d8a631458bef3d5ebf66aee7171386a45a3451a 100644 (file)
@@ -1625,8 +1625,8 @@ encode_actions (struct tracepoint *t, char ***tdp_actions,
   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, tdp_buff);
+  *stepping_actions = stringify_collection_list (&stepping_list, step_buff);
 }
 
 static void
@@ -2445,8 +2445,9 @@ scope_info (char *args, int from_tty)
 
 /* worker function (cleanup) */
 static void
-replace_comma (char *comma)
+replace_comma (void *data)
 {
+  char *comma = data;
   *comma = ',';
 }