projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR gdb/8704
[deliverable/binutils-gdb.git]
/
gdb
/
testsuite
/
gdb.base
/
corefile.exp
diff --git
a/gdb/testsuite/gdb.base/corefile.exp
b/gdb/testsuite/gdb.base/corefile.exp
index fa2f2406476cb3b01461b66ab26412a03dd91a0b..a1003e1c3829d9cc53c00a9d5193c408e98d2235 100644
(file)
--- a/
gdb/testsuite/gdb.base/corefile.exp
+++ b/
gdb/testsuite/gdb.base/corefile.exp
@@
-1,22
+1,18
@@
-# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2007
-# Free Software Foundation, Inc.
+# Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2007
, 2008,
+#
2009
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
# 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
-# the Free Software Foundation; either version
2
of the License, or
+# the Free Software Foundation; either version
3
of the License, or
# (at your option) any later version.
# (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Please email any bugs, comments, and/or additions to this file to:
-# bug-gdb@prep.ai.mit.edu
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This file was written by Fred Fish. (fnf@cygnus.com)
# This file was written by Fred Fish. (fnf@cygnus.com)
@@
-109,10
+105,7
@@
if { $found == 0 } {
# To do this, we must shutdown the currently running gdb and restart
# with the -core args. We can't use gdb_start because it looks for
# the first gdb prompt, and the message we are looking for occurs
# To do this, we must shutdown the currently running gdb and restart
# with the -core args. We can't use gdb_start because it looks for
# the first gdb prompt, and the message we are looking for occurs
-# before the first prompt. Also, we can't include GDBFLAGS because
-# if it is empty, this confuses gdb with an empty argument that it
-# grumbles about (said grumbling currently being ignored in gdb_start).
-# **FIXME**
+# before the first prompt.
#
# Another problem is that on some systems (solaris for example), there
# is apparently a limit on the length of a fully specified path to
#
# Another problem is that on some systems (solaris for example), there
# is apparently a limit on the length of a fully specified path to
@@
-121,13
+114,13
@@
if { $found == 0 } {
gdb_exit
if $verbose>1 then {
gdb_exit
if $verbose>1 then {
- send_user "Spawning $GDB
-nw
$GDBFLAGS -core=$objdir/$subdir/corefile\n"
+ send_user "Spawning $GDB
$INTERNAL_GDBFLAGS
$GDBFLAGS -core=$objdir/$subdir/corefile\n"
}
set oldtimeout $timeout
set timeout [expr "$timeout + 60"]
verbose "Timeout is now $timeout seconds" 2
}
set oldtimeout $timeout
set timeout [expr "$timeout + 60"]
verbose "Timeout is now $timeout seconds" 2
-eval "spawn $GDB
-nw
$GDBFLAGS -core=$objdir/$subdir/corefile"
+eval "spawn $GDB
$INTERNAL_GDBFLAGS
$GDBFLAGS -core=$objdir/$subdir/corefile"
expect {
-re "Couldn't find .* registers in core file.*$gdb_prompt $" {
fail "args: -core=corefile (couldn't find regs)"
expect {
-re "Couldn't find .* registers in core file.*$gdb_prompt $" {
fail "args: -core=corefile (couldn't find regs)"
@@
-154,11
+147,11
@@
expect {
close;
if $verbose>1 then {
close;
if $verbose>1 then {
- send_user "Spawning $GDB
-nw
$GDBFLAGS $binfile -core=$objdir/$subdir/corefile\n"
+ send_user "Spawning $GDB
$INTERNAL_GDBFLAGS
$GDBFLAGS $binfile -core=$objdir/$subdir/corefile\n"
}
}
-eval "spawn $GDB
-nw
$GDBFLAGS $binfile -core=$objdir/$subdir/corefile";
+eval "spawn $GDB
$INTERNAL_GDBFLAGS
$GDBFLAGS $binfile -core=$objdir/$subdir/corefile";
expect {
-re "Core was generated by .*coremaker.*\r\n\#0 .*\(\).*\r\n$gdb_prompt $" {
pass "args: execfile -core=corefile"
expect {
-re "Core was generated by .*coremaker.*\r\n\#0 .*\(\).*\r\n$gdb_prompt $" {
pass "args: execfile -core=corefile"
@@
-239,6
+232,6
@@
gdb_test_multiple "x/8bd buf2" "$test" {
# test reinit_frame_cache
gdb_load ${binfile}
# test reinit_frame_cache
gdb_load ${binfile}
-gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(\\).*" "up in corefile.exp (reinit)"
+gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(
.*
\\).*" "up in corefile.exp (reinit)"
gdb_test "core" "No core file now."
gdb_test "core" "No core file now."
This page took
0.025768 seconds
and
4
git commands to generate.