From 2d338fa948bca672c696ce23da905bddbbc374b4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 6 Nov 2012 15:21:24 +0000 Subject: * 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. --- gdb/testsuite/gdb.cell/gcore.exp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'gdb/testsuite/gdb.cell') 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 -- cgit v1.1