This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 2/8] Add test for "layout asm"
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sun, 21 Jul 2019 12:49:04 -0600
- Subject: [PATCH 2/8] Add test for "layout asm"
- References: <20190721184910.26679-1-tom@tromey.com>
This adds a very simple test for "layout asm".
gdb/testsuite/ChangeLog
2019-07-21 Tom Tromey <tom@tromey.com>
* gdb.tui/basic.exp: Add "layout asm" test.
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.tui/basic.exp | 10 ++++++++++
2 files changed, 14 insertions(+)
diff --git a/gdb/testsuite/gdb.tui/basic.exp b/gdb/testsuite/gdb.tui/basic.exp
index 48d39741ba5..1eeeaa77606 100644
--- a/gdb/testsuite/gdb.tui/basic.exp
+++ b/gdb/testsuite/gdb.tui/basic.exp
@@ -47,3 +47,13 @@ if {[regexp "21 *return 0" $text]} {
# box.
setup_xfail *-*-*
Term::check_box "source box" 3 0 77 15
+
+Term::command "layout asm"
+set text [Term::get_all_lines]
+if {[regexp "$hex <main>" $text]} {
+ pass "asm window shows main"
+} else {
+ fail "asm window shows main"
+}
+
+Term::check_box "asm box" 3 0 77 15
--
2.17.2