3 * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
4 encapsulate all the steps/nexts done during self test, starting
5 at main, and makes them less sensitive to optimization issues.
6 Add "hppa*-*-hpux*" to setup_xfail for "backtrace through
8 * gdb.threads/pthreads.exp: Only run this for native configs.
9 * gdb.base/signals.exp (test_handle_all_print): Remove code that
10 increased timeouts, it now makes no difference.
11 * gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*"
12 setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8"
14 gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail
15 for "runto test_calls(void)" test.
19 * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
20 and don't expect address info in breakpoint confirmations.
24 * gdb.base/list.exp (test_forward_search): Increase timeout
25 temporarily by 60 seconds for searching extremely long line,
26 and then reset to old value when done. Increase expect input
31 * gdb.base/list.exp (test_forward_search): Fix to handle very
32 long source line without overflowing expect's input buffer.
36 * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
39 * config/nind-gdb.exp (gdb_start): Use "full_buffer", not
42 * config/mips-gdb.exp (gdb_start): Use "full_buffer", not
45 * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
50 * configure.in (configdirs): Add gdb.threads.
51 * configure: Regenerated with autoconf.
52 * gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
53 * gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
54 * gdb.threads/configure: New, generated with autoconf.
58 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.
62 * gdb.base/signals.exp (test_handle_all_print): Test separately for
63 each signal's status in the output of "handle all print".
64 * lib/gdb.exp (gdb_test): Document that the pattern must NOT include
65 the \r\n sequence that immediately precedes the gdb prompt.
66 * gdb.base/a1-selftest.exp: Save original timeout and restore
71 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
76 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.
80 * gdb.base/signals.exp (test_handle_all_print): Temporarily increase
81 timeout by 60 seconds.
85 * config/unix-gdb.exp: Increase default timeout from 30 to 60 sec.
86 * config/netware.exp (gdb_run_cmd): Restore old timeout before doing
91 * lib/gdb.exp (default_gdb_start): When reporting a timeout during
92 gdb initialization, also report how long dejagnu waited. Restore
93 old timeout before doing error return. Temporarily increase timeout
94 by 3 minutes to allow for slow startups over heavy NFS use.
98 * lib/gdb.exp: Report timeout value for verbosity level 2.
99 * config/gdbserver.exp: Ditto.
100 * config/hppro.exp: Ditto.
101 * config/mips-gdb.exp: Ditto.
102 * config/monitor.exp: Ditto.
103 * config/netware.exp: Ditto.
104 * config/sim-gdb.exp: Ditto.
105 * config/slite-gdb.exp: Ditto.
106 * config/udi-gdb.exp: Ditto.
107 * config/unix-gdb.exp: Ditto.
108 * config/vx-gdb.exp: Ditto.
109 * gdb.base/a1-selftest.exp: Ditto.
110 * gdb.base/a2-run.exp: Ditto.
111 * gdb.base/break.exp: Ditto.
112 * gdb.base/corefile.exp: Ditto.
113 * gdb.base/list.exp: Ditto.
114 * gdb.base/recurse.exp: Ditto.
115 * gdb.base/scope.exp: Ditto.
116 * gdb.base/signals.exp: Ditto.
120 * gdb.threads/Makefile.in (docdir): Removed.
124 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
125 * gdb.{base,c++,chill,disasm,stabs}/Makefile.in (VPATH): set to
127 * gdb.{base,c++,chill,disasm,stabs}/configure.in (AC_PREREQ):
128 autoconf 2.5 or higher.
129 * gdb.{base,c++,chill,disasm,stabs}/configure: Rebuilt.
133 * configure: Regenerated.
134 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
135 avoid name clashes with SunOS headers.
139 * gdb.c++/virtfunc.exp: Search $objdir/../../libstdc++ for libstdc++.
143 * gdb.base/callfuncs.exp: Finish last change -- make sure the
144 prototype information ends up in the compiler info file.
148 * gdb.base/callfuncs.exp: Remove the compiler info file prior to
149 attempting to regenerate it. Eliminate use of a temporary file
150 and just generate the info file directly. Source it immediately,
151 for consistency of use.
152 * gdb.base/corefile.exp: Ditto
153 * gdb.base/exprs.exp: Ditto.
154 * gdb.base/funcargs.exp: Ditto.
155 * gdb.base/langs.exp: Ditto.
156 * gdb.base/list.exp: Ditto.
157 * gdb.base/mips_pro.exp: Ditto.
158 * gdb.base/nodebug.exp: Ditto.
159 * gdb.base/opaque.exp: Ditto.
160 * gdb.base/ptype.exp: Ditto.
161 * gdb.base/scope.exp: Ditto.
162 * gdb.base/setvar.exp: Ditto.
163 * gdb.base/signals.exp: Ditto.
164 * gdb.base/whatis.exp: Ditto.
165 * gdb.c++/templates.exp: Ditto.
166 * gdb.c++/virtfunc.exp: Ditto.
167 * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
168 whether or not to add -lstdc++ to the compile command line args.
172 * gdb.base/recurse.exp: Remove setup_xfail for "sparc*-*-sunos4*",
173 it got fixed by the recent lookup_minimal_symbol_by_pc change.
174 Increase timeout, a lot of single stepping might be needed if the
175 target has no hardware watchpoints.
179 * gdb.base/break.exp: Ignore compiler warnings when compiling
181 * gdb.base/callfuncs.exp: Don't run these tests on the h8300.
182 * gdb.base/default.exp: Add h8300 xfails. Handle messages
184 * gdb.base/exprs.exp: Add h8300 xfails.
185 * gdb.base/funcargs.exp: Likewise.
186 * gdb.base/nodebug.exp: Likewise.
187 * gdb.base/printcmds.exp: Likewise.
188 * gdb.base/ptype.exp: Likewise.
189 * gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300. Add
191 * gdb.base/return.exp: Handle float/double precision problems
193 * gdb.base/funcargs.c: Explicitly make last constant argument to
194 call_after_alloca_subr an unsigned long type.
195 * gdb.base/return.c: Include stdio.h.
199 * config/abug.exp: New file for the older Motorola Bug monitor
200 that runs on the mvme13x series VME boards.
201 * config/monitor.exp: Use the new config array for target settings
206 * sim-gdb.exp: Make the SH simulator allocate less space when
211 * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
216 * gdb.base/list.exp (test_list_function): Remove setup_xfail for
217 "rs6000-*-*" for "list function in include file" when gcc compiled.
218 * gdb.base/printcmds.exp: Remove setup_xfail for "rs6000-*-aix*"
219 for "p ctable1[120]".
220 * gdb.base/scope.exp: Remove setup_xfail for "rs6000-*-*" for
221 "print 'scope0.c'::filelocal_bss before run" when gcc compiled.
222 Remove setup_xfail for "rs6000-*-*" for
223 "print 'scope0.c'::filelocal before run".
224 * gdb.base/{langs.exp, lists.exp, opaque.exp, scope.exp},
225 gdb.stabs/weird.exp: Remove use of compiler options "-c -o ..."
226 since some compilers don't allow both options to be given
227 on the same command line. Create object file and move it.
231 * gdb.base/corefile.exp: Always regenerate the core file, since
232 we always regenerate the coremaker program. Detect special case
233 where registers cannot be read from core file.
238 * gdb.base/funcargs.c: Patch for SPARCworks alloca compatibility
239 * gdb.c++/templates.exp: Only match on basename of file since
240 some formats like xcoff don't encode directory information.
241 * gdb.stabs/weird.exp: Use the right sed script for powerpc
242 and rs6000 AIX xcoff targets.
243 * configure.in: Add stabsdirs to configdirs for powerpc-*-aix*.
244 * configure: Regenerate.
245 * gdb.base/Makefile.in (clean): Remove generated file twice-tmp.c
246 here, rather than in distclean.
250 * gdb.base/mips_pro.exp: Create mips_pro.ci to get gcc_compiled
251 defined, and use it to compile the test case with -O2. The
252 native compilation still uses no optimization.
253 * gdb.base/mips_pro.c: Remove inline assembly code since
254 it is compiled PIC by default, which results in assembler
255 warnings that make the testsuite think the compilation
260 * gdb.c++/misc.exp: Add note to message for
261 "print s.a for foo struct" that this is a known gcc 2.7.2
266 * gdb.base/break.exp: Fix pattern for matching "Delete all
267 breakpoints (y or n) ". Add "mips-dec-ultrix*" to
268 setup_xfail for deleting all breakpoints test. Fix various
269 timeout messages to include "(timeout)".
270 * gdb.base/callfuncs.exp: Add "i*86-*-sysv4*" to setup_xfail
271 for "p t_float_values2(3.14159,float_val2)".
272 * gdb.base/funcargs.exp: Remove "mips-sgi-irix4*" setup_xfail
273 for "continue to call2g" when gcc compiled.
274 * gdb.base/langs.exp: Remove "i*86-*-sysv4*" setup_xfail for
275 "up to foo in langs.exp", "show language at foo in langs.exp",
276 "show language at cppsub_ in langs.exp", "up to fsub in langs.exp",
277 and "show language at fsub in langs.exp".
278 * gdb.base/list.exp: Remove "*-*-sysv4*" setup_xfail for
279 "list line 1 in include file", "list message for lines past EOF",
280 "list function in include file", "list list0.h:foo", and
281 "list filename:function; nonexistant function".
282 * gdb.base/ptype.exp: Change "i*86-*-sysv4*" setup_xfail for
283 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)"
284 and "ptype t_char_array" to be for native cc only.
288 * gdb.base/corefile.exp: Remove "alpha-dec-osf2*" native compiled
289 setup_xfail for "print coremaker_bss", "print coremaker_ro",
290 "print func2::coremaker_local", and "backtrace in corefile.exp".
294 * gdb.base/signals.exp: Remove "alpha-*-osf2*" setup_xfail for
295 "bt in signals.exp". This problem only appears when running
296 the testsuite, and then only intermittently.
300 * gdb.base/return.exp (return_tests): Differentiate between
301 two tests of continuing.
305 * */Makefile.in (maintainer-clean): Remove config.log.
306 * gdb.base/Makefile.in (EXECUTABLES): Replace twice with twice-tmp.
307 * gdb.c++/Makefile.in (PROGS): Add inherit.
308 (clean): Remove *.ci.
312 * gdb.c++/misc.cc: Add test code from Mike Stump.
313 * gdb.c++/misc.exp: Add test to print s.a, for Mike Stump.
317 * gdb.base/signals.exp: Change setup_xfail for "alpha-*-osf2"
318 to "alpha-*-osf2*" and add comment.
319 * gdb.base/a1-selftest.exp (test_with_self): Remove "alpha-dec-osf2*"
320 setup_xfail for "step over execarg initialization" and
321 "step over corearg initialization".
322 * gdb.base/callfuncs.exp (do_function_calls): Restore setup_xfail
323 for "hppa*-*-*", "sparc-*-*", "mips*-*-*", and "alpha-dec-osf2*".
324 * gdb.base/corefile.exp: Add "alpha-dec-osf2*" setup_xfail when not
325 gcc compiled for "print coremaker_bss", "print coremaker_ro",
326 "print func2::coremaker_local", and "backtrace in corefile.exp".
327 * gdb.base/signals.exp: Build and source signals.ci.
328 Change "alpha-dec-osf2*" setup_xfail for "bt in signals.exp"
330 * lib/gdb.exp: Move verbose statements outside conditionals.
334 * gdb.base/sigall.exp: Remove setup_xfail for irix4. Fixed by
335 Feb 3 procfs.c change.
339 * config/unix-gdb.exp: Remove extraneous newlines from end of file.
343 * config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
344 from dejagnu's apparent default of 10 seconds, which gives random
345 results when running the tests over NFS on moderately loaded systems.
346 * lib/gdb.exp (gdb_run_cmd): Add "(timeout)" in timeout case.
350 * gdb.base/callfuncs.exp: Remove setup_xfail for PR 5318. Now fixed.
351 * gdb.base/a2-run.exp: Replace $binfile with $testfile in test
356 * configure.in (CY_AC_PATH_TCLH): Remove.
357 * configure: Regenerate.
361 * gdb.c++/Makefile.in (clean): Add missing '{'.
365 * lib/gdb.exp: Provide a default value for noinferior.
367 * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
372 * gdb.disasm/hppa.exp: Compile directly into an executable, use
373 the executable, not the .o to run the tests from.
377 * gdb.base/break.exp: Don't test for program exit or exit status
378 if $noresults if nonzero.
379 * gdb.base/langs.exp: Likewise.
380 * gdb.base/watchpoint.exp: Likewise.
382 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
383 * gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
384 trying to compile the testcase.
388 * gdb.base/interrupt.exp (p func1): xfail sparc64-*-solaris2.
389 * gdb.base/signals.exp (continue to handler): Likewise.
393 * gdb.c++/classes.exp: Now = returns false/true, not 1/0.
395 * gdb.fortran/exprs.exp: .LT. and .GT. now return .TRUE. or .FALSE..
399 * gdb.base/corefile.exp: Recognize "not found" as failure
400 when trying to determine if a core file was generated.
401 If no core file was generate the first time, try again without
402 the ulimit -c to work around braindamaged shells.
406 * gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
407 [] tests with "test" and enclose string in quotes.
408 * gdb.stabs/configure: Rebuild
412 Changes in sync with expect:
413 * aclocal.m4 (CY_AC_PATH_TCLH): Handle Tcl 7.5 and greater.
414 (CY_AC_PATH_TCLLIB): Handle Tcl 7.5 and greater.
415 (CY_AC_PATH_TKH): Handle Tk 4.1 and greater.
416 (CY_AC_PATH_TKLIB): Handle Tk 4.1 and greater. Properly quote
417 argument to AC_REQUIRE.
418 * configure: Regenerated.
422 * gdb.base/corefile.exp: When generating a core, discard any
423 error messages about ulimit not found and the "core dumped"
424 message from the shell that runs the coredumper.
428 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
430 * gdb.stabs/weird.exp: Use ${target_triplet} to determine
431 which sed script to run. Expect failure for v_comb test
436 * gdb.base/corefile.exp: Remove "i*86-*-linux" xfail for
437 "print func2::coremaker_local" and for "backtrace in corefile.exp"
441 * lib/gdb.exp: Fix typo and rewrite skip_chill_tests.
442 * gdb.stabs/weird.exp: Setup "sparc-sun-sunos4*" and
443 "sparc-sun-solaris*" xfails for "p v_comb".
444 * lib/gdb.exp (default_gdb_start): Fix typo.
445 * gdb.base/corefile.exp: Allow "Core was generated by ..."
446 messages to not include the full program name that caused
447 the core dump since some systems (such as solaris) apparently
448 truncate this path to about 80 characters.
449 When generating a core file first try increasing the core file
450 size limit to unlimited since some systems may default it to
451 zero, and it is harmless to try it. Move the test for failing
452 to generate a core file to where it will actually get executed.
453 * gdb.c++/templates.exp (test_ptype_of_templates): Accept
454 new gdb result from g++ debug info improvements and make old
455 pattern obsolescent. Also account for size_t differences
456 (may be int or long).
457 * gdb.base/a1-selftest.exp (test_with_self): Check for case where
458 initialization before function call is placed in the delay slot
459 and thus appears to be skipped over by commands such as "next".
463 * gdb.base/a1-selftest.exp (test_with_self): Run without windows.
467 * gdb.base/*.exp: Make ${srcfile} only be the basename of the
468 input source file; fix code to compile test to deal with this
470 * gdb.c++/*.exp: Likewise.
474 * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
479 * gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
480 "step over execarg initialization" and
481 "step over corearg initialization".
485 * gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
486 with sizeof(pointer) > sizeof(int). Avoid "void *" or include files.
491 * Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in},
492 gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in,
493 configure.in}, gdb.disasm/{Makefile.in, configure.in},
494 gdb.stabs/{Makefile.in, configure.in}, gdb.threads/{Makefile.in,
495 configure.in}: Major reworking for autoconfig.
496 * aclocal.m4, configure, gdb.base/configure, gdb.c++/configure,
497 gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt :
499 * config/unix-gdb.exp: Make GDB global.
500 * gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp,
501 callfuncs.exp, commands.exp, corefile.exp, crossload.exp, exprs.exp,
502 funcargs.exp, interrupt.exp, langs.exp, list.exp, mips_pro.exp,
503 nodebug.exp, opaque.exp, printcmds.exp, ptype.exp, recurse.exp,
504 regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp, signals.exp,
505 term.exp, twice.exp, watchpoint.exp, whatis.exp},
506 gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp,
507 templates.exp, virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp,
508 misc.exp, pr-4975.exp, pr-5016.exp, pr-5020.exp, pr-5022.exp,
509 pr-5646.exp, pr-5984.exp, pr-6292.exp, pr-6632.exp, pr-8134.exp,
510 pr-8136.exp, result.exp, string.exp, tuples.exp},
511 gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues
512 to returns as necessary, arrange for test to compile own testcase
514 * lib/gdb.exp: Changes for testsuite to compile own test cases.
518 * gdb.c++/classes.exp (test_pointers_to_class_members): Add
519 clear_xfail at end of test which might not call either pass or fail.
520 * gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for
521 "backtrace through signal handler".
525 * gdb.base/sigall.exp: Work around OSF/1-3.x kernel bug when
526 continuing from a job control stop signal.
527 * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o.
531 * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
532 * gdb.base/corefile.exp: Likewise.
533 * gdb.base/funcargs.exp: Likewise.
537 * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
538 * config/monitor.exp: Add support for setting baud rate.
542 * gdb.base/a1-selftest.exp: Remove i*86-*-sysv4* and
543 i*86-*-linux* xfails for "backtrace through signal handler".
544 * gdb.base/corefile.exp: Add i*86-*-sysv4* xfail for
545 "print func2::coremaker_local".
546 * gdb.base/break.exp: Add i*86-*-sysv4*, sparc-sun-sunos4,
547 alpha-dec-osf2* xfail for
548 "delete all breakpoints when none".
552 * gdb.base/break.exp: Change test that deletes all breakpoints
553 when no user breakpoints are installed. A post 4.15 change
554 causes gdb to no longer prompt in this case.
558 * gdb.base/return.exp (return_tests): Change xfail for test
559 "correct value returned double test" to stop xfailing at
560 Solaris 2.5. Apparently the bug has been fixed.
564 * gdb.stabs/ecoff.sed: Remove comment lines except for first one.
565 IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
569 * gdb.disasm/hppa.exp: Test lci and syncdma instructions.
570 * gdb.disasm/hppa.s: Corresponding changes.
574 * gdb.base/configure.in (hppa*-*-hpux*): No longer needs target
576 * config/mt-hpux: Deleted.
580 * Many files: When warning about suppressed tests due to a
581 nonexistant test binary, avoid incrementing the warning count.
585 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove BISON.
589 * gdb.base/return.exp: Change xfail from "sparc-*-solaris2.*" to
594 * gdb.base/coremaker.c: Produce a full core dump for AIX targets.
595 Add global and local variables and initialize them.
596 * gdb.base/corefile.exp: Test correct mapping of corefile sections
597 by printing variables. Remove rs6000 and powerpc xfails, BFD now
598 extracts the file name and terminating signal from the core file.
599 * TODO: Remove note about tests for correct mapping of corefile.
600 * gdb.base/ptype.c (main): Use boolean2 to inhibit AIX 4.1 xlc
601 from optimizing it away.
602 * gdb.stabs/weird.exp: Remove rs6000 xfail, xcoffread.c now
603 handles common blocks.
607 * gdb.disasm/sh3.s (fmac): Update for new assembler syntax
608 * gdb.disasm/sh3.exp (fmac): Corresponding changes.
612 * Makefile.in (maintainer-clean): New target, synonym for
614 * gdb.base/Makefile.in (maintainer-clean): Likewise.
615 * gdb.c++/Makefile.in (maintainer-clean): Likewise.
616 * gdb.chill/Makefile.in (maintainer-clean): Likewise.
617 * gdb.disasm/Makefile.in (maintainer-clean): Likewise.
618 * gdb.stabs/Makefile.in (maintainer-clean): Likewise.
619 * gdb.threads/Makefile.in (maintainer-clean): Likewise.
623 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
624 xfails when not gcc compiled for "print foo::funclocal".
625 (test_at_foo): Add "hppa*-*-hpux*" xfails when not gcc compiled for:
626 "print foo::funclocal at foo",
627 "print 'scope1.c'::foo::funclocal at foo",
628 "print foo::funclocal_bss at foo",
629 "print 'scope1.c'::foo::funclocal_bss at foo",
630 "print foo::funclocal_ro at foo",
631 "print 'scope1.c'::foo::funclocal_ro at foo",
632 "print bar::funclocal at foo" and
633 "print 'scope1.c'::bar::funclocal at foo".
634 (test_at_bar): Add "hppa*-*-hpux*" xfails when not
635 gcc compiled for "print foo::funclocal at bar".
636 Expand all messages to ensure that they identify that
637 the test is at bar().
638 * gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
640 "ptype on opaque struct pointer (statically)",
641 "ptype on opaque struct tagname (statically)",
642 "ptype on opaque struct pointer (dynamically) 1",
643 "ptype on opaque struct tagname (dynamically) 1",
644 "ptype on opaque struct pointer (dynamically) 2" and
645 "ptype on opaque struct tagname (dynamically) 2
646 * gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
652 "whatis bsslocal", and
654 * gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
655 "backtrace in langs.exp" and "up to langs0__2do in langs.exp"
656 when not gcc compiled.
657 * gdb.base/funcargs.exp (float_and_integral_args): Add
658 "hppa*-*-hpux*" xfail for "run to call2a" when not gcc
660 (discard_and_shuffle): Add "hppa*-*-hpux*" xfail for
661 "backtrace from call6a" when not gcc compiled.
662 (shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
663 "backtrace from call7a" when not gcc compiled.
664 * gdb.base/callfuncs.exp (do_function_calls):
665 Add "hppa*-*-hpux*" xfail when not gcc compiled for
666 "p t_char_array_values(char_array_val2,char_array_val1)",
667 "p t_char_array_values(char_array_val1,char_array_val2)",
668 "p t_char_array_values("carray 1","carray 2")",
669 "p t_char_array_values("carray 1",char_array_val2)",
670 "p t_char_array_values(char_array_val1,"carray 2")",
672 "p sum_args(2,{2,3})",
673 "p sum_args(3,{2,3,4})",
674 "p sum_args(4,{2,3,4,5})"
675 * gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
676 "backtrace in corefile.exp" when not gcc compiled.
680 * gdb.base/signals.exp: Rewrite `handle all print' test as
681 a procedure. Accept blanks or TABs as whitespace, increase
682 timeout and expect input buffer size for the large output
683 from the command. Remove "i*86-*-bsdi2.0" xfail.
687 * gdb.base/setvar.exp: Add new testcases for truncation when
688 assigning invalid values to bitfields.
692 * gdb.base/callfuncs.exp (do_function_calls): Remove
693 mips-sgi-irix* xfail for
694 "call inferior func with struct - returns char *"
695 and fix test so that an optional (unsigned char *) cast is
696 accepted in the result.
700 * gdb.base/funcargs.exp (float_and_integral_args): Remove
701 sparc-sun-solaris2* xfail for "print f1 after run to call2a".
702 * gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
703 * gdb.base/signals.exp: Remove duplicate "handle all print" test
704 that accidentally got checked in.
708 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
709 clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
711 * gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
712 Add mips-sgi-irix5* xfail for not gcc compiled.
713 * gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci.
714 * gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
715 "p top", "whatis top", "p middle", and "whatis middle".
716 * gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
717 "whatis signed char" for not gcc compiled.
718 * gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
719 "set variable signed char=-1 (-1)" and
720 "set variable signed char=0xFF (0xFF)" for not gcc compiled.
721 * gdb.base/funcargs.exp (float_and_integral_args):
722 Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
723 Add mips-sgi-irix* xfail when not gcc compiled for
724 "continue to call2b".
725 Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
726 "continue to call2g".
727 (discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
728 "backtrace from call6a"
729 (shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
730 "backtrace from call7k".
731 Add mips-sgi-irix5* xfail when not gcc compiled for
732 "backtrace from call7a".
733 (localvars_after_alloca): Fix gdb_test cmds for
734 "print * after runto ...".
735 Remove rs6000-*-* xfails for
736 "print i after runto localvars_after_alloca" and
737 "print l after runto localvars_after_alloca"
739 * gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
740 when not compiled with gcc, for:
741 "print signed char == (minus)",
742 "print signed char != (minus)",
743 "print signed char < (minus)",
744 "print signed char > (minus)".
745 * gdb.base/callfuncs.exp (do_function_calls):
746 Add mips-sgi-irix* xfail, when compiled with native compiler, for
747 "call inferior func with struct - returns char *".
748 * gdb.base/return.exp (return_tests): Change xfail for
749 "correct value returned double test" to include Solaris 2.4.
750 * gdb.base/funcargs.exp (float_and_integral_args):
751 Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
755 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
756 enumeration bitfields if compiling with GNU C.
757 * lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path
762 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
763 test for PRO targets.
765 * gdb.base/funcargs.exp: Avoid ever setting more than 8
766 breakpoints in the inferior at any given time by making
767 two groups of breakpoints for call2*, call6* and call7*
772 * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
773 * gdb.base/callfuncs.c (main): Use struct_val1 to inhibit xlc
774 from optimizing it away.
775 * gdb.base/callfuncs.exp: Remove rs6000-*-* xfails for
776 "call inferior func with struct".
780 * configure.in: Only configure gdb.chill for particular targets.
784 * gdb.base/Makefile.in: Add action to .c.o transformation
785 rule that generates a .ci file for each .o file and remove
786 explicit .c.o rules except for callfuncs.o.
787 * gdb.c++/Makefile.in: Add .cc.o transformation rule that
788 generates a .ci file for each .o file and remove explicit
790 (clean): Remove *.tmp *.ci files.
791 (EXECUTABLES): Remove templ-info.exp.
792 * gdb.base/compiler.c: New file.
793 * gdb.c++/compiler.cc: New file
794 * gdb.base/scope.exp: Source gdb.base/scope.ci.
795 Change rs6000-*-* xfail for
796 "print 'scope0.c'::filelocal_ro" and
797 "print 'scope1.c'::filelocal" and
798 "print 'scope1.c'::filelocal_bss" and
799 "print 'scope1.c'::filelocal_ro" and
800 "print 'scope1.c'::foo::funclocal" and
801 "print 'scope1.c'::foo::funclocal_ro" and
802 "print 'scope1.c'::bar::funclocal" and
803 "print 'scope0.c'::filelocal_ro" and
804 "print 'scope1.c'::filelocal at foo" and
805 "print 'scope1.c'::filelocal_bss at foo" and
806 "print 'scope1.c'::filelocal_ro at foo" and
807 "print 'scope1.c'::foo::funclocal at foo" and
808 "print 'scope1.c'::foo::funclocal_bss at foo" and
809 "print 'scope1.c'::foo::funclocal_ro at foo" and
810 "print 'scope1.c'::bar::funclocal at foo" and
811 "print 'scope0.c'::filelocal_ro" and
812 "print 'scope1.c'::filelocal" and
813 "print 'scope1.c'::filelocal_bss" and
814 "print 'scope1.c'::filelocal_ro" and
815 "print 'scope1.c'::foo::funclocal" and
816 "print 'scope1.c'::foo::funclocal_bss" and
817 "print 'scope1.c'::foo::funclocal_ro" and
818 "print 'scope1.c'::bar::funclocal" and
819 "print 'scope1.c'::bar::funclocal_bss"
820 to only be xfail'd when not compiled with gcc.
821 Add rs6000-*-* xfail for
822 "print 'scope0.c'::filelocal_bss before run"
823 when compiled with gcc.
824 (test_at_main): Add rs6000-*-* xfail for
825 "print filelocal_ro in test_at_main"
826 when compiled with gcc.
827 * gdb.base/ptype.exp: Source gdb.base/ptype.ci.
828 Add rs6000-*-aix* xfail for
829 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and
830 "ptype t_char_array", not compiled with gcc.
831 * gdb.base/list.exp (test_list_function): Add rs6000-*-*
832 xfail for "list foo (in include file)" when gcc compiled.
833 * gdb.base/funcargs.exp: Source gdb.base/funcargs.ci
834 (integral_args): Add rs6000-*-* xfail for
835 "run to call0a" if not compiled with gcc.
836 (unsigned_integral_args): Add rs6000-*-* xfail for
837 "run to call1a" if not compiled with gcc.
838 (float_and_integral_args): Add rs6000-*-* xfail for
839 "run to call2a" if not compiled with gcc and for
840 "continue to call2b" for any compiler.
841 Add rs6000-*-* xfail to
842 "print f1 after run to call2a" for gcc compiled.
843 (discard_and_shuffle): Add rs6000-*-* xfail for
845 (shuffle_round_robin): Add rs6000-*-* xfail for
846 "backtrace from call7a" if not compiled with gcc.
847 Add rs6000-*-* xfail for
848 "backtrace from call7b" if compiled with gcc.
849 (call_after_alloca): Add rs6000-*-* xfail for
850 "print c in call_after_alloca" and
851 "print s in call_after_alloca" and
852 "backtrace from call_after_alloca_subr"
853 if not compiled with gcc.
854 (localvars_in_indirect_call): Add rs6000-*-* xfail for
855 "print c in localvars_in_indirect_call" and
856 "print c in localvars_in_indirect_call" and
857 "backtrace in indirectly called function" and
858 "stepping into indirectly called function"
859 if not compiled with gcc.
860 (localvars_after_alloca): Add rs6000-*-* xfail for
861 "print c after runto localvars_after_alloca" and
862 "print s after runto localvars_after_alloca" and
863 "print i after runto localvars_after_alloca" and
864 "print l after runto localvars_after_alloca"
866 * gdb.base/whatis.exp: Source gdb.base/whatis.ci rather
867 than whatis-info.exp.
868 * gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather
869 than opaque-info.exp.
870 Setup rs6000-*-* xfail for
871 "ptype on opaque struct pointer (statically)" and
872 "ptype on opaque struct pointer (dynamically)" when
873 not compiled with gcc.
874 * gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci
875 rather than callf-info.exp.
876 (do_function_calls): Add clear_xfail for rs6000-*-* for
877 "p t_float_values2(3.14159,float_val2)". Seems to work
878 fine there, both with xlc and gcc. Need to find out what
879 it is doing right and fix other platforms.
880 * gdb.base/callfuncs.exp: Add rs6000-*-* xfail for
881 "call inferior func with struct - returns int",
882 "call inferior func with struct - returns long",
883 "call inferior func with struct - returns float",
884 "call inferior func with struct - returns double",
885 "call inferior func with struct - returns char *",
886 but only if not gcc compiled (presumes xlc compiled).
887 Change rs6000-*-* xfails for
888 "call inferior func with struct - returns char" and
889 " call inferior func with struct - returns short" to only
890 xfail if not using gcc.
891 (clean mostlyclean): Remove *.ci and *.tmp files.
892 * gdb.c++/templates.exp: Source gdb.c++/templates.ci rather
894 * gdb.base/langs.exp: Source gdb.base/langs.ci.
895 Add rs6000-*-* xfail for "up to foo in langs.exp"
896 "up to cppsub_ in langs.exp" and "up to fsub in langs.exp"
897 when not gcc compiled.
901 * gdb.base/callfuncs.exp: Add xfails for the powerpc.
902 * gdb.base/corefile.exp: Likewise.
903 * gdb.base/list.exp: Likewise.
904 * gdb.base/scope.exp: Likewise.
905 * gdb.base/siganls.exp: Likewise.
907 * gdb.base/nodebug.exp: Add xfails for the powerpc. Handle aix4
909 * gdb.base/whatis.exp: Likewise.
913 * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect a
914 failure (opcode table has been fixed to match reality).
918 * gdb.base/callfuncs.exp: Add rs6000-*-* xfails for
919 "call inferior func with struct - returns char",
920 "call inferior func with struct - returns short"
922 * gdb.base/scope.exp: Remove rs6000-*-* xfails for
923 "print 'scope0.c'::filelocal at main",
924 "print 'scope0.c'::filelocal_bss in test_at_main",
925 "print 'scope0.c'::filelocal at foo",
926 "print 'scope0.c'::filelocal_bss in test_at_foo",
927 "print 'scope0.c'::filelocal at bar",
928 "print 'scope0.c'::filelocal_bss in test_at_bar"
930 * gdb.base/list.exp: Remove rs6000-*-* xfail for "list function
931 in source file 1". This bug seems to have been fixed with both
932 gcc and native cc (was native assembler bug?).
936 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
937 "backtrace through signal handler" to "i*86-*-sysv4*".
938 * gdb.base/signals.exp: Add xfail for "'next' behaved as
939 continue" case. Add "known SVR4 bug" to fail message.
940 Add "i*86-*-bsdi2.0" xfail for "handle all print".
941 Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
942 * gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
943 "whatis unnamed typedef'd enum..." and "ptype t_char_array".
944 * gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
945 "up to foo in langs.exp", "show language at foo in
946 langs.exp", "up to cppsub_ in langs.exp", "show
947 language at cppsub_ in langs.exp", "up to fsub in
948 langs.exp", and "show language at fsub in langs.exp".
949 * gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
950 "bactrace in corefile.exp".
951 * gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
952 "call inferior function with struct - returns float" and
953 "call inferior function with struct - returns double".
957 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.
958 * gdb.disasm/sh3.exp: Run the sh3 disassembler tests.
959 * gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment.
960 * gdb.disasm/sh3.mt: Makefile fragment for sh3 ests.
964 * Makefile.in (CHILL_FOR_TARGET): Use previously defined
965 (or overriden) "CHILL" macro rather then bare "gcc".
966 Also look for ../../gcc/xgcc since that is what we will
967 actually need, not "Makefile". Remove following assignment
968 of CHILL to CHILL_FOR_TARGET because that results in
969 recursive definition.
973 * gdb.base/corefile.exp: Change xfail for backtrace in
974 corefile.exp from linuxaout to all linux.
975 * gdb.base/sigall.exp (test_one_sig): Specifically deal with
976 cases where we miss the breakpoint at the signal handler
977 for some reason. Setup xfail for linuxoldld/linuxaout and
978 getting SIGIO. Setup xfail for linuxoldld/linuxaout for
979 hitting SIGURG breakpoint.
980 * gdb.base/signals.exp: Setup xfail for "next" acting like
981 continue to add linuxoldld. Setup xfail for all linux for
982 "next to handler in signals_tests_1", "backtrace in
983 signals_tests_1", "continue to func1", "pass SIGUSR1",
984 and continue to handler".
988 * Update all FSF addresses except those in COPYING* files.
992 * gdb.base/a2-run.exp: Change messages to be more explicit about
993 the status of args, and quote binfile in results.
997 * gdb.base/callfuncs.exp: Add tests for passing structs to
998 inferior functions and return various types.
999 * gdb.base/callfuncs.c: Add functions to receive a struct
1000 and return a member of the struct, in various types.
1004 * gdb.base/Makefile.in (clean): Remove callf-info.exp.
1008 * config/vxworks29k.exp: New file, sources vxworks.exp.
1012 * config/gdbremote.exp: New file. Testing framework using
1017 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail for
1018 "call function when asleep" and "send end of file".
1019 * gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list
1020 for "backtrace in corefile.exp".
1021 * gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list
1022 for "backtrace through signal handler".
1023 * gdb.base/corefile.exp: Make sure we actually generate a core file
1024 before trying the core tests. Some systems allow the user to suppress
1025 generation of core files and default to that (linux for example).
1026 * gdb.base/signals.exp: Change xfail for "next" acting like "continue"
1027 from "i*86-*-linux" to "i*86-*-linuxaout". Works with ELF beta.
1031 * gdb.threads: New directory with some crude multi-threaded
1032 gdb tests (step.exp and step2.exp).
1033 * config/mt-lynx (STEP_EXECUTABLE): Define.
1034 (THREADFLAGS): Define.
1038 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx.
1040 * gdb.base/signals.exp: Disable whole file for lynx until
1043 * gdb.base/signals.exp: xfail test where "next" acts like
1044 "continue" for lynx.
1046 * gdb.base/interrupt.exp: xfail test for calling function while
1047 inferior is asleep for lynx.
1049 * gdb.base/watchpoint.exp: Handle more cases of gdb echoing more
1050 than one cr-lf after each command.
1054 * configure.in: Reinstate setting of stabsdirs variable, fix
1055 typo in setting up configdirs for native builds.
1057 * gdb.base/return.exp: Fix typo in return double test.
1058 * gdb.base/return.c (tmp2, tmp3): Made global to inhibit the
1059 compiler from optimizing them away.
1063 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
1064 sequences to be echo'd by gdb when using gdb_test.
1065 * gdb.chill/chexp.exp: Likewise.
1066 * gdb.fortran/exprs.exp: Likewise
1070 * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
1071 after the inferior gdb has started.
1073 * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
1075 * gdb.base/funcargs.exp: Likewise.
1076 * gdb.base/gdbvars.exp: Likewise.
1077 * gdb.base/interrupt.exp: Likewise.
1078 * gdb.base/list.exp: Likewise.
1079 * gdb.base/watchpoint.exp: Likewise.
1080 * gdb.c++/demangle.exp: Likewise.
1081 * gdb.c++/inherit.exp: Likewise.
1082 * gdb.chill/chexp.exp: Likewise.
1083 * gdb.fortran/exprs.exp: Likewise.
1085 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
1086 test if we can't handle IO to/from the inferior.
1088 * gdb.c++/misc.exp: Always check for a program already being
1089 started after sending a "run" command to gdb.
1091 * gdb.base/twice.exp: Start with a fresh gdb.
1093 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
1094 only depend on gdb's expression code, not the chill runtime.
1096 * gdb.base/return.c: Put return values into variables so we
1097 can have gdb print them rather than depending on the program
1099 * gdb.base/return.exp: Corresponding changes.
1101 * lib/gdb.exp: Provide default value for noinferiorio.
1102 * gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
1105 * gdb.base/break.exp: Always check for a program already being
1106 started after sending a "run" command to gdb.
1107 (text_next_with_recursion): Don't check the output from the
1108 program's printf statement. Instead just make sure the program
1111 * gdb.base/commands.exp: Protect tests which need arguments with
1112 $noargs conditionals.
1116 * gdb.base/printcmds.exp: Adjust expect patterns for addresses
1117 of structure member arrays to match gdb/valops.c:value_addr change.
1121 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
1126 * configure.in (configdirs): Remove gdb.chill from default list
1127 of subdirs and then add it back in only if doing a native build.
1128 The current chill compiler does not yet work in any cross build.
1129 * Revert all signal changes from Jul 6.
1130 * gdb.base/{sigall.c signals.c}: Define away signal() and alarm()
1131 for sh-hms targets, allowing these tests to link, with no other
1132 changes. Testing is suppressed by setting "nosignals" in site.exp.
1136 * configure.in (signaldirs): Define and add to configdirs for all
1137 targets except some specific ones that are known to not support signals.
1138 Also clean up formatting.
1139 * gdb.base/Makefile.in (EXECUTABLES): Remove sigall and signals.
1140 (signals, sigall): Remove rules to build.
1141 * gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
1142 Moved to new gdb.signals directory.
1143 * gdb.signals: New test directory.
1144 * gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
1145 signals.c signals.exp}: New or moved files.
1149 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist.
1153 * gdb.base/return.exp: Xfail `return double' test failure
1154 on at least Solaris 2.3 and handle future/past versions on
1155 a case by case basis as appropriate. Also update message
1156 to include i*86 failures.
1160 * Makefile.in: Change variable CFLAGS to TESTSUITE_CFLAGS.
1162 * lib/gdb.exp: Fix comment which erroneously identified
1163 gdb_file_cmd as gdb_load (the 19 May change was in fact to
1164 gdb_file_cmd not gdb_load).
1165 * config/unix-gdb.exp (gdb_load): Add "upvar timeout timeout".
1167 * gdb.base/setvar.exp: Make test names consistent between pass and
1168 fail cases. Use gdb_test more.
1172 * lib/gdb.exp (gdb_load): Add "upvar timeout timeout".
1176 * gdb.base/help.exp: Fix expected help string for `show commands'.
1180 * gdb.stabs/xcoff.sed: Change N_LSYM to C_DECL not C_LSYM.
1182 * gdb.stabs/weird.exp: Remove xfail for xcoff bitching about lack
1187 * config/monitor.exp (gdb_target_monitor): Fix loop interator so
1188 that loop eventually terminates. Fix Connection refused logic so
1189 that testsuite will expire nicely.
1193 * config/cpu32bug.exp, config/est.exp, config/hppro.exp,
1194 config/rom68k.exp: New tcl glue for the appropriate monitors.
1195 These all just end up calling monitor.exp.
1196 * config/monitor.exp (gdb_target_monitor): Handle `Connection
1197 refused' by retrying. Cleanup some timeout issues.
1198 * (gdb_load): Reduce timeout. Cleanup some timeout issues.
1199 * lib/gdb.exp (gdb_test gdb_test_exact): Upvar timeout so that
1200 callers don't have to set/restore global timeout variable.
1202 * The following set of changes centralizes management of the global
1203 timeout variable. This way, it can be set in one target dependent
1204 place instead of dozens of places scattered throughout the test suite.
1205 If you need to lengthen a timeout, then you should either set timeout
1206 in one of the config/{target}.exp files, or multiply it by a factor.
1207 Setting it to an absolute value is always going to lose for some
1209 * gdb.base/a1-selftest.exp (test_with_self): Only use local timeout.
1210 * gdb.base/callfuncs.exp (do_function_calls): Don't set timeout.
1211 * gdb.base/funcargs.exp: Don't set timeout.
1212 * gdb.base/list.exp (test_forward_search): Only use local timeout.
1213 * gdb.base/printcmds.exp (test_print_string_constants
1214 test_print_array_constants): Don't set timeout.
1215 * gdb.base/ptype.exp: Don't set timeout.
1216 * gdb.base/recurse.exp: Don't set timeout.
1217 * gdb.base/return.exp: Don't set timeout.
1218 * gdb.base/watchpoint.exp: Don't set timeout.
1219 * gdb.c++/classes.exp (do_tests): Don't set timeout.
1220 * gdb.c++/virtfunc.exp (test_virtual_calls): Don't set timeout.
1224 * Makefile.in: Make clean targets work also when SUBDIRS is empty.
1228 * lib/gdb.exp: Disable chill tests for irix5.
1232 * gdb.base/scope.exp: Make test names unique. Use gdb_test. Make
1233 each test pass or fail.
1237 * gdb.base/opaque.exp: Remove xfails for aix; print a warning if
1242 * cpu32bug.exp est.exp rom68k.exp: Delete. Unify into monitor.exp.
1246 * config/est.exp: Fix copyright and comments. Remove dead code.
1247 Use targetname, serialport and baud variables instead of fixed
1249 * config/rom68k.exp: Fix copyright and comments. Remove dead code.
1250 * config/cpu32bug.exp: New file to support cpu32bug monitors.
1254 * gdb.base/watchpoint.exp: Don't run
1255 test_watchpoint_triggered_in_syscall for sunos.
1259 * gdb.base/{break.c,run.c}: Don't include vxWorks.h or stdioLib.h;
1260 they don't seem to exist. Do include stdio.h.
1264 * gdb.base/a1-selftest.exp: Add alpha xfail.
1268 * gdb.base/watchpoint.c (main): Prompt before calling read().
1269 * gdb.base/watchpoint.exp (test_watchpoint_triggered_in_syscall):
1270 Revise accordingly. Remove cruft about sending "123" several
1271 times, until it gets noticed. Clean up the "print buf[0]" stuff
1272 so that it passes or fails, and waits for prompts in the usual way.
1276 * gdb.base/recurse.exp: Fix comment.
1278 * TODO: Remove item about printing variables in nodebug.exp. Add
1279 item about enabling tests which are only run on some targets.
1281 * gdb.base/watchpoint.exp: Various cleanups (make each test pass or
1282 fail, make test names unique, use new gdb_test convention
1283 regarding pattern, use gdb_test more, etc.).
1285 * gdb.base/bitfields.exp: Various cleanups (make each test pass or
1286 fail, make test names unique, etc.).
1290 * gdb.base/nodebug.c: Change return type of top and middle to
1292 * gdb.base/nodebug.exp: Remove xfails for ecoff systems, they
1293 are fixed by the recent mdebugread.c changes. Allow `short ()'
1294 as type for top and middle.
1298 * gdb.base/break.exp: Remove commented out if $usestubs {}. As
1299 nearly as I can tell, the whole thing was an accident in Stu's
1300 change of 24 Mar 1995 (logged in ../ChangeLog), in which he meant
1301 to replace a send/expect pair with gdb_test, but ended up only
1302 adding the gdb_test. My change of 24 Mar 1995 and Kung's change
1303 of 30 Mar 1995 took care of it, but left this vestigial comment
1304 which I am now nuking.
1308 * gdb.base/break.exp: Look for different line number for
1309 breakpoint at main depending on usestubs.
1313 * gdb.base/list.exp: Adjust some alternate expect patterns to
1314 match recent list0.c change. Add alternate expect pattern for
1315 output from `list default lines around main' for optimizing
1320 * lib/gdb.exp: If nosignals is not set, set it to 0.
1324 * config/slite-gdb.exp: Responds to load symbol table prompt.
1325 * gdb.base/break.exp: Adjust line number, fix rerun.
1326 * gdb.base/langs0.c: Add #ifdef usestubs.
1330 * gdb.base/list.exp: Adjust line contents after adding new lines in
1331 list0.c. Also fix a syntax error.
1333 * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
1334 * gdb.base/break.exp: ditto.
1335 * gdb.base/list.exp: ditto.
1336 * gdb.base/bitfields.c: Add #ifdef usestubs in main().
1337 * gdb.base/run.c: ditto.
1338 * gdb.base/list0.c: ditto.
1339 * gdb.base/funcargs.c: ditto.
1343 * testsuite/config/rom68k.exp (gdb_target_rom68k): Use
1344 $targetname, $serialport and $baud instead of hardwired variables.
1345 * testsuite/gdb.base/{sigall.exp signals.exp}: Skip these if the
1346 target doesn't support signals.
1350 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.
1354 * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
1355 Don't rely on the value of an auto variable before it has been
1356 initialized. Use gdb_test more.
1360 * lib/gdb.exp (default_gdb_version): A version number must start
1361 with a digit, but other than that contains all characters up to
1362 the first whitespace character.
1366 * gdb.base/commands.exp (breakpoint_command_test): New tests.
1370 * gdb.c++/*.exp: Warn if executable does not exist. The original
1371 reason for skipping the warning was that configure.in sometimes
1372 intentionally skipped building the executables but the tcl code
1373 had no way of knowing. That (a) was always bogus with respect to
1374 error handling, (b) is no longer true (right now there is no way
1377 * gdb.c++/demangle.exp: Remove unused binfile and srcfile variables.
1381 * gdb.base/list.exp: Add expect patterns for output from
1382 SunPRO compiled executables.
1383 * gdb.base/whatis.exp: Allow leading `signed' for all v_signed_*
1388 * gdb.base/break.exp (test_next_with_recursion): Accept any line
1389 number (we are already testing that the correct source line text
1392 * gdb.base/break.exp: Make one test if $usestubs. I'm not sure
1393 that is what is intended, but something needed to be done to get
1394 sunos4 native working again.
1396 * gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
1398 * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
1399 apparently went with a (very) old xfail.
1403 * gdb.base/callfuncs.exp: call runto_main instead of runto main.
1404 runto_main is a proc in gdb.exp that will do 'step' for target use
1406 * gdb.base/exprs.exp: ditto.
1407 * gdb.base/interrupt.exp: ditto.
1408 * gdb.base/opaque.exp: ditto.
1409 * gdb.base/printcmds.exp: ditto.
1410 * gdb.base/ptype.exp: ditto.
1411 * gdb.base/scope.exp: ditto.
1412 * gdb.base/setvar.exp: ditto.
1413 * gdb.base/signals.exp: ditto.
1414 * gdb.base/twice.exp: ditto.
1415 * gdb.c++/classes.exp: ditto.
1416 * gdb.c++/inherit.exp: ditto.
1417 * gdb.c++/templates.exp: ditto.
1418 * gdb.base/break.exp: no run and hit main for stubs. Change line
1419 numbers for breakpoints and info breakpoint.
1420 * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
1422 * gdb.base/callfuncs.c: ditto.
1423 * gdb.base/exprs: ditto.
1424 * gdb.base/interrupt.c: ditto.
1425 * gdb.base/opaque0.c: ditto.
1426 * gdb.base/printcmds.c: ditto.
1427 * gdb.base/ptype.c: ditto.
1428 * gdb.base/scope0.c: ditto.
1429 * gdb.base/setvar.c: ditto.
1430 * gdb.base/signals.c: ditto.
1431 * gdb.base/twice.c: ditto.
1432 * gdb.c++/misc.cc: ditto.
1433 * gdb.c++/templates.cc: ditto.
1437 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).
1439 * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
1440 somewhere between `read' and `main.c'. I'm pretty sure the
1441 pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
1442 and it isn't particularly useful.
1444 * gdb.base/scope.exp: Make test names unique. \[(\] -> \\(.
1448 * gdb.base/commands.exp (infrun_breakpoint_command_test): New test.
1452 * config/mt-slite: add LIBS and -nostdlib.
1453 * config/slite-gdb.exp: add this new file to support sparclite target.
1457 * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code.
1459 * gdb.base/a2-run.exp: Change argument to istarget from
1460 "*-*-vxworks" to "*-*-vxworks*".
1461 * gdb.base/{break.exp,default.exp,scope.exp}: Likewise.
1465 * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
1466 will not runto main but do a 'step' to step out of breakpoint().
1467 * config/mt-slite: add -Dusestubs.
1471 * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
1474 * gdb.base/signals.exp: Add test for "handle all print".
1475 * TODO: Remove "handle all print". Also remove item about
1476 checking copyright date (I don't like the idea of a spurious FAIL
1477 based on when we run the tests).
1479 * gdb.base/recurse.exp: Enable test for SunOS4. xfail one test
1480 for SunOS4 (reason for failure not investigated). Remove
1481 redundant test for $binfile.
1483 * gdb.base/nodebug.c (array_index): Call malloc.
1485 * gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique.
1489 * gdb.base/recurse.exp: Update gdb_test invocation to use new
1490 conventions and slightly simplify the matching regexp.
1494 * gdb.base/break.exp: Update gdb_test invocation to use new
1497 * lib/gdb.exp: If noargs is not set, set it to 0.
1499 * gdb.base/nodebug.exp: Comment out redundant test. Make name of
1502 * lib/gdb.exp: Skip CHILL for AIX and Solaris.
1506 * gdb.base/nodebug.exp: It is OK if GDB thinks top and middle have
1507 one argument of type "<non-float parameter>".
1511 * config/rom68k.exp: New file to support Motorola IDP board.
1512 * gdb.base/a2-run.exp: Skip this file if noargs is set.
1513 * gdb.base/break.c: Change things around so that this program
1514 doesn't depend upon args. This is necessary to make remote
1515 targets work (in general, they can't take args).
1516 * gdb.base/break.exp: Don't try to send args to program. Don't
1517 expect output. Also, replace lots of code with gdb_test.
1521 * gdb.base/printcmds.exp (test_character_literals_accepted): Test
1522 printing of '\'' (which is what the comment says we are testing,
1523 even though we were not), not '''.
1524 (test_integer_literals_rejected): Test that printing ''' is an error.
1526 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
1527 gdb.chill/chexp.exp, gdb.base/printcmds.exp,
1528 gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp,
1529 gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp:
1530 Use gdb_test not test_print_accept.
1531 * lib/gdb.exp: Remove test_print_accept.
1533 * gdb.base/signals.exp (signal_tests_1): Make pass message
1534 consistent with fail message.
1536 * gdb.base/whatis.exp: Remove xfails for printing char vs.
1537 unsigned char; the bug (PR 1821) is fixed.
1539 * gdb.base/scope.exp: Remove xfails for PRs 1843 and 1868.
1541 * gdb.base/scope.exp (test_at_localscopes): Call pass for
1542 successful tests--makes xfailing them work right.
1546 * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
1547 only \r\n, not .*. The test can pass .* as the last thing in
1548 $pattern if that is what it wants. In addition to providing this
1549 flexibility, this change should speed up pattern matching in cases
1550 where the pattern already ended with .* (there were a number of
1551 them). This change also helps catch bad patterns--in the old
1552 scheme the typo "char \*" instead of "char \\*" would pass. Now
1554 * Many .exp files: Update callers.
1556 * gdb.base/funcargs.exp: Replace \[(\]+ with \\(. The latter is
1557 clearer and does not spuriously match multiple ('s. Likewise for
1560 * gdb.base/nodebug.exp: Test ability to call a function and pass
1561 it a string (even with no debugging info).
1563 * gdb.base/printcmds.exp (test_integer_literals_rejected): Change
1564 "p '\'", which is the same as "p ''" once tcl gets done with
1565 quoting, to "p '\\'", which I suspect is what is intended (one
1566 backslash gets sent to GDB).
1568 * gdb.base/printcmds.exp (test_artificial_arrays): New tests.
1572 * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
1573 1817) was fixed literally years ago.
1577 * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
1578 test, it causes stepping out of call_after_alloca_subr with
1579 optimizing compilers.
1580 (localvars_in_indirect_call): Consume GDB prompt if `finish'
1583 * gdb.c++/templates.exp: Source templ-info.exp only if
1584 the templates executable exists.
1586 * gdb.c++/misc.cc (class Contains_static_instance,
1587 class Contains_nested_static_instance),
1588 gdb.c++/classes.exp (test_static_members): Test printing of
1589 a class that contains a static instance of the class.
1593 * gdb.base/langs2.c (cppsub_): Don't prototype.
1594 * gdb.base/langs2.cxx (cppsub_): Fix prototype (cosmetic value
1599 * lib/gdb.exp (skip_chill_tests): New procedure.
1601 * gdb.base/signals.exp (signal_tests_1): xfail for irix.
1605 * gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
1606 each expect pattern. Cuts runtime from 12 to about 4 seconds.
1610 * gdb.base/langs.exp: Don't insist that foo__Fi be demangled.
1612 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Only
1613 disassemble 8, not 16, instructions for part 4.
1615 * config/vx-gdb.exp (gdb_start): Use \030, not \CX. tcl doesn't
1616 support the latter anymore.
1618 * gdb.base/Makefile.in: Try compiling callfuncs.c, if that fails try
1620 * gdb.base/callfuncs.c: Control use of prototypes based on
1621 NO_PROTOTYPES, not __STDC__.
1622 * gdb.base/callfuncs.exp (do_function_calls): xfail one of the
1623 t_float_values2 tests if prototypes in use.
1625 * gdb.base/callfuncs.c (t_float_values, t_float_values2,
1626 t_double_values): When checking differences against DELTA, check
1627 that difference is within the range (-DELTA,DELTA), not just
1632 * config/mips-gdb.exp (gdb_load): In every test case, we need to do
1633 'file' command firts, then 'target', then 'load', this is due to gdb
1635 * config/mips-gdb.exp: Fix a couple regular exp bugs.
1639 * gdb.disasm/hppa.s (fmemLRbug_tests): Add tests for the indexing
1640 FP load/store variants.
1641 * gdb.disasm/hppa.exp (fmemLRbug_tests): Test new variants.
1645 * gdb.base/term.exp: Do not give a warning if not native, it is
1646 not an abnormal condition.
1650 * gdb.base/ptype.exp: Accept char[0] as well as char[] for "ptype
1655 * lib/gdb.exp (default_gdb_version): Pass GDBFLAGS to gdb when we
1656 are getting the version number.
1658 * gdb.base/{a1-selftest.exp,corefile.exp}: Do not give a warning
1659 if not native, it is not an abnormal condition.
1663 * lib/gdb.exp: Just use "file exists", rather than undocumented
1664 dejagnu procedure "findfile".
1668 * config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
1669 (LDFLAGS): Set to -Xlinker -Ur.
1671 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
1672 Removed, these values are set by lib/gdb.exp.
1674 * lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.
1678 * config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
1679 of replicating gdb startup code.
1681 * config/mt-vxworks (LDFLAGS): Set to -r.
1682 (CFLAGS_FOR_TARGET): Removed.
1684 * config/vx-gdb.exp: always set prompt; gdb.exp sets it to
1685 (gdb) and gdb for vxworks uses (vxgdb).
1687 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
1688 executable is not in the tree and host != target, use sed and
1689 program_transform_name to determine the gdb name used by the
1692 * configure.in, gdb.{base,c++,chill}/configure.in: changed so
1693 *-*-vxworks* matches vxworks and *-*-netware* matches NetWare.
1697 * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
1698 floats, chars, and shorts where there are ANSI-style function
1701 * gdb.base/langs.exp, gdb.base/langs*: New test.
1702 * gdb.base/Makefile.in: Build it.
1703 * TODO: Remove item about checking that C names don't get C++
1704 demangling applied; this test tests it.
1708 * gdb.stabs/weird.exp: Remove "Haven't examined" comment which
1709 went with the const70 xfail. The xfail went away a year ago.
1711 * gdb.base/signals.exp: Rename a bunch of tests to give unique names.
1713 * gdb.base/corefile.exp: Give backtrace test unique name. xfail
1716 * gdb.base/interrupt.exp: Also xfail hpux (for hp300).
1718 * gdb.base/a1-selftest.exp: Don't run on hp300.
1722 * Makefile.in (site.exp): Set host_alias and target_alias as well
1723 as host_triplet and target_triplet.
1727 * gdb.base/a1-selftest.exp: Invoke stty before starting inferior.
1729 * gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
1730 places as other ecoff systems).
1732 * gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
1737 * gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
1739 * gdb.base/nodebug.exp: Accept "function" in addition to "text
1740 variable and "variable" in addition to "data variable".
1741 * gdb.base/nodebug.exp: xfail datalocal and bsslocal tests for AIX.
1743 * gdb.base/list.exp (test_forward_search): Set listsize to 4 not
1745 * gdb.base/list1.c (long_line): Add additional statement at start
1747 * gdb.base/list.exp (test_forward_search): Update line number to
1748 reflect new statement.
1752 * gdb.base/signals.exp: Reinitialize searched source directories
1753 after gdb_start call.
1757 * gdb.disasm/Makefile.in (clean): Delete "errs" file.
1758 * gdb.stabs/Makefile.in: Likewise.
1760 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Revert last
1761 change. Instead split the tests into smaller pieces.
1762 * gdb.disasm/hppa.s: Corresponding changes.
1766 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
1767 Quote ^C when passing it to stty. For some shells ^ is a pipe.
1769 * gdb.base/funcargs.exp: Modify many tests so that every test
1770 either passes or fails. Make some test names unique.
1774 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
1775 Call stty to set interrupt character.
1777 * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
1778 for HP assembler versus GNU assembler based on actual behavior of
1779 $(CC), rather than assuming that $(AS) is always the GNU assembler.
1781 * TODO: Suggest a few more stepping tests.
1785 * gdb.base/default.exp: xfail no-stack backtraces for h8300,
1786 restart GDB for h8300 after a continue.
1787 (return): Add pattern to match a29k-udi behavior.
1788 * gdb.base/nodebug.exp: Remove obsolete comment.
1789 * gdb.base/regs.exp: New file, testing of register displays.
1790 * gdb.base/return.exp: Fix typo in reference to $objdir.
1791 * gdb.base/whatis.exp: Always start with a fresh GDB.
1795 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
1796 higher, these tests generate a lot of output.
1800 * lib/gdb.exp (gdb_test): Remove catch from around the send. The
1801 code following the catch silently ignored some errors; without the
1802 catch they should be thrown like any other tcl error. Also, the
1803 catch used "" instead of {} which meant all the callers who wanted
1804 to include one of the characters "[]$ had to quote it an extra time.
1805 * gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
1806 ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
1807 demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
1808 Remove extra quoting.
1812 * gdb.base/commands.exp: Make test names unique; every test either
1813 passes or fails. Update some comments.
1815 * gdb.disasm/hppa.exp (do_system_control_tests): Update.
1819 The following fixes a FAIL caused by the fact that the alpha stabs
1820 configuration didn't use the ".if alpha" code in weird.def.
1821 * gdb.stabs/weird.def (v_comb): Use type attribute to specify 32
1822 bit pointer, so the 32 bit version works even on the alpha.
1823 * gdb.stabs/{alpha.mt,ecoff.mt,aout.sed,hppa.sed,xcoff.sed,weird.def}:
1824 Remove the stuff which allowed us to have separate versions for
1825 alpha and everything else.
1827 * gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
1828 regexp which "info func operator\[\](" is supposed to match. Fix
1829 string to send to GDB. Note that GDB still doesn't work right. Add a
1830 new test for "info func .perator\[\](" which GDB does handle correctly.
1832 * gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems.
1836 * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
1837 gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
1838 gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
1839 gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
1840 it makes the tests harder to understand and confuses test-o-matic.
1841 The preferred style is that each test provides a PASS or a FAIL,
1842 and has a unique message (e.g. "continue #54" not just "continue")
1843 which is the same for the pass and the fail.
1844 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
1845 gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
1847 * gdb.base/printcmds.exp: Use test_print_accept. Remove
1848 prt_accept which was basically the same thing. Likewise for
1849 test_print_reject and prt_reject.
1850 * lib/gdb.exp (test_print_reject): Add some more error message
1851 patterns to match from the former printcmds.exp (prt_reject).
1852 * gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
1853 One defect of the passcount stuff is that some of it failed to
1854 report XPASS where appropriate.
1855 * gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
1856 stuff before and after arg in expected pattern.
1857 (test_paddr_operator_functions): Re-do test without print_addr_of;
1858 this is the only test which seems to want extra stuff there.
1862 * gdb.base/nodebug.exp: Update new tests to reflect improved
1863 wording of gdb output.
1865 * gdb.base/nodebug.exp: Add tests to check that "print", "whatis"
1866 and "ptype" work on variables in files compiled without -g.
1867 Replaces commented out "maint print msymbol" tests.
1871 * gdb.base/setvar.c (dummy): Call malloc.
1873 * gdb.stabs/aout.sed: Enclose comments within a sed command to avoid
1874 losing with the irix4 sed.
1876 * gdb.base/sigall.exp (test_one_sig): Add xfail for "get signal
1881 * TODO: Remove items about corefile.exp testing new exec-file and
1882 backtrace; both are now done. Add items about printing enums.
1886 * gdb.base/sigall.exp (test_one_sig): Attempt to recover if
1887 "get signal $thissig" test fails.
1889 * gdb.base/setvar.exp: Check for and reject crazy expected type hacks.
1893 * gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
1894 compiler warning with dec alpha compiler.
1896 * gdb.base/commands.exp (if_while_breakpoint_command_test): Remove
1897 extra \n from gdb_test call (this explains why the prompt test
1898 that I removed yesterday was there).
1899 (user_defined_command_test): Remove extra \n and prompt test.
1901 * gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST
1902 doesn't exist. Likewise if SIGIO == SIGPOLL, pretend SIGPOLL
1904 * gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL.
1905 Also remove alpha workaround, which turns out to be because
1908 * gdb.base/sigall.exp: Add workaround for alpha weirdness.
1910 * gdb.base/help.exp: Don't test "help show".
1914 * gdb.base/commands.exp: Call gdb_exit and gdb_start so that
1915 "set print address" is on.
1916 * gdb.base/commands.exp (if_while_breakpoint_command_test): Don't
1917 pass prompt to gdb_test; gdb_test already looks for the prompt.
1919 * gdb.base/help.exp: Replace most of docstring for "define" with ".*".
1921 * gdb.base/a1-selftest.exp: Don't test "maint dump-me". That test
1922 was a vestige of the manual TESTSTRATEGY, and the purpose of it
1923 was to make sure that gdb can read a core file. But (a) the "read
1924 the corefile" part didn't make it to a1-selftest.exp, we just
1925 delete the corefile after creating it, and (b) we test reading
1926 corefiles in corefile.exp anyway. Also, this test left around a
1927 xgdb process on Solaris.
1929 * gdb.base/corefile.exp: Also test backtrace.
1933 * gdb.base/commands.exp: Test a simple user defined command with
1934 arguments and if/while statements; verify the full user command is
1935 printed by "show user".
1937 * gdb.base/commands.exp: Test if/while commands as part of a
1938 breakpoint command list; verify they appear in breakpoint
1943 * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather
1944 than by dividing by zero.
1948 * gdb.base/watchpoint.exp: hppa*-*-*bsd* no longer has problems
1949 performing an inferior call with watchpoints enabled.
1950 * gdb.base/watchpoint.c (main): Delete second unnecessary read
1955 * gdb.stabs/weird.exp: Allow spaces followed by backspaces in echo
1958 * gdb.c++/classes.exp (test_ptype_class_objects, ptype class Foo):
1959 Add additional pattern for when "int operator int(void);" appears
1960 in a different order.
1964 * gdb.base/signals.exp: Call gdb_exit and gdb_start.
1966 * gdb.base/help.exp: Replace most of docstrings for "info signals"
1967 and "signal" with ".*".
1971 * TODO: Add note about "handle all nostop".
1973 * gdb.base/{sigall.c, sigall.exp}: New test.
1974 * gdb.base/Makefile.in: Add it.
1978 * lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
1979 when invoking GDB, suppresses any windowing interface.
1983 * config/sim-gdb: New file, simulator testing support.
1987 * gdb.base/interrupt.exp: Test calling func1 twice.
1991 * gdb.base/list.exp (test_forward_search): Set timeout higher
1992 when we'll be getting lots of output from gdb.
1994 * gdb.base/a1-selftest.exp: Move code that was inside expect -re
1995 "init_malloc" to after the expect statement. Run it if that
1996 regexp is taken, but also for two others which happen if source
2001 * gdb.base/printcmds.exp: New test, for printing register before
2006 * gdb.base/list.exp: Correct some alternate expect patterns
2007 to reflect changes in list1.c.
2011 * TODO: Add item regarding large frames.
2013 * gdb.base/{funcargs.exp, funcargs.c} (call_after_alloca): New test.
2015 * TODO: Remove item about enabling return.exp; it
2016 is enabled. Suggest a few more "return" tests.
2020 * gdb.c++/misc.cc, gdb.c++/inherit.exp: Add testcases for
2025 * gdb.chill/Makefile.in: Put all rule before rules for pr-4975.o
2026 and pr-5646.o, so "make" is the same as "make all", not "make
2031 * gdb.base/list.exp: Adjust expectations to reflect changes in
2033 (test_forward_search): New test proc.
2034 * gdb.base/list1.c (long_line): New function, has long source line.
2038 * gdb.base/a1-selftest.exp: Change initial stepping to know about
2039 additional line of code that was added.
2043 * gdb.disasm/hppa.s: Break the large branching tests into smaller
2044 tests so as not to overflow expect's input buffers.
2045 * gdb.disasm/hppa.exp: Corresponding changes.
2049 Beginnings of template debugging tests.
2050 * gdb.c++/templ-info.cc: New file to test for template
2051 debugging capability of the compiler.
2052 * gdb.c++/Makefile.in: Add rule to build templ-info.exp from
2054 * gdb.c++/templates.cc: Add explicit template instantiations
2055 to enable compiling with -fno-implicit-templates. Add destructor
2056 and 'value' method to T5 class for template tests.
2057 * gdb.c++/templates.exp: Add testcases for printing of template
2058 types, setting breakpoints on template methods and calling a
2063 * gdb.disasm/hppa.exp (branch_tests): Allow any symbol as the
2064 branch target since some assemblers (gas-2.5) may emit a
2065 relocation for the branch instead of resolving it in the
2070 * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtrace
2071 through signal handler.
2075 * configure.in (*-*-netware): Use config/mt-netware.
2077 * config/mt-netware: New file.
2078 * config/mt-i386-netware: Removed, separate configs for different
2079 netware architectures are no longer needed now that we have
2084 * gdb.base/exprs.exp: Remove xfail for alpha, it is fixed
2085 by the recent changes to use ANSI C arithmetic conversions.
2089 * gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
2090 bug involving using inferior_pid to figure out whether to select a
2095 * gdb.disasm/hppa.exp: Change arg[0..3] to r[26..23] to
2096 match the current disassembler output.
2100 * gdb.fortran/exprs.exp: Expect VOID instead of void.
2101 * gdb.fortran/types.exp: Escape the expected '*'s in Fortran
2102 types, expect "int" as type of integer values (for now).
2106 * gdb.base/commands.exp: New tests for if/while commands.
2110 * lib/gdb.exp (runto): Replace sub-pattern for hex value
2111 by .*, since hex values have different syntax in Chill mode.
2115 * gdb.c++/demangle.exp (test_arm_style_demangling): Remove
2116 linefeed from expect pattern for repeated types with indices > 9.
2120 First part of Fortran test suite.
2121 * gdb.fortran: New directory.
2122 * gdb.fortran/exprs.exp, gdb.fortran/types.exp: New files.
2126 * gdb.base/default.exp: Update expect pattern for load command
2131 * configure.in: Change i386 to i[345]86.
2132 * gdb.base/configure.in: Likewise.
2133 * gdb.c++/configure.in: Likewise.
2134 * gdb.chill/configure.in: Likewise.
2138 * lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
2139 patterns, since that is not a valid context for comments.
2143 * gdb.c++/demangle.exp (test_arm_style_demangling): Add tests for
2144 repeated types and repeated types with indices > 9.
2148 * gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
2149 2417; old bug has been fixed.
2153 * gdb.base/interrupt.exp: When trying to wake up the inferior,
2154 send the newline ourselves instead of assuming gdb_test will do
2155 so when passed an empty input string.
2157 * gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
2162 * lib/gdb.exp (gdb_test): Don't send anything if the first
2163 argument is an empty string. This makes cases where we want to
2164 match output that is already in expect's buffers (for example,
2165 matching a breakpoint after gdb_run_cmd has been called) work
2170 * config/netware.exp: New file.
2174 * config/mt-slite (LDFLAGS): If using the newlib in the tree, set
2175 the -B and -L prefixes so we can find the debugging stub.
2177 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
2178 there and we are using the gcc from the tree.
2180 * gdb.base/types.c: Removed.
2182 * gdb.base/configure.in: Look for makefile fragments in ../config.
2183 Recognize i386-*-netware.
2184 * gdb.c++/configure.in: Likewise.
2188 * gdb.base/corefile.exp: Change `else if' to `elseif', which is
2189 the correct TCL syntax.
2193 * gdb.base/opaque.exp: use runto instead of messing around with
2194 breakpoints. Simplify by using gdb_test.
2196 * gdb.base/bitfields.exp: restart between tests on netware targets
2197 because breakpoints aren't relocated after target death. Run
2198 processes to completion.
2200 * gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.
2204 * Makefile.in: Remove extra tabs that confuse some versions
2205 of "make". Use the newly built gdb to test with by default,
2206 rather than the first one in the tester's search path.
2210 * gdb.base/whatis.exp (v_signed_short_array): Fix a typo.
2212 * gdb.base/help.exp: Update expected add-symbol-file, ignore, and
2217 * lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
2219 * lib/gdb.exp (gdb_run_cmd): New function, used to start program
2221 * gdb.base/bitfields.exp: Use gdb_run_cmd to start program.
2222 * gdb.base/funcargs.exp: Likewise.
2224 * gdb.base/bitfields.exp: Simplify by using gdb_test.
2225 * gdb.base/funcargs.exp: Likewise.
2227 * lib/gdb.exp (gdb_test): if match times out, don't call fail if
2232 * gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
2233 return,signals,twice}.exp: Handle non-existant binaries
2236 * gdb.base/corefile.exp: Execute coremaker to generate core dump.
2237 * gdb.base/Makefile.in: Don't try to generate a core dump, we
2238 might testing a cross development system.
2242 * Makefile.in (RUNTEST_FOR_TARGET): Fix relative pathname, the
2243 runtest script is relative to ${srcdir}, not ${rootdir}.
2247 * gdb.base/signals.exp: Allow for optionality of breakpoint
2252 * gdb.base/{ptype.exp,ptype.c}: Add t_char_array test.
2256 * gdb.c++/cplusfuncs.cc: Include <stddef.h>, not <sys/types.h>,
2257 for size_t definition.
2258 * gdb.c++/templates.cc: Likewise
2260 * config/mt-i386-netware: New file.
2262 * gdb.base/interrupt.c: Do not test if errno == EINTR if it's not
2265 * gdb.base/Makefile.in: Added support for systems that name core
2266 files by appending "core" to the program name.
2267 * gdb.base/a1-selftest.exp: Likewise.
2271 * gdb.base/return.exp: Add comment and message for `return double'
2272 test failure on Sparc Solaris.
2276 * lib/gdb.exp (runto): Allow for optionality of breakpoint address.
2280 * gdb.c++/misc.cc: Instantiate classes to inhibit the compiler
2281 from optimizing them away.
2282 * gdb.c++/classes.exp, gdb.c++/inherit.exp: Update ptype expect
2283 patterns to include default constructors and assignment operators,
2284 to match gcc versions beyond 2.5.8. Accept any cplus demangling
2285 character in the output of the virtual base pointer.
2289 * gdb.c++/cplusfuncs.exp: Use string_to_regexp and a regular
2290 expression match in print_addr_of to avoid unintented matches.
2291 * gdb.c++/virtfunc.exp: Accept alternate ptype output of g++
2292 versions up to 2.5.8.
2296 * gdb.base/list.exp: Tweak alternate pattern for listing of an
2297 included file to run under newer versions of expect.
2298 * gdb.c++/demangle.exp: Add spaces to the expect patterns between
2299 consecutive >'s in templates to accomodate recent cplus-dem.c change.
2300 Remove xfail for the virtual table of BDDHookV.
2304 * lib/gdb.exp (string_to_regexp): Set a default result.
2305 (default_gdb_start): Fix misleading message.
2309 * config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
2310 Remove all CC, etc definitions.
2311 * config/mt-hpux: New file.
2312 * config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
2313 (CFLAGS, LDFLAGS): Define.
2314 * config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.
2316 * Makefile.in (site.exp): Don't insert host_os, etc.
2317 (just-check): Just use RUNTEST with RUNTESTFLAGS only.
2318 (distclean): Check existence of subdir.
2319 * gdb.base/configure.in (hppa*-*-hpux*): Recognize.
2320 * gdb.base/Makefile.in: General cleanup and simplification.
2321 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
2322 to build executables. Use default rule to build .o files.
2323 (EXPECT, RUNTEST, CC): Fix relative pathname.
2324 (site.exp): Don't insert host_os, etc.
2325 * gdb.base/signals.c (main): Don't call signal unless SIGALRM
2326 and/or SIGUSR1 defined.
2327 * gdb.base/watchpoint.c: Don't include stdio.h a second time.
2328 * gdb.c++/Makefile.in: General cleanup and simplification.
2329 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
2331 (EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
2335 * gdb.base/recurse.exp: Misc changes to get tests running again
2336 after Kung's changes to the watchpoint code.
2337 * gdb.base/watchpoint.exp: Likewise.
2341 * lib/gdb.exp (string_to_regexp): Convert {\} also.
2345 * config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
2346 * lib/gdb.exp (default_gdb_start): Define.
2347 * gdb.base/bitfields.exp, gdb.base/break.exp, gdb.base/exprs.exp,
2348 gdb.base/funcargs.exp, gdb.base/opaque.exp,
2349 gdb.base/printcmds.exp, gdb.base/ptype.exp, gdb.base/recurse.exp,
2350 gdb.base/scope.exp, gdb.base/setvar.exp, gdb.base/watchpoint.exp,
2351 gdb.c++/classes.exp, gdb.c++/misc.exp, gdb.c++/virtfunc.exp:
2352 Don't call gdb_target_udi in between tests.
2356 * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
2357 (which was basically just a local version of the same thing). In
2358 addition to avoiding duplication, gdb_test_exact is faster.
2359 * lib/gdb.exp (gdb_test_exact): Fix typo.
2361 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
2362 don't give an error.
2364 * gdb.base/term.exp: Call delete_breakpoints before starting.
2366 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
2371 Reorganization of the GDB Test Suite.
2373 * gdb.base: New directory, contains all the basic tests.
2374 * gdb.c++: New directory, tests specific to C++.
2375 * gdb.chill: New directory, tests specific to Chill.
2376 * gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
2377 gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
2378 gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
2379 gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
2380 into appropriate new directories (t00-t17 to base, t20-t23 to c++,
2382 * */gdbme.*: Rename to match appropriate expect scripts.
2383 * gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
2384 gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
2385 gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
2386 gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
2387 gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
2388 gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
2389 gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
2390 gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
2391 gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
2392 gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
2393 * gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
2394 gdb.c++/virtfunc.cc: New names of C++ files.
2395 * gdb.chill/chillvars.ch: New name of Chill file.
2396 * gdb.base/configure.in, gdb.c++/configure.in,
2397 gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
2398 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
2399 gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
2400 * configure.in (configdirs): Update to reflect directory changes.
2401 (target_abbrev): No longer define for any configuration.
2402 * Makefile.in: Cosmetic improvements to header comments.
2406 Various changes to gdb.t31:
2408 * Makefile.in (gdbme.o): Compile with -fspecial_UC.
2409 * gdbme.ch: Make all key-words and predefineds be upper-case.
2410 * chillvars.exp: Expect key-words and predefinds in upper-case.
2412 * chillvars.exp: Use gdb_test_exact many places.
2413 Change expected output for arrays (which now includes index labels).
2415 * pr-5020.exp, gdme.ch (module PR_5020):
2416 New test, for PR-5020.
2420 * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.
2421 * Makefile.in (CHILL_LIB): Remove bogus redundant definitions.
2425 * Makefile.in: Fix bit-rot in definitions of CHILL,
2426 CHILL_FOR_TARGET and Chill_LIB.
2427 * gdb.t31/gdbme.ch: Fix syntax of nested array tuples.
2428 * gdb.t31/Makefile.in: Add definitions for CHILLFLAGS,
2429 CHILL, and CHILL_LIB.
2433 * Revert the previous changes. Please see Rob's directory
2434 /lisa/test/rob/progressive/gdb/testsuite for these fixes.
2438 * Makefile.in, configure.in, config/mips-gdb.exp,
2439 config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
2440 config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
2441 config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
2442 gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
2443 gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
2444 gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
2445 gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
2446 gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
2447 gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
2448 gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
2449 gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
2450 gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
2451 gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
2452 gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
2453 gdb.t24/demangle.exp, lib/gdb.exp: Check in Rob's testing
2458 * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
2459 config/mt-slite, config/mt-unix, config/mt-vxworks: Add
2460 Rob's new testing fragments.
2464 * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
2465 lib/gdb.exp: Replace error proc calls with perror.
2469 * gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the
2470 version also, match on casted version strings, and match on
2471 gdb startup case where the line numbers might be messed up.
2475 * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
2476 (CFLAGS): Delete it from here.
2480 * gdb.t22/virtfunc.exp: Fix g++ ptype expected outputs.
2484 * Makefile.in (RUNTEST): Default to just "runtest".
2488 * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
2489 * gdb.t17/gdbme.c (t_func_values): Add comments about how and why
2490 the code has been restructured.
2494 * gdb.t00/default.exp (set write): Allow any number of \r and/or
2495 \n, not just one of each.
2497 * gdb.t07/gdbme.c (main): Don't take address of an array; SunOS4
2498 /bin/cc gives a warning if you do.
2502 * gdb.t24/demangle.exp: change expect pattern of
2503 __t10ListS_link1ZUiRCUiPT0
2507 * gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
2508 on local variables in recursive functions.
2510 * gdb.t07/Makefile.in: Build the new test.
2514 * gdb.t17/gdbme.c (t_func_values): Do not compare function pointers
2515 directly. Instead compare the return values from actual calls.
2519 * Makefile.in (check): Set TCL_LIBRARY for runtest.
2523 * From Peter Schauer with minor modifications.
2524 * gdb.t15/return.exp (return_tests): Handle targets where "return"
2525 stops in mid-line in the caller. Add xfail for returning a float
2526 value on X86 targets.
2530 * gdb.disasm/hppa.exp (fcmp_tests): Break up into two halves
2531 to avoid expect lossage.
2532 (fmem_LRbug_tests): Likewise.
2533 * gdb.disasm/hppa.s: Corresponding changes.
2535 * gdb.disasm/hppa.exp: Rework escape sequences and end-of-line
2536 conditions to work with latest dejagnu/expect.
2538 * gdb.t15/funcargs.exp (finish from indirect call): No longer
2539 expected to fail on the PA.
2540 (backtrace in call with trampolines): Explicitly require main
2541 to be frame #1 (no trampolines should show up in backtrace).
2543 * gdb.t00/default.exp: Use "exp_continue" rather than obsolete
2545 * gdb.t06/break.exp: Likewise.
2546 * gdb.t07/watchpoint.exp: Likewise.
2547 * gdb.t13/bitfields.exp: Likewise.
2548 * gdb.t15/{funcargs,return}.exp: Likewise.
2549 * gdb.stabs/weird.exp: Likewise.
2550 * config/{mips,udi}-gdb.exp: Likewise.
2552 * hppa.sed: Enclose comments within a sed command to avoid
2553 losing with the old OSF1 sed.
2557 * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs for
2559 * gdb.t06/signals.exp: Add clear_xfail for sequent dynix.
2560 * gdb.t15/funcargs.exp: Conditionally step again to really
2561 finish from marker_call_with_trampolines. Handle the case where
2562 the first step from within call_with_trampolines already steps
2564 * gdb.t15/gdbme.c: Add comment to closing brace of
2565 call_with_trampolines for funcargs.exp.
2569 * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
2574 * gdb.t07/gdbme.c: More code for watchpoint testing.
2576 * gdb.t07/watchpoint.exp: Accept both "Watchpoint" and
2577 "Hardware watchpoint" throughout file.
2578 (test_watchpoint_triggered_in_syscall): New test.
2579 (test_complex_watchpoint): New test.
2583 * gdbme.c (call_with_trampolines): New function to try and step
2584 into. Tests trampoline problems on the PA.
2586 * funcargs.exp (localvars_in_indirect_call): No longer expect
2587 stepping into indirect call to fail on PAs.
2588 (test_stepping_over_trampolines): New test.
2592 * TODO: Add suggestions for static member function tests, and
2597 * TODO: Add suggestions for "p/a" tests.
2599 * lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
2600 (default_gdb_exit): Replace all the hair with sending "quit" to
2601 the process with a simple close.
2605 * TODO: Add suggestions for shared library tests.
2609 * TODO: Add suggestions for x/s tests.
2613 * gdb.t00/help.exp: Replace most of docstrings for "tbreak",
2614 "enable once", and "enable breakpoints once" with ".*".
2618 * TODO: Add suggestions about structure passing tests.
2622 * gdb.t03/gdbme.c: gcc version 1 puts out the wrong stabs for
2623 the primary1 test, use work around if __GNUC__ < 2.
2624 * gdb.t06/signals.c: Add comments for signals.exp pattern matching.
2625 * gdb.t06/signals.exp: Add XFAILs for i386 bsd and vax ultrix.
2626 Test for bad output rather than waiting for timeout. Issue
2627 second continue only if first continue failed.
2631 * gdb.t21/cplusfuncs.exp (test_paddr_operator_functions): Do
2632 operator[] test with gdb_test because the old code didn't seem to
2633 be getting the quoting right with the new dejagnu.
2637 * lib/gdb.exp: Set GDB to a fresh gdb if there is one, else use
2639 * Makefile.in: Use a fresh expect if there is one, use runtest
2640 from the src tree if there is one.
2644 * gdb.t06/break.exp (test_next_with_recursion): Remove xfail for
2645 next over recursive call. Revise the tests from that point on
2646 (which had been skipped) to match GDB's actual (correct) output.
2648 * gdb.t07/watchpoint.exp (test_stepping): Remove xfail for bug
2649 with next over a breakpoint whose condition is false.
2651 * gdb.t00/help.exp: Comment out "help set print" tests just like
2652 (and for same reason as) "help set" test.
2656 * gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
2657 * gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
2661 * gdb.t06/break.exp (test_next_with_recursion): Remove no longer
2662 necessary gdb_target_udi.
2664 * gdb.t03/ptype.exp: For UDI, skip tests which call malloc.
2666 * gdb.t02/whatis.exp, gdb.t03/ptype.exp: Remove xfails for PRs
2667 1838 and 2417; they are fixed.
2669 * gdb.t02/whatis.exp (v_char_array, v_signed_char_array),
2670 gdb.t03/ptype.exp (ptype structure, ptype union):
2671 Remove xfails; the test is looser than when the xfails were added.
2673 * gdb.t00/{help.exp,default.exp}: Don't test "target remote" on UDI.
2674 * gdb.t00/help.exp: Don't expect remote to be in "help target" output.
2676 * gdb.t01/run.exp: Only run shell test if isnative.
2678 * config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
2679 since "run" automatically loads if necessary. Call gdb_target_udi
2680 after the "file" since "file" kills any execution target.
2682 * config/udi-gdb.exp (gdb_start): Don't send "set args main" to
2683 GDB. GDB doesn't work that way (not anymore at least) on UDI.
2684 * gdb.t01/run.exp, gdb.t06/break.exp: Don't pass extra first
2689 * gdb.t17/interrupt.c: If we get EINTR, don't print an error message.
2691 * gdb.t17/callfuncs.exp: Add xfails for rs6000.
2695 * gdb.t24/demangle.exp: Re-write demangle to just call gdb_test,
2696 properly quoting regexps. This makes the second argument to
2697 demangle a fixed string, which matches the callers, instead of a
2698 shell-style pattern which is what the previous implementation
2699 used. Update some of the callers.
2703 * gdb.disasm/hppa.s (comib_tests): Add missing instruction.
2704 (comib_nullified_tests): Fix typo.
2705 * gdb.disasm/hppa.exp (all comb tests): Fix thinkos in expect
2706 strings. No longer expected to fail.
2708 * gdb.disasm/hppa.s (addib_tests): Fix typo.
2709 * gdb.disasm/hppa.exp (all addb tests): Fix thinkos in expect
2710 strings. No longer expected to fail.
2712 * gdb.disasm/hppa.exp (fmpy_addsub_tests): Fix typo in expect
2713 string. No longer expected to fail.
2717 * gdb.disasm/hppa.exp (fcmp_tests): Fix thinko in expect string.
2718 No longer expected to fail.
2720 * gdb.disasm/hppa.exp (xmpyu_tests): Fix buglet in expect
2721 string. No longer expected to fail.
2725 * gdb.t24/demangle.exp: Remove a bunch more tests which differ
2726 only in the names (I probably got most of them). I was even
2727 generous with some which differed in underscores in names, and
2728 probably missed a few, and I *still* was able to remove almost a
2729 third of the file with almost no impact on testsuite coverage.
2733 * gdb.t00/default.exp: Match udi_attach error message as well as
2734 the one from child_attach.
2736 * gdb.t00/default.exp: Use "." instead of "?" to match a question mark.
2738 * gdb.stabs/weird.exp: Remove xfail for const70; just fixed in GDB.
2740 * gdb.stabs/weird.def (bad_neg0type): Size of this type is 16, not 8.
2741 * gdb.stabs/weird.exp: Remove xfail for "p bad_neg0"; this fixes it.
2743 * Move test with enums and partial symbols back to
2744 gdb.t03/{ptype.exp,gdbme.c} from gdb.stabs/{weird.def,weird.exp}.
2745 Reverts the change of 26 May 93. Per today's change to
2746 stabs.texinfo, the behavior that weird.exp was expecting was
2747 unreasonable; what is important is that the compiler+gdb get
2748 things right, which happens with a recent gcc. Also fix the test
2749 to deal with native compilers which put out the stab gdb can't
2754 * gdb.t24/demangle.exp: Remove a bunch of tests which differ only
2755 in the names. The main thing these accomplish is to slow things down.
2756 Many more such duplicates surely remain.
2758 * gdb.t00/help.exp: Comment out "help support" test just like
2759 (and for same reason as) "help set" test.
2763 * gdb.t06/break.exp: Remove setup_xfails for
2764 sparc-sun-solaris2.*, these tests now pass with latest gcc and gdb.
2765 * gdb.t20/inherit.exp (test_ptype_si): Update warning message
2766 about known bug in gcc to include up through 2.5.8.
2767 * gdb.t20/inherit.exp (test_ptype_vi): Accept "_vb." as well as
2769 * gdb.t21/cplusfuncs.exp (test_lookup_operator_functions):
2770 Remove setup_xfails for sparc-sun-solaris2.*, these tests now pass
2771 with latest gcc and gdb.
2772 * gdb.t22/virtfunc.exp (test_ptype_of_classes): Accept "_vb." as
2777 * configure.in (hppa*-*-*): Also configure and build stabs-only
2782 * gdb.t10/hppa.mt: A makefile fragment for the PA.
2783 * gdb.t10/configure.in (hppa*-*-*): Use it.
2787 * gdb.t09/corefile: Increase timeout when spawning gdb explicitly.
2791 * gdb.t06/signals.exp: Handle blocked SIGTRAP on sun3 for bash
2792 versions prior to 1.13.5.
2796 * gdb.t00/default.exp (show prompt): In FAIL case, only match if
2797 the prompt is at the start of a line.
2801 * gdb.disasm/hppa.s: Add new tests for sfu and copr instructions.
2802 Enable "diag" instruction. Delete copr from fpu_misc_tests, it's
2803 in the copr tests now.
2804 * gdb.disasm/hppa.exp: Run new sfu and copr tests. Do not expect
2805 copr in the fpu_misc tests anymore. fpu_misc tests are no longer
2810 * gdb.t00/teststrategy.exp, gdb.t07/watchpoint.exp,
2811 gdb.t31/chillvars.exp, lib/gdb.exp:
2812 Tweak to run under either version of expect.
2813 * lib/gdb.exp (default_gdb_exit): Remove "catch" statement.
2814 * gdb.t00/teststrategy.exp: Use isnative and verbose procedures.
2815 * gdb.t11/list.exp: Remove extraneous whitespace.
2819 * gdb.t16/printcmds.exp (test_print_strings): Accept
2820 "(unsigned char *) " before the string.
2822 * TODO: Add notes about printing of fancy types and GDB expressions.
2826 * Makefile.in: Pass LDFLAGS and LIBS to sub-makes.
2827 * gdb.t06/configure.in: Don't try to compile signals test program
2828 if doing mips-idt-ecoff.
2832 * Most .exp files: Tweak to run under either version of expect.
2836 * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
2837 xfails; I'm not sure why they are failing, but not because of PR 1806.
2841 * config/unix-gdb.exp: Remove gdb_unload cause it's already
2842 defined in lib/gdb.exp.
2846 * gdb.t07/watchpoint.exp: Clear xfail for calling function with
2847 watchpoint enabled on mips, CALL_DUMMY_BREAKPOINT_OFFSET got defined.
2848 * gdb.t20/gdbme.cc, gdb.t21/gdbme.cc: Conversion operator functions
2849 have to be typeless.
2853 * TODO: Add suggestion for copyright year test.
2857 * configure.in (*-*-lynxos*): Add stabs tests.
2861 * gdb.stabs/hppa.sed: Only lables should ever start in column zero,
2862 so insert a tab before any assembler directive in column zero.
2864 * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
2866 * gdb.disasm/hppa.s (fpu_memory_indexing_tests): Add FP quadword
2868 (fpu_short_memory_tests): Likewise.
2872 * gdb.stabs/ecoff.mt: Delete alpha specific if block, fix typo.
2873 * gdb.stabs/ecoff.sed: Escape inserted blanks with backslashes, embed
2874 .stabs directives in comments.
2878 * TODO: New file, describing tests we could write.
2879 * gdb.t09/corefile.exp: Move description of tests to write to TODO.
2883 * gdb.t06/signals.exp: Add kludge to force re-sync.
2885 * gdb.t00/teststrategy.exp: If we accidently send the "maint dump-me"
2886 to xgdb instead of gdb, get out of gdb.
2890 * lib/gdb.exp: Make GDB and GDBFLAGS global so the scoping work
2895 * gdb.stabs/hppa.mt: A makefile fragment for the PA.
2896 * gdb.stabs/configure.in (hppa*-*-*): Use it.
2897 * gdb.stabs/hppa.sed: New sed script for the PA.
2901 * gdb.stabs: Re-write weird.def and configuration to use sed
2902 instead of cpp. sed is portable and POSIX; cpp is neither.
2906 * gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed.
2910 * gdb.t20/gdbme.cc: Add comment about pmi being optimized out.
2914 * gdb.stabs/weird.exp, gdb.t22/virtfunc.exp: Accept "_vb." as well as
2916 * gdb.t00/teststrategy.exp: Add xfail for RS/6000.
2917 * gdb.t03/ptype.exp: Add comments and messages about FAILs with xlc.
2921 * lib/gdb.exp: Comment out code which depends on non-existent
2922 `transform' procedure.
2926 * lib/gdb.exp (default_gdb_exit): Remove `catch "close"'.
2927 * lib/gdb.exp: Transform tool name.
2928 * gdb.t*/*.exp: Change error to perror so it works with DejaGnu
2929 1.1's new error handling system.
2933 * Makefile.in, gdb.t2*/Makefile.in: Add -O to CXXFLAGS.
2937 * gdb.t00/default.exp: Avoid tests with a lot of .* in them.
2938 They made pattern matching so slow that timeouts happened on
2939 heavily loaded systems. Now any output from "show print" which
2940 gets us back to the GDB prompt is a PASS.
2942 Mon Oct 25 14:36:50 1993 Stu Grossman (grossman at cygnus.com)
2944 * gdb.disasm/hppa.mt: Use $(srcdir) in hppa.o make rule.
2948 * gdb.t06/signals.exp: Skip whole file with xfail for HPPA.
2950 * gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
2951 It is not from PR 3220.
2955 * gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
2956 just started failing because they depended on the order the
2957 subcommands are presented, or exact docstring text. This kind of
2958 test is a pain and has minimal benefit.
2962 * gdb.t09/corefile.exp: At end of test, use "core" command with
2965 Wed Oct 20 08:56:02 1993 Stu Grossman (grossman at cygnus.com)
2967 * gdb.t{01 02 03 04 05 06 07 08 09 10 11 12 13 15 16
2968 17}/Makefile.in: Make it possible to run the testsuite with Sun
2969 make and CC = cross gcc by adding explicit build rules for .o
2974 * gdb.t15/funcargs.exp: Don't put comments on same line as
2975 setup_xfail (@#$*%& tcl braindamage!).
2979 * gdb.disasm/hppa.exp: Use $objdir/$subdir/$binfile not just $binfile.
2983 * gdb.t20/classes.exp: 'const xxx &' becomes 'xxx const &'.
2984 * gdb.t20/inherit.exp: remove three dumplicate entries.
2988 * gdb.t06/break.exp: For "next over recursive call", fail on any
2989 incorrect output, not just on "factorial (value=2)".
2993 * gdb.t12/scope.exp: Remove xfails, filename::var syntax should be
2994 working now. Add an xfail if accesing a bss variable causes
2995 a memory error if the target is not yet run.
2999 * gdb.t24/demangle.exp: Clean up spacing (2 strings), inclusion of
3000 constructor name (2 string), name of _GLOBAL_ demangling (2 strings),
3001 name of __st* demangling (2 strings). Did Kung really get the
3002 more than 95 others right without testing them?
3006 * gdb.t24/demangle.exp: clean up XFAILS, more than 100
3010 * configure.in (configdirs): Add gdb.disasm
3011 * gdb.disasm: New directory for GDB disassembler tests.
3012 * gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.
3016 * gdb.t00/help.exp: Don't test "help set".
3018 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Remove all xfails
3019 from within expect statements. None of these happen anymore and
3020 they cause regressions to be silently unnoticed.
3022 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Add notes (in failure
3023 messages) about known failures with gcc cygnus-2.4.5-930417.
3025 * gdb.t02/Makefile.in, gdb.t08/Makefile.in: Make all depend on
3026 comp-info.exp so it gets built if it doesn't exist.
3028 * gdb.t13/{Makefile.in,bitfields.exp}: Remove comp-info.exp stuff;
3029 it is no longer used.
3030 * gdb.t13/comp-info.c: Removed.
3034 * gdb.t06/signals.exp: Add xfail for sun3.
3038 * gdb.t17/interrupt.exp: Add xfail for Irix (currently not really
3039 relevant because ^C doesn't get sent but failure can be reproduced
3044 * gdb.stabs/alpha.mt: New configuration file for alpha.
3045 * gdb.stabs/configure.in: Use it.
3046 * gdb.stabs/ecoff.mt, weird-ecoff.sed: Change sed script to enable
3047 sharing with alpha.mt, redefine long to word via preprocessor.
3048 * gdb.stabs/weird.def: Conditionally adapt storage layout of v_comb
3050 * gdb.stabs/weird.exp: Handle compilation of weird.s by alpha
3052 * gdb.t00/teststrategy.exp: Change expect string so that we
3053 consume the `(xgdb)' from the command echo and from the gdb prompt.
3054 * gdb.t05/expr.exp: xfail "print unsigned int == (~0)" on the alpha.
3055 gdb currently compares all values as long, so this failure probably
3056 applies to any configuration where LONGEST is bigger than a target int.
3057 * gdb.t08/comp-info.c: New file to determine if gdbme is compiled
3059 * gdb.t08/Makefile.in, opaque.exp: Use it. Alpha native cc is unable
3060 to handle opaque pointers, gcc is.
3061 * gdb.t21/gdbme.cc, gdb.t23/gdbme.cc: operator new takes a size_t
3062 as first argument. Include <sys/types.h> and change all operator
3063 new definitions to use size_t.
3064 * gdb.t21/cplusfuncs.exp: Handle changes in output for operator new
3065 now that we use size_t.
3069 * gdb.t03/ptype.exp, gdb.t15/printcmds.exp: When constructing
3070 a long or float array cast all array members to the same type.
3071 * gdb.t04/setvar.exp: Handle the decimal output of an unsigned long
3073 * gdb.t07/watchpoint.exp: Add finish and until variations encountered
3075 * gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Add xfails for alpha.
3079 * gdb.t24 (demangle.exp): Constructors of templates have names like
3080 vector<int>::vector(int) not vector<int>::vector<int>(int). See
3081 section 14.6 of the ARM.
3083 * gdb.t24 (demangle.exp): Remove a whole bunch of tests of the form
3084 "_vt$MoveCmd"; these differ only in name from "_vt$foo", so they
3085 accomplish little and slow down the testsuite.
3087 * gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
3088 Accept spaces various places.
3092 * gdb.t07/watchpoint.exp: On sparc, clear xfail for calling function
3093 with watchpoint enabled.
3095 * Makefile.in: Remove definition of CC and remove the second
3096 definition of CXX (the "CXX = gcc" one remains). These definitions
3097 were causing backquotes to be expanded within backquotes, which
3102 * gdb.t17/callfuncs.exp: Add "return 0" to end.
3106 * gdb.stabs/ecoff.mt: Remove STABSCC hack.
3107 * gdb.stabs/weird.exp: Handle the case where weird.o is compiled
3108 by mips cc and contains no stabs entries.
3112 * config/vx-gdb.exp: Use fake device to load files rather than
3114 * lib/gdb.exp: New proc to do "file" command.
3115 * config/unix-gdb.exp: Use new "file" proc.
3119 * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
3120 Rework board rebooting slightly.
3121 (gdb_exit): Don't exit from the remote shell; there isn't one.
3122 * gdb.stabs/weird.exp: If a program is being debugged already,
3124 * gdb.t04/setvar.exp: Stop and restart gdb.
3125 * gdb.t05/expr.exp: Likewise.
3126 * gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
3127 restart gdb and reload the program.
3128 * gdb.t08/opaque.exp: Likewise.
3129 * gdb.t12/scope.exp: Likewise.
3130 * gdb.t13/bitfields.exp: Likewise.
3131 * gdb.t15/funcargs.exp: Likewise.
3132 * gdb.t20/classes.exp: Likewise.
3133 * gdb.t03/ptype.exp: Increase timeout.
3134 * gdb.t16/printcmds.exp (test_print_string_constants,
3135 test_print_array_constants): Likewise.
3136 * gdb.t17/callfuncs.exp (do_function_calls): Likewise.
3137 * gdb.t20/classes.exp (do_tests): Likewise.
3138 * gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.
3142 * gdb.stabs: Renamed *wierd* to *weird*.
3146 * gdb.t13/bitfields.exp: Test for bad output rather than waiting
3147 for timeout. Add "known gcc 2.4.5 bug" to failure message.
3151 * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
3152 (do_tests): Remove xfail for whatis on one_var and two_var.
3156 * Makefile.in: Made cross building work better by adding
3157 {RUNTEST,CC}_FOR_TARGET and using TARGET_FLAGS_TO_PASS.
3161 * gdb.t15/{return.c,return.exp,Makefile.in}:
3162 New test, currently commented out.
3166 * config/udi-gdb.exp: gdb_exit now kills any isstip processes
3167 still running and removes the leftover named socket so GDb can do
3172 * gdb.t01/run.exp: Add match for VxWorks, cause I/O comes out the
3174 * config/mt-*: Added default values for RUNTEST and RUNTESTFLAGS so
3175 cross testing works better with "make check"
3176 * config/unix-gdb: Use default procedures for exit and version.
3177 * config/vx-gdb.exp: Cleaned up and massaged back to working order
3178 with the newest VxWorks.
3182 * gdb.t20/classes.exp: For "ptype class Base1", continue to accept
3185 * gdb.t22/virtfunc.exp: If it prints `struct' (not `class') with a
3186 name (e.g. devo gdb with gcc 2.4.5), it is still a pass.
3188 * gdb.t10/crossload.exp: Skip whole file (for now, until we fix it).
3190 * config/unix-gdb.exp: Remove this version of gdb_exit
3191 * lib/gdb.exp: Merge in all the crap from config/unix-gdb.exp.
3192 Rob says he'll look at it when he gets back to testing boards.
3196 * gdb.t22/virtfunc.exp: Accept missing struct/class names as
3197 an expected fail for certain ptype commands.
3199 * gdb.t20/classes.exp: Update expected results of "ptype class
3200 Base1" to account for the constructor that now appears in the type.
3204 * configure.in (configdirs): Restore gdb.t04, which mysteriously
3205 disappeared from list.
3206 * config/{udi-gdb.exp, gdb-unix.exp}: Replace calls to obsolete
3207 "alldone" proc with call to cleanup and exit.
3208 * {gdb.t01/run.exp, gdb.t01/term.exp, gdb.t02/whatis.exp,
3209 gdb.t03/ptype.exp, gdb.t04/setvar.exp, gdb.t05/expr.exp,
3210 gdb.t06/break.exp, gdb.t07/watchpoint.exp, gdb.t08/opaque.exp,
3211 gdb.t09/corefile.exp, gdb.t10/crossload.exp, gdb.t11/list.exp,
3212 gdb.t12/scope.exp, gdb.t13/bitfields.exp}: Replace calls to
3213 "alldone" proc with simple returns that suppress remaining
3214 tests. The alldone proc went away many months ago.
3218 * gdb.t10/nodebug.exp: Comment out "maint print msymbols" tests.
3220 * gdb.t12/gdbme0.c (localscopes, autovars): Modify to foil gcc -O.
3224 * gdb.t15/funcargs.exp: Allow arguments for main in backtraces
3225 as vax gdb will display them.
3229 * gdb.t20/gdbme.cc: Do some calculation with v.x, to confound
3232 * scope.exp: Change "bad value for localval" messages so each one
3235 * config/unix-gdb.exp (gdb_exit): Move info on this vs.
3236 lib/gdb.exp (gdb_exit) from ChangeLog to comments.
3238 * gdb.t06/signals.exp: Skip the whole file with xfail for delta68.
3242 * gdb.t00/teststrategy.exp: Deal with it if cmdsize = 1 line
3243 doesn't exist (due to optimization).
3247 * gdb.stabs/wierd.exp: Deal with it if echo of "file" command
3248 contains \r because the filename is long.
3250 * gdb.t06/signals.exp: Revise comments regarding "'next' behaved as
3251 'continue'" bug, and change xfail back to i*86-univel-sysv4*.
3255 * gdb.t00/help.exp, gdb.t02/whatis.exp, gdb.t07/watchpoint.exp,
3256 gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Update for vax running
3258 * gdb.t02/whatis.exp: Use procedure to setup xfails on long versus
3260 * gdb.t08/opaque.exp: Use procedure to setup xfails for opaque tests.
3264 * Makefile.in (distclean): Remove *.log *.plog *.sum *.psum site.*.
3266 * gdb.t17/interrupt.exp: Fix 'missing Continuing' case so pattern
3267 to match does not match the passing case but still matches the
3272 * Makefile.in (distclean): Remove *.plog *.sum *.psum site.*.
3276 * lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
3277 to here. Fix 'Quit anyway.*?' bug (? is a regexp metacharacter).
3278 * config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
3279 Remove various versions of gdb_exit.
3280 * config/vx-gdb.exp: Remove quit_vxgdb, change a caller to call
3282 * config/unix-gdb.exp: gdb_exit remains here, and should override
3283 the generic version, since it's doing a lot of wierd stuff that
3284 the other versions aren't. FIXME, fold it in, or abandon this
3289 * gdb.t24/demangle.exp: Add tests for PR 3220.
3293 * gdb.t24/demangle.exp: Add lucid test for __vtbl__3foo__vt_cc_main_.
3297 * gdb.t07/watchpoint.exp: Clear xfail with "i*86-*-*", not just
3298 "i386-*-*". Works for i486 as well.
3300 * gdb.t06/signals.exp: Rework code that recognizes known SVR4
3301 bug, and expand domain of xfail to all SVR4 systems, since the
3302 actual problem is likely to be in generic SVR4 /proc support.
3306 * config/unix-gdb.exp (gdb_load): Add eof to expect statement.
3310 * gdb.t17/interrupt.exp: Set up xfail for *-*-sysv4*, in chain of
3311 xfails for other systems. Match a missing 'Continuing.' as an
3312 explicit fail for i*86-*-sysv4*, so it doesn't hose other tests.
3314 * gdb.t20 {classes.exp, inherit.exp, misc.exp}, gdb.t21/cplusfuncs.exp,
3315 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t31/chillvars.exp:
3316 Only issue warning for missing executables if -all option is used.
3318 * gdb.stabs/wierd.exp: Only issue warning for missing wierd.o
3319 file if -all option is used. It's like an unpredictable XFAIL.
3323 * gdb.t15/funcargs.exp: Add comments that hppa xfails are only
3324 for dynamically linked binaries.
3326 * gdb.t10/crossload.exp: Add `set gnutarget auto' at end of tests.
3330 * gdb.t20/inherit.exp: Change message for "print tagless struct"
3331 to state that this is a known bug in old versions of g++.
3335 * gdb.t17/interrupt.exp: Add xfail for 386 bsd. Accept echoed newline
3336 while waiting for `Continuing'.
3340 * gdb.t10/nodebug.exp: Expect to find local/global minimal symbols
3341 in text, data, and bss.
3342 * gdb.t10/nodebug.c: Add local and global test variables for
3343 initialized and uninitialized data.
3347 * config/unix-gdb.exp (gdb_exit): Add "wait".
3351 * gdb.t06/signals.exp: xfail the continue from the handler for all
3354 * gdb.t07/watchpoint.exp: clear_xfail for i386 when calling a
3355 function with watchpoints enabled, the i386 call dummy starts with
3358 * gdb.t00/teststrategy.exp, gdb.t09/Makefile.in: Handle the way
3359 386 bsd names its corefiles.
3363 * gdb.t10/Makefile.in (nodebug.o): Don't use "-c -o", many
3364 compilers don't grok it.
3365 * gdb.t16/gdbme.c (ctable1): Initialize unsigned char array
3366 with small octal ints rather than character constants, which
3367 are signed and might not fit if first promoted to int.
3371 * gdb.t09/Makefile.in (clean): Remove corefile.
3375 * gdb.t07/watchpoint.exp: Add missing `$prompt $'.
3380 * gdb.t06/signals.exp: Change xfail from "*-*-*" to be only for
3381 NO_SINGLE_STEP machines. Fix comment about its cause. Uncomment
3382 the `continue' test right after it (also xfailed if NO_SINGLE_STEP).
3386 * gdb.t17/interrupt.exp: Add xfail for hppa.
3390 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t08/opaque.exp,
3391 gdb.t09/corefile.exp: Cleanup xfails for fixed mips bugs.
3392 * gdb.t13/bitfields.exp, gdbme.c: Examine a variable in the inferior
3393 to determine signed-ness of bitfields and use the result to setup
3395 * gdb.t15/gdbme.c: Add comments to the two indirect call0a lines.
3396 * gdb.t15/funcargs.exp: Use them to step until the second indirect
3397 call line is reached if necessary.
3401 * gdb.stabs/wierd.exp: New test, for nameless baseclasses.
3405 * gdb.t06/break.exp: Also test `clear' command.
3409 * gdb.t00/teststrategy.exp: Remove extra quote.
3411 * gdb.t07/watchpoint.exp: Change xfail for calling function with
3412 watchpoint enabled to be for all non-68k machines.
3414 * gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test.
3418 * gdb.stabs/configure.in: If configured -with-gnu-as for mips-*-*
3419 targets use aout.mt instead of ecoff.mt as gas understands
3420 standard aout format.
3424 * lib/gdb.exp (runto): Don't insist that function we are running to
3425 was compiled with -g.
3427 * gdb.t10/{nodebug.{c,exp},Makefile.in}: New test.
3429 * gdb.t17/interrupt.exp: Before sending ^C, give the inferior time
3430 to get back into the read system call.
3431 Accept leading newline in case where we woke it up.
3435 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
3436 to make the stabs test work on ecoff systems using gcc and -with-stabs.
3437 * gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}: Modify to
3438 enable ecoff configuration.
3442 * gdb.t15/funcargs.exp (localvars_in_indirect_call): New test.
3446 * gdb.t16/printcmds.exp: Add another printf test.
3450 * configure.in: If configured -with-stabs on any target, add
3451 stabsdirs to configdirs.
3455 * gdb.t16/printcmds.exp: Change printf "%f\n" to printf "%f is
3456 fun" so pattern does not match the command itself.
3460 * gdb.t15/{gdbme.c,funcargs.exp}: Test for alloca-influenced frames.
3464 * gdb.t17/interrupt.exp: Test for more things.
3468 * gdb.t07/watchpoint.exp: In until test, deal with the way the DEC
3469 compiler arranges the code and line numbers.
3471 * gdb.t17/interrupt.exp: Don't send \n after ^C.
3475 * gdb.t00/help.exp: Increase expect input buffer size.
3479 * gdb.t06/signals.exp: Remove sparc xfail; bug fixed.
3481 * gdb.t07/watchpoint.exp: Add xfail for hppa.
3483 * gdb.t17/{gdbme.c,callfuncs.exp}: Add sum10 function, to test pa bug.
3485 * gdb.t06/signals.exp: At "p func1 ()" test, check for breakpoint
3486 [0-9]*, not just [0-9].
3490 * gdb.t20/{gdbme.cc,classes.exp}: Add xfail for gdb/2972.
3492 * gdb.t2*: Set CXXFLAGS, not CFLAGS, since that's what we use.
3496 * gdb.t00/help.exp: Replace most of docstring for "continue" with .*.
3500 * gdb.t06/signals.c: Add xfails for sun3.
3502 * gdb.t07/watchpoint.exp: Comment out xfail for fixed bug 1836.
3504 * gdb.t07/{gdbme.c,watchpoint.exp}: Add test for 2597. Also add
3505 test_stepping tests.
3509 * gdb.t{06,17}/Makefile.in (clean): Remove all executables.
3511 * gdb.t17/{interrupt.{c,exp},Makefile.in}: New test for solaris bug.
3513 * gdb.t06/twice.exp, Makefile.in: Just use an include of twice.c
3514 rather than actually putting it through cpp twice.
3516 * gdb.t06/signals.exp: Add xfails for unixware and rs6000.
3520 * config/mips-gdb.exp (gdb_exit): Removed close statement which is
3525 * gdb.t06/signals.exp: Add test for sparc bug with do_save_insn.
3527 * gdb.t20/{classes,inherit}.exp: If a class which doesn't use any
3528 C++ features prints as "struct", make it a pass, not an xfail.
3532 * gdb.t22/virtfunc.exp: Remove a bunch of xfails.
3533 Don't require VA to print as "class" rather than "struct".
3537 * gdb.t06/twice.exp: Don't care about the file name GDB prints.
3541 * gdb.t{02,13}/comp-info.c, gdb.t06/twice.exp: Add "return 0" to end.
3545 * gdb.t12/scope.exp: Remove xfail for parameter printing in wrong
3550 * gdb.t16/printcmds.exp: Add printf tests.
3552 * gdb.t06/{twice.{c,exp},Makefile.in}: New test.
3554 * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too.
3558 * gdb.t20/classes.exp: Add clear_xfail's before printing summary
3559 pass counts, to counteract any existing or future setup_xfails.
3563 * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
3564 {BEGIN,END}_COMMON for common block instead of STAB.
3565 * gdb.stabs/wierd.exp: Add xfail for rs6000.
3567 * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
3568 intp_var should be N_GSYM not N_LSYM.
3569 wierd-aout.S: Use a label for the value of the N_SO.
3570 wierd.def: Remove all backslashes.
3571 wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
3575 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
3576 get the expected next to inheritance3.
3580 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
3581 now that gcc-2.4 gets it right.
3585 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test.
3587 * gdb.t{02,13}/{Makefile.in,gdbme.c,comp-info.c}: New way of
3588 generating comp-info.exp which works for cross-compilation.
3592 * gdb.t11/list.exp: For SVR4 xfails, match "*-*-sysv4*", not
3597 * gdb.t01/run.exp: Start with a fresh gdb.
3598 * gdb.t11/list.exp: For SVR4 xfails, match on all versions of
3603 * {gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07,
3604 gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15,
3605 gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t30}/
3606 Makefile.in (distclean, realclean): Remove gdbme.c from list of
3611 * gdb.t24/demangle.exp (test_gnu_style_demangling): Add some new
3612 test cases from bug reports.
3616 * gdb.t06/break.exp: Add xfails for sparc-sun-solaris2.*.
3617 * gdb.t12/scope.exp: Add clear_xfails at appropriate places to
3618 avoid spurious xfails.
3619 * gdb.t20/classes.exp: Add xfails for longstanding C++ problems.
3620 * gdb.t21/cplusfuncs.exp: Add xfails for sparc-sun-solaris2.*.
3621 * gdb.t22/virtfunc.exp: Add xfails for longstanding C++ problems.
3625 * gdb.t00/teststrategy.exp: Rework to provide more useful
3626 description of each test, fix problem with systems that define
3627 ALIGN_STACK_ON_STARTUP code, other misc cleanups.
3628 * gdb.t06/break.exp (test_next_with_recursion): Fix expected
3629 results for "next over recursive call" so timeouts aren't taken
3634 * gdb.t12/scope.exp: Test printing of variables before run.
3636 * gdb.t12/{gdbme0.c,scope.exp}: Test for bug where parameters are
3637 printed in wrong order due to sorting.
3641 * gdb.t00/teststrategy.exp: Fix expected results for printing
3642 user entered string constant. Is array of char, prints with no
3645 * gdb.t00/{default.exp, help.exp}: Account for changes to radix
3647 * gdb.t16/gdbme.c: Add and use struct containing arrays of char.
3648 * gdb.t16/printcmds.exp: Fix all lines that match "unsigned char *".
3649 * gdb.t16/printcmds.exp (test_print_char_arrays): Test printing
3650 of struct of char arrays.
3651 * gdb.t00/radix.exp: New tests for radix commands.
3655 * gdb.t16/printcmd.exp: Print a variable before running program
3656 (with xfail for AIX).
3660 * gdb.t06/{signals.exp,signals.c,Makefile.in}: New test.
3662 * gdb.t16/printcmd.exp: Don't print variables before running program.
3664 * gdb.t06/break.exp: Don't require envp argument to main.
3666 * gdb.t0{2,3,4,5}/gdbme.c [_AIX]: Use signed keyword.
3668 * gdb.t02/whatis.exp, gdb.t11/list.exp:
3669 Add xfails for rs6000.
3671 * gdb.t02/whatis.exp: Change other tests not to re-test something
3674 * gdb.t{03,15,16}/gdbme.c: Reference all variables and make sure
3675 each type used has a variable of that type.
3679 * gdb.t20/{inherit.exp,gdbme.cc}: Test tagless structure.
3681 Fri Jun 4 11:07:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3683 * configure.in: change srctrigger to be a file, not a directory
3687 * configure.in (mips-idt-ecoff*): Added trailing '*'.
3689 * gdb.t11/list.exp: Fixed a couple of typos.
3693 * gdb.t00 (teststrategy.exp): Remove notice about PR 1823. Bug
3694 is fixed and PR is closed.
3695 * gdb.t16 (gdbme.c): Add simple test string variable.
3696 * gdb.t16 (printcmds.exp): Add tests with simple test string
3697 variable, primarily for boundaries on "set print elements".
3701 * gdb.stabs/wierd.exp: Remove xfail for printing big integer.
3702 Make leading 0's optional and don't expect a tab in the middle
3705 * gdb.t00/teststrategy.exp: Remove xgdb before trying the copy.
3707 * gdb.stabs/wierd.def: Type attributes must be preceded by number=.
3708 * gdb.stabs/wierd.exp: Remove xfails for type attributes. Also
3709 don't end command passed to gdb_test with newline.
3711 * gdb.t13/{Makefile.in,gdbme.c,bitfields.exp}: If we #defined the
3712 signed keyword away, don't expect signed bitfields to be signed.
3714 * gdb.t13/bitfields.exp (bitfield containment): Accept the fields
3715 printing with only as many 1's as are in the field as well as printing
3716 with 32 1's (see comment).
3720 * gdb.t00/default.exp: Start with a fresh gdb.
3721 * configure.in (configdirs): Remove gdb.t31 until the chill
3722 compiler works again. It no longer is able to find chillrt0
3723 since it isn't in libchill.a anymore.
3724 * gdb.stabs/wierd.exp: Rewrite to properly handling a missing
3725 wierd.o, make more modular.
3726 * gdb.stabs/wierd.def (bad_neg0type, bad_neg0const): Remove
3727 spurious newlines that caused problems.
3731 * Move test with enums and partial symbols from gdb.t03/ptype.exp
3732 to gdb.stabs/wierd.exp since GCC has worked around the bug.
3733 gdb.stabs/wierd.{exp,def}: Many new tests.
3735 * gdb.t00/default.exp: update info line for new message.
3737 * gdb.t02/{whatis.exp,gdbme.c}:
3738 Test that "char *" doesn't print as "caddr_t".
3742 * gdb.t00/help.exp: Use .* in place of some help messages which
3744 gdb.t00/default.exp: Update "info frame" test for new message.
3745 * gdb.stabs/wierd.exp: Check for eof, directly or via gdb_test.
3750 * gdb.t03/{gdbme.c,ptype.exp}:
3751 Add tests for typedef'd struct and union without tags.
3752 Also check "whatis" on a variable of a typedef'd enum without a tag.
3754 * gdb.t00/teststrategy.exp: For p "foo", remove sun4 XFAIL (see
3755 PRMS 1823; the bug still exists but isn't reproduced by this test
3756 anymore), and remove rs6000 XFAIL (the bug is fixed).
3758 * gdb.t03/ptype.exp: Comment out a lot of tests which are basically
3759 duplicated from whatis.exp. For those that are left, accept
3760 "long", "long int", or "int" for long variables (whatis.exp already
3761 has an XFAIL for "int", so no need to fail it here).
3763 * gdb.t02/whatis.exp, gdb.t10/crossload.exp:
3764 Deal with GCC's names for types now that GDB uses the compiler's names.
3766 * gdb.t02/{Makefile.in,gdbme.c,whatis.exp}: If not GCC, do some
3767 setup_xfail's for sunos4. If we #defined the signed keyword away,
3768 don't expect GDB to know that char it is signed.
3770 * gdb.t00/teststrategy.exp: Update for symbolic signal names.
3774 * configure.in (configdirs): Add gdb.t24 for C++ tests that
3775 should work on any system, regardless of debugging format.
3776 * gdb.t21/demangle.exp: Move to gdb.t24.
3777 * gdb.t24/demangle.exp: Move from gdb.t21.
3778 * gdb.t24/{Makefile.in, configure.in}: New files.
3782 * configure.in: Do gdb.stabs and C++ tests only for stabs.
3783 * gdb.stabs: New directory.
3787 * config/{mips,nind,udi,unix,vx}-gdb.exp: Look for "Quit anyway.*?"
3788 not just "Quit anyway?".
3792 * gdb.t21/demangle.exp: Add a couple of new patterns. Ensure
3793 that all setup_xfails are immediately followed by clear_xfails.
3797 * config/unix-gdb.exp, gdb.t00/echo.exp, gdb.t00/help.exp,
3798 gdb.t00/teststrategy.exp, gdb.t00/gdbvars.exp, gdb.t01/run.exp,
3799 gdb.t01/term.exp, gdb.t02/whatis.exp, gdb.t03/ptype.exp,
3800 gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t06/break.exp,
3801 gdb.t07/watchpoint.exp, gdb.t08/opaque.exp, gdb.t09/corefile.exp,
3802 gdb.t10/crossload.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
3803 gdb.t13/bitfields.exp, gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
3804 gdb.t17/callfuncs.exp, gdb.t20/misc.exp, gdb.t20/inherit.exp,
3805 gdb.t20/classes.exp, gdb.t21/demangle.exp, gdb.t21/cplusfuncs.exp,
3806 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t30/chexp.exp,
3807 gdb.t31/chillvars.exp, lib/gdb.exp:
3813 * gdb.t17/callfuncs.exp (do_function_calls): Call t_double_values
3814 with 0.0, not integer 0.
3818 * gdb.t06/break.exp: Update for "Kill the program" message change.
3822 * Makefile.in (GDBFLAGS): Set to -nx.
3823 * Makefile.in (site.exp): Use GDBFLAGS.
3827 * */Makefile.in (CFLAGS): add CFLAGS = -g to all subdirectory
3829 (check): depend on just-check.
3830 (just-check): added so that tests can be run without a noop
3835 Switch to using configure's configdirs.
3836 * Makefile.in (Makefile): add configure.in dependency.
3837 (SUBDIRS): removed redundant assignment.
3838 * configure.in: switch subdirs assignment to configdirs.
3839 * gdb.t*/configure.in: new files.
3843 * gdb.t07/watchpoint.exp: Removed a29k expected failure which now
3848 * gdb.{t20,t21,t22,t23}/Makefile.in: Use $(srcdir) to avoid $<
3849 in explicit rules. Apparently this is not supported by some makes.
3853 * gdb.t31/Makefile.in: Use $(srcdir) when avoiding $<, sigh.
3857 * config/unix-gdb.exp: Add back missing return 0 which mysteriously
3862 * gdb.t31/Makefile.in: Avoid $< in explicit rule.
3866 * gdb.t07/watchpoint.exp: Remove setup_xfail for i486
3867 watchpoint problem that is now fixed.
3868 * gdb.t30/chexp.exp: Remove setup_xfail for printing
3869 uninitialized convenience variables.
3870 * gdb.t31/chillvars.exp: Fix expected patterns for printing
3875 * gdb.t00/help.exp: Compensate for bug in mips-*-ultrix* OS
3876 which causes expect to get out of sync with gdb on long output
3878 * gdb.t09/corefile.exp: Make expected pattern for core file
3879 failing signal and frame output format less sun specific.
3883 * gdb.t31/chillvars.exp: Add and remove initial dummy
3884 breakpoint, so that symbol table is forced in.
3885 (Needed at least on Sunos4, though it seems not SVR4.)
3886 * gdb.t31/chillvars.exp: Update for changed output format.
3888 Sun Apr 11 17:21:45 1993 Rob Savoye (rob at darkstar.cygnus.com)
3890 * config/unix-gdb.exp: Gracefully exits if $GDB is a bogus path.
3894 * Makefile.in: Added --srcdir when invoking runtest, removed the
3895 need for a local config file. (optional now)
3899 * gdb.t21/demangle.exp: Only count real fails (not xfails) for
3900 failure count used to force early termination. Add some more
3901 expected failures for gnu style demangling.
3905 * Makefile.in (CXXFLAGS): Remove -O. It caused the debug info for the
3906 pmi variable from gdb.t20/gdbme to get optimized away.
3907 * gdb.t00/teststrategy.exp: Added expected failure for mips-*-*.
3908 Check for written corefile upon timeout _and_ eof.
3912 * config/unix-gdb.exp: Add missing return 0.
3916 * gdb.t16/printcmds.exp: Remove misplaced xfail that caused an early
3921 * configure.in (subdirs): Put back gdb.t17 which mysteriously
3926 * gdb.t10/crossload.exp: Disable the i860-elf test until such
3927 time as i860 support works.
3929 * gdb.t15/funcargs.exp: Fix expected outputs to include
3930 "backtrace 100\r" rather than just "backtrace\r", to match last
3935 * config/udi-gdb.exp (gdb_exit): Remove close command.
3936 (gdb_target_udi): New procedure to set the UDI target.
3937 (gdb_start): Don't remove *_soc files. Use gdb_target_udi.
3938 * gdb.t00/default.exp: Added expected failures for a29k-*-udi.
3939 Added waits for prompts after several question responses. Added
3940 some more responses used by a29k-amd-udi-gdb.
3941 * gdb.t01/run.exp, gdb.t06/break.exp: Added a29k-*-udi support:
3942 pass different arguments, restart UDI connection after program
3944 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t07/watchpoint.exp,
3945 gdb.t08/opaque.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
3946 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp, gdb.t20/misc.exp,
3947 gdb.t21/cplusfuncs.exp: Added expected failures for a29k-*-*.
3948 * gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t07/watchpoint.exp,
3949 gdb.t08/opaque.exp, gdb.t12/scope.exp, gdb.t13/bitfields.exp,
3950 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
3951 gdb.t17/callfuncs.exp, gdb.t20/classes.exp, gdb.t20/inherit.exp,
3952 gdb.t20/misc.exp, gdb.t22/virtfuncs.exp: Restart UDI connection
3953 after program completion.
3954 * gdb.t10/crossload.exp: Does not work for a29k-*-*, since BFD is
3955 compiled with a SELECT_VECS setting.
3956 * gdb.t15/funcargs.exp: Use argument to backtrace to prevent
3959 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t22/virtfuncs.exp:
3960 Added checks for COFF results, and made them expected failures for
3961 all targets. It would be better to make them expected failures
3962 for COFF targets only.
3964 Wed Mar 24 14:43:38 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
3966 * Makefile.in: add null dvi target, don't bother to recurse
3967 through test directories for info and install-info; rename
3968 $(datadir) to be dejagnu instead of deja-gnu
3972 * gdb.t31/gdbme.ch: Re-enable code that previously caused
3973 compiler to coredump.
3974 * gdb.t31/chillvars.exp: Re-enable tests that depend on that
3979 * gdb.t31/gdbme.ch: Comment out code that causes chill compiler
3981 * gdb.t31/chillvars.exp: Comment out tests that depend on that
3984 Sun Mar 21 17:56:47 1993 Rob Savoye (rob at darkstar.cygnus.com)
3986 * gdb.t03/ptype.exp: tests for return code from gdb_test.
3987 * gdb.t00/teststrategy.exp: Uses which proc rather than spawning
3988 which in a shell. Deletes xgdb when done.
3989 * config/unix-gdb.exp: Won't try to spawn $GDB unless it exists.
3990 Tests the return from the "set height" or "set width" commands.
3991 Added a few return codes where needed.
3995 * Makefile.in (SUBDIRS): Add gdb.t17.
3996 * configure.in (subdirs): Add gdb.t17.
3997 * gdb.t17/{Makefile.in, callfuncs.exp, gdbme.c}: New test
3998 files to test gdb's calling of functions in the inferior with
3999 the correct arguments and gdb's ability to retrieve any
4004 * config/unix-gdb.exp (gdb_exit): Remove close commands that
4005 may be called after gdb goes away. Previous versions of expect
4006 needed these to avoid file descriptor leaks, but they cause
4007 errors with the current revision of expect.
4008 * gdb.t00/gdbvars.exp: Use -re on expected output after
4009 setting sevenbit-strings.
4010 * gdb.t04/setvar.exp, gdb.t13/bitfields.exp: Make commands
4011 to set sevenbit-strings consistent across tests.
4012 gdb.t30/chexp.exp, gdb.t31/chillvars.exp: Make commands to
4013 set sevenbit-strings consistent across tests.
4017 * gdb.t21/demangle.exp (proc demangle): Adjust quotes in an
4018 expected output to match current "expect" expectations.
4022 * gdb.t00/default.exp: Change expected output for default "source"
4023 command, to match new gdb behavior which requires a filename to
4028 * gdb.t07/watchpoint.exp (test_simple_watchpoint): Set up
4029 expected fail for i486-*-* that misses the marker2 function.
4030 * gdb.t10/crossload.exp (bfddefault): Allow successful
4031 recognition of a format to pass even if no symbols are found.
4032 Explicitly catch failures where the format is not recognized
4033 or is ambiguous, and add the reason to the fail message.
4034 * gdb.t10/crossload.exp (bfdexplicit): Catch failure where
4035 the cause is and invalid target and add reason to failure message.
4036 * gdb.t10/crossload.exp: Fix bfd target names for elf32-m68k,
4037 elf32-i386, elf32-sparc, and elf32-i860.
4038 * gdb.t12/scope.exp (test_at_main, test_at_foo, test_at_bar):
4039 Set up expected failure for 'filename'::variable scope resolution,
4040 which is now apparently broken on all targets.
4041 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t20/misc.exp,
4042 gdb.t21/cplusfuncs.exp, gdb.t22/virtfunc.exp,
4043 gdb.t23/templates.exp: Change failure for missing binfile into
4045 gdb.t21/demangle.exp: Change all cfront references to 'arm'
4050 * gdb.t00/default.exp: Add expected output for default "source"
4051 command, to match new gdb behavior.
4052 * gdb.t09/corefile.exp: Use GDBFLAGS when spawning GDB.
4056 * config/*-gdb.exp: returns an error, rather than exiting on
4061 * gdb.t03/gdbme.c: Add pointer to struct variable.
4062 * gdb.t03/ptype.exp: Test equivalence of '.' and '->' for
4063 referencing struct members.
4067 * configure.in (mips-idt-ecoff): New target.
4068 * config/mips-gdb.exp: New file for remote board using MIPS remote
4071 * Redid configuration scheme. Removed gdb.t*/configure.in.
4072 Renamed gdb.t*/in-gdbme* to gdb.t*/gdbme*. Changed to use CC, CXX
4073 instead of CC_FOR_TARGET, CXX_FOR_TARGET. Added mostlyclean and
4074 distclean targets. Built executables via .o files. Adjusted
4075 tests to account for source files in $(srcdir) rather than
4077 * lib/gdb.exp (runto): Don't expect () after the function name,
4078 because it may have arguments.
4082 * gdb.t00/default.exp, gdb.t01/run.exp, gdb.t02/whatis.exp,
4083 gdb.t03/ptype.exp, gdb.t06/break.exp, gdb.t12/scope.exp: Added
4084 expected failures for mips-idt-* and mips-sgi-*.
4085 * gdb.t00/default.exp (attach): Kill process if requested.
4086 * gdb.t00/help.exp (help target core, help target): Accept a gdb
4087 that does not read core files.
4088 * gdb.t01/run.exp: Removed checks for exit status code.
4089 * gdb.t03/in-gdbme.c: Make explicit call to malloc to ensure that
4091 * gdb.t03/ptype.exp: Increase timeout when calling malloc.
4092 * gdb.t04/setvar.exp, gdb.t05/expr.exp: Use runto function where
4093 appropriate, rather than doing it by hand.
4094 * gdb.t07/watchpoint.exp: If mips-idt-*, reload file after first
4096 * gdb.t10/crossload.exp: Kill existing program if needed.
4097 * gdb.t15/funcargs.exp: Use delete_breakpoints function where
4098 appropriate, rather than doing it by hand. Always increase
4099 timeout for this test, not just for VxWorks.
4103 * gdb.t31/chillvars.exp (test_structs): New proc to test printing
4104 of Chill STRUCT types and STRUCT values.
4105 * gdb.t31/chillvars.exp (test_strings): Expect "CHAR" now, rather
4107 * gdb.t31/in-gdbme.ch (simple_struct, nested_struct, struct1,
4108 struct2): New struct definitions and initializations to test
4109 simple Chill STRUCT types.
4113 * gdb.t00/teststrategy.exp: Track reversion in gdb to not print
4114 the null byte at the end of strings.
4115 * gdb.t00/default.exp: Make show version insensitive to copyright
4117 * gdb.t16/in-gdbme.c (ctable1, ctable2): Make explicitly unsigned
4118 to avoid dependencies on target char signedness.
4119 * gdb.t16/printcmds.exp: Update expected results for explicitly
4121 * gdb.t16/printcmds.exp: Remove setup_xfails for i960 that should
4123 * gdb.t21/demangle.exp: Add many more patterns for template
4124 demangling, most of them being expected failures.
4125 * gdb.t21/demangle.exp (proc demangle): Quote the demangled
4126 string we are matching for, to match on the whole string.
4127 * gdb.t21/demangle.exp: Add many new test strings to demangle,
4128 and fix a whole bunch that had incorrect expected output but were
4129 passing anyway because of the bug in "proc demangle".
4130 * gdb.t31/chillvars.exp: Remove setup_xfail for printing string
4132 * gdb.t31/in-gdbme.ch: Uncomment string4, now compiles.
4136 * gdb/testsuite: made modifications to testcases, etc., to allow
4137 them to work properly given the reorganization of deja-gnu and the
4138 relocation of the testcases from deja-gnu to a "tool" subdirectory.
4142 * gdb/testsuite: Initial creation of gdb/testsuite.
4143 Migrated dejagnu testcases and support files for testing nm to
4144 gdb/testsuite from deja-gnu. These files were moved "as is"
4145 with no modifications. This migration is part of a major overhaul
4146 of dejagnu. The modifications to these testcases, etc., which
4147 will allow them to work with the new version of dejagnu will be
4148 made in a future update.
4154 version-control: never