X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Futils.c;h=60af31f2e4fe4d894479d45ba0a07b6dd1dc6b5e;hb=8ed252144a29fb6370b828d84419d5c59d23dae2;hp=069da23542edb7b7608ae635e7b6e591684efc25;hpb=23031e319207140e76a9c18e308995fe28322b58;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/utils.c b/gdb/utils.c index 069da23542..60af31f2e4 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -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);