Add target_ops argument to to_execution_direction
authorTom Tromey <tromey@redhat.com>
Wed, 18 Dec 2013 04:36:54 +0000 (21:36 -0700)
committerTom Tromey <tromey@redhat.com>
Wed, 19 Feb 2014 14:46:04 +0000 (07:46 -0700)
2014-02-19  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_execution_direction>: Add
argument.
(target_execution_direction): Add argument.
* target.c (default_execution_direction): Add 'self' argument.
* record-full.c (record_full_execution_direction): Add 'self'
argument.

gdb/ChangeLog
gdb/record-full.c
gdb/target.c
gdb/target.h

index 6ac4a50feab14c0f566e277d91f9769cd3683058..67242852635f6c9e2e7d831b42781082f362ea6e 100644 (file)
@@ -1,3 +1,12 @@
+2014-02-19  Tom Tromey  <tromey@redhat.com>
+
+       * target.h (struct target_ops) <to_execution_direction>: Add
+       argument.
+       (target_execution_direction): Add argument.
+       * target.c (default_execution_direction): Add 'self' argument.
+       * record-full.c (record_full_execution_direction): Add 'self'
+       argument.
+
 2014-02-19  Tom Tromey  <tromey@redhat.com>
 
        * target.h (struct target_ops) <to_can_execute_reverse>: Add
index d9c8072f6e627ec6dd2765640746007dc78fbfde..5583a7aee80a69f06aa65eae070e5cf55775de22 100644 (file)
@@ -1764,7 +1764,7 @@ record_full_is_async_p (struct target_ops *ops)
 }
 
 static enum exec_direction_kind
-record_full_execution_direction (void)
+record_full_execution_direction (struct target_ops *self)
 {
   return record_full_execution_dir;
 }
index 0a51ccd6c558c6795dce39f4f4386c93e1c649d7..83900f2819aadba4a14a644bd528579764d2ae50 100644 (file)
@@ -543,7 +543,7 @@ default_get_ada_task_ptid (struct target_ops *self, long lwp, long tid)
 }
 
 static enum exec_direction_kind
-default_execution_direction (void)
+default_execution_direction (struct target_ops *self)
 {
   if (!target_can_execute_reverse)
     return EXEC_FORWARD;
index faaf27d88dbce9edac450f1d068251a6703b9dec..57e97caffde0489fbd7b43601e55a29bbd3c37fc 100644 (file)
@@ -668,7 +668,7 @@ struct target_ops
     /* The direction the target is currently executing.  Must be
        implemented on targets that support reverse execution and async
        mode.  The default simply returns forward execution.  */
-    enum exec_direction_kind (*to_execution_direction) (void);
+    enum exec_direction_kind (*to_execution_direction) (struct target_ops *);
 
     /* Does this target support debugging multiple processes
        simultaneously?  */
@@ -1512,7 +1512,7 @@ int target_supports_non_stop (void);
      (current_target.to_async (&current_target, (CALLBACK), (CONTEXT)))
 
 #define target_execution_direction() \
-  (current_target.to_execution_direction ())
+  (current_target.to_execution_direction (&current_target))
 
 /* Converts a process id to a string.  Usually, the string just contains
    `process xyz', but on some systems it may contain
This page took 0.033035 seconds and 4 git commands to generate.