From 19db3e69f3d107ea02b97335daf429a660e6cf97 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:36:42 -0700 Subject: [PATCH] Add target_ops argument to to_can_execute_reverse 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. (target_can_execute_reverse): Add argument. * remote.c (remote_can_execute_reverse): Add 'self' argument. * record-full.c (record_full_can_execute_reverse): Add 'self' argument. * record-btrace.c (record_btrace_can_execute_reverse): Add 'self' argument. --- gdb/ChangeLog | 11 +++++++++++ gdb/record-btrace.c | 2 +- gdb/record-full.c | 2 +- gdb/remote.c | 2 +- gdb/target.h | 4 ++-- 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cfa06ee20de..6ac4a50feab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,14 @@ +2014-02-19 Tom Tromey + + * target.h (struct target_ops) : Add + argument. + (target_can_execute_reverse): Add argument. + * remote.c (remote_can_execute_reverse): Add 'self' argument. + * record-full.c (record_full_can_execute_reverse): Add 'self' + argument. + * record-btrace.c (record_btrace_can_execute_reverse): Add 'self' + argument. + 2014-02-19 Tom Tromey * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument. diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 75a1364228f..4e808e47151 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -1717,7 +1717,7 @@ record_btrace_wait (struct target_ops *ops, ptid_t ptid, /* The to_can_execute_reverse method of target record-btrace. */ static int -record_btrace_can_execute_reverse (void) +record_btrace_can_execute_reverse (struct target_ops *self) { return 1; } diff --git a/gdb/record-full.c b/gdb/record-full.c index 649ae5c843b..d9c8072f6e6 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -1693,7 +1693,7 @@ record_full_remove_breakpoint (struct target_ops *ops, /* "to_can_execute_reverse" method for process record target. */ static int -record_full_can_execute_reverse (void) +record_full_can_execute_reverse (struct target_ops *self) { return 1; } diff --git a/gdb/remote.c b/gdb/remote.c index 2b499a391a9..10d87b1938e 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10215,7 +10215,7 @@ remote_command (char *args, int from_tty) } static int -remote_can_execute_reverse (void) +remote_can_execute_reverse (struct target_ops *self) { if (remote_protocol_packets[PACKET_bs].support == PACKET_ENABLE || remote_protocol_packets[PACKET_bc].support == PACKET_ENABLE) diff --git a/gdb/target.h b/gdb/target.h index 723868e60ac..faaf27d88db 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -663,7 +663,7 @@ struct target_ops CORE_ADDR *found_addrp); /* Can target execute in reverse? */ - int (*to_can_execute_reverse) (void); + int (*to_can_execute_reverse) (struct target_ops *); /* The direction the target is currently executing. Must be implemented on targets that support reverse execution and async @@ -1698,7 +1698,7 @@ extern int target_masked_watch_num_registers (CORE_ADDR addr, CORE_ADDR mask); /* Target can execute in reverse? */ #define target_can_execute_reverse \ (current_target.to_can_execute_reverse ? \ - current_target.to_can_execute_reverse () : 0) + current_target.to_can_execute_reverse (¤t_target) : 0) extern const struct target_desc *target_read_description (struct target_ops *); -- 2.30.2