Commit Graph

1046 Commits

Author SHA1 Message Date
Bob Manson 60450e30e9 * gdb.base/default.exp: Don't set match_max.
* gdb.base/help.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/signals.exp: Ditto.

	* config/monitor.exp(gdb_load): If gdb,use_standard_load is
	set, use remote_ld to download the testcase instead of
	the GDB loader.
1997-03-07 22:00:02 +00:00
Bob Manson fa5864d5f7 Added and updated copyright notices to testsuite expect
scripts.
1997-03-06 22:32:25 +00:00
Bob Manson a9b2f48deb More .Sanitize. 1997-03-06 07:29:40 +00:00
Bob Manson ab670f8e53 * config/vr5000.exp: New file. 1997-03-06 07:12:21 +00:00
Bob Manson 2f693513f5 * config/monitor.exp(gdb_target_monitor): Add pattern for
"Ending remote" to detect errors in connecting.

	* gdb.base/setshow.exp: Add .* within auto language test.
1997-03-06 05:30:54 +00:00
Bob Manson ae7872effe * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
target feature.
1997-03-06 01:51:44 +00:00
Jim Wilson 86d013f70a Correct sparclet sanitize errors. 1997-03-04 02:28:23 +00:00
Bob Manson d1e47b8e06 * 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.
1997-03-04 00:49:59 +00:00
Jim Wilson a3c5b9a4a1 Correct d10v sanitization errors. 1997-03-03 00:35:40 +00:00
Bob Manson 847e232af6 * config/monitor.exp: Detect the "Couldn't establish connection"
message from GDB.

one of many, presumably.
1997-03-01 04:50:01 +00:00
Jeff Law 894b9f921d FIxing Sanitize problems found by Marilyn. 1997-02-27 17:05:25 +00:00
Jeff Law e7311f29e5 Fixing Sanitize errors found by Marilyn. 1997-02-27 17:03:43 +00:00
Bob Manson 3c0af8a010 * lib/gdb.exp(gdb_test): Generate a FAIL message when
send_gdb fails.
1997-02-24 21:24:26 +00:00
Bob Manson 40ac16240a * config/vr4300.exp: New file.
* gdb.*/*.exp: Call gdb_expect instead of expect.

	* lib/gdb.exp(gdb_expect): New function.
1997-02-24 05:43:35 +00:00
Bob Manson cea0f6fc02 Added vxworks.exp. 1997-02-22 00:17:12 +00:00
Bob Manson c309781f7e * lib/gdb.exp(gdb_init): New function. 1997-02-21 00:22:50 +00:00
Bob Manson eb659148ad * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
for each individual variable set.
1997-02-21 00:21:34 +00:00
Bob Manson 38ee47dc4a * gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
name.
1997-02-20 23:45:23 +00:00
Bob Manson 42c254c939 * gdb.base/help.exp: Fix the syntax of a few gdb_test calls.
hmmm, automagic conversion left -re things.
1997-02-20 22:52:38 +00:00
Bob Manson dadace266a * gdb.base/scope.exp: Use gdb_test.
* gdb.base/ptype.exp: Don't call "gdb_exit; gdb_start" if we're
	aborting; the testsuite driver will do that for us (see
	gdb_finish). Also, use gdb_test in a few more places.
1997-02-20 22:13:52 +00:00
Stan Shebs 3fe495606c * gdb.base/help.exp: Fix syntax of "help info all-registers" test. 1997-02-20 21:38:08 +00:00
Jeff Law 66a5e0e94c * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
and "add_tests" are not at the same address.
Fixes gdb disassembler testsuite failure on sunos4 hosted toolchain.
1997-02-20 17:36:12 +00:00
Jeff Law d83c8ac193 * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
* gdb.disasm/mn10200.exp (misc_tests): Remove bogus line accidentally
        left in.  No longer expect them to fail.
1997-02-13 23:33:33 +00:00
Jeff Law f8cc5c612e * gdb.stabs/*.mt; Deleted, no longer used.
* gdb.stabs/configure.in: Remove references to target makefile
        frags.
        * gdb.stabs/configure: Rebuilt.
Removing more crud.
1997-02-13 23:20:09 +00:00
Jeff Law f43e619c5b * gdb.disasm/*.mt: Deleted, no longer used.
* gdb.disasm/configure.in: Remove references to target makefile
        frags.  Use "sh3.s" as the unique filename for this directory.
        * gdb.disasm/configure: Rebuilt.
Cleaning up unused crud.

        * gdb.disasm/mn10200.s: New test file for mn10200 disassembler.
        * gdb.disasm/mn10200.exp: Run mn10200 disassembler tests.
        * gdb.disasm/Makefile.in: Remove "mn10200" when cleaning.
mn10200 disassembler testsuite.
1997-02-13 23:16:26 +00:00
Jeff Law 6fb47af036 Revert last structs.exp change -- I found the problem. 1997-02-12 02:06:34 +00:00
Bob Manson 76abb184ef * config/udi.exp: Use mondfe,name instead of remote_host.
remote_host is a bad naming choice.
1997-02-12 01:00:49 +00:00
Jeff Law 380c32d50d * gdb.base/structs.exp: Expect some failures from the mn10200 port.
I don't want to deal with this for the alpha!
1997-02-12 00:45:46 +00:00
Jeff Law 3d6ab69f35 * gdb.base/watchpoint.exp: Don't expect a failure when calling
a function with a watchpoint enabled on the mn10200.
1997-02-11 19:54:45 +00:00
Jeff Law 9e40b4f147 * gdb.stabs/weird.exp: Don't quit if "weird.s" doesn't exist
before trying to create it!
1997-02-11 18:24:21 +00:00
Bob Manson dba77cd79b * config/vx.exp: Use hostname instead of netport.
* config/vxworks.exp: New file.

	* gdb.base/a2-run.exp: Change vxworks cases to use gdb_spawn_id.

	* config/monitor.exp(gdb_target_monitor): Look for a prompt from
 	gdb before assuming everything worked. Send a ^C if a timeout
	occurs.

Random fixes for vxworks and d10v.
1997-02-11 06:38:22 +00:00
Bob Manson 6a590607fc * lib/gdb.exp(gdb_test): Check the result of send_gdb. Use
$gdb_spawn_id directly.

Checking for errors actually helps. *sigh*
1997-02-11 00:49:17 +00:00
Jeff Law 66e7ce0add * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
redundant) test.
1997-02-10 22:24:53 +00:00
Jeff Law 797b43f662 * gdb.base/recurse.exp: Relax final value test for 'b' so that
it doesn't lose for 16bit integer systems.
1997-02-10 18:30:03 +00:00
Jeff Law 28ec59b4cf * gdb.fortran/types.exp: If the target doesn't support "double"
data types, then expect "real" types to only be 4 bytes.
1997-02-07 16:40:39 +00:00
Jeff Law 2f54eeea76 * gdb.c++/virtfunc.exp: Expect failure for virtual function
call tests if the target doesn't support inferior function calls.
1997-02-07 16:34:55 +00:00
Jeff Law ad9f858a45 * gdb.base/printcmds.exp: Allow minor deviation in FP values
in printf tests.
1997-02-07 16:32:42 +00:00
Jeff Law 6382554a6c * gdb.base/help.exp: Disable "help set", "help show", and
"help support".  Simplify regexp for "help stack".
They're causing timeouts, overruns, etc again.
1997-02-06 22:47:57 +00:00
Jeff Law fed72befa9 * gdb.base/default.exp: Set match_max to 5000 and the timeout
to 60 seconds.  Temporarily set match_max to 15000 around the
        "info copying" test.
Fixes timeout/overflow problems for hpux10.20 hosted toolchains.
1997-02-06 21:43:53 +00:00
Jeff Law dada510572 * gdb.base/nodebug.exp: Don't try to do an inferior function
call if the target doesn't support them.
        * gdb.base/printcmds.exp: Likewise.
        * gdb.base/setvar.exp: Likewise.
        * gdb.base/structs.exp: Likewise.
        * gdb.c++/templates.exp: Likewise.
        * gdb.base/ptype.exp: Likewise.  Remove UDI specific stuff.

        * gdb.base/recurse.exp: Enable for the mn10200.

        * configure.in: Do configure gdb.stabs directory for *-*-elf
        targets.
        * configure: Rebuilt.
1997-02-06 20:58:55 +00:00
Jeff Law 0979e7bd28 * gdb.base/break.exp: Check for gdb,noresults before testing
exit status and/or results from the target.
        * gdb.base/watchpoint.exp, gdb.base/langs.exp: Likewise.
        * lib/gdb.exp: Remove old (now bogus) initialization of
        noinferior, noargs, noresults and nosignals.
More cleanups for new testing framework.
1997-02-06 19:50:33 +00:00
Bob Manson b6f32a5bb9 * config/sh.exp: New file.
* config/slite.exp: Try to connect multiple times to the board
	before rebooting. Only send a "monitor run" if need_monitor_run
	is set.

	* gdb.base/break.exp: Don't do the "stub continue" test if
	the target has gdb_stub set.

	* gdb.base/callfuncs.exp: Increase the timeout.

	* gdb.base/interrupt.exp: Don't even try to compile the testcase
	if the target has gdb,noinferiorio set.

	* gdb.base/list.exp: Increase match_max to 10000 characters.

	* gdb.base/sigall.exp: Check for gdb,nosignals on the target.

	* gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
	target.

	* lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.

Misc fixes for sparclite and SH.
1997-02-05 06:25:42 +00:00
Bob Manson 5d05bf0d50 * config/sh.exp: New file.
* config/slite.exp: Try to connect multiple times to the board
	before rebooting. Only send a "monitor run" if need_monitor_run
	is set.

	* gdb.base/break.exp: Don't do the "stub continue" test if
	the target has gdb_stub set.

	* gdb.base/callfuncs.exp: Increase the timeout.

	* gdb.base/interrupt.exp: Don't even try to compile the testcase
	if the target has gdb,noinferiorio set.

	* gdb.base/list.exp: Increase match_max to 10000 characters.

	* gdb.base/sigall.exp: Check for gdb,nosignals on the target.

	* gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
	target.

	* lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.

Misc fixes for sparclite and SH.
1997-02-05 05:59:01 +00:00
Bob Manson 94b25813b1 * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
trying to delete the copy of gdb. Catch the file delete so we
 	don't die if the delete fails; also, the file should be copied to
 	the host, not to the build.

Fixes problems when gdb isn't built with debugging.
1997-02-03 20:36:39 +00:00
Bob Manson 0d8017baad * lib/gdb.exp(gdb_test): Surround the result pattern with
parenthesis in case it contains multiple regexps separated
	with |.

Fixes last nights native failures.

	* gdb.base/watchpoint.exp: Use gdb_test.
	* gdb.base/default.exp: Ditto.

More improvements.
1997-02-03 03:35:42 +00:00
Bob Manson 85fbaa747f * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
* gdb.base/scope.exp: Use gdb_test.
	* gdb.c++/classes.exp: Ditto.
	* gdb.c++/inherit.exp: Ditto.

More random cleanups. Still lots to go, however.
1997-02-02 07:59:25 +00:00
Bob Manson 05a2139023 * gdb.base/crossload.exp: Don't use execute_anywhere, use
remote_exec instead.
        * gdb.base/corefile.exp: Don't be ridiculous.
        * gdb.base/*.c: Add missing stub invocations.

Fixes failures on HP-UX.
1997-01-31 21:21:31 +00:00
Bob Manson 0e865b3950 Miscellaneous fixes for config/slite.exp. 1997-01-31 04:38:01 +00:00
Bob Manson ef87597cfa Oops. goes with previous checkin. 1997-01-31 01:04:09 +00:00
Bob Manson 1a7dadf9cf * lib/gdb.exp: Fix runto.
* gdb.base/signals.exp: Check for a gdb,nosignals feature of
	the target.

	* gdb.base/watchpoint.exp: Fix regexp.

Random miscellaneous fixes. Gotta dig up all these global variables someday..
1997-01-31 01:03:51 +00:00
Bob Manson 83b1cc25d1 * lib/gdb.exp(default_gdb_exit): Add a catch to the
close and wait commands, as the descriptor may now be
	invalid. Always call "remote_close host".

Makes sure things get cleaned up if gdb dies in the middle of a test.
1997-01-31 00:51:45 +00:00
Bob Manson 787f622077 Major revision to testsuites for cross-testing and DOS testing support. 1997-01-29 09:40:31 +00:00
Michael Snyder 50f04a5a37 Tue Nov 26 18:29:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/callfuncs.exp: Turn on function call tests for h8300.
        * gdb.base/default.exp:   ditto.
        * gdb.base/nodebug.exp:   ditto.
        * gdb.base/printcmds.exp: ditto.
        * gdb.base/ptype.exp:     ditto.
        * gdb.base/setvar.exp:    ditto.
        * gdb.base/structs.exp:   ditto.
        * gdb.base/setshow.c:     Guard against uninitialized values of argc.
1996-11-27 19:13:21 +00:00
Ian Lance Taylor d45358c6a7 * configure, */configure: Rebuild with autoconf 2.12. 1996-11-26 22:27:00 +00:00
Fred Fish b016565b0c * gdb.base/a1-selftest.exp: Change x86 linux setup_xfails to
use new i*86-pc-linux*-gnu quads.
	* gdb.base/corefile.exp: Ditto.
	* gdb.base/signals.exp: Ditto.
	* gdb.base/sigall.exp: Ditto.
	* gdb.base/interrupt.exp: Ditto.

	* gdb.base/signals.exp (signal_tests_1): Remove setup_xfail
	"i*86-*-linux" for "signal SIGUSR1".  Now works, at least with
	RedHat 4.0.

	* gdb.threads/pthreads.c (_MIT_POSIX_THREADS): Define if target is
 	linux.  This allows the test case to at least compile on latest
 	linux, but still not run due to missing the threads runtime library.
1996-11-23 21:33:08 +00:00
Fred Fish e8ee39bcfb * misc.exp: Change x86 linux setup_xfails to use new
i*86-pc-linux*-gnu quads.
	* tuples.exp: Ditto.
	* tests2.exp: Ditto.
	* pr-5016.exp: Ditto.

	* tuples.exp: Add i*86-pc-linux-gnu setup_fail to existing
	xfails for 'set var vs1 := [ "bar", 42, m_ps[ a ] ]',
	'set var $i := m_s1["foo", 44, m_ps[a ]]', and
	'set var vs2 := [ 10+3, m_s1[ "foo" , 42, m_ps[ b ]]]'.
1996-11-23 21:28:30 +00:00
Peter Schauer 49c7ee7be3 * gdb.base/a1-selftest.exp (do_steps_and_nexts): Reinitialize source
directory to search gdb directory. Accept and step over conditional
	stack alignment code. Consume $prompt in failure cases.
	Reset timeout to $oldtimeout instead of some arbitrary value.
	* gdb.base/nodebug.exp:  Limit backtrace to 10 frames to avoid
	timeout problems with infinite stack backtraces.
	* gdb.base/ptype.exp (ptype struct link, union tu_link):
	Accept function parameters for linkfunc member.
1996-11-22 18:16:24 +00:00
Fred Fish af4a96bc68 * lib/gdb.exp (CFLAGS): Remove, unreferenced.
(CXXFLAGS): Remove, unreferenced.
	(B_OPTIONS): Add for -B options and add code to initialize with previous
	-B options and also add -B option to pick up cross compiled runtime.
	(TARGET_INCLUDES): Add for -I options and add code to initialize when
	doing cross compiles.
	(target_alias): Declare global.
	(xgcc): Set variable to full path of gcc in build tree.  Use findfile
	to verify that gcc exists in build tree, and if so set CC to that
	gcc and to use B_OPTIONS and TARGET_INCLUDES.
1996-11-21 17:29:43 +00:00
Jeff Law d5e51b2558 * gdb.base/funcargs.c: Use cast rather than "UL" suffix to
force argument to an unsigned long type.
From Peter Schauer.
1996-11-11 21:12:28 +00:00
Fred Fish 77814fa882 * gdb.c++/inherit.exp (test_ptype_si): Fix tagless struct ptype
tests and anonymous union print/ptype tests.
	* gdb.base/list.exp (test_forward-search): Increase timeout by
	5 minutes for the "search extremely long line" case.
	* lib/gdb.exp (gdb_test): Document that the third arg to gdb_test is
	completely optional and that the pass/fail messages use the command as
	the message if that third arg is a null string.
	(gdb_test_exact):  Arrange that a null string pattern means match a
	null string output rather than any output, which might include random
 	errors.
	* gdb.base/mips_pro.exp: Add "mips*-sgi-irix4*" xfail for
	backtrace test.
	* gdb.c++/demangle.exp: Add a "*-*-*" xfail for test that was
	always failing and failure is now exposed by gdb.exp changes.
1996-11-11 18:33:14 +00:00
Fred Fish 63a0ebfbe9 * callch.exp: Add mips*-sgi-irix* xfail for
"call king(a, otto[[10, 15], [20, 25]])".
	* pr-8742.exp: Add mips*-sgi-irix* xfails for
	"pass int powerset tuple"
	"pass set powerset tuple"
	"pass modeless int powerset tuple" and
	"pass modeless set powerset tuple".
	* tuples.exp: Add sparc-*-solaris* and sparc-*-sunos*
	xfails for several "set var" commands that are failing.
	Convert most of the set commands into gdb_test_exact
	commands.
1996-11-11 18:32:39 +00:00
Fred Fish cb87e99f09 * gdb.c++/inherit.exp (test_ptype_vi): Log some passes that
weren't being noted.
1996-11-09 18:16:11 +00:00
Peter Schauer 134a3f780d * gdb.base/corefile.exp: Consume $prompt in mmap fail cases.
* gdb.stabs/weird.exp:  Remove v_comb xfails.
1996-11-09 09:22:23 +00:00
Michael Snyder 7d03ae5e13 Tue Nov 5 10:44:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/[bitfields.exp crossload.exp funcargs.exp interrupt.exp
                    list.exp scope.exp watchpoint.exp]
          Make all timeout error msgs explicitly say "(timeout)".

        * config/monitor.exp: Increase download timeout to 1000 seconds.
        * config/m32r.exp: Increase timeout to 120 seconds.
1996-11-05 19:17:15 +00:00
Jeff Law 83d6b9df83 Fix problems introduced in last change (two "Do-first" lines). 1996-11-04 20:49:59 +00:00
Fred Fish 1c9e66903c * gdb.c++/classes.exp: Modify to handle current gcc C++ member ordering
and accept older ordering as obsolescent gcc or gdb.
	* gdb.c++/templates.exp: Ditto.
	* gdb.c++/virtfunc.exp: Ditto.
1996-11-03 23:50:29 +00:00
Fred Fish 7a6e913309 * gdb.base/coremaker.c: Add code to mmap some data so we
can check that it ends up in the core file.
	* gdb.base/corefile.exp: Add test to read mmapped data
	from core file.
1996-11-01 20:00:26 +00:00
Michael Snyder 7e69daa771 Filter changes for m32r target. 1996-10-31 02:31:56 +00:00
Michael Snyder f8931413c9 Wed Oct 30 18:19:16 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* config/m32r.exp: New file.
1996-10-31 02:30:32 +00:00
Michael Snyder dece5fa0c3 PR 8511, keep new test cases 1996-10-21 21:35:29 +00:00
Michael Snyder 79654d0b75 * gdb.base/setshow.exp: New file, tests show and set.
* gdb.base/setshow.c:   New file, tests show and set.
	* gdb.base/help.exp: Add test for help set|show annotate.
	* gdb.base/default.exp: Add test for set|show annotate.
PR 8511
1996-10-21 21:28:48 +00:00
Stu Grossman 6420594bbf * testsuite/gdb.base/break.exp: Make backtrace from factorial
errors unique.
	* testsuite/gdb.base/nodebug.exp:  Whack out all -g options
	explicitly.

	* v850-tdep.c (v850_init_extra_frame_info v850_frame_chain):  Fix
	sign bugs with scanning prologues.  Get a little smarter about
	calculating the length of uninteresting instructions.
1996-10-17 02:12:24 +00:00
Stu Grossman 4ed1437f34 * config/sim-gdb.exp (gdb_target_sim): Remove setting of height
and width commands.  This is done elsewhere.
	* (gdb_start):  Don't call gdb_start_sim here.  That's already
	done in gdb_load.  This fixes lots of failures in default.exp.
1996-10-15 23:50:54 +00:00
Fred Fish 90a0f3aa64 * Makefile.in (clean mostlyclean): Also remove chill *.grt files.
(distclean maintainer-clean realclean): No need to remove files
 	twice.  Nuke the duplicates.
	* gdb.base/Makefile.in (EXECUTABLES): Add "structs".
	* gdb.threads/Makefile.in (distclean maintainer-clean realclean):
	Remove config.h along with other config files.
1996-10-12 00:10:33 +00:00
Fred Fish 37d1429623 * expstruct.exp (objfile2): Set and use, like other chill tests.
* pr-4975.exp: Ditto.
	* pr-5646.exp: Ditto.
	* pr-8134.exp: Ditto.
1996-10-11 23:54:12 +00:00
Fred Fish f646eef47b * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
"p func1 ()" and note that rests of tests are skipped.
	* gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
 	setup_xfails for "print func2::coremaker_local".
	Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
	* gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
	affected by the previous run test.
	* gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
	"print array () ubyte (foo)" and "print/x array () byte (\$i)"
	* gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
	"pass int powerset tuple" and "pass modeless int powerset tuple".
	* gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
	"real write 4" and "real write 8".
	* gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
 	setup_xfails for "print vs1 after tuple assign 2",
	"print \$i after tuple assign 2", and
	"print vs2 after tuple assign 2".
	* lib/gdb.exp (gdb_test): When a gdb aborts, print a more
	meaningful error message and return -1 so the caller can
	suppress further tests and avoid a cascade of errors.
1996-10-01 03:29:45 +00:00
Fred Fish 567417775d * gdb.base/a1-selftest.exp: Tweak tests to account for new
format for printing version.
	* gdb.base/default.exp: Ditto.
	* gdb.base/interrupt.exp: Fix problem with cascade of
	errors if child process dies while calling a function.
1996-09-27 17:50:47 +00:00
Fred Fish c03e48e87f * Makefile.in (just-check): Add path to sibling expect dir
to environment variable specified by RPATH_ENVVAR.
PR 10489 (forgot one path)
1996-09-14 01:40:32 +00:00
Fred Fish 20ece5977c * Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
(just-check): Add shared library paths for libstdc++, tk,
	tcl, bfd, and opcodes to the environment variable specified
	in RPATH_ENVVAR.
	* configure.in: Add support to recognize --enable-shared flag
	and generate correct value for RPATH_ENVVAR.
	* configure: Regenerated with autoconf.
1996-09-14 00:04:09 +00:00
Wilfried Moser 7cdda733d5 * gch1280.exp: Enhance test case. 1996-09-05 08:55:32 +00:00
Wilfried Moser 9811b59602 * gch1272.{ch,exp}, gch1280.{ch,exp}, pr-9946.{ch,exp}:
New test cases.
1996-09-04 14:34:15 +00:00
Fred Fish 6f5fbad328 * gdb.threads/pthreads.c (PTHREAD_CREATE_ARG2,
PTHREAD_CREATE_NULL_ARG2): Accomodate old pthreads implementations.
	* gdb.threads/pthreads.exp: Try linking with both -lpthread (Solaris)
 	and -lpthreads (everybody else).
	(test_startup): Fail gracefully if threads are not supported.
	* gdb.base/nodebug.exp: Add setup_xfail hppa*-*-hpux* for
	"p/c array_index("abcdef",2)" when not gcc compiled.
	* gdb.base/corefile.exp: Add setup_xfail hppa*-*-hpux* for
	"print func2::coremaker_local" when not gcc compiled.
	* gdb.base/opaque.exp: Remove setup_xfail hppa*-*-hpux* for
	"ptype on opaque struct tagname (statically)",
	"ptype on opaque struct tagname (dynamically) 1", and
	"ptype on opaque struct tagname (dynamically) 2"
	for not compiled with gcc.
	* gdb.base/mips_pro.exp: Only do setup_xfail hppa*-*-* for
	backtrace when compiled with gcc.
	* lib/gdb.exp (runto_main): Return result of "runto main" rather
	than always return success.
1996-08-19 17:59:46 +00:00
Fred Fish c6cffcf8b4 Resurrect code to increase timeout in "handle all print" cases in signals.exp. 1996-08-13 04:21:10 +00:00
Fred Fish d9538961cc * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
encapsulate all the steps/nexts done during self test, starting
	at main, and makes them less sensitive to optimization issues.
	Add "hppa*-*-hpux*" to setup_xfail for "backtrace through
	signal handler" test.
	* gdb.threads/pthreads.exp: Only run this for native configs.
	* gdb.base/signals.exp (test_handle_all_print): Remove code that
	increased timeouts, it now makes no difference.
	* gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*"
	setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8"
	tests.
	gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail
	for "runto test_calls(void)" test.
1996-08-12 22:38:30 +00:00
Fred Fish 10e3e33941 * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
and don't expect address info in breakpoint confirmations.
1996-08-11 21:05:39 +00:00
Fred Fish ab5aa3dc5d * gdb.base/list.exp (test_forward_search): Increase timeout
temporarily by 60 seconds for searching extremely long line,
 	and then reset to old value when done.  Increase expect input
	buffer to 10000.
1996-08-11 19:16:55 +00:00
Jeff Law bd3bab1eed * gdb.base/structs.exp: New tests for passing and returning
structures.
        * gdb.base/structs.c: C source for test.
Sanitized away until we've got a valid copyright assignment from
Michael Snyder.

Only tested on the PA.  I assume other ports will needs some xfails
and other possible testsuite tweakage.
1996-08-09 16:38:19 +00:00
Fred Fish 74945486ee * gdb.base/list.exp (test_forward_search): Fix to handle very
long source line without overflowing expect's input buffer.
1996-08-07 22:38:24 +00:00
Tom Tromey 7b2e7e8962 * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
"buffer_full".

        * config/nind-gdb.exp (gdb_start): Use "full_buffer", not
        "buffer_full".

        * config/mips-gdb.exp (gdb_start): Use "full_buffer", not
        "buffer_full".

        * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
        "buffer_full".
1996-08-07 19:17:09 +00:00
Fred Fish e0effbaea2 * configure.in (configdirs): Add gdb.threads.
* configure: Regenerated with autoconf.
	* gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
	* gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
	* gdb.threads/configure: New, generated with autoconf.
1996-08-07 18:14:56 +00:00
Fred Fish e7dc69ffc0 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n. 1996-08-06 19:20:25 +00:00
Fred Fish 5fac6a39dc * gdb.base/signals.exp (test_handle_all_print): Test separately for
each signal's status in the output of "handle all print".
	* lib/gdb.exp (gdb_test): Document that the pattern must NOT include
	the \r\n sequence that immediately precedes the gdb prompt.
	* gdb.base/a1-selftest.exp: Save original timeout and restore
	after test.
1996-08-06 01:18:18 +00:00
Jeff Law 61e842adf8 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
symbol.
1996-08-04 16:21:16 +00:00
Brendan Kehoe e95a45af92 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'. 1996-08-03 00:38:50 +00:00
Fred Fish 5fc34cfdfb * gdb.base/signals.exp (test_handle_all_print): Temporarily increase
timeout by 60 seconds.
1996-06-28 05:28:59 +00:00
Fred Fish c137ee9799 * config/unix-gdb.exp: Increase default timeout from 30 to 60 sec.
* config/netware.exp (gdb_run_cmd): Restore old timeout before doing
	error return.
1996-06-28 03:35:05 +00:00
Fred Fish 302fcffb7e * lib/gdb.exp (default_gdb_start): When reporting a timeout during
gdb initialization, also report how long dejagnu waited.  Restore
	old timeout before doing error return.  Temporarily increase timeout
 	by 3 minutes to allow for slow startups over heavy NFS use.
1996-06-28 00:30:45 +00:00
Fred Fish a26fa899a0 * lib/gdb.exp: Report timeout value for verbosity level 2.
* config/gdbserver.exp: Ditto.
	* config/hppro.exp: Ditto.
	* config/mips-gdb.exp: Ditto.
	* config/monitor.exp: Ditto.
	* config/netware.exp: Ditto.
	* config/sim-gdb.exp: Ditto.
	* config/slite-gdb.exp: Ditto.
	* config/udi-gdb.exp: Ditto.
	* config/unix-gdb.exp: Ditto.
	* config/vx-gdb.exp: Ditto.
	* gdb.base/a1-selftest.exp: Ditto.
	* gdb.base/a2-run.exp: Ditto.
	* gdb.base/break.exp: Ditto.
	* gdb.base/corefile.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/recurse.exp: Ditto.
	* gdb.base/scope.exp: Ditto.
	* gdb.base/signals.exp: Ditto.
1996-06-26 04:38:38 +00:00
Jason Molenda f09c6a96e6 * gdb.threads/Makefile.in (docdir): Removed. 1996-06-25 14:18:52 +00:00
Jason Molenda 6c890568ff * configure.in (AC_PREREQ): autoconf 2.5 or higher.
* gdb.{base,c++,chill,disasm,stabs}/Makefile.in (VPATH): set to
        @srcdir@.
        * gdb.{base,c++,chill,disasm,stabs}/configure.in (AC_PREREQ):
        autoconf 2.5 or higher.
        * gdb.{base,c++,chill,disasm,stabs}/configure: Rebuilt.
1996-06-25 12:54:35 +00:00
Fred Fish 570a390281 * tests1.exp (test_modes): Remove *-*-* setup_sfail for
"print unnumbered set range mode" and
	"print numbered set range mode".
1996-06-23 17:24:20 +00:00
Jeff Law 2a24f7ff01 Keep abug.exp 1996-05-31 17:11:51 +00:00
Jeff Law 551f3fbb29 * gdb.base/callfuncs.exp: Finish last change -- make sure the
prototype information ends up in the compiler info file.
1996-05-30 17:38:32 +00:00
Fred Fish 04d5f3d6ec * gdb.base/callfuncs.exp: Remove the compiler info file prior to
attempting to regenerate it.  Eliminate use of a temporary file
	and just generate the info file directly.  Source it immediately,
	for consistency of use.
	* gdb.base/corefile.exp: Ditto
	* gdb.base/exprs.exp: Ditto.
	* gdb.base/funcargs.exp: Ditto.
	* gdb.base/langs.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/mips_pro.exp: Ditto.
	* gdb.base/nodebug.exp: Ditto.
	* gdb.base/opaque.exp: Ditto.
	* gdb.base/ptype.exp: Ditto.
	* gdb.base/scope.exp: Ditto.
	* gdb.base/setvar.exp: Ditto.
	* gdb.base/signals.exp: Ditto.
	* gdb.base/whatis.exp: Ditto.
	* gdb.c++/templates.exp: Ditto.
	* gdb.c++/virtfunc.exp: Ditto.
	* gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
 	whether or not to add -lstdc++ to the compile command line args.
1996-05-23 20:38:54 +00:00
Jeff Law cca075fbef * gdb.base/break.exp: Ignore compiler warnings when compiling
break.c.
        * gdb.base/callfuncs.exp: Don't run these tests on the h8300.
        * gdb.base/default.exp: Add h8300 xfails.  Handle messages
        from remote-sim.
        * gdb.base/exprs.exp: Add h8300 xfails.
        * gdb.base/funcargs.exp: Likewise.
        * gdb.base/nodebug.exp: Likewise.
        * gdb.base/printcmds.exp: Likewise.
        * gdb.base/ptype.exp: Likewise.
        * gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300.  Add
        h8300 xfails.
        * gdb.base/return.exp: Handle float/double precision problems
        on the h8300.
        * gdb.base/funcargs.c: Explicitly make last constant argument to
        call_after_alloca_subr an unsigned long type.
        * gdb.base/return.c: Include stdio.h.
Testsuite work for the H8/300 -gstabs.  HMSE.
1996-05-15 15:04:33 +00:00
Rob Savoye 4db6401f27 * config/abug.exp: New file for the older Motorola Bug monitor
that runs on the mvme13x series VME boards.
	* config/monitor.exp: Use the new config array for target settings
	if they exist.
1996-05-08 04:04:25 +00:00
Stan Shebs ec6239dcc2 * sim-gdb.exp: Make the SH simulator allocate less space when
it is targeted.
1996-05-03 23:05:32 +00:00
Jeff Law d124785e82 * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
test.
1996-05-02 18:28:53 +00:00
Wilfried Moser d7d354cb6c * tests1.{ch,exp}: Tets case modified and enhanced. 1996-04-17 08:24:36 +00:00
Wilfried Moser cc1583dac2 * gch981.{ch,exp}, gch1041.{ch,exp}: New test cases. 1996-04-09 08:19:58 +00:00
Fred Fish 06f4dc0882 Note that failures under linux for backtrace through signal handler
are not consistent among different systems, or even the same system.
1996-03-28 00:27:33 +00:00
Fred Fish fda58904db Revert use of autoconf 2.9, it was causing too many regressions. 1996-03-25 04:09:45 +00:00
Fred Fish a319972ce6 * configure, testsuite/configure, testsuite/gdb.base/configure,
testsuite/gdb.c++/configure, testsuite/gdb.chill/configure,
	testsuite/gdb.disasm/configure, testsuite/gdb.stabs/configure:
	Regenerated with autoconf 2.9.
1996-03-24 00:19:59 +00:00
Fred Fish d2309db18c Revert part of change from last night. 1996-03-20 15:48:34 +00:00
Fred Fish 8ce1c210f1 * gdb.base/corefile.exp: Always regenerate the core file, since
we always regenerate the coremaker program.  Detect special case
	where registers cannot be read from core file.  Change setup_xfail
	for "print func2:coremaker_local" and "backtrace in corefile.exp"
	to fail for all i*86 targets.
1996-03-20 07:52:01 +00:00
Fred Fish a9424716ea From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
* gdb.base/funcargs.c: Patch for SPARCworks alloca compatibility
	* gdb.c++/templates.exp: Only match on basename of file since
	some formats like xcoff don't encode directory information.
	* gdb.stabs/weird.exp: Use the right sed script for powerpc
	and rs6000 AIX xcoff targets.
	* configure.in: Add stabsdirs to configdirs for powerpc-*-aix*.
	* configure: Regenerate.
	* gdb.base/Makefile.in (clean): Remove generated file twice-tmp.c
	here, rather than in distclean.
1996-03-20 02:58:28 +00:00
Fred Fish 9b4df2e5af * gdb.base/mips_pro.exp: Create mips_pro.ci to get gcc_compiled
defined, and use it to compile the test case with -O2.  The
	native compilation still uses no optimization.
	* gdb.base/mips_pro.c: Remove inline assembly code since
	it is compiled PIC by default, which results in assembler
	warnings that make the testsuite think the compilation
	was unsuccessful.
1996-03-17 21:48:40 +00:00
Fred Fish 6991e9579a * gdb.c++/misc.exp: Add note to message for
"print s.a for foo struct" that this is a known gcc 2.7.2
	and earlier bug.
1996-03-16 23:23:58 +00:00
Fred Fish 1b5b958124 * gdb.base/break.exp: Fix pattern for matching "Delete all
breakpoints (y or n) ".  Add "mips-dec-ultrix*" to
	setup_xfail for deleting all breakpoints test.  Fix various
	timeout messages to include "(timeout)".
	* gdb.base/callfuncs.exp: Add "i*86-*-sysv4*" to setup_xfail
	for "p t_float_values2(3.14159,float_val2)".
	* gdb.base/funcargs.exp: Remove "mips-sgi-irix4*" setup_xfail
	for "continue to call2g" when gcc compiled.
	* gdb.base/langs.exp: Remove "i*86-*-sysv4*" setup_xfail for
	"up to foo in langs.exp", "show language at foo in langs.exp",
	"show language at cppsub_ in langs.exp", "up to fsub in langs.exp",
	and "show language at fsub in langs.exp".
	* gdb.base/list.exp: Remove "*-*-sysv4*" setup_xfail for
	"list line 1 in include file", "list message for lines past EOF",
	"list function in include file", "list list0.h:foo", and
	"list filename:function; nonexistant function".
	* gdb.base/ptype.exp: Change "i*86-*-sysv4*" setup_xfail for
	"whatis unnamed typedef'd enum (compiler bug in IBM's xlc)"
	and "ptype t_char_array" to be for native cc only.
1996-03-16 19:51:15 +00:00
Fred Fish a1cdb7172c * gdb.base/corefile.exp: Remove "alpha-dec-osf2*" native compiled
setup_xfail for "print coremaker_bss", "print coremaker_ro",
 	"print func2::coremaker_local", and "backtrace in corefile.exp".
1996-03-16 00:47:44 +00:00
Fred Fish 38b92747fe * gdb.base/signals.exp: Remove "alpha-*-osf2*" setup_xfail for
"bt in signals.exp".  This problem only appears when running
	the testsuite, and then only intermittently.
1996-03-13 22:56:22 +00:00
Stan Shebs 063c5ee025 * gdb.base/return.exp (return_tests): Differentiate between
two tests of continuing.
1996-03-12 23:02:25 +00:00
Wilfried Moser 8513db3731 * powerset.exp: Add test. 1996-03-06 08:30:40 +00:00
Wilfried Moser 6bf53072e9 * gch922.{ch,exp}, powerset.{ch,exp}: New test cases.
* builtins.exp, chillvars.exp, misc.exp, tests1.exp: Updated
        due to new format of nonprintable characters (control sequence
        instead of C'xx').
1996-03-06 07:44:46 +00:00
Stan Shebs 45061b1e59 * */Makefile.in (maintainer-clean): Remove config.log.
* gdb.base/Makefile.in (EXECUTABLES): Replace twice with twice-tmp.
	* gdb.c++/Makefile.in (PROGS): Add inherit.
	(clean): Remove *.ci.
1996-03-05 22:42:17 +00:00
Per Bothner 6cec39dc99 * string.ch, string.exp: Add tests (from Cygnus PR chill/9078). 1996-03-05 08:21:49 +00:00
Per Bothner 845fed18b8 * pr-9095.ch, pr-9095.exp: New test case. 1996-03-05 08:12:53 +00:00
Fred Fish d16ee16d58 Back out change to signals.exp (test_handle_all_print): Add setup_xfail for "alpha-dec-osf2*"
This problem appears to be random, possibly a dejagnu problem.
1996-02-21 23:23:38 +00:00
Fred Fish 8a25c34c7a * gdb.base/signals.exp: Change setup_xfail for "alpha-*-osf2"
to "alpha-*-osf2*" and add comment.
	* gdb.base/a1-selftest.exp (test_with_self): Remove "alpha-dec-osf2*"
 	setup_xfail for "step over execarg initialization" and
 	"step over corearg initialization".
	* gdb.base/callfuncs.exp (do_function_calls): Restore setup_xfail
	for "hppa*-*-*", "sparc-*-*", "mips*-*-*", and "alpha-dec-osf2*".
	* gdb.base/corefile.exp: Add "alpha-dec-osf2*" setup_xfail when not
 	gcc compiled for "print coremaker_bss", "print coremaker_ro",
	"print func2::coremaker_local", and "backtrace in corefile.exp".
	* gdb.base/signals.exp: Build and source signals.ci.
	(test_handle_all_print): Add setup_xfail for "alpha-dec-osf2*".
	Change "alpha-dec-osf2*" setup_xfail for "bt in signals.exp"
	to be for gcc only.
	* lib/gdb.exp: Move verbose statements outside conditionals.
1996-02-21 03:40:05 +00:00
Fred Fish 8b495156a4 * gdb.c++/misc.cc: Add test code from Mike Stump.
* gdb.c++/misc.exp: Add test to print s.a, for Mike Stump.
1996-02-20 23:51:27 +00:00
Fred Fish a7e254eca3 * config/unix-gdb.exp: Remove extraneous newlines from end of file. 1996-02-16 22:55:42 +00:00
Fred Fish 5c7516eee0 * config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
from dejagnu's apparent default of 10 seconds, which gives random results
	when running the tests over NFS on moderately loaded systems.
	* lib/gdb.exp (gdb_run_cmd): Add "(timeout)" in timeout case.
1996-02-15 19:00:34 +00:00
Fred Fish baa833b9e2 * gdb.base/a2-run.exp: Replace $binfile with $testfile in test result reports. 1996-02-13 00:42:29 +00:00
Fred Fish 950251de8f * configure.in (CY_AC_PATH_TCLH): Remove.
* configure: Regenerate.
1996-02-09 22:55:37 +00:00
Fred Fish eec5305701 * Makefile.in (clean): Add missing '{'. 1996-02-09 15:23:30 +00:00
Fred Fish 2f4e239c36 * gdb.c++/Makefile.in (clean): Add missing '{'. 1996-02-09 15:23:05 +00:00
Per Bothner bb4119f19d * pr-8894.exp, pr-8894.ch, pr-8894-grt.ch: New test case. 1996-02-07 05:54:17 +00:00
Jeff Law 4771fe157f * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
Load libgloss.exp.
1996-02-02 17:20:54 +00:00
Jeff Law a827a33f93 * gdb.disasm/hppa.exp: Compile directly into an executable, use
the executable, not the .o to run the tests from.

Remove a useless step and avoid loading a .o into a target board
(loads into address zero which causes all kinds of problems).
1996-02-02 03:22:45 +00:00
Jeff Law 1be1bc3835 * gdb.base/break.exp: Don't test for program exit or exit status
if $noresults if nonzero.
        * gdb.base/langs.exp: Likewise.
        * gdb.base/watchpoint.exp: Likewise.
For proelf targets were we can't even tell if a process exits.
1996-01-31 21:44:24 +00:00
Jeff Law 9b2ceeb159 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
* gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
        trying to compile the testcase.
1996-01-31 21:24:38 +00:00
Fred Fish 9476906f63 Enclose gdbtk stuff inside gdb sanitization lines. Regenerate configure. 1996-01-30 03:10:17 +00:00
Wilfried Moser d59558827e * builtins.ch, builtins.exp: Enhance test case.
* extstruct.ch, extstruct-grt.ch, extstruct.exp: New test case.
1996-01-29 08:09:04 +00:00
David Edelsohn eb47fd9d71 * gdb.base/interrupt.exp (p func1): xfail sparc64-*-solaris2. 1996-01-25 07:44:10 +00:00
Per Bothner ef11a52944 Note gdb.c++/classes.exp update. 1996-01-24 07:07:13 +00:00
Tom Tromey 4e327047ce Updated for Tcl 7.5a2 and Tk 4.1a2 1996-01-24 06:27:59 +00:00
Per Bothner 084ae26cf5 * enum.ch, enum.exp: New test case (covers PRs 8869 and 8870). 1996-01-24 00:59:02 +00:00
Per Bothner a4ff5d3332 Note gdb.fortran/exprs.exp fix. 1996-01-24 00:30:56 +00:00
Jeff Law 546bfba851 * gdb.base/corefile.exp: Recognize "not found" as failure
when trying to determine if a core file was generated.
        If no core file was generate the first time, try again without
        the ulimit -c to work around braindamaged shells.

Gets corefile.exp running again on the PA.
1996-01-23 22:44:10 +00:00
Jim Wilson 50f8134fa9 Remove sh3e sanitization. Keep sh3e files. 1996-01-16 20:16:41 +00:00
Jim Wilson 48573afd23 Remove SH3e sanitization. 1996-01-16 20:13:27 +00:00
Fred Fish c4e13a2783 * gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
[] tests with "test" and enclose string in quotes.
	* gdb.stabs/configure: Rebuild
1996-01-15 18:34:28 +00:00
Fred Fish 8dd0158ff0 * gdb.stabs/configure (alpha-*-*,mips-*-*): Add missing
"test" and enclose string in quotes.
1996-01-15 17:35:05 +00:00
Per Bothner f22d1530fc * Makefile.in (PROGS): Removed.
(clean mostlyclean):  Remove *.exe rather than ${PROGS}.
1996-01-12 01:37:28 +00:00
Per Bothner 3c69d5fe52 * pr-8742.ch, pr-8742.exp: New test case. 1996-01-12 01:35:30 +00:00
Wilfried Moser 0025f7a0a7 * misc.ch, misc.exp: Enhance test case. 1996-01-09 12:48:44 +00:00
Fred Fish 4b2dd77883 * gdb.base/corefile.exp: When generating a core, discard any
error messages about ulimit not found and the "core dumped"
	message from the shell that runs the coredumper.
1996-01-04 21:12:12 +00:00
Jeff Law 978be38ec2 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
I hate skipping tests, but these seem pretty broken on the PA...
1996-01-03 08:33:24 +00:00
Jeff Law 0069d9a02a * gdb.stabs/weird.exp: Use ${target_triplet} to determine
which sed script to run.  Expect failure for v_comb test
        on PA targets too.
Should get weird-stabs tests running on supported targets again.

I'd also expect most (if not all) stabs targets to fail v_comb...
1996-01-03 08:28:42 +00:00
Fred Fish 5a8a03d881 * tests2.exp: Setup_xfail "i*86-*-linux" and
"mips-sgi-irix*" for "real write 4" and "real write 8".
	Conditionalize both tests for system specific value
	of "infinity" string.
1995-12-31 00:03:54 +00:00
Fred Fish af6d4d16ea Forgot a few things... 1995-12-30 22:35:57 +00:00
Fred Fish b887e9ad36 * builtins.exp (test_size): Alpha seems to have long builtins.
* tests1.exp: Setup xfail "*-*-*" for "ptype r2".
	* tests2.exp: Add check to skip chill tests.
1995-12-30 22:31:31 +00:00
Fred Fish 89e6c70d53 * lib/gdb.exp (default_gdb_start): Fix typo.
* gdb.base/corefile.exp: Allow "Core was generated by ..."
	messages to not include the full program name that caused
	the core dump since some systems (such as solaris) apparently
	truncate this path to about 80 characters.
	When generating a core file first try increasing the core file
	size limit to unlimited since some systems may default it to
	zero, and it is harmless to try it.  Move the test for failing
	to generate a core file to where it will actually get executed.
	* gdb.c++/templates.exp (test_ptype_of_templates): Accept
	new gdb result from g++ debug info improvements and make old
	pattern obsolescent.  Also account for size_t differences
	(may be int or long).
	* gdb.base/a1-selftest.exp (test_with_self): Check for case where
	initialization before function call is placed in the delay slot
	and thus appears to be skipped over by commands such as "next".
1995-12-30 22:27:24 +00:00
Stan Shebs f526457cf8 * gdb.base/a1-selftest.exp (test_with_self): Run without windows. 1995-12-30 00:23:40 +00:00
Per Bothner b44fe1d5e0 * tuples.ch, tuples.exp: Exhance test cases (from PR 8643). 1995-12-12 00:55:18 +00:00
Wilfried Moser 32d067978f * builtins.exp, pr-5016.{ch,exp}, result.{ch,exp},
tests1.{ch,exp}: Enhance test cases.
1995-12-11 14:59:01 +00:00
Wilfried Moser 7609ecebac * builtins.ch, builtins.exp, Makefile.in: New test case. 1995-12-07 13:18:08 +00:00
Stan Shebs e7db3d77d0 Always keep the newly-added configure scripts. 1995-12-07 01:37:31 +00:00
Wilfried Moser 29ba0f2876 * tests2.exp: Add compiling of the test case. 1995-12-05 09:52:45 +00:00
Per Bothner 5be700fd21 Ooops. Fix to work with new scheme (where runtest invokes the compiler). 1995-12-01 22:50:47 +00:00
Per Bothner e300da1c7d * pr-8405.ch, pr-8405.exp, Makefile.in: New test case. 1995-12-01 22:17:42 +00:00
Per Bothner d9eb60c63a * tests1.exp, tests2.exp (test_print_reject): Remove; causes
conflicts with later tests using test_print_reject in ../lib/gdb.exp.
	(passcount):  Remove.
	* tests2.exp (test_print_accept):  Removed.
	(test_write):  Re-write to use gdb_test rather than test_print_accept.
	* tests1.exp (test_print_accept_exact):  Removed.
	(tests_locations):  Rewrite to use gdb_test and not above proc.
1995-12-01 19:05:52 +00:00
Per Bothner da2cfeb098 * tests1.ch, tests1.exp, tests2.ch, tests2.exp, Makefile.in:
New (extensive) test cases.
	* chexp.exp:  Fix relations to return TRUE or FALSE.
1995-12-01 08:17:13 +00:00
Per Bothner 787f2cb332 * Makefile.in: Add .exp.check rule.
* callch.ch:  Add missing "%." to format strings.
	* callch.exp:  Fix argument to gdb_load.
	* chexp.exp:  Add specific error messages to test_print_reject calls.
	* misc.exp:  Add a test for PR 8496.
	* pr-6632.exp, pr-8136.exp:  Link executables from two .o files.
1995-11-30 03:35:14 +00:00
Fred Fish 79e6c66069 * pr-5016.exp: xfail "whatis i" for alpha-osf-dec-osf2*, same as linux. 1995-11-27 22:44:38 +00:00
Fred Fish edc1ccab96 * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
"bt in signals.exp".
	* gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
	"step over execarg initialization" and
 	"step over corearg initialization".
	* gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
	with sizeof(pointer) > sizeof(int).  Avoid "void *" or include files.
1995-11-27 22:43:08 +00:00
Fred Fish d38644cd59 Left out of last cvs commit... 1995-11-25 20:27:38 +00:00
Fred Fish 782445c7aa From Rob Savoye (rob@poseidon.cygnus.com)
* Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in},
	gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in, configure.in},
	gdb.disasm/{Makefile.in, configure.in}, gdb.stabs/{Makefile.in, configure.in},
	gdb.threads/{Makefile.in, configure.in}: Major reworking for autoconfig.
	* aclocal.m4, configure, gdb.base/configure, gdb.c++/configure,
	gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt : New files.
	* config/unix-gdb.exp:  Make GDB global.
	* gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp, callfuncs.exp,
	commands.exp, corefile.exp, crossload.exp, exprs.exp, funcargs.exp, interrupt.exp,
	langs.exp, list.exp, mips_pro.exp, nodebug.exp, opaque.exp, printcmds.exp,
	ptype.exp, recurse.exp, regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp,
	signals.exp, term.exp, twice.exp, watchpoint.exp, whatis.exp},
 	gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp, templates.exp,
	virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp, misc.exp, pr-4975.exp,
	pr-5016.exp, pr-5020.exp, pr-5022.exp, pr-5646.exp, pr-5984.exp, pr-6292.exp,
	pr-6632.exp, pr-8134.exp, pr-8136.exp, result.exp, string.exp, tuples.exp},
	gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues
 	to returns as necessary, arrange for test to compile own testcase executable.
	* lib/gdb.exp: Changes for testsuite to compile own test cases.

	From Fred Fish (fnf@cygnus.com)
	* gdb.c++/classes.exp (test_pointers_to_class_members): Add
 	clear_xfail at end of test which might not call either pass or fail.
	* gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for
	"backtrace through signal handler".
1995-11-25 19:55:29 +00:00
Peter Schauer a94bead5fc * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o. 1995-11-18 12:25:18 +00:00
Jeff Law dfbb1a26dc * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
* gdb.base/corefile.exp: Likewise.
        * gdb.base/funcargs.exp: Likewise.

Never should have been there anyway.
1995-11-15 07:30:52 +00:00
Stu Grossman 7c0fe2ebbd * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
* config/monitor.exp:  Add support for setting baud rate.
1995-11-14 23:41:36 +00:00
Fred Fish 536a7a1618 * gdb.base/a1-selftest.exp: Remove i*86-*-sysv4* and
i*86-*-linux* xfails for "backtrace through signal handler".
	* gdb.base/corefile.exp: Add i*86-*-sysv4* xfail for
	"print func2::coremaker_local".
	* gdb.base/break.exp: Add i*86-*-sysv4*, sparc-sun-sunos4,
 	xfail for
	"delete all breakpoints when none".
1995-11-04 18:42:30 +00:00
Fred Fish b998e7b872 * gdb.base/break.exp: Change test that deletes all breakpoints
when no user breakpoints are installed.  A post 4.15 change
	causes gdb to no longer prompt in this case.
1995-11-01 23:02:09 +00:00
Fred Fish c7c26058d8 * gdb.base/return.exp (return_tests): Change xfail for test
"correct value returned double test" to stop xfailing at
	Solaris 2.5.  Apparently the bug has been fixed.
1995-10-31 23:18:28 +00:00
Fred Fish 7efb4b4c8e * pr-5016.exp: xfail "whatis i" for sparc-sun-sunos4*, same as linux. 1995-10-30 03:15:12 +00:00
Fred Fish 1130734da5 * gdb.stabs/ecoff.sed: Remove comment lines except for first one.
IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
1995-10-29 20:31:03 +00:00
Jeff Law cb016f0140 * gdb.disasm/hppa.exp: Test lci and syncdma instructions.
* gdb.disasm/hppa.s: Corresponding changes.
1995-10-24 17:14:13 +00:00
Jeff Law c4ef6e7609 * gdb.base/configure.in (hppa*-*-hpux*): No longer needs target
makefile fragment.
        * config/mt-hpux: Deleted.

Because we longer need to statically link nodebug for hpux.
1995-10-18 17:31:26 +00:00
Jeff Law 00c916f4a8 * Many files: When warning about suppressed tests due to a
nonexistant test binary, avoid incrementing the warning count.

Fixes bogus UNRESOLVED test results.
1995-10-18 05:07:51 +00:00
Peter Schauer 5604019068 * gdb.base/return.exp: Change xfail from "sparc-*-solaris2.*" to
"sparc-*-solaris2*".
1995-10-08 11:24:21 +00:00
Per Bothner f3415760cf * pr-8136.{ch,exp}, pr-8134.exp, func1.ch, Makefile.in: New test cases. 1995-10-05 01:24:44 +00:00
Per Bothner 658f132580 * tuples.ch. tuples.exp: Add new test for setting a variant record
using a tuple, and access the fields.
1995-09-27 18:51:33 +00:00
Jeff Law d4f1e4eef2 * gdb.disasm/sh3.s (fmac): Update for new assembler syntax
* gdb.disasm/sh3.exp (fmac): Corresponding changes.
1995-09-21 07:30:50 +00:00
Ian Lance Taylor 582433a889 add maintainer-clean Makefile targets 1995-09-20 17:24:12 +00:00
Fred Fish 462bde0321 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
xfails when not gcc compiled for "print foo::funclocal".
	(test_at_foo):  Add "hppa*-*-hpux*" xfails when not gcc compiled for:
	"print foo::funclocal at foo",
	"print 'scope1.c'::foo::funclocal at foo",
	"print foo::funclocal_bss at foo",
	"print 'scope1.c'::foo::funclocal_bss at foo",
	"print foo::funclocal_ro at foo",
	"print 'scope1.c'::foo::funclocal_ro at foo",
	"print bar::funclocal at foo" and
	"print 'scope1.c'::bar::funclocal at foo".
	(test_at_bar):  Add "hppa*-*-hpux*" xfails when not
	gcc compiled for "print foo::funclocal at bar".
	Expand all messages to ensure that they identify that
	the test is at bar().
	* gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
	gcc compiled for:
	"ptype on opaque struct pointer (statically)",
	"ptype on opaque struct tagname (statically)",
	"ptype on opaque struct pointer (dynamically) 1",
	"ptype on opaque struct tagname (dynamically) 1",
	"ptype on opaque struct pointer (dynamically) 2" and
	"ptype on opaque struct tagname (dynamically) 2
	* gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
	gcc compiled for:
	"p datalocal"
	"whatis datalocal",
	"ptype datalocal",
	"p bsslocal",
	"whatis bsslocal", and
	"ptype bsslocal".
	* gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
	"backtrace in langs.exp" and "up to langs0__2do in langs.exp"
	when not gcc compiled.
	* gdb.base/funcargs.exp (float_and_integral_args):  Add
	"hppa*-*-hpux*" xfail for "run to call2a" when not gcc
	compiled.
	(discard_and_shuffle):  Add "hppa*-*-hpux*" xfail for
	"backtrace from call6a" when not gcc compiled.
	(shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
	"backtrace from call7a" when not gcc compiled.
	* gdb.base/callfuncs.exp (do_function_calls):
	Add "hppa*-*-hpux*" xfail when not gcc compiled for
	"p t_char_array_values(char_array_val2,char_array_val1)",
	"p t_char_array_values(char_array_val1,char_array_val2)",
	"p t_char_array_values("carray 1","carray 2")",
	"p t_char_array_values("carray 1",char_array_val2)",
	"p t_char_array_values(char_array_val1,"carray 2")",
	"p sum_args(1,{2})",
	"p sum_args(2,{2,3})",
	"p sum_args(3,{2,3,4})",
	"p sum_args(4,{2,3,4,5})"
	* gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
	"backtrace in corefile.exp" when not gcc compiled.
1995-09-11 23:49:34 +00:00
Peter Schauer 7eb10f9ad1 * gdb.base/signals.exp: Rewrite `handle all print' test as
a procedure. Accept blanks or TABs as whitespace, increase
	timeout and expect input buffer size for the large output
	from the command. Remove "i*86-*-bsdi2.0" xfail.
1995-09-09 08:38:40 +00:00
Peter Schauer 5b1748d494 * gdb.base/setvar.exp: Add new testcases for truncation when
assigning invalid values to bitfields.
1995-09-02 13:49:32 +00:00
Fred Fish 218f9f03b8 * gdb.base/callfuncs.exp (do_function_calls): Remove
mips-sgi-irix* xfail for
	"call inferior func with struct - returns char *"
	and fix test so that an optional (unsigned char *) cast is
 	accepted in the result.
1995-09-02 07:25:13 +00:00
Fred Fish c08e5694d9 * gdb.base/funcargs.exp (float_and_integral_args): Remove
sparc-sun-solaris2* xfail for "print f1 after run to call2a".
	* gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
	* gdb.base/signals.exp: Remove duplicate "handle all print" test
	that accidentally got checked in.
1995-09-01 21:01:24 +00:00
Fred Fish 5762d8c6f3 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
	compiled test.
	* gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
	Add mips-sgi-irix5* xfail for not gcc compiled.
	* gdb.base/Makefile.in (nodebug.o):  Also create nodebug.ci.
	* gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
	"p top", "whatis top", "p middle", and "whatis middle".
	* gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
	"whatis signed char" for not gcc compiled.
	* gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
	"set variable signed char=-1 (-1)" and
	"set variable signed char=0xFF (0xFF)" for not gcc compiled.
	* gdb.base/funcargs.exp (float_and_integral_args):
	Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
	Add mips-sgi-irix* xfail when not gcc compiled for
	"continue to call2b".
	Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
	"continue to call2g".
	(discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
	"backtrace from call6a"
	(shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
	"backtrace from call7k".
	Add mips-sgi-irix5* xfail when not gcc compiled for
	"backtrace from call7a".
	(localvars_after_alloca):  Fix gdb_test cmds for
	"print * after runto ...".
	Remove rs6000-*-* xfails for
	"print i after runto localvars_after_alloca" and
	"print l after runto localvars_after_alloca"
	for all compilers.
	* gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
 	when not compiled with gcc, for:
	"print signed char == (minus)",
	"print signed char != (minus)",
	"print signed char < (minus)",
	"print signed char > (minus)".
	* gdb.base/callfuncs.exp (do_function_calls):
	Add mips-sgi-irix* xfail, when compiled with native compiler, for
	"call inferior func with struct - returns char *".
	* gdb.base/return.exp (return_tests): Change xfail for
	"correct value returned double test" to include Solaris 2.4.
	* gdb.base/funcargs.exp (float_and_integral_args):
	Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
1995-08-28 09:44:14 +00:00
Peter Schauer 3c88a10a65 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
enumeration bitfields if compiling with GNU C.
	* lib/gdb.exp:  Consume `(y or n) ' in `Reinitialize source path
	to empty' prompt.
1995-08-26 07:36:45 +00:00
Jeff Law b9ba33e6f0 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
test for PRO targets.
1995-08-22 19:09:39 +00:00
Jeff Law bed1eef3b6 Opps. Fix thinko in last change. 1995-08-22 06:51:47 +00:00
Jeff Law 80d28979c5 * gdb.base/funcargs.exp: Avoid ever setting more than 8
breakpoints in the inferior at any given time by making
	two groups of breakpoints for call2*, call6* and call7*
	tests.
1995-08-22 06:36:40 +00:00
Peter Schauer 715682510e * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
* gdb.base/callfuncs.c (main):  Use struct_val1 to inhibit xlc
	from optimizing it away.
	* gdb.base/callfuncs.exp:  Remove rs6000-*-* xfails for
	"call inferior func with struct".
1995-08-20 14:03:45 +00:00
Stan Shebs 46ce3de0a9 * configure.in: Only configure gdb.chill for particular targets. 1995-08-16 19:03:10 +00:00
Fred Fish ce102e96e6 * gdb.base/Makefile.in: Add action to .c.o transformation
rule that generates a .ci file for each .o file and remove
	explicit .c.o rules except for callfuncs.o.
	* gdb.c++/Makefile.in:  Add .cc.o transformation rule that
	generates a .ci file for each .o file and remove explicit
	.cc.o rules.
	(clean): Remove *.tmp *.ci files.
	(EXECUTABLES): Remove templ-info.exp.
	* gdb.base/compiler.c: New file.
	* gdb.c++/compiler.cc: New file
	* gdb.base/scope.exp: Source gdb.base/scope.ci.
	Change rs6000-*-* xfail for
	"print 'scope0.c'::filelocal_ro" and
	"print 'scope1.c'::filelocal" and
	"print 'scope1.c'::filelocal_bss" and
	"print 'scope1.c'::filelocal_ro" and
	"print 'scope1.c'::foo::funclocal" and
	"print 'scope1.c'::foo::funclocal_ro" and
	"print 'scope1.c'::bar::funclocal" and
	"print 'scope0.c'::filelocal_ro" and
	"print 'scope1.c'::filelocal at foo" and
	"print 'scope1.c'::filelocal_bss at foo" and
	"print 'scope1.c'::filelocal_ro at foo" and
	"print 'scope1.c'::foo::funclocal at foo" and
	"print 'scope1.c'::foo::funclocal_bss at foo" and
	"print 'scope1.c'::foo::funclocal_ro at foo" and
	"print 'scope1.c'::bar::funclocal at foo" and
	"print 'scope0.c'::filelocal_ro" and
	"print 'scope1.c'::filelocal" and
	"print 'scope1.c'::filelocal_bss" and
	"print 'scope1.c'::filelocal_ro" and
	"print 'scope1.c'::foo::funclocal" and
	"print 'scope1.c'::foo::funclocal_bss" and
	"print 'scope1.c'::foo::funclocal_ro" and
	"print 'scope1.c'::bar::funclocal" and
	"print 'scope1.c'::bar::funclocal_bss"
	to only be xfail'd when not compiled with gcc.
	Add rs6000-*-* xfail for
	"print 'scope0.c'::filelocal_bss before run"
	when compiled with gcc.
	(test_at_main): Add rs6000-*-* xfail for
	"print filelocal_ro in test_at_main"
	when compiled with gcc.
	* gdb.base/ptype.exp: Source gdb.base/ptype.ci.
 	Add rs6000-*-aix* xfail for
	"whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and
	"ptype t_char_array",  not compiled with gcc.
	* gdb.base/list.exp (test_list_function):  Add rs6000-*-*
	xfail for "list foo (in include file)" when gcc	compiled.
	* gdb.base/funcargs.exp: Source gdb.base/funcargs.ci
 	(integral_args): Add rs6000-*-* xfail for
	"run to call0a" if not compiled with gcc.
	(unsigned_integral_args): Add rs6000-*-* xfail for
	"run to call1a" if not compiled with gcc.
	(float_and_integral_args):  Add rs6000-*-* xfail for
	"run to call2a" if not compiled with gcc and for
	"continue to call2b" for any compiler.
	Add rs6000-*-* xfail to
	"print f1 after run to call2a" for gcc compiled.
	(discard_and_shuffle): Add rs6000-*-* xfail for
	"run to call6a".
	(shuffle_round_robin): Add rs6000-*-* xfail for
	"backtrace from call7a" if not compiled with gcc.
	Add rs6000-*-* xfail for
	"backtrace from call7b" if compiled with gcc.
	(call_after_alloca): Add rs6000-*-* xfail for
	"print c in call_after_alloca" and
	"print s in call_after_alloca" and
	"backtrace from call_after_alloca_subr"
	if not compiled with gcc.
	(localvars_in_indirect_call): Add rs6000-*-* xfail for
	"print c in localvars_in_indirect_call" and
	"print c in localvars_in_indirect_call" and
	"backtrace in indirectly called function" and
	"stepping into indirectly called function"
	if not compiled with gcc.
	(localvars_after_alloca): Add rs6000-*-* xfail for
	"print c after runto localvars_after_alloca" and
	"print s after runto localvars_after_alloca" and
	"print i after runto localvars_after_alloca" and
	"print l after runto localvars_after_alloca"
	for all compilers.
	* gdb.base/whatis.exp: Source gdb.base/whatis.ci rather
	than whatis-info.exp.
	* gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather
	than opaque-info.exp.
	Setup rs6000-*-* xfail for
	"ptype on opaque struct pointer (statically)" and
	"ptype on opaque struct pointer (dynamically)" when
	not compiled with gcc.
	* gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci
	rather than callf-info.exp.
	(do_function_calls):  Add clear_xfail for rs6000-*-* for
	"p t_float_values2(3.14159,float_val2)".  Seems to work
	fine there, both with xlc and gcc.  Need to find out what
	it is doing right and fix other platforms.
	* gdb.base/callfuncs.exp: Add rs6000-*-* xfail for
	"call inferior func with struct - returns int",
	"call inferior func with struct - returns long",
	"call inferior func with struct - returns float",
	"call inferior func with struct - returns double",
	"call inferior func with struct - returns char *",
	but only if not gcc compiled (presumes xlc compiled).
	Change rs6000-*-* xfails for
	"call inferior func with struct - returns char" and
	" call inferior func with struct -  returns short" to only
	xfail if not using gcc.
	(clean mostlyclean):  Remove *.ci and *.tmp files.
	* gdb.c++/templates.exp: Source gdb.c++/templates.ci rather
	than templ-info.exp.
	* gdb.base/langs.exp:  Source gdb.base/langs.ci.
	Add rs6000-*-* xfail for "up to foo in langs.exp"
	"up to cppsub_ in langs.exp" and "up to fsub in langs.exp"
 	when not gcc compiled.
1995-08-16 07:37:19 +00:00
Jeff Law 5c6f833bb0 * gdb.base/callfuncs.exp: Add xfails for the powerpc.
* gdb.base/corefile.exp: Likewise.
        * gdb.base/list.exp: Likewise.
        * gdb.base/scope.exp: Likewise.
        * gdb.base/siganls.exp: Likewise.

        * gdb.base/nodebug.exp: Add xfails for the powerpc.  Handle aix4
        compiler output.
        * gdb.base/whatis.exp: Likewise.
1995-08-12 22:11:33 +00:00
Jeff Law e334d7ea9d * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect a
failure (opcode table has been fixed to match reality).
1995-08-11 19:39:26 +00:00
Fred Fish 06c87bef35 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
"backtrace through signal handler" to "i*86-*-sysv4*".
	* gdb.base/signals.exp: Add xfail for "'next' behaved as
	continue" case.  Add "known SVR4 bug" to fail message.
	Add "i*86-*-bsdi2.0" xfail for "handle all print".
	Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
	* gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
	"whatis unnamed typedef'd enum..." and "ptype t_char_array".
	* gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
	"up to foo in langs.exp", "show language at foo in
	langs.exp", "up to cppsub_ in langs.exp", "show
	language at cppsub_ in langs.exp", "up to fsub in
	langs.exp", and "show language at fsub in langs.exp".
	* gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
	"bactrace in corefile.exp".
	* gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
	"call inferior function with struct - returns float" and
	"call inferior function with struct - returns double".
1995-08-11 16:42:45 +00:00
Jeff Law 98395eafc9 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.
* gdb.disasm/sh3.exp: Run the sh3 disassembler tests.
	* gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment.
	* gdb.disasm/sh3.mt: Makefile fragment for sh3 ests.

sh3e disassembler tests.  Sanitized out for now.
1995-08-07 08:48:22 +00:00
Fred Fish db186b3db7 * gdb.base/corefile.exp: Change xfail for backtrace in
corefile.exp from linuxaout to all linux.
	* gdb.base/sigall.exp (test_one_sig):  Specifically deal with
	cases where we miss the breakpoint at the signal handler
	for some reason.  Setup xfail for linuxoldld/linuxaout and
	getting SIGIO.  Setup xfail for linuxoldld/linuxaout for
	hitting SIGURG breakpoint.
	* gdb.base/signals.exp:  Setup xfail for "next" acting like
	continue to add linuxoldld.  Setup xfail for all linux for
	"next to handler in signals_tests_1", "backtrace in
	signals_tests_1", "continue to func1", "pass SIGUSR1",
	and continue to handler".
1995-08-07 07:20:02 +00:00
Fred Fish 605b7789b1 Document FSF address updating of all files with FSF addresses,
except for the COPYING* files.
1995-08-03 18:42:27 +00:00
Fred Fish 471a24ce44 Add ChangeLog, pr-5984.ch, pr-5984.exp. 1995-08-03 17:07:16 +00:00
Fred Fish 7abd80b9d3 Add hppro.exp, monitor.exp. 1995-08-03 17:06:45 +00:00
Fred Fish 87544f53d2 Remove keep-chill stuff from .Sanitize and add gdb.chill to things to
keep.  Remove sanitize references in ChangeLog.  Remove start/end
sanitize-chill lines in Makefile.in.
1995-08-03 16:56:36 +00:00
Fred Fish 6c9638b444 Update FSF address. 1995-08-02 03:41:12 +00:00
Fred Fish 85934f3b48 * gdb.base/a2-run.exp: Change messages to be more explicit about
the status of args, and quote binfile in results.
1995-07-31 01:18:44 +00:00
Fred Fish eed4066f6b * gdb.base/callfuncs.exp: Add tests for passing structs to
inferior functions and return various types.
	* gdb.base/callfuncs.c: Add functions to receive a struct
	and return a member of the struct, in various types.
1995-07-30 19:29:36 +00:00
Peter Schauer 96fd3d08f9 * gdb.base/Makefile.in (clean): Remove callf-info.exp. 1995-07-29 21:24:39 +00:00
Brendan Kehoe ac72325fa8 * config/vxworks29k.exp: New file, sources vxworks.exp. 1995-07-28 20:36:50 +00:00
Jeff Law e72d862288 * config/gdbremote.exp: New file. Testing framework using
gdbserver.

Doesn't work with lynx yet, and you need to set a handful of variables
in your site.exp, but it's worth checking in now.
1995-07-28 07:31:40 +00:00
Fred Fish 3b013a3a46 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail for
"call function when asleep" and "send end of file".
	* gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list
	for "backtrace in corefile.exp".
	* gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list
	for "backtrace through signal handler".
	* gdb.base/corefile.exp: Make sure we actually generate a core file
	before trying the core tests.  Some systems allow the user to suppress
	generation of core files and default to that (linux for example).
	* gdb.base/signals.exp: Change xfail for "next" acting like "continue"
	from "i*86-*-linux" to "i*86-*-linuxaout".  Works with ELF beta.
1995-07-28 04:58:12 +00:00
Jeff Law ef920bd889 Forgot to commit .Santiize. 1995-07-27 19:51:44 +00:00
Jeff Law f27ffb51f5 * gdb.threads: New directory with some crude multi-threaded
gdb tests (step.exp and step2.exp).
        * config/mt-lynx (STEP_EXECUTABLE): Define.
        (THREADFLAGS): Define.

Hiro's test for 6100 and a crude test of my own.  They both need some
major cleanup for non-lynx hosts; both are also a little too loose in
their checks.  But I'm too burnt out on lynx to address either concern.
1995-07-26 00:35:07 +00:00
Jeff Law d9d9e56366 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx. 1995-07-25 17:09:50 +00:00
Jeff Law 8b67f01dff * gdb.base/signals.exp: Disable whole file for lynx until
further notice.

Looks like a bug in the lynx2.2.2 kernel scroggs the stack pointer in
these tests leading to massive failures.  I've sent a nice small concise
example to Mark Rome @ lynx.  Severe braindamage.
1995-07-25 08:52:39 +00:00
Jeff Law 2f11e8d4a6 * gdb.base/signals.exp: xfail test where "next" acts like
"continue" for lynx.
1995-07-25 07:05:21 +00:00
Jeff Law 92d9020df4 * gdb.base/interrupt.exp: xfail test for calling function while
inferior is asleep for lynx.
1995-07-25 05:16:07 +00:00
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