forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -220,7 +220,7 @@ static int peek_stop_reply (ptid_t ptid);
|
||||
|
||||
static void remote_async_inferior_event_handler (gdb_client_data);
|
||||
|
||||
static void remote_terminal_ours (void);
|
||||
static void remote_terminal_ours (struct target_ops *self);
|
||||
|
||||
static int remote_read_description_p (struct target_ops *target);
|
||||
|
||||
@@ -3000,7 +3000,7 @@ remote_close (struct target_ops *self)
|
||||
|
||||
/* Make sure we leave stdin registered in the event loop, and we
|
||||
don't leave the async SIGINT signal handler installed. */
|
||||
remote_terminal_ours ();
|
||||
remote_terminal_ours (self);
|
||||
|
||||
serial_close (rs->remote_desc);
|
||||
rs->remote_desc = NULL;
|
||||
@@ -5148,7 +5148,7 @@ remote_terminal_inferior (struct target_ops *self)
|
||||
}
|
||||
|
||||
static void
|
||||
remote_terminal_ours (void)
|
||||
remote_terminal_ours (struct target_ops *self)
|
||||
{
|
||||
if (!target_async_permitted)
|
||||
/* Nothing to do. */
|
||||
|
||||
Reference in New Issue
Block a user