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.threads | |
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.threads')
-rw-r--r-- | gdb/testsuite/gdb.threads/gcore-thread.exp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.threads/gcore-thread.exp b/gdb/testsuite/gdb.threads/gcore-thread.exp index 37eadd3..97189b9 100644 --- a/gdb/testsuite/gdb.threads/gcore-thread.exp +++ b/gdb/testsuite/gdb.threads/gcore-thread.exp @@ -91,20 +91,8 @@ delete_breakpoints gdb_breakpoint "thread2" gdb_test "continue" "Continuing.*Breakpoint.* thread2 .*" "thread 2 is running" -set escapedfilename [string_to_regexp $corefile] # Drop corefile -set core_supported 0 -gdb_test_multiple "gcore $corefile" "save a corefile" \ -{ - -re "Saved corefile ${escapedfilename}\[\r\n\]+$gdb_prompt $" { - pass "save a corefile" - global core_supported - set core_supported 1 - } - -re "Can't create a corefile\[\r\n\]+$gdb_prompt $" { - unsupported "save a corefile" - } -} +set core_supported [gdb_gcore_cmd "$corefile" "save a corefile"] if {!$core_supported} { return -1 |