Commit Graph

1309 Commits

Author SHA1 Message Date
David Taylor 162f1a6f66 renamed files -- HP merge. 1999-01-11 05:38:09 +00:00
David Taylor d55ea55c19 new files -- part of HP merge. 1999-01-11 05:36:48 +00:00
David Taylor f5f100fecb new files -- part of the HP merge. 1999-01-09 00:10:18 +00:00
David Taylor e1260544e1 new files -- from HP merge. 1999-01-09 00:00:54 +00:00
David Taylor e8ce2368b3 new file -- part of HP merge. 1999-01-08 23:42:20 +00:00
David Taylor 7e745333bb new files -- part of HP merge. 1999-01-08 23:40:55 +00:00
David Taylor e2fb40b3b6 renamed to have names 14 characters long or shorter. 1999-01-08 23:38:29 +00:00
David Taylor ba49f20406 new files; part of HP merge. 1999-01-08 23:28:15 +00:00
Stan Shebs 5ee261db88 * gdb.base/default.exp: Reflect wording change in remote.c. 1999-01-06 21:52:14 +00:00
Michael Snyder 732063ebf3 Update to reflect current help text. 1999-01-06 03:16:31 +00:00
David Taylor d9455383f9 updates to reflect recent HP additions. 1999-01-06 00:52:29 +00:00
David Taylor 80909c45f8 fix anon-union tests from HP. 1999-01-06 00:11:17 +00:00
David Taylor 17f18ac4e5 new files -- part of HP merge. 1999-01-05 23:31:03 +00:00
David Taylor 2d46b1af8d *** empty log message *** 1999-01-05 21:59:02 +00:00
David Taylor 61e635a444 hp merge changes; mostly new files.
scope.exp, langs.exp, list.exp -- compile one file at a time, then link.
default.exp -- change expected messages for catch and info catch tests to
reflect hp merge changes.
1999-01-05 21:58:18 +00:00
Jason Molenda f240337a6f 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Require autoconf 2.12.1 or higher.
        * doc/configure.in: Ditto.
        * nlm/configure.in: Ditto.
        * rdi-share/configure.in: Ditto.
        * testsuite/configure.in: Ditto.
        * doc/Makefile.in: Don't hardcode $(SHELL).
        * nlm/Makefile.in: Ditto.
        * rdi-share/Makefile.in: Ditto.
        * testsuite/Makefile.in: Ditto.
1999-01-05 00:17:07 +00:00
David Taylor c87f565f5a new functions -- skip_hp_tests, gdb_preprocess; gdb_compile takes new
optional argument specifying c++.
1999-01-04 22:40:38 +00:00
David Taylor 2e11d9ccf2 add gdb.hp to list of subdirectories. 1999-01-04 22:22:56 +00:00
David Taylor f5f706d8d1 change log entries for changes just committed. 1999-01-04 22:15:25 +00:00
David Taylor 709c6ee051 * gdb.base/Makefile.in (MISCELLANEOUS): new macros -- extra things
to delete on clean.
	(EXECUTABLES): update to reflect new additions.
	* gdb.base/commands.exp: update message expected.
	* gdb.base/default.exp: add copyright notice.
	* gdb.base/funcargs.exp (timeout): if hpux, increase timeout.
	* gdb.base/help.exp: update messages to reflect current text.
	* gdb.base/recurse.exp: add hpppa*-*-bsd* to 'list' of enabled
	targets for recurse tests.
	* gdb.base/watchpoint.exp: if on hpux and not gcc compiled, then
	skip this file.
1999-01-04 22:12:40 +00:00
David Taylor b3d32d4f8f configure.in -- decide whether to configure gdb.hp; configure -- regenerated. 1999-01-04 22:11:08 +00:00
David Taylor 298e0bc56e doc new files. 1999-01-04 21:40:46 +00:00
David Taylor 53c8a4de28 new files -- part of HP merge. 1999-01-04 21:35:27 +00:00
David Taylor e8ff198e34 update to reflect new hp merge files. 1999-01-04 16:04:45 +00:00
David Taylor 8e260d5270 new files -- part of HP merge. 1999-01-04 15:37:21 +00:00
Keith Seitz 32ac892aab * gdb.gdbtk/{console.exp, browser.exp}: If no DISPLAY is set,
skip the tests.
1998-12-30 17:57:16 +00:00
Felix Lee 3cc72fbe54 oops. fix linesplit caused by bad paste 1998-12-18 16:50:41 +00:00
Felix Lee 1e012f703e sanitization fix. 1998-12-18 16:43:49 +00:00
Jeff Law e97b0413dd Keep restore.c and restore.exp 1998-12-08 22:01:16 +00:00
Jim Blandy 701ab5bf5b *** empty log message *** 1998-12-07 23:15:12 +00:00
Stan Shebs 321d48c5b8 From Brendan Kehoe:
* gdb.c++/cplusfuncs.cc, misc.cc, virtfunc.cc: Add now-required
	int return types.
1998-12-03 04:08:14 +00:00
Michael Snyder c95b6ba3bd Added missing keeper files. 1998-10-30 17:39:48 +00:00
Michael Snyder 209c77a838 *** empty log message *** 1998-10-08 22:45:53 +00:00
Andrew Cagney b8464c1539 Replace "exec" with "executable" in messages. 1998-10-01 11:19:11 +00:00
Keith Seitz 761e334a18 * gdb.gdbtk/browser.test: Fix tests which incorrectly assume
that gdb knows _exactly_ which files belong to the user
        and which come from libraries.
1998-09-29 21:04:13 +00:00
Nick Clifton 7b60d311ba Add brace missing from previous delta. 1998-09-28 20:22:25 +00:00
Nick Clifton 7f44038a5f Fix info float test for arm-elf toolchains 1998-09-21 21:41:36 +00:00
Michael Snyder d5e3b34ad8 Fri Sep 18 14:07:44 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.trace/*.exp: remove "remote_download" command.
1998-09-18 21:10:23 +00:00
Felix Lee d9720f0dd4 * gdb.trace/configure.in(AC_INIT): typo
* gdb.trace/configure: regenerated
1998-09-16 08:25:59 +00:00
Michael Snyder 27001c664d Mon Sep 14 20:00:04 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* lib/<emc-support.exp trace-support.exp}: New files.
        * configure.in: add new test directory gdb.trace.
        * gdb.trace/{configure configure.in Makefile.in}: New files.
        * gdb.trace/{actions.c actions.exp gdb_c_test.c}: New files.
        * gdb.trace/{circ.c circ.exp limits.c limits.exp}: New files.
        * gdb.trace/{collection.c collection.exp tfind.exp }: New files.
        * gdb.trace/{backtrace.exp deltrace.exp infotrace.exp}: New files.
        * gdb.trace/{packetlen.exp passc-dyn.exp passcount.exp}: New files.
        * gdb.trace/{report.exp save-trace.exp tracecmd.exp}: New files.
        * gdb.trace/{while-dyn.exp while-stepping.exp}: New files.
1998-09-15 22:25:01 +00:00
Michael Snyder c8ca08efeb Mon Sep 14 20:00:57 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* dejagnu/baseboards/m68k-emc.exp: New file.
	* dejagnu/config/m68k-emc.exp: New file.
	* gdb/testsuite/config/m68k-emc.exp: New file.
1998-09-15 03:06:26 +00:00
Michael Snyder b6e88501aa Fri Sep 11 13:58:02 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.c++/classes.exp: Change all regular expressions to match
        arbitrary combinations of newline/carriage-return, so that they
        will work equally well on Unix and Windows.
        * gdb.c++/inherit.exp: ditto.
        * gdb.c++/virtfunc.exp: ditto.
1998-09-11 21:00:26 +00:00
Keith Seitz 313f4e31dd * gdb.gdbtk/Makefile.in: Add new example program "stack".
* gdb.gdbtk/browser.test,browser.exp: Add browser window
          tests.
        * gdb.gdbtk/stack1.c,stack2.c: Test case for browser window.
1998-07-24 22:11:22 +00:00
Jeff Law 73fe88bc9f * gdb.disasm/am33.s: Add tests for autoincrement instructions.
* gdb.disasm/am33.exp: Run time.  Update tests which use r8-r15
        to use a0-a3/d0-d3 as needed.
1998-07-24 21:52:43 +00:00
Keith Seitz ead0877781 * configure.in: Fix sanitization start/end error.
* configure: Regenerate.
1998-07-14 23:16:40 +00:00
Felix Lee de5cce9cb4 * gdb.base/callfuncs.exp: add cmp10 test.
* gdb.base/callfuncs.c (cmp10): new function.
1998-07-13 13:42:45 +00:00
Dawn Perchik faf0a71f31 * gdb.base/commands.exp: Break up infrun_breakpoint_command_test
into two parts to get around a synchronization problem in expect.
1998-07-10 08:54:17 +00:00
Martin Hunt e16def6302 Sun Jun 28 22:34:34 1998 Martin M. Hunt <hunt@cygnus.com>
* gdb.gdbtk/simple.c (main): Make main return an
	int so compiler will stop complaining.
1998-06-29 05:31:35 +00:00
Keith Seitz f35ea21826 * lib/gdb.exp (gdbtk_start): Add startup for gdbtk.
* configure.in: Add options for gdbtk testsuite.

        * configure: Regenerate.

        * gdb.gdbtk: New directory to hold gdbtk tests.

        * gdb.gdbtk/console.{exp, test}: New console window tests.
1998-06-27 00:47:35 +00:00
Peter Schauer 3f1739b32a * gdb.fortran/types.exp: Escape brackets in expect patterns
for test_float_literal_types_accepted tests.
	* gdb.base/scope.exp:  Remove extraneous newline in filelocal_bss
	before run test.
1998-06-26 21:59:29 +00:00
Jeff Law 85a6fcfd5d * am33.exp: Just compile, do not link the testcase.
* am33.s: Add ".am33" pseudoop to force am33 mode.
1998-06-26 17:17:03 +00:00
Felix Lee be2cb9926c * gdb.base/setshow.exp: make sure $pc is sane.
* gdb.stabs/weird.exp: split expect patterns properly.
1998-06-25 22:39:02 +00:00
Jeff Law 54977a6833 * gdb.disasm/am33.s: New disassembler testfile for the am33.
* gdb.disasm/am33.exp: Run it.
1998-06-24 19:07:51 +00:00
Michael Snyder a59614102b Tue Jun 23 11:45:01 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/funcargs.exp: simplify expect strings to ease pattern
        match processing (and eliminate spurious timeouts when running).
1998-06-23 18:46:00 +00:00
Michael Snyder c488e9b543 Wed Jun 10 10:40:03 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/overlays.exp: fixup compile line for linker script.
1998-06-10 17:42:36 +00:00
Felix Lee 72d33b581d * gdb.fortran/types.exp: don't guess at float size. 1998-06-05 05:47:31 +00:00
Felix Lee b304ac184b * chexp.exp: fix tests that assume >16-bit ints. 1998-06-05 04:54:03 +00:00
Felix Lee cf4f99867d * gdb.base/exprs.exp: delete test that depends on int size. 1998-06-05 04:53:28 +00:00
Mark Alexander 7ee554b50e * gdb.base/reread.exp: New file.
* gdb.base/reread1.c: New file.
	* gdb.base/reread2.c: New file.
1998-05-17 06:49:55 +00:00
Mark Alexander 7ec482ba5d * config/sim.exp: Use 'target sim -sparclite' when running
SPARClite programs.
1998-05-17 06:25:03 +00:00
Doug Evans fb543fc8ba Keep structs2.{c,exp} for now. 1998-05-17 01:50:07 +00:00
Doug Evans 183f3c8a4e * gdb.base/structs2.exp: New file.
* gdb.base/structs2.c: New file.
1998-05-17 01:50:06 +00:00
Doug Evans aa3b6d276b * gdb.asm/common.inc: New file.
* gdb.asm/d10v.inc: New file.
	* asm-source.exp: Pass -I's to gas to find .inc files.
	Update line numbers in expected output.
	* asmsrc1.s: Rewrite.
	* asmsrc2.s: Rewrite.
	* configure.in: Create arch.inc symlink.
	* configure: Regenerate.
	* Makefile.in (distclean): Delete arch.inc.
1998-05-13 20:38:50 +00:00
Jason Molenda 519aebdcc6 Thu Apr 23 12:56:19 1998 Jason Molenda (crash@bugshack.cygnus.com)
* gdb.c++/virtfunc.cc: Declare extern "C" printf to return int,
        not void.



fche says he vaguely remembers a problem with returning int instead of
void, but ISO C sez printf returns int, so let's see what happens.
1998-04-23 19:57:29 +00:00
Jason Molenda 92aadf4623 Add branches.c. 1998-04-21 16:52:56 +00:00
Jason Molenda 93d03334ed Keep cygmon.exp. 1998-04-21 16:52:05 +00:00
John Metzler ea8122af14 Thu Apr 16 10:52:34 1998 John Metzler <jmetzler@cygnus.com>
* gdb.base/branches.c: Code with lots of loops and
 	subroutines. Used to test gdbs ability to single step through PC
 	changes, especially to test mips-tdep.c:mips_next_pc
1998-04-16 17:56:11 +00:00
Frank Ch. Eigler 937ac38a3b * Changed one line in one C++ test case to hopefully
zap one group of persistent gdb testomat failures.

Mon Apr 13 22:32:51 1998 Frank Ch. Eigler <fche@cygnus.com>

	* gdb.c++/virtfunc.cc: Make extern "C" printf declaration pass
	more rigorous EGCS C++ error checking.
1998-04-14 02:39:44 +00:00
Jason Molenda baee3bc6e9 Fri Apr 10 22:38:12 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* gdb.base/help.exp:  Clean up `help set args' and `help show args'
        tests.
        * gdb.base/interrupt.exp:  Add "i*86-*-solaris2*" xfail for calling
        function when asleep.
        * gdb.base/signals.exp:  Add "i*86-*-solaris2*" xfails. Add comment
        for i*86 Linux and SVR4 signal handling problems.
        Remove linux xfail for `next to handler in signals_tests_1', fixed
        by recent infrun.c change.
        Limit backtrace to 10 frames to avoid timeout problems with infinite
        stack backtraces.
        Adjust expect pattern in `handle all print' test to match Apr 28 1997
        target.[ch] change.
1998-04-11 05:42:30 +00:00
Bob Manson eead61208d * lib/gdb.exp(gdb_test): Send multiline commands one at a time; wait
for a newline from gdb before continuing.
	(default_gdb_exit): Just look for y or n.
1998-03-31 08:42:55 +00:00
Stu Grossman de6fe3db5b * Makefile.in: Derive SHELL from configure.
* config/d10v/d10v.mt config/d30v/d30v.mt config/m32r/m32r.mt
	config/mn10200/mn10200.mt config/mn10300/mn10300.mt :  Remove -lm
	from SIM.  This prevents dependency checking of -lm (under NT
	native builds).  (It is automatically added by configure if it
	exists.)
	* doc/configure mswin/configure nlm/configure
	testsuite/gdb.base/configure testsuite/gdb.c++/configure
	testsuite/gdb.chill/configure testsuite/gdb.disasm/configure
	testsuite/gdb.stabs/configure testsuite/gdb.threads/configure:
	Regenerate with autoconf 2.12.1 to fix shell issues for NT native
	builds.
1998-03-24 16:44:10 +00:00
Doug Evans 4369e92453 * gdb.asm/{Makefile.in,configure.in,configure}: New files.
* gdb.asm/{asm-source.exp,asmsrc1.s,asmsrc2.s}: New files.
1998-03-13 22:43:18 +00:00
Angela Marie Thomas 2b9cac47f5 massive sanitization fixes 1998-03-13 13:09:32 +00:00
Doug Evans 681a9f4adb snapshot 1998-03-13 01:36:59 +00:00
Doug Evans 89d7d8094b regenerate 1998-03-13 00:36:03 +00:00
Doug Evans cd7da41008 configure script for gdb.asm, initial source debugging test. 1998-03-13 00:35:09 +00:00
Doug Evans b6f386f5de Makefile.in for gdb.asm. 1998-03-13 00:28:30 +00:00
Doug Evans b2a7abf2f5 * gdb.asm: New directory.
* configure.in: Configure it.
	* configure: Regenerate.
1998-03-13 00:25:36 +00:00
Doug Evans aeab18c927 keep gdb.asm 1998-03-13 00:22:00 +00:00
Mark Alexander be61d73cf3 * config/mn10300-eval.exp: New file to support MN10300 eval board. 1998-02-23 17:01:02 +00:00
Andrew Cagney b6b48d0313 * gdb.base/d10vovly.c (D10VTranslate): Map IMAP0 to low 128k of
on-chip insn memory and IMAP1 to upper 128k.
        (D10VCopy): Handle memory regions crossing 16k boundaries.
        (D10VCopy): Transfer data in 32 bit chunks.
1998-02-12 05:09:25 +00:00
Andrew Cagney 93854f7c7c Get overlay testsuite to work on m32r when image is being built with a
small data section (.sdata): Force _novrly variable into .data; stop
test variables being put into .sdata.
1998-02-06 03:26:11 +00:00
Fred Fish b7c05d37e2 * gdb.base/watchpoint.exp: Set "d10v*-*-*" clear_xfail for
"calling function with watchpoint enabled".
1998-01-23 15:36:12 +00:00
Fred Fish 34fddd75fa * gdb.base/break.exp (test_next_with_recursion): Remove
gdb_suppress_tests for d10v-*-*.
	* lib/gdb.exp (gdb_suppress_tests): Disable this function
	pending review of whether it is useful or not.
1998-01-22 22:13:07 +00:00
Mark Alexander 6720fa27e3 Add dve.exp. 1998-01-22 18:37:04 +00:00
Mark Alexander 4eb808df1e * gdb.base/funcargs.exp: Increase timeout for slow TX39 boards. 1998-01-20 21:12:35 +00:00
Mark Alexander e8f06427fd * config/dve.exp: New file to support Densan boards. 1998-01-19 18:31:47 +00:00
Mark Alexander 78b25a6752 * gdb.base/break.exp: Increase timeout for slow TX39 boards.
* config/dve.exp: New file to support Densan boards.
1998-01-19 16:56:35 +00:00
Jim Blandy 7c45d53214 Revert addition of test suite from Alcatel --- we don't have papers
for these.  Changes bracketed with tags jimb_pre_revert_pr13812,
jimb_post_revert_pr13812, so we can easily re-add them when we receive
papers.
1997-12-15 18:24:59 +00:00
Jim Blandy 7602287484 *** empty log message *** 1997-12-10 22:59:16 +00:00
Jim Blandy b2839a5602 * gch1494.ch, gch1494.exp: New tests, for PR 13812. 1997-12-10 22:58:03 +00:00
Andrew Cagney d440e85e43 Handle case where sizeof long != sizeof int when examining a union. 1997-11-25 02:28:05 +00:00
Bob Manson b82a1bdb8b * lib/gdb.exp(gdb_compile): If is_vxworks target feature is set,
define vxworks when building the testcase.

	* gdb.base/ptype.exp: Fix testnames to be unique.
	* gdb.base/radix.exp: Ditto.
	* gdb.base/term.exp: Ditto.
	* gdb.base/whatis.exp: Ditto.
	* gdb.c++/classes.exp: Ditto.

More misc fixes.
1997-09-24 20:10:07 +00:00
Bob Manson f33e31a61a * gdb.base/callfuncs.exp: Fix indentation.
* lib/gdb.exp(gdb_expect): Set remote_suppress_flag if
	suppress_flag has been set.
	(gdb_step_for_stub): Check for gdb,use_breakpoint_for_stub
	target feature.
1997-09-17 05:24:14 +00:00
Bob Manson 93a8f1e119 * gdb.stabs/weird.exp: Don't start gdb 'til after we've compiled
the testcase.
1997-09-16 00:46:12 +00:00
Bob Manson fc75bd970a * lib/gdb.exp(gdb_step_for_stub): New function.
(gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
	exists, reload the executable and do a "continue" instead of
	doing a jump.
	(runto_main): Use gdb_step_for_stub.

	* gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
 	tests to have unique names.
	* gdb.base/callfuncs.exp: Ditto.
	* gdb.base/commands.exp: Ditto.
	* gdb.base/default.exp: Ditto.
	* gdb.base/help.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/opaque.exp: Ditto.
	* gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
	similar tests.

	* gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
	* gdb.c++/cplusfuncs.cc: Ditto.
	* gdb.c++/virtfunc.cc: Ditto.

	* config/monitor.exp: Keep track of the last file we saw, rather
	than trying to get the info from gdb.

	* gdb.fortran/types.exp: Move comment to previous line.

Fixes for TCL8 miscellaneous problems, plus other changes.
1997-09-13 00:08:05 +00:00
Bob Manson eb16c04c8c * lib/gdb.exp(gdb_step_for_stub): New function.
(gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
	exists, reload the executable and do a "continue" instead of
	doing a jump.
	(runto_main): Use gdb_step_for_stub.

	* gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
 	tests to have unique names.
	* gdb.base/callfuncs.exp: Ditto.
	* gdb.base/commands.exp: Ditto.
	* gdb.base/default.exp: Ditto.
	* gdb.base/help.exp: Ditto.
	* gdb.base/list.exp: Ditto.
	* gdb.base/opaque.exp: Ditto.
	* gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
	similar tests.

	* gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
	* gdb.c++/cplusfuncs.cc: Ditto.
	* gdb.c++/virtfunc.cc: Ditto.

	* config/monitor.exp: Keep track of the last file we saw, rather
	than trying to get the info from gdb.

	* gdb.fortran/types.exp: Move comment to previous line.

Fixes for TCL8 miscellaneous problems.
1997-09-13 00:07:21 +00:00
Bob Manson 8e88a52215 * *.exp: The end-all be-all of quoting fixes. Ha.
At least I hope so.
1997-09-10 22:02:40 +00:00
Bob Manson eaac098bd3 * config/sparclet.exp: Detect gratuitous change to sparclet gdb
target mode.
1997-09-03 02:56:30 +00:00
Bob Manson dbd850bb60 Fix missing global verbose declaration. grrrr. this is NOT
right.
1997-09-03 00:29:03 +00:00
Bob Manson 0424a0941b * pr-9946.exp: Ditto.
* gch1280.exp: Ditto.
	* gch1272.exp: Ditto.
1997-08-21 17:34:28 +00:00
Bob Manson 7376c77b93 * enum.exp: More quoting fixes.
*sigh*
1997-08-21 17:31:58 +00:00
Bob Manson 398e180ae9 Fix quoting. 1997-08-13 04:53:09 +00:00
Bob Manson 07ce0e49de Fix quoting. 1997-08-13 04:50:07 +00:00
Bob Manson bc1e11e9d5 * tests2.exp: Fix quoting.
* tests1.exp: Ditto.
1997-08-13 04:49:25 +00:00
Bob Manson 9039701bda * lib/gdb.exp(get_debug_format): Don't cause the testsuite to fail
if we can't get a debug format from GDB (we may be testing an
 	older GDB). Use a 10 second timeout when checking for the format.

	* gdb.stabs/weird.exp: Fix quoting.
1997-07-04 01:04:45 +00:00
Bob Manson 6d2f93f855 * config/sparclet.exp: Renamed sparclet-loader.c to stub-loader.c. 1997-07-03 22:38:51 +00:00
Bob Manson 2255614907 * config/arm-ice.exp: New file. 1997-07-01 01:33:58 +00:00
Bob Manson a6d380b997 * gdb.base/overlays.exp: Preliminary fixes; temporarily disabled
until it has been modified to work with the new testsuite.

	* gdb.*/*.exp: Instead of causing 1 unresolved test when the
 	testcase won't compile, cause all of the testcases in the file to
 	fail instead.

	* lib/gdb.exp(gdb_suppress_entire_file): New procedure.
	(gdb_clear_suppressed): New procedure.
	(gdb_stop_suppressing_tests): Only clear suppress_flag if
	it contains a positive value.
1997-06-30 04:24:17 +00:00
Bob Manson 4ea71e9de9 Check in correct file (config/m32r-stub.exp) 1997-06-29 23:26:33 +00:00
Bob Manson b14f3a01ff * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature. 1997-06-29 04:05:41 +00:00
Bob Manson 3128c5978f * gdb.c++/virtfunc.exp: Remove setting of libs variable. 1997-06-28 20:32:31 +00:00
Fred Fish 70742cd831 * lib/gdb.exp (setup_xfail_format): New function.
(get_debug_format): New function to get debug format.
	(debug_format): New global variable to hold last value set
	by get_debug_format.
	* gdb.base/list.exp: Call get_debug_format and expect some
 	tests to fail for DWARF 1 and COFF formats.
	* gdb.c++/ptype.exp: Ditto.
	* gdb.c++/classes.exp: Ditto.
	* gdb.c++/cplusfuncs.exp: Ditto.
	* gdb.c++/inherit.exp: Ditto.
	* gdb.c++/templates.exp: Ditto.
	* gdb.c++/virtfunc.exp: Ditto.
1997-06-28 06:03:43 +00:00
Bob Manson 5e7be5310d * lib/gdb.exp(default_gdb_exit): Don't give an error if the remote
host doesn't have a currently-open connection.

	* config/sparclet.exp: Cleanups and fixes to make it generic for
 	any gdb stub target. Handle cases where gdb doesn't respond when
 	interrupted in a sane fashion.

	* config/m32r.exp: Load sparclet.exp instead of trying to do the
 	same thing in a totally different way.

	* config/monitor.exp: Pass in timeouts to gdb_expect instead of
 	setting "timeout".
	(gdb_start): We set the global gdb_prompt variable in
 	default_gdb_init now.
1997-06-25 16:29:59 +00:00
Fred Fish 677a92a07d Fix a "ninemoons" email address that slipped in. 1997-06-22 16:40:16 +00:00
Fred Fish 41438a392a * gdb.base/printcmds.exp: Fix "check for floating addition"
regexp to accept results within approx +/- .01 of exact value.
	* lib/gdb.exp (gdb_test): Remove unused expect_out global decl.
1997-06-22 16:17:49 +00:00
Bob Manson 283e535d3f (gdb_expect): Add optional timeout parameter, and add timeout
value to various calls.
	(gdb_suppress_tests): Only give one warning message per group.
1997-06-19 04:36:04 +00:00
Bob Manson 585a4b7b35 * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_init
properly.
1997-06-18 18:13:19 +00:00
Bob Manson 66e38fb282 lib/gdb.exp(gdb_expect): Handle getting a value for $timeout
more gracefully.
1997-06-18 05:10:11 +00:00
Bob Manson 17b59a7407 * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode
as global variables.
1997-06-17 20:11:04 +00:00
Bob Manson 77f3ac77b5 * lib/gdb.exp: Close connection to remote host if gdb doesn't
initialize.
	(default_gdb_init): New procedure; allow gdb_init to be overridden
 	by a target configuration file.
	(gdb_expect): Pass the timeout to remote_expect.

	* config/dos.exp(dos_wait): Add timeout parameter.

	* lib/remote.exp(remote_expect): Add timeout parameter.
	(remote_wait): Ditto.
	(standard_wait): Ditto. Also give up if the program outputs
	more than 512,000 bytes.

	* config/vxworks.exp: Use timeout parameter instead of setting
	timeout variable.
	* config/dos.exp: Ditto.
	* config/ddb.exp: Ditto.
	* lib/mondfe.exp: Ditto.
	* lib/rlogin.exp: Ditto.
	* lib/telnet.exp: Ditto.
	* config/base68k.exp: Ditto.
	* config/i386-bozo.exp: Ditto.
	* config/gdb-comm.exp: Ditto.
	* config/gdb_stub.exp: Ditto.
	* config/i960.exp: Ditto.
	* config/ddb-ether.exp: Ditto.
	* config/sim.exp: Ditto.

	* lib/g++.exp(g++_init): Use g++_include_flags instead of making
	up the includes ourselves.
1997-06-17 00:08:20 +00:00
Bob Manson 45c795f7c0 * config/monitor.exp(gdb_load): Fix typo in regexp.
Fixes last night's tcl error mesages.
1997-06-14 16:25:14 +00:00
Bob Manson 59df24f7c2 * gdb.base/funcargs.exp: Remove spurious suppress tests call. 1997-06-13 03:59:40 +00:00
Bob Manson 43f396d007 * config/monitor.exp(gdb_target_monitor): Call gdb_file_cmd
here. Call gdb_target_exec before rebooting the target, to make
 	sure the connection to the target is closed.
	(gdb_load): Pass the name of the executable to gdb_target_monitor.
	Don't call gdb_file_cmd here; let gdb_target_monitor do it.

	* config/gdbserver.exp: Pass the executable being loaded to
 	gdb_target_monitor. Don't call gdb_file_cmd here; let
 	gdb_target_monitor do it.

	* gdb.disasm/hppa.exp: Don't use exec_output.
1997-06-04 00:04:43 +00:00
Bob Manson 9ab2431f84 Added proelf. 1997-06-03 22:05:24 +00:00
Bob Manson 29a76b68a6 * gdb.c++/virtfunc.exp(gdb_virtfunc_restart): Make sure we run
test_calls after restarting.

	* lib/gdb.exp(gdb_run_cmd): Send jump command again after
 	reloading.

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

	* gdb.base/setshow.exp: Check for use_gdb_stub.

	* gdb.base/break.exp: Fix continue until exit test for the gdb
 	stub case.
	* gdb.base/langs.exp: Ditto.

	* config/monitor.exp(gdb_load): Handle gdb_sect_offset and
 	gdb_load_offset. If we weren't given a file to load, figure out
 	what the current file is and use it.
1997-05-23 22:30:29 +00:00
Bob Manson 1e0d962e4f * config/monitor.exp(gdb_load): Handle gdb_sect_offset and
gdb_load_offset.
1997-05-23 21:49:12 +00:00
Bob Manson 81740ee442 * config/i386-bozo.exp: New file. 1997-05-23 20:28:54 +00:00
Bob Manson 19d31cb3e8 Make sure we keep the old value of timeout set properly. 1997-05-23 06:15:46 +00:00
Bob Manson d8b63305a2 Don't look at timeout unless it exists. 1997-05-23 06:10:08 +00:00
Bob Manson c55809ce2d * lib/gdb.exp(gdb_expect): Look for gdb,timeout target
feature.
1997-05-23 06:05:12 +00:00
Bob Manson de8ea54f90 * config/proelf.exp: New entry. 1997-05-23 02:06:18 +00:00
Bob Manson fb07c69693 * lib/gdb.exp: Remove spurious .* patterns at the beginning
of regexps.
1997-05-22 06:00:28 +00:00
Bob Manson ee9a6181ff * gdb.base/watchpoint.exp: Don't run the test_stepping
tests if gdb can't call functions on the target.
1997-05-22 05:56:31 +00:00
Bob Manson 3596a9fcb0 add new file. 1997-05-22 05:55:41 +00:00
Bob Manson 28558bdb36 * gdb.base/setshow.exp: Don't run the set prompt tests if
the board has gdb_prompt set.
1997-05-22 04:24:23 +00:00
Jeff Law c86924cf7e * gdb.base/a2-run.exp: Change "gdb,noargs" to just "noargs".
* gdb.base/commands.exp: Likewise.
        * gdb.base/setshow.exp: Likewise.
1997-05-20 15:00:01 +00:00
Bob Manson 2aec653f17 * config/monitor.exp(gdb_start): Look for gdb_prompt target
feature.

	* config/i960.exp: New file.
1997-05-19 22:40:00 +00:00
Mark Alexander 1c877a7aae Add h8300.exp. 1997-05-08 05:25:53 +00:00
Michael Snyder a50c4c7cd7 Tue May 6 13:53:05 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* Add overlay tests to gdb.base/.Sanitize
1997-05-06 20:53:53 +00:00
Michael Snyder 6a85a617df Mon Apr 28 17:27:40 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* top.c: change "to enable to enable" to "to enable" in a couple
        of help strings.
1997-04-29 00:32:03 +00:00
Jeff Law 15ef24c83e * gdb.base/callfuncs.exp: Mark some tests as expected to fail
on the mn10300.
1997-04-24 20:53:11 +00:00
Fred Fish c31ffb3b38 * gdb.base/a2-run.exp: Add arm-*-coff setup_xfails for cases
where the test executable is run with explicit args.
      * gdb.base/default.exp: Handle arm-*-coff case for "info float".
1997-04-22 14:46:58 +00:00
Fred Fish b0c4d379ff * gdb.base/run.c: Use FAKEARGV to build test executable that
does not require a command line arg, since most simulators
      don't currently support passing such an arg into the simulated
      program.
      * gdb.base/commands.exp: Change tests to insert the proper
      value as the arg to the first recursive factorial call.  Change
      compilation line to define FAKEARGV at compile time.
1997-04-21 21:56:32 +00:00
Bob Manson 5f4c2f2db9 * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall):
Don't call gdb_test when the command doesn't return to a gdb prompt.

Oops.
1997-04-09 05:54:15 +00:00
Bob Manson 614fb1b421 Fix typo. 1997-04-09 02:35:38 +00:00
Bob Manson 1a84b8b1b4 * lib/gdb.exp(gdb_stop_suppressing_tests): Don't print gratiutious
"Tests restarted" messages.
1997-04-09 02:35:07 +00:00
Michael Snyder df04bd49f6 Remove mention of .Sanitize from ChangeLogs 1997-04-08 23:49:14 +00:00
Jeff Law 69f80b9d40 * gdb.disasm/mn10300.exp: Fix buglets in "other" tests. 1997-04-08 22:50:33 +00:00
Michael Snyder 3ac09675e8 * .Sanitize: remove sanitization for m32r. 1997-04-08 00:55:42 +00:00
Michael Snyder 1397dff873 Mon Apr 7 17:46:23 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* .Sanitize: remove sanitization for M32R target.
1997-04-08 00:51:12 +00:00
Michael Snyder 320b1d82e4 Thu Apr 3 15:21:26 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/help.exp: update help msg for INFO ADDR; add help test
        for INFO SYMBOL; add help tests for OVERLAY commands.
        * gdb.base/default.exp: add tests for INFO SYMBOL command;
        add tests for OVERLAY commands
        * gdb.base/overlays.c overlays.exp foo.c bar.c baz.c grbx.c ovlymgr.h
        d10v.ld m32r.ld d10vovly.c m32rovly.c: add test case for overlays.
        * gdb.base/sigall.c: add usestubs code frag
        * gdb.base/watchpoint.c: turn on complex watchpoint test for M32R.
1997-04-03 23:24:30 +00:00
Bob Manson ddb594ac2a * lib/gdb.exp(gdb_suppress_tests): Add explanation for subsequent
failures.
	(gdb_stop_suppressing_tests): Note that tests have restarted.
1997-04-03 17:47:33 +00:00
Bob Manson 96a6f034a6 * config/h8300.exp: New file. 1997-04-03 03:05:12 +00:00
Bob Manson 5cb6d16506 * gdb.c++/virtfunc.exp: Restart gdb in a sane fashion. 1997-03-29 22:08:56 +00:00
Bob Manson 81ad11036d * gdb.base/scope.exp: It's now init0(), not init().
* gdb.base/scope0.c: For now, change init() to be init0().
1997-03-29 21:00:14 +00:00
Bob Manson d848223548 * config/monitor.exp: Use gdb_serial in preference to serial
or netport.

	* lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host
 	and it's not already set.

	* gdb.base/setshow.exp: Only test the run command if the target
 	isn't using a stub and if it supports argument passing.
1997-03-29 19:24:07 +00:00
Jeff Law 292a8231f4 * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
* gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
        * gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
disassembler testsuite for the mn10300.
1997-03-24 21:48:36 +00:00
Bob Manson 4d400231d9 Moved change from gdb_target_udi to gdb_start. 1997-03-23 04:41:14 +00:00
Bob Manson fb9eb1371d * config/udi.exp(gdb_target_udi): Make sure UDICONF is set
properly before starting gdb.
1997-03-23 04:01:48 +00:00
Jeff Law 593f97fe13 Fix minor sanitization problems 1997-03-20 20:30:29 +00:00
Bob Manson 5834946d5a Removed, no longer used. 1997-03-11 19:45:29 +00:00
Bob Manson 968cad7633 * config/monitor.exp: Make sure we disconnect from the target.
Also, try a reboot/reload cycle instead of failing if the
	load fails.
1997-03-11 19:45:02 +00:00
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