diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 1995-02-16 18:41:54 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 1995-02-16 18:41:54 +0000 |
commit | 65424cda041d48a03284ca76c30483d9d80c6ad5 (patch) | |
tree | 83411e7664cdf4efd96d13c5ac7733a0b64ea361 /gdb/testsuite/lib | |
parent | fe46552d89cc45d54303ffe25d71a78f76c5402b (diff) | |
download | gdb-65424cda041d48a03284ca76c30483d9d80c6ad5.zip gdb-65424cda041d48a03284ca76c30483d9d80c6ad5.tar.gz gdb-65424cda041d48a03284ca76c30483d9d80c6ad5.tar.bz2 |
* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
Removed, these values are set by lib/gdb.exp.
* lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index a3e0fac..31cdc4e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -30,7 +30,7 @@ if ![info exists GDB] then { global GDBFLAGS if ![info exists GDBFLAGS] then { - set GDBFLAGS "" + set GDBFLAGS "-nx" } # set the prompt if it doesn't exist @@ -220,16 +220,8 @@ proc gdb_test { args } { } set result -1 - set errmess "" if ![string match $command ""] { - # trap the send so any problems don't crash things - catch "send \"$command\n\"" errmess - if [string match "write.spawn_id=\[0-9\]+.:" $errmess] then { - perror "sent \"$command\" got expect error \"$errmess\"" - catch "close" - gdb_start - return -1 - } + send "$command\n" } expect { @@ -298,11 +290,11 @@ proc gdb_test { args } { # Second one is string to match gdb result to # Third one is an optional message to be printed # -# This differs from gdb_test in a few ways: (1) no catch on the send (there is -# no reason for this to be different from gdb_test but I think the lack of -# catch is correct), (2) it tests for the " =" (that could easily be moved -# to the callers, (3) the pattern must be followed by \r\n and the prompt, -# not other garbage as in gdb_test (this feature seems kind of worthwhile). +# This differs from gdb_test in a few ways: (1) handling of empty +# sendthis (I suspect test_print_accept callers never use this), (2) +# it tests for the " =" (that could easily be moved to the callers, +# (3) the pattern must be followed by \r\n and the prompt, not other +# garbage as in gdb_test (this feature seems kind of worthwhile). proc test_print_accept { args } { global prompt |