projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make 'show width/height' display "unlimited" when capped for readline
[deliverable/binutils-gdb.git]
/
gdb
/
utils.c
diff --git
a/gdb/utils.c
b/gdb/utils.c
index 069da23542edb7b7608ae635e7b6e591684efc25..60af31f2e4fe4d894479d45ba0a07b6dd1dc6b5e 100644
(file)
--- 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)
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)
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);
/* Update Readline's idea of the terminal size. */
rl_set_screen_size (rows, cols);
This page took
0.024859 seconds
and
4
git commands to generate.