mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 07:53:51 +08:00
Introduce function for directly updating GDB's screen dimensions
... to replace the roundabout pattern of execute_command ("set width %d"); execute_command ("set height %d"); for doing the same thing. gdb/ChangeLog: * utils.h (set_screen_width_and_height): Declare. * utils.c (set_screen_width_and_height): Define. * tui/tui-win.c (tui_update_gdb_sizes): Use it.
This commit is contained in:
@ -174,6 +174,10 @@ extern struct ui_file *gdb_stdtarg;
|
||||
extern struct ui_file *gdb_stdtargerr;
|
||||
extern struct ui_file *gdb_stdtargin;
|
||||
|
||||
/* Set the screen dimensions to WIDTH and HEIGHT. */
|
||||
|
||||
extern void set_screen_width_and_height (int width, int height);
|
||||
|
||||
/* More generic printf like operations. Filtered versions may return
|
||||
non-locally on error. */
|
||||
|
||||
|
Reference in New Issue
Block a user