Make 'show width/height' display "unlimited" when capped for readline
[deliverable/binutils-gdb.git] / gdb / utils.c
index 069da23542edb7b7608ae635e7b6e591684efc25..60af31f2e4fe4d894479d45ba0a07b6dd1dc6b5e 100644 (file)
@@ -1394,10 +1394,16 @@ set_screen_size (void)
   const int sqrt_int_max = INT_MAX >> (sizeof (int) * 8 / 2);
 
   if (rows <= 0 || rows > sqrt_int_max)
-    rows = sqrt_int_max;
+    {
+      rows = sqrt_int_max;
+      lines_per_page = UINT_MAX;
+    }
 
   if (cols <= 0 || cols > sqrt_int_max)
-    cols = sqrt_int_max;
+    {
+      cols = sqrt_int_max;
+      chars_per_line = UINT_MAX;
+    }
 
   /* Update Readline's idea of the terminal size.  */
   rl_set_screen_size (rows, cols);
This page took 0.023553 seconds and 4 git commands to generate.