Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: gdb/testsuite/gdb.base/find.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.base/fileio.exp ('k') | gdb/testsuite/gdb.base/finish.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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\\."
« no previous file with comments | « gdb/testsuite/gdb.base/fileio.exp ('k') | gdb/testsuite/gdb.base/finish.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698