Commit graph

617 commits

Author SHA1 Message Date
Jeff Law
238436912f * gdb.base/watchpoint.exp: Handle more cases of gdb echoing more
than one cr-lf	after each command.
1995-07-25 05:12:43 +00:00
Peter Schauer
fe3c360b62 * configure.in: Reinstate setting of stabsdirs variable, fix
typo in setting up configdirs for native builds.

	* gdb.base/return.exp:  Fix typo in return double test.
	* gdb.base/return.c (tmp2, tmp3):  Made global to inhibit the
	compiler from optimizing them away.
1995-07-24 06:35:58 +00:00
Jeff Law
2d86d216f2 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
sequences to be echo'd by gdb when using gdb_test.
	* gdb.chill/chexp.exp: Likewise.
	* gdb.fortran/exprs.exp: Likewise
1995-07-21 17:42:14 +00:00
Jeff Law
f1c9e4462a * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
after the inferior gdb has started.
'cuz lynx may take a couple minutes to start the inferior gdb...

        * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
        after each command.
        * gdb.base/funcargs.exp: Likewise.
        * gdb.base/gdbvars.exp: Likewise.
        * gdb.base/interrupt.exp: Likewise.
        * gdb.base/list.exp: Likewise.
        * gdb.base/watchpoint.exp: Likewise.
        * gdb.c++/demangle.exp: Likewise.
        * gdb.c++/inherit.exp: Likewise.
        * gdb.chill/chexp.exp: Likewise.
        * gdb.fortran/exprs.exp: Likewise.
Just in case we can't get a version of expect that sets the tty modes
right on lynx to avoid this problem.
1995-07-20 20:33:39 +00:00
Jeff Law
9ce4ab8471 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
test if we can't handle IO to/from the inferior.
1995-07-20 19:21:28 +00:00
Jeff Law
35e7ac7f54 * gdb.c++/misc.exp: Always check for a program already being
started after sending a "run" command to gdb.
1995-07-20 19:03:51 +00:00
Jeff Law
b26202930b * gdb.base/twice.exp: Start with a fresh gdb. 1995-07-20 18:52:10 +00:00
Jeff Law
780f976310 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
only depend on gdb's expression code, not the chill runtime.
1995-07-20 18:50:31 +00:00
Jeff Law
f20dfd566a * gdb.base/return.c: Put return values into variables so we
can have gdb print them rather than depending on the program
	to print them.
	* gdb.base/return.exp: Corresponding changes.
1995-07-20 18:43:53 +00:00
Jeff Law
46e8d4117a * lib/gdb.exp: Provide default value for noinferiorio.
* gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
	the inferior.
1995-07-20 18:27:55 +00:00
Jeff Law
8c72d4fcf6 * gdb.base/break.exp: Always check for a program already being
started after sending a "run" command to gdb.
	(text_next_with_recursion): Don't check the output from the
	program's printf statement.  Instead just make sure the program
	exited.
1995-07-20 17:50:05 +00:00
Jeff Law
f4c40a88f3 * gdb.base/commands.exp: Protect tests which need arguments with
$noargs conditionals.
1995-07-20 17:41:18 +00:00
Peter Schauer
4bbec291b2 * gdb.base/printcmds.exp: Adjust expect patterns for addresses
of structure member arrays to match gdb/valops.c:value_addr change.
1995-07-20 05:54:31 +00:00
Jeff Law
31ce436075 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
cases.
1995-07-17 16:14:48 +00:00
Fred Fish
6942380809 * configure.in (configdirs): Remove gdb.chill from default list
of subdirs and then add it back in only if doing a native build.
	The current chill compiler does not yet work in any cross build.
1995-07-12 22:47:39 +00:00
Fred Fish
b49f423b73 * Revert all signal changes from Jul 6.
* gdb.base/{sigall.c signals.c}:  Define away signal() and alarm()
	for sh-hms targets, allowing these tests to link, with no other
	changes.  Testing is suppressed by setting "nosignals" in site.exp.
1995-07-12 17:27:40 +00:00
Fred Fish
3ba76bd840 * configure.in (signaldirs): Define and add to configdirs for all
targets except some specific ones that are known to not support signals.
	Also clean up formatting.
	* gdb.base/Makefile.in (EXECUTABLES):  Remove sigall and signals.
	(signals, sigall):  Remove rules to build.
	* gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
	Moved to new gdb.signals directory.
	* gdb.signals: New test directory.
	* gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
	signals.c signals.exp}:  New or moved files.
1995-07-07 04:11:42 +00:00
Jeff Law
c9f7cd7b97 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist. 1995-06-25 18:56:52 +00:00
Fred Fish
b9f12fd911 * gdb.base/return.exp: Xfail `return double' test failure
on at least Solaris 2.3 and handle future/past versions on
	a case by case basis as appropriate.  Also update message
	to include i*86 failures.
1995-06-22 00:51:47 +00:00
Per Bothner
a055dacb68 * chillvars.exp, string.exp: New tests for LOWER/UPPER/LENGTH 1995-06-14 20:05:59 +00:00
Per Bothner
7e965616ff * chillvars.ch (xptr): Declare new variable.
* chillvars.exp (test_ptr):  New function to test EXPR->MODENAME.
This is to test PR chill/6932.
1995-06-08 00:52:06 +00:00
Jim Kingdon
eea578da54 * lib/gdb.exp: Fix comment which erroneously identified
gdb_file_cmd as gdb_load (the 19 May change was in fact to
	gdb_file_cmd not gdb_load).
	* config/unix-gdb.exp (gdb_load): Add "upvar timeout timeout".
1995-05-24 15:12:13 +00:00
Jim Kingdon
0835edd63a * gdb.base/setvar.exp: Make test names consistent between pass and
fail cases.  Use gdb_test more.
1995-05-24 14:16:12 +00:00
Jim Kingdon
fe5d4b85ae * gdb.stabs/xcoff.sed: Change N_LSYM to C_DECL not C_LSYM.
* gdb.stabs/weird.exp: Remove xfail for xcoff bitching about lack
	of a text section.
1995-05-13 20:52:01 +00:00
Stu Grossman
7c71315ce5 * config/monitor.exp (gdb_target_monitor): Fix loop interator so
that loop eventually terminates.  Fix Connection refused logic so
	that testsuite will expire nicely.
1995-05-11 22:13:46 +00:00
Stu Grossman
f031fc2c4b * config/monitor.exp (gdb_target_monitor): Fix loop interator so
that loop eventually terminates.
1995-05-11 22:04:20 +00:00
Stu Grossman
7e7b4a0209 * config/cpu32bug.exp, config/est.exp, config/hppro.exp,
config/rom68k.exp:  New tcl glue for the appropriate monitors.
	These all just end up calling monitor.exp.
	* config/monitor.exp (gdb_target_monitor):  Handle `Connection
	refused' by retrying.  Cleanup some timeout issues.
	* (gdb_load):  Reduce timeout.  Cleanup some timeout issues.
	* lib/gdb.exp (gdb_test gdb_test_exact):  Upvar timeout so that
	callers don't have to set/restore global timeout variable.

	* The following set of changes centralizes management of the global
	timeout	variable.  This way, it can be set in one target dependent
	place instead of dozens of places scattered throughout the test suite.
	If you need to lengthen a timeout, then you should either set timeout
	in one of the config/{target}.exp files, or multiply it by a factor.
	Setting it to an absolute value is always going to lose for some
	targets.
	* gdb.base/a1-selftest.exp (test_with_self):  Only use local timeout.
	* gdb.base/callfuncs.exp (do_function_calls):  Don't set timeout.
	* gdb.base/funcargs.exp:  Don't set timeout.
	* gdb.base/list.exp (test_forward_search):  Only use local timeout.
	* gdb.base/printcmds.exp (test_print_string_constants
	test_print_array_constants):  Don't set timeout.
	* gdb.base/ptype.exp:  Don't set timeout.
	* gdb.base/recurse.exp:  Don't set timeout.
	* gdb.base/return.exp:  Don't set timeout.
	* gdb.base/watchpoint.exp:  Don't set timeout.
	* gdb.c++/classes.exp (do_tests):  Don't set timeout.
	* gdb.c++/virtfunc.exp (test_virtual_calls):  Don't set timeout.
1995-05-11 01:03:50 +00:00
Torbjorn Granlund
5c36767ef4 Make clean targets work also when SUBDIRS is empty. 1995-05-10 23:05:52 +00:00
Jim Kingdon
7da20c1133 * gdb.base/scope.exp: Make test names unique. Use gdb_test. Make
each test pass or fail.
1995-04-26 14:39:10 +00:00
Jim Kingdon
b074fd2f93 * gdb.base/opaque.exp: Remove xfails for aix; print a warning if
xlc not gcc.
1995-04-24 04:37:45 +00:00
Stu Grossman
1e2bb16402 * cpu32bug.exp est.exp rom68k.exp: Delete. Unify into monitor.exp. 1995-04-21 22:45:59 +00:00
Stu Grossman
43967a761c * config/est.exp: Fix copyright and comments. Remove dead code.
Use targetname, serialport and baud variables instead of fixed
	constants.
	* config/rom68k.exp:  Fix copyright and comments.  Remove dead code.
	* config/cpu32bug.exp:  New file to support cpu32bug monitors.
1995-04-20 00:46:15 +00:00
Jim Kingdon
4c5eefabb1 * gdb.base/watchpoint.exp: Don't run
test_watchpoint_triggered_in_syscall for sunos.
1995-04-19 20:50:56 +00:00
Jim Kingdon
9b86fdcaef * gdb.base/a1-selftest.exp: Add alpha xfail. 1995-04-15 21:29:14 +00:00
David H. Webster
1b186bc331 Added the following files to "Things to Keep":
est.exp
      rom68k.exp
      slite-gdb.exp
1995-04-10 21:16:26 +00:00
Jim Kingdon
4dc75a28f8 * gdb.base/recurse.exp: Fix comment.
* TODO: Remove item about printing variables in nodebug.exp.  Add
	item about enabling tests which are only run on some targets.

	* gdb.base/watchpoint.exp: Various cleanups (make each test pass or
	fail, make test names unique, use new gdb_test convention
	regarding pattern, use gdb_test more, etc.).
1995-04-09 21:05:37 +00:00
Jim Kingdon
06ce5be9c9 * gdb.base/bitfields.exp: Various cleanups (make each test pass or
fail, make test names unique, etc.).
1995-04-09 17:10:57 +00:00
Peter Schauer
6b61e21dbb * gdb.base/nodebug.c: Change return type of top and middle to
short.
	* gdb.base/nodebug.exp:  Remove xfails for ecoff systems, they
	are fixed by the recent mdebugread.c changes. Allow `short ()'
	as type for top and middle.
1995-04-08 10:00:31 +00:00
Jim Kingdon
84ccb88752 * gdb.base/break.exp: Remove commented out if $usestubs {}. As
nearly as I can tell, the whole thing was an accident in Stu's
	change of 24 Mar 1995 (logged in ../ChangeLog), in which he meant
	to replace a send/expect pair with gdb_test, but ended up only
	adding the gdb_test.  My change of 24 Mar 1995 and Kung's change
	of 30 Mar 1995 took care of it, but left this vestigial comment
	which I am now nuking.
1995-04-06 15:59:34 +00:00
Peter Schauer
4507de2d18 * gdb.base/list.exp: Adjust some alternate expect patterns to
match recent list0.c change. Add alternate expect pattern for
	output from `list default lines around main' for optimizing
	compilers.
1995-04-02 15:22:04 +00:00
Jim Kingdon
24b2699965 * lib/gdb.exp: If nosignals is not set, set it to 0. 1995-04-01 15:31:24 +00:00
Kung Hsu
241b4dff18 * config/slite-gdb.exp: Responds to load symbol table prompt.
* gdb.base/break.exp: Adjust line number, fix rerun.
        * gdb.base/langs0.c: Add #ifdef usestubs.
1995-04-01 00:17:52 +00:00
Kung Hsu
4d1edc2e85 * gdb.base/break.exp: Adjust line number, fix rerun.
* gdb.base/langs0.c: Add #ifdef usestubs.
1995-04-01 00:17:12 +00:00
Kung Hsu
4729c3e2ca * config/slite-gdb.exp: Responds to load symbol table prompt. 1995-04-01 00:16:39 +00:00
Kung Hsu
a04abeccfc * gdb.base/list.exp: Adjust line contents after adding new lines in
list0.c. Also fix a syntax error.
1995-03-31 02:09:59 +00:00
Kung Hsu
6413ee42db * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
* gdb.base/break.exp: ditto.
        * gdb.base/list.exp: ditto.
        * gdb.base/bitfields.c: Add #ifdef usestubs in main().
        * gdb.base/run.c: ditto.
        * gdb.base/list0.c: ditto.
        * gdb.base/funcargs.c: ditto.
1995-03-31 00:43:47 +00:00
Kung Hsu
065924f7de * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs. 1995-03-31 00:43:12 +00:00
Stu Grossman
f66a790207 Move testsuite entries from gdb's ChangeLog to here. 1995-03-30 18:03:04 +00:00
Kung Hsu
3c23a941c3 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1. 1995-03-29 20:31:26 +00:00
Per Bothner
09dde10060 * pr-6632.ch, pr-6632-grt.ch, pr-6632.exp, Makefile.in: New test case. 1995-03-29 01:15:04 +00:00