Commit Graph

593 Commits

Author SHA1 Message Date
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
Jim Kingdon
d87e77066f * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
Don't rely on the value of an auto variable before it has been
	initialized.  Use gdb_test more.
1995-03-28 17:33:10 +00:00
Jim Kingdon
b34b32e7f9 * lib/gdb.exp (default_gdb_version): A version number must start
with a digit, but other than that contains all characters up to
	the first whitespace character.
1995-03-27 16:05:08 +00:00
Jim Kingdon
d894a6e99b * gdb.base/commands.exp (breakpoint_command_test): New tests. 1995-03-26 21:43:41 +00:00
Jim Kingdon
74cb8a369b * gdb.c++/*.exp: Warn if executable does not exist. The original
reason for skipping the warning was that configure.in sometimes
	intentionally skipped building the executables but the tcl code
	had no way of knowing.  That (a) was always bogus with respect to
	error handling, (b) is no longer true (right now there is no way
	to skip C++ tests).

	* gdb.c++/demangle.exp: Remove unused binfile and srcfile variables.
1995-03-25 23:46:43 +00:00
Peter Schauer
766de354a8 * gdb.base/list.exp: Add expect patterns for output from
SunPRO compiled executables.
	* gdb.base/whatis.exp:  Allow leading `signed' for all v_signed_*
	types.
1995-03-25 09:26:16 +00:00
Jim Kingdon
62f2c80802 * gdb.base/break.exp (test_next_with_recursion): Accept any line
number (we are already testing that the correct source line text
	gets printed).

	* gdb.base/break.exp: Make one test if $usestubs.  I'm not sure
	that is what is intended, but something needed to be done to get
	sunos4 native working again.

	* gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
1995-03-25 06:01:20 +00:00
Stu Grossman
1a7f57e783 * configure.in: Move test for m68*-est-* before m68*-*-coff*.
* findvar.c:  Move default def of CANNOT_STORE_REGISTER closer to
	the beginning of the code.
	* (write_register_gen):  New routine.  Analogous to
	read_register_gen.
	* (write_register_bytes):  Another rewrite!  Make it smarter about
	not updating regs with the same value.
	* monitor.c (printf_monitor readchar):  Use stderr instead of
	stdout to output debug info.  Also cleanup readchar a little.
	* (expect):  Make sure that excessive responses are null
	terminated.
	* (monitor_open):  Check for magic number in monitor_ops struct.
	Allow multiple commands as init strings.  Also, clear all
	breakpoints.
	* (monitor_resume monitor_wait):  Send a command to dump all the
	regs for those targets which don't do so when waking up after a
	continue command.
	* (monitor_wait):  Handle excessive response output better.
	* (monitor_write_memory):  Use block fill, word, and long word
	commands (if they exist) to write memory more efficiently.
	* General cleanups to use flag bits instead of individual flag
	words in monitor_ops struct.
	* (monitor_command):  Return output from command.
	* (monitor_load_srec):  Allocate buffer only once.  Use alloca.
	Wait for load response string instead of using a timeout to start
	sending S-records.  Fix bug where value of srec_frame shrinks.  If
	hashmark is set, print `-' for retransmissions.  General cleanups.
	* (monitor_make_srec):  Get rid of S-record default type kludge.
	* monitor.h:  Use seperate struct for memory and register
	read/write commands.  Memory commands can come in byte, word,
	long, and longlong forms.
	* (monitor_ops):  Change lots of fields.  Generalize some stuff.
	Put all flags into flags word.  Allow init to be a list of commands.
	Add command for clearing all breakpoints, block fill, dumping all
	registers.
	* remote-est.c:  Rewrite to use new monitor conventions.
	* config/m68k/est.mt (TDEPFILES):  Add monitor.o.
	* config/m68k/tm-est.h:  Set NUM_REGS to 18.
	* testsuite/gdb.base/break.exp:  Lots of cleanups.  Use gdb_test
	more thoroughly.
1995-03-25 00:41:54 +00:00
Stu Grossman
8acb0655a0 New file for controlling the EST. 1995-03-25 00:37:09 +00:00
Jim Kingdon
1ef0c066d9 * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
apparently went with a (very) old xfail.
1995-03-24 23:06:46 +00:00
Kung Hsu
c86bd3d41b * gdb.base/callfuncs.exp: call runto_main instead of runto main.
runto_main is a proc in gdb.exp that will do 'step' for target use
        stubs.
        * gdb.base/exprs.exp: ditto.
        * gdb.base/interrupt.exp: ditto.
        * gdb.base/opaque.exp: ditto.
        * gdb.base/printcmds.exp: ditto.
        * gdb.base/ptype.exp: ditto.
        * gdb.base/scope.exp: ditto.
        * gdb.base/setvar.exp: ditto.
        * gdb.base/signals.exp: ditto.
        * gdb.base/twice.exp: ditto.
        * gdb.base/break.exp: no run and hit main for stubs. Change line
        numbers for breakpoints and info breakpoint.
        * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
        breakpoint().
        * gdb.base/callfuncs.c: ditto.
        * gdb.base/exprs: ditto.
        * gdb.base/interrupt.c: ditto.
        * gdb.base/opaque0.c: ditto.
        * gdb.base/printcmds.c: ditto.
        * gdb.base/ptype.c: ditto.
        * gdb.base/scope0.c: ditto.
        * gdb.base/setvar.c: ditto.
        * gdb.base/signals.c: ditto.
        * gdb.base/twice.c: ditto.
1995-03-24 22:06:00 +00:00
Kung Hsu
a302b5c219 * gdb.base/callfuncs.exp: call runto_main instead of runto main.
runto_main is a proc in gdb.exp that will do 'step' for target use
        stubs.
        * gdb.base/exprs.exp: ditto.
        * gdb.base/interrupt.exp: ditto.
        * gdb.base/opaque.exp: ditto.
        * gdb.base/printcmds.exp: ditto.
        * gdb.base/ptype.exp: ditto.
        * gdb.base/scope.exp: ditto.
        * gdb.base/setvar.exp: ditto.
        * gdb.base/signals.exp: ditto.
        * gdb.base/twice.exp: ditto.
        * gdb.c++/classes.exp: ditto.
        * gdb.c++/inherit.exp: ditto.
        * gdb.c++/templates.exp: ditto.
        * gdb.base/break.exp: no run and hit main for stubs. Change line
        numbers for breakpoints and info breakpoint.
        * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
        breakpoint().
        * gdb.base/callfuncs.c: ditto.
        * gdb.base/exprs: ditto.
        * gdb.base/interrupt.c: ditto.
        * gdb.base/opaque0.c: ditto.
        * gdb.base/printcmds.c: ditto.
        * gdb.base/ptype.c: ditto.
        * gdb.base/scope0.c: ditto.
        * gdb.base/setvar.c: ditto.
        * gdb.base/signals.c: ditto.
        * gdb.base/twice.c: ditto.
        * gdb.c++/misc.cc: ditto.
        * gdb.c++/templates.cc: ditto.
1995-03-24 22:02:15 +00:00
Jim Kingdon
8c7ab5da73 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.). 1995-03-24 20:05:28 +00:00
Jim Kingdon
ac35a0030e * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
somewhere between `read' and `main.c'.  I'm pretty sure the
	pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
	and it isn't particularly useful.
1995-03-24 16:38:06 +00:00
Jim Kingdon
6e131ad8e1 * gdb.base/scope.exp: Make test names unique. \[(\] -> \\(. 1995-03-24 14:13:35 +00:00
Jim Kingdon
91e3c24670 * gdb.base/commands.exp (infrun_breakpoint_command_test): New test. 1995-03-23 23:36:33 +00:00
Kung Hsu
40ee1402e0 * config/mt-slite: add LIBS and -nostdlib.
* config/slite-gdb.exp: add this new file to support sparclite target.
1995-03-23 02:38:39 +00:00
David Edelsohn
11c54b4f40 * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code. 1995-03-22 05:42:22 +00:00
David Edelsohn
948121f227 * gdb.base/a2-run.exp: Change argument to istarget from
"*-*-vxworks" to "*-*-vxworks*".
* gdb.base/{break.exp,default.exp,scope.exp}: Likewise.
1995-03-22 04:54:35 +00:00
David Edelsohn
e965bc396d Change argument to istarget from "*-*-vxworks" to "*-*-vxworks*". 1995-03-22 04:52:25 +00:00
Kung Hsu
1c2258cc42 * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
will not runto main but do a 'step' to step out of breakpoint().
        * config/mt-slite: add -Dusestubs.
1995-03-22 01:13:08 +00:00
Kung Hsu
0c4517b5f1 * config/mt-slite: add -Dusestubs. 1995-03-22 01:12:04 +00:00
Kung Hsu
120edc2f7c * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
will not runto main but do a 'step' to step out of breakpoint().
1995-03-22 01:11:34 +00:00
Jim Kingdon
8abe0b3d40 * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
instead of just @.
1995-03-21 22:24:00 +00:00
Jim Kingdon
0926990e46 * gdb.base/signals.exp: Add test for "handle all print".
* TODO: Remove "handle all print".  Also remove item about
	checking copyright date (I don't like the idea of a spurious FAIL
	based on when we run the tests).
1995-03-21 22:02:06 +00:00