diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:30:10 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:37 -0700 |
commit | c42bf2866f330d7844917c40cf5886333fa3ea24 (patch) | |
tree | ae1d3c80f5edd76423e0f273b1100d0b2c62fbe8 /gdb/target.c | |
parent | c3a5ff89630f46c52ca43ee7e73933687815ca18 (diff) | |
download | gdb-c42bf2866f330d7844917c40cf5886333fa3ea24.zip gdb-c42bf2866f330d7844917c40cf5886333fa3ea24.tar.gz gdb-c42bf2866f330d7844917c40cf5886333fa3ea24.tar.bz2 |
Add target_ops argument to to_terminal_init
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_terminal_init>: Add argument.
(target_terminal_init): Add argument.
* target.c (debug_to_terminal_init): Add argument.
(update_current_target): Update.
* inflow.c (terminal_init_inferior): Add 'self' argument.
* inferior.h (terminal_init_inferior): Add 'self' argument.
* go32-nat.c (go32_terminal_init): Add 'self' argument.
* gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/target.c b/gdb/target.c index 6836c9d..bc3176a 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -132,7 +132,7 @@ static int debug_to_can_accel_watchpoint_condition (struct target_ops *self, CORE_ADDR, int, int, struct expression *); -static void debug_to_terminal_init (void); +static void debug_to_terminal_init (struct target_ops *self); static void debug_to_terminal_inferior (void); @@ -769,7 +769,7 @@ update_current_target (void) struct expression *)) return_zero); de_fault (to_terminal_init, - (void (*) (void)) + (void (*) (struct target_ops *)) target_ignore); de_fault (to_terminal_inferior, (void (*) (void)) @@ -4799,9 +4799,9 @@ debug_to_remove_watchpoint (struct target_ops *self, } static void -debug_to_terminal_init (void) +debug_to_terminal_init (struct target_ops *self) { - debug_target.to_terminal_init (); + debug_target.to_terminal_init (&debug_target); fprintf_unfiltered (gdb_stdlog, "target_terminal_init ()\n"); } |