summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/valgrind-db-attach.exp
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-09-08 14:56:34 +0000
committerPedro Alves <palves@redhat.com>2011-09-08 14:56:34 +0000
commita391a2f6df2553b9d2e0cf4bc8c58e85d73137ae (patch)
tree01993cb0c399757ca76dc58f90520629c8a3ccfa /gdb/testsuite/gdb.base/valgrind-db-attach.exp
parent85bc8cb7855e8ae9ba6e207ed557f849479c41c0 (diff)
2011-09-08 Pedro Alves <pedro@codesourcery.com>
* gdb.base/annota1.exp, gdb.base/annota3.exp: Extract the inferior's pid and look for a core dump named core.$pid. Use `remote_file' commands on the host instead of hand coding shell commands on the build. * gdb.base/valgrind-db-attach.exp: Kill the program before finishing the test.
Diffstat (limited to 'gdb/testsuite/gdb.base/valgrind-db-attach.exp')
-rw-r--r--gdb/testsuite/gdb.base/valgrind-db-attach.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/valgrind-db-attach.exp b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
index 48003e51cb..98cc07a7d1 100644
--- a/gdb/testsuite/gdb.base/valgrind-db-attach.exp
+++ b/gdb/testsuite/gdb.base/valgrind-db-attach.exp
@@ -83,3 +83,6 @@ gdb_test_no_output "set height 0"
gdb_test_no_output "set width 0"
gdb_test "bt" "in main \\(.*\\) at .*${srcfile}:$double_free"
+
+# Explicitly kill the program so it doesn't dump core when we quit->detach.
+gdb_test "kill" "" "kill program" "Kill the program being debugged.*y or n. $" "y"