gdb/
authorYao Qi <yao@codesourcery.com>
Thu, 30 May 2013 09:29:18 +0000 (09:29 +0000)
committerYao Qi <yao@codesourcery.com>
Thu, 30 May 2013 09:29:18 +0000 (09:29 +0000)
* tracepoint.c (encode_actions_1): Remove parameter 't'.
Caller update.
(encode_actions): Likewise.
* remote.c (remote_download_tracepoint): Caller update.
* tracepoint.h (encode_actions): Update declaration.

gdb/ChangeLog
gdb/remote.c
gdb/tracepoint.c
gdb/tracepoint.h

index 76e0d60d56c78743f6a0ff32dfdc6ca54a568d9d..a491b25abe8038dce998c7a506329f5d1ff0e002 100644 (file)
@@ -1,3 +1,12 @@
+2013-05-30  Pedro Alves  <pedro@codesourcery.com>
+           Yao Qi  <yao@codesourcery.com>
+
+       * tracepoint.c (encode_actions_1): Remove parameter 't'.
+       Caller update.
+       (encode_actions): Likewise.
+       * remote.c (remote_download_tracepoint): Caller update.
+       * tracepoint.h (encode_actions): Update declaration.
+
 2013-05-30  Pedro Alves  <palves@redhat.com>
 
        * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
index b96b3811c59dd67ed3189a2ab99bf410495e2a65..d8854ae46b851036d5b03d8896a1b358e2618543 100644 (file)
@@ -10506,7 +10506,7 @@ remote_download_tracepoint (struct bp_location *loc)
   struct breakpoint *b = loc->owner;
   struct tracepoint *t = (struct tracepoint *) b;
 
-  encode_actions (loc->owner, loc, &tdp_actions, &stepping_actions);
+  encode_actions (loc, &tdp_actions, &stepping_actions);
   old_chain = make_cleanup (free_actions_list_cleanup_wrapper,
                            tdp_actions);
   (void) make_cleanup (free_actions_list_cleanup_wrapper,
index 899e538068a5e719d9fe1e3bbe71b22d925322c3..26aedac4825009cf7cc3412d478d87755c0093e1 100644 (file)
@@ -1364,7 +1364,6 @@ stringify_collection_list (struct collection_list *list)
 
 static void
 encode_actions_1 (struct command_line *action,
-                 struct breakpoint *t,
                  struct bp_location *tloc,
                  int frame_reg,
                  LONGEST frame_offset,
@@ -1597,7 +1596,7 @@ encode_actions_1 (struct command_line *action,
             here.  */
          gdb_assert (stepping_list);
 
-         encode_actions_1 (action->body_list[0], t, tloc, frame_reg,
+         encode_actions_1 (action->body_list[0], tloc, frame_reg,
                            frame_offset, stepping_list, NULL);
        }
       else
@@ -1608,8 +1607,8 @@ encode_actions_1 (struct command_line *action,
 /* Render all actions into gdb protocol.  */
 
 void
-encode_actions (struct breakpoint *t, struct bp_location *tloc,
-               char ***tdp_actions, char ***stepping_actions)
+encode_actions (struct bp_location *tloc, char ***tdp_actions,
+               char ***stepping_actions)
 {
   char *default_collect_line = NULL;
   struct command_line *actions;
@@ -1629,7 +1628,7 @@ encode_actions (struct breakpoint *t, struct bp_location *tloc,
   gdbarch_virtual_frame_pointer (tloc->gdbarch,
                                 tloc->address, &frame_reg, &frame_offset);
 
-  actions = breakpoint_commands (t);
+  actions = breakpoint_commands (tloc->owner);
 
   /* If there are default expressions to collect, make up a collect
      action and prepend to the action list to encode.  Note that since
@@ -1641,7 +1640,7 @@ encode_actions (struct breakpoint *t, struct bp_location *tloc,
       default_collect_line =  xstrprintf ("collect %s", default_collect);
       make_cleanup (xfree, default_collect_line);
 
-      validate_actionline (default_collect_line, t);
+      validate_actionline (default_collect_line, tloc->owner);
 
       default_collect_action = xmalloc (sizeof (struct command_line));
       make_cleanup (xfree, default_collect_action);
@@ -1649,7 +1648,7 @@ encode_actions (struct breakpoint *t, struct bp_location *tloc,
       default_collect_action->line = default_collect_line;
       actions = default_collect_action;
     }
-  encode_actions_1 (actions, t, tloc, frame_reg, frame_offset,
+  encode_actions_1 (actions, tloc, frame_reg, frame_offset,
                    &tracepoint_list, &stepping_list);
 
   memrange_sortmerge (&tracepoint_list);
index 18762cae4dc071bdfdc44781b8d114fc60cc6eba..d7ebc16e57af9d27e80c29004cab9fc332a3797e 100644 (file)
@@ -357,7 +357,7 @@ void free_actions (struct breakpoint *);
 
 extern const char *decode_agent_options (const char *exp, int *trace_string);
 
-extern void encode_actions (struct breakpoint *t, struct bp_location *tloc,
+extern void encode_actions (struct bp_location *tloc,
                            char ***tdp_actions, char ***stepping_actions);
 
 extern void validate_actionline (const char *, struct breakpoint *);
This page took 0.035792 seconds and 4 git commands to generate.