aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
AgeCommit message (Collapse)AuthorFilesLines
1998-03-31 * lib/gdb.exp(gdb_test): Send multiline commands one at a time; waitBob Manson1-9/+43
for a newline from gdb before continuing. (default_gdb_exit): Just look for y or n.
1997-09-17 * gdb.base/callfuncs.exp: Fix indentation.Bob Manson1-42/+59
* 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-13 * lib/gdb.exp(gdb_step_for_stub): New function.Bob Manson1-9/+87
(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-07-04 * lib/gdb.exp(get_debug_format): Don't cause the testsuite to failBob Manson1-5/+9
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-06-30 * gdb.base/overlays.exp: Preliminary fixes; temporarily disabledBob Manson1-2/+15
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-29 * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature.Bob Manson1-5/+2
1997-06-28 * lib/gdb.exp (setup_xfail_format): New function.Fred Fish1-0/+47
(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-25 * lib/gdb.exp(default_gdb_exit): Don't give an error if the remoteBob Manson1-3/+9
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-22 * gdb.base/printcmds.exp: Fix "check for floating addition"Fred Fish1-1/+0
regexp to accept results within approx +/- .01 of exact value. * lib/gdb.exp (gdb_test): Remove unused expect_out global decl.
1997-06-19 (gdb_expect): Add optional timeout parameter, and add timeoutBob Manson1-65/+53
value to various calls. (gdb_suppress_tests): Only give one warning message per group.
1997-06-18 * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_initBob Manson1-1/+1
properly.
1997-06-18 lib/gdb.exp(gdb_expect): Handle getting a value for $timeoutBob Manson1-8/+11
more gracefully.
1997-06-17 * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCodeBob Manson1-0/+2
as global variables.
1997-06-17 * lib/gdb.exp: Close connection to remote host if gdb doesn'tBob Manson1-3/+9
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-05-23 Make sure we keep the old value of timeout set properly.Bob Manson1-3/+7
1997-05-23 Don't look at timeout unless it exists.Bob Manson1-3/+9
1997-05-23 * lib/gdb.exp(gdb_expect): Look for gdb,timeout targetBob Manson1-0/+8
feature.
1997-05-22 * lib/gdb.exp: Remove spurious .* patterns at the beginningBob Manson1-28/+34
of regexps.
1997-04-03 * lib/gdb.exp(gdb_suppress_tests): Add explanation for subsequentBob Manson1-4/+17
failures. (gdb_stop_suppressing_tests): Note that tests have restarted.
1997-03-06 Added and updated copyright notices to testsuite expectBob Manson1-2/+2
scripts.
1997-03-06 * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_commandBob Manson1-121/+67
target feature.
1997-02-24 * lib/gdb.exp(gdb_test): Generate a FAIL message whenBob Manson1-0/+1
send_gdb fails.
1997-02-24 * config/vr4300.exp: New file.Bob Manson1-51/+153
* gdb.*/*.exp: Call gdb_expect instead of expect. * lib/gdb.exp(gdb_expect): New function.
1997-02-21 * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAILBob Manson1-1/+24
for each individual variable set.
1997-02-11 * lib/gdb.exp(gdb_test): Check the result of send_gdb. UseBob Manson1-13/+17
$gdb_spawn_id directly. Checking for errors actually helps. *sigh*
1997-02-06 * gdb.base/break.exp: Check for gdb,noresults before testingJeff Law1-16/+0
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-05 * config/sh.exp: New file.Bob Manson1-6/+14
* 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-03 * lib/gdb.exp(gdb_test): Surround the result pattern withBob Manson1-2/+2
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-02 * gdb.*/*.exp: Replace $prompt with $gdb_prompt.Bob Manson1-61/+61
* 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-01-31 * gdb.base/crossload.exp: Don't use execute_anywhere, useBob Manson1-2/+1
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 * lib/gdb.exp: Fix runto.Bob Manson1-0/+1
* 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 * lib/gdb.exp(default_gdb_exit): Add a catch to theBob Manson1-3/+3
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-29Major revision to testsuites for cross-testing and DOS testing support.Bob Manson1-144/+278
1996-10-01 * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail forFred Fish1-3/+21
"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-08-06 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.Fred Fish1-0/+7
1996-08-06 * gdb.base/signals.exp (test_handle_all_print): Test separately forFred Fish1-1/+2
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-06-28 * lib/gdb.exp (default_gdb_start): When reporting a timeout duringFred Fish1-4/+12
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-26 * lib/gdb.exp: Report timeout value for verbosity level 2.Fred Fish1-7/+15
* 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-02-02 * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).Jeff Law1-17/+67
Load libgloss.exp.
1995-03-31 * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.Kung Hsu1-0/+18
1995-03-29 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.Kung Hsu1-1/+2
1995-03-27 * lib/gdb.exp (default_gdb_version): A version number must startJim Kingdon1-1/+1
with a digit, but other than that contains all characters up to the first whitespace character.
1995-03-24 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).Jim Kingdon1-4/+5
1995-03-22 * lib/gdb.exp: add proc runto_main, for targets that use stubs, thisKung Hsu1-0/+47
will not runto main but do a 'step' to step out of breakpoint().
1995-03-17* lib/gdb.exp: Skip CHILL for AIX and Solaris.Jim Kingdon1-1/+2
1995-03-17* lib/gdb.exp: Skip CHILL for AIX.Jim Kingdon1-1/+6
1995-03-15 * gdb.base/printcmds.exp (test_character_literals_accepted): TestJim Kingdon1-58/+1
printing of '\'' (which is what the comment says we are testing, even though we were not), not '''. (test_integer_literals_rejected): Test that printing ''' is an error. * gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp, gdb.base/printcmds.exp, gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp, gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp: Use gdb_test not test_print_accept. * lib/gdb.exp: Remove test_print_accept.
1995-03-14 * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expectJim Kingdon1-6/+6
only \r\n, not .*. The test can pass .* as the last thing in $pattern if that is what it wants. In addition to providing this flexibility, this change should speed up pattern matching in cases where the pattern already ended with .* (there were a number of them). This change also helps catch bad patterns--in the old scheme the typo "char \*" instead of "char \\*" would pass. Now it is caught. * Many .exp files: Update callers.
1995-02-17 * lib/gdb.exp: Just use "file exists", rather than undocumentedJim Kingdon1-1/+5
dejagnu procedure "findfile".
1995-02-16* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):J.T. Conklin1-15/+7
Removed, these values are set by lib/gdb.exp. * lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.