diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:30:49 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:45:39 -0700 |
commit | e3594fd196c8d629129af9cdc9d00ba08b62a928 (patch) | |
tree | eeae87aaf961ccc05533f044eee7cbfeb30aee25 /gdb/linux-nat.c | |
parent | 2e1e1a193c4207779a53ef02753cf7cbec3cf38c (diff) | |
download | gdb-e3594fd196c8d629129af9cdc9d00ba08b62a928.zip gdb-e3594fd196c8d629129af9cdc9d00ba08b62a928.tar.gz gdb-e3594fd196c8d629129af9cdc9d00ba08b62a928.tar.bz2 |
Add target_ops argument to to_terminal_ours
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_terminal_ours>: Add argument.
(target_terminal_ours): Add argument.
* target.c (debug_to_terminal_ours): Add argument.
(update_current_target): Update.
* remote.c (remote_terminal_ours): Add 'self' argument.
(remote_close): Update.
* linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
* inflow.c (terminal_ours): Add 'self' argument.
* inferior.h (terminal_ours): Add 'self' argument.
* go32-nat.c (go32_terminal_ours): Add 'self' argument.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r-- | gdb/linux-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index cd2798a..24cb1b9 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4606,19 +4606,19 @@ linux_nat_terminal_inferior (struct target_ops *self) /* target_terminal_ours implementation. */ static void -linux_nat_terminal_ours (void) +linux_nat_terminal_ours (struct target_ops *self) { if (!target_is_async_p ()) { /* Async mode is disabled. */ - terminal_ours (); + terminal_ours (self); return; } /* GDB should never give the terminal to the inferior if the inferior is running in the background (run&, continue&, etc.), but claiming it sure should. */ - terminal_ours (); + terminal_ours (self); if (async_terminal_is_ours) return; |