diff options
author | Pedro Alves <palves@redhat.com> | 2011-09-08 14:56:34 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-09-08 14:56:34 +0000 |
commit | a391a2f6df2553b9d2e0cf4bc8c58e85d73137ae (patch) | |
tree | 01993cb0c399757ca76dc58f90520629c8a3ccfa /gdb/testsuite/gdb.base/valgrind-db-attach.exp | |
parent | gdb/ (diff) | |
download | binutils-gdb-a391a2f6df2553b9d2e0cf4bc8c58e85d73137ae.tar.gz binutils-gdb-a391a2f6df2553b9d2e0cf4bc8c58e85d73137ae.tar.bz2 binutils-gdb-a391a2f6df2553b9d2e0cf4bc8c58e85d73137ae.zip |
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.exp | 3 |
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 48003e51cbd..98cc07a7d12 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" |