Commit Graph

1130 Commits

Author SHA1 Message Date
Martin Hunt b845066654 1999-01-29 Martin Hunt <hunt@cygnus.com>
* srcwin.test (click): New function that generates an event
	at a location.
	(srcwin-4.4): New test. Simulate a click on a line and
	check for breakpoint set.
	(srcwin-4.5): New test. Right-click on a line and select "Continue
	to Here" from popup.

	* srcwin.exp: Source srcwin3.test, which will test source window
	assembly debugging on executables built without "-g".
1999-01-30 02:56:04 +00:00
Jim Ingham 054b29542c Adding some missing files to the .Sanitize file. 1999-01-30 02:13:12 +00:00
Stan Shebs a8edbc4de0 * gdb.hp/gen-so-thresh.c, so-thresh.sh, so-thresh.exp,
so-thresh.linkopts, so-thresh.mk: Move to gdb.hp from gdb.base
 	(shortening names from solib_threshold.exp etc), won't run on
 	anything but HP-UX for the foreseeable future.
	* gdb.hp/Makefile.in, gdb.base/Makefile.in (clean): Adjust to
 	reflect move.
1999-01-30 00:03:21 +00:00
Stan Shebs db36fe70e7 Move other gdbtk testsuite changelog entries here 1999-01-29 23:57:22 +00:00
Keith Seitz 16c338694d * gdb.gdbtk/cpp_variable.test (cpp_variable-1.1): Fix
function name error.

        * gdb.gdbtk/cpp_variable.h (class VC): Fix compiler warning.

	Fix sanitize error in changelog.
1999-01-29 14:35:12 +00:00
Martin Hunt 6aba57bef2 1999-01-29 Martin Hunt <hunt@cygnus.com>
* srcwin.test(srcwin-4.3) Change bytype field to 3.
1999-01-29 09:44:18 +00:00
Martin Hunt 40a7f1e93a 1999-01-29 Martin Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_init): Create tcl warp_pointer command
        for use with testing.

        * gdbtk-cmds.c (gdb_loc): Fix for case where there are only
        minimal symbols.  Also make gdb_loc return the shared library
        the location is in, if it is in one.
1999-01-29 08:56:14 +00:00
Jim Ingham c98fe0c119 This is the merge of the Itcl3.0 gdbtk development branch into the
trunk.  To build it, you will have to do update -dP in the itcl
directory, and update tcl, tk, tix and libgui as well.
1999-01-28 03:50:17 +00:00
Jeff Law b041460dbe am33 sanitize changes 1999-01-26 14:52:15 +00:00
Felix Lee 835bc7e426 new file, shlib-call.exp, should be kept. 1999-01-20 01:27:09 +00:00
Elena Zannoni 93b84526e8 Fri Jan 15 14:04:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.hp/xdb3.exp: do not execute unless on hppa-hpux platform
	and compiled w/o GCC.
1999-01-15 19:17:31 +00:00
Elena Zannoni 7930c920e4 Fri Jan 15 14:04:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdb.hp/watch-cmd.exp: do not execute unless on hppa-hpux platform
	and compiled w/o GCC.

	* gdb.hp/watch-hp.exp: ditto.

	* gdb.hp/xdb1.exp: ditto.

	* gdb.hp/xdb2.exp: ditto.

	* gdb.hp/dbx.exp: ditto.
1999-01-15 19:10:52 +00:00
Stan Shebs ef8884afcb * constvars.c: Remove C++-isms.
* constvars.exp: Use gdb_test everywhere, add xfails if compiled
 	with GCC.
1999-01-15 02:41:19 +00:00
David Taylor f0edbb0d5c new files. 1999-01-12 15:40:50 +00:00
David Taylor 36ea6c719b rename file. 1999-01-12 15:39:24 +00:00
David Taylor 8cdcdd2de6 fix typo. 1999-01-12 15:19:11 +00:00
David Taylor f273e38ccc new files -- part of HP merge project. 1999-01-11 15:52:01 +00:00
David Taylor db8276bb10 modifications as part of HP merge; new tests; support for HP's compilers. 1999-01-11 15:20:52 +00:00
David Taylor 07dbe97683 new files; renamed files -- from HP merge effort. 1999-01-11 05:44:24 +00:00
David Taylor 2b63a85324 new files -- HP merge 1999-01-11 05:41:54 +00:00
David Taylor 46ad9c6596 new files and renamed files -- hp merge 1999-01-11 05:40:47 +00:00
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