]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix paste-o in examine-backward.exp.
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 16 Aug 2019 01:15:16 +0000 (18:15 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Fri, 16 Aug 2019 01:15:16 +0000 (18:15 -0700)
This patch fixes a paste-o that was introduced in commit
c8ad9b9a31aa3e6039567fc1f152dd454c946d5f.  Previously the regexp for
the "examine 3 bytes backward from ${address_zero}" test correctly
matched 3 "${byte}" patterns, but in that commit the 6-byte regexp
from the previous test was mistakenly repeated here instead.

2019-08-15  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/
* gdb.base/examine-backward.exp: Correct regexp for
"examine 3 bytes backward from ${address_zero}".

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/examine-backward.exp

index 294243a661758725c65326e61c5d53d1d3e06296..25eeefc42d01ad12cfe20ebffa433588479fc43a 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-15  Sandra Loosemore  <sandra@codesourcery.com>
+
+       * gdb.base/examine-backward.exp: Correct regexp for
+       "examine 3 bytes backward from ${address_zero}".
+
 2019-08-15  Tom Tromey  <tom@tromey.com>
 
        * gdb.tui/empty.exp: Enable resizing tests.
index 9e1e64c0c20299c6f030918be65934d73ba287c3..c3dbf04cb9d5c910cd46ae3171e463d61169a5b7 100644 (file)
@@ -132,7 +132,7 @@ with_test_prefix "address zero boundary" {
 
     set test "examine 3 bytes backward from ${address_zero}"
     gdb_test_multiple "x/-3x ${address_zero}" "$test" {
-       -re "0x\[0-9a-f\]+fd.*:${byte}${byte}${byte}${byte}${byte}${byte}.*\[\r\n\]*$gdb_prompt $" {
+       -re "0x\[0-9a-f\]+fd.*:${byte}${byte}${byte}.*\[\r\n\]*$gdb_prompt $" {
            pass $test
        }
        -re "0x\[0-9a-f\]+fd.*:\tCannot access memory at address 0x\[0-9a-f\]+fd.*\[\r\n\]*$gdb_prompt $" {