Make 'show width/height' display "unlimited" when capped for readline
authorPedro Alves <palves@redhat.com>
Wed, 27 Feb 2019 18:48:36 +0000 (18:48 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 27 Feb 2019 18:48:36 +0000 (18:48 +0000)
commit8ed252144a29fb6370b828d84419d5c59d23dae2
tree6cc5175c56e095ab018901fa82622fa42fc88814
parent23031e319207140e76a9c18e308995fe28322b58
Make 'show width/height' display "unlimited" when capped for readline

When we cap the height/width sizes before passing to readline, tweak
the corresponding command variable to show "unlimited":

  (gdb) set height 0x8000
  (gdb) show height
  Number of lines gdb thinks are in a page is unlimited.

Instead of the current output:
  (gdb) set height 0x8000
  (gdb) show height
  Number of lines gdb thinks are in a page is 32768.

gdb/ChangeLog:
2019-02-27  Pedro Alves  <palves@redhat.com>

* utils.c (set_screen_size): When we cap the height/width sizes,
tweak the corresponding command variable to show "unlimited":

gdb/testsuite/ChangeLog:
2019-02-27  Pedro Alves  <palves@redhat.com>

* gdb.base/page.exp: Add tests for "set/show width/height" with
"infinite" values.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/page.exp
gdb/utils.c
This page took 0.025028 seconds and 4 git commands to generate.