aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2020-08-27 14:42:12 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2020-08-27 14:42:38 -0400
commit48b076bbca06e875912b3b784fe212ede04327d8 (patch)
treeadd9dd9057d178745737221b9b45c0578a5c91ef /gdb/testsuite
parentfc5d6901ad491bd6126b598c401d878a36eab59f (diff)
downloadgdb-48b076bbca06e875912b3b784fe212ede04327d8.zip
gdb-48b076bbca06e875912b3b784fe212ede04327d8.tar.gz
gdb-48b076bbca06e875912b3b784fe212ede04327d8.tar.bz2
gdb/testsuite: use multi_line in gdb.dwarf2/dw2-reg-undefined.exp
Use multi_line to make the expected pattern more readable. gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-reg-undefined.exp: Use multi_line. Change-Id: Ia8e42d156c0c30265121eb890e1db17a692dbaf0
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp7
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 344012e..2583513 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * gdb.dwarf2/dw2-reg-undefined.exp: Use multi_line.
+
2020-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
* gdb.arch/amd64-byte.exp: Make test names unique, use
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp b/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp
index 29564fa..a3e6f28 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-reg-undefined.exp
@@ -66,6 +66,11 @@ for {set f 0} {$f < 3} {incr f} {
# Display register values.
- gdb_test "info registers rax rbx rcx r8 r9" "rax\\s+${pattern_rax_rbx_rcx_info}\\s*\r\nrbx\\s+${pattern_rax_rbx_rcx_info}\\s*\r\nrcx\\s+${pattern_rax_rbx_rcx_info}\\s*\r\nr8\\s+${pattern_r8_r9_info}\\s*\r\nr9\\s+${pattern_r8_r9_info}\\s*" \
+ gdb_test "info registers rax rbx rcx r8 r9" \
+ [multi_line "rax\\s+${pattern_rax_rbx_rcx_info}\\s*" \
+ "rbx\\s+${pattern_rax_rbx_rcx_info}\\s*" \
+ "rcx\\s+${pattern_rax_rbx_rcx_info}\\s*" \
+ "r8\\s+${pattern_r8_r9_info}\\s*" \
+ "r9\\s+${pattern_r8_r9_info}\\s*"] \
"Check values of rax, rbx, rcx, r8, r9 in frame ${f}"
}