Index: gdb/testsuite/gdb.base/find.exp |
diff --git a/gdb/testsuite/gdb.base/find.exp b/gdb/testsuite/gdb.base/find.exp |
index 2f33973a91e9839fef06bf81aa07f411c0da62f2..5e41d9786df41257e409abfb0dd6a69fe8c0a513 100644 |
--- a/gdb/testsuite/gdb.base/find.exp |
+++ b/gdb/testsuite/gdb.base/find.exp |
@@ -15,10 +15,6 @@ |
# This tests the find command. |
-if $tracelevel then { |
- strace $tracelevel |
-} |
- |
set testfile "find" |
set srcfile ${testfile}.c |
set binfile ${objdir}/${subdir}/${testfile} |
@@ -87,7 +83,7 @@ gdb_test "find /1 &int8_search_buf\[0\], +sizeof(int8_search_buf), 'a', 'a', 'a' |
"max-count" |
gdb_test "print \$_" \ |
- "${history_prefix}.*${hex_number}" \ |
+ "${history_prefix}.*${hex_number} <int8_search_buf\\+10>" \ |
"\$_" |
gdb_test "print \$numfound" \ |
@@ -186,3 +182,6 @@ if [isnative] { |
"${hex_number}${one_pattern_found}" \ |
"find pattern straddling chunk boundary" |
} |
+ |
+# Check GDB buffer overflow. |
+gdb_test "find int64_search_buf, +64/8*100, int64_search_buf" " <int64_search_buf>\r\n1 pattern found\\." |