From: Simon Marchi Date: Thu, 27 Aug 2020 18:42:12 +0000 (-0400) Subject: gdb/testsuite: use multi_line in gdb.dwarf2/dw2-reg-undefined.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48b076bbca06e875912b3b784fe212ede04327d8;p=binutils-gdb.git 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 --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 344012e7475..25835139b36 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2020-08-27 Simon Marchi + + * gdb.dwarf2/dw2-reg-undefined.exp: Use multi_line. + 2020-08-27 Andrew Burgess * 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 29564face30..a3e6f28c54f 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}" }