+Mon Mar 3 11:57:43 1997 Bob Manson <manson@charmed.cygnus.com>
+
+ * gdb.base/a1-selftest.exp: Use send_gdb consistently. Don't
+ refer to gdb_spawn_id.
+
+ * config/m32r-stub.exp: Remove references to gdb_spawn_id, no
+ longer used.
+ * config/sparclet.exp: Ditto.
+ * config/sparclet-old.exp: Ditto.
+ * config/slite.exp: Ditto.
+ * config/sim.exp: Ditto.
+ * gdb.base/funcargs.exp: Ditto.
+
+ * lib/gdb.exp:Remove references to gdb_spawn_id.
+ (gdb_expect): Move to remote.exp.
+
Fri Feb 28 20:47:39 1997 Bob Manson <manson@charmed.cygnus.com>
* config/monitor.exp: Detect the "Couldn't establish connection"
gdb_reinitialize_dir $srcdir/..
for {set count 0} {$count < 20} {incr count} {
- send "list\n"
+ send_gdb "list\n"
gdb_expect {
-re ".*symarg = NULL.*$gdb_prompt $" {
set description "step over symarg initialization"
return
}
}
- send "$command\n"
+ send_gdb "$command\n"
gdb_expect {
-re ".*No such file or directory.\r\n$gdb_prompt $" {
fail "$description (no source available)"
global det_file
global decimal
global timeout
- global gdb_spawn_id
# load yourself into the debugger
# This can take a relatively long time, particularly for testing where
set timeout 600
set description "run until breakpoint at main"
- send "run -nw\n"
+ send_gdb "run -nw\n"
gdb_expect {
-re "Starting program.*Breakpoint \[0-9\]+,.*main .argc.*argv.* at .*main.c:.*$gdb_prompt $" {
pass "$description"
verbose "Timeout is now $timeout seconds" 2
# do we have a version number ?
- send "print version\n"
+ send_gdb "print version\n"
gdb_expect {
-re ".\[0-9\]+ = +0x.*\[0-9.\]+.*$gdb_prompt $" {
pass "printed version"
# on most RISC processors.
setup_xfail "alpha-*-*" "hppa*-*-*" "mips-*-*"
set description "step into xmalloc call"
- send "step\n"
+ send_gdb "step\n"
gdb_expect {
-re "xmalloc.*size=.*at.*utils.c.*$gdb_prompt $" {
pass "$description"
}
# start the "xgdb" process
- send "continue\n"
+ send_gdb "continue\n"
gdb_expect {
-re "GNU gdb \[0-9\.\]*.*
Copyright \[0-9\]* Free Software Foundation, Inc.*
}
# set xgdb prompt so we can tell which is which
- send "set prompt (xgdb) \n"
+ send_gdb "set prompt (xgdb) \n"
gdb_expect {
-re "\[(\]xgdb\[)\].*\[(\]xgdb\[)\] $" { pass "Set xgdb prompt" }
-re ".*$gdb_prompt $" { fail "Set xgdb prompt" }
# kill the xgdb process
set description "send ^C to child process"
- send "\003"
+ send_gdb "\003"
gdb_expect {
-re "Program received signal SIGINT.*$gdb_prompt $" {
pass "$description"
}
set description "send SIGINT signal to child process"
- send "signal SIGINT\n"
+ send_gdb "signal SIGINT\n"
gdb_expect {
-re "Continuing with signal SIGINT.*$gdb_prompt $" {
pass "$description"
# The testsuite failures may not be limited to just aout systems.
setup_xfail "i*86-pc-linuxaout-gnu" "hppa*-*-hpux*"
set description "backtrace through signal handler"
- send "backtrace\n"
+ send_gdb "backtrace\n"
gdb_expect {
-re "#0.*read.*in main \\(.*\\) at .*main\\.c.*$gdb_prompt $" {
pass "$description"