This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] testsuite: valgrind-db-attach.exp: Fix for valgrind-3.7.0
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 30 Jan 2012 07:49:55 +0100
- Subject: [obv] testsuite: valgrind-db-attach.exp: Fix for valgrind-3.7.0
Hi,
With valgrind-3.6.1-6.fc16.x86_64 -> valgrind-3.7.0-1.fc17.x86_64 this
regression has appeared, apparently the "Invalid free() ..." line now contains
also "realloc()".
Checked in.
Thanks,
Jan
==13230== Memcheck, a memory error detector^M
==13230== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.^M
==13230== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info^M
PASS: gdb.base/valgrind-db-attach.exp: valgrind started
==13230== Command: /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/valgrind-db-attach^M
==13230== ^M
==13230== Invalid free() / delete / delete[] / realloc()^M
==13230== at 0x4C279AE: free (vg_replace_malloc.c:427)^M
==13230== by 0x400607: main (valgrind-db-attach.c:28)^M
==13230== Address 0x54df040 is 0 bytes inside a block of size 1 free'd^M
==13230== at 0x4C279AE: free (vg_replace_malloc.c:427)^M
==13230== by 0x4005FB: main (valgrind-db-attach.c:27)^M
==13230== ^M
==13230== ^M
==13230== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- n^M
==13230== ^M
==13230== HEAP SUMMARY:^M
==13230== in use at exit: 0 bytes in 0 blocks^M
==13230== total heap usage: 1 allocs, 2 frees, 1 bytes allocated^M
==13230== ^M
==13230== All heap blocks were freed -- no leaks are possible^M
==13230== ^M
==13230== For counts of detected and suppressed errors, rerun with: -v^M
==13230== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 2 from 2)^M
ERROR: Process no longer exists
UNRESOLVED: gdb.base/valgrind-db-attach.exp: attach to debugger
http://sourceware.org/ml/gdb-cvs/2012-01/msg00248.html
--- src/gdb/testsuite/ChangeLog 2012/01/27 14:01:23 1.3051
+++ src/gdb/testsuite/ChangeLog 2012/01/30 06:48:08 1.3052
@@ -1,3 +1,8 @@
+2012-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.base/valgrind-db-attach.exp (attach to debugger): Fix
+ compatibility with valgrind-3.7.0.
+
2012-01-27 Pedro Alves <palves@redhat.com>
* gdb.base/watchpoint.exp (no_hw): New global.
--- src/gdb/testsuite/gdb.base/valgrind-db-attach.exp 2012/01/04 08:17:46 1.10
+++ src/gdb/testsuite/gdb.base/valgrind-db-attach.exp 2012/01/30 06:48:08 1.11
@@ -72,7 +72,7 @@
set test "attach to debugger"
gdb_test_multiple "" $test {
- -re "Invalid free\\(\\) / delete / delete\\\[\\\]\r\n.*: main \\(${srcfile}:$double_free\\)\r\n.*---- Attach to debugger \\? --- \[^\r\n\]* ---- " {
+ -re "Invalid free\\(\\).*: main \\(${srcfile}:$double_free\\)\r\n.*---- Attach to debugger \\? --- \[^\r\n\]* ---- " {
send_gdb "y\r"
}
-re "---- Attach to debugger \\? --- \[^\r\n\]* ---- " {