Commit Graph

338 Commits

Author SHA1 Message Date
Michael Snyder 0521c418a2 2001-08-02 Michael Snyder <msnyder@redhat.com>
* gdb.base/completion.exp: Remove the symbol "a64l" from
	the expect string; this is target-specific, and not related
	to what is being tested.
2001-08-06 22:08:12 +00:00
Michael Snyder c2b8fa57f7 2001-07-25 Michael Snyder <msnyder@redhat.com>
* gdb.base/consecutive.exp: New file.  Test stepping over
	breakpoints on consecutive instructions.
	* gdb.base/consecutive.c: New file.
2001-07-25 23:16:40 +00:00
Michael Snyder c70819faea 2001-07-25 Michael Snyder <msnyder@redhat.com>
* gdb.base/call-rt-st.exp: Use double-backslash to quote
	curly braces in regular expressions.
2001-07-25 22:45:25 +00:00
Michael Snyder 2b1a1355c5 2001-07-25 Michael Snyder <msnyder@redhat.com>
* gdb.base/ending-run.exp: Accept "Program exited normally" as
	legitimate output from stepping out of main.
2001-07-25 22:41:43 +00:00
Stephane Carrez 7e5a932280 * gdb.base/long_long.exp: Detect size of pointer. Take into
account 2-byte pointers when testing for p/a results.
2001-07-17 22:19:49 +00:00
Stephane Carrez de58f10fe4 * gdb.base/remote.c (RANDOM_DATA_SIZE): New define, defaults to 48K
and defined to 1K for m68hc11.
	(random_data): Reduce table to 1K for embedded platforms (68hc11).
	* gdb.base/remote.exp (get_sizeof): New function from sizeof.exp.
	(sizeof_random_data): New variable to tell the size of the data table;
	don't test past this size; always run to main.
2001-07-17 21:47:19 +00:00
Stephane Carrez d6f5fea1d2 * gdb.base/return2.exp: return of long long and double fails for
68HC11; don't execute these tests on that platform.
	* gdb.base/return.exp: Return of a double fails for 68hc11.
2001-07-16 18:49:43 +00:00
Stephane Carrez c477543d3a * call-ar-st.exp: Use gdb_skip_float_test to avoid executing
tests that print a float.
	* call-rt-st.exp: Likewise.
2001-07-16 18:44:23 +00:00
Mark Kettenis 63cf1c791c * gdb.base/so-impl-ld.exp: Remove stray space that prevented
running this test on Linux.
2001-07-12 13:07:32 +00:00
Michael Chastain 112f9ab535 2001-06-24 Michael Chastain <chastain@redhat.com>
* gdb.base/arithmet.exp: Remove some tests to make all test names
	unique.
2001-07-09 21:42:52 +00:00
Michael Snyder 4c8a82de3f 2001-07-02 Michael Snyder <msnyder@redhat.com>
* gdb.base/completion.exp: Don't assume that break.c is the only
	source file that may contain functions named "marker".
2001-07-06 22:51:21 +00:00
Michael Snyder d85da69f69 2001-07-02 Michael Snyder <msnyder@redhat.com>
* gdb.base/corefile.exp: Quote the curly braces in regexp.
2001-07-02 21:54:14 +00:00
Michael Chastain b4127474dc 2001-06-22 Michael Chastain <chastain@redhat.com>
* gdb.base/arithmet.exp: Use gdb_test instead of send_gdb/gdb_expect.
	This is operationally compatible with the previous version.
2001-06-23 05:22:46 +00:00
Michael Chastain f2d8c86d38 2001-06-10 Michael Chastain <chastain@redhat.com>
* gdb.base/exprs.exp: Remove a duplicate test.
2001-06-11 16:06:46 +00:00
Jim Blandy fd661517de * gdb.base/return2.exp (main): Use values to test float and double
returns that are not NaN's, to avoid being confused by IEEE
comparison rules.
2001-06-07 03:42:41 +00:00
Jim Blandy b18bced9af * gdb.base/exprs.exp ("sizeof (long long) > sizeof (long) (true)"):
Don't forget to match the GDB prompt.
2001-06-06 18:25:46 +00:00
Jim Blandy 5b41e5f013 * gdb.base/help.exp: Update pattern to exclue `print-load-map'
command.
2001-06-05 05:03:44 +00:00
Kevin Buettner 015e046f80 * gdb.base/annota1.exp (info break): Match four or more spaces
after "Address".
2001-06-01 02:50:17 +00:00
Kevin Buettner 5ea2a32c88 * gdb.base/completion.exp (INPUTRC): Set this environment variable
to a known value in order to get consistent results regardless
	of the setting of INPUTRC or the presence or contents of .inputrc.
2001-05-30 02:54:41 +00:00
Jim Blandy 400071f14b Don't assume that short is shorter than int.
* gdb.base/exprs.exp ("print unsigned short == (~0)"): Don't
assume that shorts are smaller than ints.  On a 16-bit machine,
this isn't true.
("print unsigned char == (~0)"): Add test that verifies that ~0,
an int, is not equal to ~0 stored in an unsigned char.  This tests
the same thing that the previous test meant to, but works on
16-bit machines, too.
("print unsigned char != (~0)"): Same test, complemented.
2001-05-25 00:01:29 +00:00
Michael Snyder 2caa35cb88 2001-05-21 Michael Snyder <msnyder@redhat.com>
* gdb.base/long_long.exp: Allow for targets with 4-byte short.
2001-05-24 18:30:10 +00:00
Kevin Buettner f6dc23a931 * gdb.base/finish.exp (finish_void): Revise pattern for
stopping on the call statement to not permit stopping at
	the start of the instructions comprising the call sequence.
2001-05-24 01:14:15 +00:00
Michael Chastain 7dbd117d87 2001-05-19 Michael Chastain <chastain@redhat.com>
* gdb.base/callfuncs.exp: Make all test names unique.
	* gdb.base/commands.exp: Make all test names unique.
	* gdb.base/condbreak.exp: Make all test names unique.
	* gdb.base/dbx.exp: Make all test names unique.
	* gdb.base/default.exp: Make all test names unique.
	* gdb.base/define.exp: Make all test names unique.  Conform some FAIL
	and TIMEOUT messages to their corresponding PASS message.
	* gdb.base/ending-run.exp: Make all test names unique.
	* gdb.base/long_long.exp: Remove duplicate test.
2001-05-23 19:04:13 +00:00
Kevin Buettner 6b0b0a9efb * gdb.base/finish.exp (finish_void): Allow "finish" command to
stop on the call statement as well as the statement after the
	call.
2001-05-22 00:25:27 +00:00
Elena Zannoni a602d56b17 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Revamp test. Make it execute on all
       platforms.
2001-05-11 19:53:38 +00:00
Jim Blandy 5a360f470b * restore.c: Make the code of caller0 correspond to its comment. 2001-05-07 00:05:15 +00:00
Kevin Buettner 3207ec212c Add new step-line test. 2001-03-27 01:32:45 +00:00
Orjan Friberg b7844da629 2001-03-16 Orjan Friberg <orjanf@axis.com>
* gdb.base/signals.exp: Set count to 0 explicitly.
2001-03-16 08:57:44 +00:00
David Taylor fc33412a6a * gdb.base/annota1.exp: Move test of isnative to earlier in the
file -- to prevent failing when the compile fails but we have no
 	intention of running the tests anyway.

	* gdb.base/long_long.exp: Test target_info for no_long_long, skip
	tests if set.

	* gdb.base/maint.exp: Support 2 byte integers as well as 4 byte
 	integers.

	* gdb.c++/ctti.exp: Skip tests if skip_cplus_tests returns true.
	* gdb.c++/namespace.exp: Ditto.

Fix PR gdb/16.
2001-03-08 21:09:23 +00:00
Orjan Friberg 1b3c55407c 2001-02-26 Orjan Friberg <orjanf@axis.com>
* gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
	* gdb.base/pointers.exp: Relax pattern match of decimals.
2001-03-07 17:21:43 +00:00
Kevin Buettner b6ba6518e9 Update/correct copyright notices. 2001-03-06 08:22:02 +00:00
Michael Snyder d8f92b1f63 2001-02-27 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/varargs.c (find_max_double): Fix printf format string:
	first arg is int not float.
2001-02-28 01:54:47 +00:00
Michael Snyder 40f33b9b8e 2001-02-22 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/reread.exp: Unsupported for non-native targets;
	doesn't work for remote debugging.
2001-02-23 19:04:40 +00:00
Fernando Nasser 9b0c4aebb4 2001-02-19 Fernando Nasser <fnasser@redhat.com>
From  Drew Moseley  <dmoseley@redhat.com>
        * gdb.base/ending-run.exp: Properly handle the BSP state when
        stepping past the end of main.
2001-02-19 21:48:52 +00:00
Michael Chastain 02aa71d5de 2001-02-19 John Moore <jmoore@redhat.com>
* gdb.base/commands.exp (infrun_breakpoint_command_test):
	Converted HPUX fix for non-expected items following multiple
	step commands into general solution for all platforms.
2001-02-19 20:44:27 +00:00
Michael Chastain f8bf377815 Removed files structs3.c structs3.exp.
These were added by accident.  Whoops!
2001-01-30 04:48:50 +00:00
Michael Chastain c9049fc98f 2001-01-29 Michael Chastain <chastain@redhat.com>
* symtab.c (block_lookup_symbol): Use 'namespace' parameter in
	symbol comparisons in binary search.
2001-01-30 02:49:36 +00:00
Andrew Cagney 9549d9c176 Restore missing space lost when switching to UI_OUT. 2001-01-12 09:45:57 +00:00
Michael Snyder 315f8b0e91 2000-12-21 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
        Add a RE to accept a non-ascii char if one is ever presented.
2000-12-22 01:49:46 +00:00
Michael Snyder 49c890fc5e 2000-12-18 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/setvar.exp: Use double '\\' to quote curly braces
        in regexp.  One '\' does not suffice on Linux.
2000-12-20 16:29:27 +00:00
Michael Chastain 4a7bddb62e 2000-12-09 Michael Chastain <chastain@redhat.com>
* gdb.base/break.exp (test_clear_command): Use a marker function
	rather than 'main' for the test function.  Also move this
	test to an execution point where the marker function names are
	guaranteed to be bound to functions.  (Executing tests after a
	'finish' from main runs into name conflicts with local names
	in __libc_start_main).
2000-12-09 22:35:05 +00:00
Michael Snyder efb663452c 2000-12-07 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/finish.exp: New test for gdb's "finish" command.
        * gdb.base/return2.exp: New test for gdb's "return" command.
        * gdb.base/return2.c: New source file for above.
2000-12-08 19:30:32 +00:00
Michael Snyder 3c077de93f 2000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/constvars.exp: Add a "pass" message if "up" succeeds.
        * gdb.base/miscexprs.exp: Ditto.
        * gdb.base/pointers.exp:  Ditto.
        * gdb.c++/derivation.exp: Ditto.
        * gdb.c++/local.exp:      Ditto.
        * gdb.c++/namespace.exp:  Ditto.
        * gdb.c++/overload.exp:   Ditto.
        * gdb.c++/ref-types.exp:  Ditto.
2000-12-05 23:57:36 +00:00
Michael Snyder 660fd4696e 2000-12-05 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* gdb.base/constvars.exp: Test result of "up" command.
        * gdb.base/miscexprs.exp: Ditto.
        * gdb.base/pointers.exp:  Ditto.
        * gdb.base/scope.exp:     Ditto.
        * gdb.c++/derivation.exp: Ditto.
        * gdb.c++/local.exp:      Ditto.
        * gdb.c++/namespace.exp:  Ditto.
        * gdb.c++/overload.exp:   Ditto.
        * gdb.c++/ref-types.exp:  Ditto.
2000-12-05 23:14:40 +00:00
Fernando Nasser 44097287e5 2000-11-22 Michael Chastain <chastain@redhat.com>
* mips_pro.exp: Accept either "middle -> top -> main" or
	"middle -> main" in the backtrace, because gcc can optimize
	tail calls to jumps.  Remove setup_xfail for the hppa case.
	Add a comment with the original warning messages from PR 3016,
	which was filed in 1993, to preserve them for posterity.
2000-11-28 22:53:38 +00:00
Nicholas Duffek 1aca8eb7fa * gdb.base/display.exp: Don't kill running stub. Add "again" to
the second kill and detach messages.
2000-11-17 17:13:33 +00:00
Nicholas Duffek 930764990d * configure.in: Add AC_EXEEXT.
* configure: Regenerate.
	* Makefile.in (just-check): Export EXEEXT.
	* lib/gdb.exp ($EXEEXT): Import from environment.
	* gdb.base/maint.exp: Expect $EXEEXT in executable name.  Don't
	expect "maint dump-me" on Cygwin.
	* gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append
	$EXEEXT.
2000-11-17 16:37:48 +00:00
Nicholas Duffek 30e87cd372 * gdb.base/break.exp: Test backtrace and finish from called
function on all platforms, not just HP-UX.
2000-11-17 16:24:48 +00:00
Michael Snyder 958a4e4cde 2000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
* gdb.base/a2-run.exp: Use gdb_skip_stdio_test.
        * gdb.base/corefile.exp: Expect the message "Program is being
        debugged already" when we send the "corefile" command, since
        the preceeding gdb_load may have connected gdb to a remote target.
        * gdb.base/display.exp: Disable hardware watchpoints if new
        board info variable "no_hardware_watchpoints" is true.
        Replace single-letter commands with more readable ones.
        * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints
        if new board info variable "no_hardware_watchpoints" is true.
        * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests
        to see if stdio (printf) testing is possible.
        * gdb.base/watchpoint.exp: Disable hardware watchpoints if new
        board info variable "no_hardware_watchpoints" is true.  Use new
        proc "gdb_skip_stdio_tests" to see if printf tests are possible.
2000-11-14 22:12:26 +00:00
Fernando Nasser 39124deab4 2000-11-13 Fernando Nasser <fnasser@redhat.com>
From Orjan Friberg  <orjanf@axis.com>:
        * gdb.base/printcmds.exp: Escape curly braces followed by a number
        in array print pattern match.
2000-11-14 02:36:22 +00:00