diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:36:54 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:04 -0700 |
commit | 4c6127599b8d882f3125e28bca938548367bf0f3 (patch) | |
tree | e4889928eba386a7f08ff3163f375d0c2f556145 | |
parent | 19db3e69f3d107ea02b97335daf429a660e6cf97 (diff) | |
download | gdb-4c6127599b8d882f3125e28bca938548367bf0f3.zip gdb-4c6127599b8d882f3125e28bca938548367bf0f3.tar.gz gdb-4c6127599b8d882f3125e28bca938548367bf0f3.tar.bz2 |
Add target_ops argument to to_execution_direction
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.
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/record-full.c | 2 | ||||
-rw-r--r-- | gdb/target.c | 2 | ||||
-rw-r--r-- | gdb/target.h | 4 |
4 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ac4a50..6724285 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,14 @@ 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 argument. (target_can_execute_reverse): Add argument. diff --git a/gdb/record-full.c b/gdb/record-full.c index d9c8072..5583a7a 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -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; } diff --git a/gdb/target.c b/gdb/target.c index 0a51ccd..83900f2 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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; diff --git a/gdb/target.h b/gdb/target.h index faaf27d..57e97ca 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -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 (¤t_target, (CALLBACK), (CONTEXT))) #define target_execution_direction() \ - (current_target.to_execution_direction ()) + (current_target.to_execution_direction (¤t_target)) /* Converts a process id to a string. Usually, the string just contains `process xyz', but on some systems it may contain |