mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
when invoking GDB, suppresses any windowing interface.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jan 5 17:34:03 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
|
* lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
|
||||||
|
when invoking GDB, suppresses any windowing interface.
|
||||||
|
|
||||||
Mon Jan 2 17:40:21 1995 Stan Shebs <shebs@andros.cygnus.com>
|
Mon Jan 2 17:40:21 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
* config/sim-gdb: New file, simulator testing support.
|
* config/sim-gdb: New file, simulator testing support.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
# Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -73,7 +73,7 @@ if ![file exists $objdir/$subdir/corefile] then {
|
|||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
if $verbose>1 then {
|
if $verbose>1 then {
|
||||||
send_user "Spawning $GDB $GDBFLAGS -core=$objdir/$subdir/corefile\n"
|
send_user "Spawning $GDB -nw $GDBFLAGS -core=$objdir/$subdir/corefile\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
# The RS/6000 gdb doesn't know how to extract the file name and
|
# The RS/6000 gdb doesn't know how to extract the file name and
|
||||||
@ -83,7 +83,7 @@ if $verbose>1 then {
|
|||||||
setup_xfail "rs6000-*-*"
|
setup_xfail "rs6000-*-*"
|
||||||
set oldtimeout $timeout
|
set oldtimeout $timeout
|
||||||
set timeout [expr "$timeout + 60"]
|
set timeout [expr "$timeout + 60"]
|
||||||
spawn $GDB $GDBFLAGS -core=$objdir/$subdir/corefile
|
eval "spawn $GDB -nw $GDBFLAGS -core=$objdir/$subdir/corefile"
|
||||||
expect {
|
expect {
|
||||||
-re "Core was generated by .*coremaker.*\r
|
-re "Core was generated by .*coremaker.*\r
|
||||||
\#0 .*\(\).*\r
|
\#0 .*\(\).*\r
|
||||||
@ -100,13 +100,13 @@ $prompt $" { pass "args: -core=corefile" }
|
|||||||
|
|
||||||
gdb_exit
|
gdb_exit
|
||||||
if $verbose>1 then {
|
if $verbose>1 then {
|
||||||
send_user "Spawning $GDB $GDBFLAGS $objdir/$subdir/$binfile -core=$objdir/$subdir/corefile\n"
|
send_user "Spawning $GDB -nw $GDBFLAGS $objdir/$subdir/$binfile -core=$objdir/$subdir/corefile\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
setup_xfail "rs6000-*-*"
|
setup_xfail "rs6000-*-*"
|
||||||
# This fails in p3, but not in devo.
|
# This fails in p3, but not in devo.
|
||||||
spawn $GDB $GDBFLAGS $objdir/$subdir/$binfile -core=$objdir/$subdir/corefile
|
spawn $GDB -nw $GDBFLAGS $objdir/$subdir/$binfile -core=$objdir/$subdir/corefile
|
||||||
expect {
|
expect {
|
||||||
-re "Core was generated by .*coremaker.*\r
|
-re "Core was generated by .*coremaker.*\r
|
||||||
\#0 .*\(\).*\r
|
\#0 .*\(\).*\r
|
||||||
@ -142,9 +142,4 @@ gdb_load $objdir/$subdir/$binfile
|
|||||||
setup_xfail "*-*-*"
|
setup_xfail "*-*-*"
|
||||||
gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(\\)"
|
gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(\\)"
|
||||||
|
|
||||||
# another good test of roughly the same thing would be to select a frame,
|
|
||||||
# print a local variable in that frame, then do the "file" and
|
|
||||||
# (without selecting the frame again explicitly) print the variable
|
|
||||||
# again.
|
|
||||||
|
|
||||||
gdb_test "core" "No core file now."
|
gdb_test "core" "No core file now."
|
||||||
|
Reference in New Issue
Block a user