Commit Graph

2442 Commits

Author SHA1 Message Date
Stan Shebs c429bbab3a * gdb.base/default.exp: xfail no-stack backtraces for h8300,
restart GDB for h8300 after a continue.
	(return): Add pattern to match a29k-udi behavior.
	* gdb.base/nodebug.exp: Remove obsolete comment.
	* gdb.base/regs.exp: New file, testing of register displays.
	* gdb.base/return.exp: Fix typo in reference to $objdir.
	* gdb.base/whatis.exp: Always start with a fresh GDB.
1995-01-26 00:02:46 +00:00
Jim Kingdon 6535b97b3f * lib/gdb.exp (gdb_test): Remove catch from around the send. The
code following the catch silently ignored some errors; without the
	catch they should be thrown like any other tcl error.  Also, the
	catch used "" instead of {} which meant all the callers who wanted
	to include one of the characters "[]$ had to quote it an extra time.
	* gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
	ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
	demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
	Remove extra quoting.
1995-01-25 03:33:25 +00:00
Jeff Law af2e6b157e * gdb.base/commands.exp: Make test names unique; every test either
passes or fails.  Update some comments.
1995-01-24 05:16:25 +00:00
Jim Kingdon e1a6b67ab3 * gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems. 1995-01-21 23:38:43 +00:00
Jim Kingdon 9f538e3e9d add new tests sigall.c and sigall.exp 1995-01-21 23:30:43 +00:00
Jim Kingdon f34c87666e * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
	gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
	gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
	it makes the tests harder to understand and confuses test-o-matic.
	The preferred style is that each test provides a PASS or a FAIL,
	and has a unique message (e.g. "continue #54" not just "continue")
	which is the same for the pass and the fail.
	* gdb.fortran/exprs.exp, gdb.fortran/types.exp,
	gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
	to lib/gdb.exp.
	* gdb.base/printcmds.exp: Use test_print_accept.  Remove
	prt_accept which was basically the same thing.  Likewise for
	test_print_reject and prt_reject.
	* lib/gdb.exp (test_print_reject): Add some more error message
	patterns to match from the former printcmds.exp (prt_reject).
	* gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
	One defect of the passcount stuff is that some of it failed to
	report XPASS where appropriate.
	* gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
	stuff before and after arg in expected pattern.
	(test_paddr_operator_functions): Re-do test without print_addr_of;
	this is the only test which seems to want extra stuff there.
1995-01-20 22:26:33 +00:00
Jim Kingdon 29f25f6f69 * gdb.base/nodebug.exp: Add tests to check that "print", "whatis"
and "ptype" work on variables in files compiled without -g.
	Replaces commented out "maint print msymbol" tests.
1995-01-17 16:22:23 +00:00
Jim Kingdon 2d593cdda9 * gdb.base/sigall.exp (test_one_sig): Attempt to recover if
"get signal $thissig" test fails.
1995-01-14 18:23:51 +00:00
Jim Kingdon 592355645c * gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
compiler warning with dec alpha compiler.

	* gdb.base/commands.exp (if_while_breakpoint_command_test): Remove
	extra \n from gdb_test call (this explains why the prompt test
	that I removed yesterday was there).
	(user_defined_command_test): Remove extra \n and prompt test.

	* gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST
	doesn't exist.  Likewise if SIGIO == SIGPOLL, pretend SIGPOLL
	doesn't exist.
	* gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL.
	Also remove alpha workaround, which turns out to be because
	SIGABRT == SIGLOST.
1995-01-12 20:12:07 +00:00
Jim Kingdon 3074a46dbf * gdb.base/sigall.exp: Add workaround for alpha weirdness. 1995-01-12 16:41:09 +00:00
Jim Kingdon 4a9758edbc * gdb.base/help.exp: Don't test "help show". 1995-01-12 06:17:40 +00:00
Jim Kingdon 8bc8001669 * gdb.base/help.exp: Replace most of docstring for "define" with ".*". 1995-01-11 20:45:59 +00:00
Jim Kingdon 4a2170f0ea * gdb.base/a1-selftest.exp: Don't test "maint dump-me". That test
was a vestige of the manual TESTSTRATEGY, and the purpose of it
	was to make sure that gdb can read a core file.  But (a) the "read
	the corefile" part didn't make it to a1-selftest.exp, we just
	delete the corefile after creating it, and (b) we test reading
	corefiles in corefile.exp anyway.  Also, this test left around a
	xgdb process on Solaris.

	* gdb.base/corefile.exp: Also test backtrace.
1995-01-11 20:42:33 +00:00
Jeff Law b0c2974980 * gdb.base/commands.exp: Test a simple user defined command with
arguments and if/while statements; verify the full user command is
	printed by "show user".
1995-01-11 07:43:53 +00:00
Jeff Law cba9d85e01 * gdb.base/commands.exp: Test if/while commands as part of a
breakpoint command list; verify they appear in breakpoint
	information.
1995-01-11 07:16:54 +00:00
Jim Kingdon 7454930699 * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather
than by dividing by zero.
1995-01-11 05:53:49 +00:00
Jim Kingdon 07112465eb * gdb.base/help.exp: Replace most of docstrings for "info signals"
and "signal" with ".*".
1995-01-09 21:32:53 +00:00
Jim Kingdon d71511fbd3 * TODO: Add note about "handle all nostop".
* gdb.base/{sigall.c, sigall.exp}: New test.
	* gdb.base/Makefile.in: Add it.
1995-01-08 23:03:28 +00:00
Stan Shebs 26e4dcae58 * lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
when invoking GDB, suppresses any windowing interface.
1995-01-06 01:37:18 +00:00
Jim Kingdon 9b826d6df6 * gdb.base/list.exp (test_forward_search): Set timeout higher
when we'll be getting lots of output from gdb.

	* gdb.base/a1-selftest.exp: Move code that was inside expect -re
	"init_malloc" to after the expect statement.  Run it if that
	regexp is taken, but also for two others which happen if source
	cannot be found.
1994-12-22 00:32:15 +00:00
Peter Schauer 633e623803 * gdb.base/list.exp: Correct some alternate expect patterns
to reflect changes in list1.c.
1994-12-19 08:37:53 +00:00
Stan Shebs 3046ecae1f * gdb.base/a1-selftest.exp: Change initial stepping to know about
additional line of code that was added.
1994-12-02 07:17:28 +00:00
Peter Schauer 68906e4c3f * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtrace
through signal handler.
1994-10-29 09:58:01 +00:00
Jim Kingdon 62433a301a * gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
bug involving using inferior_pid to figure out whether to select a
	frame.
1994-10-09 14:52:02 +00:00
Jeff Law 9fa1bd1f40 * gdb.base/commands.exp: New tests for if/while commands. 1994-09-08 06:02:58 +00:00
Ian Lance Taylor 2c5d4a3443 * configure.in: Change i386 to i[345]86.
* gdb.base/configure.in: Likewise.
	* gdb.c++/configure.in: Likewise.
	* gdb.chill/configure.in: Likewise.
1994-08-24 17:18:05 +00:00
J.T. Conklin b933a608ed Obsolete file. 1994-07-29 00:41:04 +00:00
J.T. Conklin 9f70e45075 * gdb.base/configure.in: Look for makefile fragments in ../config.
Recognize i386-*-netware.
* gdb.c++/configure.in: Likewise.
1994-07-28 20:38:45 +00:00
J.T. Conklin a488d496ec * gdb.base/opaque.exp: use runto instead of messing around with
breakpoints.
1994-07-25 23:34:23 +00:00
J.T. Conklin 316567f0ff Upgraded to use gdb_test. 1994-07-22 21:14:03 +00:00
J.T. Conklin fafc71bab7 Use gdb_run_cmd 1994-07-20 17:38:05 +00:00
J.T. Conklin 27b4d34f08 * gdb.base/funcargs.exp: Use gdb_run_cmd to start program. 1994-07-19 22:57:29 +00:00
J.T. Conklin c5ea7f99a4 * gdb.base/bitfields.exp: Use gdb_run_cmd to start program. 1994-07-19 22:19:25 +00:00
J.T. Conklin 940423347b Mostly converted to use gdb_test proc. 1994-07-19 21:42:58 +00:00
J.T. Conklin 7e63dc5fb2 This config file didn't belong here 1994-07-19 21:33:15 +00:00
J.T. Conklin 3e304ddfab * gdb.base/bitfields.exp: Simplify by using delete_breakpoints and
gdb_test.
* lib/gdb.exp (gdb_test): if match times out, don't call fail if
  message is "".
1994-07-19 17:33:52 +00:00
J.T. Conklin 98f6da4f02 * gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
return,signals,twice}.exp: Handle non-existant binaries
  consistantly.
1994-07-18 22:27:07 +00:00
J.T. Conklin 8f2d75fcf4 * gdb.base/corefile.exp: Execute coremaker to generate core dump.
* gdb.base/Makefile.in: Don't try to generate a core dump, we
  might testing a cross development system.
1994-07-18 19:25:50 +00:00
J.T. Conklin 29a3db493f * gdb.base/Makefile.in: Added support for systems that name core
files by appending "core" to the program name.
* gdb.base/a1-selftest.exp: Likewise.
1994-07-12 19:33:37 +00:00
Stan Shebs 08df328495 Various updates 1994-07-12 01:43:09 +00:00
Stan Shebs 48f6098e1d Wed Jun 15 12:10:10 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (site.exp): Don't insert host_os, etc.
	(just-check): Just use RUNTEST with RUNTESTFLAGS only.
	(distclean): Check existence of subdir.
	* gdb.base/configure.in (hppa*-*-hpux*): Recognize.
	* gdb.base/Makefile.in: General cleanup and simplification.
	Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
	to build executables.	Use default rule to build .o files.
	(EXPECT, RUNTEST, CC): Fix relative pathname.
	(site.exp): Don't insert host_os, etc.
	* gdb.base/signals.c (main): Don't call signal unless SIGALRM
	and/or SIGUSR1 defined.
	* gdb.base/watchpoint.c: Don't include stdio.h a second time.
	* gdb.c++/Makefile.in: General cleanup and simplification.
	Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
	(CFLAGS): Remove.
	(EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
1994-06-15 19:31:19 +00:00
Stan Shebs ef44eed173 Reorganized GDB tests - base 1994-06-07 01:57:15 +00:00