From 4c6127599b8d882f3125e28bca938548367bf0f3 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:36:54 -0700 Subject: Add target_ops argument to to_execution_direction 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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/target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/target.h') 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 -- cgit v1.1