diff options
author | Tom Tromey <tromey@redhat.com> | 2012-03-16 18:22:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-03-16 18:22:24 +0000 |
commit | c366c1f032f28dd7747ecc148dcec7419f42ab94 (patch) | |
tree | ee9acc9dbdb8a68276b201337774dec654ecc05f /gdb | |
parent | e16edb4530709c015a185c85c5f501552c4b41d8 (diff) | |
download | fsf-binutils-gdb-c366c1f032f28dd7747ecc148dcec7419f42ab94.zip fsf-binutils-gdb-c366c1f032f28dd7747ecc148dcec7419f42ab94.tar.gz fsf-binutils-gdb-c366c1f032f28dd7747ecc148dcec7419f42ab94.tar.bz2 |
2012-03-16 Chris January <chris.january@allinea.com>
* tui-tui.win.c (tui_resize_all): Use erase and clearok instead
of clear.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/tui/tui-win.c | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 473c0fd..8368c07 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2012-03-16 Chris January <chris.january@allinea.com> + * tui-tui.win.c (tui_resize_all): Use erase and clearok instead + of clear. + +2012-03-16 Chris January <chris.january@allinea.com> + * source.c (add_path): Use memmove instead of strcpy because the strings overlap. diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index b48bf3e..c12f036 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -690,13 +690,16 @@ tui_resize_all (void) if (height_diff < 0) cmd_split_diff--; else - cmd_split_diff++; - } + cmd_split_diff++; + } /* Now adjust each window. */ - clear (); + /* erase + clearok are used instead of a straightforward clear as + AIX 5.3 does not define clear. */ + erase (); + clearok (curscr, TRUE); refresh (); switch (cur_layout) - { + { case SRC_COMMAND: case DISASSEM_COMMAND: first_win = (struct tui_win_info *) (tui_source_windows ())->list[0]; |