mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
Fix PR gdb/393:
* inflow.c (terminal_save_ours): New function to save terminal settings. * inferior.h (terminal_save_ours): Declare. * target.c (debug_to_terminal_save_ours): New function. (cleanup_target): Defaults to_terminal_save_ours. (update_current_target): Inherit to_terminal_save_ours. (setup_target_debug): Set to_terminal_save_ours. * target.h (target_terminal_save_ours): New to save terminal settings. (target_ops): New member to_terminal_save_ours. * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours. * hpux-thread.c (init_hpux_thread_ops): Likewise. * inftarg.c (init_child_ops): Likewise. * m3-nat.c (init_m3_ops): Likewise. * procfs.c (init_procfs_ops): Likewise. * wince.c (init_child_ops): Likewise. * win32-nat.c (init_child_ops): Likewise. * sol-thread.c (init_sol_thread_ops): Likewise.
This commit is contained in:
@@ -264,6 +264,7 @@ struct target_ops
|
||||
void (*to_terminal_inferior) (void);
|
||||
void (*to_terminal_ours_for_output) (void);
|
||||
void (*to_terminal_ours) (void);
|
||||
void (*to_terminal_save_ours) (void);
|
||||
void (*to_terminal_info) (char *, int);
|
||||
void (*to_kill) (void);
|
||||
void (*to_load) (char *, int);
|
||||
@@ -626,6 +627,14 @@ extern void print_section_info (struct target_ops *, bfd *);
|
||||
#define target_terminal_ours() \
|
||||
(*current_target.to_terminal_ours) ()
|
||||
|
||||
/* Save our terminal settings.
|
||||
This is called from TUI after entering or leaving the curses
|
||||
mode. Since curses modifies our terminal this call is here
|
||||
to take this change into account. */
|
||||
|
||||
#define target_terminal_save_ours() \
|
||||
(*current_target.to_terminal_save_ours) ()
|
||||
|
||||
/* Print useful information about our terminal status, if such a thing
|
||||
exists. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user