aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:30:23 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:45:38 -0700
commitd2f640d43aee0be2d12eb082ac3d48d99ab5a1ce (patch)
treebd76bf9520653e001b9d4353e5e3185961cc6e89 /gdb/linux-nat.c
parentc42bf2866f330d7844917c40cf5886333fa3ea24 (diff)
downloadgdb-d2f640d43aee0be2d12eb082ac3d48d99ab5a1ce.zip
gdb-d2f640d43aee0be2d12eb082ac3d48d99ab5a1ce.tar.gz
gdb-d2f640d43aee0be2d12eb082ac3d48d99ab5a1ce.tar.bz2
Add target_ops argument to to_terminal_inferior
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_terminal_inferior>: Add argument. * target.c (target_terminal_inferior): Add argument. (update_current_target): Update. * remote.c (remote_terminal_inferior): Add 'self' argument. * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument. * inflow.c (terminal_inferior): Add 'self' argument. * inferior.h (terminal_inferior): Add 'self' argument. * go32-nat.c (go32_terminal_inferior): Add 'self' argument. (go32_terminal_inferior): Add 'self' argument.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index a6118af..cd2798a 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -4583,16 +4583,16 @@ static int async_terminal_is_ours = 1;
/* target_terminal_inferior implementation. */
static void
-linux_nat_terminal_inferior (void)
+linux_nat_terminal_inferior (struct target_ops *self)
{
if (!target_is_async_p ())
{
/* Async mode is disabled. */
- terminal_inferior ();
+ terminal_inferior (self);
return;
}
- terminal_inferior ();
+ terminal_inferior (self);
/* Calls to target_terminal_*() are meant to be idempotent. */
if (!async_terminal_is_ours)