diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-06-13 17:08:34 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-06-13 17:08:34 +0000 |
commit | 0caa462c1636049cfb05fb44f1fd104c65e6d1f7 (patch) | |
tree | 3b7872884585fe4ed060850975984b8cccce15ef | |
parent | 4de6483e79db64665134c715dd17d220ee527afb (diff) | |
download | ppe42-binutils-0caa462c1636049cfb05fb44f1fd104c65e6d1f7.tar.gz ppe42-binutils-0caa462c1636049cfb05fb44f1fd104c65e6d1f7.zip |
* utils.c (set_screen_size): Use INT_MAX for default columns.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/utils.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4f89370a81..f2a365a2d2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-06-13 Daniel Jacobowitz <dan@codesourcery.com> + + * utils.c (set_screen_size): Use INT_MAX for default columns. + 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com> * remote.c (remote_protocol_features): Add qXfer:spu:read and diff --git a/gdb/utils.c b/gdb/utils.c index e1fb9ed48c..6f3719adc6 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -1633,7 +1633,7 @@ set_screen_size (void) rows = INT_MAX; if (cols <= 0) - rl_get_screen_size (NULL, &cols); + cols = INT_MAX; /* Update Readline's idea of the terminal size. */ rl_set_screen_size (rows, cols); |