| Index: gdb/testsuite/gdb.arch/pa-nullify.exp
|
| diff --git a/gdb/testsuite/gdb.arch/pa-nullify.exp b/gdb/testsuite/gdb.arch/pa-nullify.exp
|
| index e3223d98000080e5a6d3883b6cbf96ad7fd29442..0910c54d963fc2b2ce5cf05953fbef0969624e31 100644
|
| --- a/gdb/testsuite/gdb.arch/pa-nullify.exp
|
| +++ b/gdb/testsuite/gdb.arch/pa-nullify.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2004, 2007-2012 Free Software Foundation, Inc.
|
| +# Copyright 2004-2013 Free Software Foundation, Inc.
|
| #
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -107,26 +107,8 @@ gdb_test "stepi" "in main.*" "stepi to main"
|
|
|
| proc gen_core { test } {
|
| global gcorefile
|
| - global gdb_prompt
|
| - set gcore_works 0
|
| - set escapedfilename [string_to_regexp $gcorefile]
|
| -
|
| - # gcore is not yet implemented for HPUX
|
| - setup_xfail hppa*-*-hpux*
|
| -
|
| - gdb_test_multiple "gcore $gcorefile" "$test: gcore" {
|
| - -re "Saved corefile ${escapedfilename}\[\r\n\]+$gdb_prompt $" {
|
| - pass "$test: gcore"
|
| - set gcore_works 1
|
| - }
|
| - -re "Undefined command.*$gdb_prompt $" {
|
| - fail "$test: gcore (undefined command)"
|
| - }
|
| - -re "Can't create a corefile\[\r\n\]+$gdb_prompt $" {
|
| - fail "$test: gcore (can't create corefile)"
|
| - }
|
| - }
|
|
|
| + set gcore_works [gdb_gcore_cmd $gcorefile "$test: gcore"]
|
| return $gcore_works
|
| }
|
|
|
|
|