Commit graph

240 commits

Author SHA1 Message Date
Fred Fish
aed2390065 * gdb.t22/virtfunc.exp: Accept missing struct/class names as
an expected fail for certain ptype commands.
1993-08-26 18:35:26 +00:00
Fred Fish
653ae28f8a * config/{udi-gdb.exp, gdb-unix.exp}: Replace calls to obsolete
"alldone" proc with call to cleanup and exit.
	* {gdb.t01/run.exp, gdb.t01/term.exp, gdb.t02/whatis.exp,
	gdb.t03/ptype.exp, gdb.t04/setvar.exp, gdb.t05/expr.exp,
	gdb.t06/break.exp, gdb.t07/watchpoint.exp, gdb.t08/opaque.exp,
	gdb.t09/corefile.exp, gdb.t10/crossload.exp, gdb.t11/list.exp,
	gdb.t12/scope.exp, gdb.t13/bitfields.exp}:  Replace calls to
	"alldone" proc with simple returns that suppress remaining
	tests.  The alldone proc went away many months ago.
1993-08-26 00:36:15 +00:00
Jim Kingdon
c69b7db738 * gdb.t10/nodebug.exp: Comment out "maint print msymbols" tests. 1993-08-24 16:46:53 +00:00
Jim Kingdon
84853a53ac * gdb.t12/gdbme0.c (localscopes, autovars): Modify to foil gcc -O. 1993-08-24 16:26:06 +00:00
Peter Schauer
5e95818815 * gdb.t15/funcargs.exp: Allow arguments for main in backtraces
as vax gdb will display them.
1993-08-20 05:13:13 +00:00
Jim Kingdon
6492681377 * gdb.t20/gdbme.cc: Do some calculation with v.x, to confound
optimizers.
1993-08-20 01:10:51 +00:00
Jim Kingdon
7161494de7 * scope.exp: Change "bad value for localval" messages so each one
is unique.
1993-08-20 00:42:19 +00:00
Jim Kingdon
62db94cb84 * config/unix-gdb.exp (gdb_exit): Move info on this vs.
lib/gdb.exp (gdb_exit) from ChangeLog to comments.
1993-08-19 23:57:21 +00:00
Jim Kingdon
0e8e97217f * gdb.t06/signals.exp: Skip the whole file with xfail for delta68. 1993-08-19 23:22:12 +00:00
Jim Kingdon
b606bd8df4 * gdb.t00/teststrategy.exp: Deal with it if cmdsize = 1 line
doesn't exist (due to optimization).
1993-08-17 05:07:15 +00:00
Jim Kingdon
c31a3b2a3b * gdb.stabs/wierd.exp: Deal with it if echo of "file" command
contains \r because the filename is long.
1993-08-17 04:21:55 +00:00
Jim Kingdon
0e0b4e647c * gdb.t06/signals.exp: Revise comments regarding "'next' behaved as
'continue'" bug, and change xfail back to i*86-univel-sysv4*.
1993-08-17 02:11:23 +00:00
Peter Schauer
adce222501 * gdb.t00/help.exp, gdb.t02/whatis.exp, gdb.t07/watchpoint.exp,
gdb.t08/opaque.exp, gdb.t17/interrupt.exp:  Update for vax running
	Ultrix.
	* gdb.t02/whatis.exp:  Use procedure to setup xfails on long versus
	int tests.
	* gdb.t08/opaque.exp:  Use procedure to setup xfails for opaque tests.
1993-08-16 10:06:20 +00:00
Fred Fish
9e191927ab * gdb.t17/interrupt.exp: Fix 'missing Continuing' case so pattern
to match does not match the passing case but still matches the
	failing case.
1993-08-12 22:27:40 +00:00
Jim Kingdon
285ae57afb * Makefile.in (distclean): Remove *.plog *.sum *.psum site.*. 1993-08-12 22:05:06 +00:00
John Gilmore
7a7d682b98 * lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
to here.
* config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
Remove various versions of gdb_exit.
* config/vx-gdb.exp:  Remove quit_vxgdb, change a caller to call
gdb_exit.
* config/unix-gdb.exp:  gdb_exit remains here, and should override
the generic version, since it's doing a lot of wierd stuff that
the other versions aren't.  FIXME, fold it in, or abandon this
version.
1993-08-12 02:51:51 +00:00
Jim Kingdon
48c95e5b9f * gdb.t24/demangle.exp: Add tests for PR 3220. 1993-08-11 19:59:27 +00:00
Fred Fish
e024d80c74 * gdb.t07/watchpoint.exp: Clear xfail with "i*86-*-*", not just
"i386-*-*".  Works for i486 as well.
1993-08-11 00:48:54 +00:00
Fred Fish
5ad3ae4ad9 * gdb.t06/signals.exp: Rework code that recognizes known SVR4
bug, and expand domain of xfail to all SVR4 systems, since the
	actual problem is likely to be in generic SVR4 /proc support.
1993-08-10 22:49:01 +00:00
Jim Kingdon
283bd6dbf2 * config/unix-gdb.exp (gdb_load): Add eof to expect statement. 1993-08-10 21:09:41 +00:00
Jim Kingdon
ae039ff3ca * config/unix-gdb.exp (gdb_load): Add eof to expect statement. 1993-08-10 20:56:52 +00:00
Fred Fish
869cfa9fd5 * gdb.t17/interrupt.exp: Set up xfail for *-*-sysv4*, in chain of
xfails for other systems.  Match a missing 'Continuing.' as an
	explicit fail for i*86-*-sysv4*, so it doesn't hose other tests.
1993-08-10 18:42:20 +00:00
Fred Fish
adf18b2460 * gdb.t20 {classes.exp, inherit.exp, misc.exp}, gdb.t21/cplusfuncs.exp,
gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t31/chillvars.exp:
	Only issue warning for missing executables if -all option is used.
1993-08-10 17:31:45 +00:00
Fred Fish
c0398b8bd4 * gdb.stabs/wierd.exp: Only issue warning for missing wierd.o
file if -all option is used.  It's like an unpredictable XFAIL.
1993-08-10 16:58:44 +00:00
Jim Kingdon
3241e35dd9 * gdb.t15/funcargs.exp: Add comments that hppa xfails are only
for dynamically linked binaries.
1993-08-09 19:52:37 +00:00
Jim Kingdon
0685d95ff4 * gdbcore.h: New variable gnutarget.
* core.c: Add commands to set and show it.
	* Callers to bfd_*open*: Pass gnutarget instead of NULL as target.
	* environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not
	putenv.

	* symtab.c (decode_line_1): Give error on unmatched single quote.
1993-08-09 16:53:32 +00:00
Jim Kingdon
205c1ddc32 * gdb.t20/inherit.exp: Change message for "print tagless struct"
to state that this is a known bug in old versions of g++.
1993-08-08 19:27:10 +00:00
Jim Kingdon
6117e42f9a * gdb.t17/interrupt.exp: Add xfail for 386 bsd. Accept echoed newline
while waiting for `Continuing'.
1993-08-08 16:16:35 +00:00
Fred Fish
d8ab5dbf82 * gdb.t10/nodebug.exp: Expect to find local/global minimal symbols
in text, data, and bss.
	* gdb.t10/nodebug.c:  Add local and global test variables for
	initialized and uninitialized data.
1993-08-07 14:47:55 +00:00
Jim Kingdon
f4dfe788b8 * config/unix-gdb.exp (gdb_exit): Add "wait". 1993-08-05 17:21:51 +00:00
Fred Fish
a469d3b63b * gdb.t10/Makefile.in (nodebug.o): Don't use "-c -o", many
compilers don't grok it.
	* gdb.t16/gdbme.c (ctable1):  Initialize unsigned char array
	with small octal ints rather than character constants, which
	are signed and might not fit if first promoted to int.
1993-08-05 01:36:43 +00:00
Fred Fish
ad6feb0847 * gdb.t09/Makefile.in (clean): Remove corefile. 1993-08-04 01:29:26 +00:00
Fred Fish
b5ed6e32c2 Remove '.Sanitize' from explicit list of Things-to-lose. It is now implicitly
added to the list by Sanitize, unless Sanitize knows it needs to keep it.
1993-08-02 23:29:32 +00:00
Jim Kingdon
a92499baaf * gdb.t06/signals.exp: Change xfail from "*-*-*" to be only for
NO_SINGLE_STEP machines.  Fix comment about its cause.  Uncomment
	the `continue' test right after it (also xfailed if NO_SINGLE_STEP).
1993-08-02 17:38:08 +00:00
Jim Kingdon
c4978d689e * gdb.t17/interrupt.exp: Add xfail for hppa. 1993-07-31 00:56:26 +00:00
Peter Schauer
a4fbb03e2d Fix typo in previous ChangeLog entry. 1993-07-30 20:12:28 +00:00
Peter Schauer
69aa789bb2 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t08/opaque.exp,
gdb.t09/corefile.exp:  Cleanup xfails for fixed mips bugs.
	* gdb.t13/bitfields.exp, gdbme.c:  Examine a variable in the inferior
	to determine signed-ness of bitfields and use the result to setup
	the xfail.
	* gdb.t13/gdbme.c:  Add comment to the two indirect call0a lines.
	* gdb.t13/funcargs.exp:  Use it to step until the second indirect call
	line is reached if necessary.
1993-07-30 20:04:34 +00:00
Fred Fish
775d4a4096 Add .Sanitize to Things-to-lose list. 1993-07-30 16:46:19 +00:00
Jim Kingdon
84123aa604 * gdb.stabs/wierd.exp: New test, for nameless baseclasses. 1993-07-30 01:37:49 +00:00
Jim Kingdon
002c6d1777 * gdb.t00/teststrategy.exp: Remove extra quote. 1993-07-22 04:24:28 +00:00
Jim Kingdon
6665d54ceb * gdb.t07/watchpoint.exp: Change xfail for calling function with
watchpoint enabled to "*-*-*".
1993-07-22 01:55:26 +00:00
Jim Kingdon
cb6afa30e7 * gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test. 1993-07-22 01:28:38 +00:00
Peter Schauer
9d77e877fe * gdb.stabs/configure.in: If configured -with-gnu-as for mips-*-*
targets use aout.mt instead of ecoff.mt as gas understands
	standard aout format.
1993-07-20 07:04:26 +00:00
Jim Kingdon
62d4a6865e * lib/gdb.exp (runto): Don't insist that function we are running to
was compiled with -g.

	* gdb.t10/{nodebug.{c,exp},Makefile.in}: New test.
1993-07-20 02:57:39 +00:00
Jim Kingdon
675d65db00 * gdb.t17/interrupt.exp: Before sending ^C, give the inferior time
to get back into the read system call.
	Accept leading newline in case where we woke it up.
1993-07-20 01:15:20 +00:00
Peter Schauer
76b098d175 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
to make the stabs test work on ecoff systems using gcc and -with-stabs.
	* gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}:  Modify to
	enable ecoff configuration.
1993-07-18 15:47:51 +00:00
Jim Kingdon
0568df2acf * gdb.t15/funcargs.exp (localvars_in_indirect_call): New test. 1993-07-15 17:10:43 +00:00
Jim Kingdon
e91ceb3c59 * printcmds.exp: Add another printf test. 1993-07-14 22:54:22 +00:00
Ian Lance Taylor
6dc31f06c3 * configure.in: If configured -with-stabs on any target, add
stabsdirs to configdirs.
1993-07-14 22:38:37 +00:00
Jim Kingdon
5af4f5f6f1 Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* stabsread.c (define_symbol): Make the caddr_t hack apply to `function
	returning foo' as well as `pointer to foo'.

	* remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
	* config/m68k/tm-m68k.h: Define it.
	* mem-break.c, breakpoint.c: Improve comments.

Tue Jul 13 13:35:31 1993  Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)

	* config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
	* config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
1993-07-14 15:12:05 +00:00
Jim Kingdon
4988d8c722 * gdb.t15/{gdbme.c,funcargs.exp}: Test for alloca-influenced frames. 1993-07-12 16:30:21 +00:00
Jim Kingdon
a688a1866c * gdb.t17/interrupt.exp: Test for more things. 1993-07-11 17:05:33 +00:00
Jim Kingdon
81074ec8d1 * gdb.t07/watchpoint.exp: In until test, deal with the way the DEC
compiler arranges the code and line numbers.
1993-07-09 19:24:00 +00:00
Jim Kingdon
2a62a4cb1b * gdb.t17/interrupt.exp: Don't send \n after ^C. 1993-07-09 19:14:43 +00:00
Peter Schauer
3ae135ab3b * gdb.t00/help.exp: Increase expect input buffer size. 1993-07-09 16:54:31 +00:00
Jim Kingdon
075aa449df * gdb.t06/signals.exp: Remove sparc xfail; bug fixed.
* gdb.t07/watchpoint.exp: Add xfail for hppa.
1993-07-09 03:55:06 +00:00
Jim Kingdon
1af6f16c65 * gdb.t07/watchpoint.exp: Add xfail for hppa. 1993-07-08 23:08:05 +00:00
Jim Kingdon
270532f9a4 * gdb.t17/{gdbme.c,callfuncs.exp}: Add sum10 function, to test pa bug. 1993-07-08 19:58:22 +00:00
Jim Kingdon
be7f754982 * gdb.t06/signals.exp: At "p func1 ()" test, check for breakpoint
[0-9]*, not just [0-9].
1993-07-08 19:29:53 +00:00
Jim Kingdon
9ae07ce5d0 * gdb.t20/{gdbme.cc,classes.exp}: Add xfail for gdb/2972. 1993-07-07 23:26:44 +00:00
Jim Kingdon
f2dee08e88 * gdb.t2*: Set CXXFLAGS, not CFLAGS, since that's what we use. 1993-07-07 22:55:16 +00:00
Jim Kingdon
afde243fa5 * gdb.t00/help.exp: Replace most of docstring for "continue" with .*. 1993-07-06 19:04:59 +00:00
Jim Kingdon
46d284c9fc * gdb.t06/signals.c: Add xfails for sun3. 1993-07-06 05:23:10 +00:00
Jim Kingdon
306ee233ba * gdb.t07/watchpoint.exp: Comment out xfail for fixed bug 1836. 1993-07-06 04:05:49 +00:00
Jim Kingdon
762665e153 * gdb.t07/{gdbme.c,watchpoint.exp}: Add test for 2597. Also add
test_stepping tests.
1993-07-06 03:50:00 +00:00
Jim Kingdon
b2618fd85a * gdb.t17/{interrupt.{c,exp},Makefile.in}: New test for solaris bug. 1993-07-02 21:56:27 +00:00
Jim Kingdon
56f413cd8f * gdb.t06/twice.exp, Makefile.in: Just use an include of twice.c
rather than actually putting it through cpp twice.
1993-07-02 18:26:55 +00:00
Jim Kingdon
79f3218c2a * gdb.t06/signals.exp: Add xfails unixware and rs6000. 1993-07-02 18:11:23 +00:00
Ian Lance Taylor
eae166985b * config/mips-gdb.exp (gdb_exit): Removed close statement which is
no longer needed.
1993-07-02 17:49:32 +00:00
Jim Kingdon
b4ace9d36f * gdb.t06/signals.exp: Add test for sparc bug with do_save_insn. 1993-07-02 17:00:33 +00:00
Jim Kingdon
38e1dd5415 * gdb.t20/{classes,inherit}.exp: If a class which doesn't use any
C++ features prints as "struct", make it a pass, not an xfail.
1993-07-02 14:13:09 +00:00
Jim Kingdon
b55cc8a268 * gdb.t06/twice.exp: Don't care about the file name GDB prints. 1993-07-02 01:37:50 +00:00
Jim Kingdon
e02c07a5ef * gdb.t{02,13}/comp-info.c, gdb.t06/twice.exp: Add "return 0" to end. 1993-06-30 23:05:47 +00:00
Jim Kingdon
366f286982 * gdb.t16/printcmds.exp: Add printf tests. 1993-06-29 17:51:19 +00:00
Jim Kingdon
38c41e9209 * gdb.t06/{twice.{c,exp},Makefile.in}: New test. 1993-06-29 17:13:28 +00:00
Jim Kingdon
b4e899792d * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too. 1993-06-29 14:24:36 +00:00
Jim Kingdon
44443a9b09 * gdb.stabs/wierd.exp: Add xfail for rs6000. 1993-06-28 15:15:23 +00:00
Jim Kingdon
f492b6c11b * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
{BEGIN,END}_COMMON for common block instead of STAB.
1993-06-28 15:03:27 +00:00
Jim Kingdon
884e8cd43e * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
intp_var should be N_GSYM not N_LSYM.
	wierd-aout.S: Use a label for the value of the N_SO.
	wierd.def: Remove all backslashes.
	wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
1993-06-28 14:34:46 +00:00
Peter Schauer
9325d5afa3 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
get the expected next to inheritance3.
1993-06-28 14:23:11 +00:00
Rob Savoye
6214895281 Works again. 1993-06-28 01:43:34 +00:00
Peter Schauer
d2b860e3a7 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
now that gcc-2.4 gets it right.
1993-06-27 19:31:36 +00:00
Jim Kingdon
2de1aa1cc9 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test. 1993-06-26 03:30:24 +00:00
Jim Kingdon
f788cf78fd * gdb.t{02,13}/{Makefile.in,gdbme.c,comp-info.c}: New way of
generating comp-info.exp which works for cross-compilation.
1993-06-25 17:16:44 +00:00
Fred Fish
6ba7b81886 * gdb.t11/list.exp: For SVR4 xfails, match "*-*-sysv4*", not
"*-*-sysv4.*".
1993-06-24 23:56:35 +00:00
Rob Savoye
453592cae0 Add RUNTEST so make can use the right one. 1993-06-24 23:19:51 +00:00
Fred Fish
cfb702c1e0 * {gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07,
gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15,
	gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t30}/
	Makefile.in (distclean, realclean):  Remove gdbme.c from list of
	things to remove.
1993-06-21 22:27:19 +00:00
Fred Fish
c1aa3a2fbb Add all the mt-* files as things to keep. 1993-06-21 16:39:46 +00:00
Fred Fish
3d26a081b1 * gdb.t24/demangle.exp (test_gnu_style_demangling): Add some new
test cases from bug reports.
1993-06-19 14:53:17 +00:00
Fred Fish
5c0e7bd6ef * gdb.t06/break.exp: Add xfails for sparc-sun-solaris2.*.
* gdb.t12/scope.exp:  Add clear_xfails at appropriate places to
	  avoid spurious xfails.
	* gdb.t20/classes.exp:  Add xfails for longstanding C++ problems.
	* gdb.t21/cplusfuncs.exp:  Add xfails for sparc-sun-solaris2.*.
	* gdb.t22/virtfunc.exp:  Add xfails for longstanding C++ problems.
1993-06-18 17:43:51 +00:00
Fred Fish
212f6219c8 * gdb.t00/teststrategy.exp: Rework to provide more useful
description of each test, fix problem with systems that define
	ALIGN_STACK_ON_STARTUP code, other misc cleanups.
	* gdb.t06/break.exp (test_next_with_recursion):  Fix expected
	results for "next over recursive call" so timeouts aren't taken
	by error.
1993-06-16 17:17:55 +00:00
Jim Kingdon
c76f7bb7c1 * gdb.t12/scope.exp: Test printing of variables before run. 1993-06-14 16:43:24 +00:00
Jim Kingdon
69dbdc0535 * gdb.t12/{gdbme0.c,scope.exp}: Test for bug where parameters are
printed in wrong order due to sorting.
1993-06-14 16:17:30 +00:00
Fred Fish
b025842760 Add .Sanitize file. 1993-06-13 18:08:35 +00:00
Fred Fish
80af2bd319 * gdb.t00/teststrategy.exp: Fix expected results for printing
user entered string constant.  Is array of char, prints with no
	address.
1993-06-12 23:13:48 +00:00
Fred Fish
dd9d4fa31c * gdb.t00/{default.exp, help.exp}: Account for changes to radix
commands.
	* gdb.t16/gdbme.c:  Add and use struct containing arrays of char.
	* gdb.t16/printcmds.exp:  Fix all lines that match "unsigned char *".
	* gdb.t16/printcmds.exp (test_print_char_arrays):  Test printing
	of struct of char arrays.
	* gdb.t00/radix.exp:  New tests for radix commands.
1993-06-12 22:09:59 +00:00
Jim Kingdon
49b12db0ce x 1993-06-11 20:31:37 +00:00
Jim Kingdon
fcb6cf5818 x 1993-06-11 03:11:32 +00:00
Jim Kingdon
729258a3a0 * gdb.t16/printcmd.exp: Don't print variables before running program.
* gdb.t06/break.exp: Don't require envp argument to main.

	* gdb.t0{2,3,4,5}/gdbme.c [_AIX]: Use signed keyword.

	* gdb.t02/whatis.exp, gdb.t11/list.exp:
	Add xfails for rs6000.

	* gdb.t02/whatis.exp: Re-write other tests
	not to re-test something we already tested.

	* gdb.t{03,15,16}/gdbme.c: Reference all variables and make sure
	each type used has a variable of that type.
1993-06-10 22:43:53 +00:00
Ian Lance Taylor
344ea7e937 * configure.in (mips-idt-ecoff*): Added trailing '*'. 1993-06-04 19:48:13 +00:00