3 * gdb.c++/virtfunc.exp: Restart gdb in a sane fashion.
5 * gdb.base/scope.exp: It's now init0(), not init().
7 * gdb.base/scope0.c: For now, change init() to be init0().
9 * config/monitor.exp: Use gdb_serial in preference to serial
12 * lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host
13 and it's not already set.
17 * gdb.base/setshow.exp: Only test the run command if the target
18 isn't using a stub and if it supports argument passing.
22 * config/udi.exp(gdb_start): Make sure UDICONF is set
23 properly before starting gdb.
27 * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
28 * gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
29 * gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
33 * config/vx.exp: Use remote_ld, not vxworks_ld. Don't use
34 specialized code to reboot the board, use remote_reboot instead.
36 * config/vxworks29k.exp: Use vx.exp, not vx-gdb.exp.
38 * lib/gdb.exp: Add GDB_TESTCASE_OPTIONS.
40 * config/monitor.exp: Make sure we disconnect from the target.
41 Also, try a reboot/reload cycle instead of failing if the
46 * gdb.base/default.exp: Don't set match_max.
47 * gdb.base/help.exp: Ditto.
48 * gdb.base/list.exp: Ditto.
49 * gdb.base/signals.exp: Ditto.
51 * config/monitor.exp(gdb_load): If gdb,use_standard_load is
52 set, use remote_ld to download the testcase instead of
57 * config/vr5000.exp: New file.
59 * config/monitor.exp(gdb_target_monitor): Add pattern for
60 "Ending remote" to detect errors in connecting.
62 * gdb.base/setshow.exp: Add .* within auto language test.
64 * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
67 * config/monitor.exp(gdb_load): Check for a failure when loading,
68 and reboot the board if necessary.
70 * gdb.base/setvar.exp(test_set): Handle multiple prints within
71 a set of tests. Remove print.* from the patterns being checked.
75 * gdb.base/a1-selftest.exp: Use send_gdb consistently. Don't
76 refer to gdb_spawn_id.
78 * config/m32r-stub.exp: Remove references to gdb_spawn_id, no
80 * config/sparclet.exp: Ditto.
81 * config/sparclet-old.exp: Ditto.
82 * config/slite.exp: Ditto.
83 * config/sim.exp: Ditto.
84 * gdb.base/funcargs.exp: Ditto.
86 * lib/gdb.exp:Remove references to gdb_spawn_id.
87 (gdb_expect): Move to remote.exp.
91 * config/monitor.exp: Detect the "Couldn't establish connection"
96 * gdb.base/bitfields.exp: Use runto instead of explicit
97 gdb_run_cmd/gdb_expect sequences.
99 * gdb.base/break.exp(text_next_with_recursion): Add match for
102 * config/monitor.exp(gdb_target_monitor): Calling exit loses big.
103 We also need to handle the "A program is being debugged already"
104 prompt from gdb. Use gdb_test to set the baud rate.
106 * lib/gdb.exp(gdb_init): Increase the default expect buffer size
107 to 20000. Really. I mean it.
111 * lib/gdb.exp(gdb_test): Generate a FAIL message when send_gdb
112 fails. If suppress_flag is set, skip perror message about not
113 being able to send to GDB.
114 (send_gdb): If suppress_flag is set, don't try to send commands to
116 (gdb_expect): If suppress_flag is set, always fail immediately.
117 (gdb_suppress_tests, gdb_stop_suppressing_tests): New functions.
118 (gdb_init): Call gdb_stop_suppressing_tests.
119 (default_gdb_exit): Ditto.
120 (default_gdb_start): Ditto.
122 * gdb.base/bitfields.exp: Call gdb_suppress_tests and
123 gdb_stop_suppressing_tests as appropriate.
124 * gdb.base/break.exp: Ditto.
125 * gdb.base/callfuncs.exp: Ditto.
126 * gdb.base/commands.exp: Ditto.
127 * gdb.base/exprs.exp: Ditto.
128 * gdb.base/funcargs.exp: Ditto.
129 * gdb.base/list.exp: Ditto.
130 * gdb.base/recurse.exp: Ditto.
131 * gdb.base/scope.exp: Ditto.
132 * gdb.base/structs.exp: Ditto.
133 * gdb.c++/inherit.exp: Ditto.
137 * config/vr4300.exp: New file.
139 * gdb.*/*.exp: Call gdb_expect instead of expect.
141 * lib/gdb.exp(gdb_expect): New function.
145 * lib/gdb.exp(gdb_init): New function.
147 * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
148 for each individual variable set.
150 * gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
153 * gdb.base/help.exp: Fix the syntax of a few gdb_test calls.
155 * gdb.base/scope.exp: Use gdb_test.
157 * gdb.base/ptype.exp: Don't call "gdb_exit; gdb_start" if we're
158 aborting; the testsuite driver will do that for us (see
159 gdb_finish). Also, use gdb_test in a few more places.
163 * gdb.base/help.exp: Fix syntax of "help info all-registers" test.
167 * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
168 and "add_tests" are not at the same address.
172 * gdb.base/ptype.exp: Use gdb_test.
176 * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
177 * gdb.disasm/mn10200.exp (misc_tests): Remove bogus line accidentally
178 left in. No longer expect them to fail.
180 * gdb.stabs/*.mt; Deleted, no longer used.
181 * gdb.stabs/configure.in: Remove references to target makefile
183 * gdb.stabs/configure: Rebuilt.
185 * gdb.disasm/*.mt: Deleted, no longer used.
186 * gdb.disasm/configure.in: Remove references to target makefile
187 frags. Use "sh3.s" as the unique filename for this directory.
188 * gdb.disasm/configure: Rebuilt.
190 * gdb.disasm/mn10200.s: New test file for mn10200 disassembler.
191 * gdb.disasm/mn10200.exp: Run mn10200 disassembler tests.
192 * gdb.disasm/Makefile.in: Remove "mn10200" when cleaning.
196 * config/udi.exp: Use mondfe,name instead of remote_host.
200 * gdb.base/watchpoint.exp: Don't expect a failure when calling
201 a function with a watchpoint enabled on the mn10200.
203 * gdb.stabs/weird.exp: Don't quit if "weird.s" doesn't exist
204 before trying to create it!
208 * config/vx.exp: Use hostname instead of netport.
210 * config/vxworks.exp: New file.
212 * gdb.base/a2-run.exp: Change vxworks cases to use gdb_spawn_id.
214 * config/monitor.exp(gdb_target_monitor): Look for a prompt from
215 gdb before assuming everything worked. Send a ^C if a timeout
218 * lib/gdb.exp(gdb_test): Check the result of send_gdb. Use
219 $gdb_spawn_id directly.
220 (gdb_run_cmd): Try _start as well as start. Use the target feature
221 gdb,start_symbol as the symbol to start from when jumping.
225 * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
228 * gdb.base/recurse.exp: Relax final value test for 'b' so that
229 it doesn't lose for 16bit integer systems.
233 * gdb.fortran/types.exp: If the target doesn't support "double"
234 data types, then expect "real" types to only be 4 bytes.
236 * gdb.c++/virtfunc.exp: Expect failure for virtual function
237 call tests if the target doesn't support inferior function calls.
239 * gdb.base/printcmds.exp: Allow minor deviation in FP values
244 * gdb.base/help.exp: Disable "help set", "help show", and
245 "help support". Simplify regexp for "help stack".
247 * gdb.base/default.exp: Set match_max to 5000 and the timeout
248 to 60 seconds. Temporarily set match_max to 15000 around the
251 * gdb.base/nodebug.exp: Don't try to do an inferior function
252 call if the target doesn't support them.
253 * gdb.base/printcmds.exp: Likewise.
254 * gdb.base/setvar.exp: Likewise.
255 * gdb.base/structs.exp: Likewise.
256 * gdb.c++/templates.exp: Likewise.
257 * gdb.base/ptype.exp: Likewise. Remove UDI specific stuff.
259 * gdb.base/recurse.exp: Enable for the mn10200.
261 * configure.in: Do configure gdb.stabs directory for *-*-elf
263 * configure: Rebuilt.
265 * gdb.base/break.exp: Check for gdb,noresults before testing
266 exit status and/or results from the target.
267 * gdb.base/watchpoint.exp, gdb.base/langs.exp: Likewise.
268 * lib/gdb.exp: Remove old (now bogus) initialization of
269 noinferior, noargs, noresults and nosignals.
273 * config/sh.exp: New file.
275 * config/slite.exp: Try to connect multiple times to the board
276 before rebooting. Only send a "monitor run" if need_monitor_run
279 * gdb.base/break.exp: Don't do the "stub continue" test if
280 the target has gdb_stub set.
282 * gdb.base/callfuncs.exp: Increase the timeout.
284 * gdb.base/interrupt.exp: Don't even try to compile the testcase
285 if the target has gdb,noinferiorio set.
287 * gdb.base/list.exp: Increase match_max to 10000 characters.
289 * gdb.base/sigall.exp: Check for gdb,nosignals on the target.
291 * gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
294 * lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.
298 * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
299 trying to delete the copy of gdb. Catch the file delete so we
300 don't die if the delete fails; also, the file should be copied to
301 the host, not to the build.
305 * lib/gdb.exp(gdb_test): Surround the result pattern with
306 parenthesis in case it contains multiple regexps separated
309 * gdb.base/watchpoint.exp: Use gdb_test.
310 * gdb.base/default.exp: Ditto.
314 * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
316 * gdb.base/scope.exp: Use gdb_test.
317 * gdb.c++/classes.exp: Ditto.
318 * gdb.c++/inherit.exp: Ditto.
322 * gdb.base/crossload.exp: Don't use execute_anywhere, use
324 * gdb.base/corefile.exp: Don't be ridiculous.
325 * gdb.base/*.c: Add missing stub invocations.
329 * config/slite.exp: Miscellaneous fixes.
331 * lib/gdb.exp: Fix runto.
333 * gdb.base/signals.exp: Check for a gdb,nosignals feature of
336 * gdb.base/watchpoint.exp: Fix regexp.
338 * lib/gdb.exp(default_gdb_exit): Add a catch to the
339 close and wait commands, as the descriptor may now be
340 invalid. Always call "remote_close host".
344 Major rewrite for testsuite revision.
346 * lib/gdb.exp: Remove references to global CC, CXX, B_OPTIONS,
347 TARGET_INCLUDES, LDFLAGS and target_alias. Use gdb_spawn_id
348 instead of relying on spawn_id to always contain a valid
350 (get_compiler_info): New procedure to build the ${binfile}.ci
351 file, instead of replicating this in N different places.
352 (gdb_compile): New procedure.
354 gdb.*/*.exp: Use gdb_compile and get_compiler_info (with
355 appropriate arguments) instead of compile. Use gdb_test in a lot
356 more places. Use send_gdb instead of send. Always run gdb_start
357 at the start of a testcase, as this is no longer done magically.
359 config/*-gdb.exp: Rename without the -gdb suffix.
361 config/mips.exp: Use remote_close instead of exit_remote_shell.
362 config/monitor.exp: Use target_info instead of looking at
364 config/sim.exp: Use gdb_spawn_id instead of relying on spawn_id.
368 * gdb.c++/templates.exp (test_ptype_of_templates),
369 gdb.c++/inherit.exp (test_ptype_si, test_print_anon_union):
370 Update expect patterns for destructors and assignment operators
371 to match corresponding c-typeprint.c changes.
372 * gdb.c++/templates.exp (test_template_breakpoints): Revert change
373 to destructor breakpoint test, GDB should be able to set the
374 destructor breakpoint without specifying arguments.
378 * gdb.threads/pthreads.exp: Change result for failure to compile due
379 to lack of pthreads runtime support from an error to simply an
380 unsupported test, per dejagnu standards.
384 * lib/gdb.exp (gdb_test): Simplify expect pattern for the case
385 where GDB exits to reduce pattern match time.
386 (skip_chill_tests): Skip chill tests for mips*-sgi-irix6*.
388 * gdb.base/nodebug.exp: Add mips*-sgi-irix6* xfails.
392 * gdb.base/callfuncs.exp: Turn on function call tests for h8300.
393 * gdb.base/default.exp: ditto.
394 * gdb.base/nodebug.exp: ditto.
395 * gdb.base/printcmds.exp: ditto.
396 * gdb.base/ptype.exp: ditto.
397 * gdb.base/setvar.exp: ditto.
398 * gdb.base/structs.exp: ditto.
399 * gdb.base/setshow.c: Guard against uninitialized values of argc.
403 * configure, */configure: Rebuild with autoconf 2.12.
407 * gdb.base/a1-selftest.exp: Change x86 linux setup_xfails to
408 use new i*86-pc-linux*-gnu quads.
409 * gdb.base/corefile.exp: Ditto.
410 * gdb.base/signals.exp: Ditto.
411 * gdb.base/sigall.exp: Ditto.
412 * gdb.base/interrupt.exp: Ditto.
414 * gdb.base/signals.exp (signal_tests_1): Remove setup_xfail
415 "i*86-*-linux" for "signal SIGUSR1". Now works, at least with
418 * gdb.threads/pthreads.c (_MIT_POSIX_THREADS): Define if target is
419 linux. This allows the test case to at least compile on latest
420 linux, but still not run due to missing the threads runtime library.
424 * gdb.base/a1-selftest.exp (do_steps_and_nexts): Reinitialize source
425 directory to search gdb directory. Accept and step over conditional
426 stack alignment code. Consume $prompt in failure cases.
427 Reset timeout to $oldtimeout instead of some arbitrary value.
428 * gdb.base/nodebug.exp: Limit backtrace to 10 frames to avoid
429 timeout problems with infinite stack backtraces.
430 * gdb.base/ptype.exp (ptype struct link, union tu_link):
431 Accept function parameters for linkfunc member.
435 * lib/gdb.exp (CFLAGS): Remove, unreferenced.
436 (CXXFLAGS): Remove, unreferenced.
437 (B_OPTIONS): Add for -B options and add code to initialize with
438 previous -B options and also add -B option to pick up cross compiled
440 (TARGET_INCLUDES): Add for -I options and add code to initialize when
441 doing cross compiles.
442 (target_alias): Declare global.
443 (xgcc): Set variable to full path of gcc in build tree. Use findfile
444 to verify that gcc exists in build tree, and if so set CC to that
445 gcc and to use B_OPTIONS and TARGET_INCLUDES.
449 * gdb.c++/inherit.exp (test_print_anon_union): Reenable
450 ptype test for anonymous union. Fixup testcase to match
451 current gcc debug output.
455 * gdb.base/funcargs.c: Use cast rather than "UL" suffix to
456 force argument to an unsigned long type.
460 * gdb.c++/inherit.exp (test_ptype_si): Fix tagless struct ptype
461 tests and anonymous union print/ptype tests.
462 * gdb.base/list.exp (test_forward-search): Increase timeout by
463 5 minutes for the "search extremely long line" case.
464 * lib/gdb.exp (gdb_test): Document that the third arg to gdb_test is
465 completely optional and that the pass/fail messages use the command as
466 the message if that third arg is a null string.
467 (gdb_test_exact): Arrange that a null string pattern means match a
468 null string output rather than any output, which might include random
470 * gdb.base/mips_pro.exp: Add "mips*-sgi-irix4*" xfail for
472 * gdb.c++/demangle.exp: Add a "*-*-*" xfail for test that was
473 always failing and failure is now exposed by gdb.exp changes.
477 * gdb.c++/inherit.exp (test_ptype_vi): Log some passes that
482 * gdb.base/corefile.exp: Consume $prompt in mmap fail cases.
483 * gdb.stabs/weird.exp: Remove v_comb xfails.
488 * gdb.base/[bitfields.exp crossload.exp funcargs.exp interrupt.exp
489 list.exp scope.exp watchpoint.exp]
490 Make all timeout error msgs explicitly say "(timeout)".
495 * config/monitor.exp: Increase download timeout to 1000 seconds.
500 * config/m32r.exp: Increase timeout to 120 seconds.
506 * gdb.c++/classes.exp: Modify to handle current gcc C++ member ordering
507 and accept older ordering as obsolescent gcc or gdb.
508 * gdb.c++/templates.exp: Ditto.
509 * gdb.c++/virtfunc.exp: Ditto.
513 * gdb.base/coremaker.c: Add code to mmap some data so we
514 can check that it ends up in the core file.
515 * gdb.base/corefile.exp: Add test to read mmapped data
521 * config/m32r.exp: New file.
526 * testsuite/gdb.base/nodebug.exp: Whack out -g options by hand so
527 that cflags can contains -gstabs, and work correctly for other tests.
531 * gdb.base/setshow.exp: New file, tests show and set.
532 * gdb.base/setshow.c: New file, tests show and set.
533 * gdb.base/help.exp: Add test for help set|show annotate.
534 * gdb.base/default.exp: Add test for set|show annotate.
538 * testsuite/gdb.base/break.exp: Make backtrace from factorial
540 * testsuite/gdb.base/nodebug.exp: Whack out all -g options
545 * config/sim-gdb.exp (gdb_target_sim): Remove setting of height
546 and width commands. This is done elsewhere.
547 * (gdb_start): Don't call gdb_start_sim here. That's already
548 done in gdb_load. This fixes lots of failures in default.exp.
553 * gdb.base/mips_pro.exp: Fix misplaced gdb_exit/gdb_start/gdb_load.
554 * lib/gdb.exp (gdb_test): Treat failures due to program exiting
555 in the same we we treat other failures (since it may be an expected
556 condition), rather than as an error.
557 * gdb.base/signals.exp (test_handle_all_print): Revert back to
562 * Makefile.in (clean mostlyclean): Also remove chill *.grt files.
563 (distclean maintainer-clean realclean): No need to remove files
564 twice. Nuke the duplicates.
565 * gdb.base/Makefile.in (EXECUTABLES): Add "structs".
566 * gdb.threads/Makefile.in (distclean maintainer-clean realclean):
567 Remove config.h along with other config files.
571 * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
572 "p func1 ()" and note that rests of tests are skipped.
573 * gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
574 setup_xfails for "print func2::coremaker_local".
575 Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
576 * gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
577 affected by the previous run test.
578 * gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
579 "print array () ubyte (foo)" and "print/x array () byte (\$i)"
580 * gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
581 "pass int powerset tuple" and "pass modeless int powerset tuple".
582 * gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
583 "real write 4" and "real write 8".
584 * gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
585 setup_xfails for "print vs1 after tuple assign 2",
586 "print \$i after tuple assign 2", and
587 "print vs2 after tuple assign 2".
588 * lib/gdb.exp (gdb_test): When a gdb aborts, print a more
589 meaningful error message and return -1 so the caller can
590 suppress further tests and avoid a cascade of errors.
594 * gdb.base/a1-selftest.exp: Tweak tests to account for new
595 format for printing version.
596 * gdb.base/default.exp: Ditto.
597 * gdb.base/interrupt.exp: Fix problem with cascade of
598 errors if child process dies while calling a function.
602 * Makefile.in (VPATH): Add
603 * Makefile.in (Makefile, config.status): Fix rules so things get
604 remade when necessary.
608 * Makefile.in (just-check): Add path to sibling expect dir
609 to environment variable specified by RPATH_ENVVAR.
613 * Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
614 (just-check): Add shared library paths for libstdc++, tk,
615 tcl, bfd, and opcodes to the environment variable specified
617 * configure.in: Add support to recognize --enable-shared flag
618 and generate correct value for RPATH_ENVVAR.
619 * configure: Regenerated with autoconf.
623 * gdb.base/break.exp: Expand "Delete all breakpoints" xfail to
624 include all osf versions.
625 * gdb.threads/pthreads.exp: Expand "run to main" xfail to include
626 all osf versions. Add -D_MIT_POSIX_THREADS to compilation command
627 when target is linux. When failing to build pthreads test
628 executable, give more meaningful message.
629 * gdb.threads/pthreads.c: Hpux also uses old definition of second
630 arg for pthread_create.
634 * gdb.threads/pthreads.c (PTHREAD_CREATE_ARG2,
635 PTHREAD_CREATE_NULL_ARG2): Accomodate old pthreads implementations.
636 * gdb.threads/pthreads.exp: Try linking with both -lpthread (Solaris)
637 and -lpthreads (everybody else).
638 (test_startup): Fail gracefully if threads are not supported.
639 * gdb.base/nodebug.exp: Add setup_xfail hppa*-*-hpux* for
640 "p/c array_index("abcdef",2)" when not gcc compiled.
641 * gdb.base/corefile.exp: Add setup_xfail hppa*-*-hpux* for
642 "print func2::coremaker_local" when not gcc compiled.
643 * gdb.base/opaque.exp: Remove setup_xfail hppa*-*-hpux* for
644 "ptype on opaque struct tagname (statically)",
645 "ptype on opaque struct tagname (dynamically) 1", and
646 "ptype on opaque struct tagname (dynamically) 2"
647 for not compiled with gcc.
648 * gdb.base/mips_pro.exp: Only do setup_xfail hppa*-*-* for
649 backtrace when compiled with gcc.
650 * lib/gdb.exp (runto_main): Return result of "runto main" rather
651 than always return success.
655 * gdb.c++/virtfunc.exp: Remove setup_xfail for "mips-*-irix5*".
659 * gdb.base/structs.exp: Undo last change.
663 * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
664 encapsulate all the steps/nexts done during self test, starting
665 at main, and makes them less sensitive to optimization issues.
666 Add "hppa*-*-hpux*" to setup_xfail for "backtrace through
667 signal handler" test.
668 * gdb.threads/pthreads.exp: Only run this for native configs.
669 * gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*"
670 setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8"
672 gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail
673 for "runto test_calls(void)" test.
677 * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
678 and don't expect address info in breakpoint confirmations.
682 * gdb.base/list.exp (test_forward_search): Increase timeout
683 temporarily by 60 seconds for searching extremely long line,
684 and then reset to old value when done. Increase expect input
689 * gdb.base/list.exp (test_forward_search): Fix to handle very
690 long source line without overflowing expect's input buffer.
694 * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
697 * config/nind-gdb.exp (gdb_start): Use "full_buffer", not
700 * config/mips-gdb.exp (gdb_start): Use "full_buffer", not
703 * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
708 * configure.in (configdirs): Add gdb.threads.
709 * configure: Regenerated with autoconf.
710 * gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
711 * gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
712 * gdb.threads/configure: New, generated with autoconf.
716 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.
720 * gdb.base/signals.exp (test_handle_all_print): Test separately for
721 each signal's status in the output of "handle all print".
722 * lib/gdb.exp (gdb_test): Document that the pattern must NOT include
723 the \r\n sequence that immediately precedes the gdb prompt.
724 * gdb.base/a1-selftest.exp: Save original timeout and restore
729 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
734 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.
738 * gdb.base/signals.exp (test_handle_all_print): Temporarily increase
739 timeout by 60 seconds.
743 * config/unix-gdb.exp: Increase default timeout from 30 to 60 sec.
744 * config/netware.exp (gdb_run_cmd): Restore old timeout before doing
749 * lib/gdb.exp (default_gdb_start): When reporting a timeout during
750 gdb initialization, also report how long dejagnu waited. Restore
751 old timeout before doing error return. Temporarily increase timeout
752 by 3 minutes to allow for slow startups over heavy NFS use.
756 * lib/gdb.exp: Report timeout value for verbosity level 2.
757 * config/gdbserver.exp: Ditto.
758 * config/hppro.exp: Ditto.
759 * config/mips-gdb.exp: Ditto.
760 * config/monitor.exp: Ditto.
761 * config/netware.exp: Ditto.
762 * config/sim-gdb.exp: Ditto.
763 * config/slite-gdb.exp: Ditto.
764 * config/udi-gdb.exp: Ditto.
765 * config/unix-gdb.exp: Ditto.
766 * config/vx-gdb.exp: Ditto.
767 * gdb.base/a1-selftest.exp: Ditto.
768 * gdb.base/a2-run.exp: Ditto.
769 * gdb.base/break.exp: Ditto.
770 * gdb.base/corefile.exp: Ditto.
771 * gdb.base/list.exp: Ditto.
772 * gdb.base/recurse.exp: Ditto.
773 * gdb.base/scope.exp: Ditto.
774 * gdb.base/signals.exp: Ditto.
778 * gdb.threads/Makefile.in (docdir): Removed.
782 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
783 * gdb.{base,c++,chill,disasm,stabs}/Makefile.in (VPATH): set to
785 * gdb.{base,c++,chill,disasm,stabs}/configure.in (AC_PREREQ):
786 autoconf 2.5 or higher.
787 * gdb.{base,c++,chill,disasm,stabs}/configure: Rebuilt.
791 * configure: Regenerated.
792 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
793 avoid name clashes with SunOS headers.
797 * gdb.c++/virtfunc.exp: Search $objdir/../../libstdc++ for libstdc++.
801 * gdb.base/callfuncs.exp: Finish last change -- make sure the
802 prototype information ends up in the compiler info file.
806 * gdb.base/callfuncs.exp: Remove the compiler info file prior to
807 attempting to regenerate it. Eliminate use of a temporary file
808 and just generate the info file directly. Source it immediately,
809 for consistency of use.
810 * gdb.base/corefile.exp: Ditto
811 * gdb.base/exprs.exp: Ditto.
812 * gdb.base/funcargs.exp: Ditto.
813 * gdb.base/langs.exp: Ditto.
814 * gdb.base/list.exp: Ditto.
815 * gdb.base/mips_pro.exp: Ditto.
816 * gdb.base/nodebug.exp: Ditto.
817 * gdb.base/opaque.exp: Ditto.
818 * gdb.base/ptype.exp: Ditto.
819 * gdb.base/scope.exp: Ditto.
820 * gdb.base/setvar.exp: Ditto.
821 * gdb.base/signals.exp: Ditto.
822 * gdb.base/whatis.exp: Ditto.
823 * gdb.c++/templates.exp: Ditto.
824 * gdb.c++/virtfunc.exp: Ditto.
825 * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
826 whether or not to add -lstdc++ to the compile command line args.
830 * gdb.base/recurse.exp: Remove setup_xfail for "sparc*-*-sunos4*",
831 it got fixed by the recent lookup_minimal_symbol_by_pc change.
832 Increase timeout, a lot of single stepping might be needed if the
833 target has no hardware watchpoints.
837 * gdb.base/break.exp: Ignore compiler warnings when compiling
839 * gdb.base/callfuncs.exp: Don't run these tests on the h8300.
840 * gdb.base/default.exp: Add h8300 xfails. Handle messages
842 * gdb.base/exprs.exp: Add h8300 xfails.
843 * gdb.base/funcargs.exp: Likewise.
844 * gdb.base/nodebug.exp: Likewise.
845 * gdb.base/printcmds.exp: Likewise.
846 * gdb.base/ptype.exp: Likewise.
847 * gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300. Add
849 * gdb.base/return.exp: Handle float/double precision problems
851 * gdb.base/funcargs.c: Explicitly make last constant argument to
852 call_after_alloca_subr an unsigned long type.
853 * gdb.base/return.c: Include stdio.h.
857 * config/abug.exp: New file for the older Motorola Bug monitor
858 that runs on the mvme13x series VME boards.
859 * config/monitor.exp: Use the new config array for target settings
864 * sim-gdb.exp: Make the SH simulator allocate less space when
869 * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
874 * gdb.base/list.exp (test_list_function): Remove setup_xfail for
875 "rs6000-*-*" for "list function in include file" when gcc compiled.
876 * gdb.base/printcmds.exp: Remove setup_xfail for "rs6000-*-aix*"
877 for "p ctable1[120]".
878 * gdb.base/scope.exp: Remove setup_xfail for "rs6000-*-*" for
879 "print 'scope0.c'::filelocal_bss before run" when gcc compiled.
880 Remove setup_xfail for "rs6000-*-*" for
881 "print 'scope0.c'::filelocal before run".
882 * gdb.base/{langs.exp, lists.exp, opaque.exp, scope.exp},
883 gdb.stabs/weird.exp: Remove use of compiler options "-c -o ..."
884 since some compilers don't allow both options to be given
885 on the same command line. Create object file and move it.
889 * gdb.base/corefile.exp: Always regenerate the core file, since
890 we always regenerate the coremaker program. Detect special case
891 where registers cannot be read from core file.
896 * gdb.base/funcargs.c: Patch for SPARCworks alloca compatibility
897 * gdb.c++/templates.exp: Only match on basename of file since
898 some formats like xcoff don't encode directory information.
899 * gdb.stabs/weird.exp: Use the right sed script for powerpc
900 and rs6000 AIX xcoff targets.
901 * configure.in: Add stabsdirs to configdirs for powerpc-*-aix*.
902 * configure: Regenerate.
903 * gdb.base/Makefile.in (clean): Remove generated file twice-tmp.c
904 here, rather than in distclean.
908 * gdb.base/mips_pro.exp: Create mips_pro.ci to get gcc_compiled
909 defined, and use it to compile the test case with -O2. The
910 native compilation still uses no optimization.
911 * gdb.base/mips_pro.c: Remove inline assembly code since
912 it is compiled PIC by default, which results in assembler
913 warnings that make the testsuite think the compilation
918 * gdb.c++/misc.exp: Add note to message for
919 "print s.a for foo struct" that this is a known gcc 2.7.2
924 * gdb.base/break.exp: Fix pattern for matching "Delete all
925 breakpoints (y or n) ". Add "mips-dec-ultrix*" to
926 setup_xfail for deleting all breakpoints test. Fix various
927 timeout messages to include "(timeout)".
928 * gdb.base/callfuncs.exp: Add "i*86-*-sysv4*" to setup_xfail
929 for "p t_float_values2(3.14159,float_val2)".
930 * gdb.base/funcargs.exp: Remove "mips-sgi-irix4*" setup_xfail
931 for "continue to call2g" when gcc compiled.
932 * gdb.base/langs.exp: Remove "i*86-*-sysv4*" setup_xfail for
933 "up to foo in langs.exp", "show language at foo in langs.exp",
934 "show language at cppsub_ in langs.exp", "up to fsub in langs.exp",
935 and "show language at fsub in langs.exp".
936 * gdb.base/list.exp: Remove "*-*-sysv4*" setup_xfail for
937 "list line 1 in include file", "list message for lines past EOF",
938 "list function in include file", "list list0.h:foo", and
939 "list filename:function; nonexistant function".
940 * gdb.base/ptype.exp: Change "i*86-*-sysv4*" setup_xfail for
941 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)"
942 and "ptype t_char_array" to be for native cc only.
946 * gdb.base/corefile.exp: Remove "alpha-dec-osf2*" native compiled
947 setup_xfail for "print coremaker_bss", "print coremaker_ro",
948 "print func2::coremaker_local", and "backtrace in corefile.exp".
952 * gdb.base/signals.exp: Remove "alpha-*-osf2*" setup_xfail for
953 "bt in signals.exp". This problem only appears when running
954 the testsuite, and then only intermittently.
958 * gdb.base/return.exp (return_tests): Differentiate between
959 two tests of continuing.
963 * */Makefile.in (maintainer-clean): Remove config.log.
964 * gdb.base/Makefile.in (EXECUTABLES): Replace twice with twice-tmp.
965 * gdb.c++/Makefile.in (PROGS): Add inherit.
966 (clean): Remove *.ci.
970 * gdb.c++/misc.cc: Add test code from Mike Stump.
971 * gdb.c++/misc.exp: Add test to print s.a, for Mike Stump.
975 * gdb.base/signals.exp: Change setup_xfail for "alpha-*-osf2"
976 to "alpha-*-osf2*" and add comment.
977 * gdb.base/a1-selftest.exp (test_with_self): Remove "alpha-dec-osf2*"
978 setup_xfail for "step over execarg initialization" and
979 "step over corearg initialization".
980 * gdb.base/callfuncs.exp (do_function_calls): Restore setup_xfail
981 for "hppa*-*-*", "sparc-*-*", "mips*-*-*", and "alpha-dec-osf2*".
982 * gdb.base/corefile.exp: Add "alpha-dec-osf2*" setup_xfail when not
983 gcc compiled for "print coremaker_bss", "print coremaker_ro",
984 "print func2::coremaker_local", and "backtrace in corefile.exp".
985 * gdb.base/signals.exp: Build and source signals.ci.
986 Change "alpha-dec-osf2*" setup_xfail for "bt in signals.exp"
988 * lib/gdb.exp: Move verbose statements outside conditionals.
992 * gdb.base/sigall.exp: Remove setup_xfail for irix4. Fixed by
993 Feb 3 procfs.c change.
997 * config/unix-gdb.exp: Remove extraneous newlines from end of file.
1001 * config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
1002 from dejagnu's apparent default of 10 seconds, which gives random
1003 results when running the tests over NFS on moderately loaded systems.
1004 * lib/gdb.exp (gdb_run_cmd): Add "(timeout)" in timeout case.
1008 * gdb.base/callfuncs.exp: Remove setup_xfail for PR 5318. Now fixed.
1009 * gdb.base/a2-run.exp: Replace $binfile with $testfile in test
1014 * configure.in (CY_AC_PATH_TCLH): Remove.
1015 * configure: Regenerate.
1019 * gdb.c++/Makefile.in (clean): Add missing '{'.
1023 * lib/gdb.exp: Provide a default value for noinferior.
1025 * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
1030 * gdb.disasm/hppa.exp: Compile directly into an executable, use
1031 the executable, not the .o to run the tests from.
1035 * gdb.base/break.exp: Don't test for program exit or exit status
1036 if $noresults if nonzero.
1037 * gdb.base/langs.exp: Likewise.
1038 * gdb.base/watchpoint.exp: Likewise.
1040 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
1041 * gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
1042 trying to compile the testcase.
1046 * gdb.base/interrupt.exp (p func1): xfail sparc64-*-solaris2.
1047 * gdb.base/signals.exp (continue to handler): Likewise.
1051 * gdb.c++/classes.exp: Now = returns false/true, not 1/0.
1053 * gdb.fortran/exprs.exp: .LT. and .GT. now return .TRUE. or .FALSE..
1057 * gdb.base/corefile.exp: Recognize "not found" as failure
1058 when trying to determine if a core file was generated.
1059 If no core file was generate the first time, try again without
1060 the ulimit -c to work around braindamaged shells.
1064 * gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
1065 [] tests with "test" and enclose string in quotes.
1066 * gdb.stabs/configure: Rebuild
1070 Changes in sync with expect:
1071 * aclocal.m4 (CY_AC_PATH_TCLH): Handle Tcl 7.5 and greater.
1072 (CY_AC_PATH_TCLLIB): Handle Tcl 7.5 and greater.
1073 (CY_AC_PATH_TKH): Handle Tk 4.1 and greater.
1074 (CY_AC_PATH_TKLIB): Handle Tk 4.1 and greater. Properly quote
1075 argument to AC_REQUIRE.
1076 * configure: Regenerated.
1080 * gdb.base/corefile.exp: When generating a core, discard any
1081 error messages about ulimit not found and the "core dumped"
1082 message from the shell that runs the coredumper.
1086 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
1088 * gdb.stabs/weird.exp: Use ${target_triplet} to determine
1089 which sed script to run. Expect failure for v_comb test
1094 * gdb.base/corefile.exp: Remove "i*86-*-linux" xfail for
1095 "print func2::coremaker_local" and for "backtrace in corefile.exp"
1099 * lib/gdb.exp: Fix typo and rewrite skip_chill_tests.
1100 * gdb.stabs/weird.exp: Setup "sparc-sun-sunos4*" and
1101 "sparc-sun-solaris*" xfails for "p v_comb".
1102 * lib/gdb.exp (default_gdb_start): Fix typo.
1103 * gdb.base/corefile.exp: Allow "Core was generated by ..."
1104 messages to not include the full program name that caused
1105 the core dump since some systems (such as solaris) apparently
1106 truncate this path to about 80 characters.
1107 When generating a core file first try increasing the core file
1108 size limit to unlimited since some systems may default it to
1109 zero, and it is harmless to try it. Move the test for failing
1110 to generate a core file to where it will actually get executed.
1111 * gdb.c++/templates.exp (test_ptype_of_templates): Accept
1112 new gdb result from g++ debug info improvements and make old
1113 pattern obsolescent. Also account for size_t differences
1114 (may be int or long).
1115 * gdb.base/a1-selftest.exp (test_with_self): Check for case where
1116 initialization before function call is placed in the delay slot
1117 and thus appears to be skipped over by commands such as "next".
1121 * gdb.base/a1-selftest.exp (test_with_self): Run without windows.
1125 * gdb.base/*.exp: Make ${srcfile} only be the basename of the
1126 input source file; fix code to compile test to deal with this
1128 * gdb.c++/*.exp: Likewise.
1132 * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
1133 "bt in signals.exp".
1137 * gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
1138 "step over execarg initialization" and
1139 "step over corearg initialization".
1143 * gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
1144 with sizeof(pointer) > sizeof(int). Avoid "void *" or include files.
1149 * Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in},
1150 gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in,
1151 configure.in}, gdb.disasm/{Makefile.in, configure.in},
1152 gdb.stabs/{Makefile.in, configure.in}, gdb.threads/{Makefile.in,
1153 configure.in}: Major reworking for autoconfig.
1154 * aclocal.m4, configure, gdb.base/configure, gdb.c++/configure,
1155 gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt :
1157 * config/unix-gdb.exp: Make GDB global.
1158 * gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp,
1159 callfuncs.exp, commands.exp, corefile.exp, crossload.exp, exprs.exp,
1160 funcargs.exp, interrupt.exp, langs.exp, list.exp, mips_pro.exp,
1161 nodebug.exp, opaque.exp, printcmds.exp, ptype.exp, recurse.exp,
1162 regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp, signals.exp,
1163 term.exp, twice.exp, watchpoint.exp, whatis.exp},
1164 gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp,
1165 templates.exp, virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp,
1166 misc.exp, pr-4975.exp, pr-5016.exp, pr-5020.exp, pr-5022.exp,
1167 pr-5646.exp, pr-5984.exp, pr-6292.exp, pr-6632.exp, pr-8134.exp,
1168 pr-8136.exp, result.exp, string.exp, tuples.exp},
1169 gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues
1170 to returns as necessary, arrange for test to compile own testcase
1172 * lib/gdb.exp: Changes for testsuite to compile own test cases.
1176 * gdb.c++/classes.exp (test_pointers_to_class_members): Add
1177 clear_xfail at end of test which might not call either pass or fail.
1178 * gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for
1179 "backtrace through signal handler".
1183 * gdb.base/sigall.exp: Work around OSF/1-3.x kernel bug when
1184 continuing from a job control stop signal.
1185 * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o.
1189 * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
1190 * gdb.base/corefile.exp: Likewise.
1191 * gdb.base/funcargs.exp: Likewise.
1195 * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
1196 * config/monitor.exp: Add support for setting baud rate.
1200 * gdb.base/a1-selftest.exp: Remove i*86-*-sysv4* and
1201 i*86-*-linux* xfails for "backtrace through signal handler".
1202 * gdb.base/corefile.exp: Add i*86-*-sysv4* xfail for
1203 "print func2::coremaker_local".
1204 * gdb.base/break.exp: Add i*86-*-sysv4*, sparc-sun-sunos4,
1205 alpha-dec-osf2* xfail for
1206 "delete all breakpoints when none".
1210 * gdb.base/break.exp: Change test that deletes all breakpoints
1211 when no user breakpoints are installed. A post 4.15 change
1212 causes gdb to no longer prompt in this case.
1216 * gdb.base/return.exp (return_tests): Change xfail for test
1217 "correct value returned double test" to stop xfailing at
1218 Solaris 2.5. Apparently the bug has been fixed.
1222 * gdb.stabs/ecoff.sed: Remove comment lines except for first one.
1223 IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
1227 * gdb.disasm/hppa.exp: Test lci and syncdma instructions.
1228 * gdb.disasm/hppa.s: Corresponding changes.
1232 * gdb.base/configure.in (hppa*-*-hpux*): No longer needs target
1234 * config/mt-hpux: Deleted.
1238 * Many files: When warning about suppressed tests due to a
1239 nonexistant test binary, avoid incrementing the warning count.
1243 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove BISON.
1247 * gdb.base/return.exp: Change xfail from "sparc-*-solaris2.*" to
1248 "sparc-*-solaris2*".
1252 * gdb.base/coremaker.c: Produce a full core dump for AIX targets.
1253 Add global and local variables and initialize them.
1254 * gdb.base/corefile.exp: Test correct mapping of corefile sections
1255 by printing variables. Remove rs6000 and powerpc xfails, BFD now
1256 extracts the file name and terminating signal from the core file.
1257 * TODO: Remove note about tests for correct mapping of corefile.
1258 * gdb.base/ptype.c (main): Use boolean2 to inhibit AIX 4.1 xlc
1259 from optimizing it away.
1260 * gdb.stabs/weird.exp: Remove rs6000 xfail, xcoffread.c now
1261 handles common blocks.
1265 * gdb.disasm/sh3.s (fmac): Update for new assembler syntax
1266 * gdb.disasm/sh3.exp (fmac): Corresponding changes.
1270 * Makefile.in (maintainer-clean): New target, synonym for
1272 * gdb.base/Makefile.in (maintainer-clean): Likewise.
1273 * gdb.c++/Makefile.in (maintainer-clean): Likewise.
1274 * gdb.chill/Makefile.in (maintainer-clean): Likewise.
1275 * gdb.disasm/Makefile.in (maintainer-clean): Likewise.
1276 * gdb.stabs/Makefile.in (maintainer-clean): Likewise.
1277 * gdb.threads/Makefile.in (maintainer-clean): Likewise.
1281 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
1282 xfails when not gcc compiled for "print foo::funclocal".
1283 (test_at_foo): Add "hppa*-*-hpux*" xfails when not gcc compiled for:
1284 "print foo::funclocal at foo",
1285 "print 'scope1.c'::foo::funclocal at foo",
1286 "print foo::funclocal_bss at foo",
1287 "print 'scope1.c'::foo::funclocal_bss at foo",
1288 "print foo::funclocal_ro at foo",
1289 "print 'scope1.c'::foo::funclocal_ro at foo",
1290 "print bar::funclocal at foo" and
1291 "print 'scope1.c'::bar::funclocal at foo".
1292 (test_at_bar): Add "hppa*-*-hpux*" xfails when not
1293 gcc compiled for "print foo::funclocal at bar".
1294 Expand all messages to ensure that they identify that
1295 the test is at bar().
1296 * gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
1298 "ptype on opaque struct pointer (statically)",
1299 "ptype on opaque struct tagname (statically)",
1300 "ptype on opaque struct pointer (dynamically) 1",
1301 "ptype on opaque struct tagname (dynamically) 1",
1302 "ptype on opaque struct pointer (dynamically) 2" and
1303 "ptype on opaque struct tagname (dynamically) 2
1304 * gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
1310 "whatis bsslocal", and
1312 * gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
1313 "backtrace in langs.exp" and "up to langs0__2do in langs.exp"
1314 when not gcc compiled.
1315 * gdb.base/funcargs.exp (float_and_integral_args): Add
1316 "hppa*-*-hpux*" xfail for "run to call2a" when not gcc
1318 (discard_and_shuffle): Add "hppa*-*-hpux*" xfail for
1319 "backtrace from call6a" when not gcc compiled.
1320 (shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
1321 "backtrace from call7a" when not gcc compiled.
1322 * gdb.base/callfuncs.exp (do_function_calls):
1323 Add "hppa*-*-hpux*" xfail when not gcc compiled for
1324 "p t_char_array_values(char_array_val2,char_array_val1)",
1325 "p t_char_array_values(char_array_val1,char_array_val2)",
1326 "p t_char_array_values("carray 1","carray 2")",
1327 "p t_char_array_values("carray 1",char_array_val2)",
1328 "p t_char_array_values(char_array_val1,"carray 2")",
1329 "p sum_args(1,{2})",
1330 "p sum_args(2,{2,3})",
1331 "p sum_args(3,{2,3,4})",
1332 "p sum_args(4,{2,3,4,5})"
1333 * gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
1334 "backtrace in corefile.exp" when not gcc compiled.
1338 * gdb.base/signals.exp: Rewrite `handle all print' test as
1339 a procedure. Accept blanks or TABs as whitespace, increase
1340 timeout and expect input buffer size for the large output
1341 from the command. Remove "i*86-*-bsdi2.0" xfail.
1345 * gdb.base/setvar.exp: Add new testcases for truncation when
1346 assigning invalid values to bitfields.
1350 * gdb.base/callfuncs.exp (do_function_calls): Remove
1351 mips-sgi-irix* xfail for
1352 "call inferior func with struct - returns char *"
1353 and fix test so that an optional (unsigned char *) cast is
1354 accepted in the result.
1358 * gdb.base/funcargs.exp (float_and_integral_args): Remove
1359 sparc-sun-solaris2* xfail for "print f1 after run to call2a".
1360 * gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
1361 * gdb.base/signals.exp: Remove duplicate "handle all print" test
1362 that accidentally got checked in.
1366 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
1367 clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
1369 * gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
1370 Add mips-sgi-irix5* xfail for not gcc compiled.
1371 * gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci.
1372 * gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
1373 "p top", "whatis top", "p middle", and "whatis middle".
1374 * gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
1375 "whatis signed char" for not gcc compiled.
1376 * gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
1377 "set variable signed char=-1 (-1)" and
1378 "set variable signed char=0xFF (0xFF)" for not gcc compiled.
1379 * gdb.base/funcargs.exp (float_and_integral_args):
1380 Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
1381 Add mips-sgi-irix* xfail when not gcc compiled for
1382 "continue to call2b".
1383 Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
1384 "continue to call2g".
1385 (discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
1386 "backtrace from call6a"
1387 (shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
1388 "backtrace from call7k".
1389 Add mips-sgi-irix5* xfail when not gcc compiled for
1390 "backtrace from call7a".
1391 (localvars_after_alloca): Fix gdb_test cmds for
1392 "print * after runto ...".
1393 Remove rs6000-*-* xfails for
1394 "print i after runto localvars_after_alloca" and
1395 "print l after runto localvars_after_alloca"
1397 * gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
1398 when not compiled with gcc, for:
1399 "print signed char == (minus)",
1400 "print signed char != (minus)",
1401 "print signed char < (minus)",
1402 "print signed char > (minus)".
1403 * gdb.base/callfuncs.exp (do_function_calls):
1404 Add mips-sgi-irix* xfail, when compiled with native compiler, for
1405 "call inferior func with struct - returns char *".
1406 * gdb.base/return.exp (return_tests): Change xfail for
1407 "correct value returned double test" to include Solaris 2.4.
1408 * gdb.base/funcargs.exp (float_and_integral_args):
1409 Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
1413 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
1414 enumeration bitfields if compiling with GNU C.
1415 * lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path
1420 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
1421 test for PRO targets.
1423 * gdb.base/funcargs.exp: Avoid ever setting more than 8
1424 breakpoints in the inferior at any given time by making
1425 two groups of breakpoints for call2*, call6* and call7*
1430 * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
1431 * gdb.base/callfuncs.c (main): Use struct_val1 to inhibit xlc
1432 from optimizing it away.
1433 * gdb.base/callfuncs.exp: Remove rs6000-*-* xfails for
1434 "call inferior func with struct".
1438 * configure.in: Only configure gdb.chill for particular targets.
1442 * gdb.base/Makefile.in: Add action to .c.o transformation
1443 rule that generates a .ci file for each .o file and remove
1444 explicit .c.o rules except for callfuncs.o.
1445 * gdb.c++/Makefile.in: Add .cc.o transformation rule that
1446 generates a .ci file for each .o file and remove explicit
1448 (clean): Remove *.tmp *.ci files.
1449 (EXECUTABLES): Remove templ-info.exp.
1450 * gdb.base/compiler.c: New file.
1451 * gdb.c++/compiler.cc: New file
1452 * gdb.base/scope.exp: Source gdb.base/scope.ci.
1453 Change rs6000-*-* xfail for
1454 "print 'scope0.c'::filelocal_ro" and
1455 "print 'scope1.c'::filelocal" and
1456 "print 'scope1.c'::filelocal_bss" and
1457 "print 'scope1.c'::filelocal_ro" and
1458 "print 'scope1.c'::foo::funclocal" and
1459 "print 'scope1.c'::foo::funclocal_ro" and
1460 "print 'scope1.c'::bar::funclocal" and
1461 "print 'scope0.c'::filelocal_ro" and
1462 "print 'scope1.c'::filelocal at foo" and
1463 "print 'scope1.c'::filelocal_bss at foo" and
1464 "print 'scope1.c'::filelocal_ro at foo" and
1465 "print 'scope1.c'::foo::funclocal at foo" and
1466 "print 'scope1.c'::foo::funclocal_bss at foo" and
1467 "print 'scope1.c'::foo::funclocal_ro at foo" and
1468 "print 'scope1.c'::bar::funclocal at foo" and
1469 "print 'scope0.c'::filelocal_ro" and
1470 "print 'scope1.c'::filelocal" and
1471 "print 'scope1.c'::filelocal_bss" and
1472 "print 'scope1.c'::filelocal_ro" and
1473 "print 'scope1.c'::foo::funclocal" and
1474 "print 'scope1.c'::foo::funclocal_bss" and
1475 "print 'scope1.c'::foo::funclocal_ro" and
1476 "print 'scope1.c'::bar::funclocal" and
1477 "print 'scope1.c'::bar::funclocal_bss"
1478 to only be xfail'd when not compiled with gcc.
1479 Add rs6000-*-* xfail for
1480 "print 'scope0.c'::filelocal_bss before run"
1481 when compiled with gcc.
1482 (test_at_main): Add rs6000-*-* xfail for
1483 "print filelocal_ro in test_at_main"
1484 when compiled with gcc.
1485 * gdb.base/ptype.exp: Source gdb.base/ptype.ci.
1486 Add rs6000-*-aix* xfail for
1487 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and
1488 "ptype t_char_array", not compiled with gcc.
1489 * gdb.base/list.exp (test_list_function): Add rs6000-*-*
1490 xfail for "list foo (in include file)" when gcc compiled.
1491 * gdb.base/funcargs.exp: Source gdb.base/funcargs.ci
1492 (integral_args): Add rs6000-*-* xfail for
1493 "run to call0a" if not compiled with gcc.
1494 (unsigned_integral_args): Add rs6000-*-* xfail for
1495 "run to call1a" if not compiled with gcc.
1496 (float_and_integral_args): Add rs6000-*-* xfail for
1497 "run to call2a" if not compiled with gcc and for
1498 "continue to call2b" for any compiler.
1499 Add rs6000-*-* xfail to
1500 "print f1 after run to call2a" for gcc compiled.
1501 (discard_and_shuffle): Add rs6000-*-* xfail for
1503 (shuffle_round_robin): Add rs6000-*-* xfail for
1504 "backtrace from call7a" if not compiled with gcc.
1505 Add rs6000-*-* xfail for
1506 "backtrace from call7b" if compiled with gcc.
1507 (call_after_alloca): Add rs6000-*-* xfail for
1508 "print c in call_after_alloca" and
1509 "print s in call_after_alloca" and
1510 "backtrace from call_after_alloca_subr"
1511 if not compiled with gcc.
1512 (localvars_in_indirect_call): Add rs6000-*-* xfail for
1513 "print c in localvars_in_indirect_call" and
1514 "print c in localvars_in_indirect_call" and
1515 "backtrace in indirectly called function" and
1516 "stepping into indirectly called function"
1517 if not compiled with gcc.
1518 (localvars_after_alloca): Add rs6000-*-* xfail for
1519 "print c after runto localvars_after_alloca" and
1520 "print s after runto localvars_after_alloca" and
1521 "print i after runto localvars_after_alloca" and
1522 "print l after runto localvars_after_alloca"
1524 * gdb.base/whatis.exp: Source gdb.base/whatis.ci rather
1525 than whatis-info.exp.
1526 * gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather
1527 than opaque-info.exp.
1528 Setup rs6000-*-* xfail for
1529 "ptype on opaque struct pointer (statically)" and
1530 "ptype on opaque struct pointer (dynamically)" when
1531 not compiled with gcc.
1532 * gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci
1533 rather than callf-info.exp.
1534 (do_function_calls): Add clear_xfail for rs6000-*-* for
1535 "p t_float_values2(3.14159,float_val2)". Seems to work
1536 fine there, both with xlc and gcc. Need to find out what
1537 it is doing right and fix other platforms.
1538 * gdb.base/callfuncs.exp: Add rs6000-*-* xfail for
1539 "call inferior func with struct - returns int",
1540 "call inferior func with struct - returns long",
1541 "call inferior func with struct - returns float",
1542 "call inferior func with struct - returns double",
1543 "call inferior func with struct - returns char *",
1544 but only if not gcc compiled (presumes xlc compiled).
1545 Change rs6000-*-* xfails for
1546 "call inferior func with struct - returns char" and
1547 " call inferior func with struct - returns short" to only
1548 xfail if not using gcc.
1549 (clean mostlyclean): Remove *.ci and *.tmp files.
1550 * gdb.c++/templates.exp: Source gdb.c++/templates.ci rather
1551 than templ-info.exp.
1552 * gdb.base/langs.exp: Source gdb.base/langs.ci.
1553 Add rs6000-*-* xfail for "up to foo in langs.exp"
1554 "up to cppsub_ in langs.exp" and "up to fsub in langs.exp"
1555 when not gcc compiled.
1559 * gdb.base/callfuncs.exp: Add xfails for the powerpc.
1560 * gdb.base/corefile.exp: Likewise.
1561 * gdb.base/list.exp: Likewise.
1562 * gdb.base/scope.exp: Likewise.
1563 * gdb.base/siganls.exp: Likewise.
1565 * gdb.base/nodebug.exp: Add xfails for the powerpc. Handle aix4
1567 * gdb.base/whatis.exp: Likewise.
1571 * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect a
1572 failure (opcode table has been fixed to match reality).
1576 * gdb.base/callfuncs.exp: Add rs6000-*-* xfails for
1577 "call inferior func with struct - returns char",
1578 "call inferior func with struct - returns short"
1580 * gdb.base/scope.exp: Remove rs6000-*-* xfails for
1581 "print 'scope0.c'::filelocal at main",
1582 "print 'scope0.c'::filelocal_bss in test_at_main",
1583 "print 'scope0.c'::filelocal at foo",
1584 "print 'scope0.c'::filelocal_bss in test_at_foo",
1585 "print 'scope0.c'::filelocal at bar",
1586 "print 'scope0.c'::filelocal_bss in test_at_bar"
1588 * gdb.base/list.exp: Remove rs6000-*-* xfail for "list function
1589 in source file 1". This bug seems to have been fixed with both
1590 gcc and native cc (was native assembler bug?).
1594 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
1595 "backtrace through signal handler" to "i*86-*-sysv4*".
1596 * gdb.base/signals.exp: Add xfail for "'next' behaved as
1597 continue" case. Add "known SVR4 bug" to fail message.
1598 Add "i*86-*-bsdi2.0" xfail for "handle all print".
1599 Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
1600 * gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
1601 "whatis unnamed typedef'd enum..." and "ptype t_char_array".
1602 * gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
1603 "up to foo in langs.exp", "show language at foo in
1604 langs.exp", "up to cppsub_ in langs.exp", "show
1605 language at cppsub_ in langs.exp", "up to fsub in
1606 langs.exp", and "show language at fsub in langs.exp".
1607 * gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
1608 "bactrace in corefile.exp".
1609 * gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
1610 "call inferior function with struct - returns float" and
1611 "call inferior function with struct - returns double".
1615 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.
1616 * gdb.disasm/sh3.exp: Run the sh3 disassembler tests.
1617 * gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment.
1618 * gdb.disasm/sh3.mt: Makefile fragment for sh3 ests.
1622 * Makefile.in (CHILL_FOR_TARGET): Use previously defined
1623 (or overriden) "CHILL" macro rather then bare "gcc".
1624 Also look for ../../gcc/xgcc since that is what we will
1625 actually need, not "Makefile". Remove following assignment
1626 of CHILL to CHILL_FOR_TARGET because that results in
1627 recursive definition.
1631 * gdb.base/corefile.exp: Change xfail for backtrace in
1632 corefile.exp from linuxaout to all linux.
1633 * gdb.base/sigall.exp (test_one_sig): Specifically deal with
1634 cases where we miss the breakpoint at the signal handler
1635 for some reason. Setup xfail for linuxoldld/linuxaout and
1636 getting SIGIO. Setup xfail for linuxoldld/linuxaout for
1637 hitting SIGURG breakpoint.
1638 * gdb.base/signals.exp: Setup xfail for "next" acting like
1639 continue to add linuxoldld. Setup xfail for all linux for
1640 "next to handler in signals_tests_1", "backtrace in
1641 signals_tests_1", "continue to func1", "pass SIGUSR1",
1642 and continue to handler".
1646 * Update all FSF addresses except those in COPYING* files.
1650 * gdb.base/a2-run.exp: Change messages to be more explicit about
1651 the status of args, and quote binfile in results.
1655 * gdb.base/callfuncs.exp: Add tests for passing structs to
1656 inferior functions and return various types.
1657 * gdb.base/callfuncs.c: Add functions to receive a struct
1658 and return a member of the struct, in various types.
1662 * gdb.base/Makefile.in (clean): Remove callf-info.exp.
1666 * config/vxworks29k.exp: New file, sources vxworks.exp.
1670 * config/gdbremote.exp: New file. Testing framework using
1675 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail for
1676 "call function when asleep" and "send end of file".
1677 * gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list
1678 for "backtrace in corefile.exp".
1679 * gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list
1680 for "backtrace through signal handler".
1681 * gdb.base/corefile.exp: Make sure we actually generate a core file
1682 before trying the core tests. Some systems allow the user to suppress
1683 generation of core files and default to that (linux for example).
1684 * gdb.base/signals.exp: Change xfail for "next" acting like "continue"
1685 from "i*86-*-linux" to "i*86-*-linuxaout". Works with ELF beta.
1689 * gdb.threads: New directory with some crude multi-threaded
1690 gdb tests (step.exp and step2.exp).
1691 * config/mt-lynx (STEP_EXECUTABLE): Define.
1692 (THREADFLAGS): Define.
1696 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx.
1698 * gdb.base/signals.exp: Disable whole file for lynx until
1701 * gdb.base/signals.exp: xfail test where "next" acts like
1702 "continue" for lynx.
1704 * gdb.base/interrupt.exp: xfail test for calling function while
1705 inferior is asleep for lynx.
1707 * gdb.base/watchpoint.exp: Handle more cases of gdb echoing more
1708 than one cr-lf after each command.
1712 * configure.in: Reinstate setting of stabsdirs variable, fix
1713 typo in setting up configdirs for native builds.
1715 * gdb.base/return.exp: Fix typo in return double test.
1716 * gdb.base/return.c (tmp2, tmp3): Made global to inhibit the
1717 compiler from optimizing them away.
1721 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
1722 sequences to be echo'd by gdb when using gdb_test.
1723 * gdb.chill/chexp.exp: Likewise.
1724 * gdb.fortran/exprs.exp: Likewise
1728 * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
1729 after the inferior gdb has started.
1731 * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
1733 * gdb.base/funcargs.exp: Likewise.
1734 * gdb.base/gdbvars.exp: Likewise.
1735 * gdb.base/interrupt.exp: Likewise.
1736 * gdb.base/list.exp: Likewise.
1737 * gdb.base/watchpoint.exp: Likewise.
1738 * gdb.c++/demangle.exp: Likewise.
1739 * gdb.c++/inherit.exp: Likewise.
1740 * gdb.chill/chexp.exp: Likewise.
1741 * gdb.fortran/exprs.exp: Likewise.
1743 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
1744 test if we can't handle IO to/from the inferior.
1746 * gdb.c++/misc.exp: Always check for a program already being
1747 started after sending a "run" command to gdb.
1749 * gdb.base/twice.exp: Start with a fresh gdb.
1751 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
1752 only depend on gdb's expression code, not the chill runtime.
1754 * gdb.base/return.c: Put return values into variables so we
1755 can have gdb print them rather than depending on the program
1757 * gdb.base/return.exp: Corresponding changes.
1759 * lib/gdb.exp: Provide default value for noinferiorio.
1760 * gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
1763 * gdb.base/break.exp: Always check for a program already being
1764 started after sending a "run" command to gdb.
1765 (text_next_with_recursion): Don't check the output from the
1766 program's printf statement. Instead just make sure the program
1769 * gdb.base/commands.exp: Protect tests which need arguments with
1770 $noargs conditionals.
1774 * gdb.base/printcmds.exp: Adjust expect patterns for addresses
1775 of structure member arrays to match gdb/valops.c:value_addr change.
1779 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
1784 * configure.in (configdirs): Remove gdb.chill from default list
1785 of subdirs and then add it back in only if doing a native build.
1786 The current chill compiler does not yet work in any cross build.
1787 * Revert all signal changes from Jul 6.
1788 * gdb.base/{sigall.c signals.c}: Define away signal() and alarm()
1789 for sh-hms targets, allowing these tests to link, with no other
1790 changes. Testing is suppressed by setting "nosignals" in site.exp.
1794 * configure.in (signaldirs): Define and add to configdirs for all
1795 targets except some specific ones that are known to not support signals.
1796 Also clean up formatting.
1797 * gdb.base/Makefile.in (EXECUTABLES): Remove sigall and signals.
1798 (signals, sigall): Remove rules to build.
1799 * gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
1800 Moved to new gdb.signals directory.
1801 * gdb.signals: New test directory.
1802 * gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
1803 signals.c signals.exp}: New or moved files.
1807 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist.
1811 * gdb.base/return.exp: Xfail `return double' test failure
1812 on at least Solaris 2.3 and handle future/past versions on
1813 a case by case basis as appropriate. Also update message
1814 to include i*86 failures.
1818 * Makefile.in: Change variable CFLAGS to TESTSUITE_CFLAGS.
1820 * lib/gdb.exp: Fix comment which erroneously identified
1821 gdb_file_cmd as gdb_load (the 19 May change was in fact to
1822 gdb_file_cmd not gdb_load).
1823 * config/unix-gdb.exp (gdb_load): Add "upvar timeout timeout".
1825 * gdb.base/setvar.exp: Make test names consistent between pass and
1826 fail cases. Use gdb_test more.
1830 * lib/gdb.exp (gdb_load): Add "upvar timeout timeout".
1834 * gdb.base/help.exp: Fix expected help string for `show commands'.
1838 * gdb.stabs/xcoff.sed: Change N_LSYM to C_DECL not C_LSYM.
1840 * gdb.stabs/weird.exp: Remove xfail for xcoff bitching about lack
1845 * config/monitor.exp (gdb_target_monitor): Fix loop interator so
1846 that loop eventually terminates. Fix Connection refused logic so
1847 that testsuite will expire nicely.
1851 * config/cpu32bug.exp, config/est.exp, config/hppro.exp,
1852 config/rom68k.exp: New tcl glue for the appropriate monitors.
1853 These all just end up calling monitor.exp.
1854 * config/monitor.exp (gdb_target_monitor): Handle `Connection
1855 refused' by retrying. Cleanup some timeout issues.
1856 * (gdb_load): Reduce timeout. Cleanup some timeout issues.
1857 * lib/gdb.exp (gdb_test gdb_test_exact): Upvar timeout so that
1858 callers don't have to set/restore global timeout variable.
1860 * The following set of changes centralizes management of the global
1861 timeout variable. This way, it can be set in one target dependent
1862 place instead of dozens of places scattered throughout the test suite.
1863 If you need to lengthen a timeout, then you should either set timeout
1864 in one of the config/{target}.exp files, or multiply it by a factor.
1865 Setting it to an absolute value is always going to lose for some
1867 * gdb.base/a1-selftest.exp (test_with_self): Only use local timeout.
1868 * gdb.base/callfuncs.exp (do_function_calls): Don't set timeout.
1869 * gdb.base/funcargs.exp: Don't set timeout.
1870 * gdb.base/list.exp (test_forward_search): Only use local timeout.
1871 * gdb.base/printcmds.exp (test_print_string_constants
1872 test_print_array_constants): Don't set timeout.
1873 * gdb.base/ptype.exp: Don't set timeout.
1874 * gdb.base/recurse.exp: Don't set timeout.
1875 * gdb.base/return.exp: Don't set timeout.
1876 * gdb.base/watchpoint.exp: Don't set timeout.
1877 * gdb.c++/classes.exp (do_tests): Don't set timeout.
1878 * gdb.c++/virtfunc.exp (test_virtual_calls): Don't set timeout.
1882 * Makefile.in: Make clean targets work also when SUBDIRS is empty.
1886 * lib/gdb.exp: Disable chill tests for irix5.
1890 * gdb.base/scope.exp: Make test names unique. Use gdb_test. Make
1891 each test pass or fail.
1895 * gdb.base/opaque.exp: Remove xfails for aix; print a warning if
1900 * cpu32bug.exp est.exp rom68k.exp: Delete. Unify into monitor.exp.
1904 * config/est.exp: Fix copyright and comments. Remove dead code.
1905 Use targetname, serialport and baud variables instead of fixed
1907 * config/rom68k.exp: Fix copyright and comments. Remove dead code.
1908 * config/cpu32bug.exp: New file to support cpu32bug monitors.
1912 * gdb.base/watchpoint.exp: Don't run
1913 test_watchpoint_triggered_in_syscall for sunos.
1917 * gdb.base/{break.c,run.c}: Don't include vxWorks.h or stdioLib.h;
1918 they don't seem to exist. Do include stdio.h.
1922 * gdb.base/a1-selftest.exp: Add alpha xfail.
1926 * gdb.base/watchpoint.c (main): Prompt before calling read().
1927 * gdb.base/watchpoint.exp (test_watchpoint_triggered_in_syscall):
1928 Revise accordingly. Remove cruft about sending "123" several
1929 times, until it gets noticed. Clean up the "print buf[0]" stuff
1930 so that it passes or fails, and waits for prompts in the usual way.
1934 * gdb.base/recurse.exp: Fix comment.
1936 * TODO: Remove item about printing variables in nodebug.exp. Add
1937 item about enabling tests which are only run on some targets.
1939 * gdb.base/watchpoint.exp: Various cleanups (make each test pass or
1940 fail, make test names unique, use new gdb_test convention
1941 regarding pattern, use gdb_test more, etc.).
1943 * gdb.base/bitfields.exp: Various cleanups (make each test pass or
1944 fail, make test names unique, etc.).
1948 * gdb.base/nodebug.c: Change return type of top and middle to
1950 * gdb.base/nodebug.exp: Remove xfails for ecoff systems, they
1951 are fixed by the recent mdebugread.c changes. Allow `short ()'
1952 as type for top and middle.
1956 * gdb.base/break.exp: Remove commented out if $usestubs {}. As
1957 nearly as I can tell, the whole thing was an accident in Stu's
1958 change of 24 Mar 1995 (logged in ../ChangeLog), in which he meant
1959 to replace a send/expect pair with gdb_test, but ended up only
1960 adding the gdb_test. My change of 24 Mar 1995 and Kung's change
1961 of 30 Mar 1995 took care of it, but left this vestigial comment
1962 which I am now nuking.
1966 * gdb.base/break.exp: Look for different line number for
1967 breakpoint at main depending on usestubs.
1971 * gdb.base/list.exp: Adjust some alternate expect patterns to
1972 match recent list0.c change. Add alternate expect pattern for
1973 output from `list default lines around main' for optimizing
1978 * lib/gdb.exp: If nosignals is not set, set it to 0.
1982 * config/slite-gdb.exp: Responds to load symbol table prompt.
1983 * gdb.base/break.exp: Adjust line number, fix rerun.
1984 * gdb.base/langs0.c: Add #ifdef usestubs.
1988 * gdb.base/list.exp: Adjust line contents after adding new lines in
1989 list0.c. Also fix a syntax error.
1991 * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
1992 * gdb.base/break.exp: ditto.
1993 * gdb.base/list.exp: ditto.
1994 * gdb.base/bitfields.c: Add #ifdef usestubs in main().
1995 * gdb.base/run.c: ditto.
1996 * gdb.base/list0.c: ditto.
1997 * gdb.base/funcargs.c: ditto.
2001 * testsuite/config/rom68k.exp (gdb_target_rom68k): Use
2002 $targetname, $serialport and $baud instead of hardwired variables.
2003 * testsuite/gdb.base/{sigall.exp signals.exp}: Skip these if the
2004 target doesn't support signals.
2008 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.
2012 * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
2013 Don't rely on the value of an auto variable before it has been
2014 initialized. Use gdb_test more.
2018 * lib/gdb.exp (default_gdb_version): A version number must start
2019 with a digit, but other than that contains all characters up to
2020 the first whitespace character.
2024 * gdb.base/commands.exp (breakpoint_command_test): New tests.
2028 * gdb.c++/*.exp: Warn if executable does not exist. The original
2029 reason for skipping the warning was that configure.in sometimes
2030 intentionally skipped building the executables but the tcl code
2031 had no way of knowing. That (a) was always bogus with respect to
2032 error handling, (b) is no longer true (right now there is no way
2035 * gdb.c++/demangle.exp: Remove unused binfile and srcfile variables.
2039 * gdb.base/list.exp: Add expect patterns for output from
2040 SunPRO compiled executables.
2041 * gdb.base/whatis.exp: Allow leading `signed' for all v_signed_*
2046 * gdb.base/break.exp (test_next_with_recursion): Accept any line
2047 number (we are already testing that the correct source line text
2050 * gdb.base/break.exp: Make one test if $usestubs. I'm not sure
2051 that is what is intended, but something needed to be done to get
2052 sunos4 native working again.
2054 * gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
2056 * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
2057 apparently went with a (very) old xfail.
2061 * gdb.base/callfuncs.exp: call runto_main instead of runto main.
2062 runto_main is a proc in gdb.exp that will do 'step' for target use
2064 * gdb.base/exprs.exp: ditto.
2065 * gdb.base/interrupt.exp: ditto.
2066 * gdb.base/opaque.exp: ditto.
2067 * gdb.base/printcmds.exp: ditto.
2068 * gdb.base/ptype.exp: ditto.
2069 * gdb.base/scope.exp: ditto.
2070 * gdb.base/setvar.exp: ditto.
2071 * gdb.base/signals.exp: ditto.
2072 * gdb.base/twice.exp: ditto.
2073 * gdb.c++/classes.exp: ditto.
2074 * gdb.c++/inherit.exp: ditto.
2075 * gdb.c++/templates.exp: ditto.
2076 * gdb.base/break.exp: no run and hit main for stubs. Change line
2077 numbers for breakpoints and info breakpoint.
2078 * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
2080 * gdb.base/callfuncs.c: ditto.
2081 * gdb.base/exprs: ditto.
2082 * gdb.base/interrupt.c: ditto.
2083 * gdb.base/opaque0.c: ditto.
2084 * gdb.base/printcmds.c: ditto.
2085 * gdb.base/ptype.c: ditto.
2086 * gdb.base/scope0.c: ditto.
2087 * gdb.base/setvar.c: ditto.
2088 * gdb.base/signals.c: ditto.
2089 * gdb.base/twice.c: ditto.
2090 * gdb.c++/misc.cc: ditto.
2091 * gdb.c++/templates.cc: ditto.
2095 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).
2097 * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
2098 somewhere between `read' and `main.c'. I'm pretty sure the
2099 pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
2100 and it isn't particularly useful.
2102 * gdb.base/scope.exp: Make test names unique. \[(\] -> \\(.
2106 * gdb.base/commands.exp (infrun_breakpoint_command_test): New test.
2110 * config/mt-slite: add LIBS and -nostdlib.
2111 * config/slite-gdb.exp: add this new file to support sparclite target.
2115 * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code.
2117 * gdb.base/a2-run.exp: Change argument to istarget from
2118 "*-*-vxworks" to "*-*-vxworks*".
2119 * gdb.base/{break.exp,default.exp,scope.exp}: Likewise.
2123 * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
2124 will not runto main but do a 'step' to step out of breakpoint().
2125 * config/mt-slite: add -Dusestubs.
2129 * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
2132 * gdb.base/signals.exp: Add test for "handle all print".
2133 * TODO: Remove "handle all print". Also remove item about
2134 checking copyright date (I don't like the idea of a spurious FAIL
2135 based on when we run the tests).
2137 * gdb.base/recurse.exp: Enable test for SunOS4. xfail one test
2138 for SunOS4 (reason for failure not investigated). Remove
2139 redundant test for $binfile.
2141 * gdb.base/nodebug.c (array_index): Call malloc.
2143 * gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique.
2147 * gdb.base/recurse.exp: Update gdb_test invocation to use new
2148 conventions and slightly simplify the matching regexp.
2152 * gdb.base/break.exp: Update gdb_test invocation to use new
2155 * lib/gdb.exp: If noargs is not set, set it to 0.
2157 * gdb.base/nodebug.exp: Comment out redundant test. Make name of
2160 * lib/gdb.exp: Skip CHILL for AIX and Solaris.
2164 * gdb.base/nodebug.exp: It is OK if GDB thinks top and middle have
2165 one argument of type "<non-float parameter>".
2169 * config/rom68k.exp: New file to support Motorola IDP board.
2170 * gdb.base/a2-run.exp: Skip this file if noargs is set.
2171 * gdb.base/break.c: Change things around so that this program
2172 doesn't depend upon args. This is necessary to make remote
2173 targets work (in general, they can't take args).
2174 * gdb.base/break.exp: Don't try to send args to program. Don't
2175 expect output. Also, replace lots of code with gdb_test.
2179 * gdb.base/printcmds.exp (test_character_literals_accepted): Test
2180 printing of '\'' (which is what the comment says we are testing,
2181 even though we were not), not '''.
2182 (test_integer_literals_rejected): Test that printing ''' is an error.
2184 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
2185 gdb.chill/chexp.exp, gdb.base/printcmds.exp,
2186 gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp,
2187 gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp:
2188 Use gdb_test not test_print_accept.
2189 * lib/gdb.exp: Remove test_print_accept.
2191 * gdb.base/signals.exp (signal_tests_1): Make pass message
2192 consistent with fail message.
2194 * gdb.base/whatis.exp: Remove xfails for printing char vs.
2195 unsigned char; the bug (PR 1821) is fixed.
2197 * gdb.base/scope.exp: Remove xfails for PRs 1843 and 1868.
2199 * gdb.base/scope.exp (test_at_localscopes): Call pass for
2200 successful tests--makes xfailing them work right.
2204 * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
2205 only \r\n, not .*. The test can pass .* as the last thing in
2206 $pattern if that is what it wants. In addition to providing this
2207 flexibility, this change should speed up pattern matching in cases
2208 where the pattern already ended with .* (there were a number of
2209 them). This change also helps catch bad patterns--in the old
2210 scheme the typo "char \*" instead of "char \\*" would pass. Now
2212 * Many .exp files: Update callers.
2214 * gdb.base/funcargs.exp: Replace \[(\]+ with \\(. The latter is
2215 clearer and does not spuriously match multiple ('s. Likewise for
2218 * gdb.base/nodebug.exp: Test ability to call a function and pass
2219 it a string (even with no debugging info).
2221 * gdb.base/printcmds.exp (test_integer_literals_rejected): Change
2222 "p '\'", which is the same as "p ''" once tcl gets done with
2223 quoting, to "p '\\'", which I suspect is what is intended (one
2224 backslash gets sent to GDB).
2226 * gdb.base/printcmds.exp (test_artificial_arrays): New tests.
2230 * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
2231 1817) was fixed literally years ago.
2235 * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
2236 test, it causes stepping out of call_after_alloca_subr with
2237 optimizing compilers.
2238 (localvars_in_indirect_call): Consume GDB prompt if `finish'
2241 * gdb.c++/templates.exp: Source templ-info.exp only if
2242 the templates executable exists.
2244 * gdb.c++/misc.cc (class Contains_static_instance,
2245 class Contains_nested_static_instance),
2246 gdb.c++/classes.exp (test_static_members): Test printing of
2247 a class that contains a static instance of the class.
2251 * gdb.base/langs2.c (cppsub_): Don't prototype.
2252 * gdb.base/langs2.cxx (cppsub_): Fix prototype (cosmetic value
2257 * lib/gdb.exp (skip_chill_tests): New procedure.
2259 * gdb.base/signals.exp (signal_tests_1): xfail for irix.
2263 * gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
2264 each expect pattern. Cuts runtime from 12 to about 4 seconds.
2268 * gdb.base/langs.exp: Don't insist that foo__Fi be demangled.
2270 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Only
2271 disassemble 8, not 16, instructions for part 4.
2273 * config/vx-gdb.exp (gdb_start): Use \030, not \CX. tcl doesn't
2274 support the latter anymore.
2276 * gdb.base/Makefile.in: Try compiling callfuncs.c, if that fails try
2278 * gdb.base/callfuncs.c: Control use of prototypes based on
2279 NO_PROTOTYPES, not __STDC__.
2280 * gdb.base/callfuncs.exp (do_function_calls): xfail one of the
2281 t_float_values2 tests if prototypes in use.
2283 * gdb.base/callfuncs.c (t_float_values, t_float_values2,
2284 t_double_values): When checking differences against DELTA, check
2285 that difference is within the range (-DELTA,DELTA), not just
2290 * config/mips-gdb.exp (gdb_load): In every test case, we need to do
2291 'file' command firts, then 'target', then 'load', this is due to gdb
2293 * config/mips-gdb.exp: Fix a couple regular exp bugs.
2297 * gdb.disasm/hppa.s (fmemLRbug_tests): Add tests for the indexing
2298 FP load/store variants.
2299 * gdb.disasm/hppa.exp (fmemLRbug_tests): Test new variants.
2303 * gdb.base/term.exp: Do not give a warning if not native, it is
2304 not an abnormal condition.
2308 * gdb.base/ptype.exp: Accept char[0] as well as char[] for "ptype
2313 * lib/gdb.exp (default_gdb_version): Pass GDBFLAGS to gdb when we
2314 are getting the version number.
2316 * gdb.base/{a1-selftest.exp,corefile.exp}: Do not give a warning
2317 if not native, it is not an abnormal condition.
2321 * lib/gdb.exp: Just use "file exists", rather than undocumented
2322 dejagnu procedure "findfile".
2326 * config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
2327 (LDFLAGS): Set to -Xlinker -Ur.
2329 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
2330 Removed, these values are set by lib/gdb.exp.
2332 * lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.
2336 * config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
2337 of replicating gdb startup code.
2339 * config/mt-vxworks (LDFLAGS): Set to -r.
2340 (CFLAGS_FOR_TARGET): Removed.
2342 * config/vx-gdb.exp: always set prompt; gdb.exp sets it to
2343 (gdb) and gdb for vxworks uses (vxgdb).
2345 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
2346 executable is not in the tree and host != target, use sed and
2347 program_transform_name to determine the gdb name used by the
2350 * configure.in, gdb.{base,c++,chill}/configure.in: changed so
2351 *-*-vxworks* matches vxworks and *-*-netware* matches NetWare.
2355 * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
2356 floats, chars, and shorts where there are ANSI-style function
2359 * gdb.base/langs.exp, gdb.base/langs*: New test.
2360 * gdb.base/Makefile.in: Build it.
2361 * TODO: Remove item about checking that C names don't get C++
2362 demangling applied; this test tests it.
2366 * gdb.stabs/weird.exp: Remove "Haven't examined" comment which
2367 went with the const70 xfail. The xfail went away a year ago.
2369 * gdb.base/signals.exp: Rename a bunch of tests to give unique names.
2371 * gdb.base/corefile.exp: Give backtrace test unique name. xfail
2374 * gdb.base/interrupt.exp: Also xfail hpux (for hp300).
2376 * gdb.base/a1-selftest.exp: Don't run on hp300.
2380 * Makefile.in (site.exp): Set host_alias and target_alias as well
2381 as host_triplet and target_triplet.
2385 * gdb.base/a1-selftest.exp: Invoke stty before starting inferior.
2387 * gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
2388 places as other ecoff systems).
2390 * gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
2395 * gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
2397 * gdb.base/nodebug.exp: Accept "function" in addition to "text
2398 variable and "variable" in addition to "data variable".
2399 * gdb.base/nodebug.exp: xfail datalocal and bsslocal tests for AIX.
2401 * gdb.base/list.exp (test_forward_search): Set listsize to 4 not
2403 * gdb.base/list1.c (long_line): Add additional statement at start
2405 * gdb.base/list.exp (test_forward_search): Update line number to
2406 reflect new statement.
2410 * gdb.base/signals.exp: Reinitialize searched source directories
2411 after gdb_start call.
2415 * gdb.disasm/Makefile.in (clean): Delete "errs" file.
2416 * gdb.stabs/Makefile.in: Likewise.
2418 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Revert last
2419 change. Instead split the tests into smaller pieces.
2420 * gdb.disasm/hppa.s: Corresponding changes.
2424 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
2425 Quote ^C when passing it to stty. For some shells ^ is a pipe.
2427 * gdb.base/funcargs.exp: Modify many tests so that every test
2428 either passes or fails. Make some test names unique.
2432 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
2433 Call stty to set interrupt character.
2435 * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
2436 for HP assembler versus GNU assembler based on actual behavior of
2437 $(CC), rather than assuming that $(AS) is always the GNU assembler.
2439 * TODO: Suggest a few more stepping tests.
2443 * gdb.base/default.exp: xfail no-stack backtraces for h8300,
2444 restart GDB for h8300 after a continue.
2445 (return): Add pattern to match a29k-udi behavior.
2446 * gdb.base/nodebug.exp: Remove obsolete comment.
2447 * gdb.base/regs.exp: New file, testing of register displays.
2448 * gdb.base/return.exp: Fix typo in reference to $objdir.
2449 * gdb.base/whatis.exp: Always start with a fresh GDB.
2453 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
2454 higher, these tests generate a lot of output.
2458 * lib/gdb.exp (gdb_test): Remove catch from around the send. The
2459 code following the catch silently ignored some errors; without the
2460 catch they should be thrown like any other tcl error. Also, the
2461 catch used "" instead of {} which meant all the callers who wanted
2462 to include one of the characters "[]$ had to quote it an extra time.
2463 * gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
2464 ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
2465 demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
2466 Remove extra quoting.
2470 * gdb.base/commands.exp: Make test names unique; every test either
2471 passes or fails. Update some comments.
2473 * gdb.disasm/hppa.exp (do_system_control_tests): Update.
2477 The following fixes a FAIL caused by the fact that the alpha stabs
2478 configuration didn't use the ".if alpha" code in weird.def.
2479 * gdb.stabs/weird.def (v_comb): Use type attribute to specify 32
2480 bit pointer, so the 32 bit version works even on the alpha.
2481 * gdb.stabs/{alpha.mt,ecoff.mt,aout.sed,hppa.sed,xcoff.sed,weird.def}:
2482 Remove the stuff which allowed us to have separate versions for
2483 alpha and everything else.
2485 * gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
2486 regexp which "info func operator\[\](" is supposed to match. Fix
2487 string to send to GDB. Note that GDB still doesn't work right. Add a
2488 new test for "info func .perator\[\](" which GDB does handle correctly.
2490 * gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems.
2494 * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
2495 gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
2496 gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
2497 gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
2498 it makes the tests harder to understand and confuses test-o-matic.
2499 The preferred style is that each test provides a PASS or a FAIL,
2500 and has a unique message (e.g. "continue #54" not just "continue")
2501 which is the same for the pass and the fail.
2502 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
2503 gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
2505 * gdb.base/printcmds.exp: Use test_print_accept. Remove
2506 prt_accept which was basically the same thing. Likewise for
2507 test_print_reject and prt_reject.
2508 * lib/gdb.exp (test_print_reject): Add some more error message
2509 patterns to match from the former printcmds.exp (prt_reject).
2510 * gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
2511 One defect of the passcount stuff is that some of it failed to
2512 report XPASS where appropriate.
2513 * gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
2514 stuff before and after arg in expected pattern.
2515 (test_paddr_operator_functions): Re-do test without print_addr_of;
2516 this is the only test which seems to want extra stuff there.
2520 * gdb.base/nodebug.exp: Update new tests to reflect improved
2521 wording of gdb output.
2523 * gdb.base/nodebug.exp: Add tests to check that "print", "whatis"
2524 and "ptype" work on variables in files compiled without -g.
2525 Replaces commented out "maint print msymbol" tests.
2529 * gdb.base/setvar.c (dummy): Call malloc.
2531 * gdb.stabs/aout.sed: Enclose comments within a sed command to avoid
2532 losing with the irix4 sed.
2534 * gdb.base/sigall.exp (test_one_sig): Add xfail for "get signal
2539 * TODO: Remove items about corefile.exp testing new exec-file and
2540 backtrace; both are now done. Add items about printing enums.
2544 * gdb.base/sigall.exp (test_one_sig): Attempt to recover if
2545 "get signal $thissig" test fails.
2547 * gdb.base/setvar.exp: Check for and reject crazy expected type hacks.
2551 * gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
2552 compiler warning with dec alpha compiler.
2554 * gdb.base/commands.exp (if_while_breakpoint_command_test): Remove
2555 extra \n from gdb_test call (this explains why the prompt test
2556 that I removed yesterday was there).
2557 (user_defined_command_test): Remove extra \n and prompt test.
2559 * gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST
2560 doesn't exist. Likewise if SIGIO == SIGPOLL, pretend SIGPOLL
2562 * gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL.
2563 Also remove alpha workaround, which turns out to be because
2566 * gdb.base/sigall.exp: Add workaround for alpha weirdness.
2568 * gdb.base/help.exp: Don't test "help show".
2572 * gdb.base/commands.exp: Call gdb_exit and gdb_start so that
2573 "set print address" is on.
2574 * gdb.base/commands.exp (if_while_breakpoint_command_test): Don't
2575 pass prompt to gdb_test; gdb_test already looks for the prompt.
2577 * gdb.base/help.exp: Replace most of docstring for "define" with ".*".
2579 * gdb.base/a1-selftest.exp: Don't test "maint dump-me". That test
2580 was a vestige of the manual TESTSTRATEGY, and the purpose of it
2581 was to make sure that gdb can read a core file. But (a) the "read
2582 the corefile" part didn't make it to a1-selftest.exp, we just
2583 delete the corefile after creating it, and (b) we test reading
2584 corefiles in corefile.exp anyway. Also, this test left around a
2585 xgdb process on Solaris.
2587 * gdb.base/corefile.exp: Also test backtrace.
2591 * gdb.base/commands.exp: Test a simple user defined command with
2592 arguments and if/while statements; verify the full user command is
2593 printed by "show user".
2595 * gdb.base/commands.exp: Test if/while commands as part of a
2596 breakpoint command list; verify they appear in breakpoint
2601 * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather
2602 than by dividing by zero.
2606 * gdb.base/watchpoint.exp: hppa*-*-*bsd* no longer has problems
2607 performing an inferior call with watchpoints enabled.
2608 * gdb.base/watchpoint.c (main): Delete second unnecessary read
2613 * gdb.stabs/weird.exp: Allow spaces followed by backspaces in echo
2616 * gdb.c++/classes.exp (test_ptype_class_objects, ptype class Foo):
2617 Add additional pattern for when "int operator int(void);" appears
2618 in a different order.
2622 * gdb.base/signals.exp: Call gdb_exit and gdb_start.
2624 * gdb.base/help.exp: Replace most of docstrings for "info signals"
2625 and "signal" with ".*".
2629 * TODO: Add note about "handle all nostop".
2631 * gdb.base/{sigall.c, sigall.exp}: New test.
2632 * gdb.base/Makefile.in: Add it.
2636 * lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
2637 when invoking GDB, suppresses any windowing interface.
2641 * config/sim-gdb: New file, simulator testing support.
2645 * gdb.base/interrupt.exp: Test calling func1 twice.
2649 * gdb.base/list.exp (test_forward_search): Set timeout higher
2650 when we'll be getting lots of output from gdb.
2652 * gdb.base/a1-selftest.exp: Move code that was inside expect -re
2653 "init_malloc" to after the expect statement. Run it if that
2654 regexp is taken, but also for two others which happen if source
2659 * gdb.base/printcmds.exp: New test, for printing register before
2664 * gdb.base/list.exp: Correct some alternate expect patterns
2665 to reflect changes in list1.c.
2669 * TODO: Add item regarding large frames.
2671 * gdb.base/{funcargs.exp, funcargs.c} (call_after_alloca): New test.
2673 * TODO: Remove item about enabling return.exp; it
2674 is enabled. Suggest a few more "return" tests.
2678 * gdb.c++/misc.cc, gdb.c++/inherit.exp: Add testcases for
2683 * gdb.chill/Makefile.in: Put all rule before rules for pr-4975.o
2684 and pr-5646.o, so "make" is the same as "make all", not "make
2689 * gdb.base/list.exp: Adjust expectations to reflect changes in
2691 (test_forward_search): New test proc.
2692 * gdb.base/list1.c (long_line): New function, has long source line.
2696 * gdb.base/a1-selftest.exp: Change initial stepping to know about
2697 additional line of code that was added.
2701 * gdb.disasm/hppa.s: Break the large branching tests into smaller
2702 tests so as not to overflow expect's input buffers.
2703 * gdb.disasm/hppa.exp: Corresponding changes.
2707 Beginnings of template debugging tests.
2708 * gdb.c++/templ-info.cc: New file to test for template
2709 debugging capability of the compiler.
2710 * gdb.c++/Makefile.in: Add rule to build templ-info.exp from
2712 * gdb.c++/templates.cc: Add explicit template instantiations
2713 to enable compiling with -fno-implicit-templates. Add destructor
2714 and 'value' method to T5 class for template tests.
2715 * gdb.c++/templates.exp: Add testcases for printing of template
2716 types, setting breakpoints on template methods and calling a
2721 * gdb.disasm/hppa.exp (branch_tests): Allow any symbol as the
2722 branch target since some assemblers (gas-2.5) may emit a
2723 relocation for the branch instead of resolving it in the
2728 * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtrace
2729 through signal handler.
2733 * configure.in (*-*-netware): Use config/mt-netware.
2735 * config/mt-netware: New file.
2736 * config/mt-i386-netware: Removed, separate configs for different
2737 netware architectures are no longer needed now that we have
2742 * gdb.base/exprs.exp: Remove xfail for alpha, it is fixed
2743 by the recent changes to use ANSI C arithmetic conversions.
2747 * gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
2748 bug involving using inferior_pid to figure out whether to select a
2753 * gdb.disasm/hppa.exp: Change arg[0..3] to r[26..23] to
2754 match the current disassembler output.
2758 * gdb.fortran/exprs.exp: Expect VOID instead of void.
2759 * gdb.fortran/types.exp: Escape the expected '*'s in Fortran
2760 types, expect "int" as type of integer values (for now).
2764 * gdb.base/commands.exp: New tests for if/while commands.
2768 * lib/gdb.exp (runto): Replace sub-pattern for hex value
2769 by .*, since hex values have different syntax in Chill mode.
2773 * gdb.c++/demangle.exp (test_arm_style_demangling): Remove
2774 linefeed from expect pattern for repeated types with indices > 9.
2778 First part of Fortran test suite.
2779 * gdb.fortran: New directory.
2780 * gdb.fortran/exprs.exp, gdb.fortran/types.exp: New files.
2784 * gdb.base/default.exp: Update expect pattern for load command
2789 * configure.in: Change i386 to i[345]86.
2790 * gdb.base/configure.in: Likewise.
2791 * gdb.c++/configure.in: Likewise.
2792 * gdb.chill/configure.in: Likewise.
2796 * lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
2797 patterns, since that is not a valid context for comments.
2801 * gdb.c++/demangle.exp (test_arm_style_demangling): Add tests for
2802 repeated types and repeated types with indices > 9.
2806 * gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
2807 2417; old bug has been fixed.
2811 * gdb.base/interrupt.exp: When trying to wake up the inferior,
2812 send the newline ourselves instead of assuming gdb_test will do
2813 so when passed an empty input string.
2815 * gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
2820 * lib/gdb.exp (gdb_test): Don't send anything if the first
2821 argument is an empty string. This makes cases where we want to
2822 match output that is already in expect's buffers (for example,
2823 matching a breakpoint after gdb_run_cmd has been called) work
2828 * config/netware.exp: New file.
2832 * config/mt-slite (LDFLAGS): If using the newlib in the tree, set
2833 the -B and -L prefixes so we can find the debugging stub.
2835 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
2836 there and we are using the gcc from the tree.
2838 * gdb.base/types.c: Removed.
2840 * gdb.base/configure.in: Look for makefile fragments in ../config.
2841 Recognize i386-*-netware.
2842 * gdb.c++/configure.in: Likewise.
2846 * gdb.base/corefile.exp: Change `else if' to `elseif', which is
2847 the correct TCL syntax.
2851 * gdb.base/opaque.exp: use runto instead of messing around with
2852 breakpoints. Simplify by using gdb_test.
2854 * gdb.base/bitfields.exp: restart between tests on netware targets
2855 because breakpoints aren't relocated after target death. Run
2856 processes to completion.
2858 * gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.
2862 * Makefile.in: Remove extra tabs that confuse some versions
2863 of "make". Use the newly built gdb to test with by default,
2864 rather than the first one in the tester's search path.
2868 * gdb.base/whatis.exp (v_signed_short_array): Fix a typo.
2870 * gdb.base/help.exp: Update expected add-symbol-file, ignore, and
2875 * lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
2877 * lib/gdb.exp (gdb_run_cmd): New function, used to start program
2879 * gdb.base/bitfields.exp: Use gdb_run_cmd to start program.
2880 * gdb.base/funcargs.exp: Likewise.
2882 * gdb.base/bitfields.exp: Simplify by using gdb_test.
2883 * gdb.base/funcargs.exp: Likewise.
2885 * lib/gdb.exp (gdb_test): if match times out, don't call fail if
2890 * gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
2891 return,signals,twice}.exp: Handle non-existant binaries
2894 * gdb.base/corefile.exp: Execute coremaker to generate core dump.
2895 * gdb.base/Makefile.in: Don't try to generate a core dump, we
2896 might testing a cross development system.
2900 * Makefile.in (RUNTEST_FOR_TARGET): Fix relative pathname, the
2901 runtest script is relative to ${srcdir}, not ${rootdir}.
2905 * gdb.base/signals.exp: Allow for optionality of breakpoint
2910 * gdb.base/{ptype.exp,ptype.c}: Add t_char_array test.
2914 * gdb.c++/cplusfuncs.cc: Include <stddef.h>, not <sys/types.h>,
2915 for size_t definition.
2916 * gdb.c++/templates.cc: Likewise
2918 * config/mt-i386-netware: New file.
2920 * gdb.base/interrupt.c: Do not test if errno == EINTR if it's not
2923 * gdb.base/Makefile.in: Added support for systems that name core
2924 files by appending "core" to the program name.
2925 * gdb.base/a1-selftest.exp: Likewise.
2929 * gdb.base/return.exp: Add comment and message for `return double'
2930 test failure on Sparc Solaris.
2934 * lib/gdb.exp (runto): Allow for optionality of breakpoint address.
2938 * gdb.c++/misc.cc: Instantiate classes to inhibit the compiler
2939 from optimizing them away.
2940 * gdb.c++/classes.exp, gdb.c++/inherit.exp: Update ptype expect
2941 patterns to include default constructors and assignment operators,
2942 to match gcc versions beyond 2.5.8. Accept any cplus demangling
2943 character in the output of the virtual base pointer.
2947 * gdb.c++/cplusfuncs.exp: Use string_to_regexp and a regular
2948 expression match in print_addr_of to avoid unintented matches.
2949 * gdb.c++/virtfunc.exp: Accept alternate ptype output of g++
2950 versions up to 2.5.8.
2954 * gdb.base/list.exp: Tweak alternate pattern for listing of an
2955 included file to run under newer versions of expect.
2956 * gdb.c++/demangle.exp: Add spaces to the expect patterns between
2957 consecutive >'s in templates to accomodate recent cplus-dem.c change.
2958 Remove xfail for the virtual table of BDDHookV.
2962 * lib/gdb.exp (string_to_regexp): Set a default result.
2963 (default_gdb_start): Fix misleading message.
2967 * config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
2968 Remove all CC, etc definitions.
2969 * config/mt-hpux: New file.
2970 * config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
2971 (CFLAGS, LDFLAGS): Define.
2972 * config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.
2974 * Makefile.in (site.exp): Don't insert host_os, etc.
2975 (just-check): Just use RUNTEST with RUNTESTFLAGS only.
2976 (distclean): Check existence of subdir.
2977 * gdb.base/configure.in (hppa*-*-hpux*): Recognize.
2978 * gdb.base/Makefile.in: General cleanup and simplification.
2979 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
2980 to build executables. Use default rule to build .o files.
2981 (EXPECT, RUNTEST, CC): Fix relative pathname.
2982 (site.exp): Don't insert host_os, etc.
2983 * gdb.base/signals.c (main): Don't call signal unless SIGALRM
2984 and/or SIGUSR1 defined.
2985 * gdb.base/watchpoint.c: Don't include stdio.h a second time.
2986 * gdb.c++/Makefile.in: General cleanup and simplification.
2987 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
2989 (EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
2993 * gdb.base/recurse.exp: Misc changes to get tests running again
2994 after Kung's changes to the watchpoint code.
2995 * gdb.base/watchpoint.exp: Likewise.
2999 * lib/gdb.exp (string_to_regexp): Convert {\} also.
3003 * config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
3004 * lib/gdb.exp (default_gdb_start): Define.
3005 * gdb.base/bitfields.exp, gdb.base/break.exp, gdb.base/exprs.exp,
3006 gdb.base/funcargs.exp, gdb.base/opaque.exp,
3007 gdb.base/printcmds.exp, gdb.base/ptype.exp, gdb.base/recurse.exp,
3008 gdb.base/scope.exp, gdb.base/setvar.exp, gdb.base/watchpoint.exp,
3009 gdb.c++/classes.exp, gdb.c++/misc.exp, gdb.c++/virtfunc.exp:
3010 Don't call gdb_target_udi in between tests.
3014 * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
3015 (which was basically just a local version of the same thing). In
3016 addition to avoiding duplication, gdb_test_exact is faster.
3017 * lib/gdb.exp (gdb_test_exact): Fix typo.
3019 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
3020 don't give an error.
3022 * gdb.base/term.exp: Call delete_breakpoints before starting.
3024 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
3029 Reorganization of the GDB Test Suite.
3031 * gdb.base: New directory, contains all the basic tests.
3032 * gdb.c++: New directory, tests specific to C++.
3033 * gdb.chill: New directory, tests specific to Chill.
3034 * gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
3035 gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
3036 gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
3037 gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
3038 into appropriate new directories (t00-t17 to base, t20-t23 to c++,
3040 * */gdbme.*: Rename to match appropriate expect scripts.
3041 * gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
3042 gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
3043 gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
3044 gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
3045 gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
3046 gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
3047 gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
3048 gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
3049 gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
3050 gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
3051 * gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
3052 gdb.c++/virtfunc.cc: New names of C++ files.
3053 * gdb.chill/chillvars.ch: New name of Chill file.
3054 * gdb.base/configure.in, gdb.c++/configure.in,
3055 gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
3056 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
3057 gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
3058 * configure.in (configdirs): Update to reflect directory changes.
3059 (target_abbrev): No longer define for any configuration.
3060 * Makefile.in: Cosmetic improvements to header comments.
3064 Various changes to gdb.t31:
3066 * Makefile.in (gdbme.o): Compile with -fspecial_UC.
3067 * gdbme.ch: Make all key-words and predefineds be upper-case.
3068 * chillvars.exp: Expect key-words and predefinds in upper-case.
3070 * chillvars.exp: Use gdb_test_exact many places.
3071 Change expected output for arrays (which now includes index labels).
3073 * pr-5020.exp, gdme.ch (module PR_5020):
3074 New test, for PR-5020.
3078 * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.
3079 * Makefile.in (CHILL_LIB): Remove bogus redundant definitions.
3083 * Makefile.in: Fix bit-rot in definitions of CHILL,
3084 CHILL_FOR_TARGET and Chill_LIB.
3085 * gdb.t31/gdbme.ch: Fix syntax of nested array tuples.
3086 * gdb.t31/Makefile.in: Add definitions for CHILLFLAGS,
3087 CHILL, and CHILL_LIB.
3091 * Revert the previous changes. Please see Rob's directory
3092 /lisa/test/rob/progressive/gdb/testsuite for these fixes.
3096 * Makefile.in, configure.in, config/mips-gdb.exp,
3097 config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
3098 config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
3099 config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
3100 gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
3101 gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
3102 gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
3103 gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
3104 gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
3105 gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
3106 gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
3107 gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
3108 gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
3109 gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
3110 gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
3111 gdb.t24/demangle.exp, lib/gdb.exp: Check in Rob's testing
3116 * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
3117 config/mt-slite, config/mt-unix, config/mt-vxworks: Add
3118 Rob's new testing fragments.
3122 * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
3123 lib/gdb.exp: Replace error proc calls with perror.
3127 * gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the
3128 version also, match on casted version strings, and match on
3129 gdb startup case where the line numbers might be messed up.
3133 * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
3134 (CFLAGS): Delete it from here.
3138 * gdb.t22/virtfunc.exp: Fix g++ ptype expected outputs.
3142 * Makefile.in (RUNTEST): Default to just "runtest".
3146 * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
3147 * gdb.t17/gdbme.c (t_func_values): Add comments about how and why
3148 the code has been restructured.
3152 * gdb.t00/default.exp (set write): Allow any number of \r and/or
3153 \n, not just one of each.
3155 * gdb.t07/gdbme.c (main): Don't take address of an array; SunOS4
3156 /bin/cc gives a warning if you do.
3160 * gdb.t24/demangle.exp: change expect pattern of
3161 __t10ListS_link1ZUiRCUiPT0
3165 * gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
3166 on local variables in recursive functions.
3168 * gdb.t07/Makefile.in: Build the new test.
3172 * gdb.t17/gdbme.c (t_func_values): Do not compare function pointers
3173 directly. Instead compare the return values from actual calls.
3177 * Makefile.in (check): Set TCL_LIBRARY for runtest.
3181 * From Peter Schauer with minor modifications.
3182 * gdb.t15/return.exp (return_tests): Handle targets where "return"
3183 stops in mid-line in the caller. Add xfail for returning a float
3184 value on X86 targets.
3188 * gdb.disasm/hppa.exp (fcmp_tests): Break up into two halves
3189 to avoid expect lossage.
3190 (fmem_LRbug_tests): Likewise.
3191 * gdb.disasm/hppa.s: Corresponding changes.
3193 * gdb.disasm/hppa.exp: Rework escape sequences and end-of-line
3194 conditions to work with latest dejagnu/expect.
3196 * gdb.t15/funcargs.exp (finish from indirect call): No longer
3197 expected to fail on the PA.
3198 (backtrace in call with trampolines): Explicitly require main
3199 to be frame #1 (no trampolines should show up in backtrace).
3201 * gdb.t00/default.exp: Use "exp_continue" rather than obsolete
3203 * gdb.t06/break.exp: Likewise.
3204 * gdb.t07/watchpoint.exp: Likewise.
3205 * gdb.t13/bitfields.exp: Likewise.
3206 * gdb.t15/{funcargs,return}.exp: Likewise.
3207 * gdb.stabs/weird.exp: Likewise.
3208 * config/{mips,udi}-gdb.exp: Likewise.
3210 * hppa.sed: Enclose comments within a sed command to avoid
3211 losing with the old OSF1 sed.
3215 * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs for
3217 * gdb.t06/signals.exp: Add clear_xfail for sequent dynix.
3218 * gdb.t15/funcargs.exp: Conditionally step again to really
3219 finish from marker_call_with_trampolines. Handle the case where
3220 the first step from within call_with_trampolines already steps
3222 * gdb.t15/gdbme.c: Add comment to closing brace of
3223 call_with_trampolines for funcargs.exp.
3227 * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
3232 * gdb.t07/gdbme.c: More code for watchpoint testing.
3234 * gdb.t07/watchpoint.exp: Accept both "Watchpoint" and
3235 "Hardware watchpoint" throughout file.
3236 (test_watchpoint_triggered_in_syscall): New test.
3237 (test_complex_watchpoint): New test.
3241 * gdbme.c (call_with_trampolines): New function to try and step
3242 into. Tests trampoline problems on the PA.
3244 * funcargs.exp (localvars_in_indirect_call): No longer expect
3245 stepping into indirect call to fail on PAs.
3246 (test_stepping_over_trampolines): New test.
3250 * TODO: Add suggestions for static member function tests, and
3255 * TODO: Add suggestions for "p/a" tests.
3257 * lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
3258 (default_gdb_exit): Replace all the hair with sending "quit" to
3259 the process with a simple close.
3263 * TODO: Add suggestions for shared library tests.
3267 * TODO: Add suggestions for x/s tests.
3271 * gdb.t00/help.exp: Replace most of docstrings for "tbreak",
3272 "enable once", and "enable breakpoints once" with ".*".
3276 * TODO: Add suggestions about structure passing tests.
3280 * gdb.t03/gdbme.c: gcc version 1 puts out the wrong stabs for
3281 the primary1 test, use work around if __GNUC__ < 2.
3282 * gdb.t06/signals.c: Add comments for signals.exp pattern matching.
3283 * gdb.t06/signals.exp: Add XFAILs for i386 bsd and vax ultrix.
3284 Test for bad output rather than waiting for timeout. Issue
3285 second continue only if first continue failed.
3289 * gdb.t21/cplusfuncs.exp (test_paddr_operator_functions): Do
3290 operator[] test with gdb_test because the old code didn't seem to
3291 be getting the quoting right with the new dejagnu.
3295 * lib/gdb.exp: Set GDB to a fresh gdb if there is one, else use
3297 * Makefile.in: Use a fresh expect if there is one, use runtest
3298 from the src tree if there is one.
3302 * gdb.t06/break.exp (test_next_with_recursion): Remove xfail for
3303 next over recursive call. Revise the tests from that point on
3304 (which had been skipped) to match GDB's actual (correct) output.
3306 * gdb.t07/watchpoint.exp (test_stepping): Remove xfail for bug
3307 with next over a breakpoint whose condition is false.
3309 * gdb.t00/help.exp: Comment out "help set print" tests just like
3310 (and for same reason as) "help set" test.
3314 * gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
3315 * gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
3319 * gdb.t06/break.exp (test_next_with_recursion): Remove no longer
3320 necessary gdb_target_udi.
3322 * gdb.t03/ptype.exp: For UDI, skip tests which call malloc.
3324 * gdb.t02/whatis.exp, gdb.t03/ptype.exp: Remove xfails for PRs
3325 1838 and 2417; they are fixed.
3327 * gdb.t02/whatis.exp (v_char_array, v_signed_char_array),
3328 gdb.t03/ptype.exp (ptype structure, ptype union):
3329 Remove xfails; the test is looser than when the xfails were added.
3331 * gdb.t00/{help.exp,default.exp}: Don't test "target remote" on UDI.
3332 * gdb.t00/help.exp: Don't expect remote to be in "help target" output.
3334 * gdb.t01/run.exp: Only run shell test if isnative.
3336 * config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
3337 since "run" automatically loads if necessary. Call gdb_target_udi
3338 after the "file" since "file" kills any execution target.
3340 * config/udi-gdb.exp (gdb_start): Don't send "set args main" to
3341 GDB. GDB doesn't work that way (not anymore at least) on UDI.
3342 * gdb.t01/run.exp, gdb.t06/break.exp: Don't pass extra first
3347 * gdb.t17/interrupt.c: If we get EINTR, don't print an error message.
3349 * gdb.t17/callfuncs.exp: Add xfails for rs6000.
3353 * gdb.t24/demangle.exp: Re-write demangle to just call gdb_test,
3354 properly quoting regexps. This makes the second argument to
3355 demangle a fixed string, which matches the callers, instead of a
3356 shell-style pattern which is what the previous implementation
3357 used. Update some of the callers.
3361 * gdb.disasm/hppa.s (comib_tests): Add missing instruction.
3362 (comib_nullified_tests): Fix typo.
3363 * gdb.disasm/hppa.exp (all comb tests): Fix thinkos in expect
3364 strings. No longer expected to fail.
3366 * gdb.disasm/hppa.s (addib_tests): Fix typo.
3367 * gdb.disasm/hppa.exp (all addb tests): Fix thinkos in expect
3368 strings. No longer expected to fail.
3370 * gdb.disasm/hppa.exp (fmpy_addsub_tests): Fix typo in expect
3371 string. No longer expected to fail.
3375 * gdb.disasm/hppa.exp (fcmp_tests): Fix thinko in expect string.
3376 No longer expected to fail.
3378 * gdb.disasm/hppa.exp (xmpyu_tests): Fix buglet in expect
3379 string. No longer expected to fail.
3383 * gdb.t24/demangle.exp: Remove a bunch more tests which differ
3384 only in the names (I probably got most of them). I was even
3385 generous with some which differed in underscores in names, and
3386 probably missed a few, and I *still* was able to remove almost a
3387 third of the file with almost no impact on testsuite coverage.
3391 * gdb.t00/default.exp: Match udi_attach error message as well as
3392 the one from child_attach.
3394 * gdb.t00/default.exp: Use "." instead of "?" to match a question mark.
3396 * gdb.stabs/weird.exp: Remove xfail for const70; just fixed in GDB.
3398 * gdb.stabs/weird.def (bad_neg0type): Size of this type is 16, not 8.
3399 * gdb.stabs/weird.exp: Remove xfail for "p bad_neg0"; this fixes it.
3401 * Move test with enums and partial symbols back to
3402 gdb.t03/{ptype.exp,gdbme.c} from gdb.stabs/{weird.def,weird.exp}.
3403 Reverts the change of 26 May 93. Per today's change to
3404 stabs.texinfo, the behavior that weird.exp was expecting was
3405 unreasonable; what is important is that the compiler+gdb get
3406 things right, which happens with a recent gcc. Also fix the test
3407 to deal with native compilers which put out the stab gdb can't
3412 * gdb.t24/demangle.exp: Remove a bunch of tests which differ only
3413 in the names. The main thing these accomplish is to slow things down.
3414 Many more such duplicates surely remain.
3416 * gdb.t00/help.exp: Comment out "help support" test just like
3417 (and for same reason as) "help set" test.
3421 * gdb.t06/break.exp: Remove setup_xfails for
3422 sparc-sun-solaris2.*, these tests now pass with latest gcc and gdb.
3423 * gdb.t20/inherit.exp (test_ptype_si): Update warning message
3424 about known bug in gcc to include up through 2.5.8.
3425 * gdb.t20/inherit.exp (test_ptype_vi): Accept "_vb." as well as
3427 * gdb.t21/cplusfuncs.exp (test_lookup_operator_functions):
3428 Remove setup_xfails for sparc-sun-solaris2.*, these tests now pass
3429 with latest gcc and gdb.
3430 * gdb.t22/virtfunc.exp (test_ptype_of_classes): Accept "_vb." as
3435 * configure.in (hppa*-*-*): Also configure and build stabs-only
3440 * gdb.t10/hppa.mt: A makefile fragment for the PA.
3441 * gdb.t10/configure.in (hppa*-*-*): Use it.
3445 * gdb.t09/corefile: Increase timeout when spawning gdb explicitly.
3449 * gdb.t06/signals.exp: Handle blocked SIGTRAP on sun3 for bash
3450 versions prior to 1.13.5.
3454 * gdb.t00/default.exp (show prompt): In FAIL case, only match if
3455 the prompt is at the start of a line.
3459 * gdb.disasm/hppa.s: Add new tests for sfu and copr instructions.
3460 Enable "diag" instruction. Delete copr from fpu_misc_tests, it's
3461 in the copr tests now.
3462 * gdb.disasm/hppa.exp: Run new sfu and copr tests. Do not expect
3463 copr in the fpu_misc tests anymore. fpu_misc tests are no longer
3468 * gdb.t00/teststrategy.exp, gdb.t07/watchpoint.exp,
3469 gdb.t31/chillvars.exp, lib/gdb.exp:
3470 Tweak to run under either version of expect.
3471 * lib/gdb.exp (default_gdb_exit): Remove "catch" statement.
3472 * gdb.t00/teststrategy.exp: Use isnative and verbose procedures.
3473 * gdb.t11/list.exp: Remove extraneous whitespace.
3477 * gdb.t16/printcmds.exp (test_print_strings): Accept
3478 "(unsigned char *) " before the string.
3480 * TODO: Add notes about printing of fancy types and GDB expressions.
3484 * Makefile.in: Pass LDFLAGS and LIBS to sub-makes.
3485 * gdb.t06/configure.in: Don't try to compile signals test program
3486 if doing mips-idt-ecoff.
3490 * Most .exp files: Tweak to run under either version of expect.
3494 * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
3495 xfails; I'm not sure why they are failing, but not because of PR 1806.
3499 * config/unix-gdb.exp: Remove gdb_unload cause it's already
3500 defined in lib/gdb.exp.
3504 * gdb.t07/watchpoint.exp: Clear xfail for calling function with
3505 watchpoint enabled on mips, CALL_DUMMY_BREAKPOINT_OFFSET got defined.
3506 * gdb.t20/gdbme.cc, gdb.t21/gdbme.cc: Conversion operator functions
3507 have to be typeless.
3511 * TODO: Add suggestion for copyright year test.
3515 * configure.in (*-*-lynxos*): Add stabs tests.
3519 * gdb.stabs/hppa.sed: Only lables should ever start in column zero,
3520 so insert a tab before any assembler directive in column zero.
3522 * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
3524 * gdb.disasm/hppa.s (fpu_memory_indexing_tests): Add FP quadword
3526 (fpu_short_memory_tests): Likewise.
3530 * gdb.stabs/ecoff.mt: Delete alpha specific if block, fix typo.
3531 * gdb.stabs/ecoff.sed: Escape inserted blanks with backslashes, embed
3532 .stabs directives in comments.
3536 * TODO: New file, describing tests we could write.
3537 * gdb.t09/corefile.exp: Move description of tests to write to TODO.
3541 * gdb.t06/signals.exp: Add kludge to force re-sync.
3543 * gdb.t00/teststrategy.exp: If we accidently send the "maint dump-me"
3544 to xgdb instead of gdb, get out of gdb.
3548 * lib/gdb.exp: Make GDB and GDBFLAGS global so the scoping work
3553 * gdb.stabs/hppa.mt: A makefile fragment for the PA.
3554 * gdb.stabs/configure.in (hppa*-*-*): Use it.
3555 * gdb.stabs/hppa.sed: New sed script for the PA.
3559 * gdb.stabs: Re-write weird.def and configuration to use sed
3560 instead of cpp. sed is portable and POSIX; cpp is neither.
3564 * gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed.
3568 * gdb.t20/gdbme.cc: Add comment about pmi being optimized out.
3572 * gdb.stabs/weird.exp, gdb.t22/virtfunc.exp: Accept "_vb." as well as
3574 * gdb.t00/teststrategy.exp: Add xfail for RS/6000.
3575 * gdb.t03/ptype.exp: Add comments and messages about FAILs with xlc.
3579 * lib/gdb.exp: Comment out code which depends on non-existent
3580 `transform' procedure.
3584 * lib/gdb.exp (default_gdb_exit): Remove `catch "close"'.
3585 * lib/gdb.exp: Transform tool name.
3586 * gdb.t*/*.exp: Change error to perror so it works with DejaGnu
3587 1.1's new error handling system.
3591 * Makefile.in, gdb.t2*/Makefile.in: Add -O to CXXFLAGS.
3595 * gdb.t00/default.exp: Avoid tests with a lot of .* in them.
3596 They made pattern matching so slow that timeouts happened on
3597 heavily loaded systems. Now any output from "show print" which
3598 gets us back to the GDB prompt is a PASS.
3600 Mon Oct 25 14:36:50 1993 Stu Grossman (grossman at cygnus.com)
3602 * gdb.disasm/hppa.mt: Use $(srcdir) in hppa.o make rule.
3606 * gdb.t06/signals.exp: Skip whole file with xfail for HPPA.
3608 * gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
3609 It is not from PR 3220.
3613 * gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
3614 just started failing because they depended on the order the
3615 subcommands are presented, or exact docstring text. This kind of
3616 test is a pain and has minimal benefit.
3620 * gdb.t09/corefile.exp: At end of test, use "core" command with
3623 Wed Oct 20 08:56:02 1993 Stu Grossman (grossman at cygnus.com)
3625 * gdb.t{01 02 03 04 05 06 07 08 09 10 11 12 13 15 16
3626 17}/Makefile.in: Make it possible to run the testsuite with Sun
3627 make and CC = cross gcc by adding explicit build rules for .o
3632 * gdb.t15/funcargs.exp: Don't put comments on same line as
3633 setup_xfail (@#$*%& tcl braindamage!).
3637 * gdb.disasm/hppa.exp: Use $objdir/$subdir/$binfile not just $binfile.
3641 * gdb.t20/classes.exp: 'const xxx &' becomes 'xxx const &'.
3642 * gdb.t20/inherit.exp: remove three dumplicate entries.
3646 * gdb.t06/break.exp: For "next over recursive call", fail on any
3647 incorrect output, not just on "factorial (value=2)".
3651 * gdb.t12/scope.exp: Remove xfails, filename::var syntax should be
3652 working now. Add an xfail if accesing a bss variable causes
3653 a memory error if the target is not yet run.
3657 * gdb.t24/demangle.exp: Clean up spacing (2 strings), inclusion of
3658 constructor name (2 string), name of _GLOBAL_ demangling (2 strings),
3659 name of __st* demangling (2 strings). Did Kung really get the
3660 more than 95 others right without testing them?
3664 * gdb.t24/demangle.exp: clean up XFAILS, more than 100
3668 * configure.in (configdirs): Add gdb.disasm
3669 * gdb.disasm: New directory for GDB disassembler tests.
3670 * gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.
3674 * gdb.t00/help.exp: Don't test "help set".
3676 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Remove all xfails
3677 from within expect statements. None of these happen anymore and
3678 they cause regressions to be silently unnoticed.
3680 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Add notes (in failure
3681 messages) about known failures with gcc cygnus-2.4.5-930417.
3683 * gdb.t02/Makefile.in, gdb.t08/Makefile.in: Make all depend on
3684 comp-info.exp so it gets built if it doesn't exist.
3686 * gdb.t13/{Makefile.in,bitfields.exp}: Remove comp-info.exp stuff;
3687 it is no longer used.
3688 * gdb.t13/comp-info.c: Removed.
3692 * gdb.t06/signals.exp: Add xfail for sun3.
3696 * gdb.t17/interrupt.exp: Add xfail for Irix (currently not really
3697 relevant because ^C doesn't get sent but failure can be reproduced
3702 * gdb.stabs/alpha.mt: New configuration file for alpha.
3703 * gdb.stabs/configure.in: Use it.
3704 * gdb.stabs/ecoff.mt, weird-ecoff.sed: Change sed script to enable
3705 sharing with alpha.mt, redefine long to word via preprocessor.
3706 * gdb.stabs/weird.def: Conditionally adapt storage layout of v_comb
3708 * gdb.stabs/weird.exp: Handle compilation of weird.s by alpha
3710 * gdb.t00/teststrategy.exp: Change expect string so that we
3711 consume the `(xgdb)' from the command echo and from the gdb prompt.
3712 * gdb.t05/expr.exp: xfail "print unsigned int == (~0)" on the alpha.
3713 gdb currently compares all values as long, so this failure probably
3714 applies to any configuration where LONGEST is bigger than a target int.
3715 * gdb.t08/comp-info.c: New file to determine if gdbme is compiled
3717 * gdb.t08/Makefile.in, opaque.exp: Use it. Alpha native cc is unable
3718 to handle opaque pointers, gcc is.
3719 * gdb.t21/gdbme.cc, gdb.t23/gdbme.cc: operator new takes a size_t
3720 as first argument. Include <sys/types.h> and change all operator
3721 new definitions to use size_t.
3722 * gdb.t21/cplusfuncs.exp: Handle changes in output for operator new
3723 now that we use size_t.
3727 * gdb.t03/ptype.exp, gdb.t15/printcmds.exp: When constructing
3728 a long or float array cast all array members to the same type.
3729 * gdb.t04/setvar.exp: Handle the decimal output of an unsigned long
3731 * gdb.t07/watchpoint.exp: Add finish and until variations encountered
3733 * gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Add xfails for alpha.
3737 * gdb.t24 (demangle.exp): Constructors of templates have names like
3738 vector<int>::vector(int) not vector<int>::vector<int>(int). See
3739 section 14.6 of the ARM.
3741 * gdb.t24 (demangle.exp): Remove a whole bunch of tests of the form
3742 "_vt$MoveCmd"; these differ only in name from "_vt$foo", so they
3743 accomplish little and slow down the testsuite.
3745 * gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
3746 Accept spaces various places.
3750 * gdb.t07/watchpoint.exp: On sparc, clear xfail for calling function
3751 with watchpoint enabled.
3753 * Makefile.in: Remove definition of CC and remove the second
3754 definition of CXX (the "CXX = gcc" one remains). These definitions
3755 were causing backquotes to be expanded within backquotes, which
3760 * gdb.t17/callfuncs.exp: Add "return 0" to end.
3764 * gdb.stabs/ecoff.mt: Remove STABSCC hack.
3765 * gdb.stabs/weird.exp: Handle the case where weird.o is compiled
3766 by mips cc and contains no stabs entries.
3770 * config/vx-gdb.exp: Use fake device to load files rather than
3772 * lib/gdb.exp: New proc to do "file" command.
3773 * config/unix-gdb.exp: Use new "file" proc.
3777 * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
3778 Rework board rebooting slightly.
3779 (gdb_exit): Don't exit from the remote shell; there isn't one.
3780 * gdb.stabs/weird.exp: If a program is being debugged already,
3782 * gdb.t04/setvar.exp: Stop and restart gdb.
3783 * gdb.t05/expr.exp: Likewise.
3784 * gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
3785 restart gdb and reload the program.
3786 * gdb.t08/opaque.exp: Likewise.
3787 * gdb.t12/scope.exp: Likewise.
3788 * gdb.t13/bitfields.exp: Likewise.
3789 * gdb.t15/funcargs.exp: Likewise.
3790 * gdb.t20/classes.exp: Likewise.
3791 * gdb.t03/ptype.exp: Increase timeout.
3792 * gdb.t16/printcmds.exp (test_print_string_constants,
3793 test_print_array_constants): Likewise.
3794 * gdb.t17/callfuncs.exp (do_function_calls): Likewise.
3795 * gdb.t20/classes.exp (do_tests): Likewise.
3796 * gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.
3800 * gdb.stabs: Renamed *wierd* to *weird*.
3804 * gdb.t13/bitfields.exp: Test for bad output rather than waiting
3805 for timeout. Add "known gcc 2.4.5 bug" to failure message.
3809 * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
3810 (do_tests): Remove xfail for whatis on one_var and two_var.
3814 * Makefile.in: Made cross building work better by adding
3815 {RUNTEST,CC}_FOR_TARGET and using TARGET_FLAGS_TO_PASS.
3819 * gdb.t15/{return.c,return.exp,Makefile.in}:
3820 New test, currently commented out.
3824 * config/udi-gdb.exp: gdb_exit now kills any isstip processes
3825 still running and removes the leftover named socket so GDb can do
3830 * gdb.t01/run.exp: Add match for VxWorks, cause I/O comes out the
3832 * config/mt-*: Added default values for RUNTEST and RUNTESTFLAGS so
3833 cross testing works better with "make check"
3834 * config/unix-gdb: Use default procedures for exit and version.
3835 * config/vx-gdb.exp: Cleaned up and massaged back to working order
3836 with the newest VxWorks.
3840 * gdb.t20/classes.exp: For "ptype class Base1", continue to accept
3843 * gdb.t22/virtfunc.exp: If it prints `struct' (not `class') with a
3844 name (e.g. devo gdb with gcc 2.4.5), it is still a pass.
3846 * gdb.t10/crossload.exp: Skip whole file (for now, until we fix it).
3848 * config/unix-gdb.exp: Remove this version of gdb_exit
3849 * lib/gdb.exp: Merge in all the crap from config/unix-gdb.exp.
3850 Rob says he'll look at it when he gets back to testing boards.
3854 * gdb.t22/virtfunc.exp: Accept missing struct/class names as
3855 an expected fail for certain ptype commands.
3857 * gdb.t20/classes.exp: Update expected results of "ptype class
3858 Base1" to account for the constructor that now appears in the type.
3862 * configure.in (configdirs): Restore gdb.t04, which mysteriously
3863 disappeared from list.
3864 * config/{udi-gdb.exp, gdb-unix.exp}: Replace calls to obsolete
3865 "alldone" proc with call to cleanup and exit.
3866 * {gdb.t01/run.exp, gdb.t01/term.exp, gdb.t02/whatis.exp,
3867 gdb.t03/ptype.exp, gdb.t04/setvar.exp, gdb.t05/expr.exp,
3868 gdb.t06/break.exp, gdb.t07/watchpoint.exp, gdb.t08/opaque.exp,
3869 gdb.t09/corefile.exp, gdb.t10/crossload.exp, gdb.t11/list.exp,
3870 gdb.t12/scope.exp, gdb.t13/bitfields.exp}: Replace calls to
3871 "alldone" proc with simple returns that suppress remaining
3872 tests. The alldone proc went away many months ago.
3876 * gdb.t10/nodebug.exp: Comment out "maint print msymbols" tests.
3878 * gdb.t12/gdbme0.c (localscopes, autovars): Modify to foil gcc -O.
3882 * gdb.t15/funcargs.exp: Allow arguments for main in backtraces
3883 as vax gdb will display them.
3887 * gdb.t20/gdbme.cc: Do some calculation with v.x, to confound
3890 * scope.exp: Change "bad value for localval" messages so each one
3893 * config/unix-gdb.exp (gdb_exit): Move info on this vs.
3894 lib/gdb.exp (gdb_exit) from ChangeLog to comments.
3896 * gdb.t06/signals.exp: Skip the whole file with xfail for delta68.
3900 * gdb.t00/teststrategy.exp: Deal with it if cmdsize = 1 line
3901 doesn't exist (due to optimization).
3905 * gdb.stabs/wierd.exp: Deal with it if echo of "file" command
3906 contains \r because the filename is long.
3908 * gdb.t06/signals.exp: Revise comments regarding "'next' behaved as
3909 'continue'" bug, and change xfail back to i*86-univel-sysv4*.
3913 * gdb.t00/help.exp, gdb.t02/whatis.exp, gdb.t07/watchpoint.exp,
3914 gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Update for vax running
3916 * gdb.t02/whatis.exp: Use procedure to setup xfails on long versus
3918 * gdb.t08/opaque.exp: Use procedure to setup xfails for opaque tests.
3922 * Makefile.in (distclean): Remove *.log *.plog *.sum *.psum site.*.
3924 * gdb.t17/interrupt.exp: Fix 'missing Continuing' case so pattern
3925 to match does not match the passing case but still matches the
3930 * Makefile.in (distclean): Remove *.plog *.sum *.psum site.*.
3934 * lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
3935 to here. Fix 'Quit anyway.*?' bug (? is a regexp metacharacter).
3936 * config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
3937 Remove various versions of gdb_exit.
3938 * config/vx-gdb.exp: Remove quit_vxgdb, change a caller to call
3940 * config/unix-gdb.exp: gdb_exit remains here, and should override
3941 the generic version, since it's doing a lot of wierd stuff that
3942 the other versions aren't. FIXME, fold it in, or abandon this
3947 * gdb.t24/demangle.exp: Add tests for PR 3220.
3951 * gdb.t24/demangle.exp: Add lucid test for __vtbl__3foo__vt_cc_main_.
3955 * gdb.t07/watchpoint.exp: Clear xfail with "i*86-*-*", not just
3956 "i386-*-*". Works for i486 as well.
3958 * gdb.t06/signals.exp: Rework code that recognizes known SVR4
3959 bug, and expand domain of xfail to all SVR4 systems, since the
3960 actual problem is likely to be in generic SVR4 /proc support.
3964 * config/unix-gdb.exp (gdb_load): Add eof to expect statement.
3968 * gdb.t17/interrupt.exp: Set up xfail for *-*-sysv4*, in chain of
3969 xfails for other systems. Match a missing 'Continuing.' as an
3970 explicit fail for i*86-*-sysv4*, so it doesn't hose other tests.
3972 * gdb.t20 {classes.exp, inherit.exp, misc.exp}, gdb.t21/cplusfuncs.exp,
3973 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t31/chillvars.exp:
3974 Only issue warning for missing executables if -all option is used.
3976 * gdb.stabs/wierd.exp: Only issue warning for missing wierd.o
3977 file if -all option is used. It's like an unpredictable XFAIL.
3981 * gdb.t15/funcargs.exp: Add comments that hppa xfails are only
3982 for dynamically linked binaries.
3984 * gdb.t10/crossload.exp: Add `set gnutarget auto' at end of tests.
3988 * gdb.t20/inherit.exp: Change message for "print tagless struct"
3989 to state that this is a known bug in old versions of g++.
3993 * gdb.t17/interrupt.exp: Add xfail for 386 bsd. Accept echoed newline
3994 while waiting for `Continuing'.
3998 * gdb.t10/nodebug.exp: Expect to find local/global minimal symbols
3999 in text, data, and bss.
4000 * gdb.t10/nodebug.c: Add local and global test variables for
4001 initialized and uninitialized data.
4005 * config/unix-gdb.exp (gdb_exit): Add "wait".
4009 * gdb.t06/signals.exp: xfail the continue from the handler for all
4012 * gdb.t07/watchpoint.exp: clear_xfail for i386 when calling a
4013 function with watchpoints enabled, the i386 call dummy starts with
4016 * gdb.t00/teststrategy.exp, gdb.t09/Makefile.in: Handle the way
4017 386 bsd names its corefiles.
4021 * gdb.t10/Makefile.in (nodebug.o): Don't use "-c -o", many
4022 compilers don't grok it.
4023 * gdb.t16/gdbme.c (ctable1): Initialize unsigned char array
4024 with small octal ints rather than character constants, which
4025 are signed and might not fit if first promoted to int.
4029 * gdb.t09/Makefile.in (clean): Remove corefile.
4033 * gdb.t07/watchpoint.exp: Add missing `$prompt $'.
4038 * gdb.t06/signals.exp: Change xfail from "*-*-*" to be only for
4039 NO_SINGLE_STEP machines. Fix comment about its cause. Uncomment
4040 the `continue' test right after it (also xfailed if NO_SINGLE_STEP).
4044 * gdb.t17/interrupt.exp: Add xfail for hppa.
4048 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t08/opaque.exp,
4049 gdb.t09/corefile.exp: Cleanup xfails for fixed mips bugs.
4050 * gdb.t13/bitfields.exp, gdbme.c: Examine a variable in the inferior
4051 to determine signed-ness of bitfields and use the result to setup
4053 * gdb.t15/gdbme.c: Add comments to the two indirect call0a lines.
4054 * gdb.t15/funcargs.exp: Use them to step until the second indirect
4055 call line is reached if necessary.
4059 * gdb.stabs/wierd.exp: New test, for nameless baseclasses.
4063 * gdb.t06/break.exp: Also test `clear' command.
4067 * gdb.t00/teststrategy.exp: Remove extra quote.
4069 * gdb.t07/watchpoint.exp: Change xfail for calling function with
4070 watchpoint enabled to be for all non-68k machines.
4072 * gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test.
4076 * gdb.stabs/configure.in: If configured -with-gnu-as for mips-*-*
4077 targets use aout.mt instead of ecoff.mt as gas understands
4078 standard aout format.
4082 * lib/gdb.exp (runto): Don't insist that function we are running to
4083 was compiled with -g.
4085 * gdb.t10/{nodebug.{c,exp},Makefile.in}: New test.
4087 * gdb.t17/interrupt.exp: Before sending ^C, give the inferior time
4088 to get back into the read system call.
4089 Accept leading newline in case where we woke it up.
4093 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
4094 to make the stabs test work on ecoff systems using gcc and -with-stabs.
4095 * gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}: Modify to
4096 enable ecoff configuration.
4100 * gdb.t15/funcargs.exp (localvars_in_indirect_call): New test.
4104 * gdb.t16/printcmds.exp: Add another printf test.
4108 * configure.in: If configured -with-stabs on any target, add
4109 stabsdirs to configdirs.
4113 * gdb.t16/printcmds.exp: Change printf "%f\n" to printf "%f is
4114 fun" so pattern does not match the command itself.
4118 * gdb.t15/{gdbme.c,funcargs.exp}: Test for alloca-influenced frames.
4122 * gdb.t17/interrupt.exp: Test for more things.
4126 * gdb.t07/watchpoint.exp: In until test, deal with the way the DEC
4127 compiler arranges the code and line numbers.
4129 * gdb.t17/interrupt.exp: Don't send \n after ^C.
4133 * gdb.t00/help.exp: Increase expect input buffer size.
4137 * gdb.t06/signals.exp: Remove sparc xfail; bug fixed.
4139 * gdb.t07/watchpoint.exp: Add xfail for hppa.
4141 * gdb.t17/{gdbme.c,callfuncs.exp}: Add sum10 function, to test pa bug.
4143 * gdb.t06/signals.exp: At "p func1 ()" test, check for breakpoint
4144 [0-9]*, not just [0-9].
4148 * gdb.t20/{gdbme.cc,classes.exp}: Add xfail for gdb/2972.
4150 * gdb.t2*: Set CXXFLAGS, not CFLAGS, since that's what we use.
4154 * gdb.t00/help.exp: Replace most of docstring for "continue" with .*.
4158 * gdb.t06/signals.c: Add xfails for sun3.
4160 * gdb.t07/watchpoint.exp: Comment out xfail for fixed bug 1836.
4162 * gdb.t07/{gdbme.c,watchpoint.exp}: Add test for 2597. Also add
4163 test_stepping tests.
4167 * gdb.t{06,17}/Makefile.in (clean): Remove all executables.
4169 * gdb.t17/{interrupt.{c,exp},Makefile.in}: New test for solaris bug.
4171 * gdb.t06/twice.exp, Makefile.in: Just use an include of twice.c
4172 rather than actually putting it through cpp twice.
4174 * gdb.t06/signals.exp: Add xfails for unixware and rs6000.
4178 * config/mips-gdb.exp (gdb_exit): Removed close statement which is
4183 * gdb.t06/signals.exp: Add test for sparc bug with do_save_insn.
4185 * gdb.t20/{classes,inherit}.exp: If a class which doesn't use any
4186 C++ features prints as "struct", make it a pass, not an xfail.
4190 * gdb.t22/virtfunc.exp: Remove a bunch of xfails.
4191 Don't require VA to print as "class" rather than "struct".
4195 * gdb.t06/twice.exp: Don't care about the file name GDB prints.
4199 * gdb.t{02,13}/comp-info.c, gdb.t06/twice.exp: Add "return 0" to end.
4203 * gdb.t12/scope.exp: Remove xfail for parameter printing in wrong
4208 * gdb.t16/printcmds.exp: Add printf tests.
4210 * gdb.t06/{twice.{c,exp},Makefile.in}: New test.
4212 * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too.
4216 * gdb.t20/classes.exp: Add clear_xfail's before printing summary
4217 pass counts, to counteract any existing or future setup_xfails.
4221 * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
4222 {BEGIN,END}_COMMON for common block instead of STAB.
4223 * gdb.stabs/wierd.exp: Add xfail for rs6000.
4225 * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
4226 intp_var should be N_GSYM not N_LSYM.
4227 wierd-aout.S: Use a label for the value of the N_SO.
4228 wierd.def: Remove all backslashes.
4229 wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
4233 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
4234 get the expected next to inheritance3.
4238 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
4239 now that gcc-2.4 gets it right.
4243 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test.
4245 * gdb.t{02,13}/{Makefile.in,gdbme.c,comp-info.c}: New way of
4246 generating comp-info.exp which works for cross-compilation.
4250 * gdb.t11/list.exp: For SVR4 xfails, match "*-*-sysv4*", not
4255 * gdb.t01/run.exp: Start with a fresh gdb.
4256 * gdb.t11/list.exp: For SVR4 xfails, match on all versions of
4261 * {gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07,
4262 gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15,
4263 gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t30}/
4264 Makefile.in (distclean, realclean): Remove gdbme.c from list of
4269 * gdb.t24/demangle.exp (test_gnu_style_demangling): Add some new
4270 test cases from bug reports.
4274 * gdb.t06/break.exp: Add xfails for sparc-sun-solaris2.*.
4275 * gdb.t12/scope.exp: Add clear_xfails at appropriate places to
4276 avoid spurious xfails.
4277 * gdb.t20/classes.exp: Add xfails for longstanding C++ problems.
4278 * gdb.t21/cplusfuncs.exp: Add xfails for sparc-sun-solaris2.*.
4279 * gdb.t22/virtfunc.exp: Add xfails for longstanding C++ problems.
4283 * gdb.t00/teststrategy.exp: Rework to provide more useful
4284 description of each test, fix problem with systems that define
4285 ALIGN_STACK_ON_STARTUP code, other misc cleanups.
4286 * gdb.t06/break.exp (test_next_with_recursion): Fix expected
4287 results for "next over recursive call" so timeouts aren't taken
4292 * gdb.t12/scope.exp: Test printing of variables before run.
4294 * gdb.t12/{gdbme0.c,scope.exp}: Test for bug where parameters are
4295 printed in wrong order due to sorting.
4299 * gdb.t00/teststrategy.exp: Fix expected results for printing
4300 user entered string constant. Is array of char, prints with no
4303 * gdb.t00/{default.exp, help.exp}: Account for changes to radix
4305 * gdb.t16/gdbme.c: Add and use struct containing arrays of char.
4306 * gdb.t16/printcmds.exp: Fix all lines that match "unsigned char *".
4307 * gdb.t16/printcmds.exp (test_print_char_arrays): Test printing
4308 of struct of char arrays.
4309 * gdb.t00/radix.exp: New tests for radix commands.
4313 * gdb.t16/printcmd.exp: Print a variable before running program
4314 (with xfail for AIX).
4318 * gdb.t06/{signals.exp,signals.c,Makefile.in}: New test.
4320 * gdb.t16/printcmd.exp: Don't print variables before running program.
4322 * gdb.t06/break.exp: Don't require envp argument to main.
4324 * gdb.t0{2,3,4,5}/gdbme.c [_AIX]: Use signed keyword.
4326 * gdb.t02/whatis.exp, gdb.t11/list.exp:
4327 Add xfails for rs6000.
4329 * gdb.t02/whatis.exp: Change other tests not to re-test something
4332 * gdb.t{03,15,16}/gdbme.c: Reference all variables and make sure
4333 each type used has a variable of that type.
4337 * gdb.t20/{inherit.exp,gdbme.cc}: Test tagless structure.
4339 Fri Jun 4 11:07:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4341 * configure.in: change srctrigger to be a file, not a directory
4345 * configure.in (mips-idt-ecoff*): Added trailing '*'.
4347 * gdb.t11/list.exp: Fixed a couple of typos.
4351 * gdb.t00 (teststrategy.exp): Remove notice about PR 1823. Bug
4352 is fixed and PR is closed.
4353 * gdb.t16 (gdbme.c): Add simple test string variable.
4354 * gdb.t16 (printcmds.exp): Add tests with simple test string
4355 variable, primarily for boundaries on "set print elements".
4359 * gdb.stabs/wierd.exp: Remove xfail for printing big integer.
4360 Make leading 0's optional and don't expect a tab in the middle
4363 * gdb.t00/teststrategy.exp: Remove xgdb before trying the copy.
4365 * gdb.stabs/wierd.def: Type attributes must be preceded by number=.
4366 * gdb.stabs/wierd.exp: Remove xfails for type attributes. Also
4367 don't end command passed to gdb_test with newline.
4369 * gdb.t13/{Makefile.in,gdbme.c,bitfields.exp}: If we #defined the
4370 signed keyword away, don't expect signed bitfields to be signed.
4372 * gdb.t13/bitfields.exp (bitfield containment): Accept the fields
4373 printing with only as many 1's as are in the field as well as printing
4374 with 32 1's (see comment).
4378 * gdb.t00/default.exp: Start with a fresh gdb.
4379 * configure.in (configdirs): Remove gdb.t31 until the chill
4380 compiler works again. It no longer is able to find chillrt0
4381 since it isn't in libchill.a anymore.
4382 * gdb.stabs/wierd.exp: Rewrite to properly handling a missing
4383 wierd.o, make more modular.
4384 * gdb.stabs/wierd.def (bad_neg0type, bad_neg0const): Remove
4385 spurious newlines that caused problems.
4389 * Move test with enums and partial symbols from gdb.t03/ptype.exp
4390 to gdb.stabs/wierd.exp since GCC has worked around the bug.
4391 gdb.stabs/wierd.{exp,def}: Many new tests.
4393 * gdb.t00/default.exp: update info line for new message.
4395 * gdb.t02/{whatis.exp,gdbme.c}:
4396 Test that "char *" doesn't print as "caddr_t".
4400 * gdb.t00/help.exp: Use .* in place of some help messages which
4402 gdb.t00/default.exp: Update "info frame" test for new message.
4403 * gdb.stabs/wierd.exp: Check for eof, directly or via gdb_test.
4408 * gdb.t03/{gdbme.c,ptype.exp}:
4409 Add tests for typedef'd struct and union without tags.
4410 Also check "whatis" on a variable of a typedef'd enum without a tag.
4412 * gdb.t00/teststrategy.exp: For p "foo", remove sun4 XFAIL (see
4413 PRMS 1823; the bug still exists but isn't reproduced by this test
4414 anymore), and remove rs6000 XFAIL (the bug is fixed).
4416 * gdb.t03/ptype.exp: Comment out a lot of tests which are basically
4417 duplicated from whatis.exp. For those that are left, accept
4418 "long", "long int", or "int" for long variables (whatis.exp already
4419 has an XFAIL for "int", so no need to fail it here).
4421 * gdb.t02/whatis.exp, gdb.t10/crossload.exp:
4422 Deal with GCC's names for types now that GDB uses the compiler's names.
4424 * gdb.t02/{Makefile.in,gdbme.c,whatis.exp}: If not GCC, do some
4425 setup_xfail's for sunos4. If we #defined the signed keyword away,
4426 don't expect GDB to know that char it is signed.
4428 * gdb.t00/teststrategy.exp: Update for symbolic signal names.
4432 * configure.in (configdirs): Add gdb.t24 for C++ tests that
4433 should work on any system, regardless of debugging format.
4434 * gdb.t21/demangle.exp: Move to gdb.t24.
4435 * gdb.t24/demangle.exp: Move from gdb.t21.
4436 * gdb.t24/{Makefile.in, configure.in}: New files.
4440 * configure.in: Do gdb.stabs and C++ tests only for stabs.
4441 * gdb.stabs: New directory.
4445 * config/{mips,nind,udi,unix,vx}-gdb.exp: Look for "Quit anyway.*?"
4446 not just "Quit anyway?".
4450 * gdb.t21/demangle.exp: Add a couple of new patterns. Ensure
4451 that all setup_xfails are immediately followed by clear_xfails.
4455 * config/unix-gdb.exp, gdb.t00/echo.exp, gdb.t00/help.exp,
4456 gdb.t00/teststrategy.exp, gdb.t00/gdbvars.exp, gdb.t01/run.exp,
4457 gdb.t01/term.exp, gdb.t02/whatis.exp, gdb.t03/ptype.exp,
4458 gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t06/break.exp,
4459 gdb.t07/watchpoint.exp, gdb.t08/opaque.exp, gdb.t09/corefile.exp,
4460 gdb.t10/crossload.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
4461 gdb.t13/bitfields.exp, gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
4462 gdb.t17/callfuncs.exp, gdb.t20/misc.exp, gdb.t20/inherit.exp,
4463 gdb.t20/classes.exp, gdb.t21/demangle.exp, gdb.t21/cplusfuncs.exp,
4464 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t30/chexp.exp,
4465 gdb.t31/chillvars.exp, lib/gdb.exp:
4471 * gdb.t17/callfuncs.exp (do_function_calls): Call t_double_values
4472 with 0.0, not integer 0.
4476 * gdb.t06/break.exp: Update for "Kill the program" message change.
4480 * Makefile.in (GDBFLAGS): Set to -nx.
4481 * Makefile.in (site.exp): Use GDBFLAGS.
4485 * */Makefile.in (CFLAGS): add CFLAGS = -g to all subdirectory
4487 (check): depend on just-check.
4488 (just-check): added so that tests can be run without a noop
4493 Switch to using configure's configdirs.
4494 * Makefile.in (Makefile): add configure.in dependency.
4495 (SUBDIRS): removed redundant assignment.
4496 * configure.in: switch subdirs assignment to configdirs.
4497 * gdb.t*/configure.in: new files.
4501 * gdb.t07/watchpoint.exp: Removed a29k expected failure which now
4506 * gdb.{t20,t21,t22,t23}/Makefile.in: Use $(srcdir) to avoid $<
4507 in explicit rules. Apparently this is not supported by some makes.
4511 * gdb.t31/Makefile.in: Use $(srcdir) when avoiding $<, sigh.
4515 * config/unix-gdb.exp: Add back missing return 0 which mysteriously
4520 * gdb.t31/Makefile.in: Avoid $< in explicit rule.
4524 * gdb.t07/watchpoint.exp: Remove setup_xfail for i486
4525 watchpoint problem that is now fixed.
4526 * gdb.t30/chexp.exp: Remove setup_xfail for printing
4527 uninitialized convenience variables.
4528 * gdb.t31/chillvars.exp: Fix expected patterns for printing
4533 * gdb.t00/help.exp: Compensate for bug in mips-*-ultrix* OS
4534 which causes expect to get out of sync with gdb on long output
4536 * gdb.t09/corefile.exp: Make expected pattern for core file
4537 failing signal and frame output format less sun specific.
4541 * gdb.t31/chillvars.exp: Add and remove initial dummy
4542 breakpoint, so that symbol table is forced in.
4543 (Needed at least on Sunos4, though it seems not SVR4.)
4544 * gdb.t31/chillvars.exp: Update for changed output format.
4546 Sun Apr 11 17:21:45 1993 Rob Savoye (rob at darkstar.cygnus.com)
4548 * config/unix-gdb.exp: Gracefully exits if $GDB is a bogus path.
4552 * Makefile.in: Added --srcdir when invoking runtest, removed the
4553 need for a local config file. (optional now)
4557 * gdb.t21/demangle.exp: Only count real fails (not xfails) for
4558 failure count used to force early termination. Add some more
4559 expected failures for gnu style demangling.
4563 * Makefile.in (CXXFLAGS): Remove -O. It caused the debug info for the
4564 pmi variable from gdb.t20/gdbme to get optimized away.
4565 * gdb.t00/teststrategy.exp: Added expected failure for mips-*-*.
4566 Check for written corefile upon timeout _and_ eof.
4570 * config/unix-gdb.exp: Add missing return 0.
4574 * gdb.t16/printcmds.exp: Remove misplaced xfail that caused an early
4579 * configure.in (subdirs): Put back gdb.t17 which mysteriously
4584 * gdb.t10/crossload.exp: Disable the i860-elf test until such
4585 time as i860 support works.
4587 * gdb.t15/funcargs.exp: Fix expected outputs to include
4588 "backtrace 100\r" rather than just "backtrace\r", to match last
4593 * config/udi-gdb.exp (gdb_exit): Remove close command.
4594 (gdb_target_udi): New procedure to set the UDI target.
4595 (gdb_start): Don't remove *_soc files. Use gdb_target_udi.
4596 * gdb.t00/default.exp: Added expected failures for a29k-*-udi.
4597 Added waits for prompts after several question responses. Added
4598 some more responses used by a29k-amd-udi-gdb.
4599 * gdb.t01/run.exp, gdb.t06/break.exp: Added a29k-*-udi support:
4600 pass different arguments, restart UDI connection after program
4602 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t07/watchpoint.exp,
4603 gdb.t08/opaque.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
4604 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp, gdb.t20/misc.exp,
4605 gdb.t21/cplusfuncs.exp: Added expected failures for a29k-*-*.
4606 * gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t07/watchpoint.exp,
4607 gdb.t08/opaque.exp, gdb.t12/scope.exp, gdb.t13/bitfields.exp,
4608 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
4609 gdb.t17/callfuncs.exp, gdb.t20/classes.exp, gdb.t20/inherit.exp,
4610 gdb.t20/misc.exp, gdb.t22/virtfuncs.exp: Restart UDI connection
4611 after program completion.
4612 * gdb.t10/crossload.exp: Does not work for a29k-*-*, since BFD is
4613 compiled with a SELECT_VECS setting.
4614 * gdb.t15/funcargs.exp: Use argument to backtrace to prevent
4617 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t22/virtfuncs.exp:
4618 Added checks for COFF results, and made them expected failures for
4619 all targets. It would be better to make them expected failures
4620 for COFF targets only.
4622 Wed Mar 24 14:43:38 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
4624 * Makefile.in: add null dvi target, don't bother to recurse
4625 through test directories for info and install-info; rename
4626 $(datadir) to be dejagnu instead of deja-gnu
4630 * gdb.t31/gdbme.ch: Re-enable code that previously caused
4631 compiler to coredump.
4632 * gdb.t31/chillvars.exp: Re-enable tests that depend on that
4637 * gdb.t31/gdbme.ch: Comment out code that causes chill compiler
4639 * gdb.t31/chillvars.exp: Comment out tests that depend on that
4642 Sun Mar 21 17:56:47 1993 Rob Savoye (rob at darkstar.cygnus.com)
4644 * gdb.t03/ptype.exp: tests for return code from gdb_test.
4645 * gdb.t00/teststrategy.exp: Uses which proc rather than spawning
4646 which in a shell. Deletes xgdb when done.
4647 * config/unix-gdb.exp: Won't try to spawn $GDB unless it exists.
4648 Tests the return from the "set height" or "set width" commands.
4649 Added a few return codes where needed.
4653 * Makefile.in (SUBDIRS): Add gdb.t17.
4654 * configure.in (subdirs): Add gdb.t17.
4655 * gdb.t17/{Makefile.in, callfuncs.exp, gdbme.c}: New test
4656 files to test gdb's calling of functions in the inferior with
4657 the correct arguments and gdb's ability to retrieve any
4662 * config/unix-gdb.exp (gdb_exit): Remove close commands that
4663 may be called after gdb goes away. Previous versions of expect
4664 needed these to avoid file descriptor leaks, but they cause
4665 errors with the current revision of expect.
4666 * gdb.t00/gdbvars.exp: Use -re on expected output after
4667 setting sevenbit-strings.
4668 * gdb.t04/setvar.exp, gdb.t13/bitfields.exp: Make commands
4669 to set sevenbit-strings consistent across tests.
4670 gdb.t30/chexp.exp, gdb.t31/chillvars.exp: Make commands to
4671 set sevenbit-strings consistent across tests.
4675 * gdb.t21/demangle.exp (proc demangle): Adjust quotes in an
4676 expected output to match current "expect" expectations.
4680 * gdb.t00/default.exp: Change expected output for default "source"
4681 command, to match new gdb behavior which requires a filename to
4686 * gdb.t07/watchpoint.exp (test_simple_watchpoint): Set up
4687 expected fail for i486-*-* that misses the marker2 function.
4688 * gdb.t10/crossload.exp (bfddefault): Allow successful
4689 recognition of a format to pass even if no symbols are found.
4690 Explicitly catch failures where the format is not recognized
4691 or is ambiguous, and add the reason to the fail message.
4692 * gdb.t10/crossload.exp (bfdexplicit): Catch failure where
4693 the cause is and invalid target and add reason to failure message.
4694 * gdb.t10/crossload.exp: Fix bfd target names for elf32-m68k,
4695 elf32-i386, elf32-sparc, and elf32-i860.
4696 * gdb.t12/scope.exp (test_at_main, test_at_foo, test_at_bar):
4697 Set up expected failure for 'filename'::variable scope resolution,
4698 which is now apparently broken on all targets.
4699 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t20/misc.exp,
4700 gdb.t21/cplusfuncs.exp, gdb.t22/virtfunc.exp,
4701 gdb.t23/templates.exp: Change failure for missing binfile into
4703 gdb.t21/demangle.exp: Change all cfront references to 'arm'
4708 * gdb.t00/default.exp: Add expected output for default "source"
4709 command, to match new gdb behavior.
4710 * gdb.t09/corefile.exp: Use GDBFLAGS when spawning GDB.
4714 * config/*-gdb.exp: returns an error, rather than exiting on
4719 * gdb.t03/gdbme.c: Add pointer to struct variable.
4720 * gdb.t03/ptype.exp: Test equivalence of '.' and '->' for
4721 referencing struct members.
4725 * configure.in (mips-idt-ecoff): New target.
4726 * config/mips-gdb.exp: New file for remote board using MIPS remote
4729 * Redid configuration scheme. Removed gdb.t*/configure.in.
4730 Renamed gdb.t*/in-gdbme* to gdb.t*/gdbme*. Changed to use CC, CXX
4731 instead of CC_FOR_TARGET, CXX_FOR_TARGET. Added mostlyclean and
4732 distclean targets. Built executables via .o files. Adjusted
4733 tests to account for source files in $(srcdir) rather than
4735 * lib/gdb.exp (runto): Don't expect () after the function name,
4736 because it may have arguments.
4740 * gdb.t00/default.exp, gdb.t01/run.exp, gdb.t02/whatis.exp,
4741 gdb.t03/ptype.exp, gdb.t06/break.exp, gdb.t12/scope.exp: Added
4742 expected failures for mips-idt-* and mips-sgi-*.
4743 * gdb.t00/default.exp (attach): Kill process if requested.
4744 * gdb.t00/help.exp (help target core, help target): Accept a gdb
4745 that does not read core files.
4746 * gdb.t01/run.exp: Removed checks for exit status code.
4747 * gdb.t03/in-gdbme.c: Make explicit call to malloc to ensure that
4749 * gdb.t03/ptype.exp: Increase timeout when calling malloc.
4750 * gdb.t04/setvar.exp, gdb.t05/expr.exp: Use runto function where
4751 appropriate, rather than doing it by hand.
4752 * gdb.t07/watchpoint.exp: If mips-idt-*, reload file after first
4754 * gdb.t10/crossload.exp: Kill existing program if needed.
4755 * gdb.t15/funcargs.exp: Use delete_breakpoints function where
4756 appropriate, rather than doing it by hand. Always increase
4757 timeout for this test, not just for VxWorks.
4761 * gdb.t31/chillvars.exp (test_structs): New proc to test printing
4762 of Chill STRUCT types and STRUCT values.
4763 * gdb.t31/chillvars.exp (test_strings): Expect "CHAR" now, rather
4765 * gdb.t31/in-gdbme.ch (simple_struct, nested_struct, struct1,
4766 struct2): New struct definitions and initializations to test
4767 simple Chill STRUCT types.
4771 * gdb.t00/teststrategy.exp: Track reversion in gdb to not print
4772 the null byte at the end of strings.
4773 * gdb.t00/default.exp: Make show version insensitive to copyright
4775 * gdb.t16/in-gdbme.c (ctable1, ctable2): Make explicitly unsigned
4776 to avoid dependencies on target char signedness.
4777 * gdb.t16/printcmds.exp: Update expected results for explicitly
4779 * gdb.t16/printcmds.exp: Remove setup_xfails for i960 that should
4781 * gdb.t21/demangle.exp: Add many more patterns for template
4782 demangling, most of them being expected failures.
4783 * gdb.t21/demangle.exp (proc demangle): Quote the demangled
4784 string we are matching for, to match on the whole string.
4785 * gdb.t21/demangle.exp: Add many new test strings to demangle,
4786 and fix a whole bunch that had incorrect expected output but were
4787 passing anyway because of the bug in "proc demangle".
4788 * gdb.t31/chillvars.exp: Remove setup_xfail for printing string
4790 * gdb.t31/in-gdbme.ch: Uncomment string4, now compiles.
4794 * gdb/testsuite: made modifications to testcases, etc., to allow
4795 them to work properly given the reorganization of deja-gnu and the
4796 relocation of the testcases from deja-gnu to a "tool" subdirectory.
4800 * gdb/testsuite: Initial creation of gdb/testsuite.
4801 Migrated dejagnu testcases and support files for testing nm to
4802 gdb/testsuite from deja-gnu. These files were moved "as is"
4803 with no modifications. This migration is part of a major overhaul
4804 of dejagnu. The modifications to these testcases, etc., which
4805 will allow them to work with the new version of dejagnu will be
4806 made in a future update.
4812 version-control: never