aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2019-08-15 18:15:16 -0700
committerSandra Loosemore <sandra@codesourcery.com>2019-08-15 18:15:16 -0700
commitd8f9e51c361dfb53de3eca8d84f8938380af60ff (patch)
treef762a56aa9de87cd1d3dc0f8317e04970a5d2792 /gdb/testsuite
parent33394263571f08a935c0a030dbde22a04eee7d70 (diff)
downloadgdb-d8f9e51c361dfb53de3eca8d84f8938380af60ff.zip
gdb-d8f9e51c361dfb53de3eca8d84f8938380af60ff.tar.gz
gdb-d8f9e51c361dfb53de3eca8d84f8938380af60ff.tar.bz2
Fix paste-o in examine-backward.exp.
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}".
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/examine-backward.exp2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 294243a..25eeefc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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.
diff --git a/gdb/testsuite/gdb.base/examine-backward.exp b/gdb/testsuite/gdb.base/examine-backward.exp
index 9e1e64c..c3dbf04 100644
--- a/gdb/testsuite/gdb.base/examine-backward.exp
+++ b/gdb/testsuite/gdb.base/examine-backward.exp
@@ -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 $" {