aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.tui/basic.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-10-09 16:35:41 -0600
committerTom Tromey <tom@tromey.com>2019-12-11 15:49:02 -0700
commit2192a9d3b31a595eb7add928221d49334f32c06d (patch)
treee021f263f4a25a20c885a674e6f03a92306dba0b /gdb/testsuite/gdb.tui/basic.exp
parent389e7ddbc2b08bd5cac8c8f44a03e93609fd43d1 (diff)
downloadfsf-binutils-gdb-2192a9d3b31a595eb7add928221d49334f32c06d.zip
fsf-binutils-gdb-2192a9d3b31a595eb7add928221d49334f32c06d.tar.gz
fsf-binutils-gdb-2192a9d3b31a595eb7add928221d49334f32c06d.tar.bz2
First use of tui_layout
This patch introduces the first use of tui_layout, by changing show_layout to clone and use the appropriate tui_layout. This resulted in one minor layout change, and also in the unintended -- but good -- side effect that the title of each boxed window is now visible. gdb/ChangeLog 2019-12-11 Tom Tromey <tom@tromey.com> * tui/tui-layout.h (tui_apply_current_layout): Declare. * tui/tui-layout.c (standard_layouts, applied_layout): New globals. (tui_apply_current_layout): New function. (show_layout): Set applied_layout. Call tui_apply_current_layout. (show_source_command, show_disasm_command) (show_source_disasm_command, show_data) (show_source_or_disasm_and_command): Remove. (initialize_layouts): New function. (_initialize_tui_layout): Call initialize_layouts. gdb/testsuite/ChangeLog 2019-12-11 Tom Tromey <tom@tromey.com> * gdb.tui/regs.exp: Update. * gdb.tui/empty.exp (layouts): Update. * gdb.tui/basic.exp: Update. * lib/tuiterm.exp (_check_box): Don't check bottom border. Change-Id: If1ee06ee58f4803e8c213f4ab0f5bb59f4650ec2
Diffstat (limited to 'gdb/testsuite/gdb.tui/basic.exp')
-rw-r--r--gdb/testsuite/gdb.tui/basic.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp
index 716c52f..f9d57d1 100644
--- a/gdb/testsuite/gdb.tui/basic.exp
+++ b/gdb/testsuite/gdb.tui/basic.exp
@@ -45,5 +45,5 @@ Term::check_box "asm box" 0 0 80 15
Term::command "layout split"
Term::check_contents "split layout contents" "21 *return 0.*$hex <main>"
-Term::check_box "source box in split layout" 0 0 80 8
-Term::check_box "asm box in split layout" 0 7 80 8
+Term::check_box "source box in split layout" 0 0 80 7
+Term::check_box "asm box in split layout" 0 6 80 9