aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:30:36 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:38 -0700
commit2e1e1a193c4207779a53ef02753cf7cbec3cf38c (patch)
tree8f9e1d6bcb21d9905fdb6b92ccf92d50e548e457 /gdb/target.c
parentd2f640d43aee0be2d12eb082ac3d48d99ab5a1ce (diff)
downloadgdb-2e1e1a193c4207779a53ef02753cf7cbec3cf38c.zip
gdb-2e1e1a193c4207779a53ef02753cf7cbec3cf38c.tar.gz
gdb-2e1e1a193c4207779a53ef02753cf7cbec3cf38c.tar.bz2
Add target_ops argument to to_terminal_ours_for_output
2014-02-19 Pedro Alves <palves@redhat.com> Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_terminal_ours_for_output>: Add argument. (target_terminal_ours_for_output): Add argument. * target.c (debug_to_terminal_ours_for_output): Add argument. (update_current_target): Update. * inflow.c (terminal_ours_for_output): Add 'self' argument. * inferior.h (terminal_ours_for_output): Add 'self' argument. * go32-nat.c (go32_terminal_ours): Add 'self' argument.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/target.c b/gdb/target.c
index f3a6b80..1f56a0a 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -136,7 +136,7 @@ static void debug_to_terminal_init (struct target_ops *self);
static void debug_to_terminal_inferior (struct target_ops *self);
-static void debug_to_terminal_ours_for_output (void);
+static void debug_to_terminal_ours_for_output (struct target_ops *self);
static void debug_to_terminal_save_ours (void);
@@ -775,7 +775,7 @@ update_current_target (void)
(void (*) (struct target_ops *))
target_ignore);
de_fault (to_terminal_ours_for_output,
- (void (*) (void))
+ (void (*) (struct target_ops *))
target_ignore);
de_fault (to_terminal_ours,
(void (*) (void))
@@ -4815,9 +4815,9 @@ debug_to_terminal_inferior (struct target_ops *self)
}
static void
-debug_to_terminal_ours_for_output (void)
+debug_to_terminal_ours_for_output (struct target_ops *self)
{
- debug_target.to_terminal_ours_for_output ();
+ debug_target.to_terminal_ours_for_output (&debug_target);
fprintf_unfiltered (gdb_stdlog, "target_terminal_ours_for_output ()\n");
}