3 * gdb.base/args.exp: Fix foobar with GDBFLAGS global.
7 * gdb.base/default.exp: Adapt "info float" test for recent changes
8 to that command. Add test for "info vector".
9 * gdb.base/float.exp: New file. Add test for "info float" that
10 resembles the old test in gdb.base/default.exp.
14 * gdb.base/selftest.exp (do_steps_and_nexts): Allow gdb_sysroot.
18 * gdb.base/break.exp: Move the tests of until command from here...
19 * gdb.base/until.exp: ... to here. New file. Add other tests.
20 * gdb.base/advance.c: New file.
21 * gdb.base/advance.exp: New file.
25 * gdb.base/args.c: New file.
26 * gdb.base/args.exp: New file.
30 * gdb.c++/virtfunc.exp: Remove fixed XFAIL.
34 * gdb.threads/killed.exp: Use KFAIL for gdb/568.
38 * gdb.base/constvars.exp: Remove two extra XFAILs. Update copyright
43 * gdb.c++/printmethod.exp (print virtual method): Accept "(void)".
47 * gdb.base/printcmds.exp: Enable setup_kfail for gdb/538
49 * gdb.c++/local.exp: Enable setup_kfail for gdb/482.
53 * gdb.mi/mi-console.exp: Remove extra "(known bug)".
54 * gdb.mi/mi1-console.exp: Likewise.
58 * gdb.mi/mi-console.exp: Add KFAIL for "Hello message (known bug)".
59 * gdb.mi/mi1-console.exp: Likewise.
63 * gdb.c++/overload.exp: Remove some fixed XFAILs.
67 * gdb.base/detach.exp: New test.
71 * Makefile.in (ALL_SUBDIRS): New variable.
72 (subdirs, clean, distclean): Use it.
73 * gdb.arch/Makefile.in: Clean up Makefile. Remove rules for
74 regenerating Makefile, since it is generated from the top level.
75 * gdb.asm/Makefile.in: Likewise.
76 * gdb.base/Makefile.in: Likewise.
77 * gdb.c++/Makefile.in: Likewise.
78 * gdb.disasm/Makefile.in: Likewise.
79 * gdb.java/Makefile.in: Likewise.
80 * gdb.mi/Makefile.in: Likewise.
81 * gdb.threads/Makefile.in: Likewise.
82 * gdb.trace/Makefile.in: Likewise.
86 * gdb.c++/annota2.exp: KFAIL "watch triggered on a.x".
87 Add copyright year 2003.
91 * gdb.mi/mi-pthreads.exp (check_mi_thread_command_set):
92 When selecting a thread, 'line' and 'file' are optional.
93 * gdb.mi/mi1-pthreads.exp: Likewise.
97 * lib/gdb.exp: Set LC_ALL to "C" to avoid spurious testsuite
103 * lib/gdb.exp (gdb_compile): Handle "quiet" option.
104 (gdb_compile_pthreads): Pass "quiet" to gdb_compile.
106 * gdb.threads/gcore-thread.exp: Use gdb_compile_pthreads. Return
107 instead of calling gdb_suppress_entire_file.
108 * gdb.threads/print-threads.exp: Likewise.
109 * gdb.threads/schedlock.exp: Likewise.
111 * gdb.threads/killed.exp: Return instead of calling
112 gdb_suppress_entire_file.
113 * gdb.threads/linux-dp.exp: Likewise.
114 * gdb.threads/pthreads.exp: Likewise.
118 * gdb.base/callfuncs.exp: Don't XFAIL unprototyped functions for
120 * gdb.base/completion.exp: Allow marker1(void) as well as marker1().
121 * gdb.base/whatis.exp: Always allow (void) after function names.
125 * gdb.c++/casts.exp: Correct regexp.
129 * configure.in: Call AC_CONFIG_HEADER. Don't call
130 AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
131 gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call
132 AC_CHECK_HEADERS on pthread.h. Put Makefiles in the
133 aforementioned directories in the AC_OUPUT call.
134 * config.hin: New file.
135 * gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
136 gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
137 gdb.threads/killed.exp, gdb.threads/print-threads.exp,
138 gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
139 pass -I$objdir instead of -I$objdir/$subdir in compilation.
140 * gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
141 gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
142 gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
143 gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
144 gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
145 gdb.threads/configure.in, gdb.threads/configure,
146 gdb.threads/config.in, gdb.trace/configure.in,
147 gdb.trace/configure: Removed.
151 * gdb.base/miscexprs.c: Fix PR gdb/697, "buglet in
152 testsuite/gdb.base/miscexprs.c, off-by-1 array reference".
156 * gdb.base/store.exp: Fix regular expressions.
160 * configure.in: Rewrite.
161 * configure: Regenerated.
165 * gdb.base/psymtab.exp: New file.
166 * gdb.base/psymtab1.c: Ditto.
167 * gdb.base/psymtab2.c: Ditto.
171 * gdb.base/maint.exp: Update expect output to include 'ObjC'.
175 * gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace
176 and current_directory initialization.
180 * gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
181 rather than as part of the output file name.
183 * gdb.base/attach.exp: There's no need to copy the test program to
184 /tmp; that was only ever necessary on HP/UX, and this test is
185 entirely disabled there anyway.
189 * gdb.c++/psmang.exp: Doc fix.
191 * gdb.c++/psmang.exp, gdb.c++/psmang1.cc, gdb.c++/psmang2.cc: New
196 * gdb.c++/annota2.exp: KFAIL annotate-quit.
200 * gdb.c++/annota2.exp: Add copyright year 2002.
204 * gdb.c++/try_catch.cc: Add marker comments.
205 * gdb.c++/try_catch.exp: Get line numbers from marker comments.
206 * gdb.c++/m-data.cc: Delete namespace __gnu_test.
207 * gdb.c++/m-static.cc: Ditto.
208 * gdb.c++/m-static1.cc: Ditto.
209 * gdb.c++/try_catch.cc: Ditto.
213 * lib/mi-support.exp (mi_reinitialize_dir): Check mi level
214 to see whether we are using the new -environment-directory
215 command which resets via -r or the old version of the command
216 which may prompt the user. Part of fix for gdb/741.
220 * gdb.fortran/types.exp: Update obsolete comment.
221 * gdb.fortran/exprs.exp: Ditto.
222 * lib/gdb.exp: Delete obsolete code.
223 * gdb.chill/ChangeLog, gdb.chill/Makefile.in: Delete.
224 * gdb.chill/builtins.ch, gdb.chill/builtins.exp: Delete.
225 * gdb.chill/callch.ch, gdb.chill/callch.exp: Delete.
226 * gdb.chill/chexp.exp, gdb.chill/chillvars.ch: Delete.
227 * gdb.chill/chillvars.exp, gdb.chill/configure: Delete.
228 * gdb.chill/configure.in, gdb.chill/enum.ch: Delete.
229 * gdb.chill/enum.exp, gdb.chill/func1.ch: Delete.
230 * gdb.chill/gch1041.ch, gdb.chill/gch1041.exp: Delete.
231 * gdb.chill/gch1272.ch, gdb.chill/gch1272.exp: Delete.
232 * gdb.chill/gch1280.ch, gdb.chill/gch1280.exp: Delete.
233 * gdb.chill/gch922.ch, gdb.chill/gch922.exp: Delete.
234 * gdb.chill/gch981.ch, gdb.chill/gch981.exp: Delete.
235 * gdb.chill/misc.ch, gdb.chill/misc.exp: Delete.
236 * gdb.chill/powerset.ch, gdb.chill/powerset.exp: Delete.
237 * gdb.chill/pr-4975-grt.ch, gdb.chill/pr-4975.ch: Delete.
238 * gdb.chill/pr-4975.exp, gdb.chill/pr-5016.ch: Delete.
239 * gdb.chill/pr-5016.exp, gdb.chill/pr-5020.ch: Delete.
240 * gdb.chill/pr-5020.exp, gdb.chill/pr-5022.ch: Delete.
241 * gdb.chill/pr-5022.exp, gdb.chill/pr-5646-grt.ch: Delete.
242 * gdb.chill/pr-5646.ch, gdb.chill/pr-5646.exp: Delete.
243 * gdb.chill/pr-5984.ch, gdb.chill/pr-5984.exp: Delete.
244 * gdb.chill/pr-6292.ch, gdb.chill/pr-6292.exp: Delete.
245 * gdb.chill/pr-6632-grt.ch, gdb.chill/pr-6632.ch: Delete.
246 * gdb.chill/pr-6632.exp, gdb.chill/pr-8134.exp: Delete.
247 * gdb.chill/pr-8136.ch, gdb.chill/pr-8136.exp: Delete.
248 * gdb.chill/pr-8405.ch, gdb.chill/pr-8405.exp: Delete.
249 * gdb.chill/pr-8742.ch, gdb.chill/pr-8742.exp: Delete.
250 * gdb.chill/pr-8894-grt.ch, gdb.chill/pr-8894.ch: Delete.
251 * gdb.chill/pr-8894.exp, gdb.chill/pr-9095.ch: Delete.
252 * gdb.chill/pr-9095.exp, gdb.chill/pr-9946.ch: Delete.
253 * gdb.chill/pr-9946.exp, gdb.chill/result.ch: Delete.
254 * gdb.chill/result.exp, gdb.chill/string.ch: Delete.
255 * gdb.chill/string.exp, gdb.chill/tests1.ch: Delete.
256 * gdb.chill/tests1.exp, gdb.chill/tests2.ch: Delete.
257 * gdb.chill/tests2.exp, gdb.chill/tuples.ch: Delete.
258 * gdb.chill/tuples.exp, gdb.chill/xstruct-grt.ch: Delete.
259 * gdb.chill/xstruct.ch, gdb.chill/xstruct.exp: Delete.
263 * gdb.c++/m-data.exp: Add test for members that shadow global
264 variables: see PR gdb/804.
265 * gdb.c++/m-data.cc: Ditto.
269 * gdb.base/foll-vfork.exp: Re-enable test on HP/UX.
273 * gdb.base/store.c: Don't declare functions static.
277 * gdb.base/store.exp, gdb.base/store.c: New files.
281 * gdb.base/selftest.exp: Update for current gdb.
285 * gdb.base/maint.exp: Only dump symbols from one source file
290 * gdb.base/step-test.exp: Allow MIPS to return to the line of a
295 * lib/mi-support.exp (mi_delete_breakpoints): Change name of
296 function appearing in error message.
300 * gdb.base/maint.exp (help maint dump-me): Update with typo fix.
304 * lib/mi-support.exp (mi_gdb_start): Verify the startup message
305 for mi1 and current mi is in correct format. New mi startup message
306 should be in mi console format. This is part of fix for PR gdb/604.
310 * gdb.asm/asm-source.exp: Adjust patter to new disassembler routine
311 which explicitly prints the zero offset as "+0".
315 * gdb.threads/schedlock.c (args): Make unsigned.
319 * gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line
320 numbers. Allow "foo2|selected stack frame".
321 * gdb.asm/asmsrc1.s: Use gdbasm_declare and gdbasm_end.
322 * gdb.asm/asmsrc2.s: Likewise.
323 * gdb.asm/common.inc: Define gdbasm_declare and gdbasm_end. Update
325 * gdb.asm/mips.inc: New file.
329 * gdb.base/default.exp: Update expected output to include 'ObjC'.
330 * gdb.base/help.exp: Likewise.
334 * gdb.base/constvars.c (struct crass, struct crisp): New structs.
335 * gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
339 * gdb.c++/casts.cc, gdb.c++/casts.exp: New test.
343 * mi1-basics.exp: Copy of mi1-basics.exp MIFLAGS set "-i=mi1".
344 * mi1-break.exp, mi1-console.exp, mi1-disassemble.exp: Ditto.
345 * mi1-eval.exp, mi1-hack-cli.exp, mi1-pthreads.exp: Ditto.
346 * mi1-read-memory.exp, mi1-regs.exp, mi1-return.exp: Ditto.
347 * mi1-simplerun.exp, mi1-stack.exp, mi1-stepi.exp: Ditto.
348 * mi1-until.exp, mi1-var-block.exp, mi1-var-child.exp: Ditto.
349 * mi1-var-cmd.exp, mi1-var-display.exp, mi1-watch.exp: Ditto.
353 * mi0-basics.exp, mi0-break.exp, mi0-console.exp: Delete.
354 * mi0-disassemble.exp, mi0-eval.exp: Delete.
355 * mi0-hack-cli.exp, mi0-read-memory.exp: Delete.
356 * mi0-regs.exp, mi0-return.exp, mi0-simplerun.exp: Delete.
357 * mi0-stack.exp, mi0-stepi.exp, mi0-until.exp: Delete.
358 * mi0-var-block.exp, mi0-var-child.exp: Delete.
359 * mi0-var-cmd.exp, mi0-var-display.exp, mi0-watch.exp: Delete.
363 * gdb.base/annota1.exp (info break): Make directory components of
364 path optional since not all compilers emit this debug information.
366 * gdb.base/shlib-call.exp (step inside shr2): Don't fail if first
367 step ends up stepping out of the function instead of stopping on
372 * lib/insight-support.exp (gdbtk_start): Figure out where
373 the insight executable is based on where gdb is. Use this
374 executable to start insight instead of gdb.
378 * gdb.base/pc-fp.exp, gdb.base/pc-fp.c: New test.
382 * gdb.gdb/complaints.exp (test_initial_complaints): Rename
383 test_isolated_complaints.
384 (test_empty_complaint): New function.
385 (test_empty_complaints): New function. Check no output when no
390 * gdb.base/charset.exp, gdb.base/charset.c: New files.
394 * gdb.gdb/complaints.exp: New file.
398 * gdb.base/maint.exp: Check `help maint internal-warning'.
402 * gdb.c++/m-static.exp: Remove breakpoints depending on line
403 numbers, and replace them by a single breakpoint after the
404 constructors are all finished.
406 * gdb.c++/m-static.cc: Add test 4.
407 * gdb.c++/m-static.h: New file.
408 * gdb.c++/m-static1.cc: New file.
410 * gdb.c++/printmethod.exp: New file.
411 * gdb.c++/printmethod.cc: New file.
413 * gdb.c++/pr-574.exp: New file.
414 * gdb.c++/pr-574.cc: New file.
418 * gdb.base/ending-run.exp: Add handling of "step to end of run" for
419 embedded targets which never actually exit.
423 * gdb.base/ending-run.exp: Properly mark "continue after exit" and
424 "don't step after run" as unresolved or unsupported, instead of xfail.
428 * gdb.base/ending-run.exp: Fix expected string for _wrap_main to
429 allow correct handling of #ifdef UNDERSCORES from dejagnu/testglue.c.
430 Add newline to expected string in "step out of main (status wrapper)"
435 * lib/gdb.exp (rerun_to_main): Allow restarting application.
436 * gdb.base/ena-dis-br.exp (rerun_to_main): Eliminate.
440 * gdb.base/printcmds.exp (test_print_string_constants): Expect
441 \000, not \0, in double-quoted string.
445 * gdb.base/command.exp: Don't expect a "Program exited normally"
446 string after running the commands execution on breakpoint tests.
450 * lib/gdb.exp (gdb_continue_to_end): Fix typo in expected string.
454 * gdb.base/call-strs.exp: Fix a small typo in one of the comments.
458 * lib/mi-support.exp (mi_runto): New proc. Does the same as gdb's
460 (mi_run_to_main): Use mi_runto.
461 (mi_execute_to): Renamed from mi_run_to. Changed all callers.
465 * lib/mi-support.exp: (mi_run_to_main): Allow anything to precede
466 regexp for stopping at main. Could have multiple event notifications.
467 Don't assume that main was declared with no parameters.
468 (mi_next): Use mi_step_to.
469 (mi_step): Use mi_next_to.
473 * gdb.base/default.exp: Fix expected string in `info float' test.
477 * config/mips.exp: Update comments.
478 * config/mips-idt.exp: Likewise.
479 * config/nind.exp: Likewise.
480 * config/slite.exp: Likewise.
481 * config/sparclet.exp: Likewise.
482 * config/udi.exp: Likewise.
483 * config/vx.exp: Likewise.
484 * config/vxworks29k.exp: Likewise.
488 * gdb.threads/killed.exp: Fix test failure message.
492 * lib/mi-support.exp: Update copyright.
493 (mi_gdb_test): Increase the priority of the expected pattern
494 so that it matches gdb_test.
498 * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.
499 Use integer comparison instead of string comparison for testing
500 whether binary was built.
504 * gdb.threads/killed.exp, gdb.threads/killed.c: New test.
508 * gdb.threads/pthreads.exp: Move the portable thread compilation
509 code into a function in lib/gdb.exp, and call that from here.
510 * lib/gdb.exp (gdb_compile_pthreads): New function.
514 * lib/mi-support.exp (mi_gdb_test): Add global declaration for
515 expect_out so that callers can get at it.
519 * gdb.threads/print-threads.c: New file.
520 * gdb.threads/print-threads.exp: New file.
521 * gdb.threads/schedlock.c: New file.
522 * gdb.threads/schedlock.exp: New file.
526 * gdb.arch/altivec-abi.exp: The source C file is altivec-abi.c,
531 * gdb.base/return.exp: Remove i*86-*-* from list of xfail'ed
532 targets. The problem should be fixed now.
536 * gdb.java/jv-print.exp: Fix p '' and p ''' tests to deal with
537 2002-07-24 change that removes final dots from error messages.
541 * gdb.base/readline.exp: New file.
545 * lib/gdb.exp (gdb_expect_list): Only print one pass, fail, or
550 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove CHILLFLAGS, CHILL,
551 CHILL_FOR_TARGET and CHILL_LIB.
552 * configure.in (configdirs): Remove gdb.chill.
553 * configure: Regenerate.
554 * lib/gdb.exp: Obsolete references to chill.
555 * gdb.fortran/types.exp: Ditto.
556 * gdb.fortran/exprs.exp: Ditto.
560 * gdb.base/shlib-call.exp (additional_flags): Conditionally
561 set Irix-specific compile and link flags.
565 * lib/gdb.exp (mips*-*-irix*): Use alternate method for preprocessing
566 source files. The ``-o'' option doesn't work with the ``-E'' option
567 when using the Irix compiler.
571 * config/gdbserver.exp (gdb_load): Don't use TCL varargs.
572 Improve support for reusing an exec file. Copy exec file
573 to target, and run gdbserver on the target instead of on the host.
577 * gdb.base/ending-run.exp: Don't expect to see the program end in
578 some orderly fashion when we're running on a real stand-alone
581 * gdb.base/interrupt.exp: Correct logic for skipping tests on
582 targets that don't support interrupts.
586 * gdb.base/attach.exp: Add patterns to match output from /proc-based
588 Move comments in expect statements to inside the actions, so that they
589 don't get matched against.
593 * gdb.base/interrupt.exp: Setup xfail for all i386 BSD's on "call
594 function when asleep" test.
598 * gdb.base/page.exp: Rewrite to handle problems with very long
599 `info set' output. Update copyright.
603 * gdb.hp/configure.in (AC_CONFIG_SUBDIRS): Do not try to configure
605 * gdb.hp/configure: Regenerate.
606 * gdb.hp/gdb.threads-hp/configure.in: Delete file.
607 * gdb.hp/gdb.threads-hp/configure: Delete file.
608 * gdb.hp/gdb.threads-hp/Makefile.in: Delete file.
612 * gdb.base/selftest.exp (do_stes_and_next): Skip calls to
613 setlocale, bindtextdomain and textdomain.
617 * lib/gdb.exp (get_debug_format): Tolerate message saying whether
618 preprocessor macro information is present.
620 * macscp.exp, macscp1.c, macscp2.h, macscp3.h, macscp4.h: New
625 * gdb.base/overlays.exp: Record addresses of overlay
626 functions in TCL variables rather than in GDB variables,
627 to avoid having GDB convert them to pointers (with loss
630 * gdb.base/d10v.ld: Merge in several years worth of
631 default linker script changes.
632 * gdb.base/long_long.exp: Add check for sizeof (long double).
636 * gdb.asm/asm-source.exp: Add x86-64 target.
637 * gdb.asm/x86_64.inc: New.
642 * gdb.c++/m-static.cc: New file.
643 * gdb.c++/m-static.exp: New file.
647 * gdb.base/call-ar-st.exp: Allow for reduced floating point
653 * gdb.c++/m-data.cc: New file.
654 * gdb.c++/m-data.exp: New file.
659 * gdb.c++/try_catch.cc: New file.
660 * gdb.c++/try_catch.exp: New file.
664 * gdb.c++/local.exp: Accept more nested types in output.
668 * gdb.base/call-rt-st.exp: Fix typo in brace quoting.
672 * lib/gdb.exp (gdb_wrapper_init): Just because
673 gdb_wrapper_file exists, this does not mean that the file
674 should not be rebuilt. That is what gdb_wrapper_initialized
676 (default_gdb_init): Reset gdb_wrapper_initialized.
680 * gdb.base/all-bin.exp: Revise previous patch by just reducing
681 the precision of the floating point test results.
682 * gdb.base/call-rt-st.exp: Ditto.
684 * gdb.base/all-bin.exp: Allow for reduced floating point precision.
685 * gdb.base/call-rt-st.exp: Ditto.
689 * gdb.c++/inherit.exp: Accept "VTT for ..." in output strings.
693 * configure.in (configdirs): Add gdb.arch.
694 * configure: Regenerate.
698 * gdb.base/completion.exp: Recognize the more detailed error
699 messages produced by the macro expander's lexical analyzer.
703 * gdb.arch/altivec-abi.c: New file.
704 * gdb.arch/altivec-abi.exp: New file.
705 * gdb.arch/altivec-regs.c: New file.
706 * gdb.arch/altivec-regs.exp: New file.
710 * gdb.base/maint.exp (maint print type): Update for new type
715 * gdb.arch: New directory.
716 * gdb.arch/configure.in: New file.
717 * gdb.arch/configure: New file.
718 * gdb.arch/Makefile.in: New file.
722 * gdb.asm/asm-source.exp: Add v850 as supported target.
723 * gdb.asm/v850.inc: New file.
727 * gdb.c++/annota2.exp (annotate-quit): Add comment.
731 * gdb.base/break.exp: Check 'break "marker2"'.
735 * gdb.base/long_long.exp: Fix typo.
739 * gdb.base/printcmds.exp: Don't xfail the ptype command. This is
742 * gdb.base/printcmds.exp (test_integer_literals_rejected):
743 Recognize more detailed error message produced by the macro
744 expander's lexical analyzer.
745 * lib/gdb.exp (test_print_reject): Same.
749 * gdb.c++/method.exp: Fix typo.
753 * gdb.mi/mi-var-child.exp: Accept (void) as well as ().
754 * gdb.mi/mi0-var-child.exp: Accept (void) as well as ().
755 * gdb.base/default.exp: Merge clauses for arm, strongarm, xscale.
756 * gdb.base/long_long.exp: Merge clauses for arm and xscale.
757 Add iftarget clause for strongarm.
761 * lib/gdb.exp (gdb_test): Add case to allow for status wrapper.
762 (gdb_continue_to_end): Accept output from status wrapper.
763 * gdb.base/ending-run.exp: Add case for output from status wrapper.
764 Clean up fail messages to match pass messages.
766 Enable the "needs_status_wrapper" testsuite feature.
767 * lib/gdb.exp (gdb_wrapper_init): New procedure.
768 (gdb_compile): Conditionally call gdb_wrapper_init.
769 * gdb.base/a2-run.exp: Recognize output from status wrapper.
770 * gdb.c++/method.exp: Recognize output from status wrapper.
775 * config/sid.exp: Include support for "rawsid" protocol.
779 * gdb.c++/hang.exp: Check for corruption of the cv_type chain.
780 * gdb.c++/hang3.C: New file.
784 * gdb.base/default.exp: Remove obsolete code.
785 * gdb.c++/misc.exp: Ditto. Update copyright.
786 * gdb.c++/cplusfuncs.exp: Ditto. Update copyright.
787 * gdb.base/whatis.exp: Ditto. Update copyright.
788 * gdb.base/scope.exp: Ditto. Update copyright.
789 * gdb.base/ptype.exp: Ditto. Update copyright.
790 * gdb.base/printcmds.exp: Ditto. Update copyright.
791 * gdb.base/opaque.exp: Ditto. Update copyright.
792 * gdb.base/list.exp: Ditto.
793 * gdb.base/funcargs.exp: Ditto. Update copyright.
794 * gdb.hp/gdb.threads-hp/usrthbasic.c: Delete.
795 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Delete.
796 * gdb.hp/gdb.threads-hp/usrthcore.c: Delete.
797 * gdb.hp/gdb.threads-hp/usrthcore.exp: Delete.
798 * gdb.hp/gdb.threads-hp/usrthfork.c: Delete.
799 * gdb.hp/gdb.threads-hp/usrthfork.exp: Delete.
803 * gdb.base/watchpoint.exp: Add xscale target.
804 * gdb.base/long_long.exp: Add xscale target.
805 * gdb.base/default.exp: Add xscale target.
809 * gdb.c++/hang1.C, gdb.c++/hang2.C, gdb.c++/hang.H,
810 gdb.c++/hang.exp: New test.
814 * gdb.base/completion.exp: Handle completions of "./Make" for
815 more than one completion possibility, as is the case when we
816 build and test in the source tree.
820 * gdb.java/jmisc1.exp: New file.
821 * gdb.java/jmisc2.exp: New file.
825 * gdb.threads/linux-dp.exp: Use 'unset' instead of 'array unset'.
829 * gdb.base/help.exp: Change 'help status' to allow for target
830 dependent output differences.
834 * gdb.c++/local.exp: Add PR numbers: gdb/482, gdb/483.
838 * gdb.c++/method.exp: Fix syntax of reference to gdb/277.
842 * gdb.asm/sparc64.inc: New file.
843 * gdb.asm/asm-source.exp: Handle sparc64-*-*.
847 * gdb.asm/asm-source.exp: Don't use a symlink, just copy the
848 instruction file directly into the build tree. Clean up at end of
853 * gdb.base/annota1.exp: Expect addresses as $hex + whitespace to
854 handle 64-bit platforms correctly.
855 * gdb.base/maint.exp: Likewise.
859 * gdb.base/shlib-call.exp (additional_flags): AIX doesn't need
860 ``-fpic'' when compiling files comprising a shared library, but
861 it does need additional linker flags in order to find shared
862 libraries at run time.
866 * gdb.base/cvexpr.c (use): New function.
867 (main): Invoke use() on all global variables to prevent
868 some linkers from deleting these otherwise unused symbols.
873 * gdb.c++/ovldbreak.exp: Expect addresses as $hex + whitespace to
874 handle 64-bit platforms correctly.
878 * gdb.base/foo.c (foox): Remove section attribute; the linker
879 script can handle this instead.
880 * gdb.base/bar.c (barx): Same.
881 * gdb.base/baz.c (bazx): Same.
882 * gdb.base/grbx.c (grbxx): Same.
884 * gdb.base/overlays.exp: New test: check that GDB's manual overlay
885 manager doesn't automatically unmap overlays unnecessarily.
889 * gdb.base/ending-run.exp: Fix pattern for Mips targets
890 stepping out of main.
894 * gdb.c++/local.cc (main): Move call to marker1() inside nested
895 scope so that the nested scope tests will make sense.
896 * gdb.c++/local.exp: Write patterns that actually work with gcc
897 (the HP patterns "were never known to work with gcc").
898 Keep the old aCC patterns too.
902 * gdb.base/attach.exp: Correct target board test.
906 * gdb.c++/method.exp: Require "const ... A * ..." for "ptype this"
907 in a const method. Add some xfail and fail cases for configurations
908 that do not emit the "const ...".
912 * gdb.c++/method.exp: Use gdb_test instead of send_gdb/gdb_expect.
913 Accept "A * const" and "const A * const" as type of "this".
914 Fix spelling of getFunky throughout. Make messages uniform.
918 Work around for PR gdb/285:
919 * gdb.asm/asm-source.exp: Bail out if multilibs are detected.
923 * gdb.asm/asm-source.exp: Build symbolic link to arch specific
924 instructions file at run time instead of configure time.
925 Sometimes we run the test in a directory that is not the one we
927 * gdb.asm/configure.in: Delete creation of symlink.
928 * gdb.asm/configure: Regenerate.
932 * gdb.gdb/xfullpath.exp: New test, to exercise the new
933 xfullpath () function.
937 * gdb.asm/Makefile.in: Correct dependencies.
939 * gdb.asm/powerpc.inc: New file.
940 * gdb.asm/asm-source.exp: Add PowerPC.
941 * gdb.asm/configure.in: Likewise.
942 * gdb.asm/configure: Regenerated.
946 * gdb.base/relocate.exp: New file.
947 * gdb.base/relocate.c: New file.
951 * gdb.base/step-test.exp: Update comment regarding stopping in
952 memcpy/bcopy calls inserted as part of the compiler runtime.
956 * gdb.base/ovlymgr.c: Add overlay event breakpoint support.
960 * lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
961 (gdb_expect): Remove $notransfer hack.
965 * gdb.c++/classes.exp ("calling method for small class"): Match
966 updated register output.
971 * gdb.base/dbx.exp: Restore old definition of gdb_file_cmd
972 when finished. Make gdb_file_cmd send "exec-file" when
977 * gdb.base/attach.exp: Remove extra setup_xfail.
981 * gdb.base/default.exp: Add tests for dump, append, and restore.
982 * gdb.base/help.exp: Add tests for dump, append, and restore.
983 * gdb.base/dump.exp: New file, test dump, append and restore.
984 * gdb.base/dump.c: New file.
988 * gdb.base/help.exp: Modify expect strings to reflect
989 clean-ups in help messages.
993 * gdb.base/step-test.exp: Accept stopping in memcpy/bcopy when we
994 have debugging info for those functions and the compiler uses them
995 internally to copy structs around.
999 * gdb.base/list.exp: Revert the change made yesterday and add note
1000 about why we don't list the default lines for remote targets.
1004 * gdb.base/help.exp: Clean up unnecessary wild cards in regexps.
1008 * gdb.base/list.exp: This test works on remote targets so remove
1009 the short circuit for remote targets. Update copyright.
1013 * gdb.base/attach.exp: Fix logic error that was suppressing this
1014 test for all non hppa*-*-hpux* targets, instead of the hp target.
1015 Move comments closer to the suppression point. Also now need to
1016 check that we are running natively.
1020 * gdb.base/default.exp: Add test for gcore. Update copyright.
1021 * gdb.base/help.exp: Add test for gcore. Update copyright.
1025 * gdb.base/funcargs.c: Remove extraneous ';' character.
1026 * gdb.trace/gdb_c_test.c: Remove extraneous ';' character.
1030 * gdb.mi/mi-var-cmd.exp: In test "create local variable func",
1031 accommodate gcc v3 function signature.
1032 * gdb.mi/mi0-var-cmd-exp: Ditto.
1036 * testsuite/gdb.base/huge.c: Replace ``Linux'' with either
1037 ``GNU/Linux'' or ``Linux kernel''
1038 * testsuite/gdb.threads/pthreads.c: Ditto.
1042 * gdb.threads/pthreads.c (thread1): Add a return statement.
1043 (thread2): Likewise.
1048 * gdb.threads/linux-dp.c (philosopher): Add a return statement
1053 * gdb.c++/templates.exp: Remove setup_xfail_format "stabs" on
1054 test "ptype bint". The test passes on all my stabs configurations.
1058 * gdb.asm/asm-source.exp: Parse the output from `info sources' one
1059 filename at a time, and watch for the ones we want to see.
1061 * gdb.base/ptype.exp, gdb.base/ptype.c: Add tests for printing
1062 types of pointers to prototyped functions.
1066 * gdb.base/sizeof.c (main): Call fill_structs. Print value of
1067 signed, unsigned and straight char.
1068 (padding_char, padding_short, padding_int, padding_long,
1069 padding_long_long, padding_float, padding_double,
1070 padding_long_double): New global variables.
1071 (fill, fill_structs): New functions.
1073 * gdb.base/sizeof.exp: Check for signed and unsigned char. Check
1074 for correctly sized writes. Update copyright.
1075 (get_valueof): New procedure.
1076 (get_sizeof): Call get_valueof.
1077 (check_valueof): New procedure.
1078 (check_padding): New procedure.
1082 * gdb.c++/virtfunc.exp (test_virtual_calls): Remove obsolete calls
1083 to setup_xfail. Document some of the remaining calls.
1087 * gdb.c++/userdef.exp: Update copyright year.
1091 * gdb.c++/userdef.exp: Test overloaded operators properly.
1096 * gdb.base/gcore.exp: Relax recognition of function breakpoint.
1100 * gdb.base/a2-run.exp: Check for a remote target properly.
1101 * gdb.base/annota1.exp: Likewise.
1102 * gdb.base/list.exp: Likewise.
1103 * gdb.base/reread.exp: Likewise.
1104 * gdb.base/scope.exp: Likewise.
1105 * gdb.base/shlib-call.exp: Likewise.
1106 * gdb.base/term.exp: Likewise.
1107 * gdb.c++/annota2.exp: Likewise.
1111 * gdb.base/watchpoint.exp: Restore previous timeout at end of test.
1115 * gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
1116 (call_after_alloca): Ditto.
1120 * gdb.base/ending-run.exp: Guard "cont" test with
1121 gdb_skip_stdio_test.
1125 * gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Move these tests
1127 * gdb.hp/gdb.base-hp/callfwmall.c, gdb.hp/gdb.base-hp/callfwmall.exp:
1128 To here. Disable this test on non-HP platforms. Add big comment.
1132 * gdb.base/ovlymgr.c (ovly_copy): Generalize for targets
1133 other than d10v and m32r.
1137 * gdb.base/default.exp: Rewrite test patterns to reduce time
1138 taken to match them.
1142 * gdb.base/annota1.exp (backtrace from shlibrary): Fix spelling.
1143 Allow a start function above main.
1144 * gdb.threads/linux-dp.exp: Fix copyright date.
1148 * gdb.threads/linux-dp.exp: Use 'array unset', not 'array set'.
1149 (check_philosopher_stack): Check for manager thread before checking
1150 for a just-starting thread.
1155 * gdb.base/bitfields.c: Correct assignments to bitfields to avoid
1160 * gdb.base/restore.exp (restore_tests): Fix obvious typo, callee
1165 * gdb.base/reread.exp: Check that GDB properly re-reads the
1166 executable file when it changes while no inferior is running.
1170 * gdb.base/maint.exp: Simplify the "maint info breakpoints" test to
1171 optionally accept the "shlib events" variation.
1175 * gdb.base/ending-run.c (main): Avoid messing with setvbuf; just
1176 call `fflush' after every `printf', so that the output is produced
1177 at predictable points, regardless of whatever buffering does (or
1178 doesn't) take place.
1179 * gdb.base/ending-run.exp: Adjust tests to expect output to appear
1180 at different points.
1184 * gdb.c++/inherit.exp: Update copyright years.
1185 * gdb.c++/method.exp: Likewise.
1189 * gdb.c++/classes.exp: Update for improved v3 support and skipping
1190 artificial methods/arguments.
1191 * gdb.c++/derivation.exp: Likewise.
1192 * gdb.c++/inherit.exp: Likewise.
1193 * gdb.c++/method.exp: Likewise.
1194 * gdb.c++/virtfunc.exp: Likewise.
1198 * gdb.hp/gdb.threads-hp/usrthfork.exp: Mark as obsolete.
1199 * gdb.hp/gdb.threads-hp/usrthcore.exp: Ditto.
1200 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Ditto.
1201 * gdb.hp/gdb.threads-hp/usrthfork.c: Ditto.
1202 * gdb.hp/gdb.threads-hp/usrthbasic.c: Ditto.
1203 * gdb.hp/gdb.threads-hp/usrthcore.c: Ditto.
1207 * gdb.asm/asm-source.exp (info symbol): Take another shot at
1208 anchoring the pattern matching the entry point symbol's name.
1212 * gdb.base/maint.exp: Update ``maint internal-error'' to match
1213 continue/quit query. Update copyright.
1217 * gdb.base/gcore.exp: Remove extra debugging output.
1221 * gdb.c++/demangle.exp: Accept slightly dubious v2 demangler result
1222 for slightly dubious v2 mangled string.
1226 * gdb.base/completion.exp: Expand ${srcdir} to an absolute path.
1230 * gdb.c++/namespace.exp: Accept trailing const for 'this'.
1232 * gdb.c++/classes.exp: Accept 'A const' or 'const A' in copy
1234 * gdb.c++/derivation.exp: Likewise.
1235 * gdb.c++/templates.exp: Likewise.
1236 * gdb.c++/virtfunc.exp: Likewise.
1240 * gdb.c++/namespace.exp: Accept both '\0' and '\000'.
1244 * gdb.base/gcore.exp: New test for generate-core-file command.
1245 * gdb.base/gcore.c: Testcase for above.
1246 * gdb.threads/gcore-thread.exp: New test for gcore (threaded).
1250 * gdb.c++/userdef.cc: Use <iostream> instead of <iostream.h>.
1254 * gdb.c++/overload.exp: Remove unconditional xfails for:
1255 print foo_instance1.overloadargs(1)
1256 print foo_instance1.overloadargs(1, 2)
1257 print foo_instance1.overloadargs(1, 2, 3)
1258 print foo_instance1.overloadargs(1, 2, 3, 4)
1259 print foo_instance1.overloadargs(1, 2, 3, 4, 5)
1260 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6)
1261 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7)
1262 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8)
1263 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9)
1264 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
1265 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
1266 print foo_instance1.overload1arg()
1267 print foo_instance1.overload1arg((char)arg2)
1268 print foo_instance1.overload1arg((signed char)arg3)
1269 print foo_instance1.overload1arg((unsigned char)arg4)
1270 print foo_instance1.overload1arg((int)arg7)
1271 print foo_instance1.overload1arg((unsigned int)arg8)
1272 print foo_instance1.overload1arg((float)arg11)
1273 print foo_instance1.overload1arg((double)arg12)
1277 * gdb.base/huge.exp: New test. Print a very large target data object.
1278 (skip_huge_test): New test variable. Define if you want to skip this
1279 test. The test reads an 8 megabyte data object from the target, so it
1280 might be very time consuming on remote targets with a slow connection.
1281 * gdb.base/huge.c: New file. Test case for above.
1285 * gdb.c++/derivation.exp: Remove gcc xfails for g_instance.afoo,
1286 g_instance.bfoo, and g_instance.cfoo.
1290 * gdb.base/break.c (multi_line_if_conditional): New function.
1291 (multi_ilne_while_conditional): Likewise.
1292 * gdb.base/break.exp: Verify that a breakpoint on a multi-line
1293 IF or WHILE condition puts the breakpoint at the start of
1296 * gdb.base/selftest.exp (backtrace through signal handler): Remove
1297 hppa*-*-hpux* expected failure.
1298 * gdb.base/structs.exp (do_function_calls): Similarly.
1300 * gdb.c++/annota2.exp (watch triggered on a.x): Handle hardware
1306 * gdb.base/structs.exp: Replace skip for a29k with skip for
1307 gdb,cannot_call_functions.
1308 * gdb.base/call-ar-st.exp: Remove references to a29k in comments.
1309 * gdb.base/callfuncs.exp: Ditto.
1310 * gdb.base/call-rt-st.exp: Ditto.
1311 * gdb.base/call-strs.exp: Ditto.
1312 * gdb.base/callfwmall.exp: Ditto.
1313 * gdb.base/scope.exp: Obsolete xfail a29k.
1314 * gdb.c++/misc.exp: Ditto.
1315 * gdb.c++/cplusfuncs.exp: Ditto.
1316 * gdb.base/ptype.exp: Ditto.
1317 * gdb.base/printcmds.exp: Ditto.
1318 * gdb.base/opaque.exp: Ditto.
1319 * gdb.base/list.exp: Ditto.
1320 * gdb.base/funcargs.exp: Ditto.
1321 * gdb.base/default.exp: Ditto.
1325 * gdb.base/info-proc.exp: New file, test for "info proc" cmd.
1326 * gdb.base/maint.exp: Add tests for maint info sections options.
1330 * gdb.base/default.exp: Remove bogus hppa*-hp-hpux* xfails.
1334 * gdb.asm/arm.inc: New file.
1335 * gdb.asm/asm-source.exp: Add arm targets.
1336 * gdb.asm/configure.in: Ditto.
1337 * gdb.asm/configure: Recreated from configure.in.
1341 * gdb.hp/gdb.defects/bs15503.exp: Only run this test if compiling
1343 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
1344 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
1345 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
1346 * gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.
1348 * gdb.hp/gdb.defects/solib-d.exp: Update to handle building with
1349 either HP's compilers or GCC.
1351 * gdb.hp/gdb.base-hp/hwwatchbus.exp: Allow inferior to get either
1352 a SIGBUS or SIGSEGV.
1354 * gdb.hp/gdb.base-hp/so-thresh.exp: Remove useless send_user command.
1356 * gdb.hp/gdb.defects/bs14602.exp: Revamp slightly so that test
1357 can be compiled with either HP's compiler or GCC.
1359 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Disable completely.
1360 * gdb.hp/gdb.threads-hp/usrthcore.exp: Disable completely.
1361 * gdb.hp/gdb.threads-hp/usrthfork.exp: Disable completely.
1363 * gdb.hp/gdb.base-hp/so-thresh.exp: Update text in expect strings
1364 to match current gdb output. Update due to using auto-solib-limit
1365 for limiting instead of overloading auto-solib-add.
1366 * gdb.hp/gdb.base-hp/so-thresh.mk: Always use "cc" to build the
1369 * gdb.c++/templates.exp: Use "hppa64-*-*", not "hppa2.0w-*-*"
1370 * gdb.hp/gdb.base-hp/dollar.exp: Likewise
1371 * gdb.hp/gdb.base-hp/pxdb.exp: Likewise.
1372 * gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise.
1373 * gdb.hp/gdb.base-hp/reg.exp: Likewise.
1374 * gdb.hp/gdb.compat/xdb3.exp: Likewise.
1375 * gdb.hp/gdb.defects/bs15503.exp: Likewise.
1376 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise
1377 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise
1378 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise
1379 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Likewise.
1380 * gdb.hp/gdb.threads-hp/usrthcore.exp: Likewise.
1381 * gdb.hp/gdb.threads-hp/usrthfork.exp: Likewise.
1383 * gdb.base/annota1.exp: Expect failure for hpux11 when posting
1384 a SIGTRAP to the inferior.
1388 * gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
1389 Substitute call to target_link by call to gdb_compile.
1393 * gdb.base/break.exp: Fix HP specific search string when testing
1394 backtracing in a called function.
1396 * gdb.base/constvars.exp: Only set lang to C++ if we're
1397 compiling the test with HP's compilers.
1398 * gdb.base/volatile.exp: Similarly.
1402 * gdb.base/printcmds.exp: Expect the null character to be printed
1403 as '\0', and the '\013' to be printed as '\v'.
1404 * gdb.base/callfuncs.exp ("backtrace at nested call level 4"): Same.
1405 * gdb.base/setvar.exp: Same.
1409 * gdb.base/completion.exp: Rather than completing very long
1410 filenames, which can make the readline library produce output we
1411 don't recognize, cd to the directory first, and then complete
1412 using nice, short relative paths.
1414 * gdb.base/completion.exp: On some systems, there is, in fact, a
1415 variable named `b' in scope, since GDB treats all static
1416 variables as being in scope. So use `no_var_named_this'
1419 * gdb.base/corefile.exp: Recognize the message saying that GDB
1420 can't find the core file's registers as a failure.
1424 * gdb.base/commands.exp (user_defined_command_test): Make "show user"
1425 test expect string more specific.
1429 * gdb.asm/asm-source.exp: Add support for xstormy16.
1430 * gdb.asm/configure.in: Ditto.
1431 * gdb.asm/configure: Rebuild.
1432 * gdb.asm/xstormy16.inc: New file.
1436 * gdb.base/maint.exp: Update to match changes in type dumping code.
1440 * gdb.asm/asm-source.exp (info symbol): Anchor the pattern
1441 matching the entry point symbol's name at the beginning of the
1446 * gdb.c++/classes.exp, gdb.c++/derivation.exp,
1447 gdb.c++/inherit.exp, gdb.c++/method.exp,
1448 gdb.c++/namespace.exp, gdb.c++/templates.exp,
1449 gdb.c++/userdef.exp, gdb.c++/virtfunc.exp: Updates for v3 demangler
1450 and class layout support.
1454 * gdb.c++/classes.exp: Add test for static member function.
1455 * gdb.c++/misc.cc: Add class with static member function.
1459 If GDB says it can't find the struct the function returned, report
1460 those tests as `unsupported'.
1461 * gdb.base/call-rt-st.exp (print_struct_call): New function.
1462 Rewrite subsequent tests to use it.
1464 If GDB says it can't find the struct the function returned, report
1465 those tests as `unsupported'.
1466 * gdb.base/structs.exp (call_struct_func): New function.
1467 (do_function_calls): Use call_struct_func to call the functions
1470 * gdb.base/callfuncs.exp: The stabs generated by GCC don't tell us
1471 whether functions are prototyped or not, so we can't possibly pass
1472 arguments to t_float_values2 properly.
1474 * gdb.base/break.exp: (test_next_with_recursion): Don't change the
1475 value of `timeout' for targets other than the mips*tx39-*.
1479 * gdb.asm/asm-source.exp: Add tests for info target, info symbol,
1480 and detect whether the start symbol has a leading underscore.
1484 * gdb.base/completion.exp: Clarify indentation.
1488 * gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int'
1489 variables on the S/390, not `.word'.
1493 Add assembly-source tests for s390-ibm-linux.
1494 * gdb.asm/s390.inc: New file.
1495 * gdb.asm/configure.in, gdb.asm/asm-source.exp: Add clauses for
1496 the S/390 architecture.
1497 * gdb.asm/configure: Regenerated.
1501 * gdb.asm/asm-source.exp: Add tests for list, search, finish, return,
1502 next, info source, info sources, info line, global and static
1503 variables, and static functions.
1504 * gdb.asm/common.inc: New macro gdbasm_datavar (default definition).
1505 * gdb.asm/i386.inc: Override default definition of gdbasm_datavar.
1506 * gdb.asm/asmsrc1.s: Add a static function and some variables.
1507 * gdb.asm/asmsrc2.s: Make foo2 call foo3 twice (to test 'next').
1508 * gdb.asm/d10v.inc (gdbasm_enter): Set up frame pointer.
1509 (gdbasm_leave): Restore frame pointer.
1510 (gdbasm_startup): Copy stack set-up from crt0.S.
1515 * gdb.base/callfuncs.c (t_structs_a): Do not return a pointer
1516 to a local (non-static) variable. Copy tstruct.a to a static buffer
1517 and return a pointer to that buffer.
1518 * gdb.base/callfwmall.c (t_structs_a): Ditto.
1522 * gdb.asm/configure.in: Fix recognition of ix86 target.
1523 * gdb.asm/configure: Regenerate.
1527 * gdb.asm/sparc.inc: New file.
1528 * gdb.asm/asm-source.exp: Recognize sparc target.
1529 * gdb.asm/configure.in: Recognize sparc target.
1530 * gdb.asm/configure: Regenerate.
1534 * gdb.asm/m32r.inc: New file.
1535 * gdb.asm/asm-source.exp: Recognize m32r target.
1536 * gdb.asm/configure.in: Recognize m32r target.
1537 * gdb.asm/configure: Regenerate.
1541 * gdb.asm/i386.inc: New file.
1542 * gdb.asm/asm-source.exp: Recognize ix86 target.
1543 * gdb.asm/configure.in: Recognize ix86 target.
1544 * gdb.asm/configure: Regenerate.
1546 * gdb.c++/namespace.exp: Fix quotes in output messages.
1550 * gdb.base/code-expr.exp: New file. Tests use of the "@code"
1551 qualifier in a type cast expression, to designate an address
1552 in the instruction space (Harvard architecture).
1556 * gdb.base/cvexpr.c, gdb.base/cvexpr.exp: New files.
1557 Tests for expressions using 'const' and 'volatile'.
1561 * gdb.asm/asm-sources.exp: Allow defining linker flags.
1565 * lib/mi-support.exp (mi_run_to_helper): Move comments
1566 outside of gdb_expect.
1570 * lib/mi-support.exp: (mi_run_to_helper, mi_run_to,
1571 mi_step_to, mi_next_to, mi_continue_to, mi_finish_to,
1572 mi0_step_to, mi0_next_to, mi0_continue_to, mi0_finish_to,
1573 mi0_run_to): New functions.
1574 * gdb.mi/mi-simplerun.exp: Use them.
1575 * gdb.mi/mi0-simplerun.exp: Likewise.
1576 * gdb.mi/mi-var-cmd.exp: Likewise.
1577 * gdb.mi/mi0-var-cmd.exp: Likewise.
1581 * gdb.asm/asmsrc1.s: Add ``gdbasm_'' prefix to all macros.
1582 * gdb.asm/asmsrc2.s, gdb.asm/d10v.inc: Update.
1586 * gdb.base/restore.exp: Include $expected value in restored test
1591 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
1596 * gdb.base/callfuncs.exp: Add tests for nested call dummies.
1597 Add pass/fail message for stop at breakpoint in call dummy function.
1601 * gdb.c++/templates.exp (test_template_breakpoints):
1602 If we get an overload menu, but it does not match what
1603 we expect, we still need to issue the "cancel" command.
1604 * gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
1605 making the whitespace optional. Argument for "new" may be
1606 "unsigned" as well as "unsigned int/long".
1607 * gdb.c++/templates.exp: Replace "const &" with "const ?&",
1608 making the whitespace optional. Also replace "(void) with
1609 "((void|)), making the keyword "void" optional.
1610 * gdb.c++/virtfunc.exp: Replace "const &" with "const ?&",
1611 making the whitespace optional. Also replace "(void) with
1612 "((void|)), making the keyword "void" optional.
1613 * gdb.base/callfuncs.c (t_float_values): This function must
1614 _not_ be prototyped, and the following function (t_float_values2)
1615 must be prototyped (if the compiler supports it), so that GDB
1616 can be tested against both cases. Usually one case involves
1617 promotion of float to double, while the other does not.
1618 * gdb.base/callfwmall.c: Ditto.
1619 * gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that
1620 includes a stack frame for "start".
1624 * gdb.stabs/weird.exp: Delete "p v_comb" test. It assumes that
1625 pointers are 32 bits long, and that offsets of relocs are always
1626 stored in the data (REL-style), and not in the reloc entry itself
1628 * gdb.stabs/weird.def (v_comb, v_comb_shared): Remove symbols and
1633 * gdb.c++/cplusfuncs.exp: Fix conflicts between operator names
1634 and regular expression operators by using quoting.
1638 * gdb.c++/overload.exp: Select overloadfnarg(void) or overloadfnarg(),
1639 depending on what the symbol table contains.
1640 * gdb.c++/derivation.exp: Accept both "foo(void)" and "foo()" in
1641 the output of the ptype command. Similarly, accept both "const &"
1646 * gdb.base/miscexprs.c (main): Add usage of preprocessor
1647 symbol `STORAGE' to allow to choose the storage class of
1648 the local datastructures.
1649 * gdb.base/miscexprs.exp: Handle setting a `-DSTORAGE=...'
1654 * gdb.base/jump.exp: Allow it to run for all targets.
1658 * gdb.base/call-ar-st.c (print_double_array): Match for loop
1659 with new double_array size.
1660 (main): Change storage class of all local variables to static.
1661 Reduce size of double_array to 9.
1662 * gdb.base/call-ar-st.exp: Increase timeout value.
1663 Change expected output for double array to match new size in
1668 * gdb.base/ending-run.exp: Create identical output when passing
1669 `step to end of run' case. Add regular expression branch satisfying
1674 * gdb.base/interrupt.exp: Treat SIGILL similar to SIGSEGV such
1675 that we catch the expected failure under Linux/x86.
1679 * gdb.base/setvar.exp: Escape curly braces.
1680 * gdb.stabs/weird.exp: Ditto.
1684 * gdb.mi/mi-hack-cli.exp: Remove excess newlines from test strings.
1685 * gdm.mi/mi0-hack-cli.exp: Likewise.
1689 * gdb.stabs/weird.exp: Unify ``variable VAR printed properly''
1694 * lib/mi-support.exp (mi_gdb_start): Don't require MI_OUT when
1695 checking MI enabled.
1699 * gdb.base/maint.exp: Treat $EXEEXT as optional in output.
1703 * lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
1704 if gdb child process crashes, just signal an error.
1708 * lib/gdb.exp (test_xfail_format): Simplify.
1710 * lib/gdb.exp (setup_xfail_format): Don't forget to put a `$' in
1711 front of the variable name `format'. Simplify `if'.
1715 * gdb.threads/pthreads.exp: Wait for output and delay
1720 * gdb.mi/mi-var-display.exp (continue to incr_a): Recognize
1721 some incorrect output instead of timing out.
1722 * gdb.mi/mi-var-display.exp (continue to incr_a): Likewise.
1726 * gdb.base/volatile.exp (local_compiler_xfail_check): Change qux2
1727 check to allow additional `int'.
1731 * gdb.base/completion.exp: Remove incorrect 'p "a' test.
1732 Add tests for 'p "break' (pass) and 'p "break.' (xfail).
1736 * lib/gdb.exp (test_debug_format): New proc.
1737 (setup_xfail_format): Use new proc test_debug_format.
1738 * gdb.base/constvars.exp (local_compiler_xfail_check): New
1739 proc; use new service proc test_debug_format.
1740 Replace all other "gcc_compiled" tests with this test.
1741 * gdb.base/volatile.exp (local_compiler_xfail_check): New
1742 proc; use new service proc test_debug_format.
1743 Replace all other "gcc_compiled" tests with this test.
1747 * gdb.base/cvexpr.exp: New file.
1748 * gdb.base/cvexpr.c: New file
1749 Test for expressions using const and volatile keywords.
1753 * gdb.base/constvars.exp: Check for different orders of keywords
1754 and additional "int" strings in output.
1758 * gdb.base/maint.exp: Add "maintenance set/show" to list of valid
1759 responses from "help maint".
1763 * lib/insight-support.exp (_gdbtk_xvfb_init): Set DISPLAY
1764 to localhost:NNN instead of :NNN, in case Xvfb is listening
1769 * gdb.base/recurse.exp: When checking leaving the watchpoint
1770 scope, recognize when gdb is in function's epilogue and pass.
1774 * lib/insight-support.exp (_gdbtk_export_target_info): Add
1775 support for running tests against sid targets.
1776 (gdbtk_done): Ditto.
1780 * gdb.base/ending-run.c (main): Set stdout buffersize
1781 to the same reasonable value for any target.
1782 * gdb.base/ending-run.exp: Add a regular expression
1783 to make testsuite happy on Sanyo Stormy16 target.
1787 * gdb.base/display.c (do_loops): Add float variable `f'.
1788 Increment f in loop.
1789 * gdb.base/display.exp: Increment timeout by 60 seconds.
1790 Change float display test to use variable `f'.
1794 * gdb.base/restore.exp: Use temporary breakpoints, to avoid
1795 overflowing the limited breakpoint tables on some ROM monitors
1800 * lib/insight-support.exp (_gdbtk_xvfb_init): Start Xvfb with
1801 the "-ac" (disable access control) flag.
1805 * gdb.base/remote.c: Use a small buffer for targets with 16-bit
1810 * lib/gdb.exp: Move all insight-related functionality into
1812 * lib/insight-support.exp: New file.
1816 * config/sid.exp (sid_start): Never set sid verbosity; disable
1817 expect_background {} that consumed its stdout; tolerate </dev/null.
1818 Attempt to set endianness override in "sid" protocol mode. Cleanup.
1822 * lib/mi-support.exp (mi_gdb_start): If a remote target, use the
1823 CLI jump command to start it.
1824 (mi_run_to_main): Fail immediatly when unexpected output.
1828 * lib/mi-support.exp (mi_gdb_start): Move call to sid_start to
1829 beginning of function. Fix PR gdb/191.
1833 * config/sid.exp (sid_start): Don't warn if we cannot figure out
1834 what to force sid endianness to.
1838 * lib/gdb.exp (gdbtk_start): Don't set environment
1839 variables for TCL_LIBRARY and friends. Insight will
1840 now figure these out for itself.
1844 * gdb.base/completion.exp: Remove the symbol "a64l" from
1845 the expect string; this is target-specific, and not related
1846 to what is being tested.
1850 * config/sid.exp: Rename gdb-socket to cpu-gdb-socket.
1854 * gdb.base/consecutive.exp: New file. Test stepping over
1855 breakpoints on consecutive instructions.
1856 * gdb.base/consecutive.c: New file.
1858 * gdb.base/call-rt-st.exp: Use double-backslash to quote
1859 curly braces in regular expressions.
1863 * gdb.base/ending-run.exp: Accept "Program exited normally" as
1864 legitimate output from stepping out of main.
1868 * lib/gdb.exp (_gdbtk_xvfb_init): If GDB_DISPLAY is
1869 the empty string, do not run the tests.
1873 * gdb.base/long_long.exp: Detect size of pointer. Take into
1874 account 2-byte pointers when testing for p/a results.
1878 * gdb.base/remote.c (RANDOM_DATA_SIZE): New define, defaults to 48K
1879 and defined to 1K for m68hc11.
1880 (random_data): Reduce table to 1K for embedded platforms (68hc11).
1881 * gdb.base/remote.exp (get_sizeof): New function from sizeof.exp.
1882 (sizeof_random_data): New variable to tell the size of the data table;
1883 don't test past this size; always run to main.
1887 * gdb.base/return2.exp: return of long long and double fails for
1888 68HC11; don't execute these tests on that platform.
1889 * gdb.base/return.exp: Return of a double fails for 68hc11.
1893 * call-ar-st.exp: Use gdb_skip_float_test to avoid executing
1894 tests that print a float.
1895 * call-rt-st.exp: Likewise.
1899 * gdb.base/so-impl-ld.exp: Remove stray space that prevented
1900 running this test on Linux.
1904 * gdb.base/arithmet.exp: Remove some tests to make all test names
1909 * gdb.c++/classes.exp: Accept both "foo(void)" and "foo()" in
1910 the output of the ptype command.
1914 * gdb.base/completion.exp: Don't assume that break.c is the only
1915 source file that may contain functions named "marker".
1916 * gdb.base/corefile.exp: Quote the curly braces in regexp.
1920 * gdb.disasm/Makefile.in (clean mostlyclean): Add h8300s to list
1924 * gdb.disasm/h8300s.exp: New file.
1925 gdb.disasm/h8300s.s: Likewise.
1929 * lib/mi-support.exp (mi_delete_breakpoints): Accept mi1 format
1930 empty breakpoint tables.
1934 * lib/mi-support.exp: Update args=... part of stop-reason
1935 patterns. Accept either a list or a tuple.
1939 * lib/mi-support.exp: Remove local emacs variable defining
1940 change-log-default-name.
1944 * gdb.base/arithmet.exp: Use gdb_test instead of send_gdb/gdb_expect.
1945 This is operationally compatible with the previous version.
1949 * lib/gdb.exp (gdb_test): Doc fix.
1953 * gdb.base/exprs.exp: Remove a duplicate test.
1957 * gdb.base/return2.exp (main): Use values to test float and double
1958 returns that are not NaN's, to avoid being confused by IEEE
1963 * gdb.threads/pthreads.exp (check_control_c): Return 0 for success,
1964 non-zero if control_c fails. Terminate the test on failure,
1965 rather than wait for 12 more tests to time out.
1969 * gdb.base/exprs.exp ("sizeof (long long) > sizeof (long) (true)"):
1970 Don't forget to match the GDB prompt.
1972 * gdb.trace/gdb_c_test.c, actions.c: Fix misspellings.
1976 * gdb.base/help.exp: Update pattern to exclude `print-load-map'
1981 * gdb.base/annota1.exp (info break): Match four or more spaces
1986 * gdb.c++/cplusfuncs.cc (dm_type_char_star): Remove superfluous cast.
1987 (dm_type_int_star): Likewise.
1988 (dm_type_long_star): Likewise.
1989 (dm_type_void_star): Likewise.
1993 * gdb.base/completion.exp (INPUTRC): Set this environment variable
1994 to a known value in order to get consistent results regardless
1995 of the setting of INPUTRC or the presence or contents of .inputrc.
1999 * gdb.threads/linux-dp.exp: Remove assumptions about thread ordering.
2000 Don't require that the main thread and the manager thread are the
2003 * gdb.threads/pthreads.exp (test_startup): Relax test for thread
2004 debugging. If test fails, issue an "unsupported" not a "fail".
2008 Don't assume that short is shorter than int.
2009 * gdb.base/exprs.exp ("print unsigned short == (~0)"): Don't
2010 assume that shorts are smaller than ints. On a 16-bit machine,
2012 ("print unsigned char == (~0)"): Add test that verifies that ~0,
2013 an int, is not equal to ~0 stored in an unsigned char. This tests
2014 the same thing that the previous test meant to, but works on
2015 16-bit machines, too.
2016 ("print unsigned char != (~0)"): Same test, complemented.
2020 * gdb.threads/pthreads.exp (all_threads_running): Add an explicit
2021 test for (full_coverage == 0). This makes the test run faster,
2022 and prevents dejagnu getting out of step.
2026 * gdb.base/finish.exp (finish_void): Revise pattern for
2027 stopping on the call statement to not permit stopping at
2028 the start of the instructions comprising the call sequence.
2032 * gdb.base/callfuncs.exp: Make all test names unique.
2033 * gdb.base/commands.exp: Make all test names unique.
2034 * gdb.base/condbreak.exp: Make all test names unique.
2035 * gdb.base/dbx.exp: Make all test names unique.
2036 * gdb.base/default.exp: Make all test names unique.
2037 * gdb.base/define.exp: Make all test names unique. Conform some FAIL
2038 and TIMEOUT messages to their corresponding PASS message.
2039 * gdb.base/ending-run.exp: Make all test names unique.
2040 * gdb.base/long_long.exp: Remove duplicate test.
2044 * gdb.base/finish.exp (finish_void): Allow "finish" command to
2045 stop on the call statement as well as the statement after the
2050 * gdb.base/long_long.exp: Allow for targets with 4-byte short.
2054 * gdb.base/completion.exp: Revamp test. Make it execute on all
2059 * config/gdbserver.exp (gdb_load): Handle the case
2060 in which the arguments to gdbserver are given in the
2061 baseboard configuration file.
2062 Also handle the case in which the server needs to do a
2067 * lib/gdb.exp (gdbtk_initialize_display): New proc which will
2068 set up the display for testing.
2069 (gdbtk_start): Convert all paths to paths that tcl will like.
2070 Export target information to environment.
2071 (_gdbtk_xvfb_init): New proc to start Xvfb if available and
2073 (_gdbtk_xvfb_exit): New proc to kill Xvfb if necessary.
2074 (to_tcl_path): New proc to convert a given pathname into
2075 a path acceptible as an argument to a tcl command.
2076 (_gdbtk_export_target_info): New proc to export target info
2077 into the environment for gdbtk testing.
2078 (gdbtk_done): New proc to signal end-of-test.
2082 * restore.c: Make the code of caller0 correspond to its comment.
2086 * config/sid.exp (gdb_target_sid): Check for error messages.
2087 On error or timeout, don't make expect exit (which will terminate
2088 all subsequent tests); instead just make gdb exit.
2089 (gdb_load): Check for error messages. On error or timeout,
2090 return a negative value.
2094 * gdb.c++/templates.exp: If we see the prompt for the overload
2095 list, but we haven't recognized any of the longer patterns,
2096 arrange for this test to fail, not hang.
2098 * gdb.c++/classes.exp (ptype class A): Tolerate whitespace
2103 * gdb.c++/local.exp: Use the 'runto' library function.
2104 * gdb.c++/namespace.exp: Likewise.
2105 * gdb.c++/overload.exp: Likewise.
2109 * gdb.base/Makefile.in (EXECUTABLES): Add step-line.
2110 * gdb.base/step-line.exp: New file. Test step/next in presence of
2112 * gdb.base/step-line.c: New file. Test program for the above.
2113 * gdb.base/step-line.inp: New file. We pretend that this file has
2114 been transformed by some other tool into step-line.c.
2118 * gdb.c++/userdef.exp: Check that GDB tolerates whitespace in
2119 unmangled operator names.
2123 * gdb.threads/linux-dp.exp: Recognize an additional message
2124 generated by GDB when it doesn't understand how to debug threads
2125 on the target system.
2129 * gdb.mi/mi-console.exp: Document ``Hello'' as a known bug.
2133 * gdb.c++/derivation.exp: Use the 'runto' library function.
2137 * gdb.c++/annota2.exp: Fix regular expression for "post-query".
2141 * gdb.c++/ref-types.exp: Change handwritten code to library
2146 * gdb.base/signals.exp: Set count to 0 explicitly.
2150 * config/monitor.exp (gdb_target_cmd): Add explicit error return.
2151 (gdb_target_monitor): Add check of gdb_target_cmd return value.
2152 (gdb_load): Add support for additional target_info: gdb_download_size
2153 and gdb_load_timeout.
2157 * gdb.base/annota1.exp: Move test of isnative to earlier in the
2158 file -- to prevent failing when the compile fails but we have no
2159 intention of running the tests anyway.
2161 * gdb.base/long_long.exp: Test target_info for no_long_long, skip
2164 * gdb.base/maint.exp: Support 2 byte integers as well as 4 byte
2167 * gdb.c++/ctti.exp: Skip tests if skip_cplus_tests returns true.
2168 * gdb.c++/namespace.exp: Ditto.
2172 * gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
2173 * gdb.base/pointers.exp: Relax pattern match of decimals.
2177 * Makefile.in, config/abug.exp, config/cfdbug.exp,
2178 config/cpu32bug.exp, config/dve.exp, config/est.exp,
2179 config/gdbserver.exp, config/hmsirom.exp, config/hppro.exp,
2180 config/i960.exp, config/m32r.exp, config/mn10300-eval.exp,
2181 config/monitor.exp, config/proelf.exp, config/rom68k.exp,
2182 config/sh.exp, config/sid.exp, config/slite.exp,
2183 config/sparclet.exp, config/udi.exp, config/unknown.exp,
2184 config/vr4300.exp, config/vr5000.exp, config/vx.exp,
2185 config/vxworks.exp, config/vxworks29k.exp,
2186 gdb.asm/asm-source.exp, gdb.base/a2-run.exp,
2187 gdb.base/all-bin.exp, gdb.base/annota1.exp,
2188 gdb.base/arithmet.exp, gdb.base/assign.exp,
2189 gdb.base/async.exp, gdb.base/attach.exp,
2190 gdb.base/bitfields.exp, gdb.base/bitops.exp,
2191 gdb.base/break.exp, gdb.base/call-ar-st.exp,
2192 gdb.base/call-rt-st.exp, gdb.base/call-strs.exp,
2193 gdb.base/callfuncs.exp, gdb.base/callfwmall.exp,
2194 gdb.base/commands.exp, gdb.base/completion.exp,
2195 gdb.base/cond-expr.exp, gdb.base/condbreak.exp,
2196 gdb.base/constvars.exp, gdb.base/corefile.exp,
2197 gdb.base/dbx.exp, gdb.base/default.exp, gdb.base/define.exp,
2198 gdb.base/display.exp, gdb.base/ena-dis-br.exp,
2199 gdb.base/ending-run.exp, gdb.base/environ.exp,
2200 gdb.base/eval-skip.exp, gdb.base/exprs.exp,
2201 gdb.base/finish.exp, gdb.base/foll-exec.exp,
2202 gdb.base/foll-fork.exp, gdb.base/foll-vfork.exp,
2203 gdb.base/funcargs.exp, gdb.base/help.exp,
2204 gdb.base/interrupt.exp, gdb.base/jump.exp, gdb.base/list.exp,
2205 gdb.base/logical.exp, gdb.base/long_long.exp,
2206 gdb.base/maint.exp, gdb.base/mips_pro.exp,
2207 gdb.base/miscexprs.exp, gdb.base/nodebug.exp,
2208 gdb.base/opaque.exp, gdb.base/overlays.exp, gdb.base/page.exp,
2209 gdb.base/pointers.exp, gdb.base/printcmds.exp,
2210 gdb.base/ptype.exp, gdb.base/radix.exp, gdb.base/recurse.exp,
2211 gdb.base/regs.exp, gdb.base/relational.exp,
2212 gdb.base/remote.exp, gdb.base/reread.exp,
2213 gdb.base/restore.exp, gdb.base/return2.exp,
2214 gdb.base/scope.exp, gdb.base/sect-cmd.exp,
2215 gdb.base/selftest.exp, gdb.base/setshow.exp,
2216 gdb.base/setvar.exp, gdb.base/shlib-call.exp,
2217 gdb.base/sigall.exp, gdb.base/signals.exp,
2218 gdb.base/sizeof.exp, gdb.base/so-impl-ld.exp,
2219 gdb.base/so-indr-cl.exp, gdb.base/solib.exp,
2220 gdb.base/step-test.exp, gdb.base/structs.c,
2221 gdb.base/structs.exp, gdb.base/structs2.exp,
2222 gdb.base/term.exp, gdb.base/twice.exp, gdb.base/varargs.exp,
2223 gdb.base/volatile.exp, gdb.base/watchpoint.exp,
2224 gdb.base/whatis-exp.exp, gdb.base/whatis.exp,
2225 gdb.c++/ambiguous.exp, gdb.c++/annota2.exp,
2226 gdb.c++/anon-union.exp, gdb.c++/classes.exp, gdb.c++/ctti.exp,
2227 gdb.c++/derivation.exp, gdb.c++/inherit.exp,
2228 gdb.c++/local.exp, gdb.c++/member-ptr.exp, gdb.c++/method.exp,
2229 gdb.c++/misc.exp, gdb.c++/namespace.exp, gdb.c++/overload.exp,
2230 gdb.c++/ref-types.exp, gdb.c++/templates.exp,
2231 gdb.c++/userdef.exp, gdb.c++/virtfunc.exp,
2232 gdb.disasm/am33.exp, gdb.disasm/hppa.exp,
2233 gdb.disasm/mn10200.exp, gdb.disasm/mn10300.exp,
2234 gdb.fortran/types.exp, gdb.java/jmisc.exp,
2235 gdb.java/jv-exp.exp, gdb.java/jv-print.exp,
2236 gdb.stabs/weird.exp, gdb.threads/linux-dp.exp,
2237 gdb.trace/actions.exp, gdb.trace/backtrace.exp,
2238 gdb.trace/circ.exp, gdb.trace/collection.exp,
2239 gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
2240 gdb.trace/limits.exp, gdb.trace/packetlen.exp,
2241 gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp,
2242 gdb.trace/report.exp, gdb.trace/save-trace.exp,
2243 gdb.trace/tfind.exp, gdb.trace/tracecmd.exp,
2244 gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp,
2245 lib/gdb.exp, lib/mi-support.exp: Update/correct copyright
2250 * gdb.base/varargs.c (find_max_double): Fix printf format string:
2251 first arg is int not float.
2255 * gdb.base/reread.exp: Unsupported for non-native targets;
2256 doesn't work for remote debugging.
2261 * gdb.base/ending-run.exp: Properly handle the BSP state when
2262 stepping past the end of main.
2266 * gdb.base/commands.exp (infrun_breakpoint_command_test):
2267 Converted HPUX fix for non-expected items following multiple
2268 step commands into general solution for all platforms.
2272 * gdb.c++/classes.exp (do_tests): Change runto statements
2273 from "runto 'foo(void)'" to "runto 'foo'". This makes the
2274 statements demangler agnostic.
2275 * gdb.c++/virtfunc.exp (do_tests): Likewise.
2276 (gdb_virtfunc_restart): Likewise.
2280 * gdb.c++/inherit.exp (do_tests): Change runto statements
2281 from "runto 'foo(void)'" to "runto 'foo'". This makes the
2282 statements demangler agnostic.
2286 * gdb.threads/pthreads.exp: Unify pass/fail messages for
2287 ``continue to bkpt at common_routine in thread 2'' and ``stopped
2288 before calling common_routine 15 times'' tests.
2292 * gdb.c++/cplusfuncs.cc (dm_type_char_star): New function.
2293 Helps the test script figure out which demangler is in use.
2294 (dm_type_foo_ref): Ditto.
2295 (dm_type_int_star): Ditto.
2296 (dm_type_long_star): Ditto.
2297 (dm_type_unsigned_int): Ditto.
2298 (dm_type_void): Ditto.
2299 (dm_type_void_star): Ditto.
2300 * gdb.base/cplusfuncs.exp (probe_demangler): New function.
2301 Probe the gdb demangler and set variables to accommodate
2302 formatting differences.
2303 (info_func_regexp): New function. Same as info_func, but
2304 matches against a regexp.
2305 (info_func): Match against a literal string.
2306 (print_addr_2): New function. Match against a literal string,
2307 which can be different from the input to gdb.
2308 (print_addr): Simply call print_addr_2 with the same argument twice.
2309 (test_lookup_operator_functions): Use demangler formatting variables.
2310 Blow away the xfails and workarounds for gnats gdb bug gdb/18. Sort
2311 the tests in the same order as the C++ class declaration.
2312 (test_paddr_operator_functions): Ditto.
2313 (test_paddr_overloaded_functions): Ditto.
2314 (test_paddr_hairy_functions): Use demangler formatting variables.
2315 Add reference to gdb/19 for related tests.
2316 (do_tests): Call probe_demangler.
2320 * gdb.c++/templates.cc (printf): Remove unused function definition.
2324 * sid.exp (sid_exit): Pass host, not target, to remote_close.
2328 * config/sid.exp (sid_start): Call `remote_push_conn' after firing
2330 (sid_exit): Call `remote_pop_conn' after GDB is gone.
2334 * config/sid.exp (sid_start): Use `remote_spawn' instead of `spawn.'
2335 Deprecate $sid_spawn_id.
2336 (sid_exit): Remove code necessary only for `spawn.'
2340 * config/sid.exp (sid_start): Handle sim,protocol of `sid.'
2344 * gdb.c++/ovldbreak.exp (take_gdb_out_of_choice_menu): New proc
2345 to call when tests fail. It takes gdb out of the overloaded
2346 function choice menu back to the main prompt, so that the test
2347 program stays synchronized.
2348 (set_bp_overloaded): New proc to collect all the common
2349 code for setting a breakpoint on an overloaded name. Calls
2350 take_gdb_out_of_choice_menu when needed.
2351 (menu_overload1arg): New variable to collect the repeated
2352 instances of the expected menu for an overloaded name. Change
2353 the regular expression to handle changes in g++ type encoding:
2354 "void" can be either "void" or "", and "unsigned int" can be
2355 either "unsigned int" or "unsigned".
2356 (continue_to_bp_overloaded): Change regular expressions to handle
2357 changes in g++ type encoding.
2358 (no proc): Call take_gdb_out_of_choice_menu when needed.
2359 Remove redundant calls to "info break". Accept either "canceled"
2360 or "cancelled". Change regular expressions in "info break"
2361 calls to handle changes in g++ type encoding. Give all tests
2366 * config/sid.exp: New file.
2370 * gdb.base/callfuncs.exp: Add space after ``Value returned is''.
2374 * gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
2375 Add a RE to accept a non-ascii char if one is ever presented.
2379 * lib/mi-support.exp (mi_gdb_start): Test for MI_OUT, not UI_OUT.
2383 * gdb.base/setvar.exp: Use double '\\' to quote curly braces
2384 in regexp. One '\' does not suffice on Linux.
2388 * gdb.base/break.exp (test_clear_command): Use a marker function
2389 rather than 'main' for the test function. Also move this
2390 test to an execution point where the marker function names are
2391 guaranteed to be bound to functions. (Executing tests after a
2392 'finish' from main runs into name conflicts with local names
2393 in __libc_start_main).
2397 * gdb.base/finish.exp: New test for gdb's "finish" command.
2398 * gdb.base/return2.exp: New test for gdb's "return" command.
2399 * gdb.base/return2.c: New source file for above.
2403 * gdb.base/constvars.exp: Add a "pass" message if "up" succeeds.
2404 * gdb.base/miscexprs.exp: Ditto.
2405 * gdb.base/pointers.exp: Ditto.
2406 * gdb.c++/derivation.exp: Ditto.
2407 * gdb.c++/local.exp: Ditto.
2408 * gdb.c++/namespace.exp: Ditto.
2409 * gdb.c++/overload.exp: Ditto.
2410 * gdb.c++/ref-types.exp: Ditto.
2414 * gdb.base/constvars.exp: Test result of "up" command.
2415 * gdb.base/miscexprs.exp: Ditto.
2416 * gdb.base/pointers.exp: Ditto.
2417 * gdb.base/scope.exp: Ditto.
2418 * gdb.c++/derivation.exp: Ditto.
2419 * gdb.c++/local.exp: Ditto.
2420 * gdb.c++/namespace.exp: Ditto.
2421 * gdb.c++/overload.exp: Ditto.
2422 * gdb.c++/ref-types.exp: Ditto.
2426 * mips_pro.exp: Accept either "middle -> top -> main" or
2427 "middle -> main" in the backtrace, because gcc can optimize
2428 tail calls to jumps. Remove setup_xfail for the hppa case.
2429 Add a comment with the original warning messages from PR 3016,
2430 which was filed in 1993, to preserve them for posterity.
2434 * lib/gdb.exp (gdb_test): Override timeout with board info.
2438 * gdb.base/display.exp: Don't kill running stub. Add "again" to
2439 the second kill and detach messages.
2443 * configure.in: Add AC_EXEEXT.
2444 * configure: Regenerate.
2445 * Makefile.in (just-check): Export EXEEXT.
2446 * lib/gdb.exp ($EXEEXT): Import from environment.
2447 * gdb.base/maint.exp: Expect $EXEEXT in executable name. Don't
2448 expect "maint dump-me" on Cygwin.
2449 * gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append
2454 * gdb.base/break.exp: Test backtrace and finish from called
2455 function on all platforms, not just HP-UX.
2459 * config/monitor.exp (gdb_target_cmd): Abstracts some of the
2460 code from gdb_target_monitor, so it can be used independantly
2461 for gdbserver. Also comment out an unnecessary PUTS.
2465 * gdb.base/a2-run.exp: Use gdb_skip_stdio_test.
2466 * gdb.base/corefile.exp: Expect the message "Program is being
2467 debugged already" when we send the "corefile" command, since
2468 the preceeding gdb_load may have connected gdb to a remote target.
2469 * gdb.base/display.exp: Disable hardware watchpoints if new
2470 board info variable "no_hardware_watchpoints" is true.
2471 Replace single-letter commands with more readable ones.
2472 * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints
2473 if new board info variable "no_hardware_watchpoints" is true.
2474 * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests
2475 to see if stdio (printf) testing is possible.
2476 * gdb.base/watchpoint.exp: Disable hardware watchpoints if new
2477 board info variable "no_hardware_watchpoints" is true. Use new
2478 proc "gdb_skip_stdio_tests" to see if printf tests are possible.
2483 * gdb.base/printcmds.exp: Escape curly braces followed by a number
2484 in array print pattern match.
2488 * gdb.c++/templates.exp (test_template_breakpoints): Change Britsh
2489 spelling "cancelled" to U.S. spelling "canceled" to match changes
2491 * gdb.c++/ovldbreak.exp: Ditto.
2495 * gdb.base/callfuncs.c (main): Moved to end of file, call
2496 t_double_values to initialize the FPU before inferior calls are made.
2497 * gdb.base/callfuncs.exp: Test for register preservation after calling
2498 inferior functions. Add tests for continuining, finishing and
2499 returning from a stop in a call dummy.
2503 * gdb.base/commands.exp: Break up long lines, and re-indent.
2507 * config/gdbserver.exp: Rewritten from the ground up, to make it
2508 compatible with the current dejagnu tree, and to make it work with
2509 the new "gdbserver" in libremote.
2513 * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support.
2514 * gdb.base/varargs.exp: Skip entire test if no printf support.
2515 * gdb.base/ending-run.exp (Step to return): Skip if no printf supt.
2516 * gdb.base/shlib-call.exp: Skip several tests if no printf support.
2520 * lib/gdb.exp (gdb_skip_float_test): New proc. Skip test if
2521 no floating point support.
2522 (gdb_skip_stdio_test): New proc. Skip test if no stdio support.
2523 * gdb.base/call-ar-st.exp: Use above procs to skip tests.
2524 * gdb.base/call-rt-st.exp: Ditto.
2525 * gdb.base/call-strs.exp: Ditto.
2529 * gdb.base/sizeof.c: include <stdio.h>.
2531 * gdb.c++/classes.exp: Use gdb_test instead of send_gdb to
2532 'finish', otherwise uncaptured gdb_prompt would potentially
2533 throw remaining test points out of sync.
2537 * gdb.base/recurse.exp: Run tests for all targets.
2538 * gdb.base/so-impl-ld.exp: Added wildcard to handle the
2539 gnu-oldld case on ARM.
2540 * gdb.base/watchpoint.exp (test_stepping): Clear xfail
2545 * gdb.java/configure.in (AC_INIT): Use jmisc.exp.
2546 * gdb.java/configure: Rebuild.
2550 * gdb.java/jv-exp.exp: New file.
2554 * configure: Rebuilt.
2555 * configure.in (configdirs): Add gdb.java.
2556 * gdb.java/jmisc.java: New file.
2557 * gdb.java/jmisc.exp: New file.
2558 * gdb.java/Makefile.in: New file.
2559 * gdb.java/configure: Rebuilt.
2560 * gdb.java/configure.in: New file.
2561 * lib/java.exp: New file.
2565 * gdb.base/exprs.exp: Test casts to a pointer including over and
2570 * gdb.base/sizeof.exp, gdb.base/sizeof.c: New files. Compare GDB
2571 and the compilers sizes.
2575 * gdb.c++/misc.cc (class ClassParam, class_param): Define.
2576 (use_methods): New function.
2577 (main): Call use_methods().
2578 * gdb.c++/classes.exp (test_method_param_class): New procedure.
2579 (do_tests): Call test_method_param_class.
2583 * gdb.c++/classes.exp (test_nonexistant_members): Fix name
2585 (test_enums): New procedure. Move enum tests from end of script
2586 to here. Set breakpoint on function name instead of line number.
2587 * gdb.c++/misc.cc (ClassWithEnum): Move past Foo definitions.
2588 (enums2): New marker function.
2589 (enums1): New function.
2590 (main): Call enums1(). Move enum tests to enums1().
2594 * gdb.asm/asm-source.exp: Use raw AS/LD instead of CC to
2595 compile/link program. Update line numbers.
2596 * gdb.asm/d10v.inc: Define ``startup''.
2597 * gdb.asm/asmsrc1.s: Add definition of _start.
2601 * gdb.base/call-ar-st.exp: More rewrites of multi-line patterns.
2605 * gdb.base/maint.exp: Add 'maint print architecture' item to output
2606 of 'help maint print' command.
2610 * gdb.base/call-ar-st.exp: Rewrite all multi-line patterns so that
2611 they use gdb_expect_list.
2615 * gdb.base/commands.exp: Use ``set remote
2616 memory-read-packet-size'' instead of ``set endian big'' to test
2621 * gdb.c++/templates.exp (do_tests): Make all of these work under
2622 g++, and stop skipping them.
2624 * gdb.c++/namespace.exp: Move from gdb.hp/gdb.aCC to here, make it
2627 * gdb.c++/misc.cc: Fix ambiguous initialization with correct
2632 * gdb.base/annota1.exp (run until main breakpoint): Loosen up
2633 the regular expression: accept an (almost) arbitrary sequence of
2634 "frames-invalid" and "breakpoints-invalid" messages both before
2635 and after the "starting" message.
2639 * gdb.c++/local.exp: This test has never been known to work with g++.
2643 * gdb.base/annota1.exp (annotate-signal-handler-caller):
2644 Relax the regular expression a little, make it pass on Solaris 8.
2648 * gdb.base/step-test.exp: On IA-64 targets, when stepping out of
2649 a call, do not require that gdb stop on the line after the call.
2650 Instead, it is permissible for gdb to stop on the line of the
2655 * gdb.base/break.exp (bp on small function, optimized file):
2656 Add a second pass pattern. The behavior differs here between stabs
2657 and dwarf for one-line functions. Stabs preserves two line symbols
2658 (one before the prologue and one after) with the same line number,
2659 but dwarf regards these as duplicates and discards one of them.
2660 Therefore the address after the prologue (where the breakpoint is)
2661 has no exactly matching line symbol, and GDB reports the breakpoint
2662 as if it were in the middle of a line rather than at the beginning.
2666 * gdb.base/interrupt.exp: Make "pass" message say "send"
2667 rather than "send_gdb" (for consistancy).
2672 * gdb.c++/templates.cc: Properly check for GCC version number.
2673 * lib/compiler.cc: Likewise
2677 * gdb.base/break.exp: When compiled with -O2 optimization,
2678 gdb may not stop at the first line of main, due to code motion.
2682 * gdb.base/call-ar-st.exp: Bail out if target is sparclet.
2683 This test depends on parsing the printf output from the target.
2684 Since the sparclet stub doesn't do stdio, this will never work.
2685 * gdb.base/call-rt-st.exp: ditto.
2686 * gdb.base/call-strs: ditto.
2690 * gdb.base/miscexprs.exp: make sizeof long array test portable.
2692 * gdb.base/ending-run.exp: After connecting to a remote target,
2693 but before running, the target will appear to be in a random
2694 location. Specify both a file and a line for breakpoints.
2695 Also, the function that calls main may be called 'init'
2696 rather than 'start'.
2700 * gdb.base/help.exp: Update output for add-symbol-file command.
2705 * gdb.base/structs2.c: Support platforms defaulting to a unsigned char.
2709 * gdb.base/call-ar-st.exp: Relax patterns matching tab characters.
2711 * gdb.base/funcargs.exp: Relax patterns matching pointers to char.
2715 * gdb.base/call-ar-st.c (init_small_structs, main): Use floating-point
2716 values that can be represented exactly.
2717 * gdb.base/call-ar-st.exp (print print_small_structs): Fixed to match
2718 above change, and to not check against the directory part of the source
2720 (step into print_long_arg_list): Likewise.
2721 (print print_small_structs from print_long_arg_list): Likewise.
2722 (print print_long_arg_list): Likewise.
2726 * gdb.base/printcmds.c: Terminate char array ctable2 with 0.
2730 * ChangeLog, gdb.base/commands.exp: Revert whitespace changes.
2734 * gdb.base/commands.exp (deprecated_command_test): Add test for
2735 deprecate with no arguments.
2739 * gdb.base/break.exp: Add new test for setting breakpoints on
2740 optimized code so we can test breakpoints work even when function
2741 prologues may be optimized away
2746 * gdb.base/commands.exp : Added command deprecator tests.
2750 * gdb.base/help.exp: Added test for new apropos command.
2754 * gdb.base/pointers.c (usevar): New function.
2755 (main): Make sure that global variables v_int_pointer2, rptr,
2756 and y are all referenced someplace in the program by calling
2757 usevar() on them. [Some linkers delete symbols which are
2758 never referenced. The space remains, but there's no way to
2759 get a (symbolic) handle on the variable from the debugger.]
2763 * gdb.base/printcmds.c: Add typedeffed arrays.
2765 * gdb.base/printcmds.exp (test_print_typedef_arrays): New
2766 procedure to test arrays that are typedef'd.
2770 * lib/gdb.exp: Fix the gdbtk_start routine to correctly find all
2771 the library directories.
2775 * configure.in (configdirs): Add sub directory gdb.mi.
2776 * configure: Re-generate.
2778 * gdb.mi: New directory.
2782 * gdb.base/long_long.exp: Correct test suite failure when printing
2783 a long long value as a double on ARM platforms.
2787 * gdb.base/break.exp ("breakpoint line number"): Make sure the
2788 default source file is set properly before running this test.
2792 * lib/gdb.exp: Tell the testsuite that now gdbtk is in the
2793 gdbtk/library directory, not in gdbtcl2.
2797 * gdb.c++/templates.exp: ("ptype T5<int>"): Remove extraneous
2798 backslash from regexp pattern.
2800 * gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): New
2801 procedure. Use it to run all the "continue to bp overloaded"
2802 tests. Note that this changes the names of the tests slightly.
2803 If the breakpoint hit message includes a hex PC value, because
2804 GCC's Dwarf 2 line info doesn't help us distinguish the prologue
2805 from the real source code, still consider that a pass.
2807 * gdb.base/condbreak.exp ("run until breakpoint at marker2"):
2808 XFAIL here if the breakpoint message contains a hex address. Note
2809 similar change on 1999-11-02.
2811 * gdb.base/step-test.exp: Comment Fernando's change of 2000-02-02.
2813 * gdb.base/ptype.exp: Establish a default source file before
2814 calling get_debug_format.
2818 * gdb.base/watchpoint.exp: Remove duplication of test messages.
2822 * gdb.base/step-test.exp: Fix the steps to enter a callee by means
2823 of successive stepi commands -- while in the prologue we should see
2824 the function entry bracket.
2828 * gdb.base/ending-run.exp: Add ARM in thumb mode case, where we
2829 reach __change_mode() when stepping through the end of main().
2833 * gdb.base/default.exp: Fix expected pattern.
2834 * gdb.base/help.exp: Same.
2838 * gdb.base/so-indr-cl.exp: Don't execute the test if not on HPUX.
2839 Don't use xfail's because that affects only the following test.
2841 * gdb.base/so-impl-ld.exp: Don't execute the tests if not on hpux,
2844 * gdb.base/selftest.exp: Update to reflect changes to main.c.
2848 * gdb.base/display.exp: Some yacc parsers like to say
2849 "A syntax error" rather than "A parse error". Accept both.
2853 * gdb.base/default.exp: Remove OS dependent string from "target
2855 * gdb.base/help.exp: Same for "help target remote" test.
2861 * gdb.c++/annota2.exp: Fix "delete bps" test to wait for the
2862 prompt (cleanup rather than necessity, but still might keep output
2863 from spilling to next test).
2867 * gdb.base/ptype.c (FALSE, TRUE): #undef these to avoid clash on
2868 AIX, which defines them in <sys/types.h>.
2872 * gdb.base/default.exp: Match arm* etc instead of arm in "info
2877 * gdb.base/watchpoint.exp: Add missing "(timeout)" to test message.
2879 * gdb.base/break.exp: Add missing anchor to reg exp on "finish from
2880 outermost frame disallowed".
2884 * gdb.base/setvar.exp: New tests for setting the value of a struct
2885 with a constant list.
2889 * gdb.base/setvar.exp: Remove pair os tests that expected gdb to
2890 require the user to type a cast before setting the value of a struct.
2894 * gdb.base/default.exp: Expect the new 'info float' command on
2897 * gdb.threads/linux-dp.exp: Expand our ability to recognize
2898 LinuxThreads libraries that don't support debugging.
2902 * gdb.base/remote.c: Fill the buffer with truely random data.
2903 Change the buffer type to ``unsigned char'' to simplify size
2906 * gdb.base/remote.exp: Reduce download numbers by one. Typical
2907 stub only handles 400-1 byte packets. Verify that the download
2912 * lib/gdb.exp (gdb_expect_list): FAIL only once on multiple pattern
2913 tests, using UNRESOLVED for the untested cases. Also, does not wait
2914 for a timeout if the prompt was received before a recognizable pattern.
2918 * lib/gdb.exp (gdb_expect_list): Fix spelling.
2922 * gdb.base/watchpoint.exp: Add tests cases for the hit count of
2927 * gdb.base/condbreak.exp: Add missing '$gdb_prompt $'.
2929 * gdb.c++/local.exp: Be more flexible in recognizing local class
2930 name mangling. Don't allow horribly truncated method names.
2931 * gdb.c++/derivation.exp: Expect protected inheritance.
2932 * gdb.c++/inherit.exp: Be more flexible in recognizing vbase pointers.
2933 * gdb.c++/virtfunc.exp: Likewise.
2934 * gdb.c++/classes.exp: Likewise. Don't require the enclosing scope
2935 when printing a nested enum.
2939 * gdb.base/step-test.exp: Properly await GDB's response to setting
2940 a breakpoint on the call to large_struct_by_value.
2942 * gdb.base/ending-run.exp ("step to end of run 1"): Don't fail
2943 just because we have debug info for the `start' function.
2947 * gdb.threads/linux-dp.exp ("create philosopher"): Recognize the
2948 "Unknown signal" messages, which indicate (on LinuxThreads) that
2949 GDB doesn't know how to debug threads on this system. This is
2950 better than hanging while philosopher 0 dumps chatter into gdb.log.
2954 * gdb.trace/deltrace.exp: Updated test to reflect new error text.
2958 * gdb.base/coremaker2.c: Add sample program for generating
2959 cores that is more self contained than coremaker.c. Eventually
2960 I'll add more code to this and tie it into the testsuite.
2964 * gdb.base/dollar.exp: Remove, now in gdb.hp.
2968 * gdb.exp (get_compiler_info): pick up compiler.c and compiler.cc
2970 * lib/compiler.c, lib/compiler.cc: New files, moved from gdb.base/
2973 * gdb.c++/derivation.exp: remove redundant get compiler info code.
2975 * gdb.base/commands.exp: add '$gdb_prompt $' anchor to
2976 'continue with watch' test point.
2980 Merged from p2linux-990323-branch:
2982 * lib/gdb.exp (gdb_continue_to_breakpoint): New function.
2986 * gdb.base/remote.exp: Test ``set remote memory-write-packet-sized
2987 {limit,fixed}''. Test ``set download-write-size''.
2991 * gdb.base/funcargs.exp: Rewrite stack traceback checks using
2996 * lib/gdb.exp (gdb_expect_list): Return a success/fail indication.
3000 * gdb.base/break.exp: Fix "stub continue" pattern.
3004 * gdb.base/shlib-call.exp ("next to shr1"): Fix test name.
3008 * gdb.base/display.exp ("finish"): Add timeout clause.
3010 * gdb.base/condbreak.exp ("run until breakpoint at marker1"): Add
3011 plain prompt clause, so this doesn't have to time out in order to
3014 * gdb.base/condbreak.exp, gdb.base/ena-dis-br.exp: XFAIL if the
3015 breakpoint hit messages include an address.
3017 * gdb.base/display.exp: Don't forget to escape parens in regular
3018 expressions. Unix regexp notatation sucks.
3022 * gdb.base/annota1.exp: Test for annotate-signalled: change output
3023 order for 'signalled' message.
3028 * gdb.base/annota1.exp: Add tests for annotate ignore count change.
3029 * gdb.base/annota1.c: Add code for tests to work with.
3033 * gdb.base/remote.exp: New test for remote downloading settings.
3034 * gdb.base/remote.c: New file with large .data.
3038 * gdb.threads/linux-dp.c, gdb.threads/linux-dp.exp: New test suite
3039 for LinuxThreads support, merged from the Code Fusion branch.
3043 * lib/gdb.exp (gdb_run_cmd): Break complicated gdb_expect
3044 containing exp_continue into a while within an expect. Don't
3045 attempt a start more than three times. Check return value from
3050 * gdb.base/watchpoint.exp: Match fail ``finish from marker1'' with
3055 * gdb.base/break.c (main): Added a statement that we can step
3057 * gdb.base/break.exp: Added tests for setting a breakpoint
3058 at an offset and stepping onto a breakpoint.
3062 * gdb.base/help.exp (help add-symbol-file): Update to match current
3067 * gdb.base/break.exp: Code locations are in hex, don't forget!
3072 * condbreak.exp: Use break.c as test program.
3073 * condbreak.c: Remove, redundant with break.c.
3077 * config/monitor.exp (gdb_target_monitor): Disable X- and
3078 Z-packets if the target needs it.
3082 * gdb.c++/overload.exp: Added tests for listing overloaded
3083 functions with function pointers in the arg, explicitly calling
3084 out the version you want.
3088 * long_long.exp: Add variations of test cases that work for
3089 targets with 16-bit ints and 32-bit doubles.
3093 * break.c (main): Compare a possibly-uninitialized argc with an
3094 unlikely value that fits in 16 bits.
3098 * gdb.base/restore.c, gdb.base/restore.exp: Use 0x7eeb instead of
3099 0xfeeb, don't want negative numbers if ints are 16 bits.
3101 * lib/gdb.exp (skip_cplus_tests): New proc.
3102 * gdb.c++/ambiguous.exp, gdb.c++/annota2.exp,
3103 gdb.c++/anon-union.exp, gdb.c++/classes.exp,
3104 gdb.c++/cplusfuncs.exp, gdb.c++/ctti.exp, gdb.c++/demangle.exp,
3105 gdb.c++/derivation.exp, gdb.c++/inherit.exp, gdb.c++/local.exp,
3106 gdb.c++/member-ptr.exp, gdb.c++/method.exp, gdb.c++/misc.exp,
3107 gdb.c++/overload.exp, gdb.c++/ovldbreak.exp,
3108 gdb.c++/ref-types.exp, gdb.c++/templates.exp, gdb.c++/userdef.exp,
3109 gdb.c++/virtfunc.exp: Use it to skip over C++ tests.
3111 * gdb.c++/cplusfuncs.exp: Use get_compiler_info consistently.
3115 * gdb.base/corefile.exp (up): Allow a parameter to appear
3116 in the frame that we're going up to.
3120 * gdb.base/default.exp (info float): Expect some output now.
3122 * gdb.base/callfuncs.exp (do_function_calls): We no longer expect
3123 returning floating-point values to fail on the x86.
3124 * gdb.base/callfwmall.exp (do_function_calls): Same.
3126 * gdb.base/list.exp (test_listsize): Correct expectations for
3127 listing line 1 with listsize 2. Also, listing a single line
3128 works now, as does listing three lines. [Kevin's note: There
3129 were a number of other cases fixed too where the expectations
3134 * gdb.base/selftest.exp: Add case for when version prints as
3135 constant string instead of char pointer.
3139 * gdb.base/ending-run.exp: Add Solaris case for what happens when
3140 stepping out of main.
3142 * gdb.c++/derivation.exp: XFAIL inf fn calls for all configs, if
3145 * gdb.c++/local.exp: Expect ptype NestedInnerLocal to succeed
3146 always, expect ptype InnerLocal::NestedInnerLocal to fail always.
3148 * gdb.c++/ovldbreak.exp: Update match string in test that
3149 includes a warning of multiple breakpoints.
3153 * gdb.base/display.exp: Improve precision of step-after-finish
3156 * gdb.base/signals.exp: Add extra wildcard to "handle all print"
3159 * gdb.c++/classes.exp: XFAIL HP-compiler-only tests for all
3160 configs when using G++, not just hppa*.
3164 * gdb.base/async.c: New file.
3165 * gdb.base/async.exp: New file.
3169 * gdb.base/break.exp: Tweak PA specific tests to properly handle
3174 * gdb.base/display.exp: "finish" can leave us mid-line on many
3175 targets, deal with it. Add a small constant to main, instead of
3176 1000 since main+1000 may not be a valid address in the target.
3178 * gdb.base/dollar.exp: Do not run for PA processors in wide mode
3181 * gdb.base/attach.exp: Handle another hpux11 error message variant
3182 when attaching to a process that does not exist.
3186 * gdb.base/call-ar-exp.exp: Fix pattern matching whitespace
3187 characters in 'continue to 1241' test.
3191 * gdb.base/call-ar-st.exp: Add a shorter match case for the
3192 stop in print_long_arg_list, define and use a whitespace
3193 variable in print_small_structs test, add an XFAIL for Solaris.
3194 * gdb.base/dbx.exp: XFAIL func commands until somebody is
3195 interested enough to fix.
3199 * gdb.base/dbx.exp (dbx_gdb_file_cmd): Rename to gdb_file_cmd.
3200 (dbx_gdb_load): Remove. Use gdb_load instead, since that
3201 proc knows about targets other than the natives.
3202 (test_assign): Use "gdb_run_cmd" to "run" the target.
3203 Check that we've actually hit the breakpoint at main.
3204 When we attempt to assign a value to a local variable, check
3205 that the variable is in the current scope, i.e., don't use
3206 a test with an empty result.
3210 * gdb.base/maint.exp: Add test of ``maintenance internal-error''
3216 gdb.hp: Move tests into subdirectories gdb.aCC, gdb.base-hp,
3217 gdb.compat, gdb.threads-hp.
3218 gdb.hp/configure, gdb.hp/configure.in: New files.
3219 gdb.hp/Makefile.in: Recurse into new subdirs.
3220 gdb.hp/gdb.defects: New directory, tests for HP bug reports.
3221 gdb.hp/gdb.objdbg: New directory, tests for debugging info
3223 gdb.hp/tools: New directory, aux tools for HP-specific tests.
3227 * gdb.base/display.exp: Help expect by putting a newline in the
3228 funky printf, remove a bogus p/a test.
3232 * gdb.base/display.exp: Make sure that when we say 'run', we are
3233 connected to the target. This is necessary when running not
3238 * gdb.base/step-test.exp: Removed some extraneous messages.
3240 * gdb.base/long_long.exp: Don't run memory examination tests
3241 on little-endian targets (they will need a different set of
3246 * gdb.c++/virtfunc.exp: Expect to fail the virtual call tests
3247 until somebody decides to fix GDB.
3249 * gdb.base/long_long.c: Stop compiler complaint by specifying long
3251 * gdb.base/long_long.exp: Loosen x/c test, add partial result
3252 matches for a couple x/2 commands.
3256 * gdb.c++/ref-types.cc, gdb.c++/ref-types.exp: Appease doschk
3257 by merging in ref-types2 tests.
3258 * gdb.c++/ref-types2.cc, gdb.c++/ref-types2.exp: Remove.
3261 * gdb.c++/Makefile.in: Add standard actions.
3262 (EXECUTABLES): Rename from PROGS, update list.
3263 * gdb.c++/ambiguous.cc, gdb.c++/ambiguous.exp: Move to here
3265 * gdb.c++/anon-union.cc: Don't use anonymous struct, make
3267 * gdb.c++/anon-union.exp: Fix tests to match.
3268 * gdb.c++/classes.exp: Run if HP compiler used, add extra
3269 expect matches to handle output variations.
3270 * gdb.c++/cplusfuncs.cc: Make operator -> return foo *.
3271 * gdb.c++/cplusfuncs.exp: Update to match, allow word "class" in
3272 output, add HP alternatives for new and delete prints.
3273 * gdb.c++/ctti.exp, gdb.c++/cttiadd.cc, gdb.c++/cttiadd1.cc,
3274 gdb.c++/cttiadd2.cc, gdb.c++/cttiadd3.cc: Move here from gdb.hp.
3275 * gdb.c++/demangle.exp: Use $style when reporting failure.
3276 * gdb.c++/derivation.exp: Add some xfails if GCC-compiled.
3277 * gdb.c++/inherit.exp: Run if HP compiler used, add some
3279 * gdb.c++/local.exp: Add match alternatives or xfails for HP
3281 * gdb.c++/member-ptr.exp: Add xfails for hppa*-*-*.
3282 * gdb.c++/method.exp: Add match alternatives.
3283 * gdb.c++/misc.cc: Add bool types.
3284 * gdb.c++/misc.exp: Add tests for bool types.
3285 * gdb.c++/overload.exp: Add xfails.
3286 * gdb.c++/templates.cc: Remove bogus arglist init, init fvpchar.
3287 * gdb.c++/templates.exp: Run if HP compiler used, add some xfails,
3288 add some more template parameter tests (only for HP currently).
3289 * gdb.c++/userdef.exp: Add xfails for hppa*-*-*.
3290 * gdb.c++/virtfunc.cc: Add return type and value for main.
3291 * gdb.c++/virtfunc.exp: Run if HP compiler used, add some
3296 * gdb.base/display.exp: Fix output of 'p/a &&j' test.
3300 * gdb.base/signals.exp: Don't expect getting a backtrace from
3301 within a signal handler to fail on Linux.
3306 * lib/gdb.exp: Remove some gratuitious semicolons.
3307 (delete_breakpoints): Increase timeout.
3308 (gdb_expect): Add -notransfer option.
3309 (gdb_test): Use -notransfer option.
3310 (get_compiler_info): Add f77 case.
3311 (get_compiler): New proc, split out from gdb_preprocess, add f77
3313 (gdb_preprocess): Call get_compiler.
3315 * gdb.base/Makefile.in (EXECUTABLES): Update the list.
3316 * gdb.base/attach.exp, gdb.base/display.exp,
3317 gdb.base/ending-run.exp, gdb.base/gdbvars.exp,
3318 gdb.base/long_long.exp, gdb.base/printcmds.exp,
3319 gdb.base/structs.exp, gdb.base/structs2.exp: Remove or fill in
3320 third arg to gdb_test.
3321 * gdb.base/call-ar-st.exp: Add HP-UX xfail for >10-arg functions.
3322 * gdb.base/callfuncs.exp, gdb.base/callfwmall.exp: Remove some
3323 HP-UX xfails, add others.
3324 * gdb.base/completion.exp: Reflect name change of self-test.
3325 * gdb.base/condbreak.exp, gdb.base/corefile.exp,
3326 gdb.base/foll-exec.exp, gdb.base/interrupt.exp,
3327 gdb.base/ptype.exp, gdb.base/scope.exp, gdb.base/setvar.exp: Note
3329 * gdb.base/foll-vfork.exp: Loosen matches slightly, remove
3330 useless HP-UX 10.30 references.
3331 * gdb.base/maint.exp: Loosen matches.
3332 * gdb.base/pointers.c (main): Declare more_code.
3333 * gdb.base/pointers.exp: Match on output of a `next'.
3334 * gdb.base/structs.c: Add prototypes.
3335 * gdb.base/watchpoint.exp: Remove HP-UX 10.30 reference.
3336 * gdb.base/whatis.exp: Fail for both HP-UX 10.20 and 11.
3340 * gdb.base/list.exp: Add tests for repeating 'list <linenum>'
3345 * gdb.c++/annota2.exp: Fix delete breakpoint query testcase.
3346 Fix run to main failures. Watchpoint can be hardware watchpoint.
3348 * gdb.base/annota1.exp: Clean up some more, in case printf has
3349 debug info. Deal with lack of signal hanlder info in stack.
3352 * gdb.base/annota1.exp: If printf has debug info, deal with it.
3356 * gdb.base/foll-exec.exp, gdb.base/foll-fork.exp,
3357 gdb.base/foll-vfork.exp: Don't run for crosses.
3361 * gdb.base/configure.in: Check for gdbvars.exp instead of
3363 * gdb.base/configure: Re-generate.
3367 * gdb.base/selftest.exp: Rename from a1-selftest.exp, no point
3368 in trying to run first and name is too long.
3370 * gdb.base/pointers.c, gdb.base/pointers.exp: Add contents of
3371 pointers2.c and pointers2.exp, respectively.
3372 * gdb.base/pointers2.c, gdb.base/pointers2.exp: Remove, makes
3377 * gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Renamed from
3378 callfuncs2.c and callfuncs2.exp.
3380 * gdb.base/list.exp: Remove mistaken xfails.
3381 * gdb.base/list0.h: Add optional prototypes.
3385 * gdb.base/setvar.exp: Increase the time-out on tests indirectly
3387 * nodebug.exp, printcmds.exp, ptype.exp, setvar.exp: Ditto.
3388 * ptype.exp: Move test for get_debug_format to before its first
3393 * gdb.base/Makefile.in (EXECUTABLES): Remove annota2 executable.
3394 * gdb.base/annota2.cc, annota2.exp: Move from here.
3395 * gdb.c++/annota2.cc, annota2.exp: To here.
3396 * gdb.c++/Makefile.in (PROGS): Add annota2 executable.
3400 * lib/gdb.exp (gdb_expect_list): Output one message per pattern in
3401 a consistent format.
3406 * lib/gdb.exp (get_compiler_info): Add detection for assorted
3407 HP compilers, also set the globals $true and $false.
3409 * gdb.base/annota1.c, bitfields.c, break.c, call-ar-st.c,
3410 call-rt-st.c, call-strs.c, callfuncs.c, callfuncs2.c, condbreak.c,
3411 coremaker.c, ending-run.c, exprs.c, funcargs.c, interrupt.c,
3412 jump.c, langs0.c, langs1.c, langs2.c, list0.c, list1.c,
3413 long_long.c, mips_pro.c, nodebug.c, opaque0.c, opaque1.c,
3414 printcmds.c, ptype.c, recurse.c, restore.c, return.c, run.c,
3415 scope0.c, scope1.c, setshow.c, setvar.c, shmain.c, shr1.c, shr2.c,
3416 sigall.c, signals.c, so-impl-ld.c, so-indr-cl.c, solib.c,
3417 solib1.c, solib2.c, step-test.c, twice.c, varargs.c, watchpoint.c,
3418 whatis.c} Add C++ compatible function definitions and return
3419 types, add includes for library functions.
3420 * gdb.base/ptype.c (my_false, my_true): Use instead of false/true.
3421 * gdb.base/step-test.c (myglob): Rename from glob.
3422 * gdb.base/attach.c, attach2.c, average.c, execd-prog.c,
3423 foll-exec.c, foll-fork.c, foll-vfork.c, sum.c, vforked-prog.c: New
3424 files, move here from gdb.hp.
3425 * gdb.base/annota1.exp, break.exp, call-ar-st.exp, call-rt-st.exp,
3426 commands.exp, condbreak.exp, define.exp, ena-dis-br.exp,
3427 ending-run.exp, jump.exp. list.exp, long_long.exp, so-impl-ld.exp:
3428 Adjust line numbers in regexps.
3430 * gdb.base/all-bin.exp, eval-skip.exp, exprs.exp, logical.exp,
3431 miscexprs.exp, pointers.exp, relational.exp: Use $true and $false
3434 * gdb.base/attach.exp, dbx.exp, foll-exec.exp, foll-fork.exp,
3435 foll-vfork.exp: New files, move here from gdb.hp.
3436 * gdb.base/page.exp: New file, test of pagination command.
3438 * gdb.base/watchpoint.c (recurser): New function, for watchpoint
3440 * gdb.base/watchpoint.exp: Add more test cases for watchpoints.
3442 * gdb.base/so-impl-ld.exp, gdb.base/so-indr-cl.exp,
3443 gdb.base/solib.exp: Fix compiler invocation process.
3445 * gdb.base/callfuncs.exp, gdb.base/callfuncs2.exp: Don't xfail for
3446 HP-UX 11, turn off overload resolution explicitly.
3447 * gdb.base/commands.exp: Set argument list explicitly, add
3449 * gdb.base/completion.exp: Enable if HP-UX, tweak tests to make
3451 * gdb.base/constvars.exp, gdb.base/volatile.exp: Escape the
3452 expressions properly.
3453 * gdb.base/corefile.exp: Loosen the match slightly.
3454 * gdb.base/default.exp: Allow "Error accessing memory" message
3456 * gdb.base/display.exp: Skip over x/0 j if PA64.
3457 * gdb.base/funcargs.exp: Add xfails for HP-UX.
3458 * gdb.base/interrupt.exp: Ditto.
3459 * gdb.base/langs.exp: Add symbolic matches governed by compiler
3461 * gdb.base/list.exp: Add xfails for HP-UX.
3462 * gdb.base/long_long.exp: Refine some of the numeric matches.
3463 * gdb.base/mips_pro.exp: Xfail on HP-UX.
3464 * gdb.base/miscexprs.exp: Add PA2.0 case for array size test.
3465 * gdb.base/nodebug.exp: Succeed on more varieties of output.
3466 * gdb.base/opaque.exp: Remove some HP-UX xfails.
3467 * gdb.base/ptype.exp: Succeed on more varieties of output.
3468 * gdb.base/scope.exp: Add xfails for HP-UX.
3469 * gdb.base/sect-cmd.exp: Add more cases.
3470 * gdb.base/setvar.exp: Add xfails for HP-UX.
3471 * gdb.base/shlib-call.exp: Loosen some matches slightly.
3472 * gdb.base/signals.exp: Match on void symbolically.
3473 * gdb.base/step-test.exp: Add case for PA64.
3474 * gdb.base/term.exp: Add exit and restart.
3475 * gdb.base/twice.exp: Clean up after self.
3476 * gdb.base/varargs.exp: Disable overload resolution explicitly.
3477 * gdb.base/whatis.exp: Allow more ways to pass tests.
3479 * gdb.base/smoke.exp, gdb.base/smoke.c, gdb.base/smoke.cc: Remove,
3484 * lib/gdb.exp (proc gdb_expect_list): New procedure. Matches a
3486 * gdb.base/call-ar-st.exp: Use gdb_expect_list in "print
3487 print_double_array(double_array)", "continuing to breakpoint
3488 1018", "print print_double_array(array_d)" and "continuing to
3493 * Makefile.in: Add empty html and install-html targets.
3497 * config/mt-*: Remove, these haven't been used since 1996.
3501 * gdb.base/call-strs.c, gdb.base/ending-run.c,
3502 gdb.base/step-test.c: Include stdlib.h and string.h as needed.
3503 * gdb.c++/member-ptr.exp: Skip over these tests if using G++.
3507 * gdb.c++/overload.exp: XFAIL everything if using G++, add a
3508 simpler match case for the ptype of the big class.
3512 * gdb.exp: Fix test for gdb_prompt existence.
3516 * gdb.exp (gdb_test): Add fail after calls to perror.
3520 * gdb.exp (gdb_test): Accept variations of Undefined command messages.
3524 * gdb.exp (gdb_test): Fix anchors on gdb_expect statement.
3528 * gdb.base/call-strs.c (link_malloc): New function. Ensure that
3529 malloc() is linked in.
3533 * gdb.base/ending-run.exp: Make sure we fail and do not timeout at
3536 * gdb.base/annota1.exp: Increase match_max to prevent timeout.
3540 * gdb.java/jv-print.exp: New file. (Our first Java test!)
3544 * gdb.base/a1-selftest.exp: Remove bogus hppa xfail.
3545 * gdb.base/mips_pro.exp: Likewise.
3549 * gdb.c++/templates.cc: Change all "new" operators to throw
3551 * gdb.c++/cplusfuncs.cc: Likewise.
3553 * gdb.base/Makefile.in (EXECUTABLES): Add smoke1, annota1, and annota2.
3557 * gdb.base/condbreak.exp: Use rerun_to_main to start the program.
3558 * gdb.base/ending-run.exp: When stepping out of main, accept a
3559 step into an arbitrary assembler file.
3563 * gdb.base/annota1.exp: Allow any number of "frames-invalid" and
3564 "breakpoint-invalid" to be printed.
3565 * gdb.base/annota2.exp: Revise line number for main breakpoint. Allow any
3566 number of "frames-invalid" and "breakpoint-invalid" to be printed.
3567 * gdb.base/annota2.cc: Initialize a.x to 0.
3571 * gdb.base/call-ar-st.exp: Skip "print print_double_array (double_array)"
3572 when "skip_float_tests" set.
3573 Ditto for "print print_double_array(array_d)", "print print_small_structs",
3574 "print print_ten_doubles", and "step into print_long_arg_list".
3575 Don't assume we can step into "print_long_arg_list": we could step into memcpy.
3576 * gdb.base/call-rt-st.exp: Don't run float-related tests when "skip_float_tests"
3577 is set: "print print_one_double(*d1)" and "print print_two_floats(*f3)".
3578 * gdb.base/funcargs.exp: Don't run "float_and_integral_args" when
3579 "skip_float_tests" is set.
3580 * gdb.base/varargs.exp: Skip "print find_max_double(5,1.0,17.0,2.0,3.0,4.0)"
3581 when "skip_float_tests" set.
3585 * gdb.base/annota2.cc: Include stdio.h.
3589 * gdb.base/crossload.exp: Remove, this has been disabled ever
3590 since BFD stopped including all targets, and cross-GDB gets
3591 plenty of testing anyway.
3592 * gdb.base/i486-elf.u, gdb.base/m68k-aout.u, gdb.base/m68k-elf.u,
3593 gdb.base/sparc-aout.u, gdb.base/i860-elf.u, gdb.base/m68k-aout2.u,
3594 gdb.base/mips-ecoff.u, gdb.base/sparc-elf.u: Remove.
3595 * gdb.base/README: Remove, was doc for this.
3596 * gdb.base/Makefile.in (CROSS_EXECUTABLES): Remove, no longer
3601 * gdb.base/call-ar-st.exp: Fix one regular expression in test
3604 * gdb.base/annota1.exp: New file. Annotation level 2 tests.
3605 * gdb.base/annota2.exp: New file. More annotation tests.
3606 * gdb.base/annota1.c: New file. Source file for annota1.exp.
3607 * gdb.base/annota2.cc: New file. Source file for annota2.exp.
3611 * config/cfdbug.exp: New file.
3615 * gdb.c++/demangle.exp (test_gnu_style_demangling): Add tests for
3616 Marcus Daniel's and Dale Hawkins's demangler crashes.
3618 * gdb.c++/demangle.exp (test_gnu_style_demangling,
3619 test_lucid_style_demangling, test_arm_style_demangling,
3620 test_hp_style_demangling): Try Tom Tromey's core-dumping
3621 identifier under each demangling style.
3625 * gdb.c++/demangle.exp: Include the current demangling style
3627 (current_demangling_style): New global variable.
3628 (set_demangling_style, test_demangling_core, test_demangling,
3629 test_demangling_exact): New functions.
3630 (test_gnu_style_demangling, test_lucid_style_demangling,
3631 test_arm_style_demangling, test_hp_style_demangling): Use those,
3632 instead of calling gdb_test and gdb_test_exact directly.
3633 (catch_demangling_errors): New function, which reports errors
3634 signalled by the demangling test functions in an orderly way.
3635 (do_tests): Use catch_demangling_errors.
3639 * gdb.base/signals.exp (test_handle_all_print): Use () for
3640 grouping in expressions, not {}.
3642 * gdb.base/smoke.exp: Test value of x, not y. The latter isn't
3647 * gdb.c++/derivation.exp: Pass ptype tests if synthesized methods
3652 * gdb.stabs/weird.exp: Test for CC being defined before
3653 looking at its value.
3657 * gdb.base/call-ar-st.exp: Remove stray '#'.
3658 * gdb.base/miscexprs.exp: Allow "short" and "long" as well as
3659 "short int" and "long int".
3660 * gdb.c++/overload.cc: Cast the string added in the previous
3661 change, to mollify finicky HP compiler.
3662 * gdb.hp/reg-test.exp (testfile): Fix file name.
3663 * gdb.stabs/weird.exp: Don't try to run if HP compiler in use.
3665 * gdb.c++/misc.cc (main): Initialize obj_with_enum.
3666 * gdb.c++/classes.exp: Fix test of obj_with_enum values, allow
3667 alternate form of enum ptype.
3671 * lib/gdb.exp (skip_hp_tests): Remove gcc_used argument.
3672 * gdb.hp/*.exp: Change all to run compiler probe only after
3673 passing skip_hp_tests, so as not to waste time on guaranteed
3676 * gdb.c++/overload.cc: Pass string instead of char addr, always
3678 * gdb.c++/templates.cc: Fix syntax error.
3682 * gdb.base/commands.exp: Add test for correct position of '>'
3683 when issuing the 'commands' command after a 'while' or 'if'
3688 * gdb.c++/ovldbreak.exp: Use gdb_continue_to_end
3690 * gdb.c++/method.exp: It was testing an uninitialized int on the
3691 stack and assuming it was positive.
3693 * gdb.base/watchpoint.exp: Use gdb_continue_to_end.
3695 * gdb.base/step-test.exp: Catch a case where finish is broken and
3696 keep it from killing the rest of the tests.
3697 Use gdb_continue_to_end.
3699 * gdb.base/sigall.exp: use gdb_continue_to_end.
3701 * gdb.base/ena-dis-br.exp: use gdb_continue_to_end.
3703 * gdb.base/display.exp: use runto_main, not run.
3705 * gdb.base/default.exp: Check for the current error message in the
3706 r abbreviation test.
3707 Add strongarm to the targets that know info float.
3709 * gdb.base/condbreak.exp: Use the gdb_run command rather than just
3710 run which doesn't work with monitors.
3712 * gdb.base/call-ar-st.exp: fixed bogus regexp in continuing to 1034 test.
3714 * gdb.base/break.exp: use the gdb_continue_to_end proc.
3716 * lib/gdb.exp: I had added gdb_continue_to_end used to run to the end of a
3717 program. Traps the case (in Cygmon) when the program never really
3718 exits. Same as Mark's continue_to_exit, but I had put it in a lot
3719 more places, so I used my name. Sorry Mark...
3721 * config/monitor.exp (gdb_target_monitor): added another
3722 target_info parameter: remotebinarydownload. This will set the
3723 remotebinarydownload flag if this is causing some boards trouble.
3727 * lib/gdb.exp (continue_to_exit): New function.
3729 * gdb.base/ena-dis-br.exp: Clean up for remote targets.
3730 * gdb.base/ending-run.exp: Ditto.
3731 * gdb.base/step-test.exp: Ditto.
3735 * gdb.base/miscexprs.c: Clean up file, clear cbig.c[0] explicitly
3740 * gdb.base/signals.exp: Filter out *-*-linux* before matching *-*-gnu*.
3744 * gdb.c++/ref-types.exp, ref-types2.exp: Allow alternate
3745 descriptions of types (short unsigned int vs unsigned short, etc).
3749 * gdb.base/call-strs.exp: Don't assume that `step' will step over
3750 a call to strlen; sometimes we do have sources.
3754 * gdb.base/call-ar-st.c (main): Terminate char_array with a null
3755 character, so GDB won't print garbage after its end.
3757 * gdb.base/call-ar-st.exp: Don't step into sum_array_print; set a
3758 breakpoint there instead. Sometimes GCC emits memcpy to handle
3759 the large structures being passed by value, so we step into that
3760 instead of sum_array_print, which obscures what we're really testing.
3761 * gdb.base/step-test.exp: However, we do want a test that notices
3762 the bizarre steps into memcpy, so do that here. Add check for
3763 stepping into function calls that pass large structures by value.
3764 ("Is that a noun clause, or are you just happy to see me?")
3765 Remove all references to specific line numbers.
3766 * gdb.base/step-test.c (struct rhomboidal, large_struct_by_value):
3767 New type and function.
3768 (main): Call large_struct_by_value, passing it a large struct by value.
3769 * lib/gdb.exp (gdb_get_line_number): New function.
3771 * gdb.base/step-test.exp: Rewrite `stepi' and `nexti' tests to be
3776 * lib/gdb.exp: Doc fixes.
3780 * gdb.base/a2-run.exp: Add expected fails for strongarm-coff.
3784 * gdb.base/display.exp: Don't exercise the "detach" and "kill"
3785 commands. They're not germane to this test, and they don't work
3786 that way on remote targets.
3790 * Changelog entries merged over from gdb development branch.
3794 * lib/gdb.exp (gdbtk_analyze_results): Generic function
3795 for outputting results of test run.
3799 * lib/gdb.exp (gdbtk_start): Fix path for itcl library.
3803 * lib/gdb.exp (debug_format): initialize
3807 * gdb.base/call-ar-st.c: Include string.h, not strings.h.
3808 * gdb.base/call-rt-st.c: Ditto.
3812 * gdb.threads/pthreads.exp (horiz): New variable.
3813 (test_startup): Fix regexps that capture thread numbers.
3817 * gdb.base/smoke.exp: Disambiguate two test case names (both
3822 * gdb.base/volatile.exp: Use gdb_test, add xfails for GCC
3827 * gdb.base/miscexprs.exp: Change patterns to match GDB's
3828 actual output formatting.
3829 * gdb.base/smoke.exp: GDB removes leading 0's.
3830 * gdb.base/volatile.exp: Don't check type of remuneration;
3831 that variable is no longer defined in constvars.c.
3832 * gdb.base/step-test.c (main): Exit with explicit exit code.
3833 * gdb.base/step-test.exp: Remove two nexti checks--they are
3838 * gdb.base/help.exp ("help delete display"): Fix test to match
3841 * gdb.base/long_long.c (known_types): Initialize values to zero.
3842 * gdb.base/long_long.exp: Step one more line
3843 so 'dec' is initialized in "get to known place". GDB removes
3844 leading zeros. Explicitly ask for hex formatting. Use
3845 unique test case names.
3849 * lib/gdb.exp (gdb_preprocess): Remove 'puts' statement.
3851 * gdb.c++/method.exp: Add missing close brace.
3855 * gdb.base/maint.exp: Use 'set height 0' to disable page
3856 prompting, not 'set height 400'.
3858 Fix a bunch of timeouts.
3859 * gdb.base/maint.exp ("maint print objfiles"): Break this up into
3860 four separate tests, so expect doesn't take forever to match a ton
3861 of text against a regexp with lots of .* forms.
3862 ("maint print psymbols", "maint print symbols"): Make some of
3863 these greps more selective, so that expect doesn't try to wade
3864 through huge piles of output and time out.
3866 * gdb.base/maint.exp ("maint print msymbols"): Fix pattern.
3868 * gdb.base/maint.exp ("maint info breakpoints"): Split into two
3869 tests: one which doesn't expect shlib events to be reported, and
3870 another which does, but is XFAIL for all platforms other than
3873 * gdb.base/break.exp: Teach the test suite that the `catch
3874 fork', `catch vfork', and `catch exec' commands produce error
3875 messages on platforms that don't provide these features.
3879 * gdb.hp/gen-so-thresh.c, so-thresh.sh, so-thresh.exp,
3880 so-thresh.linkopts, so-thresh.mk: Move to gdb.hp from gdb.base
3881 (shortening names from solib_threshold.exp etc), won't run on
3882 anything but HP-UX for the foreseeable future.
3883 * gdb.hp/Makefile.in, gdb.base/Makefile.in (clean): Adjust to
3888 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
3889 gdb.trace/Makefile.in (clean): Remove all test executables.
3893 * gdb.base/shlib-call.exp: add test cases to verify that gdb
3894 successfully re-sets breakpoints in shared libraries.
3895 * gdb.base/shmain.c (main): return 0, don't fall off the end.
3899 * gdb.hp/xdb3.exp: do not execute unless on hppa-hpux platform
3900 and compiled w/o GCC.
3902 * gdb.hp/watch-cmd.exp: ditto.
3904 * gdb.hp/watch-hp.exp: ditto.
3906 * gdb.hp/xdb1.exp: ditto.
3908 * gdb.hp/xdb2.exp: ditto.
3910 * gdb.hp/dbx.exp: ditto.
3914 * constvars.c: Remove C++-isms.
3915 * constvars.exp: Use gdb_test everywhere, add xfails if compiled
3920 The following changes are part of the HP merge.
3922 * gdb.base/break.exp: new tests to verify that catchpoints for
3923 fork, vfork, and exec don't trigger inappropriately.
3925 * gdb.base/opaque.exp: compile one file at a time, then link.
3927 * gdb.base/signals.exp: be more restrictive about which hppa
3928 systems receive a setup_xfail. new tests.
3930 * gdb.base/solib_threshold.build: new file.
3931 * gdb.base/solib_threshold.exp: new file.
3932 * gdb.base/solib_threshold.link_opts: new file.
3933 * gdb.base/solib_threshold.mk: new file.
3934 * gdb.base/gen_solib_threshold.c: new file.
3936 * gdb.c++/classes.exp: if on HPUX and not using gcc, skip the
3937 tests. New tests for enums inside classes.
3939 * gdb.c++/compiler.cc: indicate support of template debugging.
3941 * gdb.c++/demangle.exp: run hp style demangling tests.
3943 * gdb.c++/inherit.exp: if on HPUX and not using gcc, skip the
3946 * gdb.c++/misc.cc: changes to support new tests.
3948 * gdb.c++/templates.cc: changes to support HP's compiler; changes
3949 to support new tests.
3951 * gdb.c++/virtfunc.exp: if we are on HPUX and we are not using
3952 gcc, then skip these tests.
3956 The following files are part of the HP merge; some had longer
3957 names at HP, but have been renamed to be no more than 14
3958 characters in length.
3960 * gdb.hp/ambiguous.cc: new file.
3961 * gdb.hp/ambiguous.exp: new file.
3962 * gdb.hp/attach.exp: new file.
3963 * gdb.hp/attach2.exp: new file.
3964 * gdb.hp/classes-hp.exp: new file.
3965 * gdb.hp/ctti.exp: new file.
3966 * gdb.hp/ctti-add.cc: new file.
3967 * gdb.hp/ctti-add1.cc: new file.
3968 * gdb.hp/ctti-add2.cc: new file.
3969 * gdb.hp/ctti-add3.cc: new file.
3970 * gdb.hp/dbx.exp: new file.
3971 * gdb.hp/exception.cc: new file.
3972 * gdb.hp/exception.exp: new file.
3973 * gdb.hp/foll-exec.c: new file.
3974 * gdb.hp/foll-exec.exp: new file.
3975 * gdb.hp/foll-fork.c: new file.
3976 * gdb.hp/foll-fork.exp: new file.
3977 * gdb.hp/foll-vfork.c: new file.
3978 * gdb.hp/foll-vfork.exp: new file.
3979 * gdb.hp/inherit-hp.exp: new file.
3980 * gdb.hp/more-steps.exp: new file.
3981 * gdb.hp/namespace.cc: new file.
3982 * gdb.hp/namespace.exp: new file.
3983 * gdb.hp/optimize.exp: new file.
3984 * gdb.hp/pxdb.c: new file.
3985 * gdb.hp/pxdb.exp: new file.
3986 * gdb.hp/quicksort.exp: new file.
3987 * gdb.hp/reg-test.exp: new file.
3988 * gdb.hp/reg-test.s: new file.
3989 * gdb.hp/sized-enum.c: new file.
3990 * gdb.hp/sized-enum.exp: new file.
3991 * gdb.hp/start-stop.exp: new file.
3992 * gdb.hp/templ-hp.cc: new file.
3993 * gdb.hp/templ-hp.exp: new file.
3994 * gdb.hp/thr-lib.c: new file.
3995 * gdb.hp/thr-lib.exp: new file.
3996 * gdb.hp/thr-lib.h: new file.
3997 * gdb.hp/thr-liblib.c: new file.
3998 * gdb.hp/virtfun-hp.c: new file.
3999 * gdb.hp/virtfun-hp.exp: new file.
4000 * gdb.hp/watch-cmd.exp: new file.
4001 * gdb.hp/watch-hp.exp: new file.
4002 * gdb.hp/xdb1.exp: new file.
4003 * gdb.hp/xdb2.exp: new file.
4004 * gdb.hp/xdb3.exp: new file.
4008 The following files are part of the HP merge; some had longer
4009 names at HP, but have been renamed to be no more than 14
4010 characters in length.
4012 * gdb.base/ss.h: new file.
4013 * gdb.base/call-ar-st.c: new file.
4014 * gdb.base/call-ar-st.exp: new file.
4015 * gdb.base/call-rt-st.c: new file.
4016 * gdb.base/call-rt-st-exp: new file.
4017 * gdb.base/call-strs.exp: new file.
4018 * gdb.base/ena-dis-br.exp: new file.
4019 * gdb.base/environ.exp: new file.
4020 * gdb.base/long_long.exp: new file.
4021 * gdb.base/sect-cmd.exp: new file.
4022 * gdb.base/shlib-cl2.exp: new file.
4023 * gdb.base/smoke.exp: new file.
4024 * gdb.base/so-impl-ld.c: new file.
4025 * gdb.base/so-impl-ld.exp: new file.
4026 * gdb.base/so-indr-cl.c: new file.
4027 * gdb.base/so-indr-cl.exp: new file.
4028 * gdb.base/varargs.exp: new file.
4029 * gdb.base/volatile.exp: new file.
4030 * gdb.base/whatis-exp.exp: new file.
4031 * gdb.base/display.exp: new file.
4032 * gdb.c++/derivation.exp: new file.
4033 * gdb.c++/local.exp: new file.
4034 * gdb.c++/member-ptr.exp: new file.
4035 * gdb.c++/overload.exp: new file.
4036 * gdb.c++/ovldbreak.exp: new file.
4037 * gdb.c++/ref-types.exp: new file.
4038 * gdb.c++/ref-types2.exp: new file.
4039 * gdb.c++/userdef.exp: new file.
4043 * gdb.base/default.exp: Reflect wording change in remote.c.
4047 * gdb.base/help.exp: Update to reflect current text.
4051 * gdb.c++/anon-union.cc: make foo and bar global, otherwise
4052 they're stack variables and contain garbage.
4053 * gdb.c++/anon-union.exp: new file.
4055 The following changes were made by David Taylor
4060 * gdb.base/bitops.exp: new file.
4061 * gdb.base/default.exp: change expected messages for catch and
4062 info catch tests to reflect HP merge changes.
4063 * gdb.base/enable-disable-break.exp
4064 * gdb.base/ending-run.c: new file.
4065 * gdb.base/long_long.c: new file.
4066 * gdb.base/maint.exp: new file.
4067 * gdb.base/pointers2.exp: new file.
4068 * gdb.base/shlib-call2.exp: new file.
4069 * gdb.base/solib.exp: new file.
4070 * gdb.base/step-test.c: new file.
4071 * gdb.c++/anon-union.cc: new file.
4072 * gdb.c++/local.cc: new file.
4073 * gdb.c++/member-pointer.cc: new file.
4074 * gdb.c++/method.cc: new file.
4075 * gdb.c++/ref-types.cc: new file.
4076 * gdb.c++/ref-types2.cc: new file.
4077 * gdb.c++/userdef.cc: new file.
4079 * gdb.base/scope.exp: compile one file at a time, then link.
4080 * gdb.base/langs.exp: ditto.
4081 * gdb.base/list.exp: ditto.
4085 The following changes were made by David Taylor
4090 * gdb.c++/inherit.exp: if on hppa*-*-hpux* and not using gcc,
4091 skip tests. When compiling pass c++ flag to gdb_compile.
4094 * lib/gdb.exp (get_compiler_info): new, optional argument -- args;
4095 test for on hppa*-*-hpux*; use args to see if c++ was specified.
4096 (skip_hp_tests): new function.
4097 (gdb_preprocess): new function.
4099 * configure.in (hpdir): decide whether to configure gdb.hp.
4100 * configure: regenerated.
4102 * gdb.base/Makefile.in (MISCELLANEOUS): new macros -- extra things
4104 (EXECUTABLES): update to reflect new additions.
4105 * gdb.base/commands.exp: update message expected.
4106 * gdb.base/default.exp: add copyright notice.
4107 * gdb.base/funcargs.exp (timeout): if hpux, increase timeout.
4108 * gdb.base/help.exp: update messages to reflect current text.
4109 * gdb.base/recurse.exp: add hpppa*-*-bsd* to 'list' of enabled
4110 targets for recurse tests.
4111 * gdb.base/watchpoint.exp: if on hpux and not gcc compiled, then
4114 * gdb.c++/Makefile.in (PROGS): update to reflect new executables.
4115 * gdb.c++/cplusfuncs.exp: tell gdb_compile that it's a c++
4117 * gdb.c++/misc.exp: ditto.
4118 * gdb.c++/templates.exp: if we're on hpux and it's not gcc, don't
4119 run the tests. tell gdb_compile that it's a c++ compilation.
4121 * gdb.threads/pthreads.exp: fix typo in message.
4123 * gdb.base/all-bin.exp: new file.
4124 * gdb.base/arithmet.exp: new file.
4125 * gdb.base/assign.exp: new file.
4126 * gdb.base/completion.exp: new file.
4127 * gdb.base/cond-expr.exp: new file.
4128 * gdb.base/condbreak.exp: new file.
4129 * gdb.base/define.exp: new file.
4130 * gdb.base/dollar.exp: new file.
4131 * gdb.base/environment.exp: new file.
4132 * gdb.base/eval-skip.exp: new file.
4133 * gdb.base/jump.exp: new file.
4134 * gdb.base/logical.exp: new file.
4135 * gdb.base/pointers.exp: new file.
4136 * gdb.base/relational.exp: new file.
4137 * gdb.base/section_command.exp: new file.
4138 * gdb.base/whatis-expr.exp: new file.
4140 * gdb.base/all-types.c: new file.
4141 * gdb.base/call-array-struct.c: new file.
4142 * gdb.base/call-return-struct.c: new file.
4143 * gdb.base/call-strings.c: new file.
4144 * gdb.base/callfuncs2.c: new file.
4145 * gdb.base/condbreak.c: new file.
4146 * gdb.base/constvars.c: new file.
4147 * gdb.base/display.c: new file.
4148 * gdb.base/int-type.c: new file.
4149 * gdb.base/jump.c: new file.
4150 * gdb.base/miscexprs.c: new file.
4151 * gdb.base/pointers.c: new file.
4152 * gdb.base/pointers2.c: new file.
4153 * gdb.base/shmain.c: new file.
4154 * gdb.base/shr1.c: new file.
4155 * gdb.base/shr2.c: new file.
4156 * gdb.base/solib.c: new file.
4157 * gdb.base/solib1.c: new file.
4158 * gdb.base/solib2.c: new file.
4159 * gdb.base/varargs.c: new file.
4160 * gdb.c++/derivation.cc: new file.
4161 * gdb.c++/overload.cc: new file.
4162 * gdb.c++/ovldbreak.cc: new file.
4163 * gdb.hp/attach.c: new file.
4164 * gdb.hp/attach2.c: new file.
4165 * gdb.hp/average.c: new file.
4166 * gdb.hp/compiler.c: new file.
4167 * gdb.hp/compiler.cc: new file.
4168 * gdb.hp/execd-program.c: new file.
4169 * gdb.hp/follow-exec.c: new file.
4170 * gdb.hp/follow-fork.c: new file.
4171 * gdb.hp/follow-vfork-and-exec.c: new file.
4172 * gdb.hp/misc-hp.cc: new file.
4173 * gdb.hp/more-steps.c: new file.
4174 * gdb.hp/optimize.c: new file.
4175 * gdb.hp/quicksort.c: new file.
4176 * gdb.hp/run-hp.c: new file.
4177 * gdb.hp/start-stop.c: new file.
4178 * gdb.hp/sum.c: new file.
4179 * gdb.hp/templates-hp.cc: new file.
4180 * gdb.hp/thread-local-in-lib.c: new file.
4181 * gdb.hp/thread-local-in-lib.h: new file.
4182 * gdb.hp/thread-local-in-lib.lib.c: new file.
4183 * gdb.hp/vforked-program.c: new file.
4184 * gdb.hp/virtfunc-hp.cc: new file.
4185 * gdb.hp/watchpoint-hp.c: new file.
4186 * gdb.hp/xdb.c: new file.
4187 * gdb.hp/xdb0.c: new file.
4188 * gdb.hp/xdb0.h: new file.
4189 * gdb.hp/xdb1.c: new file.
4193 The following change was made by Edith Epstein
4195 originally made by HP; HP did not create ChangeLog entries.
4197 * gdb.c++/demangle.exp: changed the expected output for some
4198 ARM-style mangling -- removed second reference to datatype.
4199 For example, maint demangle __dt__11T1__pt__2_cFv
4200 T1<char>::~T1<char>(void)
4202 maint demangle __dt__11T1__pt__2_cFv
4205 (test_hp_style_demangling): new hp specific demangling test cases.
4209 * gdb.trace/actions.exp: Ignore compiler warnings compiling actions.c
4210 * gdb.trace/backtrace.exp: Likewise.
4211 * gdb.trace/circ.exp: Likewise.
4212 * gdb.trace/collection.exp: Likewise.
4213 * gdb.trace/deltrace.exp: Likewise.
4214 * gdb.trace/infotrace.exp: Likewise.
4215 * gdb.trace/limits.exp: Likewise.
4216 * gdb.trace/packetlen.exp: Likewise.
4217 * gdb.trace/passc-dyn.exp: Likewise.
4218 * gdb.trace/passcount.exp: Likewise.
4219 * gdb.trace/report.exp: Likewise.
4220 * gdb.trace/save-trace.exp: Likewise.
4221 * gdb.trace/tfind.exp: Likewise.
4222 * gdb.trace/tracecmd.exp: Likewise.
4223 * gdb.trace/while-dyn.exp: Likewise.
4224 * gdb.trace/while-stepping.exp: Likewise.
4228 * gdb.base/restore.exp, gdb.base/restore.c: New tests.
4233 * gdb.c++/cplusfuncs.cc, misc.cc, virtfunc.cc: Add now-required
4238 * config/slite.exp (gdb_load): use gdb_file_cmd, so we can do
4239 remote dos host testing right.
4243 * gdb.base/corefile.exp: remove some xfails.
4247 * gdb.base/reread.exp: Sleep 1 - ensures that the two executables
4248 have different timestamps.
4252 * lib/gdb.exp, gdb.base/default.exp, config/monitor.exp,
4253 gdb.base/default.exp: Replace "exec" with "executable".
4257 * gdb.base/default.exp: Change else if to elseif from previous
4262 * gdb.base/default.exp: Add brace missing from previous delta.
4266 * gdb.base/default.exp: Support test for info float for all
4267 varieties of arm toolchain.
4271 * gdb.trace/*.exp: remove "remote_download" command.
4275 * gdb.trace/*.exp: remove -gdwarf from compile.
4279 * gdb.trace/configure.in(AC_INIT): typo
4280 * gdb.trace/configure: regenerated
4284 * config/m68k-emc.exp: New file.
4285 * lib/<emc-support.exp trace-support.exp}: New files.
4286 * configure.in: add new test directory gdb.trace.
4287 * gdb.trace/{configure configure.in Makefile.in}: New files.
4288 * gdb.trace/{actions.c actions.exp gdb_c_test.c}: New files.
4289 * gdb.trace/{circ.c circ.exp limits.c limits.exp}: New files.
4290 * gdb.trace/{collection.c collection.exp tfind.exp }: New files.
4291 * gdb.trace/{backtrace.exp deltrace.exp infotrace.exp}: New files.
4292 * gdb.trace/{packetlen.exp passc-dyn.exp passcount.exp}: New files.
4293 * gdb.trace/{report.exp save-trace.exp tracecmd.exp}: New files.
4294 * gdb.trace/{while-dyn.exp while-stepping.exp}: New files.
4298 * gdb.c++/classes.exp: Change all regular expressions to match
4299 arbitrary combinations of newline/carriage-return, so that they
4300 will work equally well on Unix and Windows.
4301 * gdb.c++/inherit.exp: ditto.
4302 * gdb.c++/virtfunc.exp: ditto.
4306 * gdb.base/setshow.exp: Fix error introduced by call to runto_main.
4310 * gdb.disasm/am33.s: Add tests for autoincrement instructions.
4311 * gdb.disasm/am33.exp: Run time. Update tests which use r8-r15
4312 to use a0-a3/d0-d3 as needed.
4316 * gdb.disasm/am33.s: Add 4 operand mul and mulu tests.
4317 * gdb.disasm/am33.exp: Corresponding changes.
4321 * gdb.base/callfuncs.exp: add cmp10 test.
4322 * gdb.base/callfuncs.c (cmp10): new function.
4326 * gdb.base/commands.exp: Break up infrun_breakpoint_command_test
4327 into two parts to get around a synchronization problem in expect.
4331 * lib/gdb.exp (gdbtk_start): Add startup for gdbtk.
4333 * configure.in: Add options for gdbtk testsuite.
4335 * configure: Regenerate.
4337 * gdb.gdbtk: New directory to hold gdbtk tests.
4341 * gdb.fortran/types.exp: Escape brackets in expect patterns
4342 for test_float_literal_types_accepted tests.
4343 * gdb.base/scope.exp: Remove extraneous newline in filelocal_bss
4348 * am33.exp: Just compile, do not link the testcase.
4349 * am33.s: Add ".am33" pseudoop to force am33 mode.
4353 * gdb.base/setshow.exp: make sure $pc is sane.
4355 * gdb.stabs/weird.exp: split expect patterns properly.
4359 * gdb.disasm/am33.s: New disassembler testfile for the am33.
4360 * gdb.disasm/am33.exp: Run it.
4364 * gdb.base/funcargs.exp: simplify expect strings to ease pattern
4365 match processing (and eliminate spurious timeouts when running).
4369 * gdb.base/signals.exp (test_handle_all_print): put back Mach
4370 exception test, but conditionalize it on target [mach | gnu].
4374 * gdb.base/overlays.exp: fixup compile line for linker script.
4378 * gdb.fortran/types.exp: don't guess at float size.
4382 * gdb.base/exprs.exp: delete test that depends on int size.
4386 * config/sim.exp: Removed checks for target triplets.
4387 (gdb_target_sim): Use gdb,target_sim_options.
4391 * gdb.base/reread.exp: New file.
4392 * gdb.base/reread1.c: New file.
4393 * gdb.base/reread2.c: New file.
4397 * config/sim.exp: Use 'target sim -sparclite' when running
4402 * gdb.base/structs2.exp: New file.
4403 * gdb.base/structs2.c: New file.
4407 * gdb.asm/common.inc: New file.
4408 * gdb.asm/d10v.inc: New file.
4409 * asm-source.exp: Pass -I's to gas to find .inc files.
4410 Update line numbers in expected output.
4411 * asmsrc1.s: Rewrite.
4412 * asmsrc2.s: Rewrite.
4413 * configure.in: Create arch.inc symlink.
4414 * configure: Regenerate.
4415 * Makefile.in (distclean): Delete arch.inc.
4419 * callfuncs.c (t_enum_value1) : Cleanup return value warnings
4420 (t_enum_value2): ditto
4421 (t_enum_value3): ditto
4425 * gdb.base/break.exp: Remove xfail for `deleting all breakpoints
4426 when none' unexpected prompt case, fixed by breakpoint.c:delete_command
4428 Use gdb_test instead of send_gdb/gdb_expect sequences.
4432 * gdb.c++/virtfunc.cc: Declare extern "C" printf to return int,
4437 * gdb.base/branches.c: Code with lots of loops and
4438 subroutines. Used to test gdbs ability to single step through PC
4439 changes, especially to test mips-tdep.c:mips_next_pc
4443 * gdb.c++/virtfunc.cc: Make extern "C" printf declaration pass
4444 more rigorous EGCS C++ error checking.
4448 * gdb.base/help.exp: Clean up `help set args' and `help show args'
4450 * gdb.base/interrupt.exp: Add "i*86-*-solaris2*" xfail for calling
4451 function when asleep.
4452 * gdb.base/signals.exp: Add "i*86-*-solaris2*" xfails. Add comment
4453 for i*86 Linux and SVR4 signal handling problems.
4454 Remove linux xfail for `next to handler in signals_tests_1', fixed
4455 by recent infrun.c change.
4456 Limit backtrace to 10 frames to avoid timeout problems with infinite
4458 Adjust expect pattern in `handle all print' test to match Apr 28 1997
4463 * lib/gdb.exp(gdb_test): Send multiline commands one at a time; wait
4464 for a newline from gdb before continuing.
4465 (default_gdb_exit): Just look for y or n.
4466 (gdb_test): Detect abnormal exit from GDB running on DOS; if
4467 it does, fail the rests of the tests in the file.
4471 * config/cygmon.exp: New file.
4475 * gdb.base/list.exp: Fix problem with "list default lines around
4476 main" test on remote targets.
4478 * gdb.base/scope.exp: Fix problem with filelocal_bss before
4479 run test on remote targets.
4483 * gdb.asm: New directory.
4484 * configure.in: Configure it.
4485 * configure: Regenerate.
4486 * gdb.asm/{Makefile.in,configure.in,configure}: New files.
4487 * gdb.asm/{asm-source.exp,asmsrc1.s,asmsrc2.s}: New files.
4491 * config/mn10300-eval.exp: New file to support MN10300 eval board.
4495 * gdb.base/overlays (several files): Merge the two overlay
4496 managers into one. Change variables (foox, barx, bazx, grbxx)
4497 back into ints but force them to load in their proper sections.
4501 * gdb.base/d10vovly.c (D10VTranslate): Map IMAP0 to low 128k of
4502 on-chip insn memory and IMAP1 to upper 128k.
4503 (D10VCopy): Handle memory regions crossing 16k boundaries.
4504 (D10VCopy): Transfer data in 32 bit chunks.
4508 * gdb.base/overlays.c (main): Exit normally when result is
4511 * gdb.base/d10v.ld: Update LMAs to reflect current d10v address
4512 map. Include space for printf in .text segment.
4514 * gdb.base/d10vovly.c (D10VTranslate): New function, handle
4515 updated d10v memory VMA/LMA map.
4516 (D10VCopy): Call D10VTranslate.
4520 * gdb.base/m32rovly.c: Force variable _novlys into .data section.
4522 * gdb.base/bar.c (barx, bar): Change variable to small array so
4523 that it won't be put into the .sdata - small data -
4524 section. Update reference.
4525 * gdb.base/baz.c (bazx, baz): Ditto.
4526 * gdb.base/foo.c (foox, foo): Ditto.
4527 * gdb.base/grbx.c (grbxx, grbx): Ditto.
4529 * gdb.base/overlays.exp: Expect variables barx, bazx, foox, grbxx
4534 * gdb.base/overlays.exp: fix up and get working again.
4535 Add tests for backtraces from an overlay function.
4539 * gdb.base/watchpoint.exp: Set "d10v*-*-*" clear_xfail for
4540 "calling function with watchpoint enabled".
4544 * gdb.base/break.exp (test_next_with_recursion): Remove
4545 gdb_suppress_tests for d10v-*-*.
4546 * lib/gdb.exp (gdb_suppress_tests): Disable this function
4547 pending review of whether it is useful or not.
4551 * gdb.base/funcargs.exp: Increase timeout for slow TX39 boards.
4555 * gdb.base/break.exp: Increase timeout for slow TX39 boards.
4556 * config/dve.exp: New file to support Densan boards.
4560 * gdb.base/interrupt.exp: Document problem of simulators, signals,
4565 * config/monitor.exp: Be a bit less picky about the "Remote debugging"
4568 * gdb.c++/misc.exp: Call runto_main instead of doint it manually.
4572 * gdb.base/mips_pro.exp: Add "mips64*-*-elf" xfail for backtrace
4575 * gdb.base/funcargs.exp: Query GDB for target_sizeof_int,
4576 target_sizeof_long and target_bigendian_p.
4577 (structs_by_value, structs_by_reference): Check values according
4578 to targets word size and endianess.
4582 * gdb.base/langs.exp: For "continue to exit" ignore any trailing
4587 * gdb.base/default.exp, gdb.base/help.exp, gdb.base/setshow.exp:
4588 Update test of set args help to match source change.
4592 * gdb.base/default.exp: Expect help system output to be in
4594 * gdb.base/help.exp: Ditto.
4598 * gdb.base/signals.exp: Change "i*86-pc-linux-gnu" to
4599 "i*86-pc-linux-gnu*".
4600 * gdb.base/interrupt.exp: Ditto.
4601 * gdb.base/corefile.exp: Ditto.
4603 * lib/gdb.exp(gdb_compile): If is_vxworks target feature is set,
4604 define vxworks when building the testcase.
4606 * gdb.base/ptype.exp: Fix testnames to be unique.
4607 * gdb.base/radix.exp: Ditto.
4608 * gdb.base/term.exp: Ditto.
4609 * gdb.base/whatis.exp: Ditto.
4610 * gdb.c++/classes.exp: Ditto.
4614 * gdb.base/callfuncs.exp: Fix indentation.
4616 * lib/gdb.exp(gdb_expect): Set remote_suppress_flag if
4617 suppress_flag has been set.
4618 (gdb_step_for_stub): Check for gdb,use_breakpoint_for_stub
4623 * gdb.stabs/weird.exp: Don't start gdb 'til after we've compiled
4626 * gdb.c++/cplusfuncs.cc(main): Add extern "C" declaration for
4627 set_debug_traps() and breakpoint().
4628 * gdb.c++/misc.cc (main): Ditto.
4629 * gdb.c++/templates.cc (main): Ditto.
4630 * gdb.c++/virtfunc.cc (main): Ditto.
4634 * lib/gdb.exp(gdb_step_for_stub): New function.
4635 (gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
4636 exists, reload the executable and do a "continue" instead of
4638 (runto_main): Use gdb_step_for_stub.
4640 * gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
4641 tests to have unique names.
4642 * gdb.base/callfuncs.exp: Ditto.
4643 * gdb.base/commands.exp: Ditto.
4644 * gdb.base/default.exp: Ditto.
4645 * gdb.base/help.exp: Ditto.
4646 * gdb.base/list.exp: Ditto.
4647 * gdb.base/opaque.exp: Ditto.
4648 * gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
4651 * gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
4652 * gdb.c++/cplusfuncs.cc: Ditto.
4653 * gdb.c++/virtfunc.cc: Ditto.
4655 * config/monitor.exp: Keep track of the last file we saw, rather
4656 than trying to get the info from gdb.
4658 * gdb.fortran/types.exp: Move comment to previous line.
4662 * config/sparclet.exp: Detect gratuitous change to sparclet gdb
4668 * config/monitor.exp (gdb_target_monitor): Look for "Connected to"
4669 string from GDB when it connects.
4671 * lib/gdb.exp: Look for $TOOL_EXECUTABLE.
4675 * lib/gdb.exp(get_debug_format): Don't cause the testsuite to fail
4676 if we can't get a debug format from GDB (we may be testing an
4677 older GDB). Use a 10 second timeout when checking for the format.
4679 * gdb.stabs/weird.exp: Fix quoting.
4681 * config/sparclet.exp: Renamed sparclet-loader.c to stub-loader.c.
4685 * config/arm-ice.exp: New file.
4689 * gdb.base/overlays.exp: Preliminary fixes; temporarily disabled
4690 until it has been modified to work with the new testsuite.
4692 * gdb.*/*.exp: Instead of causing 1 unresolved test when the
4693 testcase won't compile, cause all of the testcases in the file to
4696 * lib/gdb.exp(gdb_suppress_entire_file): New procedure.
4697 (gdb_clear_suppressed): New procedure.
4698 (gdb_stop_suppressing_tests): Only clear suppress_flag if
4699 it contains a positive value.
4703 * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature.
4705 * gdb.c++/virtfunc.exp: Remove setting of libs variable.
4709 * lib/gdb.exp (setup_xfail_format): New function.
4710 (get_debug_format): New function to get debug format.
4711 (debug_format): New global variable to hold last value set
4712 by get_debug_format.
4713 * gdb.base/list.exp: Call get_debug_format and expect some
4714 tests to fail for DWARF 1 and COFF formats.
4715 * gdb.c++/ptype.exp: Ditto.
4716 * gdb.c++/classes.exp: Ditto.
4717 * gdb.c++/cplusfuncs.exp: Ditto.
4718 * gdb.c++/inherit.exp: Ditto.
4719 * gdb.c++/templates.exp: Ditto.
4720 * gdb.c++/virtfunc.exp: Ditto.
4724 * lib/gdb.exp(default_gdb_exit): Don't give an error if the remote
4725 host doesn't have a currently-open connection.
4727 * config/sparclet.exp: Cleanups and fixes to make it generic for
4728 any gdb stub target. Handle cases where gdb doesn't respond when
4729 interrupted in a sane fashion.
4731 * config/m32r-stub.exp: Load sparclet.exp instead of trying to do the
4732 same thing in a totally different way.
4734 * config/monitor.exp: Pass in timeouts to gdb_expect instead of
4736 (gdb_start): We set the global gdb_prompt variable in
4737 default_gdb_init now.
4741 * gdb.base/printcmds.exp: Fix "check for floating addition"
4742 regexp to accept results within approx +/- .01 of exact value.
4743 * lib/gdb.exp (gdb_test): Remove unused expect_out global decl.
4747 * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_init
4749 (gdb_expect): Add optional timeout parameter, and add timeout
4750 value to various calls.
4751 (gdb_suppress_tests): Only give one warning message per group.
4755 * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode as
4756 global variables. Handle getting a value for $timeout more
4761 * lib/gdb.exp: Close connection to remote host if gdb doesn't
4763 (default_gdb_init): New procedure; allow gdb_init to be overridden
4764 by a target configuration file.
4765 (gdb_expect): Pass the timeout to remote_expect.
4767 * config/monitor.exp(gdb_load): Fix typo in regexp.
4771 * gdb.base/funcargs.exp: Remove spurious suppress tests call.
4775 * config/monitor.exp(gdb_target_monitor): Call gdb_file_cmd
4776 here. Call gdb_target_exec before rebooting the target, to make
4777 sure the connection to the target is closed.
4778 (gdb_load): Pass the name of the executable to gdb_target_monitor.
4779 Don't call gdb_file_cmd here; let gdb_target_monitor do it.
4780 Also detect "Timeout reading from remote" error.
4782 * config/gdbserver.exp: Pass the executable being loaded to
4783 gdb_target_monitor. Don't call gdb_file_cmd here; let
4784 gdb_target_monitor do it.
4786 * gdb.disasm/hppa.exp: Don't use exec_output.
4790 * gdb.base/list.exp: If we're debugging a non-native target,
4791 try to set the pc register to point to the start of the
4792 program before doing the first list command.
4794 * gdb.c++/virtfunc.exp(gdb_virtfunc_restart): Make sure we run
4795 test_calls after restarting.
4797 * lib/gdb.exp(gdb_run_cmd): Send jump command again after
4800 * gdb.base/watchpoint.exp: Fix typo.
4802 * gdb.base/setshow.exp: Check for use_gdb_stub.
4804 * gdb.base/break.exp: Fix continue until exit test for the gdb
4806 * gdb.base/langs.exp: Ditto.
4808 * config/monitor.exp(gdb_load): Handle gdb_sect_offset and
4809 gdb_load_offset. If we weren't given a file to load, figure out
4810 what the current file is and use it.
4812 * config/i386-bozo.exp: New file.
4816 * lib/gdb.exp(gdb_expect): Look for gdb,timeout target
4819 * config/proelf.exp: New entry.
4823 * lib/gdb.exp: Remove spurious .* patterns at the beginning
4826 * gdb.base/watchpoint.exp: Don't run the test_stepping
4827 tests if gdb can't call functions on the target.
4829 * gdb.base/setshow.exp: Don't run the set prompt tests if
4830 the board has gdb_prompt set.
4834 * gdb.base/a2-run.exp: Change "gdb,noargs" to just "noargs".
4835 * gdb.base/commands.exp: Likewise.
4836 * gdb.base/setshow.exp: Likewise.
4840 * config/monitor.exp(gdb_start): Look for gdb_prompt target
4843 * config/i960.exp: New file.
4847 * gdb.base/funcargs.exp: Check for gdb,short_int target
4848 feature instead of looking for explicit target triplets.
4852 * gdb.base/printcmds.exp: add a couple more tests a la
4853 "p 123DEADBEEF", to check parse_number.
4854 * top.c: change "to enable to enable" to "to enable" in a couple
4859 * gdb.base/callfuncs.exp: Mark some tests as expected to fail
4864 * gdb.base/a2-run.exp: Add arm-*-coff setup_xfails for cases
4865 where the test executable is run with explicit args.
4866 * gdb.base/default.exp: Handle arm-*-coff case for "info float".
4870 * gdb.base/run.c: Use FAKEARGV to build test executable that
4871 does not require a command line arg, since most simulators
4872 don't currently support passing such an arg into the simulated
4874 * gdb.base/commands.exp: Change tests to insert the proper
4875 value as the arg to the first recursive factorial call. Change
4876 compilation line to define FAKEARGV at compile time.
4880 * gdb.base/recurse.exp: Enable these tests for the mn10300.
4881 * gdb.base/watchpoint.exp: Don't expect a failure for an "calling
4882 function with watchpoint enabled" test.
4886 * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall):
4887 Don't call gdb_test when the command doesn't return to a gdb prompt.
4889 * lib/gdb.exp(gdb_stop_suppressing_tests): Don't print gratuitous
4890 "Tests restarted" messages.
4894 * gdb.disasm/mn10300.exp: Fix buglets in "other" tests.
4898 * gdb.base/help.exp: update help msg for INFO ADDR; add help test
4899 for INFO SYMBOL; add help tests for OVERLAY commands.
4900 * gdb.base/default.exp: add tests for INFO SYMBOL command;
4901 add tests for OVERLAY commands
4902 * gdb.base/overlays.c overlays.exp foo.c bar.c baz.c grbx.c ovlymgr.h
4903 d10v.ld m32r.ld d10vovly.c m32rovly.c: add test case for overlays.
4904 * gdb.base/sigall.c: add usestubs code frag
4905 * gdb.base/watchpoint.exp: turn on complex watchpoint test for M32R.
4909 * lib/gdb.exp(gdb_suppress_tests): Add explanation for subsequent
4911 (gdb_stop_suppressing_tests): Note that tests have restarted.
4915 * config/h8300.exp: New file.
4919 * gdb.base/setshow.exp: Check for the existence of a
4920 feature, not its value.
4924 * gdb.c++/virtfunc.exp: Restart gdb in a sane fashion.
4926 * gdb.base/scope.exp: It's now init0(), not init().
4928 * gdb.base/scope0.c: For now, change init() to be init0().
4930 * config/monitor.exp: Use gdb_serial in preference to serial
4933 * lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host
4934 and it's not already set.
4938 * gdb.base/setshow.exp: Only test the run command if the target
4939 isn't using a stub and if it supports argument passing.
4943 * config/udi.exp(gdb_start): Make sure UDICONF is set
4944 properly before starting gdb.
4948 * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
4949 * gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
4950 * gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
4954 * config/vx.exp: Use remote_ld, not vxworks_ld. Don't use
4955 specialized code to reboot the board, use remote_reboot instead.
4957 * config/vxworks29k.exp: Use vx.exp, not vx-gdb.exp.
4959 * lib/gdb.exp: Add GDB_TESTCASE_OPTIONS.
4961 * config/monitor.exp: Make sure we disconnect from the target.
4962 Also, try a reboot/reload cycle instead of failing if the
4967 * gdb.base/default.exp: Don't set match_max.
4968 * gdb.base/help.exp: Ditto.
4969 * gdb.base/list.exp: Ditto.
4970 * gdb.base/signals.exp: Ditto.
4972 * config/monitor.exp(gdb_load): If gdb,use_standard_load is
4973 set, use remote_ld to download the testcase instead of
4978 * config/vr5000.exp: New file.
4980 * config/monitor.exp(gdb_target_monitor): Add pattern for
4981 "Ending remote" to detect errors in connecting.
4983 * gdb.base/setshow.exp: Add .* within auto language test.
4985 * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
4988 * config/monitor.exp(gdb_load): Check for a failure when loading,
4989 and reboot the board if necessary.
4991 * gdb.base/setvar.exp(test_set): Handle multiple prints within
4992 a set of tests. Remove print.* from the patterns being checked.
4996 * gdb.base/a1-selftest.exp: Use send_gdb consistently. Don't
4997 refer to gdb_spawn_id.
4999 * config/m32r-stub.exp: Remove references to gdb_spawn_id, no
5001 * config/sparclet.exp: Ditto.
5002 * config/sparclet-old.exp: Ditto.
5003 * config/slite.exp: Ditto.
5004 * config/sim.exp: Ditto.
5005 * gdb.base/funcargs.exp: Ditto.
5007 * lib/gdb.exp:Remove references to gdb_spawn_id.
5008 (gdb_expect): Move to remote.exp.
5012 * config/monitor.exp: Detect the "Couldn't establish connection"
5017 * gdb.base/bitfields.exp: Use runto instead of explicit
5018 gdb_run_cmd/gdb_expect sequences.
5020 * gdb.base/break.exp(text_next_with_recursion): Add match for
5023 * config/monitor.exp(gdb_target_monitor): Calling exit loses big.
5024 We also need to handle the "A program is being debugged already"
5025 prompt from gdb. Use gdb_test to set the baud rate.
5027 * lib/gdb.exp(gdb_init): Increase the default expect buffer size
5028 to 20000. Really. I mean it.
5032 * lib/gdb.exp(gdb_test): Generate a FAIL message when send_gdb
5033 fails. If suppress_flag is set, skip perror message about not
5034 being able to send to GDB.
5035 (send_gdb): If suppress_flag is set, don't try to send commands to
5037 (gdb_expect): If suppress_flag is set, always fail immediately.
5038 (gdb_suppress_tests, gdb_stop_suppressing_tests): New functions.
5039 (gdb_init): Call gdb_stop_suppressing_tests.
5040 (default_gdb_exit): Ditto.
5041 (default_gdb_start): Ditto.
5043 * gdb.base/bitfields.exp: Call gdb_suppress_tests and
5044 gdb_stop_suppressing_tests as appropriate.
5045 * gdb.base/break.exp: Ditto.
5046 * gdb.base/callfuncs.exp: Ditto.
5047 * gdb.base/commands.exp: Ditto.
5048 * gdb.base/exprs.exp: Ditto.
5049 * gdb.base/funcargs.exp: Ditto.
5050 * gdb.base/list.exp: Ditto.
5051 * gdb.base/recurse.exp: Ditto.
5052 * gdb.base/scope.exp: Ditto.
5053 * gdb.base/structs.exp: Ditto.
5054 * gdb.c++/inherit.exp: Ditto.
5058 * config/vr4300.exp: New file.
5060 * gdb.*/*.exp: Call gdb_expect instead of expect.
5062 * lib/gdb.exp(gdb_expect): New function.
5066 * lib/gdb.exp(gdb_init): New function.
5068 * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
5069 for each individual variable set.
5071 * gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
5074 * gdb.base/help.exp: Fix the syntax of a few gdb_test calls.
5076 * gdb.base/scope.exp: Use gdb_test.
5078 * gdb.base/ptype.exp: Don't call "gdb_exit; gdb_start" if we're
5079 aborting; the testsuite driver will do that for us (see
5080 gdb_finish). Also, use gdb_test in a few more places.
5084 * gdb.base/help.exp: Fix syntax of "help info all-registers" test.
5088 * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
5089 and "add_tests" are not at the same address.
5093 * gdb.base/ptype.exp: Use gdb_test.
5097 * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
5098 * gdb.disasm/mn10200.exp (misc_tests): Remove bogus line accidentally
5099 left in. No longer expect them to fail.
5101 * gdb.stabs/*.mt; Deleted, no longer used.
5102 * gdb.stabs/configure.in: Remove references to target makefile
5104 * gdb.stabs/configure: Rebuilt.
5106 * gdb.disasm/*.mt: Deleted, no longer used.
5107 * gdb.disasm/configure.in: Remove references to target makefile
5108 frags. Use "sh3.s" as the unique filename for this directory.
5109 * gdb.disasm/configure: Rebuilt.
5111 * gdb.disasm/mn10200.s: New test file for mn10200 disassembler.
5112 * gdb.disasm/mn10200.exp: Run mn10200 disassembler tests.
5113 * gdb.disasm/Makefile.in: Remove "mn10200" when cleaning.
5117 * config/udi.exp: Use mondfe,name instead of remote_host.
5121 * gdb.base/watchpoint.exp: Don't expect a failure when calling
5122 a function with a watchpoint enabled on the mn10200.
5124 * gdb.stabs/weird.exp: Don't quit if "weird.s" doesn't exist
5125 before trying to create it!
5129 * config/vx.exp: Use hostname instead of netport.
5131 * config/vxworks.exp: New file.
5133 * gdb.base/a2-run.exp: Change vxworks cases to use gdb_spawn_id.
5135 * config/monitor.exp(gdb_target_monitor): Look for a prompt from
5136 gdb before assuming everything worked. Send a ^C if a timeout
5139 * lib/gdb.exp(gdb_test): Check the result of send_gdb. Use
5140 $gdb_spawn_id directly.
5141 (gdb_run_cmd): Try _start as well as start. Use the target feature
5142 gdb,start_symbol as the symbol to start from when jumping.
5146 * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
5149 * gdb.base/recurse.exp: Relax final value test for 'b' so that
5150 it doesn't lose for 16bit integer systems.
5154 * gdb.fortran/types.exp: If the target doesn't support "double"
5155 data types, then expect "real" types to only be 4 bytes.
5157 * gdb.c++/virtfunc.exp: Expect failure for virtual function
5158 call tests if the target doesn't support inferior function calls.
5160 * gdb.base/printcmds.exp: Allow minor deviation in FP values
5165 * gdb.base/help.exp: Disable "help set", "help show", and
5166 "help support". Simplify regexp for "help stack".
5168 * gdb.base/default.exp: Set match_max to 5000 and the timeout
5169 to 60 seconds. Temporarily set match_max to 15000 around the
5170 "info copying" test.
5172 * gdb.base/nodebug.exp: Don't try to do an inferior function
5173 call if the target doesn't support them.
5174 * gdb.base/printcmds.exp: Likewise.
5175 * gdb.base/setvar.exp: Likewise.
5176 * gdb.base/structs.exp: Likewise.
5177 * gdb.c++/templates.exp: Likewise.
5178 * gdb.base/ptype.exp: Likewise. Remove UDI specific stuff.
5180 * gdb.base/recurse.exp: Enable for the mn10200.
5182 * configure.in: Do configure gdb.stabs directory for *-*-elf
5184 * configure: Rebuilt.
5186 * gdb.base/break.exp: Check for gdb,noresults before testing
5187 exit status and/or results from the target.
5188 * gdb.base/watchpoint.exp, gdb.base/langs.exp: Likewise.
5189 * lib/gdb.exp: Remove old (now bogus) initialization of
5190 noinferior, noargs, noresults and nosignals.
5194 * config/sh.exp: New file.
5196 * config/slite.exp: Try to connect multiple times to the board
5197 before rebooting. Only send a "monitor run" if need_monitor_run
5200 * gdb.base/break.exp: Don't do the "stub continue" test if
5201 the target has gdb_stub set.
5203 * gdb.base/callfuncs.exp: Increase the timeout.
5205 * gdb.base/interrupt.exp: Don't even try to compile the testcase
5206 if the target has gdb,noinferiorio set.
5208 * gdb.base/list.exp: Increase match_max to 10000 characters.
5210 * gdb.base/sigall.exp: Check for gdb,nosignals on the target.
5212 * gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
5215 * lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.
5219 * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
5220 trying to delete the copy of gdb. Catch the file delete so we
5221 don't die if the delete fails; also, the file should be copied to
5222 the host, not to the build.
5226 * lib/gdb.exp(gdb_test): Surround the result pattern with
5227 parenthesis in case it contains multiple regexps separated
5230 * gdb.base/watchpoint.exp: Use gdb_test.
5231 * gdb.base/default.exp: Ditto.
5235 * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
5237 * gdb.base/scope.exp: Use gdb_test.
5238 * gdb.c++/classes.exp: Ditto.
5239 * gdb.c++/inherit.exp: Ditto.
5243 * gdb.base/crossload.exp: Don't use execute_anywhere, use
5244 remote_exec instead.
5245 * gdb.base/corefile.exp: Don't be ridiculous.
5246 * gdb.base/*.c: Add missing stub invocations.
5250 * config/slite.exp: Miscellaneous fixes.
5252 * lib/gdb.exp: Fix runto.
5254 * gdb.base/signals.exp: Check for a gdb,nosignals feature of
5257 * gdb.base/watchpoint.exp: Fix regexp.
5259 * lib/gdb.exp(default_gdb_exit): Add a catch to the
5260 close and wait commands, as the descriptor may now be
5261 invalid. Always call "remote_close host".
5265 Major rewrite for testsuite revision.
5267 * lib/gdb.exp: Remove references to global CC, CXX, B_OPTIONS,
5268 TARGET_INCLUDES, LDFLAGS and target_alias. Use gdb_spawn_id
5269 instead of relying on spawn_id to always contain a valid
5271 (get_compiler_info): New procedure to build the ${binfile}.ci
5272 file, instead of replicating this in N different places.
5273 (gdb_compile): New procedure.
5275 gdb.*/*.exp: Use gdb_compile and get_compiler_info (with
5276 appropriate arguments) instead of compile. Use gdb_test in a lot
5277 more places. Use send_gdb instead of send. Always run gdb_start
5278 at the start of a testcase, as this is no longer done magically.
5280 config/*-gdb.exp: Rename without the -gdb suffix.
5282 config/mips.exp: Use remote_close instead of exit_remote_shell.
5283 config/monitor.exp: Use target_info instead of looking at
5285 config/sim.exp: Use gdb_spawn_id instead of relying on spawn_id.
5289 * gdb.c++/templates.exp (test_ptype_of_templates),
5290 gdb.c++/inherit.exp (test_ptype_si, test_print_anon_union):
5291 Update expect patterns for destructors and assignment operators
5292 to match corresponding c-typeprint.c changes.
5293 * gdb.c++/templates.exp (test_template_breakpoints): Revert change
5294 to destructor breakpoint test, GDB should be able to set the
5295 destructor breakpoint without specifying arguments.
5299 * gdb.threads/pthreads.exp: Change result for failure to compile due
5300 to lack of pthreads runtime support from an error to simply an
5301 unsupported test, per dejagnu standards.
5305 * lib/gdb.exp (gdb_test): Simplify expect pattern for the case
5306 where GDB exits to reduce pattern match time.
5307 (skip_chill_tests): Skip chill tests for mips*-sgi-irix6*.
5309 * gdb.base/nodebug.exp: Add mips*-sgi-irix6* xfails.
5313 * gdb.base/callfuncs.exp: Turn on function call tests for h8300.
5314 * gdb.base/default.exp: ditto.
5315 * gdb.base/nodebug.exp: ditto.
5316 * gdb.base/printcmds.exp: ditto.
5317 * gdb.base/ptype.exp: ditto.
5318 * gdb.base/setvar.exp: ditto.
5319 * gdb.base/structs.exp: ditto.
5320 * gdb.base/setshow.c: Guard against uninitialized values of argc.
5324 * configure, */configure: Rebuild with autoconf 2.12.
5328 * gdb.base/a1-selftest.exp: Change x86 linux setup_xfails to
5329 use new i*86-pc-linux*-gnu quads.
5330 * gdb.base/corefile.exp: Ditto.
5331 * gdb.base/signals.exp: Ditto.
5332 * gdb.base/sigall.exp: Ditto.
5333 * gdb.base/interrupt.exp: Ditto.
5335 * gdb.base/signals.exp (signal_tests_1): Remove setup_xfail
5336 "i*86-*-linux" for "signal SIGUSR1". Now works, at least with
5339 * gdb.threads/pthreads.c (_MIT_POSIX_THREADS): Define if target is
5340 linux. This allows the test case to at least compile on latest
5341 linux, but still not run due to missing the threads runtime library.
5345 * gdb.base/a1-selftest.exp (do_steps_and_nexts): Reinitialize source
5346 directory to search gdb directory. Accept and step over conditional
5347 stack alignment code. Consume $prompt in failure cases.
5348 Reset timeout to $oldtimeout instead of some arbitrary value.
5349 * gdb.base/nodebug.exp: Limit backtrace to 10 frames to avoid
5350 timeout problems with infinite stack backtraces.
5351 * gdb.base/ptype.exp (ptype struct link, union tu_link):
5352 Accept function parameters for linkfunc member.
5356 * lib/gdb.exp (CFLAGS): Remove, unreferenced.
5357 (CXXFLAGS): Remove, unreferenced.
5358 (B_OPTIONS): Add for -B options and add code to initialize with
5359 previous -B options and also add -B option to pick up cross compiled
5361 (TARGET_INCLUDES): Add for -I options and add code to initialize when
5362 doing cross compiles.
5363 (target_alias): Declare global.
5364 (xgcc): Set variable to full path of gcc in build tree. Use findfile
5365 to verify that gcc exists in build tree, and if so set CC to that
5366 gcc and to use B_OPTIONS and TARGET_INCLUDES.
5370 * gdb.c++/inherit.exp (test_print_anon_union): Reenable
5371 ptype test for anonymous union. Fixup testcase to match
5372 current gcc debug output.
5376 * gdb.base/funcargs.c: Use cast rather than "UL" suffix to
5377 force argument to an unsigned long type.
5381 * gdb.c++/inherit.exp (test_ptype_si): Fix tagless struct ptype
5382 tests and anonymous union print/ptype tests.
5383 * gdb.base/list.exp (test_forward-search): Increase timeout by
5384 5 minutes for the "search extremely long line" case.
5385 * lib/gdb.exp (gdb_test): Document that the third arg to gdb_test is
5386 completely optional and that the pass/fail messages use the command as
5387 the message if that third arg is a null string.
5388 (gdb_test_exact): Arrange that a null string pattern means match a
5389 null string output rather than any output, which might include random
5391 * gdb.base/mips_pro.exp: Add "mips*-sgi-irix4*" xfail for
5393 * gdb.c++/demangle.exp: Add a "*-*-*" xfail for test that was
5394 always failing and failure is now exposed by gdb.exp changes.
5398 * gdb.c++/inherit.exp (test_ptype_vi): Log some passes that
5399 weren't being noted.
5403 * gdb.base/corefile.exp: Consume $prompt in mmap fail cases.
5404 * gdb.stabs/weird.exp: Remove v_comb xfails.
5408 * gdb.base/[bitfields.exp crossload.exp funcargs.exp interrupt.exp
5409 list.exp scope.exp watchpoint.exp]
5410 Make all timeout error msgs explicitly say "(timeout)".
5414 * config/monitor.exp: Increase download timeout to 1000 seconds.
5418 * config/m32r.exp: Increase timeout to 120 seconds.
5422 * gdb.c++/classes.exp: Modify to handle current gcc C++ member ordering
5423 and accept older ordering as obsolescent gcc or gdb.
5424 * gdb.c++/templates.exp: Ditto.
5425 * gdb.c++/virtfunc.exp: Ditto.
5429 * gdb.base/coremaker.c: Add code to mmap some data so we
5430 can check that it ends up in the core file.
5431 * gdb.base/corefile.exp: Add test to read mmapped data
5436 * config/m32r.exp: New file.
5440 * testsuite/gdb.base/nodebug.exp: Whack out -g options by hand so
5441 that cflags can contains -gstabs, and work correctly for other tests.
5445 * gdb.base/setshow.exp: New file, tests show and set.
5446 * gdb.base/setshow.c: New file, tests show and set.
5447 * gdb.base/help.exp: Add test for help set|show annotate.
5448 * gdb.base/default.exp: Add test for set|show annotate.
5452 * testsuite/gdb.base/break.exp: Make backtrace from factorial
5454 * testsuite/gdb.base/nodebug.exp: Whack out all -g options
5459 * config/sim-gdb.exp (gdb_target_sim): Remove setting of height
5460 and width commands. This is done elsewhere.
5461 * (gdb_start): Don't call gdb_start_sim here. That's already
5462 done in gdb_load. This fixes lots of failures in default.exp.
5467 * gdb.base/mips_pro.exp: Fix misplaced gdb_exit/gdb_start/gdb_load.
5468 * lib/gdb.exp (gdb_test): Treat failures due to program exiting
5469 in the same we we treat other failures (since it may be an expected
5470 condition), rather than as an error.
5471 * gdb.base/signals.exp (test_handle_all_print): Revert back to
5476 * Makefile.in (clean mostlyclean): Also remove chill *.grt files.
5477 (distclean maintainer-clean realclean): No need to remove files
5478 twice. Nuke the duplicates.
5479 * gdb.base/Makefile.in (EXECUTABLES): Add "structs".
5480 * gdb.threads/Makefile.in (distclean maintainer-clean realclean):
5481 Remove config.h along with other config files.
5485 * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
5486 "p func1 ()" and note that rests of tests are skipped.
5487 * gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
5488 setup_xfails for "print func2::coremaker_local".
5489 Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
5490 * gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
5491 affected by the previous run test.
5492 * gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
5493 "print array () ubyte (foo)" and "print/x array () byte (\$i)"
5494 * gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
5495 "pass int powerset tuple" and "pass modeless int powerset tuple".
5496 * gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
5497 "real write 4" and "real write 8".
5498 * gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
5499 setup_xfails for "print vs1 after tuple assign 2",
5500 "print \$i after tuple assign 2", and
5501 "print vs2 after tuple assign 2".
5502 * lib/gdb.exp (gdb_test): When a gdb aborts, print a more
5503 meaningful error message and return -1 so the caller can
5504 suppress further tests and avoid a cascade of errors.
5508 * gdb.base/a1-selftest.exp: Tweak tests to account for new
5509 format for printing version.
5510 * gdb.base/default.exp: Ditto.
5511 * gdb.base/interrupt.exp: Fix problem with cascade of
5512 errors if child process dies while calling a function.
5516 * Makefile.in (VPATH): Add
5517 * Makefile.in (Makefile, config.status): Fix rules so things get
5518 remade when necessary.
5522 * Makefile.in (just-check): Add path to sibling expect dir
5523 to environment variable specified by RPATH_ENVVAR.
5527 * Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
5528 (just-check): Add shared library paths for libstdc++, tk,
5529 tcl, bfd, and opcodes to the environment variable specified
5531 * configure.in: Add support to recognize --enable-shared flag
5532 and generate correct value for RPATH_ENVVAR.
5533 * configure: Regenerated with autoconf.
5537 * gdb.base/break.exp: Expand "Delete all breakpoints" xfail to
5538 include all osf versions.
5539 * gdb.threads/pthreads.exp: Expand "run to main" xfail to include
5540 all osf versions. Add -D_MIT_POSIX_THREADS to compilation command
5541 when target is linux. When failing to build pthreads test
5542 executable, give more meaningful message.
5543 * gdb.threads/pthreads.c: Hpux also uses old definition of second
5544 arg for pthread_create.
5548 * gdb.threads/pthreads.c (PTHREAD_CREATE_ARG2,
5549 PTHREAD_CREATE_NULL_ARG2): Accomodate old pthreads implementations.
5550 * gdb.threads/pthreads.exp: Try linking with both -lpthread (Solaris)
5551 and -lpthreads (everybody else).
5552 (test_startup): Fail gracefully if threads are not supported.
5553 * gdb.base/nodebug.exp: Add setup_xfail hppa*-*-hpux* for
5554 "p/c array_index("abcdef",2)" when not gcc compiled.
5555 * gdb.base/corefile.exp: Add setup_xfail hppa*-*-hpux* for
5556 "print func2::coremaker_local" when not gcc compiled.
5557 * gdb.base/opaque.exp: Remove setup_xfail hppa*-*-hpux* for
5558 "ptype on opaque struct tagname (statically)",
5559 "ptype on opaque struct tagname (dynamically) 1", and
5560 "ptype on opaque struct tagname (dynamically) 2"
5561 for not compiled with gcc.
5562 * gdb.base/mips_pro.exp: Only do setup_xfail hppa*-*-* for
5563 backtrace when compiled with gcc.
5564 * lib/gdb.exp (runto_main): Return result of "runto main" rather
5565 than always return success.
5569 * gdb.c++/virtfunc.exp: Remove setup_xfail for "mips-*-irix5*".
5573 * gdb.base/structs.exp: Undo last change.
5577 * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
5578 encapsulate all the steps/nexts done during self test, starting
5579 at main, and makes them less sensitive to optimization issues.
5580 Add "hppa*-*-hpux*" to setup_xfail for "backtrace through
5581 signal handler" test.
5582 * gdb.threads/pthreads.exp: Only run this for native configs.
5583 * gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*"
5584 setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8"
5586 gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail
5587 for "runto test_calls(void)" test.
5591 * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
5592 and don't expect address info in breakpoint confirmations.
5596 * gdb.base/list.exp (test_forward_search): Increase timeout
5597 temporarily by 60 seconds for searching extremely long line,
5598 and then reset to old value when done. Increase expect input
5603 * gdb.base/list.exp (test_forward_search): Fix to handle very
5604 long source line without overflowing expect's input buffer.
5608 * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
5611 * config/nind-gdb.exp (gdb_start): Use "full_buffer", not
5614 * config/mips-gdb.exp (gdb_start): Use "full_buffer", not
5617 * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
5622 * configure.in (configdirs): Add gdb.threads.
5623 * configure: Regenerated with autoconf.
5624 * gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
5625 * gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
5626 * gdb.threads/configure: New, generated with autoconf.
5630 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.
5634 * gdb.base/signals.exp (test_handle_all_print): Test separately for
5635 each signal's status in the output of "handle all print".
5636 * lib/gdb.exp (gdb_test): Document that the pattern must NOT include
5637 the \r\n sequence that immediately precedes the gdb prompt.
5638 * gdb.base/a1-selftest.exp: Save original timeout and restore
5643 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
5648 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.
5652 * gdb.base/signals.exp (test_handle_all_print): Temporarily increase
5653 timeout by 60 seconds.
5657 * config/unix-gdb.exp: Increase default timeout from 30 to 60 sec.
5658 * config/netware.exp (gdb_run_cmd): Restore old timeout before doing
5663 * lib/gdb.exp (default_gdb_start): When reporting a timeout during
5664 gdb initialization, also report how long dejagnu waited. Restore
5665 old timeout before doing error return. Temporarily increase timeout
5666 by 3 minutes to allow for slow startups over heavy NFS use.
5670 * lib/gdb.exp: Report timeout value for verbosity level 2.
5671 * config/gdbserver.exp: Ditto.
5672 * config/hppro.exp: Ditto.
5673 * config/mips-gdb.exp: Ditto.
5674 * config/monitor.exp: Ditto.
5675 * config/netware.exp: Ditto.
5676 * config/sim-gdb.exp: Ditto.
5677 * config/slite-gdb.exp: Ditto.
5678 * config/udi-gdb.exp: Ditto.
5679 * config/unix-gdb.exp: Ditto.
5680 * config/vx-gdb.exp: Ditto.
5681 * gdb.base/a1-selftest.exp: Ditto.
5682 * gdb.base/a2-run.exp: Ditto.
5683 * gdb.base/break.exp: Ditto.
5684 * gdb.base/corefile.exp: Ditto.
5685 * gdb.base/list.exp: Ditto.
5686 * gdb.base/recurse.exp: Ditto.
5687 * gdb.base/scope.exp: Ditto.
5688 * gdb.base/signals.exp: Ditto.
5692 * gdb.threads/Makefile.in (docdir): Removed.
5696 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
5697 * gdb.{base,c++,chill,disasm,stabs}/Makefile.in (VPATH): set to
5699 * gdb.{base,c++,chill,disasm,stabs}/configure.in (AC_PREREQ):
5700 autoconf 2.5 or higher.
5701 * gdb.{base,c++,chill,disasm,stabs}/configure: Rebuilt.
5705 * configure: Regenerated.
5706 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
5707 avoid name clashes with SunOS headers.
5711 * gdb.c++/virtfunc.exp: Search $objdir/../../libstdc++ for libstdc++.
5715 * gdb.base/callfuncs.exp: Finish last change -- make sure the
5716 prototype information ends up in the compiler info file.
5720 * gdb.base/callfuncs.exp: Remove the compiler info file prior to
5721 attempting to regenerate it. Eliminate use of a temporary file
5722 and just generate the info file directly. Source it immediately,
5723 for consistency of use.
5724 * gdb.base/corefile.exp: Ditto
5725 * gdb.base/exprs.exp: Ditto.
5726 * gdb.base/funcargs.exp: Ditto.
5727 * gdb.base/langs.exp: Ditto.
5728 * gdb.base/list.exp: Ditto.
5729 * gdb.base/mips_pro.exp: Ditto.
5730 * gdb.base/nodebug.exp: Ditto.
5731 * gdb.base/opaque.exp: Ditto.
5732 * gdb.base/ptype.exp: Ditto.
5733 * gdb.base/scope.exp: Ditto.
5734 * gdb.base/setvar.exp: Ditto.
5735 * gdb.base/signals.exp: Ditto.
5736 * gdb.base/whatis.exp: Ditto.
5737 * gdb.c++/templates.exp: Ditto.
5738 * gdb.c++/virtfunc.exp: Ditto.
5739 * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
5740 whether or not to add -lstdc++ to the compile command line args.
5744 * gdb.base/recurse.exp: Remove setup_xfail for "sparc*-*-sunos4*",
5745 it got fixed by the recent lookup_minimal_symbol_by_pc change.
5746 Increase timeout, a lot of single stepping might be needed if the
5747 target has no hardware watchpoints.
5751 * gdb.base/break.exp: Ignore compiler warnings when compiling
5753 * gdb.base/callfuncs.exp: Don't run these tests on the h8300.
5754 * gdb.base/default.exp: Add h8300 xfails. Handle messages
5756 * gdb.base/exprs.exp: Add h8300 xfails.
5757 * gdb.base/funcargs.exp: Likewise.
5758 * gdb.base/nodebug.exp: Likewise.
5759 * gdb.base/printcmds.exp: Likewise.
5760 * gdb.base/ptype.exp: Likewise.
5761 * gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300. Add
5763 * gdb.base/return.exp: Handle float/double precision problems
5765 * gdb.base/funcargs.c: Explicitly make last constant argument to
5766 call_after_alloca_subr an unsigned long type.
5767 * gdb.base/return.c: Include stdio.h.
5771 * config/abug.exp: New file for the older Motorola Bug monitor
5772 that runs on the mvme13x series VME boards.
5773 * config/monitor.exp: Use the new config array for target settings
5778 * sim-gdb.exp: Make the SH simulator allocate less space when
5783 * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
5788 * gdb.base/list.exp (test_list_function): Remove setup_xfail for
5789 "rs6000-*-*" for "list function in include file" when gcc compiled.
5790 * gdb.base/printcmds.exp: Remove setup_xfail for "rs6000-*-aix*"
5791 for "p ctable1[120]".
5792 * gdb.base/scope.exp: Remove setup_xfail for "rs6000-*-*" for
5793 "print 'scope0.c'::filelocal_bss before run" when gcc compiled.
5794 Remove setup_xfail for "rs6000-*-*" for
5795 "print 'scope0.c'::filelocal before run".
5796 * gdb.base/{langs.exp, lists.exp, opaque.exp, scope.exp},
5797 gdb.stabs/weird.exp: Remove use of compiler options "-c -o ..."
5798 since some compilers don't allow both options to be given
5799 on the same command line. Create object file and move it.
5803 * gdb.base/corefile.exp: Always regenerate the core file, since
5804 we always regenerate the coremaker program. Detect special case
5805 where registers cannot be read from core file.
5810 * gdb.base/funcargs.c: Patch for SPARCworks alloca compatibility
5811 * gdb.c++/templates.exp: Only match on basename of file since
5812 some formats like xcoff don't encode directory information.
5813 * gdb.stabs/weird.exp: Use the right sed script for powerpc
5814 and rs6000 AIX xcoff targets.
5815 * configure.in: Add stabsdirs to configdirs for powerpc-*-aix*.
5816 * configure: Regenerate.
5817 * gdb.base/Makefile.in (clean): Remove generated file twice-tmp.c
5818 here, rather than in distclean.
5822 * gdb.base/mips_pro.exp: Create mips_pro.ci to get gcc_compiled
5823 defined, and use it to compile the test case with -O2. The
5824 native compilation still uses no optimization.
5825 * gdb.base/mips_pro.c: Remove inline assembly code since
5826 it is compiled PIC by default, which results in assembler
5827 warnings that make the testsuite think the compilation
5832 * gdb.c++/misc.exp: Add note to message for
5833 "print s.a for foo struct" that this is a known gcc 2.7.2
5838 * gdb.base/break.exp: Fix pattern for matching "Delete all
5839 breakpoints (y or n) ". Add "mips-dec-ultrix*" to
5840 setup_xfail for deleting all breakpoints test. Fix various
5841 timeout messages to include "(timeout)".
5842 * gdb.base/callfuncs.exp: Add "i*86-*-sysv4*" to setup_xfail
5843 for "p t_float_values2(3.14159,float_val2)".
5844 * gdb.base/funcargs.exp: Remove "mips-sgi-irix4*" setup_xfail
5845 for "continue to call2g" when gcc compiled.
5846 * gdb.base/langs.exp: Remove "i*86-*-sysv4*" setup_xfail for
5847 "up to foo in langs.exp", "show language at foo in langs.exp",
5848 "show language at cppsub_ in langs.exp", "up to fsub in langs.exp",
5849 and "show language at fsub in langs.exp".
5850 * gdb.base/list.exp: Remove "*-*-sysv4*" setup_xfail for
5851 "list line 1 in include file", "list message for lines past EOF",
5852 "list function in include file", "list list0.h:foo", and
5853 "list filename:function; nonexistant function".
5854 * gdb.base/ptype.exp: Change "i*86-*-sysv4*" setup_xfail for
5855 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)"
5856 and "ptype t_char_array" to be for native cc only.
5860 * gdb.base/corefile.exp: Remove "alpha-dec-osf2*" native compiled
5861 setup_xfail for "print coremaker_bss", "print coremaker_ro",
5862 "print func2::coremaker_local", and "backtrace in corefile.exp".
5866 * gdb.base/signals.exp: Remove "alpha-*-osf2*" setup_xfail for
5867 "bt in signals.exp". This problem only appears when running
5868 the testsuite, and then only intermittently.
5872 * gdb.base/return.exp (return_tests): Differentiate between
5873 two tests of continuing.
5877 * */Makefile.in (maintainer-clean): Remove config.log.
5878 * gdb.base/Makefile.in (EXECUTABLES): Replace twice with twice-tmp.
5879 * gdb.c++/Makefile.in (PROGS): Add inherit.
5880 (clean): Remove *.ci.
5884 * gdb.c++/misc.cc: Add test code from Mike Stump.
5885 * gdb.c++/misc.exp: Add test to print s.a, for Mike Stump.
5889 * gdb.base/signals.exp: Change setup_xfail for "alpha-*-osf2"
5890 to "alpha-*-osf2*" and add comment.
5891 * gdb.base/a1-selftest.exp (test_with_self): Remove "alpha-dec-osf2*"
5892 setup_xfail for "step over execarg initialization" and
5893 "step over corearg initialization".
5894 * gdb.base/callfuncs.exp (do_function_calls): Restore setup_xfail
5895 for "hppa*-*-*", "sparc-*-*", "mips*-*-*", and "alpha-dec-osf2*".
5896 * gdb.base/corefile.exp: Add "alpha-dec-osf2*" setup_xfail when not
5897 gcc compiled for "print coremaker_bss", "print coremaker_ro",
5898 "print func2::coremaker_local", and "backtrace in corefile.exp".
5899 * gdb.base/signals.exp: Build and source signals.ci.
5900 Change "alpha-dec-osf2*" setup_xfail for "bt in signals.exp"
5902 * lib/gdb.exp: Move verbose statements outside conditionals.
5906 * gdb.base/sigall.exp: Remove setup_xfail for irix4. Fixed by
5907 Feb 3 procfs.c change.
5911 * config/unix-gdb.exp: Remove extraneous newlines from end of file.
5915 * config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
5916 from dejagnu's apparent default of 10 seconds, which gives random
5917 results when running the tests over NFS on moderately loaded systems.
5918 * lib/gdb.exp (gdb_run_cmd): Add "(timeout)" in timeout case.
5922 * gdb.base/callfuncs.exp: Remove setup_xfail for PR 5318. Now fixed.
5923 * gdb.base/a2-run.exp: Replace $binfile with $testfile in test
5928 * configure.in (CY_AC_PATH_TCLH): Remove.
5929 * configure: Regenerate.
5933 * gdb.c++/Makefile.in (clean): Add missing '{'.
5937 * lib/gdb.exp: Provide a default value for noinferior.
5939 * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
5944 * gdb.disasm/hppa.exp: Compile directly into an executable, use
5945 the executable, not the .o to run the tests from.
5949 * gdb.base/break.exp: Don't test for program exit or exit status
5950 if $noresults if nonzero.
5951 * gdb.base/langs.exp: Likewise.
5952 * gdb.base/watchpoint.exp: Likewise.
5954 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
5955 * gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
5956 trying to compile the testcase.
5960 * gdb.base/interrupt.exp (p func1): xfail sparc64-*-solaris2.
5961 * gdb.base/signals.exp (continue to handler): Likewise.
5965 * gdb.c++/classes.exp: Now = returns false/true, not 1/0.
5967 * gdb.fortran/exprs.exp: .LT. and .GT. now return .TRUE. or .FALSE..
5971 * gdb.base/corefile.exp: Recognize "not found" as failure
5972 when trying to determine if a core file was generated.
5973 If no core file was generate the first time, try again without
5974 the ulimit -c to work around braindamaged shells.
5978 * gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
5979 [] tests with "test" and enclose string in quotes.
5980 * gdb.stabs/configure: Rebuild
5984 Changes in sync with expect:
5985 * aclocal.m4 (CY_AC_PATH_TCLH): Handle Tcl 7.5 and greater.
5986 (CY_AC_PATH_TCLLIB): Handle Tcl 7.5 and greater.
5987 (CY_AC_PATH_TKH): Handle Tk 4.1 and greater.
5988 (CY_AC_PATH_TKLIB): Handle Tk 4.1 and greater. Properly quote
5989 argument to AC_REQUIRE.
5990 * configure: Regenerated.
5994 * gdb.base/corefile.exp: When generating a core, discard any
5995 error messages about ulimit not found and the "core dumped"
5996 message from the shell that runs the coredumper.
6000 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
6002 * gdb.stabs/weird.exp: Use ${target_triplet} to determine
6003 which sed script to run. Expect failure for v_comb test
6008 * gdb.base/corefile.exp: Remove "i*86-*-linux" xfail for
6009 "print func2::coremaker_local" and for "backtrace in corefile.exp"
6013 * lib/gdb.exp: Fix typo and rewrite skip_chill_tests.
6014 * gdb.stabs/weird.exp: Setup "sparc-sun-sunos4*" and
6015 "sparc-sun-solaris*" xfails for "p v_comb".
6016 * lib/gdb.exp (default_gdb_start): Fix typo.
6017 * gdb.base/corefile.exp: Allow "Core was generated by ..."
6018 messages to not include the full program name that caused
6019 the core dump since some systems (such as solaris) apparently
6020 truncate this path to about 80 characters.
6021 When generating a core file first try increasing the core file
6022 size limit to unlimited since some systems may default it to
6023 zero, and it is harmless to try it. Move the test for failing
6024 to generate a core file to where it will actually get executed.
6025 * gdb.c++/templates.exp (test_ptype_of_templates): Accept
6026 new gdb result from g++ debug info improvements and make old
6027 pattern obsolescent. Also account for size_t differences
6028 (may be int or long).
6029 * gdb.base/a1-selftest.exp (test_with_self): Check for case where
6030 initialization before function call is placed in the delay slot
6031 and thus appears to be skipped over by commands such as "next".
6035 * gdb.base/a1-selftest.exp (test_with_self): Run without windows.
6039 * gdb.base/*.exp: Make ${srcfile} only be the basename of the
6040 input source file; fix code to compile test to deal with this
6042 * gdb.c++/*.exp: Likewise.
6046 * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
6047 "bt in signals.exp".
6051 * gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
6052 "step over execarg initialization" and
6053 "step over corearg initialization".
6057 * gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
6058 with sizeof(pointer) > sizeof(int). Avoid "void *" or include files.
6063 * Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in},
6064 gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in,
6065 configure.in}, gdb.disasm/{Makefile.in, configure.in},
6066 gdb.stabs/{Makefile.in, configure.in}, gdb.threads/{Makefile.in,
6067 configure.in}: Major reworking for autoconfig.
6068 * aclocal.m4, configure, gdb.base/configure, gdb.c++/configure,
6069 gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt :
6071 * config/unix-gdb.exp: Make GDB global.
6072 * gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp,
6073 callfuncs.exp, commands.exp, corefile.exp, crossload.exp, exprs.exp,
6074 funcargs.exp, interrupt.exp, langs.exp, list.exp, mips_pro.exp,
6075 nodebug.exp, opaque.exp, printcmds.exp, ptype.exp, recurse.exp,
6076 regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp, signals.exp,
6077 term.exp, twice.exp, watchpoint.exp, whatis.exp},
6078 gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp,
6079 templates.exp, virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp,
6080 misc.exp, pr-4975.exp, pr-5016.exp, pr-5020.exp, pr-5022.exp,
6081 pr-5646.exp, pr-5984.exp, pr-6292.exp, pr-6632.exp, pr-8134.exp,
6082 pr-8136.exp, result.exp, string.exp, tuples.exp},
6083 gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues
6084 to returns as necessary, arrange for test to compile own testcase
6086 * lib/gdb.exp: Changes for testsuite to compile own test cases.
6090 * gdb.c++/classes.exp (test_pointers_to_class_members): Add
6091 clear_xfail at end of test which might not call either pass or fail.
6092 * gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for
6093 "backtrace through signal handler".
6097 * gdb.base/sigall.exp: Work around OSF/1-3.x kernel bug when
6098 continuing from a job control stop signal.
6099 * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o.
6103 * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
6104 * gdb.base/corefile.exp: Likewise.
6105 * gdb.base/funcargs.exp: Likewise.
6109 * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
6110 * config/monitor.exp: Add support for setting baud rate.
6114 * gdb.base/a1-selftest.exp: Remove i*86-*-sysv4* and
6115 i*86-*-linux* xfails for "backtrace through signal handler".
6116 * gdb.base/corefile.exp: Add i*86-*-sysv4* xfail for
6117 "print func2::coremaker_local".
6118 * gdb.base/break.exp: Add i*86-*-sysv4*, sparc-sun-sunos4,
6119 alpha-dec-osf2* xfail for
6120 "delete all breakpoints when none".
6124 * gdb.base/break.exp: Change test that deletes all breakpoints
6125 when no user breakpoints are installed. A post 4.15 change
6126 causes gdb to no longer prompt in this case.
6130 * gdb.base/return.exp (return_tests): Change xfail for test
6131 "correct value returned double test" to stop xfailing at
6132 Solaris 2.5. Apparently the bug has been fixed.
6136 * gdb.stabs/ecoff.sed: Remove comment lines except for first one.
6137 IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
6141 * gdb.disasm/hppa.exp: Test lci and syncdma instructions.
6142 * gdb.disasm/hppa.s: Corresponding changes.
6146 * gdb.base/configure.in (hppa*-*-hpux*): No longer needs target
6148 * config/mt-hpux: Deleted.
6152 * Many files: When warning about suppressed tests due to a
6153 nonexistant test binary, avoid incrementing the warning count.
6157 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove BISON.
6161 * gdb.base/return.exp: Change xfail from "sparc-*-solaris2.*" to
6162 "sparc-*-solaris2*".
6166 * gdb.base/coremaker.c: Produce a full core dump for AIX targets.
6167 Add global and local variables and initialize them.
6168 * gdb.base/corefile.exp: Test correct mapping of corefile sections
6169 by printing variables. Remove rs6000 and powerpc xfails, BFD now
6170 extracts the file name and terminating signal from the core file.
6171 * TODO: Remove note about tests for correct mapping of corefile.
6172 * gdb.base/ptype.c (main): Use boolean2 to inhibit AIX 4.1 xlc
6173 from optimizing it away.
6174 * gdb.stabs/weird.exp: Remove rs6000 xfail, xcoffread.c now
6175 handles common blocks.
6179 * gdb.disasm/sh3.s (fmac): Update for new assembler syntax
6180 * gdb.disasm/sh3.exp (fmac): Corresponding changes.
6184 * Makefile.in (maintainer-clean): New target, synonym for
6186 * gdb.base/Makefile.in (maintainer-clean): Likewise.
6187 * gdb.c++/Makefile.in (maintainer-clean): Likewise.
6188 * gdb.chill/Makefile.in (maintainer-clean): Likewise.
6189 * gdb.disasm/Makefile.in (maintainer-clean): Likewise.
6190 * gdb.stabs/Makefile.in (maintainer-clean): Likewise.
6191 * gdb.threads/Makefile.in (maintainer-clean): Likewise.
6195 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
6196 xfails when not gcc compiled for "print foo::funclocal".
6197 (test_at_foo): Add "hppa*-*-hpux*" xfails when not gcc compiled for:
6198 "print foo::funclocal at foo",
6199 "print 'scope1.c'::foo::funclocal at foo",
6200 "print foo::funclocal_bss at foo",
6201 "print 'scope1.c'::foo::funclocal_bss at foo",
6202 "print foo::funclocal_ro at foo",
6203 "print 'scope1.c'::foo::funclocal_ro at foo",
6204 "print bar::funclocal at foo" and
6205 "print 'scope1.c'::bar::funclocal at foo".
6206 (test_at_bar): Add "hppa*-*-hpux*" xfails when not
6207 gcc compiled for "print foo::funclocal at bar".
6208 Expand all messages to ensure that they identify that
6209 the test is at bar().
6210 * gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
6212 "ptype on opaque struct pointer (statically)",
6213 "ptype on opaque struct tagname (statically)",
6214 "ptype on opaque struct pointer (dynamically) 1",
6215 "ptype on opaque struct tagname (dynamically) 1",
6216 "ptype on opaque struct pointer (dynamically) 2" and
6217 "ptype on opaque struct tagname (dynamically) 2
6218 * gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
6224 "whatis bsslocal", and
6226 * gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
6227 "backtrace in langs.exp" and "up to langs0__2do in langs.exp"
6228 when not gcc compiled.
6229 * gdb.base/funcargs.exp (float_and_integral_args): Add
6230 "hppa*-*-hpux*" xfail for "run to call2a" when not gcc
6232 (discard_and_shuffle): Add "hppa*-*-hpux*" xfail for
6233 "backtrace from call6a" when not gcc compiled.
6234 (shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
6235 "backtrace from call7a" when not gcc compiled.
6236 * gdb.base/callfuncs.exp (do_function_calls):
6237 Add "hppa*-*-hpux*" xfail when not gcc compiled for
6238 "p t_char_array_values(char_array_val2,char_array_val1)",
6239 "p t_char_array_values(char_array_val1,char_array_val2)",
6240 "p t_char_array_values("carray 1","carray 2")",
6241 "p t_char_array_values("carray 1",char_array_val2)",
6242 "p t_char_array_values(char_array_val1,"carray 2")",
6243 "p sum_args(1,{2})",
6244 "p sum_args(2,{2,3})",
6245 "p sum_args(3,{2,3,4})",
6246 "p sum_args(4,{2,3,4,5})"
6247 * gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
6248 "backtrace in corefile.exp" when not gcc compiled.
6252 * gdb.base/signals.exp: Rewrite `handle all print' test as
6253 a procedure. Accept blanks or TABs as whitespace, increase
6254 timeout and expect input buffer size for the large output
6255 from the command. Remove "i*86-*-bsdi2.0" xfail.
6259 * gdb.base/setvar.exp: Add new testcases for truncation when
6260 assigning invalid values to bitfields.
6264 * gdb.base/callfuncs.exp (do_function_calls): Remove
6265 mips-sgi-irix* xfail for
6266 "call inferior func with struct - returns char *"
6267 and fix test so that an optional (unsigned char *) cast is
6268 accepted in the result.
6272 * gdb.base/funcargs.exp (float_and_integral_args): Remove
6273 sparc-sun-solaris2* xfail for "print f1 after run to call2a".
6274 * gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
6275 * gdb.base/signals.exp: Remove duplicate "handle all print" test
6276 that accidentally got checked in.
6280 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
6281 clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
6283 * gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
6284 Add mips-sgi-irix5* xfail for not gcc compiled.
6285 * gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci.
6286 * gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
6287 "p top", "whatis top", "p middle", and "whatis middle".
6288 * gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
6289 "whatis signed char" for not gcc compiled.
6290 * gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
6291 "set variable signed char=-1 (-1)" and
6292 "set variable signed char=0xFF (0xFF)" for not gcc compiled.
6293 * gdb.base/funcargs.exp (float_and_integral_args):
6294 Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
6295 Add mips-sgi-irix* xfail when not gcc compiled for
6296 "continue to call2b".
6297 Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
6298 "continue to call2g".
6299 (discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
6300 "backtrace from call6a"
6301 (shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
6302 "backtrace from call7k".
6303 Add mips-sgi-irix5* xfail when not gcc compiled for
6304 "backtrace from call7a".
6305 (localvars_after_alloca): Fix gdb_test cmds for
6306 "print * after runto ...".
6307 Remove rs6000-*-* xfails for
6308 "print i after runto localvars_after_alloca" and
6309 "print l after runto localvars_after_alloca"
6311 * gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
6312 when not compiled with gcc, for:
6313 "print signed char == (minus)",
6314 "print signed char != (minus)",
6315 "print signed char < (minus)",
6316 "print signed char > (minus)".
6317 * gdb.base/callfuncs.exp (do_function_calls):
6318 Add mips-sgi-irix* xfail, when compiled with native compiler, for
6319 "call inferior func with struct - returns char *".
6320 * gdb.base/return.exp (return_tests): Change xfail for
6321 "correct value returned double test" to include Solaris 2.4.
6322 * gdb.base/funcargs.exp (float_and_integral_args):
6323 Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
6327 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
6328 enumeration bitfields if compiling with GNU C.
6329 * lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path
6334 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
6335 test for PRO targets.
6337 * gdb.base/funcargs.exp: Avoid ever setting more than 8
6338 breakpoints in the inferior at any given time by making
6339 two groups of breakpoints for call2*, call6* and call7*
6344 * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
6345 * gdb.base/callfuncs.c (main): Use struct_val1 to inhibit xlc
6346 from optimizing it away.
6347 * gdb.base/callfuncs.exp: Remove rs6000-*-* xfails for
6348 "call inferior func with struct".
6352 * configure.in: Only configure gdb.chill for particular targets.
6356 * gdb.base/Makefile.in: Add action to .c.o transformation
6357 rule that generates a .ci file for each .o file and remove
6358 explicit .c.o rules except for callfuncs.o.
6359 * gdb.c++/Makefile.in: Add .cc.o transformation rule that
6360 generates a .ci file for each .o file and remove explicit
6362 (clean): Remove *.tmp *.ci files.
6363 (EXECUTABLES): Remove templ-info.exp.
6364 * gdb.base/compiler.c: New file.
6365 * gdb.c++/compiler.cc: New file
6366 * gdb.base/scope.exp: Source gdb.base/scope.ci.
6367 Change rs6000-*-* xfail for
6368 "print 'scope0.c'::filelocal_ro" and
6369 "print 'scope1.c'::filelocal" and
6370 "print 'scope1.c'::filelocal_bss" and
6371 "print 'scope1.c'::filelocal_ro" and
6372 "print 'scope1.c'::foo::funclocal" and
6373 "print 'scope1.c'::foo::funclocal_ro" and
6374 "print 'scope1.c'::bar::funclocal" and
6375 "print 'scope0.c'::filelocal_ro" and
6376 "print 'scope1.c'::filelocal at foo" and
6377 "print 'scope1.c'::filelocal_bss at foo" and
6378 "print 'scope1.c'::filelocal_ro at foo" and
6379 "print 'scope1.c'::foo::funclocal at foo" and
6380 "print 'scope1.c'::foo::funclocal_bss at foo" and
6381 "print 'scope1.c'::foo::funclocal_ro at foo" and
6382 "print 'scope1.c'::bar::funclocal at foo" and
6383 "print 'scope0.c'::filelocal_ro" and
6384 "print 'scope1.c'::filelocal" and
6385 "print 'scope1.c'::filelocal_bss" and
6386 "print 'scope1.c'::filelocal_ro" and
6387 "print 'scope1.c'::foo::funclocal" and
6388 "print 'scope1.c'::foo::funclocal_bss" and
6389 "print 'scope1.c'::foo::funclocal_ro" and
6390 "print 'scope1.c'::bar::funclocal" and
6391 "print 'scope1.c'::bar::funclocal_bss"
6392 to only be xfail'd when not compiled with gcc.
6393 Add rs6000-*-* xfail for
6394 "print 'scope0.c'::filelocal_bss before run"
6395 when compiled with gcc.
6396 (test_at_main): Add rs6000-*-* xfail for
6397 "print filelocal_ro in test_at_main"
6398 when compiled with gcc.
6399 * gdb.base/ptype.exp: Source gdb.base/ptype.ci.
6400 Add rs6000-*-aix* xfail for
6401 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and
6402 "ptype t_char_array", not compiled with gcc.
6403 * gdb.base/list.exp (test_list_function): Add rs6000-*-*
6404 xfail for "list foo (in include file)" when gcc compiled.
6405 * gdb.base/funcargs.exp: Source gdb.base/funcargs.ci
6406 (integral_args): Add rs6000-*-* xfail for
6407 "run to call0a" if not compiled with gcc.
6408 (unsigned_integral_args): Add rs6000-*-* xfail for
6409 "run to call1a" if not compiled with gcc.
6410 (float_and_integral_args): Add rs6000-*-* xfail for
6411 "run to call2a" if not compiled with gcc and for
6412 "continue to call2b" for any compiler.
6413 Add rs6000-*-* xfail to
6414 "print f1 after run to call2a" for gcc compiled.
6415 (discard_and_shuffle): Add rs6000-*-* xfail for
6417 (shuffle_round_robin): Add rs6000-*-* xfail for
6418 "backtrace from call7a" if not compiled with gcc.
6419 Add rs6000-*-* xfail for
6420 "backtrace from call7b" if compiled with gcc.
6421 (call_after_alloca): Add rs6000-*-* xfail for
6422 "print c in call_after_alloca" and
6423 "print s in call_after_alloca" and
6424 "backtrace from call_after_alloca_subr"
6425 if not compiled with gcc.
6426 (localvars_in_indirect_call): Add rs6000-*-* xfail for
6427 "print c in localvars_in_indirect_call" and
6428 "print c in localvars_in_indirect_call" and
6429 "backtrace in indirectly called function" and
6430 "stepping into indirectly called function"
6431 if not compiled with gcc.
6432 (localvars_after_alloca): Add rs6000-*-* xfail for
6433 "print c after runto localvars_after_alloca" and
6434 "print s after runto localvars_after_alloca" and
6435 "print i after runto localvars_after_alloca" and
6436 "print l after runto localvars_after_alloca"
6438 * gdb.base/whatis.exp: Source gdb.base/whatis.ci rather
6439 than whatis-info.exp.
6440 * gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather
6441 than opaque-info.exp.
6442 Setup rs6000-*-* xfail for
6443 "ptype on opaque struct pointer (statically)" and
6444 "ptype on opaque struct pointer (dynamically)" when
6445 not compiled with gcc.
6446 * gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci
6447 rather than callf-info.exp.
6448 (do_function_calls): Add clear_xfail for rs6000-*-* for
6449 "p t_float_values2(3.14159,float_val2)". Seems to work
6450 fine there, both with xlc and gcc. Need to find out what
6451 it is doing right and fix other platforms.
6452 * gdb.base/callfuncs.exp: Add rs6000-*-* xfail for
6453 "call inferior func with struct - returns int",
6454 "call inferior func with struct - returns long",
6455 "call inferior func with struct - returns float",
6456 "call inferior func with struct - returns double",
6457 "call inferior func with struct - returns char *",
6458 but only if not gcc compiled (presumes xlc compiled).
6459 Change rs6000-*-* xfails for
6460 "call inferior func with struct - returns char" and
6461 " call inferior func with struct - returns short" to only
6462 xfail if not using gcc.
6463 (clean mostlyclean): Remove *.ci and *.tmp files.
6464 * gdb.c++/templates.exp: Source gdb.c++/templates.ci rather
6465 than templ-info.exp.
6466 * gdb.base/langs.exp: Source gdb.base/langs.ci.
6467 Add rs6000-*-* xfail for "up to foo in langs.exp"
6468 "up to cppsub_ in langs.exp" and "up to fsub in langs.exp"
6469 when not gcc compiled.
6473 * gdb.base/callfuncs.exp: Add xfails for the powerpc.
6474 * gdb.base/corefile.exp: Likewise.
6475 * gdb.base/list.exp: Likewise.
6476 * gdb.base/scope.exp: Likewise.
6477 * gdb.base/siganls.exp: Likewise.
6479 * gdb.base/nodebug.exp: Add xfails for the powerpc. Handle aix4
6481 * gdb.base/whatis.exp: Likewise.
6485 * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect a
6486 failure (opcode table has been fixed to match reality).
6490 * gdb.base/callfuncs.exp: Add rs6000-*-* xfails for
6491 "call inferior func with struct - returns char",
6492 "call inferior func with struct - returns short"
6494 * gdb.base/scope.exp: Remove rs6000-*-* xfails for
6495 "print 'scope0.c'::filelocal at main",
6496 "print 'scope0.c'::filelocal_bss in test_at_main",
6497 "print 'scope0.c'::filelocal at foo",
6498 "print 'scope0.c'::filelocal_bss in test_at_foo",
6499 "print 'scope0.c'::filelocal at bar",
6500 "print 'scope0.c'::filelocal_bss in test_at_bar"
6502 * gdb.base/list.exp: Remove rs6000-*-* xfail for "list function
6503 in source file 1". This bug seems to have been fixed with both
6504 gcc and native cc (was native assembler bug?).
6508 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
6509 "backtrace through signal handler" to "i*86-*-sysv4*".
6510 * gdb.base/signals.exp: Add xfail for "'next' behaved as
6511 continue" case. Add "known SVR4 bug" to fail message.
6512 Add "i*86-*-bsdi2.0" xfail for "handle all print".
6513 Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
6514 * gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
6515 "whatis unnamed typedef'd enum..." and "ptype t_char_array".
6516 * gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
6517 "up to foo in langs.exp", "show language at foo in
6518 langs.exp", "up to cppsub_ in langs.exp", "show
6519 language at cppsub_ in langs.exp", "up to fsub in
6520 langs.exp", and "show language at fsub in langs.exp".
6521 * gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
6522 "bactrace in corefile.exp".
6523 * gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
6524 "call inferior function with struct - returns float" and
6525 "call inferior function with struct - returns double".
6529 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.
6530 * gdb.disasm/sh3.exp: Run the sh3 disassembler tests.
6531 * gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment.
6532 * gdb.disasm/sh3.mt: Makefile fragment for sh3 ests.
6536 * Makefile.in (CHILL_FOR_TARGET): Use previously defined
6537 (or overriden) "CHILL" macro rather then bare "gcc".
6538 Also look for ../../gcc/xgcc since that is what we will
6539 actually need, not "Makefile". Remove following assignment
6540 of CHILL to CHILL_FOR_TARGET because that results in
6541 recursive definition.
6545 * gdb.base/corefile.exp: Change xfail for backtrace in
6546 corefile.exp from linuxaout to all linux.
6547 * gdb.base/sigall.exp (test_one_sig): Specifically deal with
6548 cases where we miss the breakpoint at the signal handler
6549 for some reason. Setup xfail for linuxoldld/linuxaout and
6550 getting SIGIO. Setup xfail for linuxoldld/linuxaout for
6551 hitting SIGURG breakpoint.
6552 * gdb.base/signals.exp: Setup xfail for "next" acting like
6553 continue to add linuxoldld. Setup xfail for all linux for
6554 "next to handler in signals_tests_1", "backtrace in
6555 signals_tests_1", "continue to func1", "pass SIGUSR1",
6556 and continue to handler".
6560 * Update all FSF addresses except those in COPYING* files.
6564 * gdb.base/a2-run.exp: Change messages to be more explicit about
6565 the status of args, and quote binfile in results.
6569 * gdb.base/callfuncs.exp: Add tests for passing structs to
6570 inferior functions and return various types.
6571 * gdb.base/callfuncs.c: Add functions to receive a struct
6572 and return a member of the struct, in various types.
6576 * gdb.base/Makefile.in (clean): Remove callf-info.exp.
6580 * config/vxworks29k.exp: New file, sources vxworks.exp.
6584 * config/gdbremote.exp: New file. Testing framework using
6589 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail for
6590 "call function when asleep" and "send end of file".
6591 * gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list
6592 for "backtrace in corefile.exp".
6593 * gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list
6594 for "backtrace through signal handler".
6595 * gdb.base/corefile.exp: Make sure we actually generate a core file
6596 before trying the core tests. Some systems allow the user to suppress
6597 generation of core files and default to that (linux for example).
6598 * gdb.base/signals.exp: Change xfail for "next" acting like "continue"
6599 from "i*86-*-linux" to "i*86-*-linuxaout". Works with ELF beta.
6603 * gdb.threads: New directory with some crude multi-threaded
6604 gdb tests (step.exp and step2.exp).
6605 * config/mt-lynx (STEP_EXECUTABLE): Define.
6606 (THREADFLAGS): Define.
6610 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx.
6612 * gdb.base/signals.exp: Disable whole file for lynx until
6615 * gdb.base/signals.exp: xfail test where "next" acts like
6616 "continue" for lynx.
6618 * gdb.base/interrupt.exp: xfail test for calling function while
6619 inferior is asleep for lynx.
6621 * gdb.base/watchpoint.exp: Handle more cases of gdb echoing more
6622 than one cr-lf after each command.
6626 * configure.in: Reinstate setting of stabsdirs variable, fix
6627 typo in setting up configdirs for native builds.
6629 * gdb.base/return.exp: Fix typo in return double test.
6630 * gdb.base/return.c (tmp2, tmp3): Made global to inhibit the
6631 compiler from optimizing them away.
6635 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
6636 sequences to be echo'd by gdb when using gdb_test.
6637 * gdb.chill/chexp.exp: Likewise.
6638 * gdb.fortran/exprs.exp: Likewise
6642 * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
6643 after the inferior gdb has started.
6645 * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
6647 * gdb.base/funcargs.exp: Likewise.
6648 * gdb.base/gdbvars.exp: Likewise.
6649 * gdb.base/interrupt.exp: Likewise.
6650 * gdb.base/list.exp: Likewise.
6651 * gdb.base/watchpoint.exp: Likewise.
6652 * gdb.c++/demangle.exp: Likewise.
6653 * gdb.c++/inherit.exp: Likewise.
6654 * gdb.chill/chexp.exp: Likewise.
6655 * gdb.fortran/exprs.exp: Likewise.
6657 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
6658 test if we can't handle IO to/from the inferior.
6660 * gdb.c++/misc.exp: Always check for a program already being
6661 started after sending a "run" command to gdb.
6663 * gdb.base/twice.exp: Start with a fresh gdb.
6665 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
6666 only depend on gdb's expression code, not the chill runtime.
6668 * gdb.base/return.c: Put return values into variables so we
6669 can have gdb print them rather than depending on the program
6671 * gdb.base/return.exp: Corresponding changes.
6673 * lib/gdb.exp: Provide default value for noinferiorio.
6674 * gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
6677 * gdb.base/break.exp: Always check for a program already being
6678 started after sending a "run" command to gdb.
6679 (text_next_with_recursion): Don't check the output from the
6680 program's printf statement. Instead just make sure the program
6683 * gdb.base/commands.exp: Protect tests which need arguments with
6684 $noargs conditionals.
6688 * gdb.base/printcmds.exp: Adjust expect patterns for addresses
6689 of structure member arrays to match gdb/valops.c:value_addr change.
6693 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
6698 * configure.in (configdirs): Remove gdb.chill from default list
6699 of subdirs and then add it back in only if doing a native build.
6700 The current chill compiler does not yet work in any cross build.
6701 * Revert all signal changes from Jul 6.
6702 * gdb.base/{sigall.c signals.c}: Define away signal() and alarm()
6703 for sh-hms targets, allowing these tests to link, with no other
6704 changes. Testing is suppressed by setting "nosignals" in site.exp.
6708 * configure.in (signaldirs): Define and add to configdirs for all
6709 targets except some specific ones that are known to not support signals.
6710 Also clean up formatting.
6711 * gdb.base/Makefile.in (EXECUTABLES): Remove sigall and signals.
6712 (signals, sigall): Remove rules to build.
6713 * gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
6714 Moved to new gdb.signals directory.
6715 * gdb.signals: New test directory.
6716 * gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
6717 signals.c signals.exp}: New or moved files.
6721 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist.
6725 * gdb.base/return.exp: Xfail `return double' test failure
6726 on at least Solaris 2.3 and handle future/past versions on
6727 a case by case basis as appropriate. Also update message
6728 to include i*86 failures.
6732 * Makefile.in: Change variable CFLAGS to TESTSUITE_CFLAGS.
6734 * lib/gdb.exp: Fix comment which erroneously identified
6735 gdb_file_cmd as gdb_load (the 19 May change was in fact to
6736 gdb_file_cmd not gdb_load).
6737 * config/unix-gdb.exp (gdb_load): Add "upvar timeout timeout".
6739 * gdb.base/setvar.exp: Make test names consistent between pass and
6740 fail cases. Use gdb_test more.
6744 * lib/gdb.exp (gdb_load): Add "upvar timeout timeout".
6748 * gdb.base/help.exp: Fix expected help string for `show commands'.
6752 * gdb.stabs/xcoff.sed: Change N_LSYM to C_DECL not C_LSYM.
6754 * gdb.stabs/weird.exp: Remove xfail for xcoff bitching about lack
6759 * config/monitor.exp (gdb_target_monitor): Fix loop interator so
6760 that loop eventually terminates. Fix Connection refused logic so
6761 that testsuite will expire nicely.
6765 * config/cpu32bug.exp, config/est.exp, config/hppro.exp,
6766 config/rom68k.exp: New tcl glue for the appropriate monitors.
6767 These all just end up calling monitor.exp.
6768 * config/monitor.exp (gdb_target_monitor): Handle `Connection
6769 refused' by retrying. Cleanup some timeout issues.
6770 * (gdb_load): Reduce timeout. Cleanup some timeout issues.
6771 * lib/gdb.exp (gdb_test gdb_test_exact): Upvar timeout so that
6772 callers don't have to set/restore global timeout variable.
6774 * The following set of changes centralizes management of the global
6775 timeout variable. This way, it can be set in one target dependent
6776 place instead of dozens of places scattered throughout the test suite.
6777 If you need to lengthen a timeout, then you should either set timeout
6778 in one of the config/{target}.exp files, or multiply it by a factor.
6779 Setting it to an absolute value is always going to lose for some
6781 * gdb.base/a1-selftest.exp (test_with_self): Only use local timeout.
6782 * gdb.base/callfuncs.exp (do_function_calls): Don't set timeout.
6783 * gdb.base/funcargs.exp: Don't set timeout.
6784 * gdb.base/list.exp (test_forward_search): Only use local timeout.
6785 * gdb.base/printcmds.exp (test_print_string_constants
6786 test_print_array_constants): Don't set timeout.
6787 * gdb.base/ptype.exp: Don't set timeout.
6788 * gdb.base/recurse.exp: Don't set timeout.
6789 * gdb.base/return.exp: Don't set timeout.
6790 * gdb.base/watchpoint.exp: Don't set timeout.
6791 * gdb.c++/classes.exp (do_tests): Don't set timeout.
6792 * gdb.c++/virtfunc.exp (test_virtual_calls): Don't set timeout.
6796 * Makefile.in: Make clean targets work also when SUBDIRS is empty.
6800 * lib/gdb.exp: Disable chill tests for irix5.
6804 * gdb.base/scope.exp: Make test names unique. Use gdb_test. Make
6805 each test pass or fail.
6809 * gdb.base/opaque.exp: Remove xfails for aix; print a warning if
6814 * cpu32bug.exp est.exp rom68k.exp: Delete. Unify into monitor.exp.
6818 * config/est.exp: Fix copyright and comments. Remove dead code.
6819 Use targetname, serialport and baud variables instead of fixed
6821 * config/rom68k.exp: Fix copyright and comments. Remove dead code.
6822 * config/cpu32bug.exp: New file to support cpu32bug monitors.
6826 * gdb.base/watchpoint.exp: Don't run
6827 test_watchpoint_triggered_in_syscall for sunos.
6831 * gdb.base/{break.c,run.c}: Don't include vxWorks.h or stdioLib.h;
6832 they don't seem to exist. Do include stdio.h.
6836 * gdb.base/a1-selftest.exp: Add alpha xfail.
6840 * gdb.base/watchpoint.c (main): Prompt before calling read().
6841 * gdb.base/watchpoint.exp (test_watchpoint_triggered_in_syscall):
6842 Revise accordingly. Remove cruft about sending "123" several
6843 times, until it gets noticed. Clean up the "print buf[0]" stuff
6844 so that it passes or fails, and waits for prompts in the usual way.
6848 * gdb.base/recurse.exp: Fix comment.
6850 * TODO: Remove item about printing variables in nodebug.exp. Add
6851 item about enabling tests which are only run on some targets.
6853 * gdb.base/watchpoint.exp: Various cleanups (make each test pass or
6854 fail, make test names unique, use new gdb_test convention
6855 regarding pattern, use gdb_test more, etc.).
6857 * gdb.base/bitfields.exp: Various cleanups (make each test pass or
6858 fail, make test names unique, etc.).
6862 * gdb.base/nodebug.c: Change return type of top and middle to
6864 * gdb.base/nodebug.exp: Remove xfails for ecoff systems, they
6865 are fixed by the recent mdebugread.c changes. Allow `short ()'
6866 as type for top and middle.
6870 * gdb.base/break.exp: Remove commented out if $usestubs {}. As
6871 nearly as I can tell, the whole thing was an accident in Stu's
6872 change of 24 Mar 1995 (logged in ../ChangeLog), in which he meant
6873 to replace a send/expect pair with gdb_test, but ended up only
6874 adding the gdb_test. My change of 24 Mar 1995 and Kung's change
6875 of 30 Mar 1995 took care of it, but left this vestigial comment
6876 which I am now nuking.
6880 * gdb.base/break.exp: Look for different line number for
6881 breakpoint at main depending on usestubs.
6885 * gdb.base/list.exp: Adjust some alternate expect patterns to
6886 match recent list0.c change. Add alternate expect pattern for
6887 output from `list default lines around main' for optimizing
6892 * lib/gdb.exp: If nosignals is not set, set it to 0.
6896 * config/slite-gdb.exp: Responds to load symbol table prompt.
6897 * gdb.base/break.exp: Adjust line number, fix rerun.
6898 * gdb.base/langs0.c: Add #ifdef usestubs.
6902 * gdb.base/list.exp: Adjust line contents after adding new lines in
6903 list0.c. Also fix a syntax error.
6905 * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
6906 * gdb.base/break.exp: ditto.
6907 * gdb.base/list.exp: ditto.
6908 * gdb.base/bitfields.c: Add #ifdef usestubs in main().
6909 * gdb.base/run.c: ditto.
6910 * gdb.base/list0.c: ditto.
6911 * gdb.base/funcargs.c: ditto.
6915 * testsuite/config/rom68k.exp (gdb_target_rom68k): Use
6916 $targetname, $serialport and $baud instead of hardwired variables.
6917 * testsuite/gdb.base/{sigall.exp signals.exp}: Skip these if the
6918 target doesn't support signals.
6922 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.
6926 * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
6927 Don't rely on the value of an auto variable before it has been
6928 initialized. Use gdb_test more.
6932 * lib/gdb.exp (default_gdb_version): A version number must start
6933 with a digit, but other than that contains all characters up to
6934 the first whitespace character.
6938 * gdb.base/commands.exp (breakpoint_command_test): New tests.
6942 * gdb.c++/*.exp: Warn if executable does not exist. The original
6943 reason for skipping the warning was that configure.in sometimes
6944 intentionally skipped building the executables but the tcl code
6945 had no way of knowing. That (a) was always bogus with respect to
6946 error handling, (b) is no longer true (right now there is no way
6949 * gdb.c++/demangle.exp: Remove unused binfile and srcfile variables.
6953 * gdb.base/list.exp: Add expect patterns for output from
6954 SunPRO compiled executables.
6955 * gdb.base/whatis.exp: Allow leading `signed' for all v_signed_*
6960 * gdb.base/break.exp (test_next_with_recursion): Accept any line
6961 number (we are already testing that the correct source line text
6964 * gdb.base/break.exp: Make one test if $usestubs. I'm not sure
6965 that is what is intended, but something needed to be done to get
6966 sunos4 native working again.
6968 * gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
6970 * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
6971 apparently went with a (very) old xfail.
6975 * gdb.base/callfuncs.exp: call runto_main instead of runto main.
6976 runto_main is a proc in gdb.exp that will do 'step' for target use
6978 * gdb.base/exprs.exp: ditto.
6979 * gdb.base/interrupt.exp: ditto.
6980 * gdb.base/opaque.exp: ditto.
6981 * gdb.base/printcmds.exp: ditto.
6982 * gdb.base/ptype.exp: ditto.
6983 * gdb.base/scope.exp: ditto.
6984 * gdb.base/setvar.exp: ditto.
6985 * gdb.base/signals.exp: ditto.
6986 * gdb.base/twice.exp: ditto.
6987 * gdb.c++/classes.exp: ditto.
6988 * gdb.c++/inherit.exp: ditto.
6989 * gdb.c++/templates.exp: ditto.
6990 * gdb.base/break.exp: no run and hit main for stubs. Change line
6991 numbers for breakpoints and info breakpoint.
6992 * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
6994 * gdb.base/callfuncs.c: ditto.
6995 * gdb.base/exprs: ditto.
6996 * gdb.base/interrupt.c: ditto.
6997 * gdb.base/opaque0.c: ditto.
6998 * gdb.base/printcmds.c: ditto.
6999 * gdb.base/ptype.c: ditto.
7000 * gdb.base/scope0.c: ditto.
7001 * gdb.base/setvar.c: ditto.
7002 * gdb.base/signals.c: ditto.
7003 * gdb.base/twice.c: ditto.
7004 * gdb.c++/misc.cc: ditto.
7005 * gdb.c++/templates.cc: ditto.
7009 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).
7011 * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
7012 somewhere between `read' and `main.c'. I'm pretty sure the
7013 pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
7014 and it isn't particularly useful.
7016 * gdb.base/scope.exp: Make test names unique. \[(\] -> \\(.
7020 * gdb.base/commands.exp (infrun_breakpoint_command_test): New test.
7024 * config/mt-slite: add LIBS and -nostdlib.
7025 * config/slite-gdb.exp: add this new file to support sparclite target.
7029 * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code.
7031 * gdb.base/a2-run.exp: Change argument to istarget from
7032 "*-*-vxworks" to "*-*-vxworks*".
7033 * gdb.base/{break.exp,default.exp,scope.exp}: Likewise.
7037 * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
7038 will not runto main but do a 'step' to step out of breakpoint().
7039 * config/mt-slite: add -Dusestubs.
7043 * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
7046 * gdb.base/signals.exp: Add test for "handle all print".
7047 * TODO: Remove "handle all print". Also remove item about
7048 checking copyright date (I don't like the idea of a spurious FAIL
7049 based on when we run the tests).
7051 * gdb.base/recurse.exp: Enable test for SunOS4. xfail one test
7052 for SunOS4 (reason for failure not investigated). Remove
7053 redundant test for $binfile.
7055 * gdb.base/nodebug.c (array_index): Call malloc.
7057 * gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique.
7061 * gdb.base/recurse.exp: Update gdb_test invocation to use new
7062 conventions and slightly simplify the matching regexp.
7066 * gdb.base/break.exp: Update gdb_test invocation to use new
7069 * lib/gdb.exp: If noargs is not set, set it to 0.
7071 * gdb.base/nodebug.exp: Comment out redundant test. Make name of
7074 * lib/gdb.exp: Skip CHILL for AIX and Solaris.
7078 * gdb.base/nodebug.exp: It is OK if GDB thinks top and middle have
7079 one argument of type "<non-float parameter>".
7083 * config/rom68k.exp: New file to support Motorola IDP board.
7084 * gdb.base/a2-run.exp: Skip this file if noargs is set.
7085 * gdb.base/break.c: Change things around so that this program
7086 doesn't depend upon args. This is necessary to make remote
7087 targets work (in general, they can't take args).
7088 * gdb.base/break.exp: Don't try to send args to program. Don't
7089 expect output. Also, replace lots of code with gdb_test.
7093 * gdb.base/printcmds.exp (test_character_literals_accepted): Test
7094 printing of '\'' (which is what the comment says we are testing,
7095 even though we were not), not '''.
7096 (test_integer_literals_rejected): Test that printing ''' is an error.
7098 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
7099 gdb.chill/chexp.exp, gdb.base/printcmds.exp,
7100 gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp,
7101 gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp:
7102 Use gdb_test not test_print_accept.
7103 * lib/gdb.exp: Remove test_print_accept.
7105 * gdb.base/signals.exp (signal_tests_1): Make pass message
7106 consistent with fail message.
7108 * gdb.base/whatis.exp: Remove xfails for printing char vs.
7109 unsigned char; the bug (PR 1821) is fixed.
7111 * gdb.base/scope.exp: Remove xfails for PRs 1843 and 1868.
7113 * gdb.base/scope.exp (test_at_localscopes): Call pass for
7114 successful tests--makes xfailing them work right.
7118 * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
7119 only \r\n, not .*. The test can pass .* as the last thing in
7120 $pattern if that is what it wants. In addition to providing this
7121 flexibility, this change should speed up pattern matching in cases
7122 where the pattern already ended with .* (there were a number of
7123 them). This change also helps catch bad patterns--in the old
7124 scheme the typo "char \*" instead of "char \\*" would pass. Now
7126 * Many .exp files: Update callers.
7128 * gdb.base/funcargs.exp: Replace \[(\]+ with \\(. The latter is
7129 clearer and does not spuriously match multiple ('s. Likewise for
7132 * gdb.base/nodebug.exp: Test ability to call a function and pass
7133 it a string (even with no debugging info).
7135 * gdb.base/printcmds.exp (test_integer_literals_rejected): Change
7136 "p '\'", which is the same as "p ''" once tcl gets done with
7137 quoting, to "p '\\'", which I suspect is what is intended (one
7138 backslash gets sent to GDB).
7140 * gdb.base/printcmds.exp (test_artificial_arrays): New tests.
7144 * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
7145 1817) was fixed literally years ago.
7149 * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
7150 test, it causes stepping out of call_after_alloca_subr with
7151 optimizing compilers.
7152 (localvars_in_indirect_call): Consume GDB prompt if `finish'
7155 * gdb.c++/templates.exp: Source templ-info.exp only if
7156 the templates executable exists.
7158 * gdb.c++/misc.cc (class Contains_static_instance,
7159 class Contains_nested_static_instance),
7160 gdb.c++/classes.exp (test_static_members): Test printing of
7161 a class that contains a static instance of the class.
7165 * gdb.base/langs2.c (cppsub_): Don't prototype.
7166 * gdb.base/langs2.cxx (cppsub_): Fix prototype (cosmetic value
7171 * lib/gdb.exp (skip_chill_tests): New procedure.
7173 * gdb.base/signals.exp (signal_tests_1): xfail for irix.
7177 * gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
7178 each expect pattern. Cuts runtime from 12 to about 4 seconds.
7182 * gdb.base/langs.exp: Don't insist that foo__Fi be demangled.
7184 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Only
7185 disassemble 8, not 16, instructions for part 4.
7187 * config/vx-gdb.exp (gdb_start): Use \030, not \CX. tcl doesn't
7188 support the latter anymore.
7190 * gdb.base/Makefile.in: Try compiling callfuncs.c, if that fails try
7192 * gdb.base/callfuncs.c: Control use of prototypes based on
7193 NO_PROTOTYPES, not __STDC__.
7194 * gdb.base/callfuncs.exp (do_function_calls): xfail one of the
7195 t_float_values2 tests if prototypes in use.
7197 * gdb.base/callfuncs.c (t_float_values, t_float_values2,
7198 t_double_values): When checking differences against DELTA, check
7199 that difference is within the range (-DELTA,DELTA), not just
7204 * config/mips-gdb.exp (gdb_load): In every test case, we need to do
7205 'file' command firts, then 'target', then 'load', this is due to gdb
7207 * config/mips-gdb.exp: Fix a couple regular exp bugs.
7211 * gdb.disasm/hppa.s (fmemLRbug_tests): Add tests for the indexing
7212 FP load/store variants.
7213 * gdb.disasm/hppa.exp (fmemLRbug_tests): Test new variants.
7217 * gdb.base/term.exp: Do not give a warning if not native, it is
7218 not an abnormal condition.
7222 * gdb.base/ptype.exp: Accept char[0] as well as char[] for "ptype
7227 * lib/gdb.exp (default_gdb_version): Pass GDBFLAGS to gdb when we
7228 are getting the version number.
7230 * gdb.base/{a1-selftest.exp,corefile.exp}: Do not give a warning
7231 if not native, it is not an abnormal condition.
7235 * lib/gdb.exp: Just use "file exists", rather than undocumented
7236 dejagnu procedure "findfile".
7240 * config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
7241 (LDFLAGS): Set to -Xlinker -Ur.
7243 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
7244 Removed, these values are set by lib/gdb.exp.
7246 * lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.
7250 * config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
7251 of replicating gdb startup code.
7253 * config/mt-vxworks (LDFLAGS): Set to -r.
7254 (CFLAGS_FOR_TARGET): Removed.
7256 * config/vx-gdb.exp: always set prompt; gdb.exp sets it to
7257 (gdb) and gdb for vxworks uses (vxgdb).
7259 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
7260 executable is not in the tree and host != target, use sed and
7261 program_transform_name to determine the gdb name used by the
7264 * configure.in, gdb.{base,c++,chill}/configure.in: changed so
7265 *-*-vxworks* matches vxworks and *-*-netware* matches NetWare.
7269 * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
7270 floats, chars, and shorts where there are ANSI-style function
7273 * gdb.base/langs.exp, gdb.base/langs*: New test.
7274 * gdb.base/Makefile.in: Build it.
7275 * TODO: Remove item about checking that C names don't get C++
7276 demangling applied; this test tests it.
7280 * gdb.stabs/weird.exp: Remove "Haven't examined" comment which
7281 went with the const70 xfail. The xfail went away a year ago.
7283 * gdb.base/signals.exp: Rename a bunch of tests to give unique names.
7285 * gdb.base/corefile.exp: Give backtrace test unique name. xfail
7288 * gdb.base/interrupt.exp: Also xfail hpux (for hp300).
7290 * gdb.base/a1-selftest.exp: Don't run on hp300.
7294 * Makefile.in (site.exp): Set host_alias and target_alias as well
7295 as host_triplet and target_triplet.
7299 * gdb.base/a1-selftest.exp: Invoke stty before starting inferior.
7301 * gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
7302 places as other ecoff systems).
7304 * gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
7309 * gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
7311 * gdb.base/nodebug.exp: Accept "function" in addition to "text
7312 variable and "variable" in addition to "data variable".
7313 * gdb.base/nodebug.exp: xfail datalocal and bsslocal tests for AIX.
7315 * gdb.base/list.exp (test_forward_search): Set listsize to 4 not
7317 * gdb.base/list1.c (long_line): Add additional statement at start
7319 * gdb.base/list.exp (test_forward_search): Update line number to
7320 reflect new statement.
7324 * gdb.base/signals.exp: Reinitialize searched source directories
7325 after gdb_start call.
7329 * gdb.disasm/Makefile.in (clean): Delete "errs" file.
7330 * gdb.stabs/Makefile.in: Likewise.
7332 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Revert last
7333 change. Instead split the tests into smaller pieces.
7334 * gdb.disasm/hppa.s: Corresponding changes.
7338 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
7339 Quote ^C when passing it to stty. For some shells ^ is a pipe.
7341 * gdb.base/funcargs.exp: Modify many tests so that every test
7342 either passes or fails. Make some test names unique.
7346 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
7347 Call stty to set interrupt character.
7349 * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
7350 for HP assembler versus GNU assembler based on actual behavior of
7351 $(CC), rather than assuming that $(AS) is always the GNU assembler.
7353 * TODO: Suggest a few more stepping tests.
7357 * gdb.base/default.exp: xfail no-stack backtraces for h8300,
7358 restart GDB for h8300 after a continue.
7359 (return): Add pattern to match a29k-udi behavior.
7360 * gdb.base/nodebug.exp: Remove obsolete comment.
7361 * gdb.base/regs.exp: New file, testing of register displays.
7362 * gdb.base/return.exp: Fix typo in reference to $objdir.
7363 * gdb.base/whatis.exp: Always start with a fresh GDB.
7367 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
7368 higher, these tests generate a lot of output.
7372 * lib/gdb.exp (gdb_test): Remove catch from around the send. The
7373 code following the catch silently ignored some errors; without the
7374 catch they should be thrown like any other tcl error. Also, the
7375 catch used "" instead of {} which meant all the callers who wanted
7376 to include one of the characters "[]$ had to quote it an extra time.
7377 * gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
7378 ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
7379 demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
7380 Remove extra quoting.
7384 * gdb.base/commands.exp: Make test names unique; every test either
7385 passes or fails. Update some comments.
7387 * gdb.disasm/hppa.exp (do_system_control_tests): Update.
7391 The following fixes a FAIL caused by the fact that the alpha stabs
7392 configuration didn't use the ".if alpha" code in weird.def.
7393 * gdb.stabs/weird.def (v_comb): Use type attribute to specify 32
7394 bit pointer, so the 32 bit version works even on the alpha.
7395 * gdb.stabs/{alpha.mt,ecoff.mt,aout.sed,hppa.sed,xcoff.sed,weird.def}:
7396 Remove the stuff which allowed us to have separate versions for
7397 alpha and everything else.
7399 * gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
7400 regexp which "info func operator\[\](" is supposed to match. Fix
7401 string to send to GDB. Note that GDB still doesn't work right. Add a
7402 new test for "info func .perator\[\](" which GDB does handle correctly.
7404 * gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems.
7408 * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
7409 gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
7410 gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
7411 gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
7412 it makes the tests harder to understand and confuses test-o-matic.
7413 The preferred style is that each test provides a PASS or a FAIL,
7414 and has a unique message (e.g. "continue #54" not just "continue")
7415 which is the same for the pass and the fail.
7416 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
7417 gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
7419 * gdb.base/printcmds.exp: Use test_print_accept. Remove
7420 prt_accept which was basically the same thing. Likewise for
7421 test_print_reject and prt_reject.
7422 * lib/gdb.exp (test_print_reject): Add some more error message
7423 patterns to match from the former printcmds.exp (prt_reject).
7424 * gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
7425 One defect of the passcount stuff is that some of it failed to
7426 report XPASS where appropriate.
7427 * gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
7428 stuff before and after arg in expected pattern.
7429 (test_paddr_operator_functions): Re-do test without print_addr_of;
7430 this is the only test which seems to want extra stuff there.
7434 * gdb.base/nodebug.exp: Update new tests to reflect improved
7435 wording of gdb output.
7437 * gdb.base/nodebug.exp: Add tests to check that "print", "whatis"
7438 and "ptype" work on variables in files compiled without -g.
7439 Replaces commented out "maint print msymbol" tests.
7443 * gdb.base/setvar.c (dummy): Call malloc.
7445 * gdb.stabs/aout.sed: Enclose comments within a sed command to avoid
7446 losing with the irix4 sed.
7448 * gdb.base/sigall.exp (test_one_sig): Add xfail for "get signal
7453 * TODO: Remove items about corefile.exp testing new exec-file and
7454 backtrace; both are now done. Add items about printing enums.
7458 * gdb.base/sigall.exp (test_one_sig): Attempt to recover if
7459 "get signal $thissig" test fails.
7461 * gdb.base/setvar.exp: Check for and reject crazy expected type hacks.
7465 * gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
7466 compiler warning with dec alpha compiler.
7468 * gdb.base/commands.exp (if_while_breakpoint_command_test): Remove
7469 extra \n from gdb_test call (this explains why the prompt test
7470 that I removed yesterday was there).
7471 (user_defined_command_test): Remove extra \n and prompt test.
7473 * gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST
7474 doesn't exist. Likewise if SIGIO == SIGPOLL, pretend SIGPOLL
7476 * gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL.
7477 Also remove alpha workaround, which turns out to be because
7480 * gdb.base/sigall.exp: Add workaround for alpha weirdness.
7482 * gdb.base/help.exp: Don't test "help show".
7486 * gdb.base/commands.exp: Call gdb_exit and gdb_start so that
7487 "set print address" is on.
7488 * gdb.base/commands.exp (if_while_breakpoint_command_test): Don't
7489 pass prompt to gdb_test; gdb_test already looks for the prompt.
7491 * gdb.base/help.exp: Replace most of docstring for "define" with ".*".
7493 * gdb.base/a1-selftest.exp: Don't test "maint dump-me". That test
7494 was a vestige of the manual TESTSTRATEGY, and the purpose of it
7495 was to make sure that gdb can read a core file. But (a) the "read
7496 the corefile" part didn't make it to a1-selftest.exp, we just
7497 delete the corefile after creating it, and (b) we test reading
7498 corefiles in corefile.exp anyway. Also, this test left around a
7499 xgdb process on Solaris.
7501 * gdb.base/corefile.exp: Also test backtrace.
7505 * gdb.base/commands.exp: Test a simple user defined command with
7506 arguments and if/while statements; verify the full user command is
7507 printed by "show user".
7509 * gdb.base/commands.exp: Test if/while commands as part of a
7510 breakpoint command list; verify they appear in breakpoint
7515 * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather
7516 than by dividing by zero.
7520 * gdb.base/watchpoint.exp: hppa*-*-*bsd* no longer has problems
7521 performing an inferior call with watchpoints enabled.
7522 * gdb.base/watchpoint.c (main): Delete second unnecessary read
7527 * gdb.stabs/weird.exp: Allow spaces followed by backspaces in echo
7530 * gdb.c++/classes.exp (test_ptype_class_objects, ptype class Foo):
7531 Add additional pattern for when "int operator int(void);" appears
7532 in a different order.
7536 * gdb.base/signals.exp: Call gdb_exit and gdb_start.
7538 * gdb.base/help.exp: Replace most of docstrings for "info signals"
7539 and "signal" with ".*".
7543 * TODO: Add note about "handle all nostop".
7545 * gdb.base/{sigall.c, sigall.exp}: New test.
7546 * gdb.base/Makefile.in: Add it.
7550 * lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
7551 when invoking GDB, suppresses any windowing interface.
7555 * config/sim-gdb: New file, simulator testing support.
7559 * gdb.base/interrupt.exp: Test calling func1 twice.
7563 * gdb.base/list.exp (test_forward_search): Set timeout higher
7564 when we'll be getting lots of output from gdb.
7566 * gdb.base/a1-selftest.exp: Move code that was inside expect -re
7567 "init_malloc" to after the expect statement. Run it if that
7568 regexp is taken, but also for two others which happen if source
7573 * gdb.base/printcmds.exp: New test, for printing register before
7578 * gdb.base/list.exp: Correct some alternate expect patterns
7579 to reflect changes in list1.c.
7583 * TODO: Add item regarding large frames.
7585 * gdb.base/{funcargs.exp, funcargs.c} (call_after_alloca): New test.
7587 * TODO: Remove item about enabling return.exp; it
7588 is enabled. Suggest a few more "return" tests.
7592 * gdb.c++/misc.cc, gdb.c++/inherit.exp: Add testcases for
7597 * gdb.chill/Makefile.in: Put all rule before rules for pr-4975.o
7598 and pr-5646.o, so "make" is the same as "make all", not "make
7603 * gdb.base/list.exp: Adjust expectations to reflect changes in
7605 (test_forward_search): New test proc.
7606 * gdb.base/list1.c (long_line): New function, has long source line.
7610 * gdb.base/a1-selftest.exp: Change initial stepping to know about
7611 additional line of code that was added.
7615 * gdb.disasm/hppa.s: Break the large branching tests into smaller
7616 tests so as not to overflow expect's input buffers.
7617 * gdb.disasm/hppa.exp: Corresponding changes.
7621 Beginnings of template debugging tests.
7622 * gdb.c++/templ-info.cc: New file to test for template
7623 debugging capability of the compiler.
7624 * gdb.c++/Makefile.in: Add rule to build templ-info.exp from
7626 * gdb.c++/templates.cc: Add explicit template instantiations
7627 to enable compiling with -fno-implicit-templates. Add destructor
7628 and 'value' method to T5 class for template tests.
7629 * gdb.c++/templates.exp: Add testcases for printing of template
7630 types, setting breakpoints on template methods and calling a
7635 * gdb.disasm/hppa.exp (branch_tests): Allow any symbol as the
7636 branch target since some assemblers (gas-2.5) may emit a
7637 relocation for the branch instead of resolving it in the
7642 * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtrace
7643 through signal handler.
7647 * configure.in (*-*-netware): Use config/mt-netware.
7649 * config/mt-netware: New file.
7650 * config/mt-i386-netware: Removed, separate configs for different
7651 netware architectures are no longer needed now that we have
7656 * gdb.base/exprs.exp: Remove xfail for alpha, it is fixed
7657 by the recent changes to use ANSI C arithmetic conversions.
7661 * gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
7662 bug involving using inferior_pid to figure out whether to select a
7667 * gdb.disasm/hppa.exp: Change arg[0..3] to r[26..23] to
7668 match the current disassembler output.
7672 * gdb.fortran/exprs.exp: Expect VOID instead of void.
7673 * gdb.fortran/types.exp: Escape the expected '*'s in Fortran
7674 types, expect "int" as type of integer values (for now).
7678 * gdb.base/commands.exp: New tests for if/while commands.
7682 * lib/gdb.exp (runto): Replace sub-pattern for hex value
7683 by .*, since hex values have different syntax in Chill mode.
7687 * gdb.c++/demangle.exp (test_arm_style_demangling): Remove
7688 linefeed from expect pattern for repeated types with indices > 9.
7692 First part of Fortran test suite.
7693 * gdb.fortran: New directory.
7694 * gdb.fortran/exprs.exp, gdb.fortran/types.exp: New files.
7698 * gdb.base/default.exp: Update expect pattern for load command
7703 * configure.in: Change i386 to i[345]86.
7704 * gdb.base/configure.in: Likewise.
7705 * gdb.c++/configure.in: Likewise.
7706 * gdb.chill/configure.in: Likewise.
7710 * lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
7711 patterns, since that is not a valid context for comments.
7715 * gdb.c++/demangle.exp (test_arm_style_demangling): Add tests for
7716 repeated types and repeated types with indices > 9.
7720 * gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
7721 2417; old bug has been fixed.
7725 * gdb.base/interrupt.exp: When trying to wake up the inferior,
7726 send the newline ourselves instead of assuming gdb_test will do
7727 so when passed an empty input string.
7729 * gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
7734 * lib/gdb.exp (gdb_test): Don't send anything if the first
7735 argument is an empty string. This makes cases where we want to
7736 match output that is already in expect's buffers (for example,
7737 matching a breakpoint after gdb_run_cmd has been called) work
7742 * config/netware.exp: New file.
7746 * config/mt-slite (LDFLAGS): If using the newlib in the tree, set
7747 the -B and -L prefixes so we can find the debugging stub.
7749 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
7750 there and we are using the gcc from the tree.
7752 * gdb.base/types.c: Removed.
7754 * gdb.base/configure.in: Look for makefile fragments in ../config.
7755 Recognize i386-*-netware.
7756 * gdb.c++/configure.in: Likewise.
7760 * gdb.base/corefile.exp: Change `else if' to `elseif', which is
7761 the correct TCL syntax.
7765 * gdb.base/opaque.exp: use runto instead of messing around with
7766 breakpoints. Simplify by using gdb_test.
7768 * gdb.base/bitfields.exp: restart between tests on netware targets
7769 because breakpoints aren't relocated after target death. Run
7770 processes to completion.
7772 * gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.
7776 * Makefile.in: Remove extra tabs that confuse some versions
7777 of "make". Use the newly built gdb to test with by default,
7778 rather than the first one in the tester's search path.
7782 * gdb.base/whatis.exp (v_signed_short_array): Fix a typo.
7784 * gdb.base/help.exp: Update expected add-symbol-file, ignore, and
7789 * lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
7791 * lib/gdb.exp (gdb_run_cmd): New function, used to start program
7793 * gdb.base/bitfields.exp: Use gdb_run_cmd to start program.
7794 * gdb.base/funcargs.exp: Likewise.
7796 * gdb.base/bitfields.exp: Simplify by using gdb_test.
7797 * gdb.base/funcargs.exp: Likewise.
7799 * lib/gdb.exp (gdb_test): if match times out, don't call fail if
7804 * gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
7805 return,signals,twice}.exp: Handle non-existant binaries
7808 * gdb.base/corefile.exp: Execute coremaker to generate core dump.
7809 * gdb.base/Makefile.in: Don't try to generate a core dump, we
7810 might testing a cross development system.
7814 * Makefile.in (RUNTEST_FOR_TARGET): Fix relative pathname, the
7815 runtest script is relative to ${srcdir}, not ${rootdir}.
7819 * gdb.base/signals.exp: Allow for optionality of breakpoint
7824 * gdb.base/{ptype.exp,ptype.c}: Add t_char_array test.
7828 * gdb.c++/cplusfuncs.cc: Include <stddef.h>, not <sys/types.h>,
7829 for size_t definition.
7830 * gdb.c++/templates.cc: Likewise
7832 * config/mt-i386-netware: New file.
7834 * gdb.base/interrupt.c: Do not test if errno == EINTR if it's not
7837 * gdb.base/Makefile.in: Added support for systems that name core
7838 files by appending "core" to the program name.
7839 * gdb.base/a1-selftest.exp: Likewise.
7843 * gdb.base/return.exp: Add comment and message for `return double'
7844 test failure on Sparc Solaris.
7848 * lib/gdb.exp (runto): Allow for optionality of breakpoint address.
7852 * gdb.c++/misc.cc: Instantiate classes to inhibit the compiler
7853 from optimizing them away.
7854 * gdb.c++/classes.exp, gdb.c++/inherit.exp: Update ptype expect
7855 patterns to include default constructors and assignment operators,
7856 to match gcc versions beyond 2.5.8. Accept any cplus demangling
7857 character in the output of the virtual base pointer.
7861 * gdb.c++/cplusfuncs.exp: Use string_to_regexp and a regular
7862 expression match in print_addr_of to avoid unintented matches.
7863 * gdb.c++/virtfunc.exp: Accept alternate ptype output of g++
7864 versions up to 2.5.8.
7868 * gdb.base/list.exp: Tweak alternate pattern for listing of an
7869 included file to run under newer versions of expect.
7870 * gdb.c++/demangle.exp: Add spaces to the expect patterns between
7871 consecutive >'s in templates to accomodate recent cplus-dem.c change.
7872 Remove xfail for the virtual table of BDDHookV.
7876 * lib/gdb.exp (string_to_regexp): Set a default result.
7877 (default_gdb_start): Fix misleading message.
7881 * config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
7882 Remove all CC, etc definitions.
7883 * config/mt-hpux: New file.
7884 * config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
7885 (CFLAGS, LDFLAGS): Define.
7886 * config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.
7888 * Makefile.in (site.exp): Don't insert host_os, etc.
7889 (just-check): Just use RUNTEST with RUNTESTFLAGS only.
7890 (distclean): Check existence of subdir.
7891 * gdb.base/configure.in (hppa*-*-hpux*): Recognize.
7892 * gdb.base/Makefile.in: General cleanup and simplification.
7893 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
7894 to build executables. Use default rule to build .o files.
7895 (EXPECT, RUNTEST, CC): Fix relative pathname.
7896 (site.exp): Don't insert host_os, etc.
7897 * gdb.base/signals.c (main): Don't call signal unless SIGALRM
7898 and/or SIGUSR1 defined.
7899 * gdb.base/watchpoint.c: Don't include stdio.h a second time.
7900 * gdb.c++/Makefile.in: General cleanup and simplification.
7901 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
7903 (EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
7907 * gdb.base/recurse.exp: Misc changes to get tests running again
7908 after Kung's changes to the watchpoint code.
7909 * gdb.base/watchpoint.exp: Likewise.
7913 * lib/gdb.exp (string_to_regexp): Convert {\} also.
7917 * config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
7918 * lib/gdb.exp (default_gdb_start): Define.
7919 * gdb.base/bitfields.exp, gdb.base/break.exp, gdb.base/exprs.exp,
7920 gdb.base/funcargs.exp, gdb.base/opaque.exp,
7921 gdb.base/printcmds.exp, gdb.base/ptype.exp, gdb.base/recurse.exp,
7922 gdb.base/scope.exp, gdb.base/setvar.exp, gdb.base/watchpoint.exp,
7923 gdb.c++/classes.exp, gdb.c++/misc.exp, gdb.c++/virtfunc.exp:
7924 Don't call gdb_target_udi in between tests.
7928 * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
7929 (which was basically just a local version of the same thing). In
7930 addition to avoiding duplication, gdb_test_exact is faster.
7931 * lib/gdb.exp (gdb_test_exact): Fix typo.
7933 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
7934 don't give an error.
7936 * gdb.base/term.exp: Call delete_breakpoints before starting.
7938 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
7943 Reorganization of the GDB Test Suite.
7945 * gdb.base: New directory, contains all the basic tests.
7946 * gdb.c++: New directory, tests specific to C++.
7947 * gdb.chill: New directory, tests specific to Chill.
7948 * gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
7949 gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
7950 gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
7951 gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
7952 into appropriate new directories (t00-t17 to base, t20-t23 to c++,
7954 * */gdbme.*: Rename to match appropriate expect scripts.
7955 * gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
7956 gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
7957 gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
7958 gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
7959 gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
7960 gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
7961 gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
7962 gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
7963 gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
7964 gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
7965 * gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
7966 gdb.c++/virtfunc.cc: New names of C++ files.
7967 * gdb.chill/chillvars.ch: New name of Chill file.
7968 * gdb.base/configure.in, gdb.c++/configure.in,
7969 gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
7970 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
7971 gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
7972 * configure.in (configdirs): Update to reflect directory changes.
7973 (target_abbrev): No longer define for any configuration.
7974 * Makefile.in: Cosmetic improvements to header comments.
7978 Various changes to gdb.t31:
7980 * Makefile.in (gdbme.o): Compile with -fspecial_UC.
7981 * gdbme.ch: Make all key-words and predefineds be upper-case.
7982 * chillvars.exp: Expect key-words and predefinds in upper-case.
7984 * chillvars.exp: Use gdb_test_exact many places.
7985 Change expected output for arrays (which now includes index labels).
7987 * pr-5020.exp, gdme.ch (module PR_5020):
7988 New test, for PR-5020.
7992 * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.
7993 * Makefile.in (CHILL_LIB): Remove bogus redundant definitions.
7997 * Makefile.in: Fix bit-rot in definitions of CHILL,
7998 CHILL_FOR_TARGET and Chill_LIB.
7999 * gdb.t31/gdbme.ch: Fix syntax of nested array tuples.
8000 * gdb.t31/Makefile.in: Add definitions for CHILLFLAGS,
8001 CHILL, and CHILL_LIB.
8005 * Revert the previous changes. Please see Rob's directory
8006 /lisa/test/rob/progressive/gdb/testsuite for these fixes.
8010 * Makefile.in, configure.in, config/mips-gdb.exp,
8011 config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
8012 config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
8013 config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
8014 gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
8015 gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
8016 gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
8017 gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
8018 gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
8019 gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
8020 gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
8021 gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
8022 gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
8023 gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
8024 gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
8025 gdb.t24/demangle.exp, lib/gdb.exp: Check in Rob's testing
8030 * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
8031 config/mt-slite, config/mt-unix, config/mt-vxworks: Add
8032 Rob's new testing fragments.
8036 * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
8037 lib/gdb.exp: Replace error proc calls with perror.
8041 * gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the
8042 version also, match on casted version strings, and match on
8043 gdb startup case where the line numbers might be messed up.
8047 * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
8048 (CFLAGS): Delete it from here.
8052 * gdb.t22/virtfunc.exp: Fix g++ ptype expected outputs.
8056 * Makefile.in (RUNTEST): Default to just "runtest".
8060 * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
8061 * gdb.t17/gdbme.c (t_func_values): Add comments about how and why
8062 the code has been restructured.
8066 * gdb.t00/default.exp (set write): Allow any number of \r and/or
8067 \n, not just one of each.
8069 * gdb.t07/gdbme.c (main): Don't take address of an array; SunOS4
8070 /bin/cc gives a warning if you do.
8074 * gdb.t24/demangle.exp: change expect pattern of
8075 __t10ListS_link1ZUiRCUiPT0
8079 * gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
8080 on local variables in recursive functions.
8082 * gdb.t07/Makefile.in: Build the new test.
8086 * gdb.t17/gdbme.c (t_func_values): Do not compare function pointers
8087 directly. Instead compare the return values from actual calls.
8091 * Makefile.in (check): Set TCL_LIBRARY for runtest.
8095 * From Peter Schauer with minor modifications.
8096 * gdb.t15/return.exp (return_tests): Handle targets where "return"
8097 stops in mid-line in the caller. Add xfail for returning a float
8098 value on X86 targets.
8102 * gdb.disasm/hppa.exp (fcmp_tests): Break up into two halves
8103 to avoid expect lossage.
8104 (fmem_LRbug_tests): Likewise.
8105 * gdb.disasm/hppa.s: Corresponding changes.
8107 * gdb.disasm/hppa.exp: Rework escape sequences and end-of-line
8108 conditions to work with latest dejagnu/expect.
8110 * gdb.t15/funcargs.exp (finish from indirect call): No longer
8111 expected to fail on the PA.
8112 (backtrace in call with trampolines): Explicitly require main
8113 to be frame #1 (no trampolines should show up in backtrace).
8115 * gdb.t00/default.exp: Use "exp_continue" rather than obsolete
8117 * gdb.t06/break.exp: Likewise.
8118 * gdb.t07/watchpoint.exp: Likewise.
8119 * gdb.t13/bitfields.exp: Likewise.
8120 * gdb.t15/{funcargs,return}.exp: Likewise.
8121 * gdb.stabs/weird.exp: Likewise.
8122 * config/{mips,udi}-gdb.exp: Likewise.
8124 * hppa.sed: Enclose comments within a sed command to avoid
8125 losing with the old OSF1 sed.
8129 * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs for
8131 * gdb.t06/signals.exp: Add clear_xfail for sequent dynix.
8132 * gdb.t15/funcargs.exp: Conditionally step again to really
8133 finish from marker_call_with_trampolines. Handle the case where
8134 the first step from within call_with_trampolines already steps
8136 * gdb.t15/gdbme.c: Add comment to closing brace of
8137 call_with_trampolines for funcargs.exp.
8141 * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
8146 * gdb.t07/gdbme.c: More code for watchpoint testing.
8148 * gdb.t07/watchpoint.exp: Accept both "Watchpoint" and
8149 "Hardware watchpoint" throughout file.
8150 (test_watchpoint_triggered_in_syscall): New test.
8151 (test_complex_watchpoint): New test.
8155 * gdbme.c (call_with_trampolines): New function to try and step
8156 into. Tests trampoline problems on the PA.
8158 * funcargs.exp (localvars_in_indirect_call): No longer expect
8159 stepping into indirect call to fail on PAs.
8160 (test_stepping_over_trampolines): New test.
8164 * TODO: Add suggestions for static member function tests, and
8169 * TODO: Add suggestions for "p/a" tests.
8171 * lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
8172 (default_gdb_exit): Replace all the hair with sending "quit" to
8173 the process with a simple close.
8177 * TODO: Add suggestions for shared library tests.
8181 * TODO: Add suggestions for x/s tests.
8185 * gdb.t00/help.exp: Replace most of docstrings for "tbreak",
8186 "enable once", and "enable breakpoints once" with ".*".
8190 * TODO: Add suggestions about structure passing tests.
8194 * gdb.t03/gdbme.c: gcc version 1 puts out the wrong stabs for
8195 the primary1 test, use work around if __GNUC__ < 2.
8196 * gdb.t06/signals.c: Add comments for signals.exp pattern matching.
8197 * gdb.t06/signals.exp: Add XFAILs for i386 bsd and vax ultrix.
8198 Test for bad output rather than waiting for timeout. Issue
8199 second continue only if first continue failed.
8203 * gdb.t21/cplusfuncs.exp (test_paddr_operator_functions): Do
8204 operator[] test with gdb_test because the old code didn't seem to
8205 be getting the quoting right with the new dejagnu.
8209 * lib/gdb.exp: Set GDB to a fresh gdb if there is one, else use
8211 * Makefile.in: Use a fresh expect if there is one, use runtest
8212 from the src tree if there is one.
8216 * gdb.t06/break.exp (test_next_with_recursion): Remove xfail for
8217 next over recursive call. Revise the tests from that point on
8218 (which had been skipped) to match GDB's actual (correct) output.
8220 * gdb.t07/watchpoint.exp (test_stepping): Remove xfail for bug
8221 with next over a breakpoint whose condition is false.
8223 * gdb.t00/help.exp: Comment out "help set print" tests just like
8224 (and for same reason as) "help set" test.
8228 * gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
8229 * gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
8233 * gdb.t06/break.exp (test_next_with_recursion): Remove no longer
8234 necessary gdb_target_udi.
8236 * gdb.t03/ptype.exp: For UDI, skip tests which call malloc.
8238 * gdb.t02/whatis.exp, gdb.t03/ptype.exp: Remove xfails for PRs
8239 1838 and 2417; they are fixed.
8241 * gdb.t02/whatis.exp (v_char_array, v_signed_char_array),
8242 gdb.t03/ptype.exp (ptype structure, ptype union):
8243 Remove xfails; the test is looser than when the xfails were added.
8245 * gdb.t00/{help.exp,default.exp}: Don't test "target remote" on UDI.
8246 * gdb.t00/help.exp: Don't expect remote to be in "help target" output.
8248 * gdb.t01/run.exp: Only run shell test if isnative.
8250 * config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
8251 since "run" automatically loads if necessary. Call gdb_target_udi
8252 after the "file" since "file" kills any execution target.
8254 * config/udi-gdb.exp (gdb_start): Don't send "set args main" to
8255 GDB. GDB doesn't work that way (not anymore at least) on UDI.
8256 * gdb.t01/run.exp, gdb.t06/break.exp: Don't pass extra first
8261 * gdb.t17/interrupt.c: If we get EINTR, don't print an error message.
8263 * gdb.t17/callfuncs.exp: Add xfails for rs6000.
8267 * gdb.t24/demangle.exp: Re-write demangle to just call gdb_test,
8268 properly quoting regexps. This makes the second argument to
8269 demangle a fixed string, which matches the callers, instead of a
8270 shell-style pattern which is what the previous implementation
8271 used. Update some of the callers.
8275 * gdb.disasm/hppa.s (comib_tests): Add missing instruction.
8276 (comib_nullified_tests): Fix typo.
8277 * gdb.disasm/hppa.exp (all comb tests): Fix thinkos in expect
8278 strings. No longer expected to fail.
8280 * gdb.disasm/hppa.s (addib_tests): Fix typo.
8281 * gdb.disasm/hppa.exp (all addb tests): Fix thinkos in expect
8282 strings. No longer expected to fail.
8284 * gdb.disasm/hppa.exp (fmpy_addsub_tests): Fix typo in expect
8285 string. No longer expected to fail.
8289 * gdb.disasm/hppa.exp (fcmp_tests): Fix thinko in expect string.
8290 No longer expected to fail.
8292 * gdb.disasm/hppa.exp (xmpyu_tests): Fix buglet in expect
8293 string. No longer expected to fail.
8297 * gdb.t24/demangle.exp: Remove a bunch more tests which differ
8298 only in the names (I probably got most of them). I was even
8299 generous with some which differed in underscores in names, and
8300 probably missed a few, and I *still* was able to remove almost a
8301 third of the file with almost no impact on testsuite coverage.
8305 * gdb.t00/default.exp: Match udi_attach error message as well as
8306 the one from child_attach.
8308 * gdb.t00/default.exp: Use "." instead of "?" to match a question mark.
8310 * gdb.stabs/weird.exp: Remove xfail for const70; just fixed in GDB.
8312 * gdb.stabs/weird.def (bad_neg0type): Size of this type is 16, not 8.
8313 * gdb.stabs/weird.exp: Remove xfail for "p bad_neg0"; this fixes it.
8315 * Move test with enums and partial symbols back to
8316 gdb.t03/{ptype.exp,gdbme.c} from gdb.stabs/{weird.def,weird.exp}.
8317 Reverts the change of 26 May 93. Per today's change to
8318 stabs.texinfo, the behavior that weird.exp was expecting was
8319 unreasonable; what is important is that the compiler+gdb get
8320 things right, which happens with a recent gcc. Also fix the test
8321 to deal with native compilers which put out the stab gdb can't
8326 * gdb.t24/demangle.exp: Remove a bunch of tests which differ only
8327 in the names. The main thing these accomplish is to slow things down.
8328 Many more such duplicates surely remain.
8330 * gdb.t00/help.exp: Comment out "help support" test just like
8331 (and for same reason as) "help set" test.
8335 * gdb.t06/break.exp: Remove setup_xfails for
8336 sparc-sun-solaris2.*, these tests now pass with latest gcc and gdb.
8337 * gdb.t20/inherit.exp (test_ptype_si): Update warning message
8338 about known bug in gcc to include up through 2.5.8.
8339 * gdb.t20/inherit.exp (test_ptype_vi): Accept "_vb." as well as
8341 * gdb.t21/cplusfuncs.exp (test_lookup_operator_functions):
8342 Remove setup_xfails for sparc-sun-solaris2.*, these tests now pass
8343 with latest gcc and gdb.
8344 * gdb.t22/virtfunc.exp (test_ptype_of_classes): Accept "_vb." as
8349 * configure.in (hppa*-*-*): Also configure and build stabs-only
8354 * gdb.t10/hppa.mt: A makefile fragment for the PA.
8355 * gdb.t10/configure.in (hppa*-*-*): Use it.
8359 * gdb.t09/corefile: Increase timeout when spawning gdb explicitly.
8363 * gdb.t06/signals.exp: Handle blocked SIGTRAP on sun3 for bash
8364 versions prior to 1.13.5.
8368 * gdb.t00/default.exp (show prompt): In FAIL case, only match if
8369 the prompt is at the start of a line.
8373 * gdb.disasm/hppa.s: Add new tests for sfu and copr instructions.
8374 Enable "diag" instruction. Delete copr from fpu_misc_tests, it's
8375 in the copr tests now.
8376 * gdb.disasm/hppa.exp: Run new sfu and copr tests. Do not expect
8377 copr in the fpu_misc tests anymore. fpu_misc tests are no longer
8382 * gdb.t00/teststrategy.exp, gdb.t07/watchpoint.exp,
8383 gdb.t31/chillvars.exp, lib/gdb.exp:
8384 Tweak to run under either version of expect.
8385 * lib/gdb.exp (default_gdb_exit): Remove "catch" statement.
8386 * gdb.t00/teststrategy.exp: Use isnative and verbose procedures.
8387 * gdb.t11/list.exp: Remove extraneous whitespace.
8391 * gdb.t16/printcmds.exp (test_print_strings): Accept
8392 "(unsigned char *) " before the string.
8394 * TODO: Add notes about printing of fancy types and GDB expressions.
8398 * Makefile.in: Pass LDFLAGS and LIBS to sub-makes.
8399 * gdb.t06/configure.in: Don't try to compile signals test program
8400 if doing mips-idt-ecoff.
8404 * Most .exp files: Tweak to run under either version of expect.
8408 * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
8409 xfails; I'm not sure why they are failing, but not because of PR 1806.
8413 * config/unix-gdb.exp: Remove gdb_unload cause it's already
8414 defined in lib/gdb.exp.
8418 * gdb.t07/watchpoint.exp: Clear xfail for calling function with
8419 watchpoint enabled on mips, CALL_DUMMY_BREAKPOINT_OFFSET got defined.
8420 * gdb.t20/gdbme.cc, gdb.t21/gdbme.cc: Conversion operator functions
8421 have to be typeless.
8425 * TODO: Add suggestion for copyright year test.
8429 * configure.in (*-*-lynxos*): Add stabs tests.
8433 * gdb.stabs/hppa.sed: Only lables should ever start in column zero,
8434 so insert a tab before any assembler directive in column zero.
8436 * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
8438 * gdb.disasm/hppa.s (fpu_memory_indexing_tests): Add FP quadword
8440 (fpu_short_memory_tests): Likewise.
8444 * gdb.stabs/ecoff.mt: Delete alpha specific if block, fix typo.
8445 * gdb.stabs/ecoff.sed: Escape inserted blanks with backslashes, embed
8446 .stabs directives in comments.
8450 * TODO: New file, describing tests we could write.
8451 * gdb.t09/corefile.exp: Move description of tests to write to TODO.
8455 * gdb.t06/signals.exp: Add kludge to force re-sync.
8457 * gdb.t00/teststrategy.exp: If we accidently send the "maint dump-me"
8458 to xgdb instead of gdb, get out of gdb.
8462 * lib/gdb.exp: Make GDB and GDBFLAGS global so the scoping work
8467 * gdb.stabs/hppa.mt: A makefile fragment for the PA.
8468 * gdb.stabs/configure.in (hppa*-*-*): Use it.
8469 * gdb.stabs/hppa.sed: New sed script for the PA.
8473 * gdb.stabs: Re-write weird.def and configuration to use sed
8474 instead of cpp. sed is portable and POSIX; cpp is neither.
8478 * gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed.
8482 * gdb.t20/gdbme.cc: Add comment about pmi being optimized out.
8486 * gdb.stabs/weird.exp, gdb.t22/virtfunc.exp: Accept "_vb." as well as
8488 * gdb.t00/teststrategy.exp: Add xfail for RS/6000.
8489 * gdb.t03/ptype.exp: Add comments and messages about FAILs with xlc.
8493 * lib/gdb.exp: Comment out code which depends on non-existent
8494 `transform' procedure.
8498 * lib/gdb.exp (default_gdb_exit): Remove `catch "close"'.
8499 * lib/gdb.exp: Transform tool name.
8500 * gdb.t*/*.exp: Change error to perror so it works with DejaGnu
8501 1.1's new error handling system.
8505 * Makefile.in, gdb.t2*/Makefile.in: Add -O to CXXFLAGS.
8509 * gdb.t00/default.exp: Avoid tests with a lot of .* in them.
8510 They made pattern matching so slow that timeouts happened on
8511 heavily loaded systems. Now any output from "show print" which
8512 gets us back to the GDB prompt is a PASS.
8514 Mon Oct 25 14:36:50 1993 Stu Grossman (grossman at cygnus.com)
8516 * gdb.disasm/hppa.mt: Use $(srcdir) in hppa.o make rule.
8520 * gdb.t06/signals.exp: Skip whole file with xfail for HPPA.
8522 * gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
8523 It is not from PR 3220.
8527 * gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
8528 just started failing because they depended on the order the
8529 subcommands are presented, or exact docstring text. This kind of
8530 test is a pain and has minimal benefit.
8534 * gdb.t09/corefile.exp: At end of test, use "core" command with
8537 Wed Oct 20 08:56:02 1993 Stu Grossman (grossman at cygnus.com)
8539 * gdb.t{01 02 03 04 05 06 07 08 09 10 11 12 13 15 16
8540 17}/Makefile.in: Make it possible to run the testsuite with Sun
8541 make and CC = cross gcc by adding explicit build rules for .o
8546 * gdb.t15/funcargs.exp: Don't put comments on same line as
8547 setup_xfail (@#$*%& tcl braindamage!).
8551 * gdb.disasm/hppa.exp: Use $objdir/$subdir/$binfile not just $binfile.
8555 * gdb.t20/classes.exp: 'const xxx &' becomes 'xxx const &'.
8556 * gdb.t20/inherit.exp: remove three dumplicate entries.
8560 * gdb.t06/break.exp: For "next over recursive call", fail on any
8561 incorrect output, not just on "factorial (value=2)".
8565 * gdb.t12/scope.exp: Remove xfails, filename::var syntax should be
8566 working now. Add an xfail if accesing a bss variable causes
8567 a memory error if the target is not yet run.
8571 * gdb.t24/demangle.exp: Clean up spacing (2 strings), inclusion of
8572 constructor name (2 string), name of _GLOBAL_ demangling (2 strings),
8573 name of __st* demangling (2 strings). Did Kung really get the
8574 more than 95 others right without testing them?
8578 * gdb.t24/demangle.exp: clean up XFAILS, more than 100
8582 * configure.in (configdirs): Add gdb.disasm
8583 * gdb.disasm: New directory for GDB disassembler tests.
8584 * gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.
8588 * gdb.t00/help.exp: Don't test "help set".
8590 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Remove all xfails
8591 from within expect statements. None of these happen anymore and
8592 they cause regressions to be silently unnoticed.
8594 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Add notes (in failure
8595 messages) about known failures with gcc cygnus-2.4.5-930417.
8597 * gdb.t02/Makefile.in, gdb.t08/Makefile.in: Make all depend on
8598 comp-info.exp so it gets built if it doesn't exist.
8600 * gdb.t13/{Makefile.in,bitfields.exp}: Remove comp-info.exp stuff;
8601 it is no longer used.
8602 * gdb.t13/comp-info.c: Removed.
8606 * gdb.t06/signals.exp: Add xfail for sun3.
8610 * gdb.t17/interrupt.exp: Add xfail for Irix (currently not really
8611 relevant because ^C doesn't get sent but failure can be reproduced
8616 * gdb.stabs/alpha.mt: New configuration file for alpha.
8617 * gdb.stabs/configure.in: Use it.
8618 * gdb.stabs/ecoff.mt, weird-ecoff.sed: Change sed script to enable
8619 sharing with alpha.mt, redefine long to word via preprocessor.
8620 * gdb.stabs/weird.def: Conditionally adapt storage layout of v_comb
8622 * gdb.stabs/weird.exp: Handle compilation of weird.s by alpha
8624 * gdb.t00/teststrategy.exp: Change expect string so that we
8625 consume the `(xgdb)' from the command echo and from the gdb prompt.
8626 * gdb.t05/expr.exp: xfail "print unsigned int == (~0)" on the alpha.
8627 gdb currently compares all values as long, so this failure probably
8628 applies to any configuration where LONGEST is bigger than a target int.
8629 * gdb.t08/comp-info.c: New file to determine if gdbme is compiled
8631 * gdb.t08/Makefile.in, opaque.exp: Use it. Alpha native cc is unable
8632 to handle opaque pointers, gcc is.
8633 * gdb.t21/gdbme.cc, gdb.t23/gdbme.cc: operator new takes a size_t
8634 as first argument. Include <sys/types.h> and change all operator
8635 new definitions to use size_t.
8636 * gdb.t21/cplusfuncs.exp: Handle changes in output for operator new
8637 now that we use size_t.
8641 * gdb.t03/ptype.exp, gdb.t15/printcmds.exp: When constructing
8642 a long or float array cast all array members to the same type.
8643 * gdb.t04/setvar.exp: Handle the decimal output of an unsigned long
8645 * gdb.t07/watchpoint.exp: Add finish and until variations encountered
8647 * gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Add xfails for alpha.
8651 * gdb.t24 (demangle.exp): Constructors of templates have names like
8652 vector<int>::vector(int) not vector<int>::vector<int>(int). See
8653 section 14.6 of the ARM.
8655 * gdb.t24 (demangle.exp): Remove a whole bunch of tests of the form
8656 "_vt$MoveCmd"; these differ only in name from "_vt$foo", so they
8657 accomplish little and slow down the testsuite.
8659 * gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
8660 Accept spaces various places.
8664 * gdb.t07/watchpoint.exp: On sparc, clear xfail for calling function
8665 with watchpoint enabled.
8667 * Makefile.in: Remove definition of CC and remove the second
8668 definition of CXX (the "CXX = gcc" one remains). These definitions
8669 were causing backquotes to be expanded within backquotes, which
8674 * gdb.t17/callfuncs.exp: Add "return 0" to end.
8678 * gdb.stabs/ecoff.mt: Remove STABSCC hack.
8679 * gdb.stabs/weird.exp: Handle the case where weird.o is compiled
8680 by mips cc and contains no stabs entries.
8684 * config/vx-gdb.exp: Use fake device to load files rather than
8686 * lib/gdb.exp: New proc to do "file" command.
8687 * config/unix-gdb.exp: Use new "file" proc.
8691 * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
8692 Rework board rebooting slightly.
8693 (gdb_exit): Don't exit from the remote shell; there isn't one.
8694 * gdb.stabs/weird.exp: If a program is being debugged already,
8696 * gdb.t04/setvar.exp: Stop and restart gdb.
8697 * gdb.t05/expr.exp: Likewise.
8698 * gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
8699 restart gdb and reload the program.
8700 * gdb.t08/opaque.exp: Likewise.
8701 * gdb.t12/scope.exp: Likewise.
8702 * gdb.t13/bitfields.exp: Likewise.
8703 * gdb.t15/funcargs.exp: Likewise.
8704 * gdb.t20/classes.exp: Likewise.
8705 * gdb.t03/ptype.exp: Increase timeout.
8706 * gdb.t16/printcmds.exp (test_print_string_constants,
8707 test_print_array_constants): Likewise.
8708 * gdb.t17/callfuncs.exp (do_function_calls): Likewise.
8709 * gdb.t20/classes.exp (do_tests): Likewise.
8710 * gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.
8714 * gdb.stabs: Renamed *wierd* to *weird*.
8718 * gdb.t13/bitfields.exp: Test for bad output rather than waiting
8719 for timeout. Add "known gcc 2.4.5 bug" to failure message.
8723 * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
8724 (do_tests): Remove xfail for whatis on one_var and two_var.
8728 * Makefile.in: Made cross building work better by adding
8729 {RUNTEST,CC}_FOR_TARGET and using TARGET_FLAGS_TO_PASS.
8733 * gdb.t15/{return.c,return.exp,Makefile.in}:
8734 New test, currently commented out.
8738 * config/udi-gdb.exp: gdb_exit now kills any isstip processes
8739 still running and removes the leftover named socket so GDb can do
8744 * gdb.t01/run.exp: Add match for VxWorks, cause I/O comes out the
8746 * config/mt-*: Added default values for RUNTEST and RUNTESTFLAGS so
8747 cross testing works better with "make check"
8748 * config/unix-gdb: Use default procedures for exit and version.
8749 * config/vx-gdb.exp: Cleaned up and massaged back to working order
8750 with the newest VxWorks.
8754 * gdb.t20/classes.exp: For "ptype class Base1", continue to accept
8757 * gdb.t22/virtfunc.exp: If it prints `struct' (not `class') with a
8758 name (e.g. devo gdb with gcc 2.4.5), it is still a pass.
8760 * gdb.t10/crossload.exp: Skip whole file (for now, until we fix it).
8762 * config/unix-gdb.exp: Remove this version of gdb_exit
8763 * lib/gdb.exp: Merge in all the crap from config/unix-gdb.exp.
8764 Rob says he'll look at it when he gets back to testing boards.
8768 * gdb.t22/virtfunc.exp: Accept missing struct/class names as
8769 an expected fail for certain ptype commands.
8771 * gdb.t20/classes.exp: Update expected results of "ptype class
8772 Base1" to account for the constructor that now appears in the type.
8776 * configure.in (configdirs): Restore gdb.t04, which mysteriously
8777 disappeared from list.
8778 * config/{udi-gdb.exp, gdb-unix.exp}: Replace calls to obsolete
8779 "alldone" proc with call to cleanup and exit.
8780 * {gdb.t01/run.exp, gdb.t01/term.exp, gdb.t02/whatis.exp,
8781 gdb.t03/ptype.exp, gdb.t04/setvar.exp, gdb.t05/expr.exp,
8782 gdb.t06/break.exp, gdb.t07/watchpoint.exp, gdb.t08/opaque.exp,
8783 gdb.t09/corefile.exp, gdb.t10/crossload.exp, gdb.t11/list.exp,
8784 gdb.t12/scope.exp, gdb.t13/bitfields.exp}: Replace calls to
8785 "alldone" proc with simple returns that suppress remaining
8786 tests. The alldone proc went away many months ago.
8790 * gdb.t10/nodebug.exp: Comment out "maint print msymbols" tests.
8792 * gdb.t12/gdbme0.c (localscopes, autovars): Modify to foil gcc -O.
8796 * gdb.t15/funcargs.exp: Allow arguments for main in backtraces
8797 as vax gdb will display them.
8801 * gdb.t20/gdbme.cc: Do some calculation with v.x, to confound
8804 * scope.exp: Change "bad value for localval" messages so each one
8807 * config/unix-gdb.exp (gdb_exit): Move info on this vs.
8808 lib/gdb.exp (gdb_exit) from ChangeLog to comments.
8810 * gdb.t06/signals.exp: Skip the whole file with xfail for delta68.
8814 * gdb.t00/teststrategy.exp: Deal with it if cmdsize = 1 line
8815 doesn't exist (due to optimization).
8819 * gdb.stabs/wierd.exp: Deal with it if echo of "file" command
8820 contains \r because the filename is long.
8822 * gdb.t06/signals.exp: Revise comments regarding "'next' behaved as
8823 'continue'" bug, and change xfail back to i*86-univel-sysv4*.
8827 * gdb.t00/help.exp, gdb.t02/whatis.exp, gdb.t07/watchpoint.exp,
8828 gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Update for vax running
8830 * gdb.t02/whatis.exp: Use procedure to setup xfails on long versus
8832 * gdb.t08/opaque.exp: Use procedure to setup xfails for opaque tests.
8836 * Makefile.in (distclean): Remove *.log *.plog *.sum *.psum site.*.
8838 * gdb.t17/interrupt.exp: Fix 'missing Continuing' case so pattern
8839 to match does not match the passing case but still matches the
8844 * Makefile.in (distclean): Remove *.plog *.sum *.psum site.*.
8848 * lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
8849 to here. Fix 'Quit anyway.*?' bug (? is a regexp metacharacter).
8850 * config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
8851 Remove various versions of gdb_exit.
8852 * config/vx-gdb.exp: Remove quit_vxgdb, change a caller to call
8854 * config/unix-gdb.exp: gdb_exit remains here, and should override
8855 the generic version, since it's doing a lot of wierd stuff that
8856 the other versions aren't. FIXME, fold it in, or abandon this
8861 * gdb.t24/demangle.exp: Add tests for PR 3220.
8865 * gdb.t24/demangle.exp: Add lucid test for __vtbl__3foo__vt_cc_main_.
8869 * gdb.t07/watchpoint.exp: Clear xfail with "i*86-*-*", not just
8870 "i386-*-*". Works for i486 as well.
8872 * gdb.t06/signals.exp: Rework code that recognizes known SVR4
8873 bug, and expand domain of xfail to all SVR4 systems, since the
8874 actual problem is likely to be in generic SVR4 /proc support.
8878 * config/unix-gdb.exp (gdb_load): Add eof to expect statement.
8882 * gdb.t17/interrupt.exp: Set up xfail for *-*-sysv4*, in chain of
8883 xfails for other systems. Match a missing 'Continuing.' as an
8884 explicit fail for i*86-*-sysv4*, so it doesn't hose other tests.
8886 * gdb.t20 {classes.exp, inherit.exp, misc.exp}, gdb.t21/cplusfuncs.exp,
8887 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t31/chillvars.exp:
8888 Only issue warning for missing executables if -all option is used.
8890 * gdb.stabs/wierd.exp: Only issue warning for missing wierd.o
8891 file if -all option is used. It's like an unpredictable XFAIL.
8895 * gdb.t15/funcargs.exp: Add comments that hppa xfails are only
8896 for dynamically linked binaries.
8898 * gdb.t10/crossload.exp: Add `set gnutarget auto' at end of tests.
8902 * gdb.t20/inherit.exp: Change message for "print tagless struct"
8903 to state that this is a known bug in old versions of g++.
8907 * gdb.t17/interrupt.exp: Add xfail for 386 bsd. Accept echoed newline
8908 while waiting for `Continuing'.
8912 * gdb.t10/nodebug.exp: Expect to find local/global minimal symbols
8913 in text, data, and bss.
8914 * gdb.t10/nodebug.c: Add local and global test variables for
8915 initialized and uninitialized data.
8919 * config/unix-gdb.exp (gdb_exit): Add "wait".
8923 * gdb.t06/signals.exp: xfail the continue from the handler for all
8926 * gdb.t07/watchpoint.exp: clear_xfail for i386 when calling a
8927 function with watchpoints enabled, the i386 call dummy starts with
8930 * gdb.t00/teststrategy.exp, gdb.t09/Makefile.in: Handle the way
8931 386 bsd names its corefiles.
8935 * gdb.t10/Makefile.in (nodebug.o): Don't use "-c -o", many
8936 compilers don't grok it.
8937 * gdb.t16/gdbme.c (ctable1): Initialize unsigned char array
8938 with small octal ints rather than character constants, which
8939 are signed and might not fit if first promoted to int.
8943 * gdb.t09/Makefile.in (clean): Remove corefile.
8947 * gdb.t07/watchpoint.exp: Add missing `$prompt $'.
8952 * gdb.t06/signals.exp: Change xfail from "*-*-*" to be only for
8953 NO_SINGLE_STEP machines. Fix comment about its cause. Uncomment
8954 the `continue' test right after it (also xfailed if NO_SINGLE_STEP).
8958 * gdb.t17/interrupt.exp: Add xfail for hppa.
8962 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t08/opaque.exp,
8963 gdb.t09/corefile.exp: Cleanup xfails for fixed mips bugs.
8964 * gdb.t13/bitfields.exp, gdbme.c: Examine a variable in the inferior
8965 to determine signed-ness of bitfields and use the result to setup
8967 * gdb.t15/gdbme.c: Add comments to the two indirect call0a lines.
8968 * gdb.t15/funcargs.exp: Use them to step until the second indirect
8969 call line is reached if necessary.
8973 * gdb.stabs/wierd.exp: New test, for nameless baseclasses.
8977 * gdb.t06/break.exp: Also test `clear' command.
8981 * gdb.t00/teststrategy.exp: Remove extra quote.
8983 * gdb.t07/watchpoint.exp: Change xfail for calling function with
8984 watchpoint enabled to be for all non-68k machines.
8986 * gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test.
8990 * gdb.stabs/configure.in: If configured -with-gnu-as for mips-*-*
8991 targets use aout.mt instead of ecoff.mt as gas understands
8992 standard aout format.
8996 * lib/gdb.exp (runto): Don't insist that function we are running to
8997 was compiled with -g.
8999 * gdb.t10/{nodebug.{c,exp},Makefile.in}: New test.
9001 * gdb.t17/interrupt.exp: Before sending ^C, give the inferior time
9002 to get back into the read system call.
9003 Accept leading newline in case where we woke it up.
9007 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
9008 to make the stabs test work on ecoff systems using gcc and -with-stabs.
9009 * gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}: Modify to
9010 enable ecoff configuration.
9014 * gdb.t15/funcargs.exp (localvars_in_indirect_call): New test.
9018 * gdb.t16/printcmds.exp: Add another printf test.
9022 * configure.in: If configured -with-stabs on any target, add
9023 stabsdirs to configdirs.
9027 * gdb.t16/printcmds.exp: Change printf "%f\n" to printf "%f is
9028 fun" so pattern does not match the command itself.
9032 * gdb.t15/{gdbme.c,funcargs.exp}: Test for alloca-influenced frames.
9036 * gdb.t17/interrupt.exp: Test for more things.
9040 * gdb.t07/watchpoint.exp: In until test, deal with the way the DEC
9041 compiler arranges the code and line numbers.
9043 * gdb.t17/interrupt.exp: Don't send \n after ^C.
9047 * gdb.t00/help.exp: Increase expect input buffer size.
9051 * gdb.t06/signals.exp: Remove sparc xfail; bug fixed.
9053 * gdb.t07/watchpoint.exp: Add xfail for hppa.
9055 * gdb.t17/{gdbme.c,callfuncs.exp}: Add sum10 function, to test pa bug.
9057 * gdb.t06/signals.exp: At "p func1 ()" test, check for breakpoint
9058 [0-9]*, not just [0-9].
9062 * gdb.t20/{gdbme.cc,classes.exp}: Add xfail for gdb/2972.
9064 * gdb.t2*: Set CXXFLAGS, not CFLAGS, since that's what we use.
9068 * gdb.t00/help.exp: Replace most of docstring for "continue" with .*.
9072 * gdb.t06/signals.c: Add xfails for sun3.
9074 * gdb.t07/watchpoint.exp: Comment out xfail for fixed bug 1836.
9076 * gdb.t07/{gdbme.c,watchpoint.exp}: Add test for 2597. Also add
9077 test_stepping tests.
9081 * gdb.t{06,17}/Makefile.in (clean): Remove all executables.
9083 * gdb.t17/{interrupt.{c,exp},Makefile.in}: New test for solaris bug.
9085 * gdb.t06/twice.exp, Makefile.in: Just use an include of twice.c
9086 rather than actually putting it through cpp twice.
9088 * gdb.t06/signals.exp: Add xfails for unixware and rs6000.
9092 * config/mips-gdb.exp (gdb_exit): Removed close statement which is
9097 * gdb.t06/signals.exp: Add test for sparc bug with do_save_insn.
9099 * gdb.t20/{classes,inherit}.exp: If a class which doesn't use any
9100 C++ features prints as "struct", make it a pass, not an xfail.
9104 * gdb.t22/virtfunc.exp: Remove a bunch of xfails.
9105 Don't require VA to print as "class" rather than "struct".
9109 * gdb.t06/twice.exp: Don't care about the file name GDB prints.
9113 * gdb.t{02,13}/comp-info.c, gdb.t06/twice.exp: Add "return 0" to end.
9117 * gdb.t12/scope.exp: Remove xfail for parameter printing in wrong
9122 * gdb.t16/printcmds.exp: Add printf tests.
9124 * gdb.t06/{twice.{c,exp},Makefile.in}: New test.
9126 * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too.
9130 * gdb.t20/classes.exp: Add clear_xfail's before printing summary
9131 pass counts, to counteract any existing or future setup_xfails.
9135 * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
9136 {BEGIN,END}_COMMON for common block instead of STAB.
9137 * gdb.stabs/wierd.exp: Add xfail for rs6000.
9139 * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
9140 intp_var should be N_GSYM not N_LSYM.
9141 wierd-aout.S: Use a label for the value of the N_SO.
9142 wierd.def: Remove all backslashes.
9143 wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
9147 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
9148 get the expected next to inheritance3.
9152 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
9153 now that gcc-2.4 gets it right.
9157 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test.
9159 * gdb.t{02,13}/{Makefile.in,gdbme.c,comp-info.c}: New way of
9160 generating comp-info.exp which works for cross-compilation.
9164 * gdb.t11/list.exp: For SVR4 xfails, match "*-*-sysv4*", not
9169 * gdb.t01/run.exp: Start with a fresh gdb.
9170 * gdb.t11/list.exp: For SVR4 xfails, match on all versions of
9175 * {gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07,
9176 gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15,
9177 gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t30}/
9178 Makefile.in (distclean, realclean): Remove gdbme.c from list of
9183 * gdb.t24/demangle.exp (test_gnu_style_demangling): Add some new
9184 test cases from bug reports.
9188 * gdb.t06/break.exp: Add xfails for sparc-sun-solaris2.*.
9189 * gdb.t12/scope.exp: Add clear_xfails at appropriate places to
9190 avoid spurious xfails.
9191 * gdb.t20/classes.exp: Add xfails for longstanding C++ problems.
9192 * gdb.t21/cplusfuncs.exp: Add xfails for sparc-sun-solaris2.*.
9193 * gdb.t22/virtfunc.exp: Add xfails for longstanding C++ problems.
9197 * gdb.t00/teststrategy.exp: Rework to provide more useful
9198 description of each test, fix problem with systems that define
9199 ALIGN_STACK_ON_STARTUP code, other misc cleanups.
9200 * gdb.t06/break.exp (test_next_with_recursion): Fix expected
9201 results for "next over recursive call" so timeouts aren't taken
9206 * gdb.t12/scope.exp: Test printing of variables before run.
9208 * gdb.t12/{gdbme0.c,scope.exp}: Test for bug where parameters are
9209 printed in wrong order due to sorting.
9213 * gdb.t00/teststrategy.exp: Fix expected results for printing
9214 user entered string constant. Is array of char, prints with no
9217 * gdb.t00/{default.exp, help.exp}: Account for changes to radix
9219 * gdb.t16/gdbme.c: Add and use struct containing arrays of char.
9220 * gdb.t16/printcmds.exp: Fix all lines that match "unsigned char *".
9221 * gdb.t16/printcmds.exp (test_print_char_arrays): Test printing
9222 of struct of char arrays.
9223 * gdb.t00/radix.exp: New tests for radix commands.
9227 * gdb.t16/printcmd.exp: Print a variable before running program
9228 (with xfail for AIX).
9232 * gdb.t06/{signals.exp,signals.c,Makefile.in}: New test.
9234 * gdb.t16/printcmd.exp: Don't print variables before running program.
9236 * gdb.t06/break.exp: Don't require envp argument to main.
9238 * gdb.t0{2,3,4,5}/gdbme.c [_AIX]: Use signed keyword.
9240 * gdb.t02/whatis.exp, gdb.t11/list.exp:
9241 Add xfails for rs6000.
9243 * gdb.t02/whatis.exp: Change other tests not to re-test something
9246 * gdb.t{03,15,16}/gdbme.c: Reference all variables and make sure
9247 each type used has a variable of that type.
9251 * gdb.t20/{inherit.exp,gdbme.cc}: Test tagless structure.
9253 Fri Jun 4 11:07:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9255 * configure.in: change srctrigger to be a file, not a directory
9259 * configure.in (mips-idt-ecoff*): Added trailing '*'.
9261 * gdb.t11/list.exp: Fixed a couple of typos.
9265 * gdb.t00 (teststrategy.exp): Remove notice about PR 1823. Bug
9266 is fixed and PR is closed.
9267 * gdb.t16 (gdbme.c): Add simple test string variable.
9268 * gdb.t16 (printcmds.exp): Add tests with simple test string
9269 variable, primarily for boundaries on "set print elements".
9273 * gdb.stabs/wierd.exp: Remove xfail for printing big integer.
9274 Make leading 0's optional and don't expect a tab in the middle
9277 * gdb.t00/teststrategy.exp: Remove xgdb before trying the copy.
9279 * gdb.stabs/wierd.def: Type attributes must be preceded by number=.
9280 * gdb.stabs/wierd.exp: Remove xfails for type attributes. Also
9281 don't end command passed to gdb_test with newline.
9283 * gdb.t13/{Makefile.in,gdbme.c,bitfields.exp}: If we #defined the
9284 signed keyword away, don't expect signed bitfields to be signed.
9286 * gdb.t13/bitfields.exp (bitfield containment): Accept the fields
9287 printing with only as many 1's as are in the field as well as printing
9288 with 32 1's (see comment).
9292 * gdb.t00/default.exp: Start with a fresh gdb.
9293 * configure.in (configdirs): Remove gdb.t31 until the chill
9294 compiler works again. It no longer is able to find chillrt0
9295 since it isn't in libchill.a anymore.
9296 * gdb.stabs/wierd.exp: Rewrite to properly handling a missing
9297 wierd.o, make more modular.
9298 * gdb.stabs/wierd.def (bad_neg0type, bad_neg0const): Remove
9299 spurious newlines that caused problems.
9303 * Move test with enums and partial symbols from gdb.t03/ptype.exp
9304 to gdb.stabs/wierd.exp since GCC has worked around the bug.
9305 gdb.stabs/wierd.{exp,def}: Many new tests.
9307 * gdb.t00/default.exp: update info line for new message.
9309 * gdb.t02/{whatis.exp,gdbme.c}:
9310 Test that "char *" doesn't print as "caddr_t".
9314 * gdb.t00/help.exp: Use .* in place of some help messages which
9316 gdb.t00/default.exp: Update "info frame" test for new message.
9317 * gdb.stabs/wierd.exp: Check for eof, directly or via gdb_test.
9322 * gdb.t03/{gdbme.c,ptype.exp}:
9323 Add tests for typedef'd struct and union without tags.
9324 Also check "whatis" on a variable of a typedef'd enum without a tag.
9326 * gdb.t00/teststrategy.exp: For p "foo", remove sun4 XFAIL (see
9327 PRMS 1823; the bug still exists but isn't reproduced by this test
9328 anymore), and remove rs6000 XFAIL (the bug is fixed).
9330 * gdb.t03/ptype.exp: Comment out a lot of tests which are basically
9331 duplicated from whatis.exp. For those that are left, accept
9332 "long", "long int", or "int" for long variables (whatis.exp already
9333 has an XFAIL for "int", so no need to fail it here).
9335 * gdb.t02/whatis.exp, gdb.t10/crossload.exp:
9336 Deal with GCC's names for types now that GDB uses the compiler's names.
9338 * gdb.t02/{Makefile.in,gdbme.c,whatis.exp}: If not GCC, do some
9339 setup_xfail's for sunos4. If we #defined the signed keyword away,
9340 don't expect GDB to know that char it is signed.
9342 * gdb.t00/teststrategy.exp: Update for symbolic signal names.
9346 * configure.in (configdirs): Add gdb.t24 for C++ tests that
9347 should work on any system, regardless of debugging format.
9348 * gdb.t21/demangle.exp: Move to gdb.t24.
9349 * gdb.t24/demangle.exp: Move from gdb.t21.
9350 * gdb.t24/{Makefile.in, configure.in}: New files.
9354 * configure.in: Do gdb.stabs and C++ tests only for stabs.
9355 * gdb.stabs: New directory.
9359 * config/{mips,nind,udi,unix,vx}-gdb.exp: Look for "Quit anyway.*?"
9360 not just "Quit anyway?".
9364 * gdb.t21/demangle.exp: Add a couple of new patterns. Ensure
9365 that all setup_xfails are immediately followed by clear_xfails.
9369 * config/unix-gdb.exp, gdb.t00/echo.exp, gdb.t00/help.exp,
9370 gdb.t00/teststrategy.exp, gdb.t00/gdbvars.exp, gdb.t01/run.exp,
9371 gdb.t01/term.exp, gdb.t02/whatis.exp, gdb.t03/ptype.exp,
9372 gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t06/break.exp,
9373 gdb.t07/watchpoint.exp, gdb.t08/opaque.exp, gdb.t09/corefile.exp,
9374 gdb.t10/crossload.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
9375 gdb.t13/bitfields.exp, gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
9376 gdb.t17/callfuncs.exp, gdb.t20/misc.exp, gdb.t20/inherit.exp,
9377 gdb.t20/classes.exp, gdb.t21/demangle.exp, gdb.t21/cplusfuncs.exp,
9378 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t30/chexp.exp,
9379 gdb.t31/chillvars.exp, lib/gdb.exp:
9385 * gdb.t17/callfuncs.exp (do_function_calls): Call t_double_values
9386 with 0.0, not integer 0.
9390 * gdb.t06/break.exp: Update for "Kill the program" message change.
9394 * Makefile.in (GDBFLAGS): Set to -nx.
9395 * Makefile.in (site.exp): Use GDBFLAGS.
9399 * */Makefile.in (CFLAGS): add CFLAGS = -g to all subdirectory
9401 (check): depend on just-check.
9402 (just-check): added so that tests can be run without a noop
9407 Switch to using configure's configdirs.
9408 * Makefile.in (Makefile): add configure.in dependency.
9409 (SUBDIRS): removed redundant assignment.
9410 * configure.in: switch subdirs assignment to configdirs.
9411 * gdb.t*/configure.in: new files.
9415 * gdb.t07/watchpoint.exp: Removed a29k expected failure which now
9420 * gdb.{t20,t21,t22,t23}/Makefile.in: Use $(srcdir) to avoid $<
9421 in explicit rules. Apparently this is not supported by some makes.
9425 * gdb.t31/Makefile.in: Use $(srcdir) when avoiding $<, sigh.
9429 * config/unix-gdb.exp: Add back missing return 0 which mysteriously
9434 * gdb.t31/Makefile.in: Avoid $< in explicit rule.
9438 * gdb.t07/watchpoint.exp: Remove setup_xfail for i486
9439 watchpoint problem that is now fixed.
9440 * gdb.t30/chexp.exp: Remove setup_xfail for printing
9441 uninitialized convenience variables.
9442 * gdb.t31/chillvars.exp: Fix expected patterns for printing
9447 * gdb.t00/help.exp: Compensate for bug in mips-*-ultrix* OS
9448 which causes expect to get out of sync with gdb on long output
9450 * gdb.t09/corefile.exp: Make expected pattern for core file
9451 failing signal and frame output format less sun specific.
9455 * gdb.t31/chillvars.exp: Add and remove initial dummy
9456 breakpoint, so that symbol table is forced in.
9457 (Needed at least on Sunos4, though it seems not SVR4.)
9458 * gdb.t31/chillvars.exp: Update for changed output format.
9460 Sun Apr 11 17:21:45 1993 Rob Savoye (rob at darkstar.cygnus.com)
9462 * config/unix-gdb.exp: Gracefully exits if $GDB is a bogus path.
9466 * Makefile.in: Added --srcdir when invoking runtest, removed the
9467 need for a local config file. (optional now)
9471 * gdb.t21/demangle.exp: Only count real fails (not xfails) for
9472 failure count used to force early termination. Add some more
9473 expected failures for gnu style demangling.
9477 * Makefile.in (CXXFLAGS): Remove -O. It caused the debug info for the
9478 pmi variable from gdb.t20/gdbme to get optimized away.
9479 * gdb.t00/teststrategy.exp: Added expected failure for mips-*-*.
9480 Check for written corefile upon timeout _and_ eof.
9484 * config/unix-gdb.exp: Add missing return 0.
9488 * gdb.t16/printcmds.exp: Remove misplaced xfail that caused an early
9493 * configure.in (subdirs): Put back gdb.t17 which mysteriously
9498 * gdb.t10/crossload.exp: Disable the i860-elf test until such
9499 time as i860 support works.
9501 * gdb.t15/funcargs.exp: Fix expected outputs to include
9502 "backtrace 100\r" rather than just "backtrace\r", to match last
9507 * config/udi-gdb.exp (gdb_exit): Remove close command.
9508 (gdb_target_udi): New procedure to set the UDI target.
9509 (gdb_start): Don't remove *_soc files. Use gdb_target_udi.
9510 * gdb.t00/default.exp: Added expected failures for a29k-*-udi.
9511 Added waits for prompts after several question responses. Added
9512 some more responses used by a29k-amd-udi-gdb.
9513 * gdb.t01/run.exp, gdb.t06/break.exp: Added a29k-*-udi support:
9514 pass different arguments, restart UDI connection after program
9516 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t07/watchpoint.exp,
9517 gdb.t08/opaque.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
9518 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp, gdb.t20/misc.exp,
9519 gdb.t21/cplusfuncs.exp: Added expected failures for a29k-*-*.
9520 * gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t07/watchpoint.exp,
9521 gdb.t08/opaque.exp, gdb.t12/scope.exp, gdb.t13/bitfields.exp,
9522 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
9523 gdb.t17/callfuncs.exp, gdb.t20/classes.exp, gdb.t20/inherit.exp,
9524 gdb.t20/misc.exp, gdb.t22/virtfuncs.exp: Restart UDI connection
9525 after program completion.
9526 * gdb.t10/crossload.exp: Does not work for a29k-*-*, since BFD is
9527 compiled with a SELECT_VECS setting.
9528 * gdb.t15/funcargs.exp: Use argument to backtrace to prevent
9531 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t22/virtfuncs.exp:
9532 Added checks for COFF results, and made them expected failures for
9533 all targets. It would be better to make them expected failures
9534 for COFF targets only.
9536 Wed Mar 24 14:43:38 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
9538 * Makefile.in: add null dvi target, don't bother to recurse
9539 through test directories for info and install-info; rename
9540 $(datadir) to be dejagnu instead of deja-gnu
9544 * gdb.t31/gdbme.ch: Re-enable code that previously caused
9545 compiler to coredump.
9546 * gdb.t31/chillvars.exp: Re-enable tests that depend on that
9551 * gdb.t31/gdbme.ch: Comment out code that causes chill compiler
9553 * gdb.t31/chillvars.exp: Comment out tests that depend on that
9556 Sun Mar 21 17:56:47 1993 Rob Savoye (rob at darkstar.cygnus.com)
9558 * gdb.t03/ptype.exp: tests for return code from gdb_test.
9559 * gdb.t00/teststrategy.exp: Uses which proc rather than spawning
9560 which in a shell. Deletes xgdb when done.
9561 * config/unix-gdb.exp: Won't try to spawn $GDB unless it exists.
9562 Tests the return from the "set height" or "set width" commands.
9563 Added a few return codes where needed.
9567 * Makefile.in (SUBDIRS): Add gdb.t17.
9568 * configure.in (subdirs): Add gdb.t17.
9569 * gdb.t17/{Makefile.in, callfuncs.exp, gdbme.c}: New test
9570 files to test gdb's calling of functions in the inferior with
9571 the correct arguments and gdb's ability to retrieve any
9576 * config/unix-gdb.exp (gdb_exit): Remove close commands that
9577 may be called after gdb goes away. Previous versions of expect
9578 needed these to avoid file descriptor leaks, but they cause
9579 errors with the current revision of expect.
9580 * gdb.t00/gdbvars.exp: Use -re on expected output after
9581 setting sevenbit-strings.
9582 * gdb.t04/setvar.exp, gdb.t13/bitfields.exp: Make commands
9583 to set sevenbit-strings consistent across tests.
9584 gdb.t30/chexp.exp, gdb.t31/chillvars.exp: Make commands to
9585 set sevenbit-strings consistent across tests.
9589 * gdb.t21/demangle.exp (proc demangle): Adjust quotes in an
9590 expected output to match current "expect" expectations.
9594 * gdb.t00/default.exp: Change expected output for default "source"
9595 command, to match new gdb behavior which requires a filename to
9600 * gdb.t07/watchpoint.exp (test_simple_watchpoint): Set up
9601 expected fail for i486-*-* that misses the marker2 function.
9602 * gdb.t10/crossload.exp (bfddefault): Allow successful
9603 recognition of a format to pass even if no symbols are found.
9604 Explicitly catch failures where the format is not recognized
9605 or is ambiguous, and add the reason to the fail message.
9606 * gdb.t10/crossload.exp (bfdexplicit): Catch failure where
9607 the cause is and invalid target and add reason to failure message.
9608 * gdb.t10/crossload.exp: Fix bfd target names for elf32-m68k,
9609 elf32-i386, elf32-sparc, and elf32-i860.
9610 * gdb.t12/scope.exp (test_at_main, test_at_foo, test_at_bar):
9611 Set up expected failure for 'filename'::variable scope resolution,
9612 which is now apparently broken on all targets.
9613 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t20/misc.exp,
9614 gdb.t21/cplusfuncs.exp, gdb.t22/virtfunc.exp,
9615 gdb.t23/templates.exp: Change failure for missing binfile into
9617 gdb.t21/demangle.exp: Change all cfront references to 'arm'
9622 * gdb.t00/default.exp: Add expected output for default "source"
9623 command, to match new gdb behavior.
9624 * gdb.t09/corefile.exp: Use GDBFLAGS when spawning GDB.
9628 * config/*-gdb.exp: returns an error, rather than exiting on
9633 * gdb.t03/gdbme.c: Add pointer to struct variable.
9634 * gdb.t03/ptype.exp: Test equivalence of '.' and '->' for
9635 referencing struct members.
9639 * configure.in (mips-idt-ecoff): New target.
9640 * config/mips-gdb.exp: New file for remote board using MIPS remote
9643 * Redid configuration scheme. Removed gdb.t*/configure.in.
9644 Renamed gdb.t*/in-gdbme* to gdb.t*/gdbme*. Changed to use CC, CXX
9645 instead of CC_FOR_TARGET, CXX_FOR_TARGET. Added mostlyclean and
9646 distclean targets. Built executables via .o files. Adjusted
9647 tests to account for source files in $(srcdir) rather than
9649 * lib/gdb.exp (runto): Don't expect () after the function name,
9650 because it may have arguments.
9654 * gdb.t00/default.exp, gdb.t01/run.exp, gdb.t02/whatis.exp,
9655 gdb.t03/ptype.exp, gdb.t06/break.exp, gdb.t12/scope.exp: Added
9656 expected failures for mips-idt-* and mips-sgi-*.
9657 * gdb.t00/default.exp (attach): Kill process if requested.
9658 * gdb.t00/help.exp (help target core, help target): Accept a gdb
9659 that does not read core files.
9660 * gdb.t01/run.exp: Removed checks for exit status code.
9661 * gdb.t03/in-gdbme.c: Make explicit call to malloc to ensure that
9663 * gdb.t03/ptype.exp: Increase timeout when calling malloc.
9664 * gdb.t04/setvar.exp, gdb.t05/expr.exp: Use runto function where
9665 appropriate, rather than doing it by hand.
9666 * gdb.t07/watchpoint.exp: If mips-idt-*, reload file after first
9668 * gdb.t10/crossload.exp: Kill existing program if needed.
9669 * gdb.t15/funcargs.exp: Use delete_breakpoints function where
9670 appropriate, rather than doing it by hand. Always increase
9671 timeout for this test, not just for VxWorks.
9675 * gdb.t31/chillvars.exp (test_structs): New proc to test printing
9676 of Chill STRUCT types and STRUCT values.
9677 * gdb.t31/chillvars.exp (test_strings): Expect "CHAR" now, rather
9679 * gdb.t31/in-gdbme.ch (simple_struct, nested_struct, struct1,
9680 struct2): New struct definitions and initializations to test
9681 simple Chill STRUCT types.
9685 * gdb.t00/teststrategy.exp: Track reversion in gdb to not print
9686 the null byte at the end of strings.
9687 * gdb.t00/default.exp: Make show version insensitive to copyright
9689 * gdb.t16/in-gdbme.c (ctable1, ctable2): Make explicitly unsigned
9690 to avoid dependencies on target char signedness.
9691 * gdb.t16/printcmds.exp: Update expected results for explicitly
9693 * gdb.t16/printcmds.exp: Remove setup_xfails for i960 that should
9695 * gdb.t21/demangle.exp: Add many more patterns for template
9696 demangling, most of them being expected failures.
9697 * gdb.t21/demangle.exp (proc demangle): Quote the demangled
9698 string we are matching for, to match on the whole string.
9699 * gdb.t21/demangle.exp: Add many new test strings to demangle,
9700 and fix a whole bunch that had incorrect expected output but were
9701 passing anyway because of the bug in "proc demangle".
9702 * gdb.t31/chillvars.exp: Remove setup_xfail for printing string
9704 * gdb.t31/in-gdbme.ch: Uncomment string4, now compiles.
9708 * gdb/testsuite: made modifications to testcases, etc., to allow
9709 them to work properly given the reorganization of deja-gnu and the
9710 relocation of the testcases from deja-gnu to a "tool" subdirectory.
9714 * gdb/testsuite: Initial creation of gdb/testsuite.
9715 Migrated dejagnu testcases and support files for testing nm to
9716 gdb/testsuite from deja-gnu. These files were moved "as is"
9717 with no modifications. This migration is part of a major overhaul
9718 of dejagnu. The modifications to these testcases, etc., which
9719 will allow them to work with the new version of dejagnu will be
9720 made in a future update.
9726 version-control: never