aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 24fd9ea..974f2ce 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1323,6 +1323,12 @@ _initialize_utils ()
}
}
+#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)
+
+ /* If tere is a better way to determine window size, use it. */
+ SIGWINCH_HANDLER ();
+#endif
+
/* If the output is not a terminal, don't paginate it. */
if (!ISATTY (stdout))
lines_per_page = UINT_MAX;
@@ -1350,3 +1356,9 @@ _initialize_utils ()
&setprintlist),
&showprintlist);
}
+
+/* Machine specific function to handle SIGWINCH signal. */
+
+#ifdef SIGWINCH_HANDLER_BODY
+ SIGWINCH_HANDLER_BODY
+#endif