diff options
author | Tom Tromey <tromey@redhat.com> | 2012-11-06 15:21:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-11-06 15:21:24 +0000 |
commit | 2d338fa948bca672c696ce23da905bddbbc374b4 (patch) | |
tree | 4c68d87ba638c046c890a6557c436f051f995edc /gdb/testsuite/gdb.cell | |
parent | 234fa27ce099ad5ef763209f8818fc2bf499f26c (diff) | |
download | gdb-2d338fa948bca672c696ce23da905bddbbc374b4.zip gdb-2d338fa948bca672c696ce23da905bddbbc374b4.tar.gz gdb-2d338fa948bca672c696ce23da905bddbbc374b4.tar.bz2 |
* gdb.threads/gcore-thread.exp: Use gdb_gcore_cmd.
* gdb.python/py-strfns.exp (test_strfns_core_file): Use
gdb_gcore_cmd.
* gdb.cell/gcore.exp: Use gdb_gcore_cmd.
* gdb.base/gcore.exp: Use gdb_gcore_cmd.
* gdb.base/gcore-relro.exp: Use gdb_gcore_cmd.
* gdb.base/gcore-buffer-overflow.exp: Use gdb_gcore_cmd.
* gdb.base/auxv.exp: Use gdb_gcore_cmd.
* gdb.arch/vsx-regs.exp: Use gdb_gcore_cmd.
* gdb.arch/system-gcore.exp: Use gdb_gcore_cmd.
* gdb.arch/pa-nullify.exp (test_core_bt): Use gdb_gcore_cmd.
* lib/gdb.exp (gdb_gcore_cmd): New proc.
Diffstat (limited to 'gdb/testsuite/gdb.cell')
-rw-r--r-- | gdb/testsuite/gdb.cell/gcore.exp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.cell/gcore.exp b/gdb/testsuite/gdb.cell/gcore.exp index c05bc4a..c6c8d8c 100644 --- a/gdb/testsuite/gdb.cell/gcore.exp +++ b/gdb/testsuite/gdb.cell/gcore.exp @@ -69,21 +69,11 @@ delete_breakpoints gdb_test "continue" ".*Aborted.*" -set escapedfilename [string_to_regexp ${objdir}/${subdir}/gcore.test] - -gdb_test_multiple "gcore ${objdir}/${subdir}/gcore.test" \ - "save a corefile" \ -{ - -re "Saved corefile ${escapedfilename}\[\r\n\]+$gdb_prompt $" { - pass "save a corefile" - } - -re "Can't create a corefile\[\r\n\]+$gdb_prompt $" { - unsupported "save a corefile" +if {![gdb_gcore_cmd "${objdir}/${subdir}/gcore.test" \ + "save a corefile"]} { return -1 - } } - # Now restart gdb and load the corefile. gdb_exit gdb_start |