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.
This commit is contained in:
parent
d2f640d43a
commit
2e1e1a193c
5 changed files with 20 additions and 8 deletions
|
@ -1,3 +1,15 @@
|
||||||
|
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.
|
||||||
|
|
||||||
2014-02-19 Tom Tromey <tromey@redhat.com>
|
2014-02-19 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* target.h (struct target_ops) <to_terminal_inferior>: Add
|
* target.h (struct target_ops) <to_terminal_inferior>: Add
|
||||||
|
|
|
@ -174,7 +174,7 @@ extern void child_terminal_info (const char *, int);
|
||||||
|
|
||||||
extern void term_info (char *, int);
|
extern void term_info (char *, int);
|
||||||
|
|
||||||
extern void terminal_ours_for_output (void);
|
extern void terminal_ours_for_output (struct target_ops *self);
|
||||||
|
|
||||||
extern void terminal_inferior (struct target_ops *self);
|
extern void terminal_inferior (struct target_ops *self);
|
||||||
|
|
||||||
|
|
|
@ -353,7 +353,7 @@ terminal_inferior (struct target_ops *self)
|
||||||
should be called to get back to a normal state of affairs. */
|
should be called to get back to a normal state of affairs. */
|
||||||
|
|
||||||
void
|
void
|
||||||
terminal_ours_for_output (void)
|
terminal_ours_for_output (struct target_ops *self)
|
||||||
{
|
{
|
||||||
terminal_ours_1 (1);
|
terminal_ours_1 (1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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_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);
|
static void debug_to_terminal_save_ours (void);
|
||||||
|
|
||||||
|
@ -775,7 +775,7 @@ update_current_target (void)
|
||||||
(void (*) (struct target_ops *))
|
(void (*) (struct target_ops *))
|
||||||
target_ignore);
|
target_ignore);
|
||||||
de_fault (to_terminal_ours_for_output,
|
de_fault (to_terminal_ours_for_output,
|
||||||
(void (*) (void))
|
(void (*) (struct target_ops *))
|
||||||
target_ignore);
|
target_ignore);
|
||||||
de_fault (to_terminal_ours,
|
de_fault (to_terminal_ours,
|
||||||
(void (*) (void))
|
(void (*) (void))
|
||||||
|
@ -4815,9 +4815,9 @@ debug_to_terminal_inferior (struct target_ops *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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");
|
fprintf_unfiltered (gdb_stdlog, "target_terminal_ours_for_output ()\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -489,7 +489,7 @@ struct target_ops
|
||||||
CORE_ADDR, CORE_ADDR);
|
CORE_ADDR, CORE_ADDR);
|
||||||
void (*to_terminal_init) (struct target_ops *);
|
void (*to_terminal_init) (struct target_ops *);
|
||||||
void (*to_terminal_inferior) (struct target_ops *);
|
void (*to_terminal_inferior) (struct target_ops *);
|
||||||
void (*to_terminal_ours_for_output) (void);
|
void (*to_terminal_ours_for_output) (struct target_ops *);
|
||||||
void (*to_terminal_ours) (void);
|
void (*to_terminal_ours) (void);
|
||||||
void (*to_terminal_save_ours) (void);
|
void (*to_terminal_save_ours) (void);
|
||||||
void (*to_terminal_info) (const char *, int);
|
void (*to_terminal_info) (const char *, int);
|
||||||
|
@ -1238,7 +1238,7 @@ extern void target_terminal_inferior (void);
|
||||||
should be called to get back to a normal state of affairs. */
|
should be called to get back to a normal state of affairs. */
|
||||||
|
|
||||||
#define target_terminal_ours_for_output() \
|
#define target_terminal_ours_for_output() \
|
||||||
(*current_target.to_terminal_ours_for_output) ()
|
(*current_target.to_terminal_ours_for_output) (¤t_target)
|
||||||
|
|
||||||
/* Put our terminal settings into effect.
|
/* Put our terminal settings into effect.
|
||||||
First record the inferior's terminal settings
|
First record the inferior's terminal settings
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue