aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.tui/list.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-12 18:20:58 -0700
committerTom Tromey <tom@tromey.com>2019-12-20 09:15:55 -0700
commit77b97e006217ed089b588e6799a59334bd216c43 (patch)
tree7751cc956382a130daf9d62f82eb0a7eb501dcfe /gdb/testsuite/gdb.tui/list.exp
parent52469d7673d716a4811c8ccec8cc8ef605992b31 (diff)
downloadgdb-77b97e006217ed089b588e6799a59334bd216c43.zip
gdb-77b97e006217ed089b588e6799a59334bd216c43.tar.gz
gdb-77b97e006217ed089b588e6799a59334bd216c43.tar.bz2
Display "main" on initial TUI startup
I noticed that even when there's a symbol file, "tui enable" won't show "main" by default. I think it should, and this patch fixes this. gdb/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * tui/tui.c (tui_enable): Call tui_display_main. gdb/testsuite/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * gdb.tui/list.exp: Check for source on initial listing. Change-Id: Ic7bfc930e1179f5b61111e30a2dae46a98b00064
Diffstat (limited to 'gdb/testsuite/gdb.tui/list.exp')
-rw-r--r--gdb/testsuite/gdb.tui/list.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.tui/list.exp b/gdb/testsuite/gdb.tui/list.exp
index 6efe193..08153c6 100644
--- a/gdb/testsuite/gdb.tui/list.exp
+++ b/gdb/testsuite/gdb.tui/list.exp
@@ -28,7 +28,7 @@ if {![Term::enter_tui]} {
unsupported "TUI not supported"
}
-Term::check_contents "initial source listing" "No Source Available"
+Term::check_contents "initial source listing" "21 *return 0"
Term::command "layout asm"
Term::check_contents "asm window shows main" "$hex <main>"