Commit Graph

20 Commits

Author SHA1 Message Date
Michael Chastain b729099eb3 2003-11-23 Michael Chastain <mec@shout.net>
Fix PR testsuite/1463.
	* gdb.base/structs.exp (start_structs_test): Call
	get_debug_format before using the debug format.
2003-11-23 17:48:00 +00:00
Andrew Cagney d422fe19c6 2003-11-22 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (gdb_test_multiple): Add simple example.
	* gdb.base/structs.exp: Use gdb_test_multiple.
2003-11-23 01:09:19 +00:00
Andrew Cagney 6882279b13 2003-11-20 Andrew Cagney <cagney@redhat.com>
* gdb.base/structs.exp: Handle and recover from internal errors.
	Replace "foo${n}" with "foo<n>" in test messages.
2003-11-20 18:03:48 +00:00
Andrew Cagney e53890ae03 2003-11-20 Andrew Cagney <cagney@redhat.com>
* gdb.base/structs.exp: Update copyright.  Rewrite.
	* gdb.base/structs.c: Update copyright.  Rewrite.
2003-11-20 17:11:55 +00:00
Andrew Cagney b496706087 Oops, accidental commit, reverting. 2003-11-17 15:09:19 +00:00
Andrew Cagney 853d6e5b6d 2003-11-17 Andrew Cagney <cagney@redhat.com>
* lib/gdb.exp (compiler_info): New global.
	(test_compiler_info): New function.
	(get_compiler_info): Set compiler_info.
	* lib/compiler.c, lib/compiler.cc: Add copyright.  When GNUC, set
	"compiler_info" to gcc-<major>-<minor>.
2003-11-17 15:00:20 +00:00
Jeff Law 634d57ec50 * gdb.base/selftest.exp (backtrace through signal handler): Remove
hppa*-*-hpux* expected failure.
	* gdb.base/structs.exp (do_function_calls): Similarly.

	* gdb.c++/annota2.exp (watch triggered on a.x): Handle hardware
	watchpoints.
2002-01-07 19:20:10 +00:00
Andrew Cagney 9fbfe2dc64 Fix PR gdb/66.
* gdb.base/structs.exp: Replace skip for a29k with skip for
gdb,cannot_call_functions.
* gdb.base/call-ar-st.exp: Remove references to a29k in comments.
* gdb.base/callfuncs.exp: Ditto.
* gdb.base/call-rt-st.exp: Ditto.
* gdb.base/call-strs.exp: Ditto.
* gdb.base/callfwmall.exp: Ditto.
* gdb.base/scope.exp: Obsolete xfail a29k.
* gdb.c++/misc.exp: Ditto.
* gdb.c++/cplusfuncs.exp: Ditto.
* gdb.base/ptype.exp: Ditto.
* gdb.base/printcmds.exp: Ditto.
* gdb.base/opaque.exp: Ditto.
* gdb.base/list.exp: Ditto.
* gdb.base/funcargs.exp: Ditto.
* gdb.base/default.exp: Ditto.
2002-01-06 14:42:39 +00:00
Jim Blandy f2e54a8073 If GDB says it can't find the struct the function returned, report
those tests as `unsupported'.
* gdb.base/structs.exp (call_struct_func): New function.
(do_function_calls): Use call_struct_func to call the functions
returning structs.
2001-12-07 21:21:34 +00:00
Kevin Buettner b6ba6518e9 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
Jason Molenda a0b3c4fd32 import gdb-1999-08-02 snapshot 1999-08-02 23:48:37 +00:00
Jason Molenda 74cf13956f import gdb-1999-06-28 snapshot 1999-06-28 23:04:32 +00:00
Stan Shebs 071ea11e85 Initial creation of sourceware repository 1999-04-16 01:34:07 +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
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 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
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 787f622077 Major revision to testsuites for cross-testing and DOS testing support. 1997-01-29 09:40:31 +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
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