aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.h
diff options
context:
space:
mode:
authorPatrick Palka <patrick@parcs.ath.cx>2015-04-23 18:31:38 -0400
committerPatrick Palka <patrick@parcs.ath.cx>2015-04-28 08:46:28 -0400
commitd6e5e7f7fd90baad9cbfaa5a187b5f0b1a0b8cf6 (patch)
tree47a4511a2f7106e5e3ce6e2fa7766aed2e6c45f4 /gdb/utils.h
parentff862be47e7acf51e4abaf0f121d5961adb1845a (diff)
downloadgdb-d6e5e7f7fd90baad9cbfaa5a187b5f0b1a0b8cf6.zip
gdb-d6e5e7f7fd90baad9cbfaa5a187b5f0b1a0b8cf6.tar.gz
gdb-d6e5e7f7fd90baad9cbfaa5a187b5f0b1a0b8cf6.tar.bz2
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.
Diffstat (limited to 'gdb/utils.h')
-rw-r--r--gdb/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/utils.h b/gdb/utils.h
index b8e1aff..cae1ac0 100644
--- a/gdb/utils.h
+++ b/gdb/utils.h
@@ -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. */