5 * gdb.base/condbreak.exp: Test combinations of "break *EXP",
6 "if", and "thread". Correct matching in the previous test.
10 * gdb.cp/extern-c.cc, gdb.cp/extern-c.exp: New test.
14 * gdb.reverse/watch-reverse.exp: Extend test for hw watchpoints.
15 * gdb.reverse-watch-precsave.exp: Ditto.
19 * gdb.asm/asm-source.exp: Adjust.
20 * gdb.base/help.exp: Adjust.
24 * gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir)
25 (do_syscall_tests_without_xml): Set data-directory to
30 * gdb.threads/local-watch-wrong-thread.c,
31 gdb.threads/local-watch-wrong-thread.exp: New files.
35 * gdb.cp/cplusfuncs.exp (info_func_regexp, print_addr): Don't
36 assume new `regsub' syntax available.
40 * gdb.base/watchpoint-hw-hit-once.exp,
41 gdb.base/watchpoint-hw-hit-once.c: New.
45 * gdb.threads/watchthreads-reorder.exp,
46 gdb.threads/watchthreads-reorder.c: New.
50 * gdb.xml/tdesc-regs.exp: Use for m68k.
54 * gdb.base/watch-vfork.c, gdb.base/watch-vfork.exp: New files.
58 * lib/gdb.exp (current_target_name): New procedure.
59 (gdb_wrapper_target): New variable.
60 (gdb_wrapper_init): Set gdb_wrapper_target.
61 (default_gdb_init): Check gdb_wrapper_target before rebuilding the
66 * gdb.base/remote.exp: Delete the slowest load test.
67 Do not load with fixed packet sizes.
71 * gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up.
75 * gdb.base/freebpcmd.exp: Delete unused variable. Specify
76 srcfile when setting a breakpoint.
80 * gdb.base/find.c (int8_t, int16_t, int32_t, int64_t): Undefine
85 * gdb.cp/formatted-ref.exp (test_p_x_ref_addr): Allow the reference
87 * gdb.base/display.c (force_mem): New.
88 (do_loops): Use it. Add breakpoint comments.
89 (do_vars): Add a breakpoint comment.
90 * gdb.base/display.exp: Use gdb_get_line_number. Remove hardcoded
95 * gdb.base/pending.exp: Use gdb_run_cmd to start the program
96 instead of a bare "run".
100 * gdb.python/py-prettyprint.exp: Adjust.
104 * lib/cell.exp (skip_cell_tests): Clean up test files before
109 * lib/gdb.exp (gdb_test_multiple): Handle "y or [n]", "[y] or n",
110 and the breakpoint menu. Do not call perror if a prompt is seen.
111 Consume the following GDB prompt.
112 * gdb.cp/method2.exp (test_break): Use gdb_test_multiple.
113 * gdb.cp/namespace.exp: Use gdb_test.
114 * gdb.cp/templates.exp: Use gdb_test.
115 (test_template_breakpoints): Use gdb_test_multiple.
119 * gdb.base/break1.c (struct some_struct, values): Move earlier.
120 (marker4): Reference values.
124 * gdb.base/macscp.exp: Avoid the first FAIL if macro information
129 * gdb.base/break.c (need_malloc): New.
130 * gdb.base/constvars.c (main): Reference crass and crisp.
131 * gdb.base/gdb1821.c (main): Reference bar.
132 * gdb.cp/gdb1355.cc (main): Reference s1.
133 * gdb.cp/hang1.cc (dummy2, dummy3): Declare.
135 * gdb.cp/hang2.cc (dummy2): Define.
136 * gdb.cp/hang3.cc (dummy3): Define.
137 * gdb.cp/m-data.cc (main): Reference shadow.
142 * lib/gdb.exp (gdb_compile): Also set rpath for shlib=, on a
147 * gdb.base/step-line.exp: Copy step-line.inp to the remote host.
148 * gdb.dwarf2/dw2-basic.exp: Copy file1.txt to the remote host.
149 * gdb.dwarf2/dw2-compressed.exp: Likewise.
150 * gdb.dwarf2/dw2-intercu.exp: Likewise.
151 * gdb.dwarf2/dw2-intermix.exp: Likewise.
152 * gdb.dwarf2/dw2-producer.exp: Likewise.
153 * gdb.dwarf2/mac-fileno.exp: Likewise.
154 * gdb.python/py-prettyprint.exp (run_lang_tests): Copy
155 py-prettyprint.py to the remote host.
156 * gdb.python/py-mi.exp: Copy py-mi.py to the remote host.
160 * gdb.cp/classes.cc (ByAnyOtherName): Add typedef and
161 use it instead of "Foo".
162 * gdb.cp/classes.exp (do_tests): Add a test to access
163 a method through a typedef'd class name.
167 * gdb.base/long_long.exp: Permit leading zeros on floating-point
169 * gdb.base/pointers.exp: Likewise.
170 * gdb.cp/ref-types.exp: Likewise.
174 * gdb.cp/cplusfuncs.cc (class foo): Add operators
176 * gdb.cp/cplusfuncs.exp (dm_type_void): Change to
178 (probe_demangler): Remove all single-quoting of
179 method and variable names.
180 (info_func_regexp): Remove the word "void" from any
181 occurrence of "(void)".
182 (print_addr_2): Remove all single-quoting of
184 (print_addr_2_kfail): Likewise.
185 (print_addr): Single-quote C function names before
186 passing to print_addr_2.
187 (test_paddr_operator_functions): Remove single-quoting
189 Add tests for operator new[] and operator delete[].
193 * gdb.dwarf2/dw2-ranges.exp: Call runto_main.
197 * gdb.cp/overload.exp: Add tests for resolving overloaded
198 methods in expression parsing/evaluation.
202 * lib/gdb.exp (default_gdb_version): Use --version instead of
207 * lib/gdb.exp (gdb_compile_test): New.
208 (skip_ada_tests, skip_java_tests): New.
209 (gdb_compile): Use gdb_compile_test for f77.
210 * lib/ada.exp (gdb_compile_ada): Use gdb_compile_test to record result.
211 * lib/java.exp (compile_java_from_source): Remove runtests check,
212 use gdb_compile_test to record result.
213 * gdb.ada/packed_array.exp, gdb.ada/fixed_points.exp,
214 gdb.ada/exec_changed.exp, gdb.ada/start.exp,
215 gdb.ada/watch_arg.exp, gdb.ada/null_record.exp,
216 gdb.ada/array_return.exp, gdb.ada/arrayidx.exp,
217 gdb.mi/mi-var-child-f.exp, gdb.fortran/types.exp,
218 gdb.fortran/array-element.exp, gdb.fortran/subarray.exp,
219 gdb.fortran/derived-type.exp, gdb.fortran/exprs.exp,
220 gdb.java/jmisc.exp, gdb.java/jmisc1.exp, gdb.java/jprint.exp,
221 gdb.java/jv-print.exp, gdb.java/jmain.exp: Add language skip,
222 adjust gdb_compile invocations.
226 * Makefile.in (abs_builddir): New.
227 (site.exp): New target `$(abs_builddir)/site.exp'. New comment.
228 (check-single, $(TEST_TARGETS), check-gdb.base%): Change `site.exp' to
229 `$(abs_builddir)/site.exp'.
233 * config/m68k-emc.exp, lib/emc-support.exp,
234 gdb.trace/gdb_c_test.c: Delete.
235 * gdb.trace/actions.exp, gdb.trace/backtrace.exp, gdb.trace/circ.exp,
236 gdb.trace/collection.exp, gdb.trace/deltrace.exp,
237 gdb.trace/infotrace.exp, gdb.trace/limits.exp, gdb.trace/packetlen.exp,
238 gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp, gdb.trace/report.exp,
239 gdb.trace/save-trace.exp, gdb.trace/tfind.exp, gdb.trace/tracecmd.exp,
240 gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp: Remove special
241 casing for m68k-*-elf.
245 * gdb.arch/i386-gnu-cfi.exp: Define SYMBOL_PREFIX on *-*-mingw*.
246 * gdb.arch/i386-prologue.exp: Likewise.
247 * gdb.arch/i386-unwind.exp: Likewise.
251 * lib/gdb.exp (gdb_expect): Fix timeout typo.
255 * gdb.base/opaque.exp: Remove duplicate tests and xyz from test name.
259 * gdb.cp/ctti.exp: Correct return values for unsigned char functions.
263 * gdb.base/sepdebug.exp: New test_different_dir call for multiple-dirs.
267 * gdb.base/sepdebug.exp (CRC mismatch is reported): New test.
268 * gdb.base/sepdebug2.c: New file.
272 * gdb.base/catch-syscall.exp: Adapt the testcase in order to accept
273 the modified warnings for catch syscall. Verify if GDB was compiled
274 with support for lib expat, and choose which tests to run depending
279 * gdb.mi/mi-break.exp (test_breakpoint_commands): Test
280 that composite commands are parsed OK. And also test
281 that breakpoint commands do work.
285 gdb.reverse/consecutive-precsave.exp: Change expect pattern
286 to allow for new disassembly style.
290 * gdb.asm/asm-source.exp: Adjust.
294 * gdb.reverse/break-precsave.exp: New test.
295 * gdb.reverse/consecutive-precsave.exp: Ditto.
296 * gdb.reverse/finish-precsave.exp: Ditto.
297 * gdb.reverse/i386-precsave.exp: Ditto.
298 * gdb.reverse/machinestate-precsave.exp: Ditto.
299 * gdb.reverse/sigall-precsave.exp: Ditto.
300 * gdb.reverse/solilb-precsave.exp: Ditto.
301 * gdb.reverse/step-precsave.exp: Ditto.
302 * gdb.reverse/until-precsave.exp: Ditto.
303 * gdb.reverse/watch-precsave.exp: Ditto.
307 * gdb.reverse/consecutive-reverse.exp: Substitute gdb_test_multiple
308 for gdb_expect. Adjust one test's expect strings for the new
309 format of disassemble.
310 * gdb.reverse/finish-reverse.exp: Delete 'return'.
311 * gdb.reverse/sigall-reverse.exp: Substitute gdb_test for
313 * gdb.reverse/step-reverse.exp: Delete 'return'.
314 * gdb.reverse/until-reverse.exp: Delete blank lines.
315 * gdb.reverse/watch-reverse.exp: Delete blank lines.
319 * gdb.base/consecutive.exp: Adjust.
320 * gdb.base/display.exp: Likewise.
321 * gdb.base/pc-fp.exp: Likewise.
322 * gdb.base/sigbpt.exp: Likewise.
326 * gdb.reverse/consecutive-reverse.c: Add comment at end of main.
327 * gdb.reverse/finish-reverse.c: Ditto.
328 * gdb.reverse/sigall-reverse.c: Ditto.
329 * gdb.reverse/solib-reverse.c: Ditto.
330 * gdb.reverse/step-reverse.c: Ditto.
331 * gdb.reverse/watch-reverse.c: Ditto.
336 * gdb.base/foll-vfork.exp: Adjust to spell out "follow-fork".
337 * gdb.base/foll-exec.exp: Adjust to expect a process id before
338 "Executing new program".
339 * gdb.base/foll-fork.exp: Adjust to spell out "follow-fork".
340 * gdb.base/multi-forks.exp: Ditto. Adjust to the inferior being
341 left listed after having been killed.
342 * gdb.base/attach.exp: Adjust to spell out "symbol-file".
343 * gdb.base/maint.exp: Adjust test.
345 * Makefile.in (ALL_SUBDIRS): Add gdb.multi.
346 * gdb.multi/Makefile.in: New.
347 * gdb.multi/base.exp: New.
348 * gdb.multi/goodbye.c: New.
349 * gdb.multi/hangout.c: New.
350 * gdb.multi/hello.c: New.
351 * gdb.multi/bkpt-multi-exec.c: New.
352 * gdb.multi/bkpt-multi-exec.exp: New.
353 * gdb.multi/crashme.c: New.
357 * gdb.base/sepdebug.exp: Check debug info are found.
361 * lib/gdb.exp (gdb_compile): Remove dead aix and irix related
366 * gdb.base/hbreak.exp, gdb.base/hbreak.c: New.
370 * gdb.base/watchpoints.c: Add copyright header. Reformat one
375 * gdb.base/annota1.exp: Remove obsolete match_max increase.
376 * gdb.base/annota3.exp: Idem.
377 * gdb.base/maint.exp: Idem.
381 * lib/gdb.exp (default_gdb_init): Set current value of match_max
386 * lib/gdb.exp (gdb_compile): Add --enable-auto-import option for
387 mingw and cygwin targets.
392 * lib/gdb.exp (gdb_compile): Avoid adding
393 gdb_saved_unbuffered_mode_obj if -nostdlib option is used.
397 * gdb.base/shr1.c: Use %p in format string.
398 * gdb.base/unload.c: Avoid warning in fprintf.
399 * gdb.base/watchpoint-solib.c: Idem.
403 * gdb.base/fileio.c (test_lseek): typecast ofs_t ret variable to
405 (test_unlink): Correct printf string.
406 * gdb.base/checkpoint.c (main): Correct fprintf string for variable i.
407 * gdb.threads/attachstop-mt.c: Add #include <string.h>.
411 * gdb.base/breakpoint-shadow.exp: Move the ia64 part into ...
412 * gdb.arch/ia64-breakpoint-shadow.exp: ... a new file, with new tests.
413 * gdb.arch/ia64-breakpoint-shadow.S: New file.
417 * gdb.objc/basicclass.exp: Disable pending breakpoint query.
418 * gdb.objc/nondebug.exp: Likewise.
422 * gdb.base/watchpoints.exp: Respect gdb,no_hardware_watchpoints
425 * gdb.threads/thread-specific.exp (get_thread_list): Support targets
426 that detect new threads during "info threads".
430 * gdb.threads/manythreads.c (main): Increase thread stack size
431 to 2*PTHREAD_STACK_MIN.
432 * gdb.threads/multi-create.c (main): Likewise.
433 (create_function): Likewise.
437 * gdb.base/dump.exp: Pass difference of pointer types instead
438 of integer types as offset to restore in intarr3.srec case.
442 * gdb.cp/gdb2495.exp: Skip test on spu*-*-*.
446 * gdb.base/pie-support.exp: Pass "quiet" flag to gdb_compile.
450 New test for two watchpoints, with disabling of
452 * testsuite/gdb.base/watchpoints.c: New file.
453 * testsuite/gdb.base/watchpoints.exp: New file.
457 * gdb.base/charset.exp: Test utf-16 strings with Python.
461 * gdb.base/charset.exp: Use UTF-16 and UTF-32, not UCS-2 and
463 * gdb.base/charset.c (utf_32_string): Rename.
464 (init_utf32): Rename.
469 * gdb.python/py-function.exp: Add regression tests.
473 * gdb.cp/cplusfuncs.exp (do_tests): Add check for proper error message
474 with invalid operator.
478 * gdb.cp/classes.exp (do_tests): Add tests to print a constructor
479 and destructor using typedef name of class.
480 * gdb.cp/classes.cc (class Base1): Add a destructor.
481 (base1): New typedef.
482 (use_methods): Instanitate an object of type base1.
483 * gdb.cp/templates.exp (test_template_typedef): New procedure.
484 (do_tests): Call test_template_typedef.
485 * gdb.cp/templates.cc (Baz::~Baz): New method.
486 (intBazOne): New typedef.
487 (main): Instantiate intBazOne.
493 * gdb.python/py-prettyprint.exp (gdb_py_test_silent_cmd): New
495 (run_lang_tests): Add print elements test.
499 * gdb.python/py-value.exp (test_subscript_regression): New
500 function. Test for invalid subscripts.
501 * gdb.python/py-value.c (main): Add test array, and pointer to it.
502 (ptr_ref): New function.
506 * gdb.base/default.exp: Fix "show convenience".
510 * lib/mi-support.exp (mi_create_varobj): Update.
511 (mi_create_floating_varobj): Likewise.
512 (mi_create_dynamic_varobj): New proc.
513 (mi_varobj_update): Update.
514 (mi_varobj_update_with_type_change): Likewise.
515 (mi_varobj_update_kv_helper): New proc.
516 (mi_varobj_update_dynamic_helper): Rewrite.
517 (mi_varobj_update_dynamic): New proc.
518 (mi_list_varobj_children): Update.
519 (mi_list_varobj_children_range): Add 'from' and 'to' arguments.
520 * gdb.python/python-prettyprint.py (pp_outer): New class.
521 (pp_nullstr): Likewise.
522 (lookup_function): Register new printers.
523 * gdb.python/python-prettyprint.c (struct substruct): New type.
524 (struct outerstruct): Likewise.
525 (substruct_test): New function.
526 (struct nullstr): New type.
527 (string_1, string_2): New globals.
528 (main): Add new tests.
529 * gdb.python/python-mi.exp: Added regression tests.
530 * gdb.mi/mi2-var-display.exp: Update.
531 * gdb.mi/mi2-var-cmd.exp: Update.
532 * gdb.mi/mi2-var-child.exp: Update.
533 * gdb.mi/mi2-var-block.exp: Update.
534 * gdb.mi/mi-var-invalidate.exp: Update.
535 * gdb.mi/mi-var-display.exp: Update.
536 * gdb.mi/mi-var-cmd.exp: Update.
537 * gdb.mi/mi-var-child.exp: Update.
538 * gdb.mi/mi-var-block.exp: Update.
539 * gdb.mi/mi-break.exp: Update.
540 * gdb.mi/gdb701.exp: Update.
544 * Makefile.in: Inclusion of catch-syscall object.
545 * gdb.base/catch-syscall.c: New file.
546 * gdb.base/catch-syscall.exp: New file.
550 * gdb.reverse/step-reverse.exp: Explicitly check for targets
551 that can support reverse debuggnig.
555 * gdb.dwarf2/valop.S: New file.
556 * gdb.dwarf2/valop.exp: New file.
560 * gdb.threads/current-lwp-dead.exp: Only run this on Linux.
564 * gdb.base/breakpoint-shadow.exp: Fix intermittent failures.
565 Add $gdb_prompt to second breakpoint regexp.
569 * gdb.python/Makefile.in (EXECUTABLES): Adjust to new executable
570 names, add missing ones.
571 * gdb.python/py-cmd.exp: Rename from python-cmd.exp.
572 * gdb.python/py-frame.c: Rename from python-frame.c.
573 * gdb.python/py-frame.exp: Rename from python-frame.exp. Adjust
575 * gdb.python/py-function.exp: Rename from python-function.exp.
576 * gdb.python/py-mi.exp: Rename from python-mi.exp. Adjust
578 * gdb.python/py-prettyprint.c: Rename from python-prettyprint.c.
579 * gdb.python/py-prettyprint.exp: Rename from python-prettyprint.exp.
580 Adjust testfile name.
581 * gdb.python/py-prettyprint.py: Rename from python-prettyprint.py.
582 * gdb.python/py-template.cc: Rename from python-template.cc.
583 * gdb.python/py-template.exp: Rename from python-template.exp.
584 Adjust testfile name.
585 * gdb.python/py-value.c: Rename from python-value.c.
586 * gdb.python/py-value.exp: Rename from python-value.exp. Adjust
591 * gdb.base/breakpoint-shadow.exp (Second breakpoint placed): Initialize
593 (Second breakpoint address is valid on ia64)
594 (Third breakpoint on ia64 in the Second breakpoint's bundle): New.
598 * gdb.base/ending-run.exp: Restrict regular expression matching
599 line number to require closing brace following.
603 * gdb.base/store.exp (check_set): Fix typo in expected value message.
607 * gdb.dwarf2/callframecfa.exp: Use gdb_continue_to_breakpoint.
611 * gdb.dwarf2/callframecfa.exp: New file.
612 * gdb.dwarf2/callframecfa.S: New file.
616 * gdb.base/solib-overlap.exp, gdb.base/solib-overlap-lib.c,
617 gdb.base/solib-overlap-main.c: New.
623 * gdb.base/bitfields.c (struct container, container): New.
624 (main): Initialize it and call break5.
625 * gdb.base/bitfields.exp (bitfield_at_offset): New test.
629 Support constant DW_AT_data_member_location by GCC PR debug/40659.
630 * gdb.dwarf2/dw2-inheritance.exp, gdb.dwarf2/dw2-inheritance.S: New.
634 * gdb.mi/mi2-var-cmd.exp (create variable with invalid FRAME-ADDR): New.
638 * gdb.base/i386-reverse.c: New file.
639 * gdb.base/i386-reverse.exp: New file.
640 * gdb.base/Makefile.in: Add new files to be removed.
644 * gdb.mi/mi-basics.exp (test_cwd_specification): Do not test
645 environment-pwd for remote host.
646 * gdb.mi/mi2-basics.exp (test_cwd_specification): Likewise.
650 * gdb.cp/cpcompletion.exp (test_class_complete): New procedure.
651 Add two new C++ completer tests which limit the output to a
656 * gdb.base/del.exp: Fix typo in comment.
657 * gdb.base/step-bt.exp: Fix cut and paste error in comment.
661 * configure: Regenerate.
662 * gdb.hp/configure: Likewise.
663 * gdb.hp/gdb.aCC/configure: Likewise.
664 * gdb.hp/gdb.base-hp/configure: Likewise.
665 * gdb.hp/gdb.compat/configure: Likewise.
666 * gdb.hp/gdb.defects/configure: Likewise.
667 * gdb.hp/gdb.objdbg/configure: Likewise.
668 * gdb.stabs/configure: Likewise.
672 * gdb.base/gdbvars.c: New file.
673 * gdb.base/gdbvars.exp: Test convenience vars with program variables.
677 * gdb.threads/killed.exp, gdb.threads/manythreads.exp,
678 gdb.threads/staticthreads.exp: Adjust to "quit" output changes.
682 * gdb.base/default.exp: Adjust "set language test": it's now an
683 enum command. Larger help string moved to "help set language".
684 * gdb.base/help.exp: Adjust "help set language" expected output,
685 now lists all known languages.
689 * gdb.arch/altivec-abi.exp (altivec_abi_tests): Turn on printing of
691 * gdb.arch/altivec-regs.exp: Likewise.
695 * gdb.base/setshow.exp: Add tests for changes to set language, set
696 check range, and set check type.
700 * lib/mi-support.exp (mi_list_breakpoints): Make it work.
701 * gdb.mi/mi-break.exp (test_breakpoint_commands): New.
706 * configure.ac: Run gdb.cell tests when appropriate.
707 * configure: Regenerate.
708 * lib/cell.exp: New file.
709 * gdb.cell: New directory.
710 * gdb.cell/configure.ac: New file.
711 * gdb.cell/configure: New file.
712 * gdb.cell/Makefile.in: New file.
713 * gdb.cell/arch.exp: New file.
714 * gdb.cell/break.c: New file.
715 * gdb.cell/break.exp: New file.
716 * gdb.cell/break-spu.c: New file.
717 * gdb.cell/bt.c: New file.
718 * gdb.cell/bt2-spu.c: New file.
719 * gdb.cell/bt-spu.c: New file.
720 * gdb.cell/bt.exp: New file.
721 * gdb.cell/coremaker.c: New file.
722 * gdb.cell/coremaker-spu.c: New file.
723 * gdb.cell/core.exp: New file.
724 * gdb.cell/gcore.exp: New file.
725 * gdb.cell/data.c: New file.
726 * gdb.cell/data.exp: New file.
727 * gdb.cell/data-spu.c: New file.
728 * gdb.cell/ea-cache.exp: New file.
729 * gdb.cell/ea-cache.c: New file.
730 * gdb.cell/ea-cache-spu.c: New file.
731 * gdb.cell/ea-standalone.c: New file.
732 * gdb.cell/ea-standalone.exp: New file.
733 * gdb.cell/ea-test.c: New file.
734 * gdb.cell/ea-test.exp: New file.
735 * gdb.cell/f-regs.exp: New file.
736 * gdb.cell/mem-access.c: New file.
737 * gdb.cell/mem-access.exp: New file.
738 * gdb.cell/mem-access-spu.c: New file.
739 * gdb.cell/ptype.exp: New file.
740 * gdb.cell/registers.exp: New file.
741 * gdb.cell/size.c: New file.
742 * gdb.cell/sizeof.exp: New file.
743 * gdb.cell/size-spu.c: New file.
744 * gdb.cell/solib.exp: New file.
745 * gdb.cell/solib-symbol.exp: New file.
749 * gdb.xml/tdesc-regs.exp: Skip for SPU targets.
753 * gdb.base/float.exp: Handle VFP registers.
757 * gdb.reverse/finish-reverse.exp: Do not expect reverse-finish
758 to bring gdb to the beginning of the calling line.
760 * gdb.arch/i386-signal.c (sigframe): Add a nop to avoid
761 confusing the i386 epilogue unwinder.
765 * gdb.trace/tracecmd.exp: Add basic test of tracepoint conditions.
769 * gdb.reverse/step-reverse.exp (stepi into function call):
770 Call instruction may not be first instruction in the line.
771 (reverse stepi from a function call): Used wrong line number.
775 * gdb.arch/amd64-i386-address.exp, gdb.arch/amd64-i386-address.S: New.
779 Fix gdb.base/macscp.exp when using custom inputrc.
780 * gdb.base/completion.exp: Remove env(INPUTRC) set and restore.
781 * gdb.base/readline.exp: Remove env(INPUTRC) set and restore. Remove
783 * gdb.cp/cpcompletion.exp: Remove env(INPUTRC) set.
784 * lib/gdb.exp (default_gdb_start): Add env(INPUTRC) and env(TERM) set.
788 Fix racy clashing of output files for gdb.base{1,2}/ parallel run.
789 * gdb.base/annota1.exp (thread_test): Import global $testfile.
790 Change the compilation target to match the testcase name.
791 * gdb.base/sect-cmd.exp: Change the compilation target to match the
793 * a2-run.exp: Use for setup prepare_for_testing. Change the
794 compilation target to match the testcase name.
795 * gdb.base/commands.exp: Likewise.
796 * gdb.base/finish.exp: Likewise.
797 * gdb.base/float.exp: Likewise.
798 * gdb.base/info-target.exp: Likewise.
799 * gdb.base/relational.exp: Likewise.
800 * gdb.base/term.exp: Likewise.
801 * gdb.base/until.exp: Likewise.
802 * gdb.base/volatile.exp: Likewise.
803 * gdb.base/whatis-exp.exp: Likewise.
807 * gdb.base/help.exp (disassemble): Update expected help text.
811 * lib/gdb.exp: Handle TRANSCRIPT.
812 (remote_spawn, remote_close, send_gdb): New procs.
816 * gdb.python/python-prettyprint.c: Add counted null string
818 * gdb.python/python-prettyprint.exp: Print null string. Test for
820 * gdb.python/python-prettyprint.py (pp_ns): New Function.
821 * gdb.python/python-value.exp (test_value_in_inferior): Add
822 variable length string fetch tests.
823 * gdb.python/python-value.c (main): Add strings for string fetch tests.
827 * gdb.base/dump.exp (inaccessible memory is reported): New test.
831 * gdb.base/call-rt-st.exp: Update for change to escape output.
832 * gdb.base/callfuncs.exp: Likewise.
833 * gdb.base/charset.exp: Likewise.
834 * gdb.base/constvars.exp: Likewise.
835 * gdb.base/long_long.exp: Likewise.
836 * gdb.base/pointers.exp: Likewise.
837 * gdb.base/printcmds.exp: Likewise.
838 * gdb.base/setvar.exp: Likewise.
839 * gdb.base/store.exp: Likewise.
840 * gdb.cp/ref-types.exp: Likewise.
841 * gdb.mi/mi-var-child.exp: Likewise.
842 * gdb.mi/mi-var-display.exp: Likewise.
843 * gdb.mi/mi2-var-display.exp: Likewise.
844 * gdb.base/charset.exp: Test octal escape sequence length.
845 Update for change to escape output.
849 * gdb.mi/mi2-var-cmd.exp (floating varobj invalidation): New test.
853 * lib/java.exp (java_init): Ignore $GCJ if it is empty.
857 * lib/gdbserver-support.exp (gdbserver_start): Loop spawning
858 gdbserver increasing $portnum if "Can't bind address" has been seen.
862 * gdb.base/ending-run.exp: Add "step out of main" pattern for
867 * gdb.base/long_long.exp: arm-mingw32ce defaults to natural-endian
872 * gdb.base/multi-forks.exp: Only run detach-on-fork tests on
873 linux. Adjust to use "inferior", "info inferiors", "detach
874 inferior" and "kill inferior" instead of "restart", "info fork",
875 "detach fork" and "delete fork".
876 * gdb.base/ending-run.exp: Spell out "info".
877 * gdb.base/help.exp: Adjust to use test_prefix_command_help for
882 * gdb.threads/tls-shared.exp: Update to locexpr_describe_location
883 change to prefix TLS offset in hex with 0x.
887 * gdb.base/default.exp: Update test case for "x" changes.
891 * gdb.base/bigcore.exp: Make darwin untested.
895 * gdb.base/completion.exp (directory completion): Create the directory.
896 New variables uniquedir, escapeduniquedir, uniquesu, uniquesub,
898 (directory completion 2): Expect now ${escapeuniquesub}.
899 (Glob remaining of directory test): Remove one excessive newline.
900 Expect the real output.
904 Fix `make check//%' target after `make check' has been ran.
905 * Makefile.in (TEST_TARGETS): Remove the %/.dir dependency. Add
907 (check-gdb.base%): Remove the gdb.base%/.dir dependency.
912 * lib/mi-support.exp (mi_check_thread_states): Permit any output before
913 the expected result record.
917 Remove racy FAILs relying just on the timeouts.
918 * gdb.base/setshow.exp (set annotate 2, show annotate (2))
919 (annotation_level 2): Remove racy FAILs.
924 * gdb.dwarf2/dw2-restore.{S,exp}: New test.
928 * gdb.opt/inline-locals.exp: Remove XFAIL with duplicated arg1.
932 * gdb.mi/mi-stack.exp: Testing symbolic options
933 to -stack-list-locals and -stack-list-arguments.
937 * gdb.threads/current-lwp-dead.exp, gdb.threads/current-lwp-dead.c: New.
941 * dg-extract-results.sh: New file.
942 * Makefile.in (FORCE_PARALLEL): New variable.
943 (CHECK_TARGET): New conditional variable.
944 (check): Use CHECK_TARGET.
945 (DO_RUNTEST): New variable.
946 (check-single): New target.
947 (TEST_DIRS): New variable.
948 (TEST_TARGETS): Likewise.
949 (check-parallel): New target.
950 (check-gdb.%): New pattern.
951 (BASE1_FILES): New variable.
952 (BASE2_FILES): Likewise.
953 (check-gdb.base%): New pattern.
954 (%/.dir): New pattern.
955 * configure: Rebuild.
956 * aclocal.m4 (AM_CONDITIONAL): New defun.
957 * configure.ac: Check whether user is using GNU make.
958 (GMAKE): New conditional.
962 * gdb.cp/namespace-nested-import.cc: New test.
963 * gdb.cp/namespace-nested-import.exp: New test.
967 * gdb.base/break.exp: Add an XFAIL for gcc/36748.
968 * gdb.cp/annota2.exp: Accept frames-invalid in more places.
969 * gdb.opt/Makefile.in (EXECUTABLES): Update.
970 * gdb.opt/clobbered-registers-O2.exp: Update to GPL v3.
971 * gdb.opt/inline-bt.c, gdb.opt/inline-bt.exp,
972 gdb.opt/inline-cmds.c, gdb.opt/inline-cmds.exp,
973 gdb.opt/inline-locals.c, gdb.opt/inline-locals.exp,
974 gdb.opt/inline-markers.c: New files.
975 * lib/gdb.exp (skip_inline_frame_tests): New function.
976 (skip_inline_var_tests): New function.
980 * gdb.cp/exception.exp: Don't require $hex before inner frame in
985 * gdb.reverse: New directory.
986 * gdb.reverse/break-reverse.c: New test.
987 * gdb.reverse/break-reverse.exp: New test.
988 * gdb.reverse/consecutive-reverse.c: New test.
989 * gdb.reverse/consecutive-reverse.exp: New test.
990 * gdb.reverse/finish-reverse.c: New test.
991 * gdb.reverse/finish-reverse.exp: New test.
992 * gdb.reverse/machinestate.c: New test.
993 * gdb.reverse/ms1.c: New test.
994 * gdb.reverse/machinestate.exp: New test.
995 * gdb.reverse/Makefile.in: New file.
996 * gdb.reverse/shr2.c: New test.
997 * gdb.reverse/solib-reverse.c: New test.
998 * gdb.reverse/solib-reverse.exp: New test.
999 * gdb.reverse/step-reverse.c: New test.
1000 * gdb.reverse/step-reverse.exp: New test.
1001 * gdb.reverse/until-reverse.c: New test.
1002 * gdb.reverse/ur1.c: New test.
1003 * gdb.reverse/until-reverse.exp: New test.
1004 * gdb.reverse/watch-reverse.c: New test.
1005 * gdb.reverse/watch-reverse.exp: New test.
1006 * configure.ac (AC_OUTPUT): Add gdb.reverse/Makefile.
1007 * configure: Regenerate.
1011 * gdb.base/psymtab.exp: Turn off pending breakpoints.
1015 * gdb.base/exe-lock.exp (binfile): Add $EXEEXT suffix to fix
1016 windows problem for 'file delete $binfile'.
1020 * gdb.cp/namespace-using.exp: New test.
1021 * gdb.cp/namespace-using.cc: New test.
1025 * gdb.ada/variant_record_packed_array: New testcase.
1029 * gdb.base/charset.exp (test_combination): Regression test.
1030 * gdb.base/charset.c (my_wchar_t): New typedef.
1031 (myvar): New global.
1036 * lib/gdb.exp (gdb_compile): Also force unbuffered mode for DJGPP
1041 * gdb.base/dump.exp: Handle SPU like 64-bit platforms.
1045 * gdb.mi/gdb680.exp: Update test for error message.
1049 * gdb.base/annota1.exp: Allow multiple occurrences of the
1050 frames-invalid annotation.
1051 * gdb.cp/annota2.exp: Likewise.
1055 * gdb.cp/gdb2495.cc: New file.
1056 * gdb.cp/gdb2495.exp: New file.
1060 Report error on GDB crash during runto.
1061 * lib/gdb.exp (runto <eof>): New.
1065 * gdb.mi/mi-async.exp, gdb.mi/mi-basics.exp,
1066 gdb.mi/mi-break.exp, gdb.mi/mi-cli.exp,
1067 gdb.mi/mi-disassemble.exp, gdb.mi/mi-eval.exp,
1068 gdb.mi/mi-file-transfer.exp, gdb.mi/mi-file.exp,
1069 gdb.mi/mi-regs.exp, gdb.mi/mi-return.exp,
1070 gdb.mi/mi-simplerun.exp, gdb.mi/mi-stepi.exp,
1071 gdb.mi/mi-var-block.exp, gdb.mi/mi-var-cmd.exp,
1072 gdb.mi/mi-var-display.exp, gdb.mi/mi-var-invalidate.exp,
1073 gdb.mi/mi-watch.exp, gdb.mi/mi2-basics.exp,
1074 gdb.mi/mi2-break.exp, gdb.mi/mi2-cli.exp,
1075 gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-eval.exp,
1076 gdb.mi/mi2-file.exp, gdb.mi/mi2-regs.exp,
1077 gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp,
1078 gdb.mi/mi2-stepi.exp, gdb.mi/mi2-var-block.exp,
1079 gdb.mi/mi2-var-child.exp, gdb.mi/mi2-var-cmd.exp,
1080 gdb.mi/mi2-var-display.exp, gdb.mi/mi2-watch.exp,
1081 gdb.server/ext-run.exp, gdb.server/file-transfer.exp,
1082 gdb.server/server-mon.exp, gdb.server/server-run.exp,
1083 gdb.trace/actions.exp, gdb.trace/backtrace.exp,
1084 gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
1085 gdb.trace/packetlen.exp, gdb.trace/passc-dyn.exp,
1086 gdb.trace/passcount.exp, gdb.trace/report.exp,
1087 gdb.trace/save-trace.exp, gdb.trace/tfind.exp,
1088 gdb.trace/tracecmd.exp, gdb.trace/while-dyn.exp,
1089 gdb.trace/while-stepping.exp: Use a unique name for the compiled
1094 * gdb.threads/manythreads.c (main): Check if PTHREAD_STACK_MIN is
1095 defined before referencing it.
1099 * gdb.arch/i386-sse.exp: Test xmm[8-15] if amd64.
1100 * gdb.arch/i386-see.c: Ditto.
1104 * gdb.base/macscp.exp (info_macro): Return undefined if undefined.
1105 (check_macro): Return 1 if undefined.
1106 If first test fails, check if macro debug information is available,
1107 and report unsupported test if no macro information is found.
1111 * gdb.threads/hand-call-in-threads.exp: New.
1112 * gdb.threads/hand-call-in-threads.c: New.
1116 * gdb.base/break-always.exp: Change "1" to "on".
1117 Add confirmation check.
1121 * gdb.threads/threxit-hop-specific.c: New.
1122 * gdb.threads/threxit-hop-specific.exp: New.
1123 * gdb.threads/thread-execl.c: New.
1124 * gdb.threads/thread-execl.exp: New.
1129 * lib/mi-support.exp (mi_varobj_update_dynamic): New proc.
1130 (mi_child_regexp): Likewise.
1131 (mi_list_varobj_children_range): Likewise.
1132 (mi_get_features): Likewise.
1133 (mi_list_varobj_children): Rewrite.
1134 * gdb.python/python-mi.exp: New file.
1141 * gdb.python/python-prettyprint.exp: New file.
1142 * gdb.python/python-prettyprint.c: New file.
1143 * gdb.python/python-prettyprint.py: New file.
1144 * gdb.base/display.exp: print/r is now valid.
1151 * gdb.python/python-template.exp: New file.
1152 * gdb.python/python-template.cc: New file.
1153 * gdb.python/python.exp (gdb_py_test_multiple): Add two objfile
1155 * gdb.python/python-value.exp (py_objfile_tests): New proc.
1157 (test_value_after_death): New proc.
1158 * gdb.python/python-value.c (PTR): New typedef.
1159 (main): New variable 'x'.
1163 * gdb.python/python.exp (gdb_py_test_multiple): Add two objfile
1165 * gdb.python/python-value.exp (py_objfile_tests): New proc.
1170 * gdb.mi/nsthrexec.c, gdb.mi/mi-nsthrexec.exp: New.
1174 * gdb.threads/fork-thread-pending.c: New.
1175 * gdb.threads/fork-thread-pending.exp: New.
1179 * gdb.dwarf2/dw2-strp.exp (p a_string2, ptype a_string2): New.
1180 * gdb.dwarf2/dw2-strp.S (a_string2): New.
1184 * gdb.asm/asm-source.exp: Add lm32 target.
1188 * gdb.base/foll-fork.c: Include stdlib.h. Add markers for
1189 `gdb_get_line_number'. Call `callee' in both parent and child.
1190 * gdb.base/foll-fork.exp (catch_fork_child_follow): Use
1191 `gdb_get_line_number' instead of hardcoding line numbers.
1192 (catch_fork_unpatch_child): New procedure to test detaching
1193 breakpoints from child fork.
1194 (tcatch_fork_parent_follow): Use `gdb_get_line_number' instead of
1195 hardcoding line numbers.
1196 (do_fork_tests): Run `catch_fork_unpatch_child'.
1200 * gdb.mi/mi-cmd-var.exp: Check that when varobj
1201 of structure type enters or leaves the scope, it
1202 is reported by -var-update.
1206 * gdb.mi/nsintrall.c (main): Fix off-by-one error.
1207 * gdb.threads/pending-step.c (main): Fix off-by-one error.
1208 * gdb.threads/schedlock.c (main): Fix off-by-one error.
1212 * gdb.cp/expand-sals.exp, gdb.cp/expand-sals.cc: New.
1216 * gdb.threads/watchthreads2.exp: New testcase.
1217 * gdb.threads/watchthreads2.c: New testcase.
1221 * gdb.cp/mb-ctor.exp: Add multi-line source statement test.
1222 * gdb.cp/mb-ctor.cc: Ditto.
1223 * gdb.cp/mb-inline.exp: Add multi-line source statement test.
1224 * gdb.cp/mb-inline.h (multi_line_foo): New function.
1225 * gdb.cp/mb-inline1.cc: Call it.
1226 * gdb.cp/mb-inline2.cc: Ditto.
1227 * gdb.cp/mb-templates.exp: Add multi-line source statement test.
1228 * gdb.cp/mb-templates.cc (multi_line_foo): New template.
1232 * gdb.base/macscp.exp: New `options' parameter `-DFROM_COMMANDLINE'.
1233 (info_macro): Remova `decimal' declaration. New variable `nonzero'.
1234 Replace all uses of `decimal' by `nonzero'.
1235 (info macro FROM_COMMANDLINE): New test.
1239 * gdb.base/printcmds.exp (test_printf): Test comma operator in [].
1243 * gdb.threads/watchthreads.c (main): Initialize args before starting
1244 the threads. Plus formatting cleanup.
1245 * gdb.threads/watchthreads.exp: Avoid errant failures due to
1246 biased scheduling of one thread.
1250 * gdb.cp/templates.cc (GetMax): New template.
1251 (main): Declare two instances of GetMax.
1252 * gdb.cp/templates.exp: Add new test.
1256 * gdb.cp/abstract-origin.exp, gdb.cp/abstract-origin.cc: New test.
1260 * lib/gdb.exp (get_compiler_info): Use -E -o in remote-host case.
1264 * gdb.base/charset.exp: Add regression test.
1268 * gdb.base/exe-lock.exp: New testcase.
1272 * gdb.python/python-frame.exp (gdb_py_test_silent_cmd): Test !=
1277 * gdb.base/attach.exp: Re-enable for spu*-*-* targets.
1278 * gdb.server/ext-attach.exp: Likewise.
1282 Eliminate some sleep usage.
1284 * gdb.mi/basics.c (do_nothing): New.
1285 (main): Use do_nothing instead of printf, so that
1286 not to introduce race condition between output of
1287 inferiour and output of gdb. Do not use sleep as it
1288 is not generally available on embedded targets.
1292 * gdb.server/ext-attach.exp: Expect an optional process id after
1293 "Detached from remote process".
1297 * gdb.dwarf2/dw2-unresolved-main.c, gdb.dwarf2/dw2-unresolved.S,
1298 gdb.dwarf2/dw2-unresolved.exp: New.
1302 * gdb.mi/mi-nonstop-exit.exp: Don't check isnative. Use
1307 * gdb.mi/mi-nonstop.exp: Don't check isnative. Use
1308 mi_run_to_main. Skip thread exit test on remote targets.
1309 * gdb.mi/mi-nsintrall.exp: Don't check isnative. Use
1311 * gdb.mi/mi-nsmoribund.exp: Don't check isnative. Use
1313 * lib/mi-support.exp (mi_gdb_target_cmd): Remove trailing anchor
1314 when expecting ^connected. Detect when the target doesn't support
1316 (mi_run_cmd): Detect if non-stop mode was requested by isn't
1317 supported. Return -1 on error, 0 on success.
1318 (mi_runto_helper): Don't expect a stop if mi_run_cmd failed.
1319 (mi_runto): Return mi_runto_helper's result explicitly.
1323 * gdb.threads/pending-step.c, gdb.threads/pending-step.exp: New.
1327 * gdb.base/funcargs.exp: Set print frame-arguments to "all".
1328 * gdb.base/call-ar-st.exp: Set print frame-arguments to "all".
1329 * gdb.ada/ref_param.exp: Set print frame-arguments to "all".
1330 * gdb.ada/lang_switch.exp: Set print frame-arguments to "all".
1336 * gdb.cp/gdb1355.exp (f_li, f_lui, f_si, f_sui): Allow canonical
1338 * gdb.cp/templates.exp: Allow canonical output. Remove KFAILs
1340 * dw2-strp.S (DW_AT_language): Change to C++.
1341 (DW_TAG_variable (name ""), Abbrev code 7, .Lemptyname): New.
1345 * gdb.ada/tasks: New testcase.
1349 * gdb.trace/actions.exp: Update to match new info trace format.
1350 * gdb.trace/deltrace.exp: Ditto.
1351 * gdb.trace/infotrace.exp: Ditto.
1352 * gdb.trace/passcount.exp: Ditto.
1353 * gdb.trace/save-trace.exp: Ditto.
1354 * gdb.trace/while-stepping.exp: Ditto.
1355 * gdb.trace/tracecmd.exp: Ditto, plus don't allow pending option.
1359 * gdb.python/python-frame.c: New file.
1360 * gdb.python/python-frame.exp: New file.
1364 * gdb.python/python-value.exp: Add tests for the address
1369 * gdb.arch/powerpc-prologue.exp: Update for disassemble-next-line.
1373 * gdb.mi/mi-nonstop-exit.exp: New file.
1374 * gdb.mi/non-stop-exit.c: New file.
1378 Update for change to prologue skipping:
1379 * gdb.mi/mi2-simplerun.exp: Update.
1380 * gdb.mi/mi2-break.exp: Update.
1381 * gdb.mi/mi-simplerun.exp: Update.
1382 * gdb.mi/mi-break.exp: Update.
1383 * gdb.base/ending-run.exp: Update.
1387 * gdb.python/python-value.exp (test_value_in_inferior): Test
1388 gdb.Value.is_optimized_out attribute.
1392 * gdb.dwarf2/dw2-noloc-main.c: New file.
1393 * gdb.dwarf2/dw2-noloc.S: New symbols matrix.
1396 (DW_AT_stmt_list, .debug_line, DW_AT_frame_base): Remove.
1397 (DW_AT_low_pc, DW_AT_high_pc): Reference `dw2-noloc-main.c'.
1398 (DW_TAG_subprogram func_cu1, noloc): Remove.
1400 * gdb.dwarf2/dw2-noloc.exp: Use prepare_for_testing, compile also
1401 `dw2-noloc-main.c'. Test the new DIEs from `dw2-noloc.S'.
1402 (file_symbols): New procedure.
1406 * gdb.base/charset.exp (valid_target_charset): New proc.
1407 Use it to skip tests on invalid charsets.
1411 * gdb.base/completion.exp: Add a test for directory completion.
1416 * gdb.base/auxv.exp (fetch_auxv): Fix trailing newlines consumption.
1417 * gdb.base/callfuncs.exp (fetch_all_registers): Likewise.
1421 * gdb.python/python-cmd.exp: Add tests for keyword arguments.
1422 * gdb.python/python-function.exp: Add test for function returning
1427 * gdb.python/python-function.exp: New file.
1431 * gdb.base/store.exp: Update for change to escape output.
1432 * gdb.base/callfuncs.exp (fetch_all_registers): Update for change
1434 * gdb.base/pointers.exp: Update for change to escape output.
1435 * gdb.base/long_long.exp (gdb_test_long_long): Update for change
1437 * gdb.base/constvars.exp (do_constvar_tests): Update for change to
1439 * gdb.base/call-rt-st.exp (print_struct_call): Update for change
1441 * gdb.cp/ref-types.exp (gdb_start_again): Update for change to
1443 * gdb.base/setvar.exp: Update for change to escape output.
1444 * lib/gdb.exp (default_gdb_start): Set LC_CTYPE to C.
1445 * gdb.base/printcmds.exp (test_print_all_chars): Update for change
1447 (test_print_string_constants): Likewise.
1448 * gdb.base/charset.exp (valid_host_charset): Check size of
1449 wchar_t. Handle UCS-2 and UCS-4. Add tests for wide and unicode
1450 cases. Handle "auto"-related output.
1451 * gdb.base/charset.c (char16_t, char32_t): New typedefs.
1452 (uvar, Uvar): New globals.
1456 * gdb.ada/fixed_points/fixed_points.adb: Add a test on overprecise
1458 * gdb.ada/fixed_points.exp: Ditto.
1462 * return-nodebug.c: Don't include stdio.h.
1464 (func): Delete definition and provide extern declaration.
1466 (main): Don't call printf. Call func and store its result in t.
1467 * return-nodebug1.c: New.
1468 * return-nodebug.exp: Don't expect stdio output. Instead, print
1469 the global variable t. Drop printf formatters and cast types from
1470 foreach loop. Don't use prepare_for_testing. Compile
1471 return-nodebug.c and return-nodebug1.c in separate steps. Don't
1472 define FORMAT or CAST.
1476 * gdb.base/solib-display.exp: Disable test for remote targers.
1480 * gdb.base/return-nodebug.exp, gdb.base/return-nodebug.c: New.
1485 * gdb.base/multi-forks.exp (continue_to_exit_bp_loc): New function with
1486 code from `follow parent, print pids'.
1487 (`follow child, print pids', `follow parent, print pids'): Call it.
1488 Replace `gdb_test "break..."' by gdb_breakpoint.
1492 * gdb.mi/mi-cli.exp: Adjust for output difference in
1493 sync and async modes.
1497 * gdb.ada/ptype_arith_binop.exp: Remove some commented-out code
1498 that was checked in by mistake. Remove loading of ada.exp, since
1499 this is not necessary in this case.
1503 * gdb.ada/ptype_arith_binop.exp: New testcase.
1507 * gdb.ada/mod_from_name: New testcase.
1511 * gdb.ada/tick_last_segv: New testcase.
1515 * gdb.mi/mi-cli.exp: Remove debug print.
1519 * gdb.mi/mi-cli.exp: Verify that CLI commands that run inferior
1520 include the token in ^running and frame info in *stopped.
1524 * solib-display.exp: New file.
1525 * solib-display-main.c: New file.
1526 * solib-display-lib.c: New file.
1530 * gdb.arch/i386-permbkpt.S, gdb.arch/i386-permbkpt.exp: New.
1534 * gdb.base/macscp.exp (objfile): Move it to ${objdir}/${subdir}/.
1535 (list_and_check_macro): Use more specific test name.
1536 (next to definition): Make the test names unique.
1540 * gdb.pascal/floats.exp: Accept approximate results everywhere.
1544 * gdb.mi/mi-nonstop.exp (notifs): Adjust for library
1546 * gdb.mi/mi-nsintrall.exp (notifs): Likewise.
1547 * gdb.mi/mi-nsmoribund.exp (notifs): Likewise.
1548 * lib/mi-support.exp (library_loaded_re): New.
1549 (mi_run_cmd, mi_send_resuming_command_raw): Adjust.
1553 * gdb.gdb/observer.exp: Use test_notification observer, not
1554 normal_stop, everywhere.
1555 (test_normal_stop_notifications): Rename to...
1556 (test_notifications): ...this.
1557 (test_observer_normal_stop): Rename to...
1558 (test_observer): ...this.
1562 * gdb.arch/amd64-disp-step.S (test_int3): New test.
1563 * gdb.arch/amd64-disp-step.exp (test_int3): New test.
1564 * gdb.arch/i386-disp-step.S (test_prefixed_abs_jump): New test.
1565 (test_prefixed_syscall,test_int3): New tests.
1566 * gdb.arch/i386-disp-step.exp (test_prefixed_abs_jump): New test.
1567 (test_prefixed_syscall,test_int3): New tests.
1571 * lib/mi-support.exp (mi_expect_stop): Adjust the order of fields.
1572 (mi_expect_interrupt): Likewise.
1573 * gdb.mi/mi-cli.exp: Check that "step" results in proper *stopped
1578 * lib/gdb.exp (get_hexadecimal_valueof): New procedure.
1579 * gdb.base/pc-fp.exp (get_valueofx): Remove.
1580 Replace calls to get_valueofx by get_hexadecimal_valueof.
1584 * lib/gdb.exp (get_valueof): Accept anything as a return value.
1585 (get_integer_valueof): New procedure.
1586 (get_sizeof): Use new get_integer_value_of.
1587 * gdb.base/sizeof.exp: Replace all uses of get_valueof
1588 by get_integer_valueof.
1592 * gdb.base/remote.exp (get_sizeof): Remove.
1593 * gdb.base/long_long.exp (get_valueof, get_sizeof): Remove.
1594 * gdb.base/dfp-test.exp (get_valueof, get_sizeof): Remove.
1595 * gdb.base/sizeof.exp (get_valueof, get_sizeof): Remove.
1596 * lib/gdb.exp (get_valueof): Move from long_long.exp.
1597 (get_sizeof): Likewise.
1602 * gdb.fortran/module.exp, gdb.fortran/module.f90: New.
1606 * gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
1610 * gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New.
1614 * gdb.python/python-cmd.exp: New file.
1618 * gdb.arch/i386-sse.c (main): Replace call to puts by an nop asm.
1622 * gdb.base/sigbpt.exp: Detect which signal is received when a NULL
1623 pointer is dereferenced and use this signal name in regexp.
1624 * gdb.base/signull.exp: Ditto.
1625 * gdb.base/sigbpt.c (main): Catch SIGBUS too.
1626 * gdb.base/signull.c (main): Ditto.
1631 * gdb.python/python-value.exp: Use `gdb.history' instead of
1632 `gdb.value_from_history'.
1633 (test_value_numeric_ops): Add test for conversion of enum constant.
1634 * gdb.python/python-value.c (enum e): New type.
1635 (evalue): New global.
1640 * gdb.ada/uninitialized_vars: New test program.
1641 * gdb.ada/uninitialized_vars.exp: New testcase.
1645 * gdb.cp/cpcompletion.exp: Name the test "pr9594".
1646 * gdb.cp/pr2489.cc: Rename...
1647 * gdb.cp/pr9594.cc: ... to this.
1651 * gdb.cp/Makefile.in (EXECUTABLES): Add pr2489.
1652 * gdb.cp/pr2489.cc: New file.
1653 * gdb.cp/cpcompletion.exp: New file.
1658 * gdb.cp/call-c.exp: Add regression test.
1659 * gdb.cp/call-c.cc (FooHandle): New typedef.
1660 (main): New variable 'handle'.
1664 * lib/mi-support.exp (et_mi_thread_list)
1665 (check_mi_and_console_threads): Adjust for current thread in
1666 -thread-list-ids output.
1670 * gdb.mi/mi-break.exp (test_disabled_creation): New.
1675 * gdb.arch/amd64-disp-step.S: New file.
1676 * gdb.arch/amd64-disp-step.exp: New file.
1677 * gdb.arch/i386-disp-step.S: New file.
1678 * gdb.arch/i386-disp-step.exp: New file.
1682 * gdb.base/find.exp: Set newline variable
1683 using quotes instead of braces to fix cygwin failures.
1687 * gdb.base/radix.exp: Add tests to ensure that that set
1688 input-radix 0 and set output-radix 0 are really rejected.
1692 * gdb.base/hook-stop-frame.c, gdb.base/hook-stop-frame.exp: Update
1698 * gdb.base/hook-stop-frame.c, gdb.base/hook-stop-frame.exp: New.
1703 * gdb.cp/pr9631.cc, gdb.cp/pr9631.exp: New.
1707 * gdb.server/file-transfer.exp: Use EXEEXT variable for
1708 binfile definition to fix Windows OS failure.
1713 * gdb.base/interrupt.c (sigint_handler): New.
1714 (main): Install a SIGINT handler if SIGNALS is defined. Exit
1716 * gdb.base/interrupt.exp: Define SIGNALS unless gdb,nosignals.
1717 Test "signal SIGINT".
1721 * gdb.base/break.exp: Update expected gdb output.
1722 * gdb.base/sepdebug.exp: Ditto.
1723 * gdb.mi/mi-syn-frame.exp: Ditto.
1724 * gdb.mi/mi2-syn-frame.exp: Ditto.
1725 * gdb.base/call-signal-resume.exp: New file.
1726 * gdb.base/call-signals.c: New file.
1727 * gdb.base/unwindonsignal.exp: New file.
1728 * gdb.base/unwindonsignal.c: New file.
1729 * gdb.threads/interrupted-hand-call.exp: New file.
1730 * gdb.threads/interrupted-hand-call.c: New file.
1731 * gdb.threads/thread-unwindonsignal.exp: New file.
1735 * gdb.base/define.exp: Test defining and hooking prefix commands.
1736 * gdb.python/python.exp: Update test for "show user" output.
1740 * gdb.fortran/derived-type.exp: New variables int4 and real4. Match
1741 now the output exactly, using less wildcards. Expect also the output
1742 of gfortran-4.3. Update for the f-valprint.c modification from
1744 * gdb.fortran/subarray.exp: Expect also the output of gfortran-4.3.
1745 Remove gdb_test test names where matching the command.
1749 PR breakpoints/9681:
1750 * gdb.base/watchpoint.exp: Add regression test.
1754 * gdb.threads/attach-into-signal.exp: Don't use
1755 gdb_suppress_entire_file.
1756 * gdb.threads/attach-stopped.exp: Ditto.
1757 * gdb.threads/attachstop-mt.exp: Ditto.
1762 * gdb.base/signal.exp: Change kfail to fail, and update PR number.
1767 * gdb.base/radix.exp: Add tests to ensure invalid input radices
1768 and unsupported output radices are really rejected.
1772 * gdb.cp/punctuator.exp: Backslash the '$' signs.
1776 * gdb.cp/punctuator.exp: New file.
1780 * gdb.base/completion.exp (Completing non-existing component): New test.
1784 Fix for PR gdb/8648.
1785 * gdb.arch/ppc-fp.exp, gdb.arch/vsx-regs.exp, gdb.base/watchpoint-hw.c,
1786 gdb.gdbtk/browser.test, gdb.gdbtk/console.test, gdb.gdbtk/srcwin.test,
1787 gdb.gdbtk/srcwin2.test, gdb.gdbtk/srcwin3.test, gdb.gdbtk/windows.test,
1792 * gdb.base/watchpoint-hw.exp, gdb.base/watchpoint-hw.c: New.
1796 * gdb.base/expand-psymtabs.c: Insert code in foo so that the
1797 compiler actually generate code at the expected line number.
1801 * gdb.base/consecutive.exp: Don't use global in gdb_expect.
1805 * gdb.base/commands.exp (redefine_hook_test): New proc.
1810 * gdb.base/macscp.exp: New regression test.
1814 * gdb.base/macscp.exp: Print "address.addr".
1815 * gdb.base/macscp1.c (struct outer): New struct.
1816 (address): New global.
1820 * gdb.base/commands.exp (redefine_backtrace_test): New proc.
1825 * gdb.server/ext-run.exp: Relax regexp for init program.
1829 * gdb.base/macscp.exp: Generate an object file during compilation
1830 to work around Darwin dsymutil limitations.
1834 Test resolving external references to TLS variables.
1835 * gdb.threads/tls.exp: New tests to examine A_THREAD_LOCAL and
1837 (testfile2, srcfile2): New variables.
1838 * gdb.threads/tls.c (file2_thread_local)
1839 (function_referencing_file2_thread_local): New.
1840 * gdb.threads/tls2.c: New file.
1844 * gdb.ada/int_deref.exp: Convert the addresses into long_integer
1845 rather than integer, as integer might not be big enough when
1850 * gdb.cp/formatted-ref.exp: Add equality test.
1851 * gdb.ada/formatted_ref.exp: Ditto.
1855 * gdb.base/breakpoint-shadow.exp, gdb.base/breakpoint-shadow.c: New.
1856 * gdb.base/start.exp: New comment about an alternative - `runto_main'.
1860 * gdb.base/foll-fork.exp (catch_fork_child_follow): Fix patterns
1861 matching syscall entry point.
1862 * gdb.base/foll-vfork.exp (tcatch_vfork_then_parent_follow)
1863 (tcatch_vfork_then_child_follow): Likewise. Finish through
1864 vfork even if we stopped at the syscall trampoline.
1868 * gdb.base/sepsymtab.exp: Update, old "info sym" format restored.
1872 * gdb.arch/ppc-dfp.exp: New file.
1873 * gdb.arch/ppc-dfp.c: New file.
1877 * gdb.base/sepsymtab.exp: Update for new 'info sym' format.
1881 * gdb.mi/mi-syn-frame.exp: Update expected output.
1882 * gdb.mi/mi2-syn-frame.exp: Update expected output.
1886 * gdb.mi/mi-pthreads.exp (check_mi_thread_command_set): Make sure
1887 "thread N" results in =thread-selected.
1888 * lib/mi-support (mi_run_cmd, mi_expect_stop)
1889 (mi_send_resuming_command_raw): Be prepared for
1894 * gdb.mi/mi-nonstop.exp: Expect 'group-id' field.
1895 * lib/mi-support.exp: Likewise.
1899 * gdb.base/help.exp: Remove the "catch load" and "catch unload"
1900 commands from the expected output for "help catch".
1904 * gdb.ada/int_deref.exp: New testcase.
1908 * gdb.mi/gdb2549.exp: New file.
1912 * gdb.base/callexit.exp: New file.
1913 * gdb.base/callexit.c: New file.
1917 * lib/gdb.exp (GDBFLAGS): Move -nx ...
1918 (INTERNAL_GDBFLAGS): ... to here. Move -nw to here as well.
1919 (default_gdb_version): Add $INTERNAL_GDBFLAGS to gdb invocations.
1920 (default_gdb_start,default_gdb_exit): Ditto.
1921 * lib/mi-support.exp (default_mi_gdb_start): Ditto.
1922 (mi_uncatched_gdb_exit): Add $INTERNAL_GDBFLAGS to log message.
1923 * gdb.base/corefile.exp: Add $INTERNAL_GDBFLAGS to gdb invocations.
1924 * gdb.base/dbx.exp (dbx_gdb_start): Ditto.
1925 * gdb.base/args.exp (GDBFLAGS): Don't overwrite, append.
1926 * gdb.base/remotetimeout.exp (GDBFLAGS): Ditto.
1930 * gdb.base/hashline2.exp: Fix typo.
1931 * gdb.base/hashline3.exp: Likewise.
1935 * gdb.base/pointers.exp: Add test.
1936 * gdb.base/pointers.c (k, S): New typedefs.
1937 (instance): New global.
1941 * gdb.base/args.exp: Add tests for newlines.
1945 gdb.base/foll-exec.exp: Update the expected output of a couple
1946 of "info breakpoints" tests.
1950 * gdb.base/exprs.exp (test_expr): Add enum formatting tests.
1954 * gdb.python/python-value.exp (test_value_in_inferior): Don't use
1956 Use runto_main before any test that requires execution.
1960 * lib/mi-support.exp (mi_expect_interrupt): Expect signal 0
1965 * gdb.base/completion.exp: Update expected output following
1966 the addition of the "info tasks" command.
1970 * gdb.base/exprs.exp (test_expr): Add test for string
1975 * configure.ac: Output gdb.python/Makefile.
1976 * configure: Regenerate.
1977 * gdb.python/Makefile.in: New.
1981 * gdb.base/foll-fork.exp: Adjust the expected output to match
1982 the new description for fork/vfork catchpoints in the "info
1983 breakpoints" output.
1987 * Makefile.in: Add gdb.python to ALL_SUBDIRS.
1991 * gdb.python/python-value.c: New file.
1992 * gdb.python/python-value.exp: New file.
1996 * gdb.mi/mi-nsmoribund.exp, gdb.mi/nsmoribund.c: New test.
2000 * gdb.cp/mb-ctor.exp: Fix a typo.
2004 * gdb.base/macscp.exp: Use 'vafunc' and 'fixedarg' rather than
2005 'fprintf' and 'stderr'.
2009 * gdb.ada/ref_tick_size.exp: New testcase.
2013 * gdb.dwarf2/dw2-cu-size.exp: New file.
2014 * gdb.dwarf2/dw2-cu-size.S: New file.
2016 * gdb.dwarf2/dw2-intercu.S (.Ltype_int_in_cu2): Renamed from
2017 .Ltype_int for clarity.
2022 * gdb.cp/gdb2384.exp: Extended to test more cases.
2023 * gdb.cp/gdb2384.cc: Likewise.
2024 * gdb.cp/gdb2384-base.h: Likewise.
2025 * gdb.cp/gdb2384-base.cc: Likewise.
2029 * gdb.base/maint.exp (maint print type): Remove printing
2030 UPPER_BOUND_TYPE and LOWER_BOUND_TYPE.
2034 * gdb.base/macscp.exp: Add completion tests.
2035 * gdb.base/macscp1.c (FIFTY_SEVEN): New macro.
2036 (TWENTY_THREE): Likewise.
2037 (FORTY_EIGHT): Likewise.
2041 * gdb.base/macscp.exp: Change "M" to "MACRO_TO_EXPAND"
2043 * gdb.base/macscp1.c (MACRO_TO_EXPAND): Rename from "M".
2047 * gdb.threads/attachstop-mt.exp: Note a real testcase name this
2048 testcase is derived from. Fix racy dependency on an expected PID
2049 number. No longer support the testcase on Linux kernel 2.4.x.
2053 * gdb.base/macscp.exp: Add tests for stringification, splicing,
2058 * lib/mi-support.exp (mi_expect_interrupt): New.
2059 (mi_reverse_list, mi_check_thread_states): New, moved and renamed
2060 from gdb.mi/mi-nonstop.exp.
2061 * gdb.mi/mi-nsintrall.exp, gdb.mi/nsintrall.c: New.
2062 * gdb.mi/mi-nonstop.exp (myreverse, check_thread_states): Moved to
2064 Use mi_check_thread_states throughout. Avoid ".*" and do not
2065 require an anchor after -exec-run.
2069 * gdb.mi/mi-nonstop.exp: Do not check thread state while a
2070 stop is pending. Avoid ".*" when two stops are pending.
2071 * lib/gdb.exp (fullname_syntax_POSIX, fullname_syntax_UNC)
2072 (fullname_syntax_DOS_CASE, fullname_syntax_DOS): Do not match
2073 newlines in fullnames.
2074 * lib/mi-support.exp (mi_run_cmd): Do not require an anchor.
2075 (mi_expect_stop): Update comments. Only anchor in sync mode.
2076 Do not match newlines.
2077 (mi_send_resuming_command_raw): Always return status.
2078 (mi_get_stop_line): Do not match more than one line by accident.
2079 Only anchor in sync mode.
2080 (mi_run_inline_test): If -exec-next fails, give up.
2084 * gdb.base/stack-checking.c (big_frame): Reduce stack consumption
2089 * gdb.ada/Makefile.in (EXECUTABLES): Bring up to date.
2093 * gdb.ada/array_bounds.exp, gdb.ada/array_subscript_addr.exp,
2094 gdb.ada/arrayidx.exp, gdb.ada/arrayparam.exp, gdb.ada/arrayptr.exp,
2095 gdb.ada/assign_1.exp, gdb.ada/boolean_expr.exp,
2096 gdb.ada/char_param.exp, gdb.ada/exprs.exp, gdb.ada/fixed_cmp.exp,
2097 gdb.ada/fixed_points.exp, gdb.ada/fun_addr.exp,
2098 gdb.ada/funcall_param.exp, gdb.ada/homonym.exp,
2099 gdb.ada/interface.exp, gdb.ada/null_array.exp,
2100 gdb.ada/packed_array.exp, gdb.ada/packed_tagged.exp,
2101 gdb.ada/print_chars.exp, gdb.ada/print_pc.exp,
2102 gdb.ada/str_ref_cmp.exp, gdb.ada/sym_print_name.exp,
2103 gdb.ada/taft_type.exp, gdb.ada/tagged.exp, gdb.ada/type_coercion.exp:
2104 Include the "= " sequence in the expected output of print tests.
2108 * gdb.ada/packed_tagged.exp: Accept "boolean" as a valid type
2109 description for boolean types.
2113 * gdb.base/hook-stop-continue.c: New.
2114 * gdb.base/hook-stop-continue.exp: New.
2118 * gdb.base/structs3.c, gdb.base/structs3.exp: New files.
2122 * gdb.arch/powerpc-aix-prologue.c (stack_check_probe_1)
2123 (stack_check_probe_2, stack_check_probe_loop_1)
2124 (stack_check_probe_loop_2): New functions.
2125 (main): Add call to these new functions.
2126 * gdb.arch/powerpc-aix-prologue.exp: When breaking on these
2127 functions, check that the breakpoint is inserted at the appropriate
2129 (insert_breakpoint): Slightly refine this procedure so that it can
2130 be called several times in the test.
2134 * gdb.base/stack-checking.c: New file.
2135 * gdb.base/stack-checking.exp: New file.
2139 * gdb.arch/altivec-abi.exp: Remove extra verbose call.
2140 * gdb.arch/altivec-regs.exp: Likewise.
2141 * gdb.arch/vsx-regs.exp: Likewise.
2145 * gdb.arch/ppc-fp.exp: New file.
2146 * gdb.arch/ppc-fp.c: New file.
2150 *gdb.base/mips_pro.exp: compile with gcc -fno-inline,
2151 lest gcc-4.3.1 optimizes the whole thing away.
2155 * lib/gdb.exp (gdb_continue_to_breakpoint): Accept "in" as well
2156 as "at" (for non-debug functions such as _start).
2160 * gdb.base/value-double-free.exp: Respect gdb,no_hardware_watchpoints.
2161 * gdb.base/watchpoint-solib.exp: Likewise. Update tests to handle
2162 software watchpoints.
2163 * gdb.base/watch_thread_num.exp: Likewise.
2167 * gdb.arch/i386-bp_permanent.exp: New test.
2171 * gdb.base/maint.exp: Update "maint print type".
2175 * gdb.mi/mi-nonstop.exp: Fix the check for non-stop
2176 support. Adjust the order of "*running" notifications.
2177 * gdb.mi/non-stop.c: Don't cast from int to void* and
2182 * gdb.arch/powerpc-prologue.exp: Code doesn't save %r31 so don't
2183 expect to find it in the "info frame" output.
2187 * gdb.base/interp.exp: Always consume both prompts.
2191 * gdb.base/pending.exp: Test pending breakpoints without symbols
2196 * lib/mi-support.exp (mi_expect_stop): Produce
2197 more details on failures.
2198 * gdb.mi/mi-nonstop.exp: New.
2199 * gdb.mi/non-stop.c: New.
2203 * gdb.mi/mi-async.exp: Use 'set target-async'.
2204 * lib/mi-support.exp: Use 'set/show target-async'.
2208 * gdb.arch/powerpc-prologue.exp: Correct saved registers.
2212 * gdb.base/help.exp (help catch): Rewrite.
2216 * gdb.base/define.exp: Test indented command documentation.
2217 * gdb.python/python.exp: Test indented multi-line command.
2221 * testsuite/gdb.arch/vsx-regs.c: New source file.
2222 * testsuite/gdb.arch/vsx-regs.exp: New testcase.
2223 * testsuite/lib/gdb.exp (skip_vsx_tests): New function.
2227 * gdb.base/macscp.exp: Add regression test for "macro define" or
2228 "macro undef" with no arguments.
2232 * gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.
2236 * gdb.arch/spu-info.exp: Updated for "info spu dma" changes.
2240 * gdb.python/python.exp: New file.
2244 Fix for PR gdb/1543.
2245 * gdb.base/sep.exp: `sep-proc.c' absolute line numbers replaced with
2247 (location): New variable.
2248 * config/cfdbug.exp, config/d10v.exp, config/dve.exp, config/i960.exp,
2249 config/m32r.exp, config/mn10300-eval.exp, config/proelf.exp,
2250 config/rom68k.exp, config/sh.exp, config/unix.exp, config/vr4300.exp,
2251 config/vr5000.exp, config/vxworks.exp, gdb.arch/altivec-regs.exp,
2252 gdb.arch/e500-abi.exp, gdb.arch/e500-regs.exp, gdb.asm/asm-source.exp,
2253 gdb.base/a2-run.exp, gdb.base/advance.exp, gdb.base/all-bin.exp,
2254 gdb.base/args.exp, gdb.base/arithmet.exp, gdb.base/assign.exp,
2255 gdb.base/async.exp, gdb.base/auxv.exp, gdb.base/bigcore.c,
2256 gdb.base/bigcore.exp, gdb.base/bitfields.exp, gdb.base/bitops.exp,
2257 gdb.base/break.c, gdb.base/break.exp, gdb.base/break1.c,
2258 gdb.base/call-ar-st.exp, gdb.base/call-rt-st.exp,
2259 gdb.base/call-strs.exp, gdb.base/callfuncs.c, gdb.base/callfuncs.exp,
2260 gdb.base/checkpoint.exp, gdb.base/chng-syms.exp,
2261 gdb.base/code-expr.exp, gdb.base/commands.exp, gdb.base/completion.exp,
2262 gdb.base/complex.exp, gdb.base/cond-expr.exp, gdb.base/condbreak.exp,
2263 gdb.base/consecutive.exp, gdb.base/corefile.exp, gdb.base/cvexpr.c,
2264 gdb.base/cvexpr.exp, gdb.base/dbx.exp, gdb.base/default.exp,
2265 gdb.base/define.exp, gdb.base/del.c, gdb.base/detach.exp,
2266 gdb.base/display.exp, gdb.base/dump.exp, gdb.base/echo.exp,
2267 gdb.base/environ.exp, gdb.base/eval-skip.exp, gdb.base/exprs.exp,
2268 gdb.base/fileio.exp, gdb.base/find.exp, gdb.base/finish.exp,
2269 gdb.base/funcargs.exp, gdb.base/gcore-buffer-overflow.exp,
2270 gdb.base/gcore.exp, gdb.base/gdb1555.exp, gdb.base/gdbvars.exp,
2271 gdb.base/help.exp, gdb.base/huge.exp, gdb.base/info-proc.exp,
2272 gdb.base/interrupt.exp, gdb.base/jump.exp, gdb.base/langs.exp,
2273 gdb.base/lineinc.exp, gdb.base/list.exp, gdb.base/macscp.exp,
2274 gdb.base/maint.exp, gdb.base/mips_pro.exp, gdb.base/miscexprs.exp,
2275 gdb.base/nodebug.exp, gdb.base/nofield.c, gdb.base/opaque.exp,
2276 gdb.base/overlays.exp, gdb.base/page.exp, gdb.base/pc-fp.exp,
2277 gdb.base/pending.c, gdb.base/pendshr.c, gdb.base/pointers.exp,
2278 gdb.base/psymtab.exp, gdb.base/ptype.exp, gdb.base/randomize.c,
2279 gdb.base/readline.exp, gdb.base/recurse.exp, gdb.base/regs.exp,
2280 gdb.base/relational.exp, gdb.base/relocate.exp, gdb.base/remote.exp,
2281 gdb.base/reread.exp, gdb.base/return.exp, gdb.base/return2.exp,
2282 gdb.base/scope.exp, gdb.base/sect-cmd.exp, gdb.base/sep-proc.c,
2283 gdb.base/sep.c, gdb.base/sep.exp, gdb.base/sepdebug.c,
2284 gdb.base/sepdebug.exp, gdb.base/setshow.exp, gdb.base/shlib-call.exp,
2285 gdb.base/sigaltstack.c, gdb.base/so-indr-cl.exp, gdb.base/solib.exp,
2286 gdb.base/source.exp, gdb.base/start.c, gdb.base/step-bt.c,
2287 gdb.base/step-line.exp, gdb.base/structs.c, gdb.base/structs.exp,
2288 gdb.base/structs2.exp, gdb.base/term.exp, gdb.base/twice.exp,
2289 gdb.base/type-opaque.exp, gdb.base/until.exp,
2290 gdb.base/value-double-free.c, gdb.base/varargs.exp,
2291 gdb.base/watchpoint.exp, gdb.base/whatis-exp.exp, gdb.disasm/am33.exp,
2292 gdb.disasm/h8300s.exp, gdb.disasm/hppa.exp, gdb.disasm/mn10300.exp,
2293 gdb.disasm/sh3.exp, gdb.disasm/t01_mov.exp, gdb.disasm/t02_mova.exp,
2294 gdb.disasm/t03_add.exp, gdb.disasm/t04_sub.exp, gdb.disasm/t05_cmp.exp,
2295 gdb.disasm/t06_ari2.exp, gdb.disasm/t07_ari3.exp,
2296 gdb.disasm/t08_or.exp, gdb.disasm/t09_xor.exp, gdb.disasm/t10_and.exp,
2297 gdb.disasm/t11_logs.exp, gdb.disasm/t12_bit.exp,
2298 gdb.disasm/t13_otr.exp, gdb.fortran/exprs.exp, gdb.fortran/types.exp,
2299 gdb.hp/gdb.aCC/exception.exp, gdb.hp/gdb.aCC/optimize.exp,
2300 gdb.hp/gdb.aCC/watch-cmd.exp, gdb.hp/gdb.base-hp/callfwmall.exp,
2301 gdb.hp/gdb.base-hp/dollar.exp, gdb.hp/gdb.base-hp/hwwatchbus.exp,
2302 gdb.hp/gdb.base-hp/pxdb.exp, gdb.hp/gdb.base-hp/reg-pa64.exp,
2303 gdb.hp/gdb.base-hp/reg.exp, gdb.hp/gdb.base-hp/sized-enum.exp,
2304 gdb.hp/gdb.base-hp/so-thresh.exp, gdb.hp/gdb.compat/xdb1.exp,
2305 gdb.hp/gdb.compat/xdb2.exp, gdb.hp/gdb.compat/xdb3.exp,
2306 gdb.java/jmisc.exp, gdb.java/jv-exp.exp, gdb.java/jv-print.exp,
2307 gdb.mi/gdb669.exp, gdb.mi/gdb680.exp, gdb.mi/gdb701.exp,
2308 gdb.mi/gdb792.exp, gdb.mi/mi-basics.exp, gdb.mi/mi-console.exp,
2309 gdb.mi/mi-hack-cli.exp, gdb.mi/mi-pending.c, gdb.mi/mi-pendshr.c,
2310 gdb.mi/mi-pthreads.exp, gdb.mi/mi-read-memory.exp, gdb.mi/mi-regs.exp,
2311 gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp, gdb.mi/mi2-basics.exp,
2312 gdb.mi/mi2-console.exp, gdb.mi/mi2-hack-cli.exp,
2313 gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-read-memory.exp,
2314 gdb.mi/mi2-regs.exp, gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp,
2315 gdb.pascal/types.exp, gdb.stabs/weird.exp,
2316 gdb.threads/gcore-thread.exp, gdb.threads/manythreads.exp,
2317 gdb.threads/print-threads.exp, gdb.threads/pthreads.exp,
2318 gdb.threads/schedlock.exp, gdb.threads/step.exp, gdb.threads/step2.exp,
2319 gdb.threads/switch-threads.exp, gdb.threads/thread-specific.exp,
2320 gdb.threads/thread_check.exp, gdb.threads/thread_events.exp,
2321 gdb.threads/tls-nodebug.exp, gdb.threads/tls-shared.exp,
2322 gdb.threads/tls.exp, gdb.trace/actions.exp, gdb.trace/backtrace.exp,
2323 gdb.trace/circ.exp, gdb.trace/collection.exp, gdb.trace/deltrace.exp,
2324 gdb.trace/infotrace.exp, gdb.trace/limits.exp, gdb.trace/packetlen.exp,
2325 gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp, gdb.trace/report.exp,
2326 gdb.trace/save-trace.exp, gdb.trace/tfind.exp, gdb.trace/tracecmd.exp,
2327 gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp,
2328 lib/mi-support.exp, lib/trace-support.exp: Remove reference
2333 * lib/mi-support.exp (mi_load_shlibs): New.
2334 * gdb.mi/mi-pending.exp: Use mi_load_shlibs, not gdb_load_shlibs.
2338 * lib/mi-support.exp (get_mi_thread_list)
2339 (check_mi_and_console_threads): New, moved from ...
2340 * gdb.mi/mi-pthread.exp: ...here.
2341 * gdb.mi/gdb669.exp (get_mi_thread_list)
2342 (check_mi_and_console_threads): Delete.
2343 * gdb.mi/mi2-pthread.exp: Likewise.
2347 * Makefile.in (just-check): Remove. Move body to...
2352 * gdb.threads/manythreads.exp: Use remote_expect instead of after.
2353 Add a test for duplicated SIGINTs.
2357 * gdb.threads/schedlock.exp (get_args): Update to work for any
2359 (Top level): Report the number of threads that did not resume.
2363 * gdb.dwarf2/dw2-compressed.S: Also define __start.
2367 * lib/mi-support.exp (default_mi_gdb_start): Remove check for
2372 * gdb.base/callfuncs.c (struct struct_with_fnptr): New struct.
2373 (function_struct, function_struct_ptr): New globals.
2374 * gdb.base/callfuncs.exp (do_function_calls): Test calling via a
2375 function pointer in a struct.
2379 * gdb.base/macscp.exp: Add test for macro lexing bug.
2383 * gdb.base/macscp.exp: Add macro tests.
2387 * gdb.base/foll-fork.exp: Fix for Linux/VDSO failure.
2391 * gdb.base/coremaker.c: Fix for Linux failure in gdb.base/corefile.exp
2395 * gdb.cp/class2.exp: fix for failure on spu-elf
2399 * gdb.cp/class2.exp, gdb.cp/class2.cc: Test for PR2477.
2403 * gdb.base/randomize.exp: Catch non-Linux targets as untested.
2407 * lib/mi-support.exp (mi_expect_stop): Adjust for the new field.
2411 * gdb.arch/e500-regs.exp (decimal_vector): Adjust "v8_int8" portion
2412 of regexp to account for changes made to GDB in the printing of
2417 * gdb.base/completion.exp: Add 'help' completion test.
2421 * gdb.base/randomize.exp: Remove dependency on tcl-8.4+.
2425 * gdb.base/randomize.exp, gdb.base/randomize.c: New files.
2429 * gdb.base/chng-syms.exp: Don't expect "No symbol ...".
2433 * gdb.base/fullname.exp: Restore pwd if compiling failed.
2437 * gdb.base/value-double-free.exp, gdb.base/value-double-free.c: New.
2441 * lib/mi-support.exp (mi_send_resuming_command_raw): Revert
2442 previous commit. Add a comment.
2446 * gdb.base/sigchld.c, gdb.base/sigchld.exp: New test.
2450 * lib/mi-support.exp (mi_send_resuming_command_raw): Report pass.
2454 * lib/gdb.exp (gdb_saved_set_unbuffered_mode_obj): New global.
2455 (gdb_compile): If target is *-*-cygwin* or *-*-mingw*, and we're
2456 compiling an executable, link in an object that forces unbuffered
2458 * lib/set_unbuffered_mode.c: New file.
2462 * lib/gdb.exp (prepare_for_testing): Do not drop the OPTIONS argument.
2466 * gdb.mi/mi-async.exp: Use mi_sending_resuming_command_raw and
2468 * gdb.mi/mi-support.exp (mi_run_cmd, mi_send_resuming_command):
2469 Demand that *running is output.
2470 (detect_async): Perform checking every time.
2471 (mi_send_resuming_command): Extract everything into...
2472 (mi_send_resuming_command_raw): ...this.
2473 (mi_expect_stop): Don't accept any output before *stopped.
2477 Robustify mi-simplerun.
2478 * gdb.mi/basics.c (main): Add a call to sleep.
2479 * gdb.mi/mi-cli.exp: Adjust for change in line numbers.
2480 * gdb.mi/mi2-cli.exp: Likewise.
2481 * gdb.mi/mi-break.exp: Likewise.
2485 * gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.
2489 * gdb.mi/mi-console.exp: Adjust.
2490 * gdb.mi/mi-syn-frame.exp: Adjust.
2491 * gdb.mi/mi2-console.exp: Adjust.
2492 * gdb.mi/mi2-syn-frame.exp: Adjust.
2493 * lib/mi-support.exp (mi_run_cmd): Adjust.
2494 (mi_send_resuming_command): Adjust.
2498 * gdb.mi/mi-break.exp (test_ignore_count): Adjust stopped pattern.
2499 * gdb.mi/mi-syn-frame.exp: Use mi_expect_stop instead of direct
2501 * gdb.mi/mi2-syn-frame.exp: Likewise.
2502 * lib/mi-support.exp (default_mi_gdb_start): Call detect_async.
2503 (async, detect_async): New.
2504 (mi_expect_stop, mi_continue_to_line): Adjust expectation
2505 depending on if we're running in sync or async mode.
2509 * gdb.base/completion.exp: New tests for field name completion
2510 with spaces, and field name completion with '->'.
2514 * gdb.base/break1.c (struct some_struct): New struct.
2515 (values): New global.
2516 * gdb.base/completion.exp: Add field name completion test.
2520 * gdb.cp/call-c.exp: Test for incorrect handling of reference
2522 * gdb.cp/call-c.cc: Likewise.
2526 * gdb.base/annota1.exp (thread_switch): Test for thread-changed
2532 * gdb.threads/execl.c, gdb.threads/execl1.c,
2533 gdb.threads/execl.exp: New tests.
2538 * gdb.cp/exception.exp: Activate test, make it work with pending
2543 * dw2-ref-missing-frame.S, dw2-ref-missing-frame.exp: New files.
2547 * gdb.mi/mi-var-cmd.exp: Adjust for the fact that type_changed field is
2549 * gdb.mi/mi2-var-cmd.exp: Likewise.
2553 * gdb.base/frame-args.exp: Handle arguments that are optimized
2558 * gdb.arch/ppc64-atomic-inst.exp: Make the expected compile failure
2559 quiet for ppc32 and group options into a single variable.
2563 * gdb.ada/null_array/foo.adb: Add multi-dimensional array
2564 of zero-size elements.
2565 * gdb.ada/null_array.exp: Test printing this new array.
2569 * gdb.base/longjmp.exp: Fix GDB_TEST_MULTIPLE missing GDB_PROMPT races.
2573 * gdb.base/finish.exp: Test that "fin" works as an abbreviation
2574 of the "finish" command.
2578 * gdb.base/annota1.exp: Test for new annotation.
2582 * gdb.base/fixsection.exp: New file.
2583 * gdb.base/fixsection0.c: New file.
2584 * gdb.base/fixsection1.c: New file.
2588 * gdb.base/annota1.exp: Accept printf@... in place of printf.
2589 * gdb.base/annota3.exp: Likewise.
2593 * gdb.base/watch_thread_num.exp: Don't run tests that require
2594 watchpoints if the target doesn't support them.
2598 * lib/gdbserver-support.exp (find_gdbserver): Use $GDBSERVER if set.
2602 * gdb.ada/assign_1.exp: New testcase.
2606 * gdb.base/find.exp: New file.
2607 * gdb.base/find.c: New file.
2611 * gdb.base/commands.exp (watchpoint_command_test): Handle
2612 gdb,no_hardware_watchpoints.
2613 * gdb.base/float.exp: Allow ARM targets without floating point.
2614 * gdb.base/step-test.exp: Allow callee@plt when stepping in.
2619 * gdb.ada/lang_switch: New test program.
2620 * gdb.ada/lang_switch.exp: New testcase.
2624 * gdb.base/help.exp (disassemble): Update expected help text.
2628 * gdb.base/longjmp.c, gdb.base/longjmp.exp: New files.
2632 * gdb.cp/annota2.exp: Adjust to breakpoints invalidations at
2637 * gdb.dwarf2/dw2-ranges.S: Merge the secondary section with `.fini'.
2638 * gdb.dwarf2/dw2-ranges.exp: Compile also `dw2-ranges2.S' and
2639 `dw2-ranges3.S' and test also their MAIN2, FUNC2 and MAIN3 symbols.
2640 * gdb.dwarf2/dw2-ranges2.S, gdb.dwarf2/dw2-ranges3.S: New files.
2644 * lib/mi-support.exp (mi_run_cmd): Allow for =thread-created
2645 notification to appear.
2649 * gdb.base/fullname.c: New file.
2650 * gdb.base/fullname.exp: New file.
2651 * lib/gdb.exp (gdb_breakpoint): Support no-message option.
2655 * gdb.base/macscp.exp, gdb.base/macscp1.c: Add test for printing
2656 expressions with macros.
2660 * gdb.base/dfp-test.exp: Fix random FAIL risk on calling functions.
2664 * gdb.base/completion.exp: Handle lack of other symbols beginning
2667 * gdb.base/varargs.exp: Correct quoting for options to gdb_compile.
2671 * gdb.asm/asmsrc1.s: Add scratch space.
2676 * gdb.threads/attach-into-signal.c, gdb.threads/attach-into-signal.exp,
2677 gdb.threads/attach-stopped.c, gdb.threads/attach-stopped.exp,
2678 gdb.threads/attachstop-mt.c, gdb.threads/attachstop-mt.exp: New.
2682 * gdb.arch/thumb-prologue.exp: Do not expect a saved PC.
2686 * gdb.base/info-target.exp: New testcase.
2690 * gdb.cp/hang.exp: Use .cc instead of .C.
2691 * gdb.cp/hang1.cc, gdb.cp/hang2.cc, gdb.cp/hang3.cc: Renamed from ...
2692 * gdb.cp/hang1.C, gdb.cp/hang2.C, gdb.cp/hang3.C: ... here.
2696 * gdb.base/gdb1250.exp: Remove perror.
2697 * lib/mi-support.exp (mi_delete_breakpoints): Match the prompt.
2701 * gdb.dwarf2/dw2-strp.S: Replace .long by .4byte and .value by
2706 * gdb.base/macscp.exp: Enable kfails. Compile with -g3 for GCC.
2711 * gdb.dwarf2/dw2-strp.S, gdb.dwarf2/dw2-strp.exp: New files.
2715 * gdb.mi/mi-syn-frame.exp: Adjust for token disappearance.
2716 * gdb.mi/mi2-syn-frame.exp: Likewise.
2717 * lib/mi-support.exp: Likewise.
2721 * lib/gdb.exp (gdb_continue_to_breakpoint): Allow the caller
2722 to specify regexp for the location to stop at.
2723 * gdb.base/break-always.c: New.
2724 * gdb.base/break-always.exp: New.
2728 * lib/mi-support.exp (mi_runto_helper): Adjust
2729 for the original-location field.
2730 (mi_create_breakpoint, mi_list_breakpoints): New.
2731 * gdb.mi/mi-break.exp: Adjust.
2732 * gdb.mi/mi2-break.exp: Adjust.
2733 * gdb.mi/mi-pending.exp: Adjust.
2734 * gdb.mi/mi-simplerun.exp: Adjust.
2735 * gdb.mi/mi2-simplerun.exp: Adjust.
2736 * gdb.mi/mi-syn-frame.exp: Adjust.
2737 * gdb.mi/mi2-syn-frame.exp: Adjust.
2738 * gdb.mi/mi-until.exp: Adjust.
2739 * gdb.mi/mi2-until.exp: Adjust.
2740 * gdb.mi/mi-var-display.exp: Adjust.
2741 * gdb.mi/mi2-var-display.exp: Adjust.
2742 * gdb.mi/mi-watch.exp: Adjust.
2743 * gdb.mi/mi2-watch.exp: Adjust.
2747 * aclocal.m4: Add override.m4.
2748 * configure: Regenerate.
2752 * gdb.mi/var-cmd.c (do_at_tests): Verify that
2753 '-var-update --all-values' reports new value even the type
2754 of a variable object has changed.
2758 * gdb.dwarf2/dw2-compressed.S, gdb.dwarf2/dw2-compressed.exp: New
2763 * gdb.ada/atomic_enum: New test program.
2764 * gdb.ada/atomic_enum.exp: New testcase.
2768 * gdb.opt/Makefile.in: Fix whitespace.
2772 * gdb.threads/linux-dp.exp: Continue after unrecognized lines.
2776 * gdb.base/hashline1.exp: New testcase.
2777 * gdb.base/hashline2.exp: New testcase.
2778 * gdb.base/hashline2.exp: New testcase.
2782 * gdb.base/step-break.exp, gdb.base/step-break.c: New files.
2786 * gdb.base/attach.exp (do_attach_tests): Matching pattern for
2787 temporary breakpoint to match "Temporary breakpoint".
2788 * gdb.base/break.exp (delete_breakpoints): Likewise.
2789 * gdb.base/call-ar-st.exp (get_debug_format): Likewise.
2790 * gdb.base/commands.exp (temporary_breakpoint_commands): Likewise.
2791 * gdb.base/display.exp: Likewise.
2792 * gdb.base/foll-exec.exp (do_exec_tests): Likewise.
2793 * gdb.base/foll-fork.exp (catch_fork_child_follow): Likewise.
2794 * gdb.base/restore.exp (restore_tests): Likewise.
2795 * gdb.base/sepdebug.exp: Likewise.
2796 * gdb.base/watchpoint.exp: Likewise.
2797 * gdb.mi/mi-cli.exp: Added argument for new "disp" field.
2798 * gdb.mi/mi-pending.exp: Likewise.
2799 * gdb.mi/mi-simplerun.exp (test_running_the_program): Likewise.
2800 * gdb.mi/mi-until.exp (test_runnint_to_foo): Likewise.
2801 * gdb.mi/mi-var-cmd.exp: Likewise.
2802 * gdb.mi/mi-var-display.exp: Likewise.
2803 * gdb.mi/mi2-cli.exp: Likewise.
2804 * gdb.mi/mi2-simplerun.exp (test_running_the_program): Likewise.
2805 * gdb.mi/mi2-until.exp (test_running_to_foo): Likewise.
2806 * gdb.mi/mi2-var-display.exp: Likewise.
2807 * lib/gdb.exp (gdb_breakpoint): Pattern for temporary breakpoint.
2808 * lib/mi-support.exp (mi_runto_helper): Use "after_reason" argument for
2810 (mi_expect_stop): Move after_reason argument to be really after
2811 reason. This is to support fix for PR2424.
2815 * gdb.dwarf2/dw2-ranges.S: New stub `.file' directive.
2819 * gdb.mi/mi-var-cmd.exp: Adjust for appearance of type_changed
2820 field. Add more floating varobj tests.
2821 * gdb.mi/mi2-var-cmd.exp: Adjust for appearance of type_changed
2823 * gdb.mi/var-cmd.c (do_at_tests_callee, do_at_tests): New.
2824 (main): Call do_at_tests.
2825 * lib/mi-support.exp (mi_create_floating_varobj)
2826 (mi_varobj_update_with_type_change): New.
2830 * gdb.mi/mi2-var-display.exp: Added tests for the new -f
2831 option of -var-evaluate-expression.
2832 * gdb.mi/mi2-var-display.exp: Likewise.
2836 Introduce test setup helpers.
2837 * lib/gdb.exp (build_executable, clean_restart)
2838 (prepare_for_testing): New.
2839 * gdb.base/break.exp: Use prepare_for_testing, and clean_restart.
2840 * gdb.base/return.exp: Likewise.
2841 * gdb.base/ending-run.exp: Likewise.
2845 * gdb.mi/mi-async.exp: New test for asynchronous Machine
2846 Interface (MI) responses.
2850 * gdb.cp/breakpoint.cc: New code to test conditions involving
2852 * gdb.cp/breakpoint.exp: Test condition involving member
2857 * lib/mi-support.exp (mi_expect_stop): New.
2858 (mi_run_cmd): Change the
2859 token. Use mi_send_resuming_command, use
2861 (mi_execute_to_helper): Rename to mi_execute_to.
2862 (mi_send_resuming_command): Add more error patterns.
2863 (mi_wait_for_stop): Renamed to...
2864 (mi_get_stop_line): ...this.
2865 (mi_run_inline_test): Adjust.
2867 * gdb.mi/mi-cli.exp: Use mi_execute_to/mi_expect_stop.
2868 * gdb.mi/mi-console.exp: Likewise.
2869 * gdb.mi/mi-pending.exp: Likewise.
2870 * gdb.mi/mi-simplerun.exp: Likewise.
2871 * gdb.mi/mi-stack.exp: Likewise.
2872 * gdb.mi/mi-stepi.exp: Likewise.
2873 * gdb.mi/mi-syn-frame.exp: Add comment.
2874 * gdb.mi/mi-until.exp: Likewise.
2875 * gdb.mi/mi-var-display.exp: Likewise.
2876 * gdb.mi/mi-watch.exp: Likewise.
2877 * gdb.mi/mi2-cli.exp: Likewise.
2878 * gdb.mi/mi2-console.exp: Likewise.
2879 * gdb.mi/mi2-simplerun.exp: Likewise.
2880 * gdb.mi/mi2-stack.exp: Likewise.
2881 * gdb.mi/mi2-stepi.exp: Likewise.
2882 * gdb.mi/mi2-until.exp: Likewise.
2883 * gdb.mi/mi2-var-display.exp: Likewise.
2884 * gdb.mi/mi2-watch.exp: Likewise.
2888 * gdb.base/watch_thread_num.exp: Use gdb_compile_pthreads.
2890 * gdb.cp/mb-templates.exp: Skip test on spu*-*-* targets.
2894 * gdb.mi/mi-disassemble.exp, gdb.mi/mi-stack.exp,
2895 gdb.mi/mi-syn-frame.exp, gdb.mi/mi-var-block.exp,
2896 gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp,
2897 gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-stack.exp,
2898 gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-var-block.exp,
2899 gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp: Update to not
2900 expect an mi error duplicated in stderr.
2904 * gdb.cp/ovldbreak.cc: Add missing bodies for methods foo::foofunc.
2905 * gdb.cp/ovldbreak.exp: Set multiple-symbols to "ask".
2906 Add a couple of tests that verify the behavior when the new setting
2907 is set to "cancel" and "all".
2908 * gdb.cp/method2.exp, gdb.cp/templates.exp: Set multiple-symbols to
2909 "ask" before we start the testing.
2913 * gdb.cp/casts.cc: Add class reference variables.
2914 * gdb.cp/casts.exp: New test cases for up/down casting references.
2918 * gdb.mi/mi-var-display.exp: Stop at end of do_special_tests
2919 instead of beginning to make an extra test pass.
2920 * gdb.mi/mi2-var-display.exp: Likewise.
2924 * gdb.base/break.exp: Mark failures as such. Fix formatting.
2929 * gdb.arch/spu-info.exp (info spu mailbox): Check for correct initial
2930 value. Add xfail for older kernels.
2934 Bring mi-support in line with gdb.exp.
2935 * lib/mi-support.exp (default_mi_gdb_start): Rename from mi_gdb_start.
2936 (mi_gdb_start): New function.
2940 * gdb.mi/mi-var-cmd.exp: Fix a typo.
2944 * gdb.mi/mi-var-display.exp: Remove obsolete xfail.
2945 * gdb.mi/mi2-var-display.exp: Likewise.
2949 * lib/mi-support.exp (mi_create_varobj_checked): New.
2950 (mi_list_varobj_children): Allow to check for a
2952 (mi_list_array_varobj_children): New.
2954 * gdb.mi/mi-var-child.exp: Use mi_create_varobj
2955 and mi_list_varobj_children, as opposed to hardcoding
2957 * gdb.mi/gdb701.exp: Likewise.
2958 * gdb.mi/gdb792.exp: Likewise.
2959 * gdb.mi/mi-var-block.exp: Likewise.
2960 * gdb.mi/mi-var-cmd.exp: Likewise.
2961 * gdb.mi/mi-var-invalidate.exp: Likewise.
2962 * gdb.mi/mi2-var-block.exp: Likewise.
2963 * gdb.mi/mi2-var-child.exp: Likewise.
2964 * gdb.mi/mi2-var-cmd.exp: Likewise.
2965 * gdb.mi/mi2-var-display.exp: Likewise.
2969 Fix random false FAILs on i386.
2970 * gdb.base/prelink.exp: Use `--no-exec-shield' for prelink.
2975 * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Reapply 2008-03-21 changes.
2980 * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Revert 2008-03-21 changes.
2984 * gdb.cp/annota2.exp, gdb.cp/annota3.exp: Remove KFAIL for
2989 * gdb.threads/fork-child-threads.exp: Test next over fork.
2993 * gdb.base/break.exp (rbreak junk): New test for rbreak
2994 "Junk at end of arguments" issue.
2998 * gdb.base/printcmds.exp (test_print_array_constants): Do not expect
2999 *& to work on created array elements.
3000 (Top level): Test print $pc with a file. Test string operations
3002 * gdb.base/ptype.exp: Do not expect *& to work on created array
3007 * gdb.threads/killed.exp, gdb.threads/manythreads.exp,
3008 gdb.threads/staticthreads.exp: Update exit query.
3012 * lib/gdb.exp (gdb_load_cmd): Fix $args typo in timeout error message.
3016 * gdb.base/watchpoint.c (global_ptr, func4): New.
3018 * gdb.base/watchpoint.exp: Call test_inaccessible_watchpoint.
3019 (test_inaccessible_watchpoint): New.
3023 * lib/gdb.exp (gdb_expect): Of all the timeouts provided always
3028 * gdb.base/annota1.exp, gdb.cp/annota2.exp: Update for fewer
3029 frames-invalid annotations.
3033 * gdb.base/assign.exp: avoid same output for different tests.
3037 * gdb.base/sigstep.exp (breakpoint_to_handler): Remove setup_kfail
3039 (breakpoint_to_handler_entry): Ditto.
3043 * gdb.base/ending-run.exp: Use the first line of code inside
3044 function body to test breakpoints.
3045 * gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Adjust the actual
3046 location where the breakpoint is inserted when using the line
3047 where a function is declared. Fix typo in the description of
3049 * gdb.mi/mi-simplerun.exp, gdb.mi/mi2-simplerun.exp: Likewise.
3053 * gdb.arch/i386-sse.exp: avoid same output for two breakpoint setting
3058 * gdb.base/args.exp: avoid same output for tests
3063 * gdb.base/annota1.exp: Adjust for 'info break'
3065 * gdb.base/annota3.exp: Likewise.
3066 * gdb.base/break.exp: Likewise.
3067 * gdb.base/condbreak.exp: Likewise.
3068 * gdb.base/pending.exp: Likewise.
3069 * gdb.base/sepdebug.exp: Likewise.
3070 * gdb.base/unload.exp: Likewise.
3071 * gdb.cp/ovldbreak.exp: Likewise.
3072 * gdb.mi/mi-pending.exp: Likewise.
3076 * gdb.cp/mb-inline.exp: New.
3077 * gdb.cp/mb-inline.h: New.
3078 * gdb.cp/mb-inline1.cc: New.
3079 * gdb.cp/mb-inline2.cc: New.
3083 * gdb.pascal/floats.pas: New test program.
3084 * gdb.pascal/floats.exp: New testcase.
3088 * gdb.base/callfuncs.c (t_float_many_args): New function.
3089 (t_double_many_args): New function.
3090 * gdb.base/callfuncs.exp: Add tests for exceeding float
3091 and double parameters passed through the stack.
3095 * gdb.ada/complete/pck.ads, gdb.ada/complete/pck.adb,
3096 gdb.ada/complete/foo.adb: New files.
3097 * gdb.ada/complete.exp: New testcase.
3101 * gdb.base/whatis-exp.exp: Fix expected result of whatis x+y, x-y, x*y.
3103 * gdb.cp/gdb2384.exp: New file.
3104 * gdb.cp/gdb2384.cc: New file.
3105 * gdb.cp/gdb2384-base.h: New file.
3106 * gdb.cp/gdb2384-base.cc: New file.
3110 * gdb.base/sigall.c (main): Ensure all signals aren't blocked.
3114 * gdb.ada/sym_print_name: New test program.
3115 * gdb.ada/sym_print_name.exp: New testcase.
3119 * gdb.ada/nested/hello.adb: New file.
3120 * gdb.ada/nested.exp: New testcase.
3121 * gdb.ada/Makefile.in (EXECUTABLES): Update list.
3125 * gdb.mi/basic.c (return_1): New function.
3126 * gdb.mi/mi-break.exp: Make sure that failed -break-insert
3127 don't cause future evaluations of function to report
3128 creation of internal breakpoints.
3132 * gdb.mi/mi-break.exp (test_error): New.
3137 * gdb.arch/ppc64-atomic-inst.c: New testcase source file.
3138 * gdb.arch/ppc64-atomic-inst.exp: New testcase expect file.
3142 * gdb.pascal/integers.pas: New test program.
3143 * gdb.pascal/integers.exp: New testcase.
3147 * gdb.pascal/hello.exp (binfile): Add ${EXEEXT}.
3151 * gdb.arch/powerpc-d128-regs.exp: New testcase expect file.
3152 * gdb.arch/powerpc-d128-regs.c: New testcase source file.
3156 * gdb.ada/formatted_ref: New test program.
3157 * gdb.ada/formatted_ref.exp: New testcase.
3159 * gdb.cp/formatted-ref.cc: New file.
3160 * gdb.cp/formatted-ref.exp: New testcase.
3164 * gdb.base/ptype.exp: Add testing of "ptype $pc".
3168 * gdb.mi/mi-file.exp, gdb.mi/mi2-file.exp
3169 (test_file_list_exec_source_file): Update to new macro-info field.
3173 * gdb.ada/exprs: New test program.
3174 * gdb.ada/exprs.exp: New testcase.
3178 * dfp-test.c (DELTA, DELTA_B): New definitions.
3179 (double_val1, double_val2, double_val3, double_val4, double_val5,
3180 double_val6, double_val7, double_val8, double_val9, double_val10,
3181 double_val11, double_val12, double_val13, double_val14, dec32_val1,
3182 dec32_val2, dec32_val3, dec32_val4, dec32_val5, dec32_val6, dec32_val7,
3183 dec32_val8, dec32_val9, dec32_val10, dec32_val11, dec32_val12,
3184 dec32_val13, dec32_val14, dec32_val15, dec32_val16, dec64_val1,
3185 dec64_val2, dec64_val3, dec64_val4, dec64_val5, dec64_val6, dec64_val7,
3186 dec64_val8, dec64_val9, dec64_val10, dec64_val11, dec64_val12,
3187 dec64_val13, dec64_val14, dec64_val15, dec64_val16, dec128_val1,
3188 dec128_val2, dec128_val3, dec128_val4, dec128_val5, dec128_val6,
3189 dec128_val7, dec128_val8, dec128_val9, dec128_val10, dec128_val11,
3190 dec128_val12, dec128_val13, dec128_val14, dec128_val15,
3191 dec128_val16): New global variables.
3192 (decimal_dec128_align): New function.
3193 (decimal_mixed): Likewise.
3194 (decimal_many_args_dec32): Likewise.
3195 (decimal_many_args_dec64): Likewise.
3196 (decimal_many_args_dec128): Likewise.
3197 (decimal_many_args_mixed): Likewise.
3198 * dfp-test.exp: Add tests calling new inferior functions.
3202 * gdb.server/ext-attach.c, gdb.server/ext-attach.exp,
3203 gdb.server/ext-run.exp: New files.
3204 * lib/gdbserver-support.exp (gdbserver_download): New.
3205 (gdbserver_start): New. Update gdbserver expected
3207 (gdbserver_spawn): Use them.
3208 (gdbserver_start_extended): New.
3212 * gdb.base/foll-exec.exp: Update header. Skip on remote targets.
3214 (do_exec_tests): Check for systems which do not support catchpoints.
3216 * gdb.base/foll-fork.exp: Update header. Skip on remote targets.
3217 Run on GNU/Linux. Enable verbose output.
3218 (check_fork_catchpoints): New.
3219 (explicit_fork_child_follow, catch_fork_child_follow)
3220 (tcatch_fork_parent_follow): Update expected messages.
3221 (do_fork_tests): Use check_fork_catchpoints.
3222 * gdb.base/foll-vfork.exp: Update header. Skip on remote targets.
3223 Run on GNU/Linux. Enable verbose output.
3224 (check_vfork_catchpoints): New.
3225 (vfork_parent_follow_to_bp, tcatch_vfork_then_child_follow): Update
3227 (do_vfork_and_exec_tests): Use check_fork_catchpoints.
3231 * lib/gdbserver-support.exp (gdb_target_cmd): Recognize 'unknown
3233 * lib/mi-support.exp (mi_gdb_target_cmd): Same.
3237 * gdb.threads/sigthread.c: Use barriers to ensure that
3238 child_thread and child_thread_two are always initialized before we
3243 * gdb.base/watchpoint-solib.exp: New.
3244 * gdb.base/watchpoint-solib.c: New.
3245 * gdb.base/watchpoint-solib-shr.c: New.
3249 * gdb.base/gdb1056.exp: Add unsigned integer test.
3253 * gdb.base/maint.exp: Tighten patterns looking for .text/.data/.bss.
3257 * gdb.base/expand-psymtabs.exp: Doc fix to the doc fix.
3259 * gdb.base/expand-psymtabs.exp: Doc fix.
3263 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches.
3267 * gdb.mi/mi2-var-display.exp: Add value field to tests for output of
3272 * gdb.threads/thread_events.c: New testcase source file.
3273 * gdb.threads/thread_events.exp: New testcase expect file.
3277 * lib/gdb.exp: Add the variable octal.
3279 * gdb.mi/mi-var-display.exp: Add value field to tests for output of
3285 * gdb.base/float.exp: Allow missing floating point for m68k and
3290 * gdb.mi/basics.c: Setup for testing breakpoints
3292 * gdb.mi/mi-break.exp: Test for breakpoint ignore count.
3293 * gdb.mi/mi-cli.exp: Adjust.
3294 * gdb.mi/mi2-cli.exp: Adjust.
3298 * gdb.mi/mi-var-child.c (do_children_tests): Add 'dummy' integer
3299 and 'dummy_ptr' integer pointer. Initialize struct_declarations
3300 with dummy_ptr's address.
3301 * gdb.mi/var-cmd.c (do_children_tests): Likewise.
3302 * gdb.mi/mi-var-child.exp: int_ptr_ptr is now always "editable" on
3304 * gdb.mi/mi2-var-child.exp: Likewise.
3308 * gdb.ada/null_array: New test program.
3309 * gdb.ada/null_array.exp: New testcase.
3313 * gdb.base/printcmds.exp (test_printf_with_dfp): Update printf calls
3314 with required float modifiers.
3318 * gdb.ada/funcall_param: New test program.
3319 * gdb.ada/funcall_param.exp: New testcase.
3323 * gdb.ada/arrayparam: New test program.
3324 * gdb.ada/arrayparam.exp: New testcase.
3328 * gdb.ada/print_pc.exp: Add verification of where gdb_start_cmd
3329 landed. Should also fix random failures in the test following it.
3333 * gdb.base/dfp-exprs.exp (test_dfp_arithmetic_expressions): Add tests
3334 for expressions with decimal float values.
3335 (test_dfp_conversions): New function to test casts to and from
3336 decimal float types.
3337 Call test_dfp_conversions.
3338 * gdb.base/dfp-test.c (struct decstruct): Add float4 and double8
3340 (main): Initialize ds.float4 and ds.double8 elements.
3341 * gdb.base/dfp-test.exp (d32_set_tests): Fix typo. Adjust expect
3342 string to new error message.
3343 (d64_set_tests): Likewise.
3344 (d128_set_tests): Likewise.
3345 Add tests for expressions with decimal float variables. Add tests for
3346 conversions to and from decimal float types.
3350 * gdb.ada/packed_tagged/comp_bug.adb: New file.
3351 * gdb.ada/packed_tagged.exp: New testcase.
3355 * gdb.ada/homonym/homonym.ads, gdb.ada/homonym/homonym.adb,
3356 gdb.ada/homonym/homonym_main.adb: New files.
3357 * gdb.ada/homonym.exp: New testcase.
3361 * gdb.ada/packed_array.exp: Add testing of references to
3366 * gdb.ada/type_coercion/ident.adb, gdb.ada/type_coercion/assign.adb:
3368 * gdb.ada/type_coercion.exp: New testcase.
3372 * gdb.ada/tagged/pck.ads, gdb.ada/tagged/pck.adb,
3373 gdb.ada/tagged/foo.adb: New file.
3374 * gdb.ada/tagged.exp: New testcase.
3378 * gdb.ada/ptype_field/pck.ads, gdb.ada/ptype_field/pck.adb,
3379 gdb.ada/ptype_field/foo.adb: New files.
3380 * gdb.ada/ptype_field.exp: New testcase.
3384 * gdb.ada/print_pc.exp: New testcase.
3388 * gdb.ada/taft_type/pck.ads, gdb.ada/taft_type/pck.adb,
3389 gdb.ada/taft_type/p.adb: New files.
3390 * gdb.ada/taft_type.exp: New testcase.
3394 * gdb.ada/array_bounds/bar.adb: New file.
3395 * gdb.ada/array_bounds.exp: New testcase.
3399 * gdb.ada/arrayptr/pck.ads, gdb.ada/arrayptr/pck.adb,
3400 gdb.ada/arrayptr/foo.adb: New files.
3401 * gdb.ada/arrayptr.exp: New testcase.
3405 * gdb.base/set-lang-auto.exp: New testcase.
3409 * gdb.ada/fun_addr/foo.adb: New file.
3410 * gdb.ada/fun_addr.exp: New testcase.
3414 * gdb.threads/fork-child-threads.exp, gdb.threads/fork-child-threads.c:
3419 * array_subscript_addr/p.adb: New file.
3420 * array_subscript_addr.exp: New testcase.
3424 * gdb.ada/str_cmp_ref/pck.ads, gdb.ada/str_cmp_ref/foo.adb:
3426 * gdb.ada/str_cmp_ref.exp: New testcase.
3430 * gdb.ada/fun_in_declare/pck.ads, gdb.ada/fun_in_declare/pck.adb,
3431 gdb.ada/fun_in_declare/foo.adb: New files.
3432 * gdb.ada/fun_in_declare.exp: New testcase.
3436 * gdb.ada/ref_param/foo.adb, gdb.ada/ref_param/pck.adb,
3437 gdb.ada/ref_param/pck.ads: New files.
3438 * gdb.ada/ref_param.exp: New testcase.
3442 * gdb.ada/interface/types.ads, gdb.ada/interface/types.adb,
3443 gdb.ada/interface/foo.adb: New files.
3444 * gdb.ada/interface.exp: New testcase.
3448 * gdb.base/multi-forks.exp: Consume all output from child
3449 processes before proceeding to next test.
3453 * configure: Regenerated.
3457 * gdb.ada/fixed_cmp/pck.ads, gdb.ada/fixed_cmp/pck.adb,
3458 gdb.ada/fixed_cmp/fixed.adb: New files.
3459 * gdb.ada/fixed_cmp.exp: New testcase.
3463 * gdb.ada/boolean_expr.exp: New testcase.
3467 * gdb.base/multi-forks.exp: Doc fix.
3471 * gdb.ada/Makefile.in (EXECUTABLES): Update list.
3472 * gdb.ada/char_param.exp: Do not compile our test program with
3473 -gnata, this is unnecessary.
3474 * gdb.ada/char_param/pck.ads: Remove unnecessary "with".
3478 * gdb.ada/print_chars/pck.ads, gdb.ada/print_chars/pck.adb,
3479 gdb.ada/print_chars/foo.adb: New files.
3480 * gdb.ada/print_chars.exp: New testcase.
3484 * gdb.ada/char_param/pck.ads, gdb.ada/char_param/pck.adb,
3485 gdb.ada/char_param/foo.adb: New files.
3486 * gdb.ada/char_param.exp: New testcase.
3490 * gdb.asm/asm-source.exp: Use gdb_get_line_number, instead of
3491 hard-coding source line numbers into the test.
3492 * gdb.asm/asmsrc1.s, gdb.asm/asmsrc2.s: Add comments for
3493 gdb_get_line_number to find.
3497 * gdb.base/ptype.c (highest): New struct type.
3498 (the_highest): New variable of that type.
3499 (main): Add dummy assignment to a field of variable the_highest.
3500 * gdb.base/ptype.exp: Test type printing of our new variable.
3504 * (gdb.base/watch_thread_num.exp): Add breakpoint at thread_function
3505 and record first explicitly generated thread number.
3506 Use that thread number for thread specific watchpoint test.
3507 Add iteration number to repetitive tests.
3512 * gdb.base/expand-psymtabs.c: New testcase
3514 * gdb.base/expand-psymtabs.exp: New testcase
3519 * testsuite/gdb.base/watch_thread_num.c: New testcase source file.
3520 * testsuite/gdb.base/watch_thread_num.exp: New testcase expect file.
3524 * gdb.ada/frame_args/foo.adb: New file.
3525 * gdb.ada/frame_args/pck.ads: New file.
3526 * gdb.ada/frame_args/pck.adb: New file.
3527 * gdb.ada/frame_args.exp: New testcase.
3531 * gdb.base/frame-args.c: New file.
3532 * gdb.base/frame-args.exp: New testcase.
3537 * gdb.base/siginfo-addr.exp, gdb.base/siginfo-addr.c: New.
3541 * gdb.mi/mi-pending.exp: New.
3542 * gdb.mi/mi-pending.c: New.
3543 * gdb.mi/mi-pendshr.c: New.
3547 * gdb.base/default.exp: Update expected output for 'info catch'.
3551 * lib/gdb.exp (build_id_debug_filename_get): OBJCOPY pipe being read
3552 must be set to binary.
3556 * lib/gdb.exp (gdb_gnu_strip_debug): Remove debug format test.
3560 * gdb.server/file-transfer.exp, gdb.server/transfer.txt,
3561 gdb.mi/mi-file-transfer.exp: New.
3565 * gdb.dwarf2/dw2-ranges.S, gdb.dwarf2/dw2-ranges.exp: New files.
3569 * gdb.trace/backtrace.exp: Fix a typo.
3570 * gdb.trace/circ.exp: Likewise.
3571 * gdb.trace/collection.exp: Likewise.
3572 * gdb.trace/limits.exp: Likewise.
3573 * gdb.trace/report.exp: Likewise.
3574 * gdb.trace/tfind.exp: Likewise.
3575 * gdb.trace/while-dyn.exp: Likewise.
3579 * gdb.mi/mi2-var-child.exp, gdb.mi/mi-var-child.exp: Variables
3580 objects of pointers that can't be dereferenced are now
3585 * Makefile.in (Makefile): Do not depend on target_makefile_frag.
3586 (target_cpu): Remove.
3590 * gdb.base/ending-run.exp: Expect the list of cleared
3591 breakpoint to come in natural order, not the reversed one.
3595 * gdb.mi/mi-var-child.c (do_child_deletion): New.
3596 * gdb.mi/mi-var-child.exp: Run child_deletion tests.
3600 * gdb.base/printcmds.exp: New function
3601 test_printf_with_dfp.
3605 * gdb.disasm/t01_mov.s: Remove carriage returns.
3606 * gdb.disasm/t02_mova.s: Ditto.
3607 * gdb.disasm/t03_add.s: Ditto.
3608 * gdb.disasm/t04_sub.s: Ditto.
3609 * gdb.disasm/t05_cmp.s: Ditto.
3610 * gdb.disasm/t06_ari2.s: Ditto.
3611 * gdb.disasm/t07_ari3.s: Ditto.
3612 * gdb.disasm/t08_or.s: Ditto.
3613 * gdb.disasm/t09_xor.s: Ditto.
3614 * gdb.disasm/t10_and.s: Ditto.
3615 * gdb.disasm/t11_logs.s: Ditto.
3616 * gdb.disasm/t12_bit.s: Ditto.
3617 * gdb.disasm/t13_otr.s: Ditto.
3621 * gdb.cp/arg-reference.exp, gdb.cp/arg-reference.c: New files.
3625 * gdb.base/dfp-test.exp: Fail gracefully if toolchain does not
3626 provide DFP support.
3630 * gdb.arch/altivec-abi.exp: Run multiple times for GCC on GNU/Linux.
3631 Test "set powerpc vector-abi". Skip auto-detection tests for old
3636 * lib/gdb.exp, gdb.base/sepdebug.exp: Replace usage of eq and ne
3637 with [string compare].
3641 * gdb.base/sepdebug.exp (binfile): Add ${EXEEXT}.
3642 * gdb.base/sepsymtab.exp (binfile): Add ${EXEEXT}.
3646 * gdb.opt/clobbered-registers-O2.c: New testcase source file.
3647 * gdb.opt/clobbered-registers-O2.exp: New testcase expect file.
3648 * gdb.opt/Makefile.in: New makefile.
3649 * Makefile.in: Create new directory "gdb.opt".
3650 * configure.ac: Add "gdb.opt" directory.
3651 * configure: Regenerated.
3655 * gdb.cp/mb-ctor.exp: Check skip_cplus_tests.
3656 * gdb.cp/mb-templates.exp: Check skip_cplus_tests.
3661 * gdb.base/dfp-exprs.exp: new file adding tests for Decimal
3662 Floating Point expressions.
3663 * gdb.base/dfp-test.exp: new file adding tests for Decimal
3664 Floating Point variables.
3665 * gdb.base/dfp-test.c: new file containing program with Decimal
3666 Floating variables, used by gdb.base/dfp-test.exp.
3670 * gdb.threads/multi-create.c, gdb.threads/multi-create.exp: New.
3674 * gdb.arch/altivec-abi.exp (compile_flags): Use -mabi=altivec when
3675 compiling test case with GCC.
3676 * gdb.arch/altivec-regs.exp (compile_flags): Likewise.
3680 * gdb.arch/altivec-regs.exp (decimal_vector): Adjust for output
3685 * gdb.base/dbx.exp: Add missing "-re " operator.
3689 * configure.ac: Added gdb.modula2/Makefile to AC_OUTPUT.
3690 * configure.ac: Removed trailing spaces after backslash.
3691 * gdb.modula2: New directory.
3692 * gdb.modula2/Makefile.in: New file.
3693 * gdb.modula2/unbounded-array.exp: New file.
3694 * gdb.modula2/unbounded1.c: New file.
3698 * gdb.xml/tdesc-regs.exp: Add PowerPC support.
3702 * gdb.base/sigstep.c (main): Add checks for
3703 return values for setitimer call.
3704 Call setitimer again with itimer = ITIMER_REAL
3705 if first call to setitimer fails.
3709 * lib/gdb.exp (gdb_load_cmd): Print out $loadtimeout instead
3714 * gdb.server/server-run.exp: Test for dynamic linker symbols.
3718 * lib/gdb.exp (gdb_run_cmd): Move comment outside
3719 of gdb_expect call, to avoid interruption.
3723 * gdb.base/whatis.c (v_long_long, v_signed_long_long)
3724 (v_unsigned_long_long, v_long_long_array)
3725 (v_signed_long_long_array, v_unsigned_long_long_array)
3726 (slong_long_addr, a_slong_long_addr, v_long_long_pointer)
3727 (v_signed_long_long_pointer, v_unsigned_long_long_pointer)
3728 [!NO_LONG_LONG]: New.
3729 (t_struct, v_struct2, t_union, v_union2) [!NO_LONG_LONG]: Add
3732 (v_long_long_func, v_signed_long_long_func)
3733 (v_unsigned_long_long_func) [!NO_LONG_LONG]: New.
3734 (main) [!NO_LONG_LONG]: Initialize long long variants.
3736 * gdb.base/whatis.exp: If board file requests no_long_long, build
3737 test with NO_LONG_LONG defined. Test long long, signed long long,
3738 and unsigned long long variants but only if board file doesn't
3744 * Makefile.in (ALL_SUBDIRS): Add gdb.pascal.
3745 * configure.ac (AC_OUTPUT): Add gdb.pascal/Makefile.
3746 * configure: Regenerated.
3747 * gdb.pascal/Makefile.in, gdb.pascal/hello.exp, gdb.pascal/hello.pas,
3748 gdb.pascal/types.exp, lib/pascal.exp: New files.
3752 * gdb.cp/classes.exp (do_tests): Always step to the line after the
3754 * gdb.mi/mi-simplerun.exp (test_controlled_execution): Allow finish
3755 to return to the call.
3756 * gdb.mi/mi2-simplerun.exp (test_controlled_execution): Likewise.
3757 * gdb.mi/mi-return.exp (test_return_simple): Likewise.
3758 * gdb.mi/mi2-return.exp (test_return_simple): Likewise.
3759 * gdb.mi/mi-until.exp (test_until): Likewise.
3760 * gdb.mi/mi2-until.exp (test_until): Likewise.
3764 * gdb.mi/var-cmd.c (do_locals_tests): Define lcharacter as a
3766 * gdb.mi/mi-var-cmd.exp, gdb.mi/mi2-var-cmd.exp: Use lcharacter[0].
3770 * gdb.threads/watchthreads.c (thread_function): Sleep between
3772 * gdb.threads/watchthreads.exp: Allow two watchpoints to trigger
3773 at once for S/390. Generate matching fails and passes.
3777 * gdb.mi/var-cmd.c (do_children_tests): Initialize
3778 the 'struct_declarations' variable to zeros.
3782 * gdb.cp/mb-ctor.cc: New.
3783 * gdb.cp/mb-ctor.exp: New.
3784 * gdb.cp/mb-templates.cc: New.
3785 * gdb.cp/mb-templates.exp: New.
3789 * gdb.cp/pass-by-ref.cc, gdb.cp/pass-by-ref.exp: New files.
3793 * configure.ac: Do gdb.stabs tests by default on Cygwin and MinGW
3795 * configure: Regenerate.
3799 * gdb.base/annota1.exp: Adjust for 'info break'
3801 * gdb.base/annota3.exp: Likewise.
3802 * gdb.base/break.exp: Likewise.
3803 * gdb.base/condbreak.exp: Likewise.
3804 * gdb.base/pending.exp: Likewise.
3805 * gdb.base/sepdebug.exp: Likewise.
3806 * gdb.base/unload.exp: Likewise.
3807 * gdb.base/ovldbreak.exp: Likewise.
3811 * gdb.base/pending.exp: No longer expect "Pending breakpoint resolved"
3813 * gdb.base/chng-syms.exp: Likewise.
3814 * gdb.base/unload.exp: Likewise.
3818 * gdb.base/sepdebug.exp (test_different_dir): Append to pf_prefix.
3822 * schedlock.c (NUM): Change to 1.
3823 (main): Use args[0] for the main thread.
3824 * schedlock.exp: Only expect two threads. Only issue one pass or fail
3825 regardless of the number of threads.
3829 * gdb.mi/mi-watch.exp (test_watchpoint_all): Pass the watchpoint
3831 (test_watchpoint_triggering): XFAIL the sw watchpoint scope
3833 * gdb.mi/mi2-watch.exp (test_watchpoint_all): Pass the
3834 watchpoint type down.
3835 (test_watchpoint_triggering): XFAIL the sw watchpoint scope
3840 * gdb.mi/mi-watch.exp (test_watchpoint_all): New function.
3841 Move all the tests here and run them twice, once using software
3842 watchpoints and once using hardware watchpoints.
3843 * gdb.mi/mi2-watch.exp (test_watchpoint_all): Likewise.
3847 * gdb.base/solib-weak.exp (do_test): Adjust the file names for each
3852 * lib/gdb.exp (build_id_debug_filename_get): Improve check for
3855 * lib/gdb.exp (gdb_compile): OpenBSD doesn't need -dl, and doesn't
3856 know about $ORIGIN. Calculate output dir from $dest instead of
3857 using ${objdir}/{$subdir}.
3861 * gdb.base/gcore-buffer-overflow.exp: Check whether gdb supports
3862 gcore, before continuing with the test.
3866 * gdb.mi/mi2-watch.exp: Set can-use-hw-watchpoints to 0 if required.
3867 * gdb.mi/mi-watch.exp: Likewise.
3872 * gdb.arch/i386-sse.exp: Do not expect character constants.
3873 * gdb.base/charsign.c, gdb.base/charsign.exp: Delete.
3874 * gdb.base/display.exp: Allow print/s.
3875 * gdb.base/printcmds.exp, gdb.base/setvar.exp: Revert signed
3876 and unsigned char array changes.
3880 * gdb.base/display.exp: Add tests for printf %p.
3884 * gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert
3885 the dll name to unicode.
3889 * gdb.base/default.exp (show version): Update the version text.
3890 * gdb.gdb/selftest.exp (xgdb is at prompt): Likewise.
3894 * gdb.base/gcore-buffer-overflow.c, gdb.base/gcore-buffer-overflow.exp:
3899 * lib/gdb.exp (build_id_debug_filename_get): New function.
3900 * gdb.base/sepdebug.exp: Reflect the changes in the heading comment.
3901 Remove the generate DEBUG file for the future testcase runs.
3902 New testcase for the NT_GNU_BUILD_ID retrieval.
3903 Move the final testing step to ...
3904 (test_different_dir): ... a new function.
3905 New parameter XFAIL to XFAIL all the tests performed.
3906 New parameter TEST_DIFFERENT_DIR parametrizing the directory.
3907 New parameter TYPE to PF_PREFIX all the tests performed.
3911 * gdb.mi/mi-var-cp.cc (path_expression): New
3913 * gdb.mi/mi-var-cp.exp: Run path exression tests.
3917 * gdb.cp/cp-relocate.exp (add-symbol-file): Change addresses
3918 to fit into SPU Local Store memory.
3922 * gdb.base/default.exp: Adjust the expected output of "info
3923 warranty" after the switch to GPLv3.
3927 * lib/gdb.exp (default_gdb_init): Increase expect buffer size
3928 to 30000 (from 20000).
3932 Switch the license of all .exp files to GPLv3.
3933 Switch the license of all .f and .f90 files to GPLv3.
3934 Switch the license of all .s and .S files to GPLv3.
3938 * configure.ac: Switch license to GPLv3.
3942 Switch the licensing to GPLv3 for all .ads and .adb files.
3946 * gdb.base/callfuncs.exp (do_function_calls): Use t_double_int
3948 * gdb.base/callfuncs.c (t_double_int, t_int_double): New.
3952 * gdb.base/step-line.c: Switch license to GPL version 3, and
3953 update copyright year.
3954 * gdb.base/step-line.inp: Likewise.
3958 * gdb.base/gdb1555.exp: Make expected output immune to formatting
3959 changes inside gdb1555.c.
3960 * gdb.base/pending.exp: Likewise.
3964 * config/default.exp: New file.
3968 * gdb.base/prologue.c, gdb.base/prologue.exp: New.
3969 * lib/gdb.exp (gdb_breakpoint): Handle "temporary".
3973 * gdb.base/dump.exp: Force the correct endianness for binary
3974 formats not carrying this information.
3978 * gdb.threads/staticthreads.exp: Match .*sem_post.
3982 * gdb.base/readline.exp (operate_and_get_next): Match the final
3987 * lib/mi-support.exp (mi_gdb_target_load): Do a "kill" prior
3992 * gdb.cp/ref-params.exp (gdb_start_again): Invoke `gdb_exit'
3993 prior to `gdb_start'.
3997 * config/sid.exp (gdb_load): Add test for empty argument. Adjust
3998 return value to be compatible with gdb_run_cmd in lib/gdb.exp.
3999 Remove call to gdb_unload.
4004 * gdb.base/unload.c (dlopen, dlsym, dlclose, dlerror): Define
4006 (SHLIB_NAME): Delete definition. Always pass dlerror to fprintf.
4007 * gdb.base/unload.exp: Use shared library test routines.
4011 * gdb.base/solib-symbol.exp: New file (testcase multiple symbol lookup).
4012 * gdb.base/solib-symbol-lib.c: Likewise.
4013 * gdb.base/solib-symbol-main.c: Likewise.
4017 * config/gdbserver.exp (gdb_reconnect): New.
4018 * gdb.base/so-disc-shr.c, gdb.base/solib-disc.c,
4019 gdb.base/solib-disc.exp: New files.
4020 * lib/gdb.exp (gdb_test_multiple): Allow tests to match "Ending
4022 (gdb_compile): Add shlib_load flag.
4023 * lib/gdbserver-support.exp (gdbserver_run): Save the protocol and
4025 (gdbserver_reconnect): New.
4030 * gdb.base/annota3.exp: Test for if construct.
4034 * gdb.base/chng-syms.exp: Handle glibc's __GI_exit.
4039 * gdb.base/display.exp: Allow a newline after display/i.
4040 * gdb.base/pc-fp.exp: Likewise.
4041 * gdb.base/sigbpt.exp: Likewise.
4045 * gdb.xml/tdesc-regs.exp: Add MIPS support. Allow multiple
4046 required features to be included.
4050 * gdb.threads/manythreads.exp: Prevent expect buffer overflow
4051 in info threads output.
4056 * gdb.arch/spu-info.exp: New testcase.
4057 * gdb.arch/spu-info.c: New file.
4061 * gdb.arch/thumb-prologue.c: Record the breakpoint address in
4062 tpcs_offset. Restore lr after the call.
4063 * gdb.arch/thumb-prologue.exp: Use tpcs_offset.
4067 * lib/gdbserver-support.exp (gdbserver_spawn): Only match full_buffer.
4068 (gdbserver_run): Kill any running gdbserver.
4069 * lib/mi-support.exp (mi_gdb_target_load): Likewise.
4073 * gdb.base/sigbpt.exp: Preset segv_addr.
4077 * lib/gdb.exp (gdb_compile): Add support for Windows DLLs.
4078 (gdb_compile_shlib): Likewise.
4079 (skip_shlib_tests, gdb_download, gdb_load_shlibs): New.
4080 (default_gdb_init): Clear cleanfiles.
4081 (gdb_finish): Delete recorded cleanfiles.
4082 * lib/gdbserver-support.exp (gdbserver_spawn): Use gdb_download.
4084 * gdb.base/gdb1555.exp: Use skip_shlib_tests and gdb_load_shlibs.
4085 Do not use isnative.
4086 * gdb.base/pending.exp, gdb.base/shlib-call.exp, gdb.base/shreloc.exp,
4087 gdb.base/so-impl-ld.exp: Likewise.
4088 * gdb.base/solib-weak.exp: Likewise. Skip for DLL targets.
4089 * gdb.base/unload.exp: Likewise. Do not pass empty option to
4094 * config/unknown.exp: Remove.
4098 * gdb.base/info-proc.exp: Check is_remote.
4102 * gdb.base/gcore.exp: Initialize variable core_supported.
4106 * gdb.threads/linux-dp.exp: Allow non-hexadecimal IDs also.
4110 * gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs.
4111 * gdb.threads/print-threads.exp (test_all_threads): Allow
4112 negative and hexadecimal thread IDs.
4116 * gdb.java/jprint.java (public): Avoid invalid call to static
4121 * gdb.mi/mi-console.exp, gdb.mi/gdb669.exp, gdb.mi/mi-cli.exp,
4122 gdb.mi/mi-regs.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp,
4123 gdb.mi/mi2-cli.exp, gdb.mi/mi2-console.exp, gdb.mi/mi2-disassemble.exp,
4124 gdb.mi/mi2-regs.exp, gdb.mi/mi2-stepi.exp, gdb.mi/mi-disassemble.exp,
4125 gdb.mi/mi2-syn-frame.exp: Remove commands already run in mi_run_to_main.
4129 * gdb.base/overlays.exp: Add support for targets with only code
4130 overlay support, not data overlay. Support spu-*-* target in
4132 * gdb.base/ovlymgr.c: Provide stubs for spu target.
4133 * gdb.base/spu.ld: New file.
4137 * gdb.cp/virtfunc.exp (proc do_tests): Test stepping through a thunk.
4141 * gdb.fortran/complex.exp, gdb.fortran/complex.f: New files.
4145 * gdb.java/jmain.exp: Handle demangled names with and without method
4150 * gdb.mi/mi-syn-frame.c (main, foo, bar)
4151 (have_a_very_merry_interrupt): Remove calls to puts.
4152 * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Do not expect
4154 * lib/mi-support.exp (mi_gdb_test): Check gdb,noinferiorio. Correct
4160 * gdb.base/auxv.exp (core_works): Also check is_remote.
4161 * gdb.base/checkpoint.exp, gdb.base/multi-forks.exp: Likewise.
4165 * gdb.base/sigaltstack.exp: Use 'srcfile' in error
4166 message, not the undefined 'module' variable.
4167 * gdb.base/siginfo.exp: Likewise.
4168 * gdb.base/sigstep.exp: Likewise.
4169 * lib/gdbserver-support.exp (gdb_target_cmd): Quote
4171 * lib/mi-support.exp (mi_gdb_target_cmd): Likewise.
4175 * config/sim.exp (gdb_target_sim): Just return with -1 when setting
4176 target sim fails. Return 0 otherwise.
4177 (gdb_load): Return prematurely if gdb_target_sim fails.
4181 * gdb.base/setshow.exp: Reset height after having set it to 100.
4185 * gdb.mi/mi2-stack.exp: update from mi-stack.exp.
4189 * gdb.mi/mi2-var-display.exp: Test for the fullname field.
4193 * gdb.mi/mi-var-cmd.exp: Delete varobjs left by previous
4194 tests. Run the frozen varobjs test.
4195 * gdb.mi/var-cmd.c (do_frozen_tests): New.
4196 * lib/mi-support.exp (mi_varobj_update): Fix thinko.
4200 * gdb.base/type-opaque-lib.c, gdb.base/type-opaque-main.c,
4201 gdb.base/type-opaque.exp: New files.
4205 * gdb.mi/mi-var-child.c
4206 (do_children_tests): User char[2] instead of
4207 char so that automatic printing of pointers to char
4208 don't give unpredicable result.
4209 * gdb.mi/var-cmd.c (do_locals_test): Initialize
4211 * gdb.mi/mi-var-child.exp: Step to right line
4212 of do_children_tests.
4213 * gdb.mi/mi2-var-child.exp: Likewise.
4214 * gdb.mi/mi-var-cmd.exp: Step to right line of
4216 (do_children_tests): User char[2] instead of
4217 char so that automatic printing of pointers to char
4218 don't give unpredicable result.
4219 * gdb.mi/mi2-var-cmd.exp: Likewise.
4220 * lib/mi-support.exp (mi_continue_to_line):
4221 Pass test name to mi_wait_for_stop.
4225 * gdb.asm/asm-source.exp: Remove d10v case.
4226 * lib/gdb.exp (skip_cplus_tests): Likewise.
4227 * gdb.asm/d10v.inc: Deleted.
4231 * gdb.base/infnan.c, gdb.base/infnan.exp: New files.
4235 * config/netware.exp: Delete file.
4239 * gdb.dwarf2/dw2-noloc.S: New file.
4240 * gdb.dwarf2/dw2-noloc.exp: New file.
4244 * gdb.cp/method2.cc: New test.
4245 * gdb.cp/method2.exp: New test.
4246 * gdb.cp/Makefile.in (EXECUTABLES): Add method2.
4250 * gdb.ada/exec_changed.exp: Avoid "set confirm off".
4254 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
4258 * config/gdbserver.exp (gdbserver_gdb_load): Update argument list.
4259 (gdb_load): Delete, replace with...
4260 (gdb_reload): ...this.
4261 * gdb.server/server-run.exp: Use gdb_load and gdbserver_run.
4262 * gdb.server/server-mon.exp: Likewise.
4263 * lib/gdb.exp (gdb_run_cmd): Use gdb_reload.
4264 (gdb_start_cmd): New.
4265 (gdb_file_cmd): Save the last loaded file.
4267 (gdb_gnu_strip_debug): Use transform.
4268 * lib/gdbserver-support.exp (gdbserver_spawn): Move file download
4269 support here. Use new $last_loaded_file. Check mtime.
4270 (gdb_target_cmd): Handle ObjC failure case.
4271 (infer_host_exec): Delete.
4272 (gdbserver_load): Rename to...
4273 (gdbserver_run): ...this. Simplify.
4274 * lib/mi-support.exp (mi_gdb_file_cmd): Set last_loaded_file.
4275 (mi_gdb_load): Move most contents to a new function...
4276 (mi_gdb_target_load): ...here. Simplify call to gdbserver_gdb_load.
4277 (mi_run_cmd): Use mi_gdb_target_load.
4278 * gdb.base/break.exp, gdb.base/ending-run.exp, gdb.base/pending.exp,
4279 gdb.base/sepdebug.exp, gdb.base/unload.exp, gdb.objc/objcdecode.exp:
4281 * gdb.base/charsign.exp: Remove incorrect comment.
4282 * gdb.base/dbx.exp (gdb_file_cmd): Set last_loaded_file.
4283 * gdb.ada/exec_changed.exp, gdb.ada/null_record.exp, gdb.ada/start.exp,
4284 gdb.base/start.exp: Use gdb_start_cmd.
4289 * gdb.base/sigbpt.exp: Fix the message when skipping test.
4290 * gdb.base/signull.exp: Similarly.
4294 * lib/gdb.exp (gdb_run_cmd): Use -notransfer to make start-up
4295 messages available to test cases (like chng-sym.exp).
4299 * gdb.arch/altivec-regs.exp (decimal_vector): Adjust for output
4304 * gdb.arch/powerpc-prologue.c (optimized_1_marker, gdb2029_marker)
4306 (main): Call optimized_1.
4307 (gdb2029): Correct typos. Call gdb2029_marker.
4308 * gdb.arch/powerpc-prologue.exp: Run new test. Use a breakpoint
4313 * gdb.gdb/selftest.exp (do_steps_and_nexts): Match spaces as well
4314 as tabs. Remove redundant test pattern.
4318 * gdb.base/long_long.exp: Accept optional symbol name in <...>
4319 for /a format output.
4323 * gdb.base/checkpoint.exp: Rewrite 600 checkpoint test to
4324 collect output incrementally.
4328 * gdb.mi/mi-var-cmd.exp: Allow value without "..." string
4329 for -var-create lpcharacter test.
4330 * gdb.mi/mi2-var-cmd.exp: Likewise.
4334 * gdb.mi/mi-var-cmd.exp: Allow -var-update null_ptr test to
4335 pass on targets where address zero is readable.
4339 * gdb.xml/tdesc-arch.exp: Test is unsupported on target with
4340 just a single architecture.
4344 * gdb.base/callfuncs.exp (do_get_all_registers): Remove.
4345 (fetch_all_registers): New function, uses gdb_test_multiple and
4346 exp_continue to fetch inferior output line-by-line.
4347 Replace all uses of do_get_all_registers by fetch_all_registers.
4351 * gdb.base/relativedebug.exp: Skip test if gdb,nosignals is set
4356 * gdb.threads/manythreads.exp: Use $message string for
4357 consistancy; add a default (timeout) case.
4361 * gdb.base/watchpoint.exp: Fix truncated comment.
4365 * Makefile.in: Remove spurious single-quotes from sed command.
4369 * gdb.mi/mi-var-cmd.exp: Correct test name. Allow any value for
4371 * gdb.mi/mi2-var-cmd.exp: Likewise.
4375 * gdb.dwarf2/dw2-producer.S: New file.
4376 * gdb.dwarf2/dw2-producer.exp: New testcase.
4380 * gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp
4381 * gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp
4382 * gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp
4383 * gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp
4384 * gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp
4385 Revert tests to use mi_gdb_test and include value field in output
4390 * gdb.arch/i386-signal.c, gdb.arch/i386-signal.exp: New files.
4394 * gdb.base/maint.exp: Remove full paths from test names.
4395 * gdb.base/prelink.exp, gdb.cp/cp-relocate.exp,
4396 gdb.xml/tdesc-errors.exp, gdb.xml/tdesc-xinclude.exp: Likewise.
4400 * gdb.ada/catch_ex.exp: Fix a couple of copy/paste typos.
4404 * gdb.server/server-mon.exp: New test.
4408 * gdb.cp/cp-relocate.cc, gdb.cp/cp-relocate.exp: New.
4412 * gdb.arch/iwmmxt-regs.c, gdb.arch/iwmmxt-regs.exp: Update
4413 register capitalization.
4417 * gdb.mi/mi-var-invalidate.exp: New file.
4421 * gdb.arch/iwmmxt-regs.c, gdb.arch/iwmmxt-regs.exp: New.
4425 * tdesc-arch.exp (set_arch): Add KFAIL for missing OS ABI handlers.
4429 * gdb.xml/single-reg.xml, gdb.xml/tdesc-regs.exp,
4430 gdb.xml/core-only.xml, gdb.xml/extra-regs.xml: New files.
4434 * gdb.mi/mi-var-block.exp, gdb.mi/mi2-var-block.exp
4435 * gdb.mi/mi-var-child.exp, gdb.mi/mi2-var-child.exp
4436 * gdb.mi/mi-var-child-f.exp, gdb.mi/mi-var-cmd.exp
4437 * gdb.mi/mi2-var-cmd.exp, gdb.mi/mi-var-display.exp
4438 * gdb.mi/mi2-var-display.exp, gdb.mi/gdb701.exp
4439 * gdb.mi/gdb792.exp, lib/mi-support.exp:
4440 Update tests to include value field in output of -var-create.
4444 * gdb.mi/mi-var-child.exp: Fix matching display of function value.
4448 * gdb.xml/bad-include.xml, gdb.xml/inc-2.xml, gdb.xml/inc-body.xml,
4449 gdb.xml/includes.xml, gdb.xml/tdesc-xinclude.exp: New files.
4453 * gdb.threads/threadapply.exp: check that frame is not changed by
4454 the thread apply all command.
4458 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches.
4460 * gdb.dwarf2/dup-psym.S: Use .2byte/.4byte instead of .short/.int
4461 in the dwarf sections.
4462 * gdb.dwarf2/mac-fileno.S: Likewise.
4464 * gdb.base/callfuncs.exp (do_get_all_registers): Filter out
4465 bspstore register on ia64.
4469 * gdb.cp/annota3.exp ("watch triggered on a.x"): Match optional
4470 "frame-begin" annotation.
4472 * gdb.cp/annota2.exp ("watch triggered on a.x"): Allow arbitrary
4473 number of "frames-invalid" annotations.
4477 * gdb.base/commands.exp: Call if_commands_test.
4478 (gdb_test_no_prompt, if_commands_test): New.
4482 * gdb.threads/sigthread.c (NSIGS): Make bigger.
4486 * gdb.dwarf2/dw2-basic.S: Use .2byte/.4byte/.8byte instead of
4487 .short/.int/.quad in the dwarf sections.
4488 * gdb.dwarf2/dw2-intercu.S: Likewise.
4489 * gdb.dwarf2/dw2-intermix.S: Likewise.
4493 * gdb.base/charsign.exp, gdb.base/charsign.c: New files.
4494 * gdb.arch/i386-sse.exp: Check $xmm.v16_int8 printing as a number
4496 * gdb.base/printcmds.exp: Sign-provided CHARs now became arrays.
4497 * gdb.base/setvar.exp: Likewise.
4501 * gdb.base/corefile.exp: Allow non-empty argument list in reinit
4504 * gdb.base/multi-forks.exp ("restart $i"): Also match
4505 __kernel_syscall_via_break.
4509 * lib/mi-support.exp (mi_delete_varobj): New.
4510 * gdb.mi/mi-var-cp.exp: Run the reference_to_struct
4512 * gdb.mi/mi-var-cp.cc (reference_to_struct): New function.
4513 (main): Call the above.
4514 (reference_update_test, base_in_reference_test)
4515 (reference_to_pointer): Delete the created varobjs.
4519 * Makefile.in (ALL_SUBDIRS): Add gdb.xml.
4520 * configure: Regenerated.
4521 * configure.ac (AC_OUTPUT): Add gdb.xml/Makefile.
4522 * gdb.xml/Makefile.in, gdb.xml/tdesc-arch.exp,
4523 gdb.xml/tdesc-bogus.xml, gdb.xml/tdesc-errors.exp,
4524 gdb.xml/trivial.xml, gdb.xml/tdesc-unknown.xml: New files.
4525 * lib/gdb.exp (gdb_skip_xml_test): New function.
4529 * gdb.base/sigrepeat.exp: Correct error message.
4534 * gdb.arch/i386-gnu-cfi.exp, gdb.arch/i386-gnu-cfi.c,
4535 gdb.arch/i386-gnu-cfi-asm.S: New files.
4539 * lib/gdb.exp: Abort on missing `site.exp'.
4544 * gdb.base/included.c, gdb.base/included.exp,
4545 gdb.base/included.h: New files.
4549 * gdb.base/bigcore.c (RLIMIT_CAP): Define.
4550 (maximize_rlimit): Reduce limits on 64-bit systems.
4555 * gdb.arch/altivec-regs.exp: Initialise variable endianness in
4560 * gdb.mi/mi-basics.exp, gdb.mi/mi2-basics.exp (test_dir_specification)
4561 (test_path_specification): Use objdir instead of srcdir to always
4562 get an absolute filename.
4566 * gdb.cp/member-ptr.cc (class Padding): Make contents public.
4570 * gdb.mi/mi-var-cp.cc (reference_update_tests):
4571 Make sure the variable we're using is in scope.
4572 (reference_to_pointer): Likewise.
4576 * gdb.ada/catch_ex.exp: Call unsupported and stop if the runtime
4577 has no debug information.
4581 * gdb.base/annota1.exp: Remove extra send_gdb.
4585 * gdb.base/relativedebug.c, gdb.base/relativedebug.exp: New files.
4589 * gdb.arch/i386-size-overlap.c, gdb.arch/i386-size-overlap.exp: New.
4594 * gdb.mi/mi-var-cmd.exp: Expect lpcharacter to update when
4595 lcharacter or linteger change. Correct duplicated test name.
4596 * gdb.mi/mi2-var-cmd.exp: Likewise.
4600 * gdb.threads/sigthread.c, gdb.threads/sigthread.exp: New.
4604 * gdb.base/nofield.c: New file.
4605 * gdb.base/nofield.exp: New testcase.
4609 * gdb.mi/mi-var-cp.exp: New test for references to pointers.
4611 * gdb.mi/mi-var-cp.cc: (reference_to_pointer): New procedure for above
4616 * gdb.mi/mi-var-cmd.exp: Add tests for unreadable varobjs.
4620 * lib/mi-support.exp (mi_runto_helper): Expect two prompts
4625 * gdb.base/annota3.exp ($binfile): Append $EXEEXT.
4626 Expect ".exe" extension.
4630 * gdb.base/charset.exp: Add explicit filename to break.
4631 * gdb.base/dbx.exp: Add explicit filename to breaks.
4635 * gdb.mi/mi-file.exp: Use mi_gdb_file_cmd instead of mi_gdb_load.
4636 * gdb.mi/mi2-file.exp: Likewise.
4640 Implement specification of MI tests as comments
4641 in C and C++ sources.
4642 * lib/mi-support.exp (mi_autotest_data): New variable.
4643 (mi_autotest_source): New variable.
4644 (count_newlines, mi_prepare_inline_tests)
4645 (mi_get_inline_test, mi_continue_to_line)
4646 (mi_run_inline_test, mi_tbreak)
4647 (mi_send_resuming_command, mi_wait_for_stop): New functions.
4648 * gdb.mi/mi-var-cp.exp: Move most content to the C file.
4650 * gdb.mi/mi-var-cp.cc: Define tests here.
4654 Simplify usage of mi_continue_to.
4655 * lib/mi-support.exp (mi_runto_helper): Renamed
4656 from mi_runto, added new parameter 'run_or_continue'.
4657 (mi_runto): Use mi_runto_helper.
4658 (mi_continue_to): Accept just function name as parameter.
4659 Use mi_runto_helper.
4660 * gdb.mi/mi-var-cmd.exp: Adjust to changes.
4661 * gdb.mi/mi2-var-cmd.exp: Likewise.
4665 Make this testcase a bit more realistic. The current code
4666 is too simplistic, and allows the compiler to optimize out
4667 some of the entities we need for this testcase.
4668 * gdb.ada/null_record/bar.ads (Void_Star): New type.
4669 (Do_Nothing): Add extra parameter.
4670 * gdb.ada/null_record/bar.adb (Do_Nothing): Likewise.
4671 * gdb.ada/null_record/null_record.adb: Fake use of type Empty
4672 by using a variable of type Void_Star.
4676 * gdb.ada/catch_ex/foo.adb: New file.
4677 * gdb.ada/catch_ex.exp: New testcase.
4681 * gdb.base/shreloc.exp: Use ldflags instead of additional_flags to
4682 pass --image-base to linker.
4687 * gdb.base/readline.exp: Set $TERM. Test arrow keys in
4692 * gdb.cp/classes.exp (test_pointers_to_class_members): Update expected
4693 output. Test the types of members and member pointers.
4694 * gdb.cp/inherit.exp (test_print_mi_member_types): Remove KFAILs for
4696 * gdb.cp/member-ptr.exp: Search for a comment instead of a
4697 statement. Enable for GCC. Update expected output for some tests
4698 and add new tests. Remove obsolete GCC KFAILs. Allow GCC's class
4700 * gdb.cp/member-ptr.cc (Padding, Padding::vspacer, Base, Base::get_x)
4701 (Base::vget_base, Left, Left::vget, Right, Right::vget, Diamond)
4702 (Diamond::vget_base): New.
4703 (main): Add new tests.
4704 * gdb.cp/printmethod.exp: Update expected output for member functions.
4705 * gdb.cp/virtfunc.exp (test_virtual_calls): Add a KFAIL for
4710 * gdb.threads/tls.exp: Allow stops in sem_post.
4714 * gdb.base/annota1.exp: Allow .*printf in backtraces.
4715 * gdb.base/annota3.exp: Likewise.
4716 * gdb.base/sigstep.exp (advancei): Fail if we hit the breakpoint
4717 again (instead of timing out).
4718 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add an XFAIL for
4720 * gdb.java/jmisc.exp: Adjust to work with method signatures including
4721 return types. Add kfails for GDB bugs 2214 and 2215. Move exit
4722 test from jmisc1.exp.
4723 * gdb.java/jmisc1.exp: Delete.
4724 * gdb.java/jprint.exp: Adjust to work with method signatures including
4726 * gdb.objc/basicclass.exp: Update for gobjc 4.1 debug info.
4727 * gdb.threads/linux-dp.exp: Don't be confused by program output.
4728 * lib/java.exp (compile_java_from_source): Pass the correct type
4733 * gdb.arch/i386-prologue.c (stack_align_ecx): Renamed from stack_align.
4734 (stack_align_edx): New function.
4735 (stack_align_eax): New function.
4736 (main): Add calls to stack_align_edx and stack_align_eax.
4737 * gdb.arch/i386-prologue.exp: Replace stack_align with stack_align_ecx.
4738 Add testing for the cases where the register used during a stack
4739 realignment is edx. Same for eax.
4743 * lib/gdb.exp: Don't pass -fpic to gcc on Cygwin, MinGW
4744 and generic PE targets.
4748 * gdb.ada/array_return.exp: Update copyright date list.
4752 * gdb.ada/array_return/pck.ads (Small_Float_Vector): New type.
4753 (Create_Small_Float_Vector): New function.
4754 * gdb.ada/array_return/pck.adb (Create_Small_Float_Vector): Add
4756 * gdb.ada/array_return/p.adb: Use new type and function from
4758 * gdb.ada/array_return.exp: Add a test verifying that GDB is
4759 able to print the value returned by a function returning an
4764 * gdb.arch/i386-prologue.exp: Remove calls to setup_kfail.
4765 The associated tests should be PASSing.
4769 Test for base in references.
4770 * gdb.mi/mi-var-cp.cc: Add test code.
4771 * gdb.mi/mi-var-cp.exp: Test for bases in references.
4772 * gdb.mi/mi-watch.exp: Adjust to mi_runto changes.
4773 * gdb.mi/mi2-watch.exp: Likewise.
4774 * lib/mi-support.exp (mi_runto): Use temporary breakpoint.
4775 (mi_list_varobj_children): New function.
4779 * lib/mi-support.exp
4780 (mi_runto): Accept "()" after function name.
4781 (mi_create_varobj): New function.
4782 (mi_varobj_update): New function.
4783 (mi_Check_varobj_value): New function.
4784 * gdb.mi/mi-var-cp.exp: New file.
4785 * gdb.mi/mi-var-cp.cc: New file.
4789 * gdb.base/solib-weak.c, gdb.base/solib-weak.exp, gdb.base/weaklib1.c,
4790 gdb.base/weaklib2.c: New files.
4794 * gdb.threads/linux-dp.exp: Adjust regexps used to scan thread
4795 info. Adjust test names.
4797 * gdb.base/break.c (main): Move position of malloc.
4798 * gdb.base/break.exp: Revert mistaken checkin.
4802 * gdb.mi/mi-var-cmd.exp: Check -var-update after
4803 assignement of arrays and function pointers.
4804 * gdb.mi/var-cmd.c: Add declaration necessary for above
4809 * gdb.base/break.c (main): Call malloc.
4811 * gdb.threads/linux-dp.exp: Read thread table before and after
4812 creating each philosopher and verify it.
4818 * gdb.base/ending-run.exp: Flatten expect script stepping out of
4819 main to remove duplication. Add start function of the form
4820 '_*start[1-9]*'. Add RVDS start function.
4824 * gdb.arch/thumb-prologue.c, gdb.arch/thumb-prologue.exp: New files.
4828 * gdb.asm/asm-source.exp: Add "spu*-*-*" target.
4829 * gdb.asm/spu.inc: New file.
4830 * gdb.base/term.exp: Disable if [target_info exists noargs].
4831 * gdb.gdb/complaints.exp: Disable if ![isnative].
4832 * gdb.gdb/selftest.exp: Likewise.
4833 * gdb.gdb/observer.exp: Likewise.
4834 * gdb.gdb/xfullpath.exp: Likewise.
4835 * gdb.base/attach.exp: Disable on SPU target.
4836 * gdb.cp/bs145503.exp: Likewise.
4837 * gdb.cp/exception.exp: Likewise.
4838 * gdb.cp/userdef.exp: Likewise.
4842 * gdb.stabs/weird.exp (print_weird_var): Don't send extra \n.
4846 * gdb.base/completion.exp: Fix completion tests for
4848 * gdb.base/help.exp (help_test_raw, test_class_help)
4849 (test_prefix_command_help): Move...
4850 * lib/gdb.exp: Here.
4851 * gdb.base/main.exp: Adjust.
4852 * gdb.cp/maint.exp: Adjust.
4853 * gdb.trace/tracecmd.exp: Use test_help_class.
4857 * gdb.stabs/weird.exp (print_weird_var): Use
4858 gdb_test_multiple instead of gdb_expect.
4862 * gdb.base/help.exp (help_test_raw): New.
4863 (test_class_help): New.
4864 (test_prefix_command_help): New.
4869 * gdb.base/constvars.c (main): Write to crass and crips, so that
4870 they are allocated by the compiler.
4874 * gdb.base/multi-forks.exp: Use "detach fork" instead of
4879 * lib/gdbserver-support.exp (gdb_target_cmd): Anchor the ends
4884 * gdb.base/sepdebug.exp: Remove debug format test.
4885 * lib/gdb.exp (gdb_gnu_strip_debug): Perform debug format test.
4887 * gdb.base/sepsymtab.c, gdb.base/sepsymtab.exp: New.
4891 * gdb.threads/manythreads.c (thread_function, main): Don't cast
4892 int to pointer or pointer to int.
4893 * gdb.threads/manythreads.exp: Don't expect the string "LWP".
4897 * gdb.base/annota1.exp, gdb.base/maint.exp: Use string_to_regexp.
4901 * gdb.threads/tls-nodebug.c, gdb.threads/tls-nodebug.exp: New test.
4906 * gdb.cp/call-c.cc, gdb.cp/call-c.exp, gdb.cp/call-c-1.c: New.
4910 * gdb.ada/arrayidx.exp: Remove calls to setup_kfail now that
4911 the corresponding bug has been fixed in GDB (PR/2018).
4915 * gdb.base/subst.exp: New testcase.
4919 * gdb.ada/array_return/pck.ads: Add copyright notice.
4920 * gdb.ada/array_return/pck.adb: Likewise.
4921 * gdb.ada/array_return/p.adb: Likewise.
4922 * gdb.ada/exec_changed/first.adb: Likewise.
4923 * gdb.ada/exec_changed/second.adb: Likewise.
4927 * gdb.ada/watch_arg/watch.adb: New file.
4928 * gdb.ada/watch_arg.exp: New testcase.
4932 * gdb.mi/mi-basics.exp (test_path_specification): Pass orig_path
4933 via string_to_regexp.
4934 * gdb.mi/mi2-basics.exp: Likewise.
4938 * abug.exp, cpu32bug.exp, est.exp hmsirom.exp, nind.exp:
4939 Remove unused / obsolete files.
4943 * gdb.base/multi-forks.exp: Include __kernel_vsyscall in regexp.
4947 * gdb.mi/mi-stack.exp (test_stack_args_listing): Test that
4948 HIGH_FRAME argument to -stack-list-arguments can be larger than
4949 the number of frames.
4953 * gdb.base/args.c (main): Add breakpoint marker.
4954 * gdb.base/args.exp: Use args_test for tests. Add new tests which
4955 really test empty arguments.
4956 (args_load): Delete.
4961 * gdb.mi/mi-file.exp (test_file_list_exec_source_files): Just
4966 * gdb.mi/mi-stack.exp (test_stack_frame_listing): Test that
4967 HIGH_FRAME argument to -stack-list-locals can be larger than
4968 the number of frames.
4972 * lib/gdb.exp (skip_altivec_tests): Fix apparent typo,
4973 '$' in front of skip_vmx_tests_saved when setting that.
4977 * gdb.base/trace-commands.exp: New file.
4982 * gdb.base/step-bt.exp: Make hexadecimal address optional in
4983 expected output of the backtrace commands.
4987 * gdb.arch/altivec-abi.exp: Replace gdb_suppress_entire_file with
4988 untested followed by return combination.
4989 * gdb.arch/altivec-regs.exp: Likewise.
4990 * gdb.arch/e500-abi.exp: Likewise.
4991 * gdb.arch/e500-regs.exp: Likewise.
4992 * gdb.arch/gdb1291.exp: Likewise.
4993 * gdb.arch/gdb1431.exp: Likewise.
4994 * gdb.arch/gdb1558.exp: Likewise.
4995 * gdb.arch/i386-prologue.exp: Likewise.
4996 * gdb.arch/i386-unwind.exp: Likewise.
4997 * gdb.asm/asm-source.exp: Likewise.
4998 * gdb.base/a2-run.exp: Likewise.
4999 * gdb.base/advance.exp: Likewise.
5000 * gdb.base/all-bin.exp: Likewise.
5001 * gdb.base/annota1.exp: Likewise.
5002 * gdb.base/annota3.exp: Likewise.
5003 * gdb.base/args.exp: Likewise.
5004 * gdb.base/arithmet.exp: Likewise.
5005 * gdb.base/assign.exp: Likewise.
5006 * gdb.base/async.exp: Likewise.
5007 * gdb.base/attach.exp: Likewise.
5008 * gdb.base/bang.exp: Likewise.
5009 * gdb.base/bigcore.exp: Likewise.
5010 * gdb.base/bitfields.exp: Likewise.
5011 * gdb.base/bitfields2.exp: Likewise.
5012 * gdb.base/break.exp: Likewise.
5013 * gdb.base/call-sc.exp: Likewise.
5014 * gdb.base/call-strs.exp: Likewise.
5015 * gdb.base/callfuncs.exp: Likewise.
5016 * gdb.base/checkpoint.exp: Likewise.
5017 * gdb.base/chng-syms.exp: Likewise.
5018 * gdb.base/code-expr.exp: Likewise.
5019 * gdb.base/commands.exp: Likewise.
5020 * gdb.base/completion.exp: Likewise.
5021 * gdb.base/cond-expr.exp: Likewise.
5022 * gdb.base/condbreak.exp: Likewise.
5023 * gdb.base/consecutive.exp: Likewise.
5024 * gdb.base/constvars.exp: Likewise.
5025 * gdb.base/corefile.exp: Likewise.
5026 * gdb.base/cvexpr.exp: Likewise.
5027 * gdb.base/dbx.exp: Likewise.
5028 * gdb.base/define.exp: Likewise.
5029 * gdb.base/detach.exp: Likewise.
5030 * gdb.base/display.exp: Likewise.
5031 * gdb.base/dump.exp: Likewise.
5032 * gdb.base/ena-dis-br.exp: Likewise.
5033 * gdb.base/ending-run.exp: Likewise.
5034 * gdb.base/environ.exp: Likewise.
5035 * gdb.base/eval-skip.exp: Likewise.
5036 * gdb.base/exprs.exp: Likewise.
5037 * gdb.base/fileio.exp: Likewise.
5038 * gdb.base/finish.exp: Likewise.
5039 * gdb.base/float.exp: Likewise.
5040 * gdb.base/foll-exec.exp: Likewise.
5041 * gdb.base/foll-fork.exp: Likewise.
5042 * gdb.base/foll-vfork.exp: Likewise.
5043 * gdb.base/freebpcmd.exp: Likewise.
5044 * gdb.base/funcargs.exp: Likewise.
5045 * gdb.base/gcore.exp: Likewise.
5046 * gdb.base/gdb1090.exp: Likewise.
5047 * gdb.base/gdb1250.exp: Likewise.
5048 * gdb.base/huge.exp: Likewise.
5049 * gdb.base/info-proc.exp: Likewise.
5050 * gdb.base/interrupt.exp: Likewise.
5051 * gdb.base/jump.exp: Likewise.
5052 * gdb.base/langs.exp: Likewise.
5053 * gdb.base/lineinc.exp: Likewise.
5054 * gdb.base/list.exp: Likewise.
5055 * gdb.base/logical.exp: Likewise.
5056 * gdb.base/long_long.exp: Likewise.
5057 * gdb.base/macscp.exp: Likewise.
5058 * gdb.base/maint.exp: Likewise.
5059 * gdb.base/mips_pro.exp: Likewise.
5060 * gdb.base/miscexprs.exp: Likewise.
5061 * gdb.base/multi-forks.exp: Likewise.
5062 * gdb.base/opaque.exp: Likewise.
5063 * gdb.base/overlays.exp: Likewise.
5064 * gdb.base/pc-fp.exp: Likewise.
5065 * gdb.base/pointers.exp: Likewise.
5066 * gdb.base/printcmds.exp: Likewise.
5067 * gdb.base/psymtab.exp: Likewise.
5068 * gdb.base/ptype.exp: Likewise.
5069 * gdb.base/recurse.exp: Likewise.
5070 * gdb.base/relational.exp: Likewise.
5071 * gdb.base/relocate.exp: Likewise.
5072 * gdb.base/remote.exp: Likewise.
5073 * gdb.base/reread.exp: Likewise.
5074 * gdb.base/restore.exp: Likewise.
5075 * gdb.base/return.exp: Likewise.
5076 * gdb.base/return2.exp: Likewise.
5077 * gdb.base/scope.exp: Likewise.
5078 * gdb.base/sect-cmd.exp: Likewise.
5079 * gdb.base/sep.exp: Likewise.
5080 * gdb.base/sepdebug.exp: Likewise.
5081 * gdb.base/setshow.exp: Likewise.
5082 * gdb.base/setvar.exp: Likewise.
5083 * gdb.base/sigall.exp: Likewise.
5084 * gdb.base/sigbpt.exp: Likewise.
5085 * gdb.base/signals.exp: Likewise.
5086 * gdb.base/signull.exp: Likewise.
5087 * gdb.base/sizeof.exp: Likewise.
5088 * gdb.base/solib.exp: Likewise.
5089 * gdb.base/step-line.exp: Likewise.
5090 * gdb.base/step-test.exp: Likewise.
5091 * gdb.base/structs.exp: Likewise.
5092 * gdb.base/structs2.exp: Likewise.
5093 * gdb.base/term.exp: Likewise.
5094 * gdb.base/twice.exp: Likewise.
5095 * gdb.base/until.exp: Likewise.
5096 * gdb.base/varargs.exp: Likewise.
5097 * gdb.base/volatile.exp: Likewise.
5098 * gdb.base/watchpoint.exp: Likewise.
5099 * gdb.base/whatis-exp.exp: Likewise.
5100 * gdb.base/whatis.exp: Likewise.
5101 * gdb.cp/ambiguous.exp: Likewise.
5102 * gdb.cp/annota2.exp: Likewise.
5103 * gdb.cp/annota3.exp: Likewise.
5104 * gdb.cp/bool.exp: Likewise.
5105 * gdb.cp/breakpoint.exp: Likewise.
5106 * gdb.cp/casts.exp: Likewise.
5107 * gdb.cp/class2.exp: Likewise.
5108 * gdb.cp/classes.exp: Likewise.
5109 * gdb.cp/cplusfuncs.exp: Likewise.
5110 * gdb.cp/ctti.exp: Likewise.
5111 * gdb.cp/derivation.exp: Likewise.
5112 * gdb.cp/exception.exp: Likewise.
5113 * gdb.cp/gdb1355.exp: Likewise.
5114 * gdb.cp/hang.exp: Likewise.
5115 * gdb.cp/inherit.exp: Likewise.
5116 * gdb.cp/local.exp: Likewise.
5117 * gdb.cp/m-data.exp: Likewise.
5118 * gdb.cp/m-static.exp: Likewise.
5119 * gdb.cp/member-ptr.exp: Likewise.
5120 * gdb.cp/method.exp: Likewise.
5121 * gdb.cp/misc.exp: Likewise.
5122 * gdb.cp/namespace.exp: Likewise.
5123 * gdb.cp/overload.exp: Likewise.
5124 * gdb.cp/ovldbreak.exp: Likewise.
5125 * gdb.cp/pr-1023.exp: Likewise.
5126 * gdb.cp/pr-1210.exp: Likewise.
5127 * gdb.cp/pr-574.exp: Likewise.
5128 * gdb.cp/printmethod.exp: Likewise.
5129 * gdb.cp/psmang.exp: Likewise.
5130 * gdb.cp/ref-params.exp: Likewise.
5131 * gdb.cp/ref-types.exp: Likewise.
5132 * gdb.cp/rtti.exp: Likewise.
5133 * gdb.cp/templates.exp: Likewise.
5134 * gdb.cp/try_catch.exp: Likewise.
5135 * gdb.cp/userdef.exp: Likewise.
5136 * gdb.cp/virtfunc.exp: Likewise.
5137 * gdb.disasm/am33.exp: Likewise.
5138 * gdb.disasm/h8300s.exp: Likewise.
5139 * gdb.disasm/mn10300.exp: Likewise.
5140 * gdb.disasm/sh3.exp: Likewise.
5141 * gdb.disasm/t01_mov.exp: Likewise.
5142 * gdb.disasm/t02_mova.exp: Likewise.
5143 * gdb.disasm/t03_add.exp: Likewise.
5144 * gdb.disasm/t04_sub.exp: Likewise.
5145 * gdb.disasm/t05_cmp.exp: Likewise.
5146 * gdb.disasm/t06_ari2.exp: Likewise.
5147 * gdb.disasm/t07_ari3.exp: Likewise.
5148 * gdb.disasm/t08_or.exp: Likewise.
5149 * gdb.disasm/t09_xor.exp: Likewise.
5150 * gdb.disasm/t10_and.exp: Likewise.
5151 * gdb.disasm/t11_logs.exp: Likewise.
5152 * gdb.disasm/t12_bit.exp: Likewise.
5153 * gdb.disasm/t13_otr.exp: Likewise.
5154 * gdb.hp/gdb.aCC/optimize.exp: Likewise.
5155 * gdb.hp/gdb.aCC/watch-cmd.exp: Likewise.
5156 * gdb.hp/gdb.base-hp/callfwmall.exp: Likewise.
5157 * gdb.hp/gdb.base-hp/dollar.exp: Likewise.
5158 * gdb.hp/gdb.base-hp/hwwatchbus.exp: Likewise.
5159 * gdb.hp/gdb.base-hp/pxdb.exp: Likewise.
5160 * gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise.
5161 * gdb.hp/gdb.base-hp/reg.exp: Likewise.
5162 * gdb.hp/gdb.base-hp/sized-enum.exp: Likewise.
5163 * gdb.hp/gdb.compat/xdb1.exp: Likewise.
5164 * gdb.hp/gdb.compat/xdb3.exp: Likewise.
5165 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
5166 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
5167 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
5168 * gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.
5169 * gdb.mi/gdb701.exp: Likewise.
5170 * gdb.mi/gdb792.exp: Likewise.
5171 * gdb.mi/mi-basics.exp: Likewise.
5172 * gdb.mi/mi-break.exp: Likewise.
5173 * gdb.mi/mi-cli.exp: Likewise.
5174 * gdb.mi/mi-console.exp: Likewise.
5175 * gdb.mi/mi-disassemble.exp: Likewise.
5176 * gdb.mi/mi-eval.exp: Likewise.
5177 * gdb.mi/mi-file.exp: Likewise.
5178 * gdb.mi/mi-read-memory.exp: Likewise.
5179 * gdb.mi/mi-regs.exp: Likewise.
5180 * gdb.mi/mi-return.exp: Likewise.
5181 * gdb.mi/mi-simplerun.exp: Likewise.
5182 * gdb.mi/mi-stack.exp: Likewise.
5183 * gdb.mi/mi-stepi.exp: Likewise.
5184 * gdb.mi/mi-syn-frame.exp: Likewise.
5185 * gdb.mi/mi-until.exp: Likewise.
5186 * gdb.mi/mi-var-block.exp: Likewise.
5187 * gdb.mi/mi-var-child.exp: Likewise.
5188 * gdb.mi/mi-var-cmd.exp: Likewise.
5189 * gdb.mi/mi-var-display.exp: Likewise.
5190 * gdb.mi/mi-watch.exp: Likewise.
5191 * gdb.mi/mi2-basics.exp: Likewise.
5192 * gdb.mi/mi2-break.exp: Likewise.
5193 * gdb.mi/mi2-cli.exp: Likewise.
5194 * gdb.mi/mi2-console.exp: Likewise.
5195 * gdb.mi/mi2-disassemble.exp: Likewise.
5196 * gdb.mi/mi2-eval.exp: Likewise.
5197 * gdb.mi/mi2-file.exp: Likewise.
5198 * gdb.mi/mi2-read-memory.exp: Likewise.
5199 * gdb.mi/mi2-regs.exp: Likewise.
5200 * gdb.mi/mi2-return.exp: Likewise.
5201 * gdb.mi/mi2-simplerun.exp: Likewise.
5202 * gdb.mi/mi2-stack.exp: Likewise.
5203 * gdb.mi/mi2-stepi.exp: Likewise.
5204 * gdb.mi/mi2-syn-frame.exp: Likewise.
5205 * gdb.mi/mi2-until.exp: Likewise.
5206 * gdb.mi/mi2-var-block.exp: Likewise.
5207 * gdb.mi/mi2-var-child.exp: Likewise.
5208 * gdb.mi/mi2-var-cmd.exp: Likewise.
5209 * gdb.mi/mi2-var-display.exp: Likewise.
5210 * gdb.mi/mi2-watch.exp: Likewise.
5211 * gdb.stabs/exclfwd.exp: Likewise.
5212 * gdb.stabs/weird.exp: Likewise.
5213 * gdb.threads/gcore-thread.exp: Likewise.
5214 * gdb.trace/actions.exp: Likewise.
5215 * gdb.trace/backtrace.exp: Likewise.
5216 * gdb.trace/circ.exp: Likewise.
5217 * gdb.trace/collection.exp: Likewise.
5218 * gdb.trace/deltrace.exp: Likewise.
5219 * gdb.trace/infotrace.exp: Likewise.
5220 * gdb.trace/limits.exp: Likewise.
5221 * gdb.trace/packetlen.exp: Likewise.
5222 * gdb.trace/passc-dyn.exp: Likewise.
5223 * gdb.trace/passcount.exp: Likewise.
5224 * gdb.trace/report.exp: Likewise.
5225 * gdb.trace/save-trace.exp: Likewise.
5226 * gdb.trace/tfind.exp: Likewise.
5227 * gdb.trace/tracecmd.exp: Likewise.
5228 * gdb.trace/while-dyn.exp: Likewise.
5229 * gdb.trace/while-stepping.exp: Likewise.
5233 * gdb.base/step-bt.c: New file.
5234 * gdb.base/step-bt.exp: New testcase.
5238 * config/monitor.exp (gdb_load): Remove support for obsolete
5239 download-write-size.
5240 * gdb.base/remote.exp: Likewise. Update all callers of
5245 * cursal.exp: Pass binfile to gdb_load.
5249 * gdb.base/cursal.exp: Add "" to gdb_load call.
5253 * gdb.asm/asm-source.exp: Add alpha-*-netbsd* to the list of
5258 * gdb.cp/userdef.cc, gdb.cp/userdef.exp: New tests for unary
5263 * gdb.base/completion.exp: Update for change in "file" behavior.
5264 * gdb.stabs/weird.exp: Likewise.
5265 * lib/mi-support.exp (mi_gdb_file_cmd): Likewise.
5266 * lib/gdb.exp (gdb_file_cmd): Likewise. Kill the program explicitly.
5270 * gdb.base/auxv.exp: Skip on non-linux, non-solaris targets.
5271 * gdb.base/cursal.exp: Use gdb_file_cmd first, then separate gdb_load.
5275 * gdb.base/default.exp: Update source command error message.
5276 * gdb.base/help.exp: Update 'help source' message.
5280 * gdb.cp/bs15503.exp: Update comment for no longer crashing
5285 * gdb.base/ifelse.exp: Remove troublesome 'got here' messages.
5289 * gdb.arch/i386-size.c, gdb.arch/i386-size.exp: New files.
5293 * gdb.threads/print-threads.exp: Use gdb_breakpoint.
5297 * gdb.base/long_long.exp (gdb_test_long_long): Exclude
5298 *-*-openbsd* from targets for wich we expect ARM FPA floating
5303 * gdb.cp/annota3.exp: Expect frame-begin annotation.
5307 * gdb.base/annota3.exp: Expect frame-begin annotation.
5311 * gdb.base/help.exp: Adjust "help unset" test to accept
5312 any list of unset commands.
5317 * gdb.cp/ref-params.exp: New test.
5318 * gdb.cp/ref-params.cc: New source file.
5319 * gdb.cp/Makefile.in (EXECUTABLES): Add ref-params.
5323 * gdb.arch/alpha-step.exp (test_stepi): Do not include trailing
5324 spaces/tabs in regular expressions since they might not be there.
5328 * gdb.base/ifelse.exp: New file.
5332 * gdb.base/huge.c: Allow CRASH_GDB to be set from command
5334 * gdb.base/huge.exp: Loop over compilation to find a size that
5336 * gdb.base/remote.exp: Correct expected strings.
5337 * gdb.dwarf2/mac-fileno.S: Avoid # comments.
5341 * gdb.base/store.exp: Don't use gdb_suppress_entire_file.
5345 * gdb.base/gdb1555.exp: Use gdb_compile_shlib. Skip if not
5350 * gdb.stabs/exclfwd.exp: Skip the test if configure did not
5351 enable stabs testing.
5355 * gdb.base/auxv.exp: Intercept undefined command messages before
5356 gdb_test_multiple does.
5360 * Makefile.in (host_alias): Remove.
5361 (target_alias): Use @target_noncanonical@.
5362 (site.exp): Don't set host_alias.
5363 * aclocal.m4: Remove contents. Include acx.m4.
5364 * configure: Regenerated.
5365 * configure.ac: Use ACX_NONCANONICAL_TARGET.
5369 * lib/gdb.exp (gdb_load_cmd): New.
5371 * gdb.base/fileio.c: Add system(NULL) test.
5372 * gdb.base/fileio.exp: Check it.
5374 * gdb.base/break.c: Add 10a breakpoint at }
5375 * gdb.base/break.exp: Add test for breakpoint at }
5376 * gdb.cp/anon-union.cc: Add code at end of function.
5377 * gdb.cp/anon-union.exp: Adjust end of function breakpoint.
5378 * gdb.mi/var-cmd.c: Add code at end of function.
5379 * gdb.mi/mi-var-display.exp: Adjust end of next.
5380 * gdb.mi/mi2-var-display.exp: Likewise.
5381 * gdb.base/fileio.c: Add stop function and insert calls at
5383 * gdb.base/fileio.exp: Breakpoint stop function and remove
5384 explicit line number references.
5388 * gdb.base/del.exp (test_delete_alias): New function.
5389 Now check that both "del" and "d" work as aliases for "delete".
5393 * gdb.base/a2-run.exp: Allow part of test to run when args aren't
5394 required. Check for spurious output after program exits normally.
5398 * gdb.base/relocate.exp: Use gdb_file_cmd rather than
5399 gdb_load, so it works in the simulator.
5403 * gdb.base/bang.exp: Ignore unexpected output between the
5404 "program exited normally" and the gdb prompt, as many other
5409 * gdb.base/help.exp: Make "delete checkpoint" part option for
5410 "help d" and "help delete" tests.
5414 * gdb.mi/mi-basics.exp: Add missing serial number to
5415 expected output in some mi_gdb_test statements.
5416 * gdb.mi/mi2-basics.exp: Likewise.
5420 * gdb.base/del.c: New file.
5421 * gdb.base/del.exp: New testcase.
5425 * gdb.base/break.exp: Do not assume a breakpoint on
5426 main will actually be in $srcfile when optimizing.
5427 * gdb.base/savedregs.exp: Do not require that the dummy
5428 frame location match up to a symbol and source file location.
5429 * gdb.mi/mi-regs.exp (111-data-list-register-values x): "No registers"
5430 will get printed without a mi_cmd_data_list_register_values prefix.
5431 (*-data-list-register-*): Correct regular expressions to expect the new
5432 pseudo d? floating point registers.
5433 * gdb.mi/mi2-regs.exp: Likewise.
5437 * gdb.cp/m-static.h (class gnu_obj_4): Add dummy member.
5438 * gdb.cp/m-static.cc (main): Write to test4.dummy, so that test4
5439 is allocated by the compiler.
5440 * gdb.mi/var-cmd.c: (do_special_tests): Write to u, anonu, s,
5441 anons, e, anone to force their allocation by the compiler.
5445 * gdb.base/help.exp: Update expected text for help d and
5450 * gdb.asm/asm-source.exp: Add powerpc-*-netbsd* to the list of
5455 * gdb.base/sigbpt.exp (stepi_out): FAIL when inserting a
5456 single-step breakpoint fails; make this a KFAIL on
5458 * gdb.base/siginfo.exp: Likewise.
5459 * gdb.base/sigstep.exp (advance, advancei): Likewise.
5463 * gdb.base/multi-forks.exp: Modify patterns for "run to exit",
5464 which may have to consume output from other forks.
5465 Add tests to make sure that "delete fork" succeeded.
5470 Add support for the Renesas M32C and M16C.
5472 * gdb.asm/asm-source.exp: Add m32c target.
5473 * gdb.asm/m32c.inc: Support for m32c target.
5477 * gdb.base/commands.exp (recursive_source_test): New test.
5481 * gdb.base/float.exp: Add pattern for sparc targets.
5485 * gdb.base/commands.exp (stray_arg0_test): New test.
5489 * gdb.mi/mi-until.exp: kfail broken until command.
5490 * gdb.mi/mi2-until.exp: Ditto.
5494 * gdb.mi/mi-var-child-f.exp, gdb.mi/array.f: New files.
5498 * gdb.base/prelink.exp: Anchor tested-for regular expression
5503 * gdb.base/assign.exp: Correct fail message.
5507 * lib/compiler.c: Extract armcc version number.
5508 * lib/compiler.cc: Ditto.
5512 * gdb.arch/altivec-abi.exp: Use nowarnings instead of
5513 additional_flags=-w.
5514 * gdb.arch/altivec-regs.exp: Ditto.
5515 * gdb.arch/e500-abi.exp: Ditto.
5516 * gdb.arch/e500-regs.exp: Ditto.
5517 * gdb.base/all-bin.exp: Ditto.
5518 * gdb.base/annota1.exp: Ditto.
5519 * gdb.base/annota3.exp: Ditto.
5520 * gdb.base/args.exp: Ditto.
5521 * gdb.base/arithmet.exp: Ditto.
5522 * gdb.base/assign.exp: Ditto.
5523 * gdb.base/async.exp: Ditto.
5524 * gdb.base/bang.exp: Ditto.
5525 * gdb.base/break.exp: Ditto.
5526 * gdb.base/call-rt-st.exp: Ditto.
5527 * gdb.base/completion.exp: Ditto.
5528 * gdb.base/cond-expr.exp: Ditto.
5529 * gdb.base/condbreak.exp: Ditto.
5530 * gdb.base/consecutive.exp: Ditto.
5531 * gdb.base/define.exp: Ditto.
5532 * gdb.base/display.exp: Ditto.
5533 * gdb.base/ena-dis-br.exp: Ditto.
5534 * gdb.base/environ.exp: Ditto.
5535 * gdb.base/eval-skip.exp: Ditto.
5536 * gdb.base/info-proc.exp: Ditto.
5537 * gdb.base/jump.exp: Ditto.
5538 * gdb.base/logical.exp: Ditto.
5539 * gdb.base/long_long.exp: Ditto.
5540 * gdb.base/maint.exp: Ditto.
5541 * gdb.base/miscexprs.exp: Ditto.
5542 * gdb.base/pc-fp.exp: Ditto.
5543 * gdb.base/pointers.exp: Ditto.
5544 * gdb.base/relational.exp: Ditto.
5545 * gdb.base/reread.exp: Ditto.
5546 * gdb.base/sect-cmd.exp: Ditto.
5547 * gdb.base/sep.exp: Ditto.
5548 * gdb.base/sepdebug.exp: Ditto.
5549 * gdb.base/until.exp: Ditto.
5550 * gdb.base/whatis-exp.exp: Ditto.
5551 * gdb.cp/annota2.exp: Ditto.
5552 * gdb.cp/annota3.exp: Ditto.
5553 * gdb.trace/actions.exp: Ditto.
5554 * gdb.trace/backtrace.exp: Ditto.
5555 * gdb.trace/circ.exp: Ditto.
5556 * gdb.trace/collection.exp: Ditto.
5557 * gdb.trace/deltrace.exp: Ditto.
5558 * gdb.trace/infotrace.exp: Ditto.
5559 * gdb.trace/limits.exp: Ditto.
5560 * gdb.trace/packetlen.exp: Ditto.
5561 * gdb.trace/passc-dyn.exp: Ditto.
5562 * gdb.trace/passcount.exp: Ditto.
5563 * gdb.trace/report.exp: Ditto.
5564 * gdb.trace/save-trace.exp: Ditto.
5565 * gdb.trace/tfind.exp: Ditto.
5566 * gdb.trace/tracecmd.exp: Ditto.
5567 * gdb.trace/while-dyn.exp: Ditto.
5568 * gdb.trace/while-stepping.exp: Ditto.
5569 * lib/gdb.exp: Ditto.
5570 (gdb_compile): Handle nowarning option.
5574 * gdb.base/prelink.c, gdb.base/prelink-lib.c: Update FSF address.
5575 * gdb.base/prelink.exp: Likewise. Add -q to prelink runs.
5576 Rename executable to prelinkt. Don't re-prelink if we didn't
5577 get a core file. Test prelink -u exit status to tell whether
5578 prelinking failed. Use gdb_test_multiple.
5582 * gdb.cp/inherit.exp (test_print_mi_member_types): New function.
5583 (do_tests): Call it.
5587 * gdb.base/prelink.exp: New test.
5588 * gdb.base/prelink.c, gdb.base/prelink-lib.c: New sources.
5592 * gdb.fortran/derived-type.f90: New file.
5593 * gdb.fortran/derived-type.exp: New testcase.
5597 * gdb.base/default.exp: Allow ';' as a directory separator.
5601 * gdb.base/help.exp (help add-symbol-file): Update.
5605 * gdb.base/help.exp (help load): Update expected results.
5609 * gdb.base/pc-fp.exp (get_valueofx): Don't print environment
5610 specifix hex value as part of results.
5611 * gdb.base/shreloc.exp (get_msym_addrs): Ditto.
5615 * gdb.base/whatis.c: Define variables using typedefs char_addr,
5616 ushort_addr, and slong_addr, so the typedefs are not optimized
5618 * gdb.base/whatis.exp: Add tests using type name for struct type,
5619 union type, enum type, and typedef.
5623 * gdb.arch/i386-prologue.exp: Add testcase for PR breakpoints/2080.
5627 * gdb.base/scope.exp (test_at_main): Remove logic to handle the
5628 case where it takes two "next" commands to skip past the init
5633 * gdb.base/scope.exp (test_at_main): Use gdb_test_multiple
5634 to handle cases where it takes two "next" commands to skip
5639 * gdb.ada/array_return.exp: Mark the last test as expected to fail
5644 * gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Test for the fullname
5649 * gdb.cp/bool.cc, gdb.cp/bool.exp: New files.
5653 * gdb.arch/powerpc-prologue.c, gdb.arch/powerpc-prologue.exp: New
5658 * gdb.cp/maint.exp: Set complaints to a positive value.
5662 * gdb.base/multi-forks.c: Add copyright notice. Include <stdlib.h>.
5663 * gdb.base/multi-forks.exp: Use a loop. Allow "fork" as a stopped
5668 * gdb.base/checkpoint.c: Update copyright notice. Include
5673 * gdb.asm/asm-source.exp: Independently provide default values for
5674 asm-flags and debug-flags. Use 'string equal' to do the
5675 comparison, not the implicit expr's '==' operator. Remove
5676 now-unneeded assignments to asm-flags. In h8300 case, place
5677 "-gdwarf-2", not "-gdwarf2", in debug-flags, not asm-flags.
5681 * gdb.base/checkpoint.c: New file.
5682 * gdb.base/checkpoint.exp: New file.
5683 * gdb.base/multi-fork.c: New file.
5684 * gdb.base/multi-fork.exp: New file.
5685 * gdb.base/pi.txt: New file (data for checkpoint.c test).
5689 * gdb.base/ptype.c (foo): Add typedef.
5690 (intfoo): Add function.
5691 * gdb.base/ptype1.c: New file.
5692 * gdb.base/ptype.exp: Handle compilation and linking with two
5693 source files. Test that proper type for "foo" is found based
5694 on source context rather than first match found in symtabs.
5698 * gdb.asm/asm-source.exp (hppa-*-openbsd*): New.
5699 * gdb.asm/openbsd.inc: Indent commands.
5703 * gdb.base/freebpcmd.exp: Increase timeout.
5705 * gdb.gdb/selftest.exp (test_with_self): Update copyright check.
5709 * gdb.base/default.exp: Update check for "show version".
5713 * gdb.asm/asm-source.exp (hppa64-*-hpux*): New.
5714 * gdb.asm/pa64.inc: New file.
5718 * gdb.asm/common.inc: Indent commands.
5719 * gdb.asm/asmsrc1.s: Likewise.
5720 * gdb.asm/asmsrc2.s: Likewise.
5724 * gdb.arch/pa-nullify.exp: Handle hppa64-*-* targets.
5725 (get_addr_of_sym): Remove duplicate print.
5726 (gen_core): xfail hppa*-*-hpux*, update expected output.
5727 * gdb.arch/pa-nullify.s: Reformat to also work on HPUX.
5728 * gdb.arch/pa64-nullify.s: New file.
5732 * gdb.base/dump.exp: Mark hppa64-*-* as 64-bit target.
5736 * gdb.cp/printmethod.cc (main): Call virt and nonvirt, to force
5737 code generation for these functions.
5738 * gdb.cp/printmethod.exp: Expect "&A::nonvirt()" instead of an
5743 * gdb.base/help.exp (help b, help br, help bre, help brea)
5744 (help break): Update the expected message.
5748 * gdb.asm/m68hc11.inc: Setup the data section.
5749 * gdb.asm/asm-source.exp (m6811-*-*): Don't use the target board linker
5750 script for this test.
5751 (m6812-*-*): Likewise.
5755 * gdb.base/structs2.exp: Update xfail to only trigger for gcc-3.x.
5759 * gdb.base/break.exp: Fix a comment typo.
5765 * gdb.dwarf2/mac-fileno.exp, gdb.dwarf2/mac-fileno.S: New tests.
5769 * gdb.arch/gdb1558.c: Include stdio.h.
5773 * gdb.asm/asm-source.exp: Use -e instead of --entry.
5777 * gdb.base/bfp-test.exp: Properly anchor gdb_multiple_test usage.
5781 * gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
5782 vscr" tests to better match output.
5786 * gdb.base/structs.exp (any): New function.
5787 (test_struct_returns): Don't make any assumptions at all about
5788 what value the function returns when GDB can't set the return
5793 * gdb.ada/arrayidx/p.adb: New file.
5794 * gdb.ada/arrayidx.exp: New testcase
5798 * gdb.ada/array_return/pck.ads: New file.
5799 * gdb.ada/array_return/pck.adb: New file.
5800 * gdb.ada/array_return/p.adb: New file.
5801 * gdb.ada/array_return.exp: New testcase.
5805 * gdb.base/arrayidx.c: New file.
5806 * gdb.base/arrayidx.exp: New testcase.
5810 * gdb.base/annota3.exp, gdb.cp/annota3.exp: The annotations
5811 frames-invalid and breakpoints-invalid are no longer generated
5812 with level 3 so don't expect them in the output.
5816 * gdb.mi/mi-disassemble.exp, gdb.mi/mi2-disassemble.exp: Remove .*
5817 from test. Escape the | in mi_gdb_test call.
5818 * gdb.mi/mi-basics.exp, gdb.mi/mi-cli.exp, gdb.mi/mi-disassemble.exp,
5819 gdb.mi/mi-pthreads.exp, gdb.mi/mi-stack.exp, gdb.mi/mi2-basics.exp,
5820 gdb.mi/mi2-cli.exp, gdb.mi/mi2-disassemble.exp,
5821 gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-stack.exp: Add extra details to
5822 expected regex's in mi_gdb_test calls.
5823 * lib/mi-support.exp: Remove arbitrary .* from tests.
5824 (mi_gdb_test): Add string_regex variable. Add anchor to main -re.
5825 Fully anchor GDB/MI expected results in mi_gdb_test.
5826 * lib/gdb.exp (string_to_regexp): Escape the ] character.
5827 * gdb.base/sizeof.exp: Remove escape character. Correct test.
5831 * long_long.exp: Exclude eabi targets from arm FPA float format test.
5835 * bfp-test.c: New file.
5836 * bfp-test.exp: New testcase.
5840 * gdb.fortran/subarray.exp: New testcase to test the evaluation
5841 of subarray and substring variable.
5842 * gdb.fortran/subarray.f: New source file for the test of subarray
5843 and substring variable evaluation.
5844 * gdb.fortran/exprs.exp: Add four tests for substring evaluation
5849 * gdb.arch/altivec-regs.exp, gdb.arch/altivec-abi.exp: Update
5854 * gdb.arch/altivec-regs.exp (info powerpc altivec): Replace the 'info
5855 powerpc altivec' test with an almost identical 'info vector' test.
5859 * gdb.arch/altivec-regs.exp: Adjust "info reg vrsave" and "info reg
5860 vscr" tests to match output.
5864 * gdb.arch/altivec-regs.exp: Adjust "print $vx<i>" tests to match
5869 * lib/mi-support.exp (mi_gdb_test): Change -re to not be anchored.
5870 * gdb.mi/mi-syn-frame.exp: Call mi_gdb_test twice instead of once for
5871 commands that return an MI output command and an asyncronous MI output
5873 * gdb.mi/mi-console.exp: Ditto.
5877 * gdb.mi/mi-var-child.c: Include <string.h>.
5881 * killed.exp: Correct gdb_expect syntax.
5885 * lib/mi-support.exp (mi_gdb_load): Fix typo.
5889 * gdb.mi/mi-basics.exp: Tell mi_gdb_start to use a PTY for inferior.
5890 (test_setshow_inferior_tty): Add global mi_inferior_tty_name to scope.
5891 Change tests to inferior-tty-set/show.
5892 * gdb.mi/mi-console.exp: Tell mi_gdb_start to use a PTY for inferior.
5893 (47-exec-next): Use mi_gdb_test to get GDB and Inferior output.
5894 * gdb.mi/mi-syn-frame.exp: Tell mi_gdb_start to use a PTY for
5895 inferior. Use mi_gdb_test to get GDB and Inferior output.
5896 * lib/mi-support.exp (mi_inferior_spawn_id): Add inferior PTY
5898 (mi_inferior_tty_name): Add inferior PTY file name.
5899 (mi_gdb_start): Add INFERIOR_PTY parameter.
5900 (mi_gdb_test): Add IPATTERN parameter.
5904 * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Add MESSAGE
5905 parameter to mi_gdb_test.
5906 * lib/mi-support.exp (mi_gdb_test): Make MESSAGE parameter necessary.
5910 * gdb.mi/mi-var-child.c (do_children_tests): Initialize
5911 struct_declarations.
5912 * gdb.mi/mi-var-child.exp: Step over the initialization of
5913 struct_declarations.
5917 * gdb.mi/basics.c, gdb.mi/var-cmd.c: Revert last change.
5918 * gdb.mi/mi-stack.c: New file, based on gdb.mi/basics.c.
5919 * gdb.mi/mi-var-child.c: New file, based on gdb.mi/var-cmd.c.
5920 * gdb.mi/mi-stack.exp: Update to use mi-stack.c as a source file.
5921 * gdb.mi/mi-var-child.exp: Update to use mi-var-child.c as a source
5926 * gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.
5927 (do_children_tests): Assign values to the extra elements.
5929 * gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use
5930 them for tests for "-var-update --no-values" and
5931 "-var-update --all-values".
5932 Add test for "-var-list-children --simple-values".
5934 * gdb.mi/basics.c (callee4): Add integer array D[3]...
5936 * gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test
5937 "-stack-list-locals --simple-values" Improve doc strings and
5942 * gdb.base/sigaltstack.exp (finish_test): KFAIL gdb/1736 on
5944 * gdb.base/sigstep.exp (advancei): KFAIL gdb/1736 on *-*-openbsd*.
5946 * gdb.base/sigaltstack.c (main): Use stack_t instead of `struct
5951 * gdb.base/default.exp (tty): Changed output of command.
5952 * gdb.base/help.exp (help tty): Ditto.
5956 * gdb.arch/i386-sse.exp: Compile with -msse when using GCC.
5960 * gdb.mi/mi2-stack.exp (test_stack_locals_listing): Remove test for
5961 -stack-select-frame without arguments.
5962 (test_stack_frame_listing): Add test for newly implemented command
5967 * gdb.mi/mi-basics.exp (test_setshow_inferior_tty): Test MI tty
5969 (Copyright): Update copyright.
5973 * gdb.fortran/exprs.exp (test_arithmetic_expressions): Add five
5974 tests to evaluate exponentiation expression.
5978 * gdb.base/sigrepeat.c: Include <stdlib.h> and add return type for
5979 main to avoid warnings.
5981 * gdb.base/sigrepeat.exp: Fix reference to undefined variable.
5985 * gdb.mi/mi-stack.exp (test_stack_locals_listing): Remove test for
5986 -stack-select-frame without arguments.
5987 (test_stack_frame_listing): Add test for newly implemented command
5992 * gdb.fortran/array-element.f: New file.
5993 * gdb.fortran/array-element.exp: New testcase.
5997 * gdb.base/bigcore.exp: Correct checks for systems which can
5998 not dump a large core file.
6002 * gdb.base/relocate.c: Add a copyright notice.
6004 * gdb.base/relocate.exp: Test printing the values of variables
6005 from a relocatable file.
6009 * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Don't expect
6010 excess MI output after an error.
6014 * gdb.arch/alpha-step.c: New file.
6015 * gdb.arch/alpha-step.exp: New testcase.
6020 * gdb.mi/mi-cli.exp, gdb.mi/mi-return.exp, gdb.mi/mi-stack.exp,
6021 gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp,
6022 gdb.mi/mi-var-display.exp, gdb.mi/mi-watch.exp, gdb.mi/mi2-cli.exp,
6023 gdb.mi/mi2-return.exp, gdb.mi/mi2-stack.exp,
6024 gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp,
6025 gdb.mi/mi2-var-display.exp: Expect fullname field in stack frames.
6026 * lib/mi-support.exp (mi_runto, mi_execute_to_helper): Likewise.
6031 * gdb.base/shreloc.exp: Use gdb_compile_shlib. Add support for
6033 * gdb.base/shreloc1.c (fn_1): Reference variable static_var_1.
6034 * gdb.base/shreloc2.c (fn_2): Reference variable static_var_2.
6038 * gdb.base/call-ar-st.exp: Call 'untested' and return -1 instead of
6039 calling gdb_suppress_entire_file.
6040 * gdb.base/charset.exp: Same.
6041 * gdb.base/call-rt-st.exp: Same.
6045 * lib/gdb.exp (fullname_syntax): Added global regex.
6046 (fullname_syntax_POSIX): Ditto.
6047 (fullname_syntax_UNC): Ditto.
6048 (fullname_syntax_DOS_CASE): Ditto.
6049 (fullname_syntax_DOS): Ditto.
6050 * gdb.mi/mi-file.exp (test_file_list_exec_source_file): Added
6051 fullname_syntax variable to scope and use it.
6052 (test_file_list_exec_source_files): Ditto.
6053 * gdb.mi/mi2-file.exp (test_file_list_exec_source_file): Ditto.
6057 * gdb.threads/linux-dp.exp: Check for *-*-linux-gnu*.
6061 * lib/gdb.exp (skip_altivec_tests): New function, based on
6062 check_vmx_hw_available from the GCC testsuite.
6063 * lib/gdb.arch/altivec-abi.exp: Use skip_altivec_tests.
6064 * lib/gdb.arch/altivec-regs.exp: Likewise.
6068 * gdb.base/auxv.exp: Call 'untested' and return -1 instead of
6069 calling gdb_suppress_entire_file.
6073 * gdb.threads/staticthreads.exp: Override signal to check for hppa.
6074 Slightly relax "sem_post" name checking.
6078 * gdb.base/unload.exp: Use new shared library infrastructure.
6082 * gdb.base/so-impl-ld.exp: Use new shared library
6087 * gdb.asm/asm-source.exp: Add h8300 to supported targets.
6088 * gdb.asm/h8300.inc: New file.
6092 * gdb.base/shlib-call.exp: Change to use new shared library
6097 * gdb.base/pending.exp: Change to use new shared library
6102 * gdb.base/nodebug.exp: Allow for compiling by IBM's xlc compiler,
6103 use test_compiler_info instead of gcc_compiled, and update copyright.
6107 * gdb.base/annota1.exp : Deal with messages caused by breakpoints in
6108 shared objects being adjusted and update copyright years.
6112 * ChangeLog: Correct some 2003-01-13 dates.
6113 * gdb.base/sigbpt.exp, gdb.base/signull.exp, gdb.cp/bs15503.exp,
6114 gdb.cp/exception.exp, gdb.cp/userdef.cc, gdb.cp/userdef.exp,
6115 gdb.mi/mi-console.exp, gdb.mi/mi2-console.exp,
6116 gdb.trace/collection.exp, gdb.trace/passc-dyn.exp,
6117 gdb.trace/tfind.exp: Update copyright years.
6122 * lib/gdb.exp (gdb_compile): Handle shlib=.
6123 (gdb_compile_shlib): New function.
6127 * lib/gdb.exp (test_compiler_info): Give argument a default value.
6131 * Makefile.in (ALL_SUBDIRS): Replace gdb.gdbserver with
6133 * configure.ac: Likewise.
6134 * configure: Regenerated.
6135 * gdb.gdbserver/Makefile.in: Moved to...
6136 * gdb.server/Makefile.in: ... here.
6137 * gdb.gdbserver/server.c: Moved to...
6138 * gdb.server/server.c: ... here.
6139 * gdb.gdbserver/server-run.exp: Moved to...
6140 * gdb.server/server-run.exp: ... here.
6144 * Makefile.in (ALL_SUBDIRS): Add gdb.gdbserver.
6145 * configure.ac: Create gdb.gdbserver/Makefile.
6146 * configure: Regenerated.
6147 * lib/gdbserver-support.exp: New file, derived from
6148 config/gdbserver.exp.
6149 * config/gdbserver.exp: Use gdbserver-support.exp.
6150 * gdb.gdbserver/Makefile.in: New file.
6151 * gdb.gdbserver/server.c: New file.
6152 * gdb.gdbserver/server-run.exp: New file.
6156 * lib/gdb.exp (test_compiler_info): Return compiler_info
6157 if no arguments are given.
6161 * gdb.arch/altivec-abi.exp: Check for compiler and set
6162 use altivec' flag accordingly.
6163 * gdb.arch/altivec-regs.exp: Likewise.
6167 * gdb.base/ptr-typedef.exp, gdb.base/ptr-typedef.c: New files.
6171 * gdb.base/bigcore.c (main): Add missing mode argument in open
6176 * lib/mi-support.exp (mi_gdb_load): Use /tmp for gdbserver
6178 * config/gdbserver.exp (gdb_load): Likewise.
6182 * lib/mi-support.exp: Use mi_gdb_target_cmd to connect to remote
6187 * gdb.dwarf2/dup-psym.S: New file.
6188 * gdb.dwarf2/dup-psym.exp: New testcase.
6192 * gdb.ada/exec_changed/first.adb: New file.
6193 * gdb.ada/exec_changed/second.adb: New file.
6194 * gdb.ada/exec_changed.exp: New testcase.
6198 * gdb.cp/userdef.cc (A1::operator+): New unary plus.
6200 (main): Test operator+.
6201 * gdb.cp/userdef.exp: Test unary plus. Use A2::operator+ for
6204 * gdb.base/sigbpt.exp: Disable if gdb,nosignals.
6205 * gdb.base/signull.exp: Disable if gdb,nosignals.
6206 * gdb.cp/bs15503.exp: Disable if skip_cplus_tests
6207 * gdb.cp/exception.exp: Disable if skip_cplus_tests.
6208 * gdb.mi/mi-console.exp: Disable hello test if gdb,noinferiorio.
6209 * gdb.mi/mi2-console.exp: Likewise.
6210 * gdb.trace/collection.exp (run_trace_experiment): Consume the
6211 continue output at start.
6212 (gdb_collect_locals_test): Robustify regexp.
6213 * gdb.trace/passc-dyn.exp: Fix comment typo.
6214 * gdb.trace/tfind.exp: Don't enable optimization. Remove stray ']'.
6218 * gdb.asm/asm-source.exp: Add iq2000 case.
6219 * gdb.asm/iq2000.inc: New file.
6223 * gdb.base/command.exp: Change hardcoded value to regular expression.
6224 * gdb.base/float.exp: Add powerpc to the list of targets checked.
6228 * gdb.asm/alpha.inc, gdb.asm/frv.inc, gdb.asm/i386.inc,
6229 gdb.asm/ia64.inc, gdb.asm/m68hc11.inc, gdb.asm/m68k.inc,
6230 gdb.asm/mips.inc, gdb.asm/pa.inc, gdb.asm/powerpc.inc,
6231 gdb.asm/s390.inc, gdb.asm/s390x.inc, gdb.asm/sh.inc,
6232 gdb.asm/x86_64.inc: Use .purgem before redefining macros.
6236 * gdb.cp/ovldbreak.exp: Adjust regular expression for recent
6241 * lib/compiler.c: Add test for IBM's xlc compiler.
6242 * lib/compiler.cc: Likewise.
6246 * gdb.ada/fixed_points.exp: Create compilation object directory
6247 before running the test.
6248 * gdb.ada/null_record.exp: Likewise.
6249 * gdb.ada/packed_array.exp: Likewise.
6250 * gdb.ada/start.exp: Likewise.
6254 * gdb.ada/packed_array/pa.adb: New file.
6255 * gdb.ada/packed_array.exp: New testcase.
6259 * gdb.dwarf2/dw2-intermix.exp, gdb.dwarf2/dw2-intermix.S: New
6262 * gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/dw2-intercu.exp: Run tests
6263 on *-*-openbsd*. Correctly match whitespace in regukar
6270 * gdb.base/gdb1821.c: New test file.
6271 * gdb.base/gdb1821.exp: New test file.
6275 * gdb.base/start.c: New file.
6276 * gdb.base/start.exp: New testcase.
6280 * gdb.ada/start/dummy.adb: New file.
6281 * gdb.ada/start.exp: New testcase.
6285 * maint.exp: Raise timeout to give Cygwin targeted GDBs more time
6286 for printing symbols and statistics.
6287 Add test for using relative pathnames in "maint print msymbols" test.
6288 Mark "maint info sections DATA" XFAIL on Cygwin.
6289 Remove Cygwin XFAIL mark on "help maint dump-me" and "maint dump-me"
6295 * gdb.base/remotetimeout.exp: New file.
6299 * gdb.base/interp.exp: Remove trailing \n in gdb_test commands.
6303 * gdb.ada/gnat_ada.gpr: New file.
6304 * gdb.ada/gnat_ada.gin: Delete, no longer used.
6305 * lib/ada.exp (gdb_compile_ada): Minor adaptation to new project file.
6306 * configure.ac: No longer generate gnat_ada.gpr.
6307 * configure: Regenerate.
6308 * gdb.ada/Makefile.in: Minor adaptations due to new project file.
6309 * gdb.ada/null_record/null_record.adb: Moved here from gdb.ada.
6310 * gdb.ada/null_record/bar.ads: Likewise.
6311 * gdb.ada/null_record/bar.adb: Likewise.
6312 * gdb.ada/fixed_points/fixed_points.adb: Likewise.
6313 * gdb.ada/null_record.exp (testdir): New variable.
6314 (testfile): executable is now in testdir subdirectory.
6315 (srcfile): Use full path to the main compilation unit.
6316 * gdb.ada/fixed_points.exp: Same changes as above.
6320 * gdb.base/interp.exp: New test.
6324 * gdb.base/sigrepeat.exp, gdb.base/sigrepeat.c: New test.
6328 * gdb.stabs/Makefile.in (Makefile): Update dependencies -
6329 configure.ac not configure.in.
6331 * gdb.base/scope.exp (test_at_main): Delete any XFAIL and/or KFAIL
6333 * gdb.hp/gdb.base-hp/callfwmall.exp (do_function_calls): Ditto.
6334 * gdb.base/list.exp (test_list_function)
6335 (test_list_filename_and_function): Ditto.
6336 * gdb.base/callfuncs.exp (do_function_calls): Ditto.
6340 * gdb.base/source.exp: Delete KFAIL gdb/1846, simplify.
6342 * gdb.base/source-error.gdb, gdb.base/source.exp: New files.
6346 * gdb.mi/mi-var-cmd.exp: Adjust "create int" test to match output.
6347 * gdb.mi/mi2-var-cmd.exp: Ditto.
6351 * gdb.base/fileio.c: Include unistd.h as required for lseek(2).
6355 * configure.ac: Rename configure.in, require autoconf 2.59.
6356 * configure: Re-generate.
6357 * gdb.stabs/configure.ac: Rename configure.in, require autoconf 2.59.
6358 * gdb.stabs/configure: Re-generate.
6359 * gdb.hp/configure.ac: Rename configure.in, require autoconf 2.59.
6360 * gdb.hp/configure: Re-generate.
6361 * gdb.hp/gdb.objdbg/configure.ac: Rename configure.in, require
6363 * gdb.hp/gdb.objdbg/configure: Re-generate.
6364 * gdb.hp/gdb.defects/configure.ac: Rename configure.in, require
6366 * gdb.hp/gdb.defects/configure: Re-generate.
6367 * gdb.hp/gdb.compat/configure.ac: Rename configure.in, require
6369 * gdb.hp/gdb.compat/configure: Re-generate.
6370 * gdb.hp/gdb.base-hp/configure.ac: Rename configure.in, require
6372 * gdb.hp/gdb.base-hp/configure: Re-generate.
6373 * gdb.hp/gdb.aCC/configure.ac: Rename configure.in, require
6375 * gdb.hp/gdb.aCC/configure: Re-generate.
6379 * gdb.threads/linux-dp.exp: Fix output regexp to handle output
6380 under NPTL when there is debugging info available for libpthread.
6384 * gdb.ada/fixed_points.c: New file.
6385 * gdb.ada/fixed_points.exp: New file.
6389 * gdb.arch/pa-nullify.exp: New file.
6390 * gdb.arch/pa-nullify.s: New file.
6394 * gdb.threads/thread_check.exp: Use ${srcfile} for test program name
6395 instead of "tbug". Fix regexp to work properly with gdb_test.
6399 * gdb.base/bitfields2.exp: New test.
6400 * gdb.base/bitfields2.c: New file.
6404 * config/sim.exp (gdb_load): Return 0 on success, -1 on failure.
6408 * gdb.base/unload.exp: Pass relative path to gdb_get_line_number.
6412 * gdb.threads/threadapply.exp: Correct "macro details" test.
6416 * gdb.threads/threadapply.exp: New test.
6417 * gdb.threads/threadapply.c: New file.
6421 * gdb.base/savedregs.exp: Correct pattern used for sigtramp
6426 * gdb.base/cursal.exp: New file.
6427 * gdb.base/cursal.c: New file.
6431 * gdb.base/savedregs.exp, gdb.base/savedregs.c: New files.
6435 * gdb.asm/asm-source.exp: Add mips*-*-netbsd* to the list of
6440 * gdb.threads/bp_in_thread.c: New file, copied from
6441 pthread_cond_wait.c.
6442 * gdb.threads/bp_in_thread.c: Use bp_in_thread.c as the source
6443 file, rather than reusing the .c file from another testcase.
6447 * gdb.ada/null_record.exp: Check where we stopped after
6448 sending the start command, instead of where the associated
6449 temporary breakpoint was inserted.
6453 * gdb.mi/gdb701.c (main): Return 0.
6457 * gdb.dwarf2/dw2-intercu.S, gdb.dwarf2/dw2-intercu.exp: New files.
6461 * gdb.threads/schedlock.c: Add comment markers to use to find
6463 * gdb.threads/schedlock.exp: Adjust regex to handle the new
6465 * gdb.threads/watchthreads.exp: Use gdb_get_line_number to find
6470 * gdb.dwarf2/dw2-basic.exp: Run on Hurd also.
6474 * configure.in: Add gdb.dwarf2.
6475 * configure: Regenerated.
6476 * Makefile.in: Add gdb.dwarf2.
6477 * gdb.dwarf2/Makefile.in, gdb.dwarf2/dw2-basic.S,
6478 gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/main.c,
6479 gdb.dwarf2/file1.txt: New files.
6483 * gdb.threads/bp_in_thread.exp: Use runto_main and "continue" instead
6484 of "run", since the latter doesn't work with remote targets. Adjust
6485 the breakpoint numbering accordingly.
6486 * gdb.threads/pthread_cond_wait.exp: Ditto.
6490 * gdb.base/overlays.exp: Update copyright years.
6494 * gdb.base/overlays.exp: Disable if target is Linux.
6498 * config/gdbserver.exp (gdb_load): Use right filename on remote.
6502 * gdb.asm/asm-source.exp: Add m32r-linux target.
6503 * gdb.asm/m32r-linux.inc: New file.
6508 * gdb.base/bigcore.exp (extract_heap): If the expect "file size"
6509 command fails, assume things will work.
6510 * gdb.base/bigcore.c: Include <sys/stat.h> and <fcntl.h>.
6511 (_GNU_SOURCE): Define.
6512 (print_unsigned, print_hex): Change parameter to "long long".
6513 (print_byte_count): New function, use to print byte counts.
6514 (large_off_t, large_lseek, O_LARGEFILE): Define dependant on
6516 (main): Compute an upper bound on a corefile in max_core_size.
6517 Limit memory chunk size to max_core_size. Limit total memory
6518 allocated to max_core_size.
6522 * gdb.base/bigcore.exp: Replace the code that creates a corefile
6523 from a separate process with code that creates a corefile by
6524 making the inferior dump core.
6528 * gdb.base/sigstep.exp: Avoid comments withing gdb_test_multiple
6533 * gdb.base/constvars.exp (local_compiler_xfail_check_2):
6534 New proc. Accept both gcc 3.x.x and gcc 4.x.x.
6535 * gdb.base/volatile.exp (local_compiler_xfail_check_2):
6540 * gdb.java/jprint.exp: New test case for java inferior call.
6541 * gdb.java/jprint.java: Ditto.
6545 * gdb.base/bigcore.exp: Deactivate on IRIX targets.
6549 * gdb.threads/killed.c: Include <stdlib.h>.
6550 * gdb.threads/pthreads.c: Likewise.
6554 * gdb.threads/killed.c: Add copyright notice.
6558 * gdb.base/define.exp: Two new tests to verify zero space chars
6559 after 'if' and 'while' commands in a user-defined command is correctly
6564 * gdb.base/signals.exp (signal_tests_1): Delete. Merge signal
6565 delivery test with duplicate at end of file.
6569 * gdb.base/unload.exp: Link with -dl on *-*-solaris*.
6573 * config/hppro.exp: Removed.
6577 * config/sparclet.exp: Removed.
6581 * config/udi.exp: Removed.
6585 * gdb.base/sigstep.exp (advance): Use "-continue_timer" option
6587 (advancei): Likewise.
6591 * gdb.base/unload.exp: Fix so messages aren't duplicated.
6595 * gdb.gdb/complaints.exp (setup_test): Use new gdb.exp functionality
6596 to check for nodebug in executable.
6597 * gdb.gdb/observer.exp (setup_test): Likewise.
6598 * gdb.gdb/selftest.exp (test_with_self): Likewise.
6599 * gdb.gdb/xfullpath.exp (setup_test): Likewise.
6603 * gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New
6608 * gdb.base/unload.exp: Fix expected warning message to match
6613 * gdb.base/call-rt-st.exp: Fix typos.
6617 * gdb.threads/thread_check.exp: New testcase.
6618 * gdb.threads/thread_check.c: New testcase.
6622 * gdb.base/sigstep.exp (breakpoint_to_handler_entry)
6623 (skip_to_handler_entry): New procedures. Test stepping into a
6624 handler when the breakpoint is at the handler's entry point.
6628 * gdb.base/sigstep.exp (breakpoint_over_handler): Remove kfail
6634 * lib/gdb.exp (gdb_file_cmd): Return more information in the
6635 return value. Add an arm for "no debugging symbols found".
6636 Change a stray "error" to "perror".
6637 (gdb_run_cmd): Adapt to new return value.
6638 * gdb.base/remote.exp: Adapt to new return value.
6639 * gdb.gdb/complaints.exp: Likewise.
6640 * gdb.gdb/observer.exp: Likewise.
6641 * gdb.gdb/selftest.exp: Likewise.
6642 * gdb.gdb/xfullpath.exp: Likewise.
6646 * gdb.threads/bp_in_thread.exp: New testcase.
6650 Fix PR testsuite/1735.
6651 * gdb.threads/schedlock.c (thread_function): Add a cast
6652 to suppress a gcc warning.
6653 * gdb.threads/thread-specific.c (thread_function): Likewise.
6657 * gdb.base/unload.c: Include <stdlib.h>.
6662 * gdb.base/call-sc.exp (test_scalar_returns): Make sure PC is
6663 synchronized after the "return".
6667 * gdb.mi/basics.c: Include <stdio.h>.
6668 * gdb.mi/pthreads.c: Include <stdlib.h>.
6669 * gdb.mi/var-cmd.c: Include <stdlib.h>.
6673 * gdb.threads/schedlock.c: Add copyright notice.
6677 * gdb.base/sigstep.exp (breakpoint_to_handler, skip_to_handler)
6678 (skip_over_handler, breakpoint_over_hander): New test procedures.
6679 (advance, advancei): Add a proper prefix, do not use
6681 * gdb.base/sigstep.c (main): Change to use an infinite loop.
6685 * gdb.mi/basics.c: Add copyright notice.
6686 * gdb.mi/var-cmd.c: Add copyright notice.
6690 * lib/gdb.exp: Remove signed_keyword_not_used.
6691 * lib/compiler.c: Likewise.
6692 * lib/compiler.cc: Likewise.
6696 * gdb.base/whatis.c: Remove conditional disabling of "signed".
6697 * gdb.base/whatis.exp: Remove signed_keyword_not_used.
6701 * gdb.base/whatis.c: Add copyright notice.
6705 * gdb.arch/i386-prologue.exp (skip_breakpoint): New function. Use
6706 it to skip the breakpoints encoded in the inline assembly.
6710 * Makefile.in: Add gdb.fortran.
6714 * gdb.base/call-sc.exp (test_scalar_returns):
6715 Fix cut-and-paste glitch in "Make fun return now".
6719 * configure.in: Add gdb.fortran.
6720 * configure: Regenerate.
6721 * gdb.fortran/Makefile.in: New file.
6722 * lib/gdb.exp (skip_fortran_tests): New procedure.
6726 * gdb.mi/mi-var-block.exp: Use gdb_get_line_number. Remove
6728 * gdb.mi/mi-var-child.exp: Likewise.
6729 * gdb.mi/mi-var-cmd.exp: Likewise.
6730 * gdb.mi/mi-var-display.exp: Likewise.
6731 * gdb.mi/mi2-var-block.exp: Likewise.
6732 * gdb.mi/mi2-var-child.exp: Likewise.
6733 * gdb.mi/mi2-var-cmd.exp: Likewise.
6734 * gdb.mi/mi2-var-display.exp: Likewise.
6738 * gdb.base/unload.c (main): Make local variable msg const.
6742 * gdb.mi/mi-cli.exp: Use gdb_get_line_number. Remove reference
6744 * gdb.mi/mi-disassemble.exp: Likewise.
6745 * gdb.mi/mi-eval.exp: Likewise.
6746 * gdb.mi/mi-file.exp: Likewise. Also, add comment about the
6747 default line number.
6748 * gdb.mi/mi-return.exp: Likewise.
6749 * gdb.mi/mi-simplerun.exp: Likewise.
6750 * gdb.mi/mi-stack.exp: Likewise.
6751 * gdb.mi/mi-stepi.exp: Likewise. Also, replace wildcarded line
6752 number with explicit range test.
6753 * gdb.mi/mi-watch.exp: Likewise.
6754 * gdb.mi/mi2-break.exp: Likewise.
6755 * gdb.mi/mi2-cli.exp: Likewise.
6756 * gdb.mi/mi2-disassemble.exp: Likewise.
6757 * gdb.mi/mi2-eval.exp: Likewise.
6758 * gdb.mi/mi2-file.exp: Likewise. Also, add comment about the
6759 default line number.
6760 * gdb.mi/mi2-return.exp: Likewise.
6761 * gdb.mi/mi2-simplerun.exp: Likewise.
6762 * gdb.mi/mi2-stack.exp: Likewise.
6763 * gdb.mi/mi2-stepi.exp: Likewise. Also, replace wildcarded line
6764 number with explicit range test.
6765 * gdb.mi/mi2-watch.exp: Likewise.
6769 * gdb.cp/ctti.exp: Tweak srcfile and objfile to have no slashes.
6770 * gdb.cp/m-static.exp: Likewise.
6771 * gdb.cp/rtti.exp: Likewise.
6775 * gdb.base/bigcore.c: Include <sys/types.h> and <sys/time.h>.
6779 * ChangeLog: Prefix Local Variables with semi-colons and indent
6780 the reference to older ChangeLog files, to fix fontification in
6785 * gdb.mi/mi-break.exp: Use gdb_get_line_number.
6786 * gdb.mi/mi2-break.exp: Likewise.
6790 * gdb.gdb/selftest.exp: Revert removal of call to init_malloc.
6794 * gdb.cp/inherit.exp: Use cp_test_ptype_class.
6798 * gdb.cp/classes.exp: Remove unused declarations. Just let
6799 test names default instead of providing special names. Remove
6800 extraneous demangler test.
6804 * gdb.base/unload.exp: New test for breakpoints in dynamically
6806 * gdb.base/unload.c: Ditto.
6807 * gdb.base/unloadshr.c: Ditto.
6811 * gdb.cp/classes.exp (test_ptype_class_objects): Call
6812 cp_test_ptype_class.
6813 (test_enums): Likewise.
6817 * gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New
6822 * gdb.gdb/selftest.exp (do_steps_and_nexts): Remove code to skip
6827 * ChangeLog: Add copyright notice. The notice is copied
6828 from emacs 21.3 top level ChangeLog.
6832 * lib/cp-support.exp: New file.
6833 * lib/cp-support.exp (cp_test_type_class): New function.
6834 * gdb.cp/derivation.exp: Use cp_test_ptype_class.
6835 * gdb.cp/virtfunc.exp (test_one_ptype): Removed.
6836 * gdb.cp/virtfunc.exp (test_ptype_of_classes): Use
6837 cp_test_ptype_class.
6841 * gdb.mi/mi2-basics.exp, gdb.mi/mi2-break.exp,
6842 gdb.mi/mi2-console.exp, gdb.mi/mi2-disassemble.exp,
6843 gdb.mi/mi2-eval.exp, gdb.mi/mi2-file.exp, gdb.mi/mi2-hack-cli.exp,
6844 gdb.mi/mi2-read-memory.exp, gdb.mi/mi2-regs.exp,
6845 gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp,
6846 gdb.mi/mi2-stack.exp, gdb.mi/mi2-stepi.exp, gdb.mi/mi2-until.exp,
6847 gdb.mi/mi2-var-block.exp, gdb.mi/mi2-var-child.exp,
6848 gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp,
6849 gdb.mi/mi2-watch.exp: Update copyright years.
6853 * gdb.base/sigaltstack.exp: Provide proper anchoring.
6857 * gdb.mi/gdb792.exp, gdb.mi/mi-basics.exp, gdb.mi/mi-break.exp,
6858 gdb.mi/mi-console.exp, gdb.mi/mi-disassemble.exp,
6859 gdb.mi/mi-eval.exp, gdb.mi/mi-file.exp, gdb.mi/mi-hack-cli.exp,
6860 gdb.mi/mi-read-memory.exp, gdb.mi/mi-regs.exp,
6861 gdb.mi/mi-return.exp, gdb.mi/mi-simplerun.exp,
6862 gdb.mi/mi-stack.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-until.exp,
6863 gdb.mi/mi-var-block.exp, gdb.mi/mi-var-child.exp,
6864 gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp,
6865 gdb.mi/mi-watch.exp: Update copyright years.
6870 * gdb.base/signals.exp (signal_tests_1): KFAIL bug in continuing
6871 from a breakpoint with a pending signal.
6876 * lib/gdb.exp (gdb_test_multiple): Handle return -code return.
6877 * gdb.base/sigaltstack.exp (finish_test): Consume output until
6879 * gdb.base/sigstep.exp: Add KFAIL for gdb/1736.
6883 * gdb.cp/templates.exp: Handle (char)115 for template argument 's'.
6888 * gdb.base/sigaltstack.exp (finish_test): New procedure. KFAIL
6893 * gdb.arch/i386-prologue.exp: Compile without debug information.
6897 * lib/gdb.exp (gdb_get_line_number): Rewrite with native tcl
6898 rather than asking gdb to search.
6902 * gdb.base/gcore.c: Include <string.h>.
6906 * gdb.base/gcore.c: Add copyright notice.
6910 * gdb.base/freebpcmd.c: Include <stdio.h>.
6911 * gdb.base/long_long.c: Include <string.h>.
6912 * gdb.base/sigaltstack.c: Include <stdlib.h> <string.h>.
6913 * gdb.base/siginfo.c: Include <string.h>.
6914 * gdb.base/sigstep.c: Include <string.h>.
6918 * gdb.base/complex.c: Include <stdlib.h>.
6922 * gdb.base/complex.c: Add copyright notice.
6926 * gdb.base/charset.c: Include <stdlib.h>.
6930 * gdb.base/auxv.c: Include <stdlib.h>.
6934 * gdb.base/auxv.c: Add copyright notice.
6938 * gdb.base/coremaker.c: Add copyright notice.
6939 * gdb.base/coremaker2.c: Add copyright notice.
6943 * gdb.base/store.exp: Update copyright.
6944 (check_set, up_set, check_struct, up_struct): Add a prefix to test
6945 names, do not import gdb_prompt.
6949 Fix PR testsuite/1729.
6950 * gdb.base/dump.exp: Add test name to callers of capture_value, do
6951 not use capture_value with value 4.
6952 (capture_value): Add optional test name parameter.
6953 (test_reload_saved_value, test_restore_saved_value): Use $msg as
6954 the prefix, pass to capture_value.
6958 * gdb.arch/i386-prologue.exp: Add testcase for standard prolgue.
6959 * gdb.arch/i386-prologue.c (standard): New prototype and function.
6960 (main): Call new function.
6964 * gdb.cp/namespace.exp: Accept more varieties of ptype output.
6968 * gdb.cp/virtfunc.exp: Accept more varieties of ptype output.
6972 * gdb.cp/inherit.exp: Accept more varieties of ptype output.
6973 Accept more values of vtbl pointer. Remove some messages
6974 about "obsolete gcc or gdb".
6978 * gdb.cp/classes.exp: Accept more varieties of ptype output.
6982 * gdb.base/asm-source.exp: Properly convert target board
6983 debug flags from gcc format to binutils format.
6987 * gdb.arch/i386-prologue.exp: Remove KFAIL of "backtrace in
6988 gdb1718". PR backtrace/1718 partially fixed.
6992 * gdb.threads/watchthreads.exp: New test for threaded watchpoints.
6996 * gdb.asm/asm-source.exp (debug-flags): New variable. If a known
6997 good default value for a specific architecture is available then
6998 set it to that value. Otherwise default to the -gstabs switch.
6999 Remove the -g... switches from the asm-flags variable. Allow the
7000 target board info to override the value if it wants to. Pass the
7001 switch on the assembler command line.
7005 * gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1718.
7006 * gdb.arch/i386-prologue.c (gdb1718): New prototype and function.
7007 (main): Call new function.
7011 Test for PR exp/1715.
7012 * gdb.base/radix.exp: Refactor common procedures. Make all
7013 test names unique. Change XFAIL to KFAIL.
7017 * gdb.ada/gnat_ada.gpr.in: Rename from here ...
7018 * gdb.ada/gnat_ada.gin: ... to here.
7019 * configure.in: Use gnat_ada.gin.
7020 * configure: Regenerate.
7024 * gdb.base/signals.exp: Replace send_gdb and gdb_expect with
7025 gdb_test and gdb_test_multiple. Delete bash_bug. Delete suspect
7026 XFAILs. Clean up test messages and comments. Check backtraces.
7027 Delete re-sync code.
7032 * gdb.base/annota1.exp: Honor gdb,nosignals.
7033 * gdb.base/annota3.exp: Likewise.
7037 * lib/java.exp: Update copyright notice.
7041 * gdb.base/selftest.exp: Copy file from here ...
7042 * gdb.gdb/selftest.exp: ... to here.
7046 * lib/insight-support.exp: Delete file.
7047 * lib/java.exp (java_init): Fix copyright.
7051 * gdb.base/restore.c: Append "prologue" to comments marking the a
7052 function's prologue.
7053 * gdb.base/restore.exp: Update copyright, re-indent.
7054 (restore_tests): Use gdb_test_multiple. Add "calleeN calls
7055 callerN" prefix where needed. Update patterns that match a
7056 function's prologue.
7060 * gdb.base/restore.c: Add copyright notice.
7064 * gdb.base/logical.exp: Update copyright.
7065 (evaluate): New procedure. Use to re-implement tests using
7070 * lib/insight-support.exp (gdbtk_start): Unset TCL_LIBRARY
7071 which fixes some problems where init.tcl was not found.
7075 * gdb.base/sizeof.exp: Skip test when no inferior I/O.
7076 (check_sizeof, check_valueof): Do not include the output in the
7077 test name. Use gdb_test.
7078 (get_valueof): Use gdb_test_multiple.
7080 * gdb.base/step-test.exp: Update copyright. Use
7081 gdb_test_multiple. Ensure that test names do not include
7082 architecture dependent output.
7084 * gdb.gdb/observer.exp: Update copyright.
7085 (setup_test): Use gdb_test_multiple.
7086 (attach_first_observer, attach_second_observer)
7087 (attach_third_observer, detach_first_observer)
7088 (detach_second_observer, detach_third_observer)
7089 (reset_counters, check_counters): Make $message a prefix.
7090 (test_normal_stop_notifications): Add "args" parameter - a list of
7091 init functions to be called. Make $message a prefix,
7092 (test_observer_normal_stop): Change the message prefixes so that
7093 they are unique, pass the attach / detach procedures to
7094 test_normal_stop_notifications.
7096 * gdb.base/signull.exp (test_segv): Prefix all tests with
7097 "${name}". Clean up test messages.
7099 * gdb.base/annota3.exp, gdb.base/annota1.exp: Update copyright.
7101 * gdb.base/ena-dis-br.exp: Update copyright.
7102 (break_at): New function. Replace send_gdb with gdb_test,
7103 break_at, and gdb_test_multiple. Replace XFAIL of "continue with
7104 ignore count, not stopped at bpt", with KFAIL.
7108 * gdb.base/attach.exp: Remove cleanupfile handling.
7112 * gdb.base/annota1.exp: Cleanup corefile test name.
7113 * gdb.base/annota3.exp: Ditto.
7117 * gdb.base/signals.exp: Clean up copyright, re-indent.
7119 * gdb.base/attach.exp: Replace send_gdb and gdb_expect with
7120 gdb_test and gdb_test_multiple.
7124 * gdb.java/jmain.exp: Fix expected line number for main to
7125 break at. Set XFAIL for break at main test since gcj does not
7126 provide line number info for first statement in main.
7130 * gdb.base/attach.exp: Cleanup copyright. Re-indent.
7132 * gdb.base/sigbpt.exp: Make the common part of each test name a
7133 prefix instead of suffix.
7137 * gdb.mi/mi2-file.exp: Revert to version 1.1, except changed name of
7138 test from test_tbreak_creation_and_listing to
7139 test_file_list_exec_source_file
7140 * gdb.mi/mi-file.exp: Add test for -file-list-exec-source-files
7141 Changed name of test from test_tbreak_creation_and_listing to
7142 test_file_list_exec_source_file
7146 * gdb.java/jmisc.exp: Fix expected output of ptype to look for
7147 the jmisc() constructor instead of <init>.
7148 * gdb.java/jmisc1.exp: Ditto.
7152 * gdb.base/sigbpt.exp (stepi_out): Check for a single step
7157 * gdb.cp/templates.exp: Accept whitespace change in demangler
7162 * gdb.base/sigbpt.exp, gdb.base/sigbpt.c: New test.
7166 * lib/compiler.c: Accept __HP_CXD_SPP for old hp ansi c compiler.
7167 * lib/compiler.cc: Likewise.
7171 * lib/compiler.cc: Work around string preprocessing problem
7172 with old hp c++ compiler.
7173 * lib/compiler.c: Likewise.
7177 * gdb.arch/i386-prologue.c: Add copyright header. Use preprocessor
7178 directives to conditionalize symbol prefixing.
7179 * gdb.arch/i386-prologue.exp: Allow symbol prefixing by adding
7180 additional_flags handling. Add underscore prefix for Cygwin.
7181 * gdb.arch/i386-unwind.c: Use preprocessor directives to
7182 conditionalize symbol prefixing.
7183 * gdb.arch/i386-unwind.exp: Allow symbol prefixing by adding
7184 additional_flags handling. Add underscore prefix for Cygwin.
7188 * gdb.base/bigcore.exp: Skip test on Cygwin.
7192 * gdb.hp/gdb.base-hp/reg.exp: Accept both old and new gdb output
7193 formats for "info register". Use gdb_test_multiple. Fix
7194 the "invalid register" test.
7198 * gdb.base/attach.exp: Fix copyright date. Set testpid to Windows
7199 PID for Cygwin. Add Cygwin specific strings to check for in some
7201 (do_attach_tests): Add a test for user interaction when attaching
7202 to a process with no matching symbol table already loaded.
7206 Test PR java/1567 and PR java/1565.
7207 * gdb.java/jmain.exp, gdb.java/jmain.java: New files.
7208 * gdb.java/jmisc2.exp: Delete file.
7212 * gdb.hp/gdb.base-hp/reg.exp: Update copyright notice.
7216 * gdb.base/attach.exp (do_attach_tests): Don't forget to kill second
7221 * gdb.cp/pr-1553.exp: Remove.
7225 * gdb.cp/pr-1553.cc: Remove.
7226 * gdb.cp/pr-1553.exp: Disable this test.
7230 Fix PR testsuite/1680.
7231 * gdb.arch/i386-sse.exp: Properly quote curly braces in
7232 regular expressions.
7236 Fix PR testsuite/1679.
7237 * gdb.arch/i386-sse.exp: Do not call gdb_suppress_entire_file.
7238 Issue an UNSUPPORTED result instead.
7242 * gdb.base/charset.exp: Only send a control-C if we see a new
7243 prompt and incomplete command.
7247 * gdb.cp/pr-574.cc: Add copyright notice.
7251 * gdb.base/charset.exp: Don't refer to $expect_out(1,string) in
7252 cases where the regexp has no groups; this grabs random text from
7253 the previous test suite, whatever that was.
7257 * gdb.cp/printmethod.cc: Add copyright notice.
7261 * gdb.cp/psmang1.cc, gdb.cp/psmang2.cc: Add copyright notice.
7265 * gdb.base/signull.c: Update copyright. Include <string.h>.
7266 (bowler): Replace data_pointer with data_read
7267 and data_write cases. Add code_descriptor case.
7268 (zero, desc): New array and pointer.
7269 (data, code): Change to simple pointers.
7270 * gdb.base/signull.exp: Fix probe pattern matching a function
7271 descriptor SIGSEGV. Replace data_pointer with data_read and
7276 * gdb.base/long_long.exp, gdb.base/long_long.c: Rewrite.
7280 * gdb.base/long_long.c: Add copyright notice.
7284 * gdb.base/long_long.exp: Remove reference to
7286 to gdb_breakpoint and gdb_continue_to_breakpoint.
7290 * gdb.arch/e500-regs.exp: Fix up 'print' pattern for the little-
7295 * gdb.base/gcore.exp (capture_command_output): Delete the always
7296 passing tests containing inferior values.
7297 * gdb.base/ending-run.exp: Do not include the breakpoint address
7298 in the test message. Update copyright.
7299 * gdb.base/sizeof.exp (check_sizeof): Do not include the type's
7300 size in the test name, use gdb_test_multiple. Update copyright.
7304 * gdb.cp/ref-types.cc: Add copyright notice.
7308 * lib/compiler.c: Remove gcc_compiled, hp_cc_compiler,
7310 * lib/compiler.cc: Likewise.
7311 * lib/gdb.exp (get_compiler_info): Eval lines only if they are
7312 'set' commands. Log diagnostics for other lines. Set
7313 gcc_compiled, hp_cc_compiler, and hp_aCC_compiler.
7317 * gdb.cp/try_catch.cc: Add copyright notice.
7321 * gdb.cp/userdef.cc: Add copyright notice.
7325 * gdb.cp/virtfunc.cc: Add copyright notice.
7329 * gdb.base/structs2.exp: Mark two tests as xfail because of a compiler
7334 * lib/compiler.cc, lib/compiler.c: Append either
7335 __GNUC_PATCHLEVEL__, or "unknown" to the compiler_info.
7336 * gdb.base/structs.exp (test_struct_calls): Check for gcc-3-3-*
7341 * gdb.base/structs.exp (test_struct_calls): Fix KFAIL for
7342 gdb/1455, bug is specific to "long long" and "double".
7344 * gdb.base/structs.exp (test_struct_returns, test_struct_returns)
7345 (test_struct_calls): Remove KFAIL of "long double" on i*86-*-*,
7346 x86_64-*-*, sparc64-*-*, and sparc*-*-solaris2*. PR tdep/1447
7351 * gdb.base/structs.exp (test_struct_returns): Replace
7352 "return_value_unknown" and "finish_value_unknown" by
7353 "return_value_known" and "finish_value_known". Instead of
7354 "return_value_unknown" iff "finish_value_unknown", check
7355 "return_value_known" implies "finish_value_known".
7359 * gdb.base/float.exp: Add pattern for mips targets.
7363 * gdb.base/float.exp: Add pattern for hppa*-* target; make the failure
7364 message for unknown architectures more clear.
7368 * gdb.ada/null_record.exp: Use "start" instead of "begin" to
7369 start the execution of the program.
7373 * gdb.arch/i386-sse.exp, gdb.arch/i386-sse.c: New tests.
7374 * gdb.arch/i386-cpuid.h: New helper file.
7378 * gdb.base/shlib-call.exp: Allow breakpoint to be added after inferior
7384 * gdb.base/auxv.exp (fetch_auxv): Revert last change and fix it
7385 differently to be robust to output buffering differences.
7389 * gdb.threads/pthreads.exp: Update copyright years.
7390 (check_control_c): Change asynchronous 'after' to synchronous.
7394 * gdb.base/auxv.exp (fetch_auxv): Consume output fully through
7400 * gdb.threads/manythreads.exp: Change asynchronous 'after'
7401 calls to synchronous.
7405 * gdb.arch/e500-prologue.exp, gdb.arch/e500-prologue.c: New tests.
7409 * gdb.asm/asm-source.exp: Enable test for hppa-linux target.
7410 * gdb.asm/pa.inc: New file.
7414 * gdb.base/signull.c: Use sigjmp_buf instead of jmp_buf.
7419 * lib/gdb.exp (gdb_test_multiple): Improve regexp matching the
7424 * gdb.base/signull.c: Use sigsetjmp/siglongjmp instead of
7425 setjmp/longjmp. Use sigaction instead of signal.
7430 * gdb.threads/pthread_cond_wait.c: New file.
7431 * gdb.threads/pthread_cond_wait.exp: New testcase.
7435 * gdb.base/signull.exp, gdb.base/signull.c: New files.
7436 * gdb.base/gdb1476.c, gdb.base/gdb1476.exp: Delete files.
7440 * gdb.base/sigstep.exp (advancei): Update KFAILs. gdb/1613 is
7441 fixed but revealed gdb/1639.
7445 * gdb.base/signals.exp (signal_tests_1): Simplify "continue to
7446 func1" and "next to 2nd alarm", kernel bug avoided.
7451 * gdb.base/bigcore.exp: Check the size of the dumped core file.
7452 XFAIL if it is smaller than bytes_allocated.
7453 * gdb.base/bigcore.c (bytes_allocated): Make static and unsigned.
7454 (main): Make chunks_allocated unsigned. Correct comment.
7458 * gdb.arch/powerpc-aix-prologue.c: New file.
7459 * gdb.arch/powerpc-aix-prologue.exp: New file.
7463 * gdb.base/lineinc.exp, gdb.base/lineinc1.h, gdb.base/lineinc2.h,
7464 gdb.base/lineinc3.h, gdb.base/lineinc.c: New tests.
7468 * gdb.base/sep.exp: No longer setup_kfail when the program was
7473 * gdb.base/pending.exp: Make sure pending breakpoints
7474 preserve the ignore count.
7478 * i386-prologue.exp: Add testcase for jump instruction as first
7479 instruction of the real code.
7480 * i386-prologue.c (jump_at_beginning): New function.
7484 * gdb.base/call-sc.exp: Remove patterns to KFAIL PR gdb/1624 on
7489 * gdb.base/call-sc.exp: Remove patterns to KFAIL PR gdb/1623 on
7494 * gdb.base/call-sc.exp (start_scalars_test): Fix regular
7495 expression that checks the return type.
7499 * gdb.base/call-sc.exp: New test of scalar call/return values.
7500 * gdb.base/call-sc.c: Ditto.
7504 * gdb.threads/manythreads.c: Reduce thread stack size.
7508 * gdb.threads/manythreads.c: Add copyright notice.
7512 * gdb.base/siginfo.exp: Better handle step out of signal.
7513 * gdb.base/sigstep.exp: Ditto.
7518 * gdb.threads/manythreads.c: New testcase.
7519 * gdb.threads/manythreads.exp: Ditto.
7523 * gdb.stabs/exclfwd.exp, gdb.stabs/exclfwd1.c,
7524 gdb.stabs/exclfwd2.c, gdb.stabs/exclfwd.h: New test.
7528 * gdb.stabs/weird.exp: Accept full pathname for $binfile.
7532 * gdb.base/sigstep.c: New file.
7533 * gdb.base/sigstep.exp: New file.
7537 * gdb.gdb/observer.exp (test_normal_stop_notifications): Update
7538 call to observer_notify_normal_stop.
7542 * gdb.base/siginfo.c: New file.
7543 * gdb.base/siginfo.exp: New file.
7547 * gdb.base/sep.exp: Fix typo in comment.
7551 * gdb.base/sep.c: New file.
7552 * gdb.base/sep-proc.c: New file.
7553 * gdb.base/sep.exp: New testcase.
7557 * gdb.base/bigcore.exp: Disable on Solaris; no sparse core file
7562 * gdb.base/sigaltstack.c: New file.
7563 * gdb.base/sigaltstack.exp: New file.
7567 * gdb.base/foll-fork.exp: Update the expected output for
7568 "help set follow-fork-mode", to match a change that was made
7569 to the help of this variable on 2004-01-13.
7573 * lib/ada.exp: Add copyright notice.
7574 * bar.ads: Likewise.
7575 * bar.adb: Likewise.
7576 * null_record.adb: Likewise.
7577 * null_record.exp: Likewise.
7578 * gnat_ada.gpr.in: Likewise. Fix typo in a comment, clarify another.
7582 * configure.in: Generate gdb.ada/Makefile and gdb.ada/gnat_ada.gpr.
7583 * configure: Regenerate.
7587 * lib/ada.exp (gdb_compile_ada): Emit UNSUPPORTED if we failed
7588 to build the application. Remove the message printed when in
7589 verbose mode, redundant with the UNSUPPORTED message above.
7593 * gdb.ada (bar.ads, bar.adb, null_record.adb): New files.
7594 * gdb.ada (null_record.exp): New testcase.
7598 * Makefile.in (ALL_SUBDIRS) Add gdb.ada.
7602 * gdb.ada: New subdirectory.
7603 * gdb.ada/Makefile.in: New file.
7604 * gdb.ada/gnat_ada.gpr.in: New file.
7608 * lib/ada.exp: New file.
7612 * gdb.base/gdb1250.exp: Use runto {allow-pending}.
7613 * lib/gdb.exp (runto, gdb_breakpoint): Support {allow-pending}.
7617 * gdb.base/watchpoint.exp (test_stepping): Delete bogus XFAILs
7618 hiding problems with DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET.
7619 Problem identified by Ulrich Weigand.
7623 * gdb.cp/classes.exp (test_enums): Refer to PR c++/1588 instead of
7628 * gdb.base/auxv.exp: New file.
7629 * gdb.base/auxv.c: New file, copied verbatim from coremaker2.c.
7633 * gdb.cp/pr-1553.exp: New. Tests for PR c++/1553.
7634 * gdb.cp/pr-1553.cc: Ditto.
7635 * gdb.cp/local.exp (ptype NestedInnerLocal): Add comment, third
7640 * gdb.cp/templates.exp: Accept more template types.
7644 From Corinna Vinschen with modifications.
7645 * gdb.cp/classes.cc (enums1): Add a line to extend scope of
7646 local variable obj_with_enum.
7647 * gdb.cp/classes.exp (test_enums): Remove TODO note about FAIL
7648 results with obj_with_enum.
7652 * gdb.cp/classes.cc: New file, copied from misc.cc.
7653 * gdb.cp/classes.exp: Use classes.cc rather than misc.cc.
7657 * gdb.cp/misc.cc: Add copyright notice.
7661 * gdb.cp/rtti.exp: Add 'print *obj3' test.
7662 * gdb.cp/rtti.h: Update copyright.
7663 (namespace n2::n3): New.
7664 * gdb.cp/rtti1.cc: (refer_to (n2::n3::C3 *)): New.
7665 (n2::n3::func3): New.
7666 (main): Call n2::n3::func3.
7667 * gdb.cp/rtti2.cc: Update copyright.
7672 * gdb.asm/openbsd.inc: Fix typo.
7676 * gdb.base/pc-fp.exp (get_valueofx): Fix apparent typo to now set
7677 "val" instead of unused "size". Update copyright year.
7681 * gdb.cp/ctti.exp: Handle unsigned char type. Expect templates
7682 to use unsigned char.
7683 * gdb.cp/cttiadd.c, gdb.cp/cttiadd1.c, gdb.cp/cttiadd2.c,
7684 gdb.cp/cttiadd3.c: Change type of variable to unsigned char.
7688 * config/gdbserver.exp (gdbserver_gdb_load): Wait for a complete
7693 * gdb.base/relocate.c (dummy): Initialize.
7697 * gdb.base/chng-syms.exp: Anchor exit pattern. Allow
7698 a breakpoint at exit.
7702 * gdb.base/chng-syms.exp: Add expect condition to match failing
7703 case that isn't a timeout.
7707 * gdb.base/bigcore.exp: Disable on HP/UX, no sparse corefile
7712 * gdb.arch/gdb1431.c: Remove.
7713 * gdb.arch/gdb1431.s: New file, copy of gdb1291.s
7714 * gdb.arch/gdb1431.exp: Use "advance" correctly instead
7715 of "until" incorrectly.
7719 * gdb.cp/class2.cc (empty): New class.
7720 (refer): New function.
7721 (main): Declare an object of type empty and use it.
7722 * gdb.cp/class2.exp: Print the value of an object of type empty.
7726 * gdb.base/langs.exp: Update query string to match the
7727 new nquery format used for pending breakpoints.
7732 * gdb.base/charset.c: Update copyright notice.
7733 (main, init_string): Remove the escape character '\e' tests.
7734 * gdb.base/printcmds.exp (test_print_all_chars): Ditto.
7735 * gdb.base/charset.exp (valid_host_charset): Ditto.
7736 * gdb.base/setvar.exp: Ditto.
7740 * gdb.base/corefile.exp: Use gdb_test_multiple, make "accessing
7741 mmapped data in core file" PASS and FAIL messages consistent.
7743 * gdb.java/jmisc.exp: Use the fully quallified name of "main" when
7744 setting a breakpoint. Work around PR java/1565.
7748 * lib/gdb.exp (gdb_breakpoint): Update query string to match
7750 * gdb.base/pending.exp: Ditto.
7754 * configure.in: Run stabs tests on *BSD.
7755 * configure: Regenerated.
7759 * gdb.base/bigcore.exp: Bail out on *BSD instead of only NetBSD.
7763 * gdb.base/callfuncs.exp (do_function_calls): Remove extraneous
7764 blank in test for "returns short", for consistency with other
7765 "returns xxx" tests. Update copyright year.
7769 New testcase for PR breakpoint/1558.
7770 * gdb.arch/gdb1558.exp: New file.
7771 * gdb.arch/gdb1558.c: New file.
7775 * gdb.base/nodebug.exp: Fix typo.
7781 * gdb.objc/basicclass.exp: Adapt to fixed return type of printHi.
7783 * gdb.base/dump.exp: Handle negative offsets in decimal, not hex.
7785 * gdb.base/float.exp: Support s390*-*-* targets.
7789 * gdb.base/gdb1555.exp: New file.
7790 * gdb.base/gdb1555-main.c, gdb.base/gdb1555.c: New files.
7794 * gdb.base/selftest.exp (do_steps_and_nexts): Add comment.
7798 * gdb.arch/gdb1291.c: Remove
7799 * gdb.arch/gdb1291.s: New test input file.
7800 * gdb.arch/gdb1291.exp: Expand test to check case that should not
7801 fail. Test for correct result, known incorrect result, other
7802 failures and timeouts.
7806 * gdb.base/bigcore.exp: New file.
7807 * gdb.base/bigcore.c: New file.
7811 * gdb.mi/mi1-basics.exp, gdb.mi/mi1-break.exp: Delete file.
7812 * gdb.mi/mi1-console.exp, gdb.mi/mi1-disassemble.exp: Delete file.
7813 * gdb.mi/mi1-eval.exp, gdb.mi/mi1-hack-cli.exp: Delete file.
7814 * gdb.mi/mi1-pthreads.exp, gdb.mi/mi1-read-memory.exp: Delete file.
7815 * gdb.mi/mi1-regs.exp, gdb.mi/mi1-return.exp: Delete file.
7816 * gdb.mi/mi1-simplerun.exp, gdb.mi/mi1-stack.exp: Delete file.
7817 * gdb.mi/mi1-stepi.exp, gdb.mi/mi1-symbol.exp: Delete file.
7818 * gdb.mi/mi1-until.exp, gdb.mi/mi1-var-block.exp: Delete file.
7819 * gdb.mi/mi1-var-child.exp, gdb.mi/mi1-var-cmd.exp: Delete file.
7820 * gdb.mi/mi1-var-display.exp, gdb.mi/mi1-watch.exp: Delete file.
7824 * gdb.asm/ia64.inc (gdbasm_startup): Make sure first instruction
7825 executed is an alloc instruction.
7829 * gdb.cp/breakpoint.exp: New.
7830 * gdb.cp/breakpoint.cc: New.
7834 Partial fix for PR gdb/1543.
7835 * gdb.cp/ambiguous.exp, gdb.cp/annota2.exp, gdb.cp/annota3.exp,
7836 gdb.cp/anon-union.exp, gdb.cp/casts.exp, gdb.cp/classes.exp,
7837 gdb.cp/cplusfuncs.exp, gdb.cp/ctti.exp, gdb.exp/demangle.exp,
7838 gdb.cp/derivation.exp, gdb.cp/exception.exp, gdb.cp/hang.exp,
7839 gdb.cp/inherit.exp, gdb.cp/local.exp, gdb.cp/maint.exp,
7840 gdb.cp/member-ptr.exp, gdb.cp/method.exp, gdb.cp/misc.exp,
7841 gdb.cp/namespace.exp, gdb.cp/overload.exp, gdb.cp/ovldbreak.exp,
7842 gdb.cp/psmang.exp, gdb.cp/ref-types.exp, gdb.cp/templates.exp,
7843 gdb.cp/userdef.exp, gdb.cp/virtfunc.exp: Remove reference
7845 * gdb.cp/bs15503.cc, gdb.cp/class2.cc, gdb.cp/cttiadd.cc,
7846 gdb.cp/cttiadd1.cc, gdb.cp/cttiadd2.cc, gdb.cp/cttiadd3.cc,
7847 gdb.cp/exception.cc, gdb.cp/member-ptr.cc, gdb.cp/namespace1.cc:
7852 * lib/gdb.exp (gdb_expect_list): Recover from internal-errors
7853 using gdb_internal_error_resync.
7857 * gdb.threads/thread-specific.exp: Stop early if no threads are
7862 * gdb.base/pending.exp: Remove extra \n from gdb_test calls.
7866 * lib/gdb.exp (gdb_breakpoint): Fail on unexpected pending
7871 * config/sim.exp (gdb_load): Handle $arg == "".
7872 * lib/gdb.exp (gdb_run_cmd): Honor gdb,do_reload_on_run.
7873 * gdb.objc/basicclass.exp: Use gdb_run_cmd.
7877 * gdb.base/maint.exp: Update test to reflect
7882 * gdb.base/pendshr.c (pendfunc): New function that calls
7884 * gdb.base/pending.c: Call pendfunc instead of pendfunc1.
7888 * gdb.arch/gdb1431.c: Add underbar prefixed version of global
7889 function symbols and update copyright years.
7890 * gdb.arch/gdb1291.c: Ditto.
7894 * gdb.cp/virtfunc.exp: Accept both "ctor()" and "ctor(void)".
7898 * gdb.cp/inherit.exp: Accept both "ctor()" and "ctor(void)".
7902 * gdb.cp/inherit.exp: Accept output with gcc 3.2-7-rh.
7906 * gdb.base/bang.exp: Use gdb_run_cmd so this tests works with
7907 remote targets. Update copyright years.
7911 * lib/gdb.exp (gdb_breakpoint): Add pending breakpoint
7913 * gdb.base/langs.exp: Fix test which attempts to create
7914 breakpoint on non-existent function to handle new pending
7916 * gdb.base/shlib-call.exp: Use gdb_breakpoint to set
7918 * gdb.base/pending.exp: New test.
7919 * gdb.base/pending.c: New file.
7920 * gdb.base/pendshr.c: Ditto.
7924 * gdb.cp/overload.exp: Add overloadNamespace tests.
7925 * gdb.cp/overload.cc (dummyClass, dummyInstance): New.
7926 (overloadNamespace, XXX): New.
7927 (main): Call XXX::marker2.
7931 * gdb.base/dump.exp: Use runto_main instead of "runto main".
7932 * gdb.base/finish.exp: Ditto.
7933 * gdb.base/gcore.exp: Ditto.
7934 * gdb.base/huge.exp: Ditto.
7935 * gdb.base/info-proc.exp: Ditto.
7936 * gdb.base/return2.exp: Ditto.
7937 * gdb.threads/gcore-thread.exp: Ditto.
7941 * gdb.threads/thread-specific.exp: Add missing anchor to regexp.
7945 * gdb.base/fileio.c (test_open): Replace O_RDONLY with O_RDWR such
7946 that opening the file succeeds on OpenBSD.
7950 * gdb.threads/thread-specific.c: New file.
7951 * gdb.threads/threads-specific.exp: New test script.
7952 * lib/gdb.exp (gdb_test_multiple): Allow user patterns access
7957 * gdb.base/call-ar-st.exp: Call get_debug_format. Remove xfail on
7958 sparc*-*-solaris* into a kfail PR gdb/1539 on sparc-*-* for stabs
7959 only on the "print_small_structs from print_long_arg_list" test.
7963 * gdb.base/completion.exp: Kill a stray backslash.
7966 * gdb.base/completion.exp: Test that "complete file ./gdb.base/compl"
7967 agrees with the result from sending a tab.
7971 * gdb.base/chng-syms.exp: Remove stray newline.
7975 * gdb.asm/asm-source.exp: Set asm-note to "openbsd" for
7977 * gdb.asm/openbsd.inc: New file.
7981 * gdb.asm/asm-source.exp: Strip -Wl, from link-flags. Don't
7982 append -static to link-flags for *-*-freebsd*, *-*netbsd* and
7983 *-*solaris2*. Remove commented out default settings for
7984 asm-flags. Replace gdb_compile with target_link.
7988 * gdb.cp/inherit.exp: Rewrite. Use gdb_test_multiple and gdb
7989 for all tests. Remove old hp-ux and cygnus xfail cases.
7993 * gdb.base/chng-syms.exp: New file.
7994 * gdb.base/chng-syms.c: New file.
7998 * gdb.cp/local.exp: Rewrite "ptype Local". Add "ptype l".
7999 Provide arms for current output in all my configurations.
8003 * lib/compiler.c: Add hp_cc_compiler and hp_aCC_compiler.
8004 * lib/compiler.cc: Likewise.
8005 * lib/gdb.exp (get_compiler_info): Always call gdb_compile to
8006 get the right preprocessor. Eval the output directly. Remove
8007 special tests for hp_cc_compiler and hp_aCC_compiler. Remove
8008 hp_f77_compiler and hp_f90_compiler completely.
8009 (gdb_preprocess): Delete.
8010 (get_compiler): Delete.
8014 * gdb.base/charset.c, gdb.base/dump.c, gdb.base/huge.c: Include
8019 * gdb.mi/mi-stack.exp: Update copyright.
8023 * gdb.cp/rtti.exp: Don't include full path in ${srcfile}. Add
8024 test for cp_lookup_transparent_type.
8025 * gdb.cp/rtti1.cc: Update copyright. Add n2::func and refer_to;
8030 * gdb.mi/mi-var-child.exp: Update copyright year. Move new test
8035 * gdb.cp/namespace.cc (C::ensureRefs): New.
8036 * gdb.cp/namespace1.cc (C::ensureOtherRefs): New.
8040 * gdb.mi/mi-stack.exp (test_stack_locals_listing): Test for
8041 case "-stack-list-locals 2".
8042 * gdb.mi/mi-var-child.exp: Test for case
8043 "-var-list-children --all-values NAME".
8047 * gdb.cp/local.exp: Accept correct output for gcc v3 -gstabs+.
8051 * gdb.base/fileio.exp: Add "$gdb_prompt $" anchors to patterns
8052 used with gdb_test_multiple.
8054 * gdb.base/gdb1476.exp: Accept alternat pattern for failed memory
8055 read at address 0. This fixes PR testsuite/1504.
8059 * config/gdbserver.exp (gdbserver_gdb_load): Rename from gdb_load.
8060 Remove downloading, guessing the host executable, the calls to
8061 gdb_file_cmd and gdb_target_cmd, and "load" support.
8062 (infer_host_exec): New function broken out from gdb_load.
8063 (gdb_load): New wrapper for gdbserver_gdb_load.
8064 * lib/mi-support.exp (mi_gdb_target_cmd): New function, based on
8065 gdb_target_cmd. Use -target-select.
8066 (mi_gdb_file_cmd): New function, broken out from mi_gdb_load.
8067 Download binaries to the host. Clear last_mi_remote_file when
8068 we load a new binary.
8069 (mi_gdb_load): Call mi_gdb_file_cmd. If gdbserver.exp is loaded,
8070 call gdbserver_gdb_load and mi_gdb_target_cmd.
8074 * gdb.cp/templates.exp: Accept more spaces with "<foo, ?bar>"
8079 * gdb.cp/templates.exp: Fix typo in test name of
8080 "print Foo<volatile char*>::foo".
8084 * gdb.base/setvar.exp: Remove setup_xfail for hppa*-*-*11*.
8088 * gdb.arch/Makefile.in (MISCELLANEOUS): Remove.
8089 (clean mostlyclean): Remove empty rm.
8093 * gdb.base/setvar.exp: Add copyright years.
8097 * gdb.cp/rtti.exp: Update copyright. KFAIL test with repect to
8098 PR c++/1511 and update coment.
8099 * gdb.cp/templates.exp: Update patterns to match current output.
8100 If changes involve something other than whitespace, KFAIL
8101 w.r.t. PR c++/1512 or PR c++/931 as appropriate.
8105 * gdb.cp/namespace.exp: Add tests involving classes defined within
8107 * gdb.cp/namespace.cc (C::CClass): New.
8108 * gdb.cp/namespace1.cc (C::OtherFileClass): New.
8112 * gdb.base/sepdebug.exp: Bail out of the test if we don't know
8113 what debug info we have. Print a better message if something goes
8114 wrong while producing the separate debug info file.
8118 * gdb.base/callfuncs.c: Remove explicit declaration of malloc.
8122 * gdb.base/callfuncs.c: Add copyright notice.
8126 * gdb.cp/derivation.exp: Add XFAIL for bug with protected
8127 inheritance. PR gdb/1498, PR gcc/13539.
8131 * gdb.threads/gcore-thread.exp: Prefix name of binary with
8133 * gdb.mi/gdb669.exp: Ditto.
8134 * gdb.mi/mi-pthreads.exp: Ditto.
8135 * gdb.mi/mi1-pthreads.exp: Ditto.
8136 * gdb.mi/mi2-pthreads.exp: Ditto.
8140 * gdb.cp/member-ptr.cc: Add copyright notice.
8144 * gdb.cp/member-ptr.exp: Use gdb_test, gdb_test_multiple. Add
8145 some patterns for recent versions of gcc and hpacc. Delete
8146 calls to setup_xfail for hppa*-*-*. Delete redundant tests.
8147 Delete tests that access a NULL pointer-to-member-data. This
8148 script is still disabled for gcc.
8152 * gdb.mi/mi2-basics.exp: Make sure that full pathnames are
8157 * gdb.base/sepdebug.exp: New file.
8158 * gdb.base/sepdebug.c: New file.
8159 * lib/gdb.exp (separate_debug_filename): New procedure.
8160 (gdb_gnu_strip_debug): New procedure.
8164 * gdb.mi/ChangeLog: Delete file. Renamed to ...
8165 * gdb.mi/ChangeLog-1999-2003: New file.
8169 * gdb.base/fileio.exp: Update copyright year. On GNU/Linux, for
8170 "Renaming a directory to a non-empty directory returns ENOTEMPTY
8171 or EEXIST", treat EBUSY as an XFAIL.
8175 * gdb.base/scope.exp: Remove obsolete setup_xfail for
8180 * gdb.cp/classes.exp: Remove old "(obsolescent gcc or gdb)"
8185 * gdb.cp/virtfunc.exp: Remove old "(obsolescent gcc or gdb)"
8186 and "(aCC)" decorations. Remove obsolete doco about old
8191 * gdb.cp/exception.exp: Fix typo in doco.
8195 * gdb.base/gdb1476.exp: Fix typo.
8199 * gdb.hp/gdb.aCC/exception.exp: Re-create as a nearly empty
8204 * gdb.cp/exception.cc: Change <iostream.h> to <iostream>.
8205 * gdb.cp/exception.exp: Use gdb test, gdb_test_multiple.
8206 Use gdb_compile. Remove restriction on gcc. Add some patterns
8207 for recent version of gdb. Delete second half, which was a copy
8208 of the first half with different build flags. This test is
8209 still disabled because it is still not ready for production.
8213 * gdb.cp/exception.cc: Add copyright notice.
8214 * gdb.cp/exception.exp: Add a notice that this file is broken
8215 because of line number changes caused by addition of copyright
8220 * gdb.cp/exception.cc: Renamed from gdb.hp/gdb.aCC/exception.cc.
8221 * gdb.cp/exception.exp: Renamed from gdb.hp/gdb.aCC/exception.exp.
8225 * gdb.cp/classes.exp: Accept gnu abi 2.
8226 * gdb.cp/derivation.exp: Likewise.
8227 * gdb.cp/overload.exp: Likewise.
8228 * gdb.cp/virtfunc.exp: Likewise.
8232 * gdb.mi/pthreads.c (done_making_threads): Remove extraneous
8233 semicolon after end of function.
8237 * gdb.cp/bs15503.cc: Include <iostream>, not <iostream.h>.
8238 * gdb.cp/bs15503.exp: Remove hp-only restriction. Use modern
8239 boilerplate code for compiling and running the program under
8240 test. Add some string method tests.
8244 * gdb.cp/bs15503.cc: Add copyright notice.
8245 * gdb.cp/bs15503.exp: Adjust line number.
8249 * gdb.hp/gdb.defects/bs15503.exp: Renamed to gdb.cp/bs15503.exp.
8250 * gdb.hp/gdb.defects/bs15503.cc: Renamed to gdb.cp/bs15503.cc.
8254 * gdb.base/funcargs.exp: Remove obsolete setup_xfail for
8259 * gdb.cp/cttiadd.c: Add a marker for gdb_get_line_number.
8260 * gdb.cp/ctti.exp: Use the marker instead of "next".
8261 With gcc, run further before bailing.
8265 * gdb.cp/cttiadd.cc: Add copyright notice.
8266 * gdb.cp/cttiadd1.cc: Likewise.
8267 * gdb.cp/cttiadd2.cc: Likewise.
8268 * gdb.cp/cttiadd3.cc: Likewise.
8272 * gdb.cp/ctti.exp: Partial rewrite. Call gdb_compile properly.
8273 Use gdb_test, gdb_test_multiple. Use floating-point values that
8274 have exact representations in IEEE-ish formats.
8278 * gdb.base/constvars.exp: Do not force lang=c++ if using HP
8279 compilers. Delete duplicate call to get_compiler_info.
8280 (local_compiler_xfail_check): setup_xfail if $hp_cc_compiler.
8281 * gdb.base/volatile.exp: Likewise.
8285 * gdb.base/gdb1476.exp: Only run the tests if we can't read the
8286 memory at address 0.
8290 * gdb.stabs/weird.exp: Use hp_cc_compiler and hp_aCC_compiler
8291 to test for hp-ux assembler. Fix copyright years.
8295 * gdb.base/fileio.c (strerrno): Add "EBUSY".
8299 * gdb.base/fileio.c (test_open): Do not pass S_IWUSR to "open"
8300 when creating the read-only file. From analysis by Roland McGrath
8305 * gdb.cp/namespace.exp: Call get_compiler_info with "c++".
8309 * gdb.base/cvexpr.c: Be type-safe with function pointers and
8314 * gdb.cp/m-static.exp: Compile one source file at a time.
8315 Delete unused call to get_compiler_info.
8319 * gdb.base/call-ar-st.exp: Delete explicit reference to ${binfile}.ci.
8320 * gdb.base/call-rt-st.exp: Likewise.
8321 * gdb.base/nodebug.exp: Likewise.
8322 * gdb.base/volatile.exp: Likewise.
8323 * gdb.cp/ref-types.exp: Likewise.
8324 * gdb.cp/templates.exp: Likewise.
8328 * gdb.base/gdb1476.exp, gdb.base/gdb1476.c: New files.
8332 * gdb.cp/funcargs.exp: Delete special timeout of 240 seconds for
8337 * gdb.base/structs.exp: Add patterns to kfail PR gdb/1447 for
8340 * gdb.base/structs.exp: Add patterns to kfail PR gdb/1447 for
8341 sparc64-*-* and sparc*-solaris2*.
8345 * gdb.base/structs.exp: Remove ${testfile} from "zed L<n> for
8346 return ${tests}" test. The ${tests} already mentions the
8351 * gdb.cp/local.exp: Accept gcc abi 2.
8355 * gdb.cp/templates.exp: Accept gcc abi 2.
8359 * lib/compiler.cc: Remove supports_template_debugging.
8360 * gdb.cp/templates.exp: Do not test supports_template_debugging.
8364 * gdb.cp/namespace.exp: Accept gcc abi 2.
8368 * gdb.cp/method.exp: Accept gcc abi 2.
8372 * gdb.cp/classes.exp: Generate identical results as old version.
8373 * gdb.cp/derivation.exp: Likewise.
8374 * gdb.cp/overload.exp: Likewise.
8375 * gdb.cp/virtfunc.exp: Likewise.
8379 * gdb.cp/virtfunc.exp: Modify some patterns to avoid a
8380 mysterious bug with sourceware version of expect.
8384 * gdb.cp/overload.exp: Rewrite. Clean up patterns to match
8385 current versions of gcc, including gcc abi 2. Remove gratuitous
8386 restart of test program. Use gdb_test_multiple and gdb_test for
8387 all tests. Add patterns to xfail missing "const" in "const char *"
8388 and kfail PR gdb/1155.
8392 * gdb.cp/derivation.exp: Rewrite. Clean up patterns to match
8393 current versions of gcc, including gcc abi 2. Remove gratuitous
8394 restart of test program. Use gdb_test_multiple and gdb_test for
8395 all tests. Add patterns to kfail PR gdb/1498.
8399 * gdb.cp/virtfunc.exp: Rewrite. Clean up patterns to match
8400 current versions of gcc, including gcc abi 2. Use "breakpoint"
8401 and "continue" instead of restarting the target program. Use
8402 gdb_test_multiple and gdb_test for all tests.
8406 * gdb.asm/asm-source.exp: Update copyright year. Link statically
8411 * gdb.cp/classes.exp: Rewrite. Clean up patterns to match
8412 current versions of gcc, including gcc abi 2. Use "breakpoint"
8413 and "continue" instead of restarting the target program several
8414 times. Use gdb_test_multiple and gdb_test for all tests.
8418 * gdb.base/sect-cmd.exp: Handle compiling test case from multiple
8423 * gdb.base/environ.exp: Handle compiling test case from multiple
8428 * gdb.base/structs.exp: Call gdb_exit as well as gdb_start.
8432 * gdb.base/freebpcmd.c: Add copyright notice.
8434 * gdb.base/freebpcmd.exp: Mark the interesting failure as known.
8438 * gdb.base/maint.exp: Add generic FAIL patterns to prevent timeouts.
8442 * gdb.base/freebpcmd.exp, gdb.base/freebpcmd.c: New test.
8446 * gdb.asm/frv.inc: New file.
8447 * gdb.asm/asm-source.exp: Add frv-*-* as a supported target.
8451 * gdb.base/break.c (marker1, marker2, marker3, marker4): Move
8452 functions to break1.c and leave prototypes behind. Add more
8453 "set breakpoint NN here" comments.
8454 * gdb.base/break1.c: New file.
8456 * gdb.base/break.exp: Handle compiling test case from multiple
8457 source files and change source file references as needed.
8458 * gdb.base/completion.exp: Ditto.
8459 * gdb.base/condbreak.exp: Ditto.
8460 * gdb.base/define.exp: Ditto.
8461 * gdb.base/ena-dis-br.exp: Ditto.
8462 * gdb.base/info-proc.exp: Ditto.
8463 * gdb.base/maint.exp: Ditto.
8464 * gdb.base/until.exp: Ditto.
8466 * gdb.base/condbreak.exp: Use bp_locationNN variables instead of
8467 hardcoded line numbers.
8468 * gdb.base/define.exp: Ditto.
8469 * gdb.base/ena-dis-br.exp: Ditto.
8470 * gdb.base/maint.exp: Ditto.
8471 * gdb.base/until.exp: Ditto.
8473 * gdb.base/completion.exp: Use "break1" for completion tests since
8474 "break" is no longer a unique prefix.
8478 * gdb.base/structs.exp (test_struct_returns): When applicable, set
8479 "return_value_unimplemented". When an unimplemented struct return
8480 architecture, report incorrect values as a KFAIL
8484 * gdb.cp/rtti.exp: Accept new wording of warning from
8485 cp_lookup_rtti_type.
8489 Partial fix for PR testsuite/1456.
8490 * gdb.base/scope.exp (test_at_main): Replace references to
8491 gcc_compiled with calls to test_compiler_info.
8492 (test_at_foo): Likewise.
8493 (test_at_bar): Likewise.
8497 Partial fix for PR testsuite/1456.
8498 * gdb.base/so-impl-ld.exp: Replace reference to gcc_compiled with call
8499 to test_compiler_info.
8503 * gdb.base/so-impl-ld.exp: Update copyright notice.
8507 Partial fix for PR testsuite/1456.
8508 * gdb.base/mips_pro.exp: Replace references to gcc_compiled with calls
8509 to test_compiler_info.
8513 * gdb.objc/objcdecode.exp: Match and KFAIL the output that comes
8514 from current versions of gdb. Clean up regular expressions.
8515 Delete redundant timeout case.
8519 * gdb.objc/nondebug.exp: Match and KFAIL the output that comes
8520 from current versions of gdb. Clean up regular expressions.
8521 Delete redundant timeout case.
8525 Partial fix for PR testsuite/1456.
8526 * gdb.base/callfuncs.exp (do_function_calls): Replace reference to
8527 gcc_compiled with call to test_compiler_info.
8531 Partial fix for PR testsuite/1456.
8532 * gdb.base/list.exp (test_list_function): Delete unused declaration
8537 Partial fix for PR testsuite/1456.
8538 * gdb.base/complex.exp: Replace reference to gcc_compiled with
8539 call to test_compiler_info.
8543 * gdb.asm/asm-source.exp: Initialize asm-note to "empty". Set
8544 asm-note to "netbsd" for *-*-netbsdelf* and x86_64-*-netbsd*. Use
8545 it to create the appropriate note.inc.
8546 * gdb.asm/asmsrc1.s: Include "note.inc".
8547 * gdb.asm/netbsd.inc: New file.
8548 * gdb.asm/empty.inc: New file.
8552 Partial fix for PR testsuite/1456.
8553 * gdb.base/constvars.exp: Replace references to gcc_compiled with
8554 calls to test_compiler_info.
8558 Partial fix for PR testsuite/1456.
8559 * gdb.base/volatile.exp: Replace references to gcc_compiled with
8560 calls to test_compiler_info.
8564 * gdb.base/structs.exp: Use i*86-*-* instead of i686-*-* as a
8565 pattern for the KFAILs.
8569 * gdb.objc/objcdecode.exp: Test for PR objc/1238.
8570 * gdb.objc/objcdecode.m: New file.
8574 * gdb.objc/nondebug.exp: Test for PR objc/1236.
8575 * gdb.objc/nondebug.m: New file.
8579 * gdb.asm/asm-source.exp: Make sure the final link succeeds on
8580 NetBSD as it does on FreeBSD. Modelled on a similar change by
8581 Mark Kettenis on 2003-05-30.
8582 (link-flags): Set to "--entry _start" regardless of target.
8583 Special linker flags are to be appended to $link-flags.
8584 * gdb.asm/mips.inc (gdbasm_startup): Remove __start label.
8588 * gdb.cp/method.exp: Accept output of new demangler.
8592 * gdb/class2.exp: New file.
8593 * gdb/class2.cc: New file.
8597 * gdb.cp/templates.exp (test_ptype_of_templates): Accept output
8602 * gdb.arch/i386-unwind.exp: Use gdb_run_cmd and gdb_expect instead
8607 * gdb.arch/i386-unwind.exp: Don't use runto_main. Change
8608 "continue" into "run".
8612 Partial fix for PR testsuite/1456.
8613 * gdb.cp/ambiguous.exp: Replace reference to gcc_compiled with
8614 call to test_compiler_info.
8615 * gdb.cp/ctti.exp: Likewise.
8616 * gdb.cp/derivation.exp: Likewise.
8617 * gdb.cp/member-ptr.exp: Likewise.
8618 * gdb.cp/virtfunc.exp (test_virtual_calls): Remove unused
8619 reference to gcc_compiled.
8623 Fix PR testsuite/1463.
8624 * gdb.base/structs.exp (start_structs_test): Call
8625 get_debug_format before using the debug format.
8629 * lib/gdb.exp (gdb_test_multiple): Add simple example.
8630 * gdb.base/structs.exp: Use gdb_test_multiple.
8634 * gdb.base/structs.exp: Handle and recover from internal errors.
8635 Replace "foo${n}" with "foo<n>" in test messages.
8637 * gdb.base/structs.exp: Update copyright. Rewrite.
8638 * gdb.base/structs.c: Update copyright. Rewrite.
8640 * lib/gdb.exp (gdb_internal_error_resync): Issue a perror when the
8641 resync count exceeded.
8643 * gdb.base/maint.exp: Use gdb_internal_error_resync to recover
8644 from the internal error.
8645 * lib/gdb.exp (gdb_internal_error_resync): New procedure.
8646 Original from Jim Blandy.
8647 (gdb_test_multiple): Use gdb_internal_error_resync.
8651 * gdb.base/callfuncs.exp: Change the XFAILed descriptor test to a
8656 New testcase for PR backtrace/1435.
8657 * gdb.arch/i386-unwind.exp: New file.
8658 * gdb.arch/i386-unwind.c: New file.
8662 * lib/gdb.exp (compiler_info): New global.
8663 (test_compiler_info): New function.
8664 (get_compiler_info): Set compiler_info.
8665 * lib/compiler.c, lib/compiler.cc: Add copyright. When GNUC, set
8666 "compiler_info" to gcc-<major>-<minor>.
8670 * gdb.trace/configure: Remove.
8674 * gdb.base/break.c: Add comments to aid finding line numbers for
8676 * gdb.base/break.exp: Remove all references to explicit line
8681 * gdb.base/shreloc.exp: Do not run for targets which do not
8682 support shared objects.
8686 * gdb.base/fileio.exp: Drop tests for nointerrupts and noinferiorio.
8687 Don't run tests if nofileio flag is given.
8691 * gdb.cp/annota3.exp: Make sure we can match 'Hardware watchpoint'
8692 as well as 'Watchpoint'.
8697 * gdb.base/annota1.exp: Match at least one occurrence of the
8698 signal handler annotation.
8702 * gdb.cp/annota2.exp: Make sure we can match 'Hardware watchpoint'
8703 as well as 'Watchpoint'.
8707 * gdb.mi/pthreads.c (routine): Handle early return from sleep.
8711 * gdb.arch/gdb1291.c: New test file.
8712 * gdb.arch/gdb1291.exp: New test script.
8713 * gdb.arch/gdb1431.c: New test file.
8714 * gdb.arch/gdb1431.exp: New test script.
8718 * gdb.mi/pthreads.c: Add copyright notice.
8722 * gdb.threads/pthreads.c: Add copyright notice.
8726 * gdb.base/gdb1056.exp: New test script.
8730 * gdb.threads/killed.exp: Use gdb_run_cmd.
8734 * gdb.base/gcore.exp: Issue an UNSUPPORTED and exit if we can't
8736 * gdb.threads/gcore-thread.exp: Likewise.
8740 * gdb.base/call-rt-st.c (struct bit_flags_char_t): New bitfield
8741 type, based on char type.
8742 (struct bit_flags_short_t): New bitfield type, based on short type.
8743 (init_bit_flags_char): New fuction.
8744 (init_bit_flags_short): Ditto.
8745 (print_bit_flags_char): Ditto.
8746 (print_bit_flags_short): Ditto.
8747 (main): Add handling for bit_flags_char_t and bit_flags_short_t.
8751 * gdb.base/call-rt-st.exp: Update copyright year.
8755 * config/hmsirom.exp: Replace "Hitachi" with "Renesas".
8756 * gdb.disasm/sh3.s: Ditto.
8760 * gdb.threads/switch-threads.exp: New test.
8761 * gdb.threads/switch-threads.c: New source file.
8765 * gdb.base/ending-run.exp: Add sh specific case.
8769 * gdb.base/watchpoint.exp: Delete obsolete clear_xfail.
8770 * gdb.disasm/mn10200.exp: Delete obsolete file.
8774 * ChangeLog: Correct an entry command.exp -> commands.exp.
8775 * gdb.base/commands.exp (bp_deleted_in_command_test)
8776 (temporary_breakpoint_commands): Check noargs.
8780 * gdb.cp/namespace.exp: Tweak comments. Add non-quoted versions
8781 of some print tests, where appropriate. Add tests for C::D::cd,
8782 E::ce, F::cXfX, G::XgX.
8783 * gdb.cp/namespace.cc: Add XgX, cXfX, ce.
8787 * lib/java.exp (java_init): Import target_alias before using it.
8791 * gdb.base/corefile.exp: Delete obsolete setup_xfail.
8795 * gdb.base/selftest.exp: Accomodate more instruction reordering
8800 * gdb.cp/gdb1355.exp: New file.
8801 * gdb.cp/gdb1355.c: New file.
8805 * gdb.asm/asm-source.exp: Add sh*-*-* as supported target.
8806 * gdb.asm/sh.inc: New file.
8810 * gdb.cp/namespace.exp: Add tests for namespace types.
8811 * gdb.cp/maint.exp (test_help): Test 'help maint cp namespace'.
8812 (test_namespace): New.
8816 * gdb.base/relocate.exp: Handle new gdb output at startup.
8817 * gdb.stabs/weird.exp: Ditto.
8821 * gdb.base/gdb1250.c: Rename 'gamma' to 'my_gamma'.
8825 * gdb.cp/classes.exp: Accommodate both 'syntax error' and
8830 * gdb.arch/i386-prologue.exp: Add checks for saved registers.
8834 * gdb.base/selftest.exp: Remove support for m68k*-*-hpux.
8835 * gdb.gdb/observer.exp: Ditto.
8836 * gdb.gdb/xfullpath.exp: Ditto.
8840 * gdb.base/interrupt.exp: XFAIL "call function when asleep" for
8845 * gdb.base/dump.exp: Skip for ia64.
8849 * gdb.asm/asm-source.exp: Add ia64 support.
8850 * gdb.asm/ia64.inc: New file.
8854 * gdb.cp: New directory.
8855 * gdb.cp/*: Copy from gdb.c++/*.
8856 * gdb.c++/*: Remove.
8857 * Makefile.in: Change gdb.c++ to gdb.cp.
8858 * configure.in: Ditto.
8859 * configure: Regnerate.
8863 * gdb.arch/i386-prologue.exp: Add testcase for PR backtrace/1338.
8864 * gdb.arch/i386-prologue.c (gdb1338): Add function.
8868 * mi-var-display.exp (-var-list-children weird): Accept function
8869 pointers with argument types.
8870 * mi1-var-display.exp (-var-list-children weird): Likewise.
8871 * mi2-var-display.exp (-var-list-children weird): Likewise.
8875 * gdb.base/annota3.exp: Add missing newline.
8879 * gdb.java/jmisc1.exp: Add test for pr gdb/1322.
8883 * gdb.base/float.exp: Add test for SH.
8887 * gdb.arch/i386-prologue.c, gdb.arch/i386-prologue.exp: New files.
8891 * gdb.base/completion.exp: Remove reduntant completion test
8896 * gdb.base/attach.exp, gdb.base/detach.exp, gdb.base/gcore.exp,
8897 gdb.mi/mi-basics.exp, gdb.threads/gcore-thread.exp,
8898 gdb.trace/save-trace.exp: Make sure that full pathnames are
8903 * configure.in: Don't generate config.h from config.hin.
8904 * configure: Regenerate.
8905 * config.hin: Remove file.
8906 * gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs.
8907 * gdb.threads/pthreads.c: Ditto.
8912 * gdb.asm/asm-source.exp : Add -lgloss to link-flags.
8913 * gdb.asm/m32r.inc : Remove an illegal nop after bl instruction.
8914 Replace ld24 with seth/add3.
8918 * gdb.base/annota3.exp: New file.
8919 * gdb.base/annota3.c: New file.
8920 * gdb.c++/annota3.exp: New file.
8921 * gdb.c++/annota3.cc: New file.
8925 * gdb.threads/tls.c (spin): Check errno only if sem_wait
8927 (do_pass): Likewise.
8928 * gdb.threads/tls.exp: Always initialize no_of_threads.
8932 * gdb.threads/print-threads.exp (test_all_threads): Loosen KFAIL
8934 * gdb.threads/tls-shared.exp: Don't use gdb_suppress_entire_file.
8935 * gdb.threads/tls.exp: Recognize one case of the host library not
8940 * gdb.base/fileio.exp: Use SH when running commands using
8946 * gdb.base/relocate.c (dummy): New padding array.
8950 * gdb.disasm/8300s.s: Fix syntax of bsr insn.
8952 * gdb.disasm/h8300s.exp : Minor changes in disassembler output require
8953 patterns to be more general, accepting old and new output.
8954 Some output chars (such as '+') also must be quoted.
8955 Some addresses are displayed numerically instead of
8960 * gdb.base/return2.exp: Don't test long-long return.
8962 * gdb.disasm/t01_mov.s: New file, h8300sx disassembly tests.
8963 * gdb.disasm/t01_mov.exp: Ditto.
8964 * gdb.disasm/t02_mova.s: Ditto.
8965 * gdb.disasm/t02_mova.exp: Ditto.
8966 * gdb.disasm/t03_add.s: Ditto.
8967 * gdb.disasm/t03_add.exp: Ditto.
8968 * gdb.disasm/t04_sub.s: Ditto.
8969 * gdb.disasm/t04_sub.exp: Ditto.
8970 * gdb.disasm/t05_cmp.s: Ditto.
8971 * gdb.disasm/t05_cmp.exp: Ditto.
8972 * gdb.disasm/t06_ari2.s: Ditto.
8973 * gdb.disasm/t06_ari2.exp: Ditto.
8974 * gdb.disasm/t07_ari3.s: Ditto.
8975 * gdb.disasm/t07_ari3.exp: Ditto.
8976 * gdb.disasm/t08_or.s: Ditto.
8977 * gdb.disasm/t08_or.exp: Ditto.
8978 * gdb.disasm/t09_xor.s: Ditto.
8979 * gdb.disasm/t09_xor.exp: Ditto.
8980 * gdb.disasm/t10_and.s: Ditto.
8981 * gdb.disasm/t10_and.exp: Ditto.
8982 * gdb.disasm/t11_logs.s: Ditto.
8983 * gdb.disasm/t11_logs.exp: Ditto.
8984 * gdb.disasm/t12_bit.s: Ditto.
8985 * gdb.disasm/t12_bit.exp: Ditto.
8986 * gdb.disasm/t13_otr.s: Ditto.
8987 * gdb.disasm/t13_otr.exp: Ditto.
8991 * gdb.threads/tls.exp :Add kfail for 'info address' case.
8995 * gdb.threads/tls.c : New file.
8996 * gdb.threads/tls.exp : New file.
8997 * gdb.threads/tls-main.c : New file.
8998 * gdb.threads/tls-shared.c : New file.
8999 * gdb.threads/tls-shared.exp : New file.
9003 * gdb.asm/powerpc.inc (gdbasm_startup): Force alignment.
9007 * gdb.base/selftest.exp (do_steps_and_nexts): Add more patterns
9008 due to insn reordering.
9012 * gdb.asm/asm-source.exp: Do not allow "start" in the backtrace.
9016 * gdb.base/gdb1250.exp: New file.
9017 * gdb.base/gdb1250.c: New file.
9021 * gdb.c++/templates.exp (test_ptype_of_templates): Recognize
9022 expansion of size_t to 'unsigned long', not only to 'unsigned'.
9026 * gdb.threads/tls.c: New file.
9027 * gdb.threads/tls.exp: New file.
9028 * gdb.threads/tls-main.c: New file.
9029 * gdb.threads/tls-shared.c: New file.
9030 * gdb.threads/tls-shared.exp: New file.
9034 * gdb.base/annota1.exp: Make sure that we properly escape the
9035 full path of the source file. Xfail more permissive patterns,
9036 due to a compiler debug info problem.
9040 * gdb.asm/m68k.inc: New file.
9041 * gdb.asm/asm-source.exp: Use it for m68k-*-*.
9043 * gdb.objc/basicclass.exp ("Call an Objective-C method with no
9044 arguments"): Also match negative number.
9046 * gdb.base/float.exp ("info float"): Add test for m68k-*-*.
9050 * gdb.base/store.c (charest): New typedef.
9051 (add_char): Rename to add_charest, update.
9052 (wack_char): Rename to wack_charest, update types. Return l + r
9053 to keep r live across the call.
9054 (wack_short, wack_int, wack_long, wack_longest, wack_float)
9055 (wack_double, wack_doublest): Return l + r to keep r live across
9057 * gdb.base/store.exp: Accomodate store.c changes.
9061 * gdb.c++/maint.exp (test_invalid_name): New.
9062 (test_first_component): Add tests for invalid names.
9066 * gdb.c++/inherit.exp (test_print_svi_classes): Accept gdb
9067 output of '<VTT for class>' for virtual base classes.
9071 * gdb.base/completion.exp: Tab-complete "complet" instead of
9073 * gdb.base/complex.exp, gdb.base/complex.c: New files.
9077 * gdb.base/constvars.exp: Remove most xfails for GCC 3.x.
9078 * gdb.base/volatile.exp: Likewise.
9082 * gdb.threads/print-threads.exp (test_all_threads): Add kfail for
9088 * gdb.base/selftest.exp (do_steps_and_nexts): Increase maximum
9089 initial line count of 'captured_main' from 26 to 32.
9090 (test_with_self): Allow xmalloc call to be interleaved with the
9091 preceding two lines.
9095 * gdb.base/bang.exp: New testcase.
9099 * gdb.base/langs.exp: Add some tests for the "minimal" language
9104 * gdb.objc/basicclass.exp: Return -1 if we cannot compile
9109 * gdb.base/relocate.exp: Test add-symbol-file with a variable
9114 * gdb.c++/pr-1210.cc: New file.
9115 * gdb.c++/pr-1210.exp: New file.
9119 * lib/mi-support.exp (mi_run_cmd): Expect an MI response to
9124 * gdb.base/attach.exp: Use -1 for the ID of a nonexistent process
9125 on *-*-*bsd* instead of *-*-freebsd*.
9129 * gdb.base/store.exp: Test longest and doublest. Test all
9130 parameters. Weaken return statement match.
9131 * gdb.base/store.c: Add longest and doublest - aka long long and
9132 long double functions. Put all parameters into local register
9133 variables. Use negative values.
9137 * gdb.base/fileio.c: Include <errno.h>, and <sys/wait.h>. Gag
9138 -Wformat errors. Add lost line. Use WEXITSTATUS to get system
9140 * gdb.base/fileio.exp: Disable target when nointerrupts and
9141 noinferiorio, instead of limiting it to remote. Use remote_exec
9146 * gdb.base/float.exp: Add ia64 support.
9150 * gdb.base/fileio.exp: Run only on remote targets.
9154 * gdb.base/fileio.c: New file, testing File-I/O.
9155 * gdb.base/fileio.exp: Ditto.
9159 * gdb.base/shreloc.exp: New file, check symbol values obtained from
9160 shared objects after relocation at load time (gdb PR/1132).
9161 * gdb.base/shreloc.c, gdb.base/shreloc1.c, gdb.base/shreloc2.c:
9162 as above, part of the shared object relocation test.
9166 * gdb.base/readline.exp: Add tests for operate-and-get-next with a
9167 fully filled history list.
9168 * gdb.base/gdb_history: New file.
9170 * gdb.base/signals.exp: XFAIL "continue to func1" on
9173 * gdb.base/attach.exp: When trying to attach to a nonexistent
9174 process, make it possible to specify the PID based on the target,
9175 and do so for *-*-freebsd*.
9179 * gdb.base/float.exp: Add expected regexp for alpha-*-*.
9183 * gdb.base/selftest.exp: Next over lim_at_start initialization.
9187 * gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch.
9191 * gdb.asm/asm-source.exp: Dissassemble from &globalvar instead
9196 * gdb.asm/asm-source.exp: Check for memory read errors in
9197 disassembler test on *BSD too.
9201 * gdb.asm/alpha.inc (gdbasm_enter): Use numeric register names
9203 (gdbasm_call): Lose ldgp.
9204 (gdbasm_startup): Add frame information.
9205 * gdb.asm/asm-source.exp (alpha*-*): Add -no-mdebug to asm-flags.
9209 * gdb.base/float.exp: Expect similar output for x86_64-*-* as for
9214 * gdb.asm/asm-source.exp: Make sure the final link succeeds on
9219 * gdb.asm/alpha.inc: New file.
9220 * gdb.asm/asm-source.exp: Use it.
9224 * gdb.base/corefile.exp: Find corefiles on Linux, which names them
9229 * gdb.base/corefile.exp: Tolerate stuff after argument parens in
9234 * gdb.c++/namespace1.cc: Actually do 'cvs add' before committing
9239 * gdb.c++/rtti.exp: New file, containing tests for PR c++/488.
9240 * gdb.c++/rtti.h, gdb.c++/rtti1.cc, gdb.c++/rtti2.cc: Ditto.
9244 * gdb.c++/namespace.exp: Add namespace scope and anonymous
9246 Bump copyright date.
9247 * gdb.c++/namespace.cc: Add anonymous namespace and namespace C.
9248 (main): Call C::D::marker2.
9249 * gdb.c++/namespace1.cc: New file.
9254 * gdb.threads/linux-dp.exp: Account for fact that in nptl model
9255 there is no manager thread.
9259 * gdb.threads/schedlock.exp: Remove assumption that all threads
9260 will run in a particular small time slice. Also ensure we break
9261 in one of the child threads rather than the main thread.
9265 Add support for assembly source testing on the s390x.
9266 * gdb.asm/asm-source.exp: Add a case for the s390x-*-*
9268 * gdb.asm/s390x.inc: New file.
9270 * gdb.asm/asm-source.exp: Use a 'switch -glob' statement, not a
9271 succession of 'if' statements.
9275 * gdb.base/maint.exp: Add tests for "maint print dummy-frames".
9279 * gdb.base/watchpoint.exp: Rename CALL_DUMMY_BREAKPOINT_OFFSET to
9280 DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET in comments.
9284 * gdb.base/charset.exp: Update based on new behavior of set/show
9289 * gdb.asm/asm-source.exp: Check that "disassm" and "x/i" of a
9290 variable do not give memory errors.
9294 * Makefile.in (ALL_SUBDIRS): Add gdb.objc
9295 * configure.in (AC_OUTPUT): Add gdb.objc/Makefile
9296 * gdb.objc/Makefile.in, gdb.objc/basicclass.exp,
9297 gdb.objc/basicclass.m: : New files
9299 * lib/gdb.exp (gdb_compile_objc): New procedure.
9303 * gdb.base/signals.exp: Make backtrace tests more specific.
9307 * gdb.c++/maint.exp (test_first_component): Add tests for
9308 'operator' in more locations.
9312 * gdb.base/args.exp: Invoke gdb_load for simulator targets.
9316 * gdb.base/completion.exp: Make 'info func mark' complete on 'info
9317 func marke' instead. Update test name.
9321 * gdb.c++/maint.exp: New file.
9325 * gdb.threads/schedlock.c: Change type of thread function argument
9326 to long, to avoid warnings on 64-bit platforms.
9330 * gdb.base/attach.exp: Add new message from ptrace in case of
9331 attaching to nonexistent process.
9335 * gdb.c++/derivation.exp, gdb.c++/overload.exp,
9336 gdb.c++/userdef.cc: Place comments on the lines to which the
9337 marker function might return.
9338 * gdb.c++/derivation.exp, gdb.c++/overload.exp,
9339 gdb.c++/userdef.exp: Look for those comments to check that we've
9340 returned to the right place, instead of checking line numbers.
9344 * gdb.threads/pthreads.exp (test_startup): When setting a breakpoint
9345 match on sourcefile name, instead of directory name.
9349 * gdb.base/completion.exp: Use string_to_regexp to match the
9350 working directory name.
9354 * gdb.c++/derivation.exp, gdb.c++/overload.exp,
9355 gdb.c++/userdef.exp: If GDB fails to restore the selected frame
9356 after an inferior function call, report the failure, but allow the
9361 * gdb.base/break.exp: marker4() is defined at line 46 when compiled
9366 * gdb.base/break.exp: Revert last patch.
9370 * gdb.base/break.exp: marker4() is defined at line 46 when compiled
9375 * gdb.base/callfuncs.exp: Make "print add" messages unique.
9376 * gdb.base/ending-run.exp: Put spaces around "breakpoint" to stop
9377 matching directories by the name breakpoint.
9378 * gdb.base/pointers.exp: Make "ptype pppC" message consistent.
9379 Make "continue to marker1" consistent.
9380 * gdb.base/call-rt-st.exp: Make "finish out from loop_count"
9382 * lib/gdb.exp: Put "the program is no longer running", and "the
9383 program exited" in parenthesis.
9384 * lib/mi-support.exp: Ditto.
9388 * gdb.mi/mi-file.exp: New file for -file-list-exec-source-file.
9392 * gdb.base/sizeof.c (main): Print the value of '\377'.
9393 * gdb.base/sizeof.exp: Check the sign of '\377'.
9397 * gdb.base/gdb1090.exp: New file.
9398 * gdb.base/gdb1090.cc: New file.
9402 * gdb.gdb/observer.exp: New regression test.
9406 * gdb.base/list.exp: Remove setup_xfail_format for DWARF 1.
9407 * gdb.base/ptype.exp: Likewise.
9411 * gdb.c++/casts.exp: Fix startup to run also on embedded targets.
9415 * gdb.base/ptype.exp: Actually use some typedef'd types.
9419 * gdb.asm/asm-source.exp: Set asm-arch for m6811 and m6812.
9420 * gdb.asm/m68hc11.inc: New file for HC11/HC12 macros.
9424 * gdb.base/default.exp: Fix regular expression.
9428 * gdb.base/args.exp: Fix regular expression.
9432 * gdb.base/help.exp: Allow Win32 child process.
9436 * gdb.base/ending-run.exp: Check for Cygwin specific wrapper function
9437 when stepping out of main().
9441 * gdb.base/default.exp: Check for win32 specific message when calling
9442 "run" without executable.
9446 * gdb.base/args.exp: Expect .exe in output.
9450 * gdb.asm/asm-source.exp: Add appropriate --entry linker flag for
9457 * gdb.arch/e500-regs.c, gdb.arch/e500-regs.exp: New files.
9458 * gdb.arch/e500-abi.c, gdb.arch/e500-abi.exp: New files.
9462 * gdb.base/watchpoint.exp (test_watchpoint_and_breakpoint): New
9463 test, for PR breakpoints/38.
9464 Call test_watchpoint_and_breakpoint.
9465 * gdb.base/watchpoint.c (func3): New function.
9470 * gdb.c++/templates.exp (do_tests): Accept valid const in "print
9471 Garply<Garply<char> >:: garply".
9472 (test_ptype_of_templates): KFAIL "ptype T5<int>" and "ptype t5i"
9473 with respect to PR c++/1111; note also PR c++/1113.
9474 (test_template_breakpoints): KFAIL "constructor breakpoint" with
9475 respect to PR c++/1062.
9476 KFAIL "destructor breakpoint" with respect to PR c++/1112.
9480 * gdb.c++/classes.exp (test_enums): KFAIL "ptype obj_with_enum"
9481 with respect to PR c++/57.
9482 KFAIL "print (ClassWithEnum::PrivEnum) 42" with respect to PR
9484 Create "print ('ClassWithEnum::PrivEnum') 42"; KFAIL it with
9485 respect to PR c++/57.
9489 * gdb.c++/templates.exp (do_tests): Convert the KFAILs with
9490 respect to PR c++/33 into FAILs.
9494 * configure.in: Update copyright years.
9498 * Makefile.in: Update copyright years.
9502 * gdb.c++/classes.exp (test_ptype_class_objects): Accept it if we
9503 print class instead of struct and/or superfluous protection
9504 specifiers, as long as the resulting output is equivalent to the
9506 Delete FIXME from end of messages on tests that don't need
9511 * gdb.c++/templates.exp (do_tests): Allow const in the two
9512 Foo<volatile char *>::foo tests.
9516 * gdb.base/restore.c (main): Return zero, so exit code
9521 * gdb.c++/templates.exp (do_tests): KFAIL the "print Foo<volatile
9522 char *>::foo" test with respect to PR c++/33. Create a new test
9523 which is identical to that one except that it doesn't put the
9524 space between the "char" and the "*"; KFAIL it, too.
9528 * gdb.c++/templates.exp (do_tests): Convert XFAILs about printing
9529 template types into either PASSes or KFAILs (corresponding to PR
9530 c++/57). Tweak indentation. Update copyright.
9534 * lib/gdb.exp: Don't execute C++ tests on m6811/m6812 targets.
9538 * gdb.base/exprs.exp: Remove i960 remnants.
9539 * gdb.base/funcargs.exp: Likewise.
9540 * gdb.base/list.exp: Likewise.
9541 * gdb.base/ptype.exp: Likewise.
9545 * gdb.c++/virtfunc.exp (test_virtual_calls): Change 'print
9546 pEe->D::vg()" from XFAIL to KFAIL.
9550 * gdb.base/maint.exp: Update maint print statistics regexp to include
9555 * gdb.c++/inherit.exp: Remove call to get_debug_format.
9559 * gdb.c++/classes.exp: Remove setup_xfail_format for DWARF 1.
9560 * gdb.c++/inherit.exp: Likewise.
9561 * gdb.c++/cplusfuncs.exp: Remove suppression logic for DWARF 1.
9562 * gdb.c++/templates.exp: Likewise.
9563 * gdb.c++/virtfunc.exp: Likewise.
9567 * gdb.mi/mi-syn-frame.c (subroutine): Add a comment explaining
9568 why the code is written that way.
9572 * gdb.base/dump.exp: Add missing copyright line.
9576 * gdb.mi/mi-syn-frame.c (subroutine): Add an extra statement
9577 at the beginning so the breakpoint doesn't get set on the loop.
9581 * gdb.c++/local.exp: Relax the test for PR gdb/825 to accept
9582 output for configurations with gcc 2.95.3.
9587 * gdb.mi/mi-cli.exp: New file.
9591 * gdb.c++/anon-union.exp: Do not call gdb_suppress_entire_file.
9592 Call perror and then continue.
9596 * gdb.c++/pr-1023.cc: New file.
9597 * gdb.c++/pr-1023.exp: New file.
9601 * gdb.c++/local.exp: Don't expect Local to be in scope in main;
9602 it's local to foobar. Check for it there, and check that it's not
9604 * gdb.c++/local.cc (marker2): New function.
9605 (foobar): Call marker1.
9606 (main): Call marker2 instead of marker1.
9610 * gdb.disasm/mn10200.exp: Obsolete file.
9611 * gdb.trace/Makefile.in (clean mostlyclean): Remove mn10200.
9612 * gdb.disasm/Makefile.in (clean mostlyclean): Remove mn10200.
9613 * gdb.base/watchpoint.exp: Mark the mn10200 xfails as obsolete.
9617 * gdb.c++/overload.exp: Test intToChar(1).
9618 * gdb.c++/overload.cc (intToChar): New.
9619 (main): Call intToChar.
9623 * gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): Add
9625 KFAIL some of the continue_to_bp_overloaded calls, according to
9630 * gdb.base/advance.c (marker1): New marker function.
9631 * gdb.base/advance.exp: When the 'advance' command lands on the
9632 return breakpoint, it can legitimately stop on either the
9633 current line or the next line. Accommodate both outcomes.
9634 * gdb.base/until.exp: Likewise.
9639 * gdb.mi/mi-var-child.exp: -var-list-children's CHILDREN field is
9640 now a list, not a tuple.
9641 * gdb.mi/mi-var-display.exp: Ditto.
9642 * gdb.mi/gdb792.exp: Ditto.
9647 * gdb.mi/mi-syn-frame.exp: New tests for synthetic frames in
9649 * gdb.mi/mi-syn-frame.c: Part of same.
9653 * gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
9654 gdb.mi/mi1-pthreads.exp: Return instead of calling
9655 gdb_suppress_entire_file.
9659 * gdb.asm/arm.inc (gdbasm_startup): Clear frame pointer, not sp.
9663 * lib/mi-support.exp (mi_gdb_load): Support remote targets.
9668 * lib/gdb.exp: Revert patch of 2003-01-06, which set LC_ALL.
9669 This was a workaround for a UTF-8 bug in readline 4.3. The bug
9670 has been fixed in gdb/readline on 2003-01-09.
9674 * gdb.base/maint.exp: Allow for leading underscore in symbol.
9675 * gdb.base/display.exp: Allow for leading underscore in symbol.
9676 * gdb.base/args.exp: Skip if target does not support args passing.
9680 * lib/gdb.exp (gdb_test_multiple): New function, cloned from
9681 gdb_test. Accept a list of expect arguments as the third
9687 * gdb.arch/altivec-abi.exp: Set variable 'srcfile' differently, to
9688 allow for different test tree configurations. Update some
9689 tescases accordingly.
9690 * gdb.arch/altivec-regs.exp: Ditto.
9691 * gdb.asm/asm-source.exp: Ditto.
9692 * gdb.base/advance.exp: Ditto.
9693 * gdb.base/display.exp: Ditto.
9694 * gdb.base/long_long.exp: Ditto.
9695 * gdb.base/mips_pro.exp: Ditto.
9696 * gdb.base/overlays.exp: Ditto.
9697 * gdb.base/relocate.exp: Ditto.
9698 * gdb.base/setshow.exp: Ditto.
9699 * gdb.base/step-line.exp: Ditto.
9700 * gdb.base/step-test.exp: Ditto.
9701 * gdb.base/until.exp: Ditto.
9702 * gdb.c++/virtfunc.exp: Get rid of variable 'src'.
9706 * gdb.c++/demangle.exp (test_lucid_style_demangling): KFAIL test
9707 corresponding to PR c++/945.
9712 * gdb.c++/inherit.exp (test_print_mi_members): KFAIL tests
9713 corresponding to PR c++/68.
9717 * gdb.c++/cplusfuncs.exp (print_addr_2_kfail): New procedure.
9718 (test_paddr_hairy_functions): Call print_addr_2_kfail for
9719 hairyfunc5 through hairyfunc7. KFAIL for PR c++/19.
9723 * gdb.base/break.exp: Fix change of default location, because of
9724 removal of until tests.
9725 * gdb.base/help.exp: Update test for new 'until' help message.
9726 Add test for help on 'advance'.
9727 * gdb.base/args.exp: Fix foobar with GDBFLAGS global.
9731 * gdb.base/default.exp: Adapt "info float" test for recent changes
9732 to that command. Add test for "info vector".
9733 * gdb.base/float.exp: New file. Add test for "info float" that
9734 resembles the old test in gdb.base/default.exp.
9738 * gdb.base/selftest.exp (do_steps_and_nexts): Allow gdb_sysroot.
9742 * gdb.base/break.exp: Move the tests of until command from here...
9743 * gdb.base/until.exp: ... to here. New file. Add other tests.
9744 * gdb.base/advance.c: New file.
9745 * gdb.base/advance.exp: New file.
9749 * gdb.base/args.c: New file.
9750 * gdb.base/args.exp: New file.
9754 * gdb.c++/virtfunc.exp: Remove fixed XFAIL.
9758 * gdb.threads/killed.exp: Use KFAIL for gdb/568.
9762 * gdb.base/constvars.exp: Remove two extra XFAILs. Update copyright
9767 * gdb.c++/printmethod.exp (print virtual method): Accept "(void)".
9771 * gdb.base/printcmds.exp: Enable setup_kfail for gdb/538
9773 * gdb.c++/local.exp: Enable setup_kfail for gdb/482.
9777 * gdb.mi/mi-console.exp: Remove extra "(known bug)".
9778 * gdb.mi/mi1-console.exp: Likewise.
9782 * gdb.mi/mi-console.exp: Add KFAIL for "Hello message (known bug)".
9783 * gdb.mi/mi1-console.exp: Likewise.
9787 * gdb.c++/overload.exp: Remove some fixed XFAILs.
9791 * gdb.base/detach.exp: New test.
9795 * Makefile.in (ALL_SUBDIRS): New variable.
9796 (subdirs, clean, distclean): Use it.
9797 * gdb.arch/Makefile.in: Clean up Makefile. Remove rules for
9798 regenerating Makefile, since it is generated from the top level.
9799 * gdb.asm/Makefile.in: Likewise.
9800 * gdb.base/Makefile.in: Likewise.
9801 * gdb.c++/Makefile.in: Likewise.
9802 * gdb.disasm/Makefile.in: Likewise.
9803 * gdb.java/Makefile.in: Likewise.
9804 * gdb.mi/Makefile.in: Likewise.
9805 * gdb.threads/Makefile.in: Likewise.
9806 * gdb.trace/Makefile.in: Likewise.
9810 * gdb.c++/annota2.exp: KFAIL "watch triggered on a.x".
9811 Add copyright year 2003.
9815 * gdb.mi/mi-pthreads.exp (check_mi_thread_command_set):
9816 When selecting a thread, 'line' and 'file' are optional.
9817 * gdb.mi/mi1-pthreads.exp: Likewise.
9821 * lib/gdb.exp: Set LC_ALL to "C" to avoid spurious testsuite
9827 * lib/gdb.exp (gdb_compile): Handle "quiet" option.
9828 (gdb_compile_pthreads): Pass "quiet" to gdb_compile.
9830 * gdb.threads/gcore-thread.exp: Use gdb_compile_pthreads. Return
9831 instead of calling gdb_suppress_entire_file.
9832 * gdb.threads/print-threads.exp: Likewise.
9833 * gdb.threads/schedlock.exp: Likewise.
9835 * gdb.threads/killed.exp: Return instead of calling
9836 gdb_suppress_entire_file.
9837 * gdb.threads/linux-dp.exp: Likewise.
9838 * gdb.threads/pthreads.exp: Likewise.
9842 * gdb.base/callfuncs.exp: Don't XFAIL unprototyped functions for
9844 * gdb.base/completion.exp: Allow marker1(void) as well as marker1().
9845 * gdb.base/whatis.exp: Always allow (void) after function names.
9849 * gdb.c++/casts.exp: Correct regexp.
9853 * configure.in: Call AC_CONFIG_HEADER. Don't call
9854 AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
9855 gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call
9856 AC_CHECK_HEADERS on pthread.h. Put Makefiles in the
9857 aforementioned directories in the AC_OUPUT call.
9858 * config.hin: New file.
9859 * gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
9860 gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
9861 gdb.threads/killed.exp, gdb.threads/print-threads.exp,
9862 gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
9863 pass -I$objdir instead of -I$objdir/$subdir in compilation.
9864 * gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
9865 gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
9866 gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
9867 gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
9868 gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
9869 gdb.threads/configure.in, gdb.threads/configure,
9870 gdb.threads/config.in, gdb.trace/configure.in,
9871 gdb.trace/configure: Removed.
9875 * gdb.base/miscexprs.c: Fix PR gdb/697, "buglet in
9876 testsuite/gdb.base/miscexprs.c, off-by-1 array reference".
9880 * gdb.base/store.exp: Fix regular expressions.
9884 * configure.in: Rewrite.
9885 * configure: Regenerated.
9889 * gdb.base/psymtab.exp: New file.
9890 * gdb.base/psymtab1.c: Ditto.
9891 * gdb.base/psymtab2.c: Ditto.
9895 * gdb.base/maint.exp: Update expect output to include 'ObjC'.
9899 * gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace
9900 and current_directory initialization.
9904 * gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,
9905 rather than as part of the output file name.
9907 * gdb.base/attach.exp: There's no need to copy the test program to
9908 /tmp; that was only ever necessary on HP/UX, and this test is
9909 entirely disabled there anyway.
9913 * gdb.c++/psmang.exp: Doc fix.
9915 * gdb.c++/psmang.exp, gdb.c++/psmang1.cc, gdb.c++/psmang2.cc: New
9920 * gdb.c++/annota2.exp: KFAIL annotate-quit.
9924 * gdb.c++/annota2.exp: Add copyright year 2002.
9928 * gdb.c++/try_catch.cc: Add marker comments.
9929 * gdb.c++/try_catch.exp: Get line numbers from marker comments.
9930 * gdb.c++/m-data.cc: Delete namespace __gnu_test.
9931 * gdb.c++/m-static.cc: Ditto.
9932 * gdb.c++/m-static1.cc: Ditto.
9933 * gdb.c++/try_catch.cc: Ditto.
9937 * lib/mi-support.exp (mi_reinitialize_dir): Check mi level
9938 to see whether we are using the new -environment-directory
9939 command which resets via -r or the old version of the command
9940 which may prompt the user. Part of fix for gdb/741.
9944 * gdb.fortran/types.exp: Update obsolete comment.
9945 * gdb.fortran/exprs.exp: Ditto.
9946 * lib/gdb.exp: Delete obsolete code.
9947 * gdb.chill/ChangeLog, gdb.chill/Makefile.in: Delete.
9948 * gdb.chill/builtins.ch, gdb.chill/builtins.exp: Delete.
9949 * gdb.chill/callch.ch, gdb.chill/callch.exp: Delete.
9950 * gdb.chill/chexp.exp, gdb.chill/chillvars.ch: Delete.
9951 * gdb.chill/chillvars.exp, gdb.chill/configure: Delete.
9952 * gdb.chill/configure.in, gdb.chill/enum.ch: Delete.
9953 * gdb.chill/enum.exp, gdb.chill/func1.ch: Delete.
9954 * gdb.chill/gch1041.ch, gdb.chill/gch1041.exp: Delete.
9955 * gdb.chill/gch1272.ch, gdb.chill/gch1272.exp: Delete.
9956 * gdb.chill/gch1280.ch, gdb.chill/gch1280.exp: Delete.
9957 * gdb.chill/gch922.ch, gdb.chill/gch922.exp: Delete.
9958 * gdb.chill/gch981.ch, gdb.chill/gch981.exp: Delete.
9959 * gdb.chill/misc.ch, gdb.chill/misc.exp: Delete.
9960 * gdb.chill/powerset.ch, gdb.chill/powerset.exp: Delete.
9961 * gdb.chill/pr-4975-grt.ch, gdb.chill/pr-4975.ch: Delete.
9962 * gdb.chill/pr-4975.exp, gdb.chill/pr-5016.ch: Delete.
9963 * gdb.chill/pr-5016.exp, gdb.chill/pr-5020.ch: Delete.
9964 * gdb.chill/pr-5020.exp, gdb.chill/pr-5022.ch: Delete.
9965 * gdb.chill/pr-5022.exp, gdb.chill/pr-5646-grt.ch: Delete.
9966 * gdb.chill/pr-5646.ch, gdb.chill/pr-5646.exp: Delete.
9967 * gdb.chill/pr-5984.ch, gdb.chill/pr-5984.exp: Delete.
9968 * gdb.chill/pr-6292.ch, gdb.chill/pr-6292.exp: Delete.
9969 * gdb.chill/pr-6632-grt.ch, gdb.chill/pr-6632.ch: Delete.
9970 * gdb.chill/pr-6632.exp, gdb.chill/pr-8134.exp: Delete.
9971 * gdb.chill/pr-8136.ch, gdb.chill/pr-8136.exp: Delete.
9972 * gdb.chill/pr-8405.ch, gdb.chill/pr-8405.exp: Delete.
9973 * gdb.chill/pr-8742.ch, gdb.chill/pr-8742.exp: Delete.
9974 * gdb.chill/pr-8894-grt.ch, gdb.chill/pr-8894.ch: Delete.
9975 * gdb.chill/pr-8894.exp, gdb.chill/pr-9095.ch: Delete.
9976 * gdb.chill/pr-9095.exp, gdb.chill/pr-9946.ch: Delete.
9977 * gdb.chill/pr-9946.exp, gdb.chill/result.ch: Delete.
9978 * gdb.chill/result.exp, gdb.chill/string.ch: Delete.
9979 * gdb.chill/string.exp, gdb.chill/tests1.ch: Delete.
9980 * gdb.chill/tests1.exp, gdb.chill/tests2.ch: Delete.
9981 * gdb.chill/tests2.exp, gdb.chill/tuples.ch: Delete.
9982 * gdb.chill/tuples.exp, gdb.chill/xstruct-grt.ch: Delete.
9983 * gdb.chill/xstruct.ch, gdb.chill/xstruct.exp: Delete.
9987 * gdb.c++/m-data.exp: Add test for members that shadow global
9988 variables: see PR gdb/804.
9989 * gdb.c++/m-data.cc: Ditto.
9993 * gdb.base/foll-vfork.exp: Re-enable test on HP/UX.
9997 * gdb.base/store.c: Don't declare functions static.
10001 * gdb.base/store.exp, gdb.base/store.c: New files.
10005 * gdb.base/selftest.exp: Update for current gdb.
10009 * gdb.base/maint.exp: Only dump symbols from one source file
10014 * gdb.base/step-test.exp: Allow MIPS to return to the line of a
10019 * lib/mi-support.exp (mi_delete_breakpoints): Change name of
10020 function appearing in error message.
10024 * gdb.base/maint.exp (help maint dump-me): Update with typo fix.
10028 * lib/mi-support.exp (mi_gdb_start): Verify the startup message
10029 for mi1 and current mi is in correct format. New mi startup message
10030 should be in mi console format. This is part of fix for PR gdb/604.
10034 * gdb.asm/asm-source.exp: Adjust patter to new disassembler routine
10035 which explicitly prints the zero offset as "+0".
10039 * gdb.threads/schedlock.c (args): Make unsigned.
10043 * gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line
10044 numbers. Allow "foo2|selected stack frame".
10045 * gdb.asm/asmsrc1.s: Use gdbasm_declare and gdbasm_end.
10046 * gdb.asm/asmsrc2.s: Likewise.
10047 * gdb.asm/common.inc: Define gdbasm_declare and gdbasm_end. Update
10049 * gdb.asm/mips.inc: New file.
10053 * gdb.base/default.exp: Update expected output to include 'ObjC'.
10054 * gdb.base/help.exp: Likewise.
10058 * gdb.base/constvars.c (struct crass, struct crisp): New structs.
10059 * gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
10063 * gdb.c++/casts.cc, gdb.c++/casts.exp: New test.
10067 * mi1-basics.exp: Copy of mi1-basics.exp MIFLAGS set "-i=mi1".
10068 * mi1-break.exp, mi1-console.exp, mi1-disassemble.exp: Ditto.
10069 * mi1-eval.exp, mi1-hack-cli.exp, mi1-pthreads.exp: Ditto.
10070 * mi1-read-memory.exp, mi1-regs.exp, mi1-return.exp: Ditto.
10071 * mi1-simplerun.exp, mi1-stack.exp, mi1-stepi.exp: Ditto.
10072 * mi1-until.exp, mi1-var-block.exp, mi1-var-child.exp: Ditto.
10073 * mi1-var-cmd.exp, mi1-var-display.exp, mi1-watch.exp: Ditto.
10077 * mi0-basics.exp, mi0-break.exp, mi0-console.exp: Delete.
10078 * mi0-disassemble.exp, mi0-eval.exp: Delete.
10079 * mi0-hack-cli.exp, mi0-read-memory.exp: Delete.
10080 * mi0-regs.exp, mi0-return.exp, mi0-simplerun.exp: Delete.
10081 * mi0-stack.exp, mi0-stepi.exp, mi0-until.exp: Delete.
10082 * mi0-var-block.exp, mi0-var-child.exp: Delete.
10083 * mi0-var-cmd.exp, mi0-var-display.exp, mi0-watch.exp: Delete.
10087 * gdb.base/annota1.exp (info break): Make directory components of
10088 path optional since not all compilers emit this debug information.
10090 * gdb.base/shlib-call.exp (step inside shr2): Don't fail if first
10091 step ends up stepping out of the function instead of stopping on
10096 * lib/insight-support.exp (gdbtk_start): Figure out where
10097 the insight executable is based on where gdb is. Use this
10098 executable to start insight instead of gdb.
10102 * gdb.base/pc-fp.exp, gdb.base/pc-fp.c: New test.
10106 * gdb.gdb/complaints.exp (test_initial_complaints): Rename
10107 test_isolated_complaints.
10108 (test_empty_complaint): New function.
10109 (test_empty_complaints): New function. Check no output when no
10114 * gdb.base/charset.exp, gdb.base/charset.c: New files.
10118 * gdb.gdb/complaints.exp: New file.
10122 * gdb.base/maint.exp: Check `help maint internal-warning'.
10126 * gdb.c++/m-static.exp: Remove breakpoints depending on line
10127 numbers, and replace them by a single breakpoint after the
10128 constructors are all finished.
10130 * gdb.c++/m-static.cc: Add test 4.
10131 * gdb.c++/m-static.h: New file.
10132 * gdb.c++/m-static1.cc: New file.
10134 * gdb.c++/printmethod.exp: New file.
10135 * gdb.c++/printmethod.cc: New file.
10137 * gdb.c++/pr-574.exp: New file.
10138 * gdb.c++/pr-574.cc: New file.
10142 * gdb.base/ending-run.exp: Add handling of "step to end of run" for
10143 embedded targets which never actually exit.
10147 * gdb.base/ending-run.exp: Properly mark "continue after exit" and
10148 "don't step after run" as unresolved or unsupported, instead of xfail.
10152 * gdb.base/ending-run.exp: Fix expected string for _wrap_main to
10153 allow correct handling of #ifdef UNDERSCORES from dejagnu/testglue.c.
10154 Add newline to expected string in "step out of main (status wrapper)"
10159 * lib/gdb.exp (rerun_to_main): Allow restarting application.
10160 * gdb.base/ena-dis-br.exp (rerun_to_main): Eliminate.
10164 * gdb.base/printcmds.exp (test_print_string_constants): Expect
10165 \000, not \0, in double-quoted string.
10169 * gdb.base/commands.exp: Don't expect a "Program exited normally"
10170 string after running the commands execution on breakpoint tests.
10174 * lib/gdb.exp (gdb_continue_to_end): Fix typo in expected string.
10178 * gdb.base/call-strs.exp: Fix a small typo in one of the comments.
10182 * lib/mi-support.exp (mi_runto): New proc. Does the same as gdb's
10184 (mi_run_to_main): Use mi_runto.
10185 (mi_execute_to): Renamed from mi_run_to. Changed all callers.
10189 * lib/mi-support.exp: (mi_run_to_main): Allow anything to precede
10190 regexp for stopping at main. Could have multiple event notifications.
10191 Don't assume that main was declared with no parameters.
10192 (mi_next): Use mi_step_to.
10193 (mi_step): Use mi_next_to.
10197 * gdb.base/default.exp: Fix expected string in `info float' test.
10201 * config/mips.exp: Update comments.
10202 * config/mips-idt.exp: Likewise.
10203 * config/nind.exp: Likewise.
10204 * config/slite.exp: Likewise.
10205 * config/sparclet.exp: Likewise.
10206 * config/udi.exp: Likewise.
10207 * config/vx.exp: Likewise.
10208 * config/vxworks29k.exp: Likewise.
10212 * gdb.threads/killed.exp: Fix test failure message.
10216 * lib/mi-support.exp: Update copyright.
10217 (mi_gdb_test): Increase the priority of the expected pattern
10218 so that it matches gdb_test.
10222 * lib/gdb.exp (gdb_compile_pthreads): Fix "build_bin" typo.
10223 Use integer comparison instead of string comparison for testing
10224 whether binary was built.
10228 * gdb.threads/killed.exp, gdb.threads/killed.c: New test.
10232 * gdb.threads/pthreads.exp: Move the portable thread compilation
10233 code into a function in lib/gdb.exp, and call that from here.
10234 * lib/gdb.exp (gdb_compile_pthreads): New function.
10238 * lib/mi-support.exp (mi_gdb_test): Add global declaration for
10239 expect_out so that callers can get at it.
10243 * gdb.threads/print-threads.c: New file.
10244 * gdb.threads/print-threads.exp: New file.
10245 * gdb.threads/schedlock.c: New file.
10246 * gdb.threads/schedlock.exp: New file.
10250 * gdb.arch/altivec-abi.exp: The source C file is altivec-abi.c,
10255 * gdb.base/return.exp: Remove i*86-*-* from list of xfail'ed
10256 targets. The problem should be fixed now.
10260 * gdb.java/jv-print.exp: Fix p '' and p ''' tests to deal with
10261 2002-07-24 change that removes final dots from error messages.
10265 * gdb.base/readline.exp: New file.
10269 * lib/gdb.exp (gdb_expect_list): Only print one pass, fail, or
10274 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove CHILLFLAGS, CHILL,
10275 CHILL_FOR_TARGET and CHILL_LIB.
10276 * configure.in (configdirs): Remove gdb.chill.
10277 * configure: Regenerate.
10278 * lib/gdb.exp: Obsolete references to chill.
10279 * gdb.fortran/types.exp: Ditto.
10280 * gdb.fortran/exprs.exp: Ditto.
10284 * gdb.base/shlib-call.exp (additional_flags): Conditionally
10285 set Irix-specific compile and link flags.
10289 * lib/gdb.exp (mips*-*-irix*): Use alternate method for preprocessing
10290 source files. The ``-o'' option doesn't work with the ``-E'' option
10291 when using the Irix compiler.
10295 * config/gdbserver.exp (gdb_load): Don't use TCL varargs.
10296 Improve support for reusing an exec file. Copy exec file
10297 to target, and run gdbserver on the target instead of on the host.
10301 * gdb.base/ending-run.exp: Don't expect to see the program end in
10302 some orderly fashion when we're running on a real stand-alone
10305 * gdb.base/interrupt.exp: Correct logic for skipping tests on
10306 targets that don't support interrupts.
10310 * gdb.base/attach.exp: Add patterns to match output from /proc-based
10312 Move comments in expect statements to inside the actions, so that they
10313 don't get matched against.
10317 * gdb.base/interrupt.exp: Setup xfail for all i386 BSD's on "call
10318 function when asleep" test.
10322 * gdb.base/page.exp: Rewrite to handle problems with very long
10323 `info set' output. Update copyright.
10327 * gdb.hp/configure.in (AC_CONFIG_SUBDIRS): Do not try to configure
10329 * gdb.hp/configure: Regenerate.
10330 * gdb.hp/gdb.threads-hp/configure.in: Delete file.
10331 * gdb.hp/gdb.threads-hp/configure: Delete file.
10332 * gdb.hp/gdb.threads-hp/Makefile.in: Delete file.
10336 * gdb.base/selftest.exp (do_stes_and_next): Skip calls to
10337 setlocale, bindtextdomain and textdomain.
10341 * lib/gdb.exp (get_debug_format): Tolerate message saying whether
10342 preprocessor macro information is present.
10344 * macscp.exp, macscp1.c, macscp2.h, macscp3.h, macscp4.h: New
10349 * gdb.base/overlays.exp: Record addresses of overlay
10350 functions in TCL variables rather than in GDB variables,
10351 to avoid having GDB convert them to pointers (with loss
10354 * gdb.base/d10v.ld: Merge in several years worth of
10355 default linker script changes.
10356 * gdb.base/long_long.exp: Add check for sizeof (long double).
10360 * gdb.asm/asm-source.exp: Add x86-64 target.
10361 * gdb.asm/x86_64.inc: New.
10366 * gdb.c++/m-static.cc: New file.
10367 * gdb.c++/m-static.exp: New file.
10371 * gdb.base/call-ar-st.exp: Allow for reduced floating point
10377 * gdb.c++/m-data.cc: New file.
10378 * gdb.c++/m-data.exp: New file.
10383 * gdb.c++/try_catch.cc: New file.
10384 * gdb.c++/try_catch.exp: New file.
10388 * gdb.c++/local.exp: Accept more nested types in output.
10392 * gdb.base/call-rt-st.exp: Fix typo in brace quoting.
10396 * lib/gdb.exp (gdb_wrapper_init): Just because
10397 gdb_wrapper_file exists, this does not mean that the file
10398 should not be rebuilt. That is what gdb_wrapper_initialized
10400 (default_gdb_init): Reset gdb_wrapper_initialized.
10404 * gdb.base/all-bin.exp: Revise previous patch by just reducing
10405 the precision of the floating point test results.
10406 * gdb.base/call-rt-st.exp: Ditto.
10408 * gdb.base/all-bin.exp: Allow for reduced floating point precision.
10409 * gdb.base/call-rt-st.exp: Ditto.
10413 * gdb.c++/inherit.exp: Accept "VTT for ..." in output strings.
10417 * configure.in (configdirs): Add gdb.arch.
10418 * configure: Regenerate.
10422 * gdb.base/completion.exp: Recognize the more detailed error
10423 messages produced by the macro expander's lexical analyzer.
10427 * gdb.arch/altivec-abi.c: New file.
10428 * gdb.arch/altivec-abi.exp: New file.
10429 * gdb.arch/altivec-regs.c: New file.
10430 * gdb.arch/altivec-regs.exp: New file.
10434 * gdb.base/maint.exp (maint print type): Update for new type
10439 * gdb.arch: New directory.
10440 * gdb.arch/configure.in: New file.
10441 * gdb.arch/configure: New file.
10442 * gdb.arch/Makefile.in: New file.
10446 * gdb.asm/asm-source.exp: Add v850 as supported target.
10447 * gdb.asm/v850.inc: New file.
10451 * gdb.c++/annota2.exp (annotate-quit): Add comment.
10455 * gdb.base/break.exp: Check 'break "marker2"'.
10459 * gdb.base/long_long.exp: Fix typo.
10463 * gdb.base/printcmds.exp: Don't xfail the ptype command. This is
10466 * gdb.base/printcmds.exp (test_integer_literals_rejected):
10467 Recognize more detailed error message produced by the macro
10468 expander's lexical analyzer.
10469 * lib/gdb.exp (test_print_reject): Same.
10473 * gdb.c++/method.exp: Fix typo.
10477 * gdb.mi/mi-var-child.exp: Accept (void) as well as ().
10478 * gdb.mi/mi0-var-child.exp: Accept (void) as well as ().
10479 * gdb.base/default.exp: Merge clauses for arm, strongarm, xscale.
10480 * gdb.base/long_long.exp: Merge clauses for arm and xscale.
10481 Add iftarget clause for strongarm.
10485 * lib/gdb.exp (gdb_test): Add case to allow for status wrapper.
10486 (gdb_continue_to_end): Accept output from status wrapper.
10487 * gdb.base/ending-run.exp: Add case for output from status wrapper.
10488 Clean up fail messages to match pass messages.
10490 Enable the "needs_status_wrapper" testsuite feature.
10491 * lib/gdb.exp (gdb_wrapper_init): New procedure.
10492 (gdb_compile): Conditionally call gdb_wrapper_init.
10493 * gdb.base/a2-run.exp: Recognize output from status wrapper.
10494 * gdb.c++/method.exp: Recognize output from status wrapper.
10499 * config/sid.exp: Include support for "rawsid" protocol.
10503 * gdb.c++/hang.exp: Check for corruption of the cv_type chain.
10504 * gdb.c++/hang3.C: New file.
10508 * gdb.base/default.exp: Remove obsolete code.
10509 * gdb.c++/misc.exp: Ditto. Update copyright.
10510 * gdb.c++/cplusfuncs.exp: Ditto. Update copyright.
10511 * gdb.base/whatis.exp: Ditto. Update copyright.
10512 * gdb.base/scope.exp: Ditto. Update copyright.
10513 * gdb.base/ptype.exp: Ditto. Update copyright.
10514 * gdb.base/printcmds.exp: Ditto. Update copyright.
10515 * gdb.base/opaque.exp: Ditto. Update copyright.
10516 * gdb.base/list.exp: Ditto.
10517 * gdb.base/funcargs.exp: Ditto. Update copyright.
10518 * gdb.hp/gdb.threads-hp/usrthbasic.c: Delete.
10519 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Delete.
10520 * gdb.hp/gdb.threads-hp/usrthcore.c: Delete.
10521 * gdb.hp/gdb.threads-hp/usrthcore.exp: Delete.
10522 * gdb.hp/gdb.threads-hp/usrthfork.c: Delete.
10523 * gdb.hp/gdb.threads-hp/usrthfork.exp: Delete.
10527 * gdb.base/watchpoint.exp: Add xscale target.
10528 * gdb.base/long_long.exp: Add xscale target.
10529 * gdb.base/default.exp: Add xscale target.
10533 * gdb.c++/hang1.C, gdb.c++/hang2.C, gdb.c++/hang.H,
10534 gdb.c++/hang.exp: New test.
10538 * gdb.base/completion.exp: Handle completions of "./Make" for
10539 more than one completion possibility, as is the case when we
10540 build and test in the source tree.
10544 * gdb.java/jmisc1.exp: New file.
10545 * gdb.java/jmisc2.exp: New file.
10549 * gdb.threads/linux-dp.exp: Use 'unset' instead of 'array unset'.
10553 * gdb.base/help.exp: Change 'help status' to allow for target
10554 dependent output differences.
10558 * gdb.c++/local.exp: Add PR numbers: gdb/482, gdb/483.
10562 * gdb.c++/method.exp: Fix syntax of reference to gdb/277.
10566 * gdb.asm/sparc64.inc: New file.
10567 * gdb.asm/asm-source.exp: Handle sparc64-*-*.
10571 * gdb.asm/asm-source.exp: Don't use a symlink, just copy the
10572 instruction file directly into the build tree. Clean up at end of
10577 * gdb.base/annota1.exp: Expect addresses as $hex + whitespace to
10578 handle 64-bit platforms correctly.
10579 * gdb.base/maint.exp: Likewise.
10583 * gdb.base/shlib-call.exp (additional_flags): AIX doesn't need
10584 ``-fpic'' when compiling files comprising a shared library, but
10585 it does need additional linker flags in order to find shared
10586 libraries at run time.
10590 * gdb.base/cvexpr.c (use): New function.
10591 (main): Invoke use() on all global variables to prevent
10592 some linkers from deleting these otherwise unused symbols.
10597 * gdb.c++/ovldbreak.exp: Expect addresses as $hex + whitespace to
10598 handle 64-bit platforms correctly.
10602 * gdb.base/foo.c (foox): Remove section attribute; the linker
10603 script can handle this instead.
10604 * gdb.base/bar.c (barx): Same.
10605 * gdb.base/baz.c (bazx): Same.
10606 * gdb.base/grbx.c (grbxx): Same.
10608 * gdb.base/overlays.exp: New test: check that GDB's manual overlay
10609 manager doesn't automatically unmap overlays unnecessarily.
10613 * gdb.base/ending-run.exp: Fix pattern for Mips targets
10614 stepping out of main.
10618 * gdb.c++/local.cc (main): Move call to marker1() inside nested
10619 scope so that the nested scope tests will make sense.
10620 * gdb.c++/local.exp: Write patterns that actually work with gcc
10621 (the HP patterns "were never known to work with gcc").
10622 Keep the old aCC patterns too.
10626 * gdb.base/attach.exp: Correct target board test.
10630 * gdb.c++/method.exp: Require "const ... A * ..." for "ptype this"
10631 in a const method. Add some xfail and fail cases for configurations
10632 that do not emit the "const ...".
10636 * gdb.c++/method.exp: Use gdb_test instead of send_gdb/gdb_expect.
10637 Accept "A * const" and "const A * const" as type of "this".
10638 Fix spelling of getFunky throughout. Make messages uniform.
10642 Work around for PR gdb/285:
10643 * gdb.asm/asm-source.exp: Bail out if multilibs are detected.
10647 * gdb.asm/asm-source.exp: Build symbolic link to arch specific
10648 instructions file at run time instead of configure time.
10649 Sometimes we run the test in a directory that is not the one we
10651 * gdb.asm/configure.in: Delete creation of symlink.
10652 * gdb.asm/configure: Regenerate.
10656 * gdb.gdb/xfullpath.exp: New test, to exercise the new
10657 xfullpath () function.
10661 * gdb.asm/Makefile.in: Correct dependencies.
10663 * gdb.asm/powerpc.inc: New file.
10664 * gdb.asm/asm-source.exp: Add PowerPC.
10665 * gdb.asm/configure.in: Likewise.
10666 * gdb.asm/configure: Regenerated.
10670 * gdb.base/relocate.exp: New file.
10671 * gdb.base/relocate.c: New file.
10675 * gdb.base/step-test.exp: Update comment regarding stopping in
10676 memcpy/bcopy calls inserted as part of the compiler runtime.
10680 * gdb.base/ovlymgr.c: Add overlay event breakpoint support.
10684 * lib/gdb.exp (gdb_test): Move -notransfer inside of gdb_expect.
10685 (gdb_expect): Remove $notransfer hack.
10689 * gdb.c++/classes.exp ("calling method for small class"): Match
10690 updated register output.
10695 * gdb.base/dbx.exp: Restore old definition of gdb_file_cmd
10696 when finished. Make gdb_file_cmd send "exec-file" when
10701 * gdb.base/attach.exp: Remove extra setup_xfail.
10705 * gdb.base/default.exp: Add tests for dump, append, and restore.
10706 * gdb.base/help.exp: Add tests for dump, append, and restore.
10707 * gdb.base/dump.exp: New file, test dump, append and restore.
10708 * gdb.base/dump.c: New file.
10712 * gdb.base/help.exp: Modify expect strings to reflect
10713 clean-ups in help messages.
10717 * gdb.base/step-test.exp: Accept stopping in memcpy/bcopy when we
10718 have debugging info for those functions and the compiler uses them
10719 internally to copy structs around.
10723 * gdb.base/list.exp: Revert the change made yesterday and add note
10724 about why we don't list the default lines for remote targets.
10728 * gdb.base/help.exp: Clean up unnecessary wild cards in regexps.
10732 * gdb.base/list.exp: This test works on remote targets so remove
10733 the short circuit for remote targets. Update copyright.
10737 * gdb.base/attach.exp: Fix logic error that was suppressing this
10738 test for all non hppa*-*-hpux* targets, instead of the hp target.
10739 Move comments closer to the suppression point. Also now need to
10740 check that we are running natively.
10744 * gdb.base/default.exp: Add test for gcore. Update copyright.
10745 * gdb.base/help.exp: Add test for gcore. Update copyright.
10749 * gdb.base/funcargs.c: Remove extraneous ';' character.
10750 * gdb.trace/gdb_c_test.c: Remove extraneous ';' character.
10754 * gdb.mi/mi-var-cmd.exp: In test "create local variable func",
10755 accommodate gcc v3 function signature.
10756 * gdb.mi/mi0-var-cmd-exp: Ditto.
10760 * testsuite/gdb.base/huge.c: Replace ``Linux'' with either
10761 ``GNU/Linux'' or ``Linux kernel''
10762 * testsuite/gdb.threads/pthreads.c: Ditto.
10766 * gdb.threads/pthreads.c (thread1): Add a return statement.
10767 (thread2): Likewise.
10772 * gdb.threads/linux-dp.c (philosopher): Add a return statement
10777 * gdb.c++/templates.exp: Remove setup_xfail_format "stabs" on
10778 test "ptype bint". The test passes on all my stabs configurations.
10782 * gdb.asm/asm-source.exp: Parse the output from `info sources' one
10783 filename at a time, and watch for the ones we want to see.
10785 * gdb.base/ptype.exp, gdb.base/ptype.c: Add tests for printing
10786 types of pointers to prototyped functions.
10790 * gdb.base/sizeof.c (main): Call fill_structs. Print value of
10791 signed, unsigned and straight char.
10792 (padding_char, padding_short, padding_int, padding_long,
10793 padding_long_long, padding_float, padding_double,
10794 padding_long_double): New global variables.
10795 (fill, fill_structs): New functions.
10797 * gdb.base/sizeof.exp: Check for signed and unsigned char. Check
10798 for correctly sized writes. Update copyright.
10799 (get_valueof): New procedure.
10800 (get_sizeof): Call get_valueof.
10801 (check_valueof): New procedure.
10802 (check_padding): New procedure.
10806 * gdb.c++/virtfunc.exp (test_virtual_calls): Remove obsolete calls
10807 to setup_xfail. Document some of the remaining calls.
10811 * gdb.c++/userdef.exp: Update copyright year.
10815 * gdb.c++/userdef.exp: Test overloaded operators properly.
10820 * gdb.base/gcore.exp: Relax recognition of function breakpoint.
10824 * gdb.base/a2-run.exp: Check for a remote target properly.
10825 * gdb.base/annota1.exp: Likewise.
10826 * gdb.base/list.exp: Likewise.
10827 * gdb.base/reread.exp: Likewise.
10828 * gdb.base/scope.exp: Likewise.
10829 * gdb.base/shlib-call.exp: Likewise.
10830 * gdb.base/term.exp: Likewise.
10831 * gdb.c++/annota2.exp: Likewise.
10835 * gdb.base/watchpoint.exp: Restore previous timeout at end of test.
10839 * gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
10840 (call_after_alloca): Ditto.
10844 * gdb.base/ending-run.exp: Guard "cont" test with
10845 gdb_skip_stdio_test.
10849 * gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Move these tests
10851 * gdb.hp/gdb.base-hp/callfwmall.c, gdb.hp/gdb.base-hp/callfwmall.exp:
10852 To here. Disable this test on non-HP platforms. Add big comment.
10856 * gdb.base/ovlymgr.c (ovly_copy): Generalize for targets
10857 other than d10v and m32r.
10861 * gdb.base/default.exp: Rewrite test patterns to reduce time
10862 taken to match them.
10866 * gdb.base/annota1.exp (backtrace from shlibrary): Fix spelling.
10867 Allow a start function above main.
10868 * gdb.threads/linux-dp.exp: Fix copyright date.
10872 * gdb.threads/linux-dp.exp: Use 'array unset', not 'array set'.
10873 (check_philosopher_stack): Check for manager thread before checking
10874 for a just-starting thread.
10879 * gdb.base/bitfields.c: Correct assignments to bitfields to avoid
10884 * gdb.base/restore.exp (restore_tests): Fix obvious typo, callee
10889 * gdb.base/reread.exp: Check that GDB properly re-reads the
10890 executable file when it changes while no inferior is running.
10894 * gdb.base/maint.exp: Simplify the "maint info breakpoints" test to
10895 optionally accept the "shlib events" variation.
10899 * gdb.base/ending-run.c (main): Avoid messing with setvbuf; just
10900 call `fflush' after every `printf', so that the output is produced
10901 at predictable points, regardless of whatever buffering does (or
10902 doesn't) take place.
10903 * gdb.base/ending-run.exp: Adjust tests to expect output to appear
10904 at different points.
10908 * gdb.c++/inherit.exp: Update copyright years.
10909 * gdb.c++/method.exp: Likewise.
10913 * gdb.c++/classes.exp: Update for improved v3 support and skipping
10914 artificial methods/arguments.
10915 * gdb.c++/derivation.exp: Likewise.
10916 * gdb.c++/inherit.exp: Likewise.
10917 * gdb.c++/method.exp: Likewise.
10918 * gdb.c++/virtfunc.exp: Likewise.
10922 * gdb.hp/gdb.threads-hp/usrthfork.exp: Mark as obsolete.
10923 * gdb.hp/gdb.threads-hp/usrthcore.exp: Ditto.
10924 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Ditto.
10925 * gdb.hp/gdb.threads-hp/usrthfork.c: Ditto.
10926 * gdb.hp/gdb.threads-hp/usrthbasic.c: Ditto.
10927 * gdb.hp/gdb.threads-hp/usrthcore.c: Ditto.
10931 * gdb.asm/asm-source.exp (info symbol): Take another shot at
10932 anchoring the pattern matching the entry point symbol's name.
10936 * gdb.base/maint.exp: Update ``maint internal-error'' to match
10937 continue/quit query. Update copyright.
10941 * gdb.base/gcore.exp: Remove extra debugging output.
10945 * gdb.c++/demangle.exp: Accept slightly dubious v2 demangler result
10946 for slightly dubious v2 mangled string.
10950 * gdb.base/completion.exp: Expand ${srcdir} to an absolute path.
10954 * gdb.c++/namespace.exp: Accept trailing const for 'this'.
10956 * gdb.c++/classes.exp: Accept 'A const' or 'const A' in copy
10958 * gdb.c++/derivation.exp: Likewise.
10959 * gdb.c++/templates.exp: Likewise.
10960 * gdb.c++/virtfunc.exp: Likewise.
10964 * gdb.c++/namespace.exp: Accept both '\0' and '\000'.
10968 * gdb.base/gcore.exp: New test for generate-core-file command.
10969 * gdb.base/gcore.c: Testcase for above.
10970 * gdb.threads/gcore-thread.exp: New test for gcore (threaded).
10974 * gdb.c++/userdef.cc: Use <iostream> instead of <iostream.h>.
10978 * gdb.c++/overload.exp: Remove unconditional xfails for:
10979 print foo_instance1.overloadargs(1)
10980 print foo_instance1.overloadargs(1, 2)
10981 print foo_instance1.overloadargs(1, 2, 3)
10982 print foo_instance1.overloadargs(1, 2, 3, 4)
10983 print foo_instance1.overloadargs(1, 2, 3, 4, 5)
10984 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6)
10985 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7)
10986 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8)
10987 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9)
10988 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
10989 print foo_instance1.overloadargs(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
10990 print foo_instance1.overload1arg()
10991 print foo_instance1.overload1arg((char)arg2)
10992 print foo_instance1.overload1arg((signed char)arg3)
10993 print foo_instance1.overload1arg((unsigned char)arg4)
10994 print foo_instance1.overload1arg((int)arg7)
10995 print foo_instance1.overload1arg((unsigned int)arg8)
10996 print foo_instance1.overload1arg((float)arg11)
10997 print foo_instance1.overload1arg((double)arg12)
11001 * gdb.base/huge.exp: New test. Print a very large target data object.
11002 (skip_huge_test): New test variable. Define if you want to skip this
11003 test. The test reads an 8 megabyte data object from the target, so it
11004 might be very time consuming on remote targets with a slow connection.
11005 * gdb.base/huge.c: New file. Test case for above.
11009 * gdb.c++/derivation.exp: Remove gcc xfails for g_instance.afoo,
11010 g_instance.bfoo, and g_instance.cfoo.
11014 * gdb.base/break.c (multi_line_if_conditional): New function.
11015 (multi_ilne_while_conditional): Likewise.
11016 * gdb.base/break.exp: Verify that a breakpoint on a multi-line
11017 IF or WHILE condition puts the breakpoint at the start of
11020 * gdb.base/selftest.exp (backtrace through signal handler): Remove
11021 hppa*-*-hpux* expected failure.
11022 * gdb.base/structs.exp (do_function_calls): Similarly.
11024 * gdb.c++/annota2.exp (watch triggered on a.x): Handle hardware
11030 * gdb.base/structs.exp: Replace skip for a29k with skip for
11031 gdb,cannot_call_functions.
11032 * gdb.base/call-ar-st.exp: Remove references to a29k in comments.
11033 * gdb.base/callfuncs.exp: Ditto.
11034 * gdb.base/call-rt-st.exp: Ditto.
11035 * gdb.base/call-strs.exp: Ditto.
11036 * gdb.base/callfwmall.exp: Ditto.
11037 * gdb.base/scope.exp: Obsolete xfail a29k.
11038 * gdb.c++/misc.exp: Ditto.
11039 * gdb.c++/cplusfuncs.exp: Ditto.
11040 * gdb.base/ptype.exp: Ditto.
11041 * gdb.base/printcmds.exp: Ditto.
11042 * gdb.base/opaque.exp: Ditto.
11043 * gdb.base/list.exp: Ditto.
11044 * gdb.base/funcargs.exp: Ditto.
11045 * gdb.base/default.exp: Ditto.
11049 * gdb.base/info-proc.exp: New file, test for "info proc" cmd.
11050 * gdb.base/maint.exp: Add tests for maint info sections options.
11054 * gdb.base/default.exp: Remove bogus hppa*-hp-hpux* xfails.
11058 * gdb.asm/arm.inc: New file.
11059 * gdb.asm/asm-source.exp: Add arm targets.
11060 * gdb.asm/configure.in: Ditto.
11061 * gdb.asm/configure: Recreated from configure.in.
11065 * gdb.hp/gdb.defects/bs15503.exp: Only run this test if compiling
11066 with HP's compiler.
11067 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise.
11068 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise.
11069 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise.
11070 * gdb.hp/gdb.objdbg/objdbg04.exp: Likewise.
11072 * gdb.hp/gdb.defects/solib-d.exp: Update to handle building with
11073 either HP's compilers or GCC.
11075 * gdb.hp/gdb.base-hp/hwwatchbus.exp: Allow inferior to get either
11076 a SIGBUS or SIGSEGV.
11078 * gdb.hp/gdb.base-hp/so-thresh.exp: Remove useless send_user command.
11080 * gdb.hp/gdb.defects/bs14602.exp: Revamp slightly so that test
11081 can be compiled with either HP's compiler or GCC.
11083 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Disable completely.
11084 * gdb.hp/gdb.threads-hp/usrthcore.exp: Disable completely.
11085 * gdb.hp/gdb.threads-hp/usrthfork.exp: Disable completely.
11087 * gdb.hp/gdb.base-hp/so-thresh.exp: Update text in expect strings
11088 to match current gdb output. Update due to using auto-solib-limit
11089 for limiting instead of overloading auto-solib-add.
11090 * gdb.hp/gdb.base-hp/so-thresh.mk: Always use "cc" to build the
11093 * gdb.c++/templates.exp: Use "hppa64-*-*", not "hppa2.0w-*-*"
11094 * gdb.hp/gdb.base-hp/dollar.exp: Likewise
11095 * gdb.hp/gdb.base-hp/pxdb.exp: Likewise.
11096 * gdb.hp/gdb.base-hp/reg-pa64.exp: Likewise.
11097 * gdb.hp/gdb.base-hp/reg.exp: Likewise.
11098 * gdb.hp/gdb.compat/xdb3.exp: Likewise.
11099 * gdb.hp/gdb.defects/bs15503.exp: Likewise.
11100 * gdb.hp/gdb.objdbg/objdbg01.exp: Likewise
11101 * gdb.hp/gdb.objdbg/objdbg02.exp: Likewise
11102 * gdb.hp/gdb.objdbg/objdbg03.exp: Likewise
11103 * gdb.hp/gdb.threads-hp/usrthbasic.exp: Likewise.
11104 * gdb.hp/gdb.threads-hp/usrthcore.exp: Likewise.
11105 * gdb.hp/gdb.threads-hp/usrthfork.exp: Likewise.
11107 * gdb.base/annota1.exp: Expect failure for hpux11 when posting
11108 a SIGTRAP to the inferior.
11112 * gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
11113 Substitute call to target_link by call to gdb_compile.
11117 * gdb.base/break.exp: Fix HP specific search string when testing
11118 backtracing in a called function.
11120 * gdb.base/constvars.exp: Only set lang to C++ if we're
11121 compiling the test with HP's compilers.
11122 * gdb.base/volatile.exp: Similarly.
11126 * gdb.base/printcmds.exp: Expect the null character to be printed
11127 as '\0', and the '\013' to be printed as '\v'.
11128 * gdb.base/callfuncs.exp ("backtrace at nested call level 4"): Same.
11129 * gdb.base/setvar.exp: Same.
11133 * gdb.base/completion.exp: Rather than completing very long
11134 filenames, which can make the readline library produce output we
11135 don't recognize, cd to the directory first, and then complete
11136 using nice, short relative paths.
11138 * gdb.base/completion.exp: On some systems, there is, in fact, a
11139 variable named `b' in scope, since GDB treats all static
11140 variables as being in scope. So use `no_var_named_this'
11143 * gdb.base/corefile.exp: Recognize the message saying that GDB
11144 can't find the core file's registers as a failure.
11148 * gdb.base/commands.exp (user_defined_command_test): Make "show user"
11149 test expect string more specific.
11153 * gdb.asm/asm-source.exp: Add support for xstormy16.
11154 * gdb.asm/configure.in: Ditto.
11155 * gdb.asm/configure: Rebuild.
11156 * gdb.asm/xstormy16.inc: New file.
11160 * gdb.base/maint.exp: Update to match changes in type dumping code.
11164 * gdb.asm/asm-source.exp (info symbol): Anchor the pattern
11165 matching the entry point symbol's name at the beginning of the
11170 * gdb.c++/classes.exp, gdb.c++/derivation.exp,
11171 gdb.c++/inherit.exp, gdb.c++/method.exp,
11172 gdb.c++/namespace.exp, gdb.c++/templates.exp,
11173 gdb.c++/userdef.exp, gdb.c++/virtfunc.exp: Updates for v3 demangler
11174 and class layout support.
11178 * gdb.c++/classes.exp: Add test for static member function.
11179 * gdb.c++/misc.cc: Add class with static member function.
11183 If GDB says it can't find the struct the function returned, report
11184 those tests as `unsupported'.
11185 * gdb.base/call-rt-st.exp (print_struct_call): New function.
11186 Rewrite subsequent tests to use it.
11188 If GDB says it can't find the struct the function returned, report
11189 those tests as `unsupported'.
11190 * gdb.base/structs.exp (call_struct_func): New function.
11191 (do_function_calls): Use call_struct_func to call the functions
11194 * gdb.base/callfuncs.exp: The stabs generated by GCC don't tell us
11195 whether functions are prototyped or not, so we can't possibly pass
11196 arguments to t_float_values2 properly.
11198 * gdb.base/break.exp: (test_next_with_recursion): Don't change the
11199 value of `timeout' for targets other than the mips*tx39-*.
11203 * gdb.asm/asm-source.exp: Add tests for info target, info symbol,
11204 and detect whether the start symbol has a leading underscore.
11208 * gdb.base/completion.exp: Clarify indentation.
11212 * gdb.asm/s390.inc (gdbasm_datavar): Use `.long' to create `int'
11213 variables on the S/390, not `.word'.
11217 Add assembly-source tests for s390-ibm-linux.
11218 * gdb.asm/s390.inc: New file.
11219 * gdb.asm/configure.in, gdb.asm/asm-source.exp: Add clauses for
11220 the S/390 architecture.
11221 * gdb.asm/configure: Regenerated.
11225 * gdb.asm/asm-source.exp: Add tests for list, search, finish, return,
11226 next, info source, info sources, info line, global and static
11227 variables, and static functions.
11228 * gdb.asm/common.inc: New macro gdbasm_datavar (default definition).
11229 * gdb.asm/i386.inc: Override default definition of gdbasm_datavar.
11230 * gdb.asm/asmsrc1.s: Add a static function and some variables.
11231 * gdb.asm/asmsrc2.s: Make foo2 call foo3 twice (to test 'next').
11232 * gdb.asm/d10v.inc (gdbasm_enter): Set up frame pointer.
11233 (gdbasm_leave): Restore frame pointer.
11234 (gdbasm_startup): Copy stack set-up from crt0.S.
11239 * gdb.base/callfuncs.c (t_structs_a): Do not return a pointer
11240 to a local (non-static) variable. Copy tstruct.a to a static buffer
11241 and return a pointer to that buffer.
11242 * gdb.base/callfwmall.c (t_structs_a): Ditto.
11246 * gdb.asm/configure.in: Fix recognition of ix86 target.
11247 * gdb.asm/configure: Regenerate.
11251 * gdb.asm/sparc.inc: New file.
11252 * gdb.asm/asm-source.exp: Recognize sparc target.
11253 * gdb.asm/configure.in: Recognize sparc target.
11254 * gdb.asm/configure: Regenerate.
11258 * gdb.asm/m32r.inc: New file.
11259 * gdb.asm/asm-source.exp: Recognize m32r target.
11260 * gdb.asm/configure.in: Recognize m32r target.
11261 * gdb.asm/configure: Regenerate.
11265 * gdb.asm/i386.inc: New file.
11266 * gdb.asm/asm-source.exp: Recognize ix86 target.
11267 * gdb.asm/configure.in: Recognize ix86 target.
11268 * gdb.asm/configure: Regenerate.
11270 * gdb.c++/namespace.exp: Fix quotes in output messages.
11274 * gdb.base/code-expr.exp: New file. Tests use of the "@code"
11275 qualifier in a type cast expression, to designate an address
11276 in the instruction space (Harvard architecture).
11280 * gdb.base/cvexpr.c, gdb.base/cvexpr.exp: New files.
11281 Tests for expressions using 'const' and 'volatile'.
11285 * gdb.asm/asm-sources.exp: Allow defining linker flags.
11289 * lib/mi-support.exp (mi_run_to_helper): Move comments
11290 outside of gdb_expect.
11294 * lib/mi-support.exp: (mi_run_to_helper, mi_run_to,
11295 mi_step_to, mi_next_to, mi_continue_to, mi_finish_to,
11296 mi0_step_to, mi0_next_to, mi0_continue_to, mi0_finish_to,
11297 mi0_run_to): New functions.
11298 * gdb.mi/mi-simplerun.exp: Use them.
11299 * gdb.mi/mi0-simplerun.exp: Likewise.
11300 * gdb.mi/mi-var-cmd.exp: Likewise.
11301 * gdb.mi/mi0-var-cmd.exp: Likewise.
11305 * gdb.asm/asmsrc1.s: Add ``gdbasm_'' prefix to all macros.
11306 * gdb.asm/asmsrc2.s, gdb.asm/d10v.inc: Update.
11310 * gdb.base/restore.exp: Include $expected value in restored test
11315 * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
11320 * gdb.base/callfuncs.exp: Add tests for nested call dummies.
11321 Add pass/fail message for stop at breakpoint in call dummy function.
11325 * gdb.c++/templates.exp (test_template_breakpoints):
11326 If we get an overload menu, but it does not match what
11327 we expect, we still need to issue the "cancel" command.
11328 * gdb.c++/templates.exp: Replace "void \\*" with "void ?\\*",
11329 making the whitespace optional. Argument for "new" may be
11330 "unsigned" as well as "unsigned int/long".
11331 * gdb.c++/templates.exp: Replace "const &" with "const ?&",
11332 making the whitespace optional. Also replace "(void) with
11333 "((void|)), making the keyword "void" optional.
11334 * gdb.c++/virtfunc.exp: Replace "const &" with "const ?&",
11335 making the whitespace optional. Also replace "(void) with
11336 "((void|)), making the keyword "void" optional.
11337 * gdb.base/callfuncs.c (t_float_values): This function must
11338 _not_ be prototyped, and the following function (t_float_values2)
11339 must be prototyped (if the compiler supports it), so that GDB
11340 can be tested against both cases. Usually one case involves
11341 promotion of float to double, while the other does not.
11342 * gdb.base/callfwmall.c: Ditto.
11343 * gdb.asm/asm-source.exp (bt ALL in foo2): Accept a backtrace that
11344 includes a stack frame for "start".
11348 * gdb.stabs/weird.exp: Delete "p v_comb" test. It assumes that
11349 pointers are 32 bits long, and that offsets of relocs are always
11350 stored in the data (REL-style), and not in the reloc entry itself
11352 * gdb.stabs/weird.def (v_comb, v_comb_shared): Remove symbols and
11357 * gdb.c++/cplusfuncs.exp: Fix conflicts between operator names
11358 and regular expression operators by using quoting.
11362 * gdb.c++/overload.exp: Select overloadfnarg(void) or overloadfnarg(),
11363 depending on what the symbol table contains.
11364 * gdb.c++/derivation.exp: Accept both "foo(void)" and "foo()" in
11365 the output of the ptype command. Similarly, accept both "const &"
11370 * gdb.base/miscexprs.c (main): Add usage of preprocessor
11371 symbol `STORAGE' to allow to choose the storage class of
11372 the local datastructures.
11373 * gdb.base/miscexprs.exp: Handle setting a `-DSTORAGE=...'
11374 compiler directive.
11378 * gdb.base/jump.exp: Allow it to run for all targets.
11382 * gdb.base/call-ar-st.c (print_double_array): Match for loop
11383 with new double_array size.
11384 (main): Change storage class of all local variables to static.
11385 Reduce size of double_array to 9.
11386 * gdb.base/call-ar-st.exp: Increase timeout value.
11387 Change expected output for double array to match new size in
11392 * gdb.base/ending-run.exp: Create identical output when passing
11393 `step to end of run' case. Add regular expression branch satisfying
11398 * gdb.base/interrupt.exp: Treat SIGILL similar to SIGSEGV such
11399 that we catch the expected failure under Linux/x86.
11403 * gdb.base/setvar.exp: Escape curly braces.
11404 * gdb.stabs/weird.exp: Ditto.
11408 * gdb.mi/mi-hack-cli.exp: Remove excess newlines from test strings.
11409 * gdm.mi/mi0-hack-cli.exp: Likewise.
11413 * gdb.stabs/weird.exp: Unify ``variable VAR printed properly''
11418 * lib/mi-support.exp (mi_gdb_start): Don't require MI_OUT when
11419 checking MI enabled.
11423 * gdb.base/maint.exp: Treat $EXEEXT as optional in output.
11427 * lib/insight-support.exp (gdbtk_start): Don't exit dejagnu
11428 if gdb child process crashes, just signal an error.
11432 * lib/gdb.exp (test_xfail_format): Simplify.
11434 * lib/gdb.exp (setup_xfail_format): Don't forget to put a `$' in
11435 front of the variable name `format'. Simplify `if'.
11439 * gdb.threads/pthreads.exp: Wait for output and delay
11444 * gdb.mi/mi-var-display.exp (continue to incr_a): Recognize
11445 some incorrect output instead of timing out.
11446 * gdb.mi/mi-var-display.exp (continue to incr_a): Likewise.
11450 * gdb.base/volatile.exp (local_compiler_xfail_check): Change qux2
11451 check to allow additional `int'.
11455 * gdb.base/completion.exp: Remove incorrect 'p "a' test.
11456 Add tests for 'p "break' (pass) and 'p "break.' (xfail).
11460 * lib/gdb.exp (test_debug_format): New proc.
11461 (setup_xfail_format): Use new proc test_debug_format.
11462 * gdb.base/constvars.exp (local_compiler_xfail_check): New
11463 proc; use new service proc test_debug_format.
11464 Replace all other "gcc_compiled" tests with this test.
11465 * gdb.base/volatile.exp (local_compiler_xfail_check): New
11466 proc; use new service proc test_debug_format.
11467 Replace all other "gcc_compiled" tests with this test.
11471 * gdb.base/cvexpr.exp: New file.
11472 * gdb.base/cvexpr.c: New file
11473 Test for expressions using const and volatile keywords.
11477 * gdb.base/constvars.exp: Check for different orders of keywords
11478 and additional "int" strings in output.
11482 * gdb.base/maint.exp: Add "maintenance set/show" to list of valid
11483 responses from "help maint".
11487 * lib/insight-support.exp (_gdbtk_xvfb_init): Set DISPLAY
11488 to localhost:NNN instead of :NNN, in case Xvfb is listening
11493 * gdb.base/recurse.exp: When checking leaving the watchpoint
11494 scope, recognize when gdb is in function's epilogue and pass.
11498 * lib/insight-support.exp (_gdbtk_export_target_info): Add
11499 support for running tests against sid targets.
11500 (gdbtk_done): Ditto.
11504 * gdb.base/ending-run.c (main): Set stdout buffersize
11505 to the same reasonable value for any target.
11506 * gdb.base/ending-run.exp: Add a regular expression
11507 to make testsuite happy on Sanyo Stormy16 target.
11511 * gdb.base/display.c (do_loops): Add float variable `f'.
11512 Increment f in loop.
11513 * gdb.base/display.exp: Increment timeout by 60 seconds.
11514 Change float display test to use variable `f'.
11518 * gdb.base/restore.exp: Use temporary breakpoints, to avoid
11519 overflowing the limited breakpoint tables on some ROM monitors
11524 * lib/insight-support.exp (_gdbtk_xvfb_init): Start Xvfb with
11525 the "-ac" (disable access control) flag.
11529 * gdb.base/remote.c: Use a small buffer for targets with 16-bit
11534 * lib/gdb.exp: Move all insight-related functionality into
11536 * lib/insight-support.exp: New file.
11540 * config/sid.exp (sid_start): Never set sid verbosity; disable
11541 expect_background {} that consumed its stdout; tolerate </dev/null.
11542 Attempt to set endianness override in "sid" protocol mode. Cleanup.
11546 * lib/mi-support.exp (mi_gdb_start): If a remote target, use the
11547 CLI jump command to start it.
11548 (mi_run_to_main): Fail immediatly when unexpected output.
11552 * lib/mi-support.exp (mi_gdb_start): Move call to sid_start to
11553 beginning of function. Fix PR gdb/191.
11557 * config/sid.exp (sid_start): Don't warn if we cannot figure out
11558 what to force sid endianness to.
11562 * lib/gdb.exp (gdbtk_start): Don't set environment
11563 variables for TCL_LIBRARY and friends. Insight will
11564 now figure these out for itself.
11568 * gdb.base/completion.exp: Remove the symbol "a64l" from
11569 the expect string; this is target-specific, and not related
11570 to what is being tested.
11574 * config/sid.exp: Rename gdb-socket to cpu-gdb-socket.
11578 * gdb.base/consecutive.exp: New file. Test stepping over
11579 breakpoints on consecutive instructions.
11580 * gdb.base/consecutive.c: New file.
11582 * gdb.base/call-rt-st.exp: Use double-backslash to quote
11583 curly braces in regular expressions.
11587 * gdb.base/ending-run.exp: Accept "Program exited normally" as
11588 legitimate output from stepping out of main.
11592 * lib/gdb.exp (_gdbtk_xvfb_init): If GDB_DISPLAY is
11593 the empty string, do not run the tests.
11597 * gdb.base/long_long.exp: Detect size of pointer. Take into
11598 account 2-byte pointers when testing for p/a results.
11602 * gdb.base/remote.c (RANDOM_DATA_SIZE): New define, defaults to 48K
11603 and defined to 1K for m68hc11.
11604 (random_data): Reduce table to 1K for embedded platforms (68hc11).
11605 * gdb.base/remote.exp (get_sizeof): New function from sizeof.exp.
11606 (sizeof_random_data): New variable to tell the size of the data table;
11607 don't test past this size; always run to main.
11611 * gdb.base/return2.exp: return of long long and double fails for
11612 68HC11; don't execute these tests on that platform.
11613 * gdb.base/return.exp: Return of a double fails for 68hc11.
11617 * call-ar-st.exp: Use gdb_skip_float_test to avoid executing
11618 tests that print a float.
11619 * call-rt-st.exp: Likewise.
11623 * gdb.base/so-impl-ld.exp: Remove stray space that prevented
11624 running this test on Linux.
11628 * gdb.base/arithmet.exp: Remove some tests to make all test names
11633 * gdb.c++/classes.exp: Accept both "foo(void)" and "foo()" in
11634 the output of the ptype command.
11638 * gdb.base/completion.exp: Don't assume that break.c is the only
11639 source file that may contain functions named "marker".
11640 * gdb.base/corefile.exp: Quote the curly braces in regexp.
11644 * gdb.disasm/Makefile.in (clean mostlyclean): Add h8300s to list
11645 of files to delete.
11648 * gdb.disasm/h8300s.exp: New file.
11649 gdb.disasm/h8300s.s: Likewise.
11653 * lib/mi-support.exp (mi_delete_breakpoints): Accept mi1 format
11654 empty breakpoint tables.
11658 * lib/mi-support.exp: Update args=... part of stop-reason
11659 patterns. Accept either a list or a tuple.
11663 * lib/mi-support.exp: Remove local emacs variable defining
11664 change-log-default-name.
11668 * gdb.base/arithmet.exp: Use gdb_test instead of send_gdb/gdb_expect.
11669 This is operationally compatible with the previous version.
11673 * lib/gdb.exp (gdb_test): Doc fix.
11677 * gdb.base/exprs.exp: Remove a duplicate test.
11681 * gdb.base/return2.exp (main): Use values to test float and double
11682 returns that are not NaN's, to avoid being confused by IEEE
11687 * gdb.threads/pthreads.exp (check_control_c): Return 0 for success,
11688 non-zero if control_c fails. Terminate the test on failure,
11689 rather than wait for 12 more tests to time out.
11693 * gdb.base/exprs.exp ("sizeof (long long) > sizeof (long) (true)"):
11694 Don't forget to match the GDB prompt.
11696 * gdb.trace/gdb_c_test.c, actions.c: Fix misspellings.
11700 * gdb.base/help.exp: Update pattern to exclude `print-load-map'
11705 * gdb.base/annota1.exp (info break): Match four or more spaces
11710 * gdb.c++/cplusfuncs.cc (dm_type_char_star): Remove superfluous cast.
11711 (dm_type_int_star): Likewise.
11712 (dm_type_long_star): Likewise.
11713 (dm_type_void_star): Likewise.
11717 * gdb.base/completion.exp (INPUTRC): Set this environment variable
11718 to a known value in order to get consistent results regardless
11719 of the setting of INPUTRC or the presence or contents of .inputrc.
11723 * gdb.threads/linux-dp.exp: Remove assumptions about thread ordering.
11724 Don't require that the main thread and the manager thread are the
11727 * gdb.threads/pthreads.exp (test_startup): Relax test for thread
11728 debugging. If test fails, issue an "unsupported" not a "fail".
11732 Don't assume that short is shorter than int.
11733 * gdb.base/exprs.exp ("print unsigned short == (~0)"): Don't
11734 assume that shorts are smaller than ints. On a 16-bit machine,
11736 ("print unsigned char == (~0)"): Add test that verifies that ~0,
11737 an int, is not equal to ~0 stored in an unsigned char. This tests
11738 the same thing that the previous test meant to, but works on
11739 16-bit machines, too.
11740 ("print unsigned char != (~0)"): Same test, complemented.
11744 * gdb.threads/pthreads.exp (all_threads_running): Add an explicit
11745 test for (full_coverage == 0). This makes the test run faster,
11746 and prevents dejagnu getting out of step.
11750 * gdb.base/finish.exp (finish_void): Revise pattern for
11751 stopping on the call statement to not permit stopping at
11752 the start of the instructions comprising the call sequence.
11756 * gdb.base/callfuncs.exp: Make all test names unique.
11757 * gdb.base/commands.exp: Make all test names unique.
11758 * gdb.base/condbreak.exp: Make all test names unique.
11759 * gdb.base/dbx.exp: Make all test names unique.
11760 * gdb.base/default.exp: Make all test names unique.
11761 * gdb.base/define.exp: Make all test names unique. Conform some FAIL
11762 and TIMEOUT messages to their corresponding PASS message.
11763 * gdb.base/ending-run.exp: Make all test names unique.
11764 * gdb.base/long_long.exp: Remove duplicate test.
11768 * gdb.base/finish.exp (finish_void): Allow "finish" command to
11769 stop on the call statement as well as the statement after the
11774 * gdb.base/long_long.exp: Allow for targets with 4-byte short.
11778 * gdb.base/completion.exp: Revamp test. Make it execute on all
11783 * config/gdbserver.exp (gdb_load): Handle the case
11784 in which the arguments to gdbserver are given in the
11785 baseboard configuration file.
11786 Also handle the case in which the server needs to do a
11791 * lib/gdb.exp (gdbtk_initialize_display): New proc which will
11792 set up the display for testing.
11793 (gdbtk_start): Convert all paths to paths that tcl will like.
11794 Export target information to environment.
11795 (_gdbtk_xvfb_init): New proc to start Xvfb if available and
11797 (_gdbtk_xvfb_exit): New proc to kill Xvfb if necessary.
11798 (to_tcl_path): New proc to convert a given pathname into
11799 a path acceptible as an argument to a tcl command.
11800 (_gdbtk_export_target_info): New proc to export target info
11801 into the environment for gdbtk testing.
11802 (gdbtk_done): New proc to signal end-of-test.
11806 * restore.c: Make the code of caller0 correspond to its comment.
11810 * config/sid.exp (gdb_target_sid): Check for error messages.
11811 On error or timeout, don't make expect exit (which will terminate
11812 all subsequent tests); instead just make gdb exit.
11813 (gdb_load): Check for error messages. On error or timeout,
11814 return a negative value.
11818 * gdb.c++/templates.exp: If we see the prompt for the overload
11819 list, but we haven't recognized any of the longer patterns,
11820 arrange for this test to fail, not hang.
11822 * gdb.c++/classes.exp (ptype class A): Tolerate whitespace
11827 * gdb.c++/local.exp: Use the 'runto' library function.
11828 * gdb.c++/namespace.exp: Likewise.
11829 * gdb.c++/overload.exp: Likewise.
11833 * gdb.base/Makefile.in (EXECUTABLES): Add step-line.
11834 * gdb.base/step-line.exp: New file. Test step/next in presence of
11836 * gdb.base/step-line.c: New file. Test program for the above.
11837 * gdb.base/step-line.inp: New file. We pretend that this file has
11838 been transformed by some other tool into step-line.c.
11842 * gdb.c++/userdef.exp: Check that GDB tolerates whitespace in
11843 unmangled operator names.
11847 * gdb.threads/linux-dp.exp: Recognize an additional message
11848 generated by GDB when it doesn't understand how to debug threads
11849 on the target system.
11853 * gdb.mi/mi-console.exp: Document ``Hello'' as a known bug.
11857 * gdb.c++/derivation.exp: Use the 'runto' library function.
11861 * gdb.c++/annota2.exp: Fix regular expression for "post-query".
11865 * gdb.c++/ref-types.exp: Change handwritten code to library
11870 * gdb.base/signals.exp: Set count to 0 explicitly.
11874 * config/monitor.exp (gdb_target_cmd): Add explicit error return.
11875 (gdb_target_monitor): Add check of gdb_target_cmd return value.
11876 (gdb_load): Add support for additional target_info: gdb_download_size
11877 and gdb_load_timeout.
11881 * gdb.base/annota1.exp: Move test of isnative to earlier in the
11882 file -- to prevent failing when the compile fails but we have no
11883 intention of running the tests anyway.
11885 * gdb.base/long_long.exp: Test target_info for no_long_long, skip
11888 * gdb.base/maint.exp: Support 2 byte integers as well as 4 byte
11891 * gdb.c++/ctti.exp: Skip tests if skip_cplus_tests returns true.
11892 * gdb.c++/namespace.exp: Ditto.
11896 * gdb.base/pointers.c: Don't assume doubles are >= 8 bytes.
11897 * gdb.base/pointers.exp: Relax pattern match of decimals.
11901 * Makefile.in, config/abug.exp, config/cfdbug.exp,
11902 config/cpu32bug.exp, config/dve.exp, config/est.exp,
11903 config/gdbserver.exp, config/hmsirom.exp, config/hppro.exp,
11904 config/i960.exp, config/m32r.exp, config/mn10300-eval.exp,
11905 config/monitor.exp, config/proelf.exp, config/rom68k.exp,
11906 config/sh.exp, config/sid.exp, config/slite.exp,
11907 config/sparclet.exp, config/udi.exp, config/unknown.exp,
11908 config/vr4300.exp, config/vr5000.exp, config/vx.exp,
11909 config/vxworks.exp, config/vxworks29k.exp,
11910 gdb.asm/asm-source.exp, gdb.base/a2-run.exp,
11911 gdb.base/all-bin.exp, gdb.base/annota1.exp,
11912 gdb.base/arithmet.exp, gdb.base/assign.exp,
11913 gdb.base/async.exp, gdb.base/attach.exp,
11914 gdb.base/bitfields.exp, gdb.base/bitops.exp,
11915 gdb.base/break.exp, gdb.base/call-ar-st.exp,
11916 gdb.base/call-rt-st.exp, gdb.base/call-strs.exp,
11917 gdb.base/callfuncs.exp, gdb.base/callfwmall.exp,
11918 gdb.base/commands.exp, gdb.base/completion.exp,
11919 gdb.base/cond-expr.exp, gdb.base/condbreak.exp,
11920 gdb.base/constvars.exp, gdb.base/corefile.exp,
11921 gdb.base/dbx.exp, gdb.base/default.exp, gdb.base/define.exp,
11922 gdb.base/display.exp, gdb.base/ena-dis-br.exp,
11923 gdb.base/ending-run.exp, gdb.base/environ.exp,
11924 gdb.base/eval-skip.exp, gdb.base/exprs.exp,
11925 gdb.base/finish.exp, gdb.base/foll-exec.exp,
11926 gdb.base/foll-fork.exp, gdb.base/foll-vfork.exp,
11927 gdb.base/funcargs.exp, gdb.base/help.exp,
11928 gdb.base/interrupt.exp, gdb.base/jump.exp, gdb.base/list.exp,
11929 gdb.base/logical.exp, gdb.base/long_long.exp,
11930 gdb.base/maint.exp, gdb.base/mips_pro.exp,
11931 gdb.base/miscexprs.exp, gdb.base/nodebug.exp,
11932 gdb.base/opaque.exp, gdb.base/overlays.exp, gdb.base/page.exp,
11933 gdb.base/pointers.exp, gdb.base/printcmds.exp,
11934 gdb.base/ptype.exp, gdb.base/radix.exp, gdb.base/recurse.exp,
11935 gdb.base/regs.exp, gdb.base/relational.exp,
11936 gdb.base/remote.exp, gdb.base/reread.exp,
11937 gdb.base/restore.exp, gdb.base/return2.exp,
11938 gdb.base/scope.exp, gdb.base/sect-cmd.exp,
11939 gdb.base/selftest.exp, gdb.base/setshow.exp,
11940 gdb.base/setvar.exp, gdb.base/shlib-call.exp,
11941 gdb.base/sigall.exp, gdb.base/signals.exp,
11942 gdb.base/sizeof.exp, gdb.base/so-impl-ld.exp,
11943 gdb.base/so-indr-cl.exp, gdb.base/solib.exp,
11944 gdb.base/step-test.exp, gdb.base/structs.c,
11945 gdb.base/structs.exp, gdb.base/structs2.exp,
11946 gdb.base/term.exp, gdb.base/twice.exp, gdb.base/varargs.exp,
11947 gdb.base/volatile.exp, gdb.base/watchpoint.exp,
11948 gdb.base/whatis-exp.exp, gdb.base/whatis.exp,
11949 gdb.c++/ambiguous.exp, gdb.c++/annota2.exp,
11950 gdb.c++/anon-union.exp, gdb.c++/classes.exp, gdb.c++/ctti.exp,
11951 gdb.c++/derivation.exp, gdb.c++/inherit.exp,
11952 gdb.c++/local.exp, gdb.c++/member-ptr.exp, gdb.c++/method.exp,
11953 gdb.c++/misc.exp, gdb.c++/namespace.exp, gdb.c++/overload.exp,
11954 gdb.c++/ref-types.exp, gdb.c++/templates.exp,
11955 gdb.c++/userdef.exp, gdb.c++/virtfunc.exp,
11956 gdb.disasm/am33.exp, gdb.disasm/hppa.exp,
11957 gdb.disasm/mn10200.exp, gdb.disasm/mn10300.exp,
11958 gdb.fortran/types.exp, gdb.java/jmisc.exp,
11959 gdb.java/jv-exp.exp, gdb.java/jv-print.exp,
11960 gdb.stabs/weird.exp, gdb.threads/linux-dp.exp,
11961 gdb.trace/actions.exp, gdb.trace/backtrace.exp,
11962 gdb.trace/circ.exp, gdb.trace/collection.exp,
11963 gdb.trace/deltrace.exp, gdb.trace/infotrace.exp,
11964 gdb.trace/limits.exp, gdb.trace/packetlen.exp,
11965 gdb.trace/passc-dyn.exp, gdb.trace/passcount.exp,
11966 gdb.trace/report.exp, gdb.trace/save-trace.exp,
11967 gdb.trace/tfind.exp, gdb.trace/tracecmd.exp,
11968 gdb.trace/while-dyn.exp, gdb.trace/while-stepping.exp,
11969 lib/gdb.exp, lib/mi-support.exp: Update/correct copyright
11974 * gdb.base/varargs.c (find_max_double): Fix printf format string:
11975 first arg is int not float.
11979 * gdb.base/reread.exp: Unsupported for non-native targets;
11980 doesn't work for remote debugging.
11985 * gdb.base/ending-run.exp: Properly handle the BSP state when
11986 stepping past the end of main.
11990 * gdb.base/commands.exp (infrun_breakpoint_command_test):
11991 Converted HPUX fix for non-expected items following multiple
11992 step commands into general solution for all platforms.
11996 * gdb.c++/classes.exp (do_tests): Change runto statements
11997 from "runto 'foo(void)'" to "runto 'foo'". This makes the
11998 statements demangler agnostic.
11999 * gdb.c++/virtfunc.exp (do_tests): Likewise.
12000 (gdb_virtfunc_restart): Likewise.
12004 * gdb.c++/inherit.exp (do_tests): Change runto statements
12005 from "runto 'foo(void)'" to "runto 'foo'". This makes the
12006 statements demangler agnostic.
12010 * gdb.threads/pthreads.exp: Unify pass/fail messages for
12011 ``continue to bkpt at common_routine in thread 2'' and ``stopped
12012 before calling common_routine 15 times'' tests.
12016 * gdb.c++/cplusfuncs.cc (dm_type_char_star): New function.
12017 Helps the test script figure out which demangler is in use.
12018 (dm_type_foo_ref): Ditto.
12019 (dm_type_int_star): Ditto.
12020 (dm_type_long_star): Ditto.
12021 (dm_type_unsigned_int): Ditto.
12022 (dm_type_void): Ditto.
12023 (dm_type_void_star): Ditto.
12024 * gdb.base/cplusfuncs.exp (probe_demangler): New function.
12025 Probe the gdb demangler and set variables to accommodate
12026 formatting differences.
12027 (info_func_regexp): New function. Same as info_func, but
12028 matches against a regexp.
12029 (info_func): Match against a literal string.
12030 (print_addr_2): New function. Match against a literal string,
12031 which can be different from the input to gdb.
12032 (print_addr): Simply call print_addr_2 with the same argument twice.
12033 (test_lookup_operator_functions): Use demangler formatting variables.
12034 Blow away the xfails and workarounds for gnats gdb bug gdb/18. Sort
12035 the tests in the same order as the C++ class declaration.
12036 (test_paddr_operator_functions): Ditto.
12037 (test_paddr_overloaded_functions): Ditto.
12038 (test_paddr_hairy_functions): Use demangler formatting variables.
12039 Add reference to gdb/19 for related tests.
12040 (do_tests): Call probe_demangler.
12044 * gdb.c++/templates.cc (printf): Remove unused function definition.
12048 * sid.exp (sid_exit): Pass host, not target, to remote_close.
12052 * config/sid.exp (sid_start): Call `remote_push_conn' after firing
12054 (sid_exit): Call `remote_pop_conn' after GDB is gone.
12058 * config/sid.exp (sid_start): Use `remote_spawn' instead of `spawn.'
12059 Deprecate $sid_spawn_id.
12060 (sid_exit): Remove code necessary only for `spawn.'
12064 * config/sid.exp (sid_start): Handle sim,protocol of `sid.'
12068 * gdb.c++/ovldbreak.exp (take_gdb_out_of_choice_menu): New proc
12069 to call when tests fail. It takes gdb out of the overloaded
12070 function choice menu back to the main prompt, so that the test
12071 program stays synchronized.
12072 (set_bp_overloaded): New proc to collect all the common
12073 code for setting a breakpoint on an overloaded name. Calls
12074 take_gdb_out_of_choice_menu when needed.
12075 (menu_overload1arg): New variable to collect the repeated
12076 instances of the expected menu for an overloaded name. Change
12077 the regular expression to handle changes in g++ type encoding:
12078 "void" can be either "void" or "", and "unsigned int" can be
12079 either "unsigned int" or "unsigned".
12080 (continue_to_bp_overloaded): Change regular expressions to handle
12081 changes in g++ type encoding.
12082 (no proc): Call take_gdb_out_of_choice_menu when needed.
12083 Remove redundant calls to "info break". Accept either "canceled"
12084 or "cancelled". Change regular expressions in "info break"
12085 calls to handle changes in g++ type encoding. Give all tests
12090 * config/sid.exp: New file.
12094 * gdb.base/callfuncs.exp: Add space after ``Value returned is''.
12098 * gdb.base/finish.exp: Accept '1' instead of \001 from char_func.
12099 Add a RE to accept a non-ascii char if one is ever presented.
12103 * lib/mi-support.exp (mi_gdb_start): Test for MI_OUT, not UI_OUT.
12107 * gdb.base/setvar.exp: Use double '\\' to quote curly braces
12108 in regexp. One '\' does not suffice on Linux.
12112 * gdb.base/break.exp (test_clear_command): Use a marker function
12113 rather than 'main' for the test function. Also move this
12114 test to an execution point where the marker function names are
12115 guaranteed to be bound to functions. (Executing tests after a
12116 'finish' from main runs into name conflicts with local names
12117 in __libc_start_main).
12121 * gdb.base/finish.exp: New test for gdb's "finish" command.
12122 * gdb.base/return2.exp: New test for gdb's "return" command.
12123 * gdb.base/return2.c: New source file for above.
12127 * gdb.base/constvars.exp: Add a "pass" message if "up" succeeds.
12128 * gdb.base/miscexprs.exp: Ditto.
12129 * gdb.base/pointers.exp: Ditto.
12130 * gdb.c++/derivation.exp: Ditto.
12131 * gdb.c++/local.exp: Ditto.
12132 * gdb.c++/namespace.exp: Ditto.
12133 * gdb.c++/overload.exp: Ditto.
12134 * gdb.c++/ref-types.exp: Ditto.
12138 * gdb.base/constvars.exp: Test result of "up" command.
12139 * gdb.base/miscexprs.exp: Ditto.
12140 * gdb.base/pointers.exp: Ditto.
12141 * gdb.base/scope.exp: Ditto.
12142 * gdb.c++/derivation.exp: Ditto.
12143 * gdb.c++/local.exp: Ditto.
12144 * gdb.c++/namespace.exp: Ditto.
12145 * gdb.c++/overload.exp: Ditto.
12146 * gdb.c++/ref-types.exp: Ditto.
12150 * mips_pro.exp: Accept either "middle -> top -> main" or
12151 "middle -> main" in the backtrace, because gcc can optimize
12152 tail calls to jumps. Remove setup_xfail for the hppa case.
12153 Add a comment with the original warning messages from PR 3016,
12154 which was filed in 1993, to preserve them for posterity.
12158 * lib/gdb.exp (gdb_test): Override timeout with board info.
12162 * gdb.base/display.exp: Don't kill running stub. Add "again" to
12163 the second kill and detach messages.
12167 * configure.in: Add AC_EXEEXT.
12168 * configure: Regenerate.
12169 * Makefile.in (just-check): Export EXEEXT.
12170 * lib/gdb.exp ($EXEEXT): Import from environment.
12171 * gdb.base/maint.exp: Expect $EXEEXT in executable name. Don't
12172 expect "maint dump-me" on Cygwin.
12173 * gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append
12178 * gdb.base/break.exp: Test backtrace and finish from called
12179 function on all platforms, not just HP-UX.
12183 * config/monitor.exp (gdb_target_cmd): Abstracts some of the
12184 code from gdb_target_monitor, so it can be used independantly
12185 for gdbserver. Also comment out an unnecessary PUTS.
12189 * gdb.base/a2-run.exp: Use gdb_skip_stdio_test.
12190 * gdb.base/corefile.exp: Expect the message "Program is being
12191 debugged already" when we send the "corefile" command, since
12192 the preceeding gdb_load may have connected gdb to a remote target.
12193 * gdb.base/display.exp: Disable hardware watchpoints if new
12194 board info variable "no_hardware_watchpoints" is true.
12195 Replace single-letter commands with more readable ones.
12196 * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints
12197 if new board info variable "no_hardware_watchpoints" is true.
12198 * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests
12199 to see if stdio (printf) testing is possible.
12200 * gdb.base/watchpoint.exp: Disable hardware watchpoints if new
12201 board info variable "no_hardware_watchpoints" is true. Use new
12202 proc "gdb_skip_stdio_tests" to see if printf tests are possible.
12207 * gdb.base/printcmds.exp: Escape curly braces followed by a number
12208 in array print pattern match.
12212 * gdb.c++/templates.exp (test_template_breakpoints): Change Britsh
12213 spelling "cancelled" to U.S. spelling "canceled" to match changes
12215 * gdb.c++/ovldbreak.exp: Ditto.
12219 * gdb.base/callfuncs.c (main): Moved to end of file, call
12220 t_double_values to initialize the FPU before inferior calls are made.
12221 * gdb.base/callfuncs.exp: Test for register preservation after calling
12222 inferior functions. Add tests for continuining, finishing and
12223 returning from a stop in a call dummy.
12227 * gdb.base/commands.exp: Break up long lines, and re-indent.
12231 * config/gdbserver.exp: Rewritten from the ground up, to make it
12232 compatible with the current dejagnu tree, and to make it work with
12233 the new "gdbserver" in libremote.
12237 * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support.
12238 * gdb.base/varargs.exp: Skip entire test if no printf support.
12239 * gdb.base/ending-run.exp (Step to return): Skip if no printf supt.
12240 * gdb.base/shlib-call.exp: Skip several tests if no printf support.
12244 * lib/gdb.exp (gdb_skip_float_test): New proc. Skip test if
12245 no floating point support.
12246 (gdb_skip_stdio_test): New proc. Skip test if no stdio support.
12247 * gdb.base/call-ar-st.exp: Use above procs to skip tests.
12248 * gdb.base/call-rt-st.exp: Ditto.
12249 * gdb.base/call-strs.exp: Ditto.
12253 * gdb.base/sizeof.c: include <stdio.h>.
12255 * gdb.c++/classes.exp: Use gdb_test instead of send_gdb to
12256 'finish', otherwise uncaptured gdb_prompt would potentially
12257 throw remaining test points out of sync.
12261 * gdb.base/recurse.exp: Run tests for all targets.
12262 * gdb.base/so-impl-ld.exp: Added wildcard to handle the
12263 gnu-oldld case on ARM.
12264 * gdb.base/watchpoint.exp (test_stepping): Clear xfail
12269 * gdb.java/configure.in (AC_INIT): Use jmisc.exp.
12270 * gdb.java/configure: Rebuild.
12274 * gdb.java/jv-exp.exp: New file.
12278 * configure: Rebuilt.
12279 * configure.in (configdirs): Add gdb.java.
12280 * gdb.java/jmisc.java: New file.
12281 * gdb.java/jmisc.exp: New file.
12282 * gdb.java/Makefile.in: New file.
12283 * gdb.java/configure: Rebuilt.
12284 * gdb.java/configure.in: New file.
12285 * lib/java.exp: New file.
12289 * gdb.base/exprs.exp: Test casts to a pointer including over and
12294 * gdb.base/sizeof.exp, gdb.base/sizeof.c: New files. Compare GDB
12295 and the compilers sizes.
12299 * gdb.c++/misc.cc (class ClassParam, class_param): Define.
12300 (use_methods): New function.
12301 (main): Call use_methods().
12302 * gdb.c++/classes.exp (test_method_param_class): New procedure.
12303 (do_tests): Call test_method_param_class.
12307 * gdb.c++/classes.exp (test_nonexistant_members): Fix name
12309 (test_enums): New procedure. Move enum tests from end of script
12310 to here. Set breakpoint on function name instead of line number.
12311 * gdb.c++/misc.cc (ClassWithEnum): Move past Foo definitions.
12312 (enums2): New marker function.
12313 (enums1): New function.
12314 (main): Call enums1(). Move enum tests to enums1().
12318 * gdb.asm/asm-source.exp: Use raw AS/LD instead of CC to
12319 compile/link program. Update line numbers.
12320 * gdb.asm/d10v.inc: Define ``startup''.
12321 * gdb.asm/asmsrc1.s: Add definition of _start.
12325 * gdb.base/call-ar-st.exp: More rewrites of multi-line patterns.
12329 * gdb.base/maint.exp: Add 'maint print architecture' item to output
12330 of 'help maint print' command.
12334 * gdb.base/call-ar-st.exp: Rewrite all multi-line patterns so that
12335 they use gdb_expect_list.
12339 * gdb.base/commands.exp: Use ``set remote
12340 memory-read-packet-size'' instead of ``set endian big'' to test
12345 * gdb.c++/templates.exp (do_tests): Make all of these work under
12346 g++, and stop skipping them.
12348 * gdb.c++/namespace.exp: Move from gdb.hp/gdb.aCC to here, make it
12351 * gdb.c++/misc.cc: Fix ambiguous initialization with correct
12356 * gdb.base/annota1.exp (run until main breakpoint): Loosen up
12357 the regular expression: accept an (almost) arbitrary sequence of
12358 "frames-invalid" and "breakpoints-invalid" messages both before
12359 and after the "starting" message.
12363 * gdb.c++/local.exp: This test has never been known to work with g++.
12367 * gdb.base/annota1.exp (annotate-signal-handler-caller):
12368 Relax the regular expression a little, make it pass on Solaris 8.
12372 * gdb.base/step-test.exp: On IA-64 targets, when stepping out of
12373 a call, do not require that gdb stop on the line after the call.
12374 Instead, it is permissible for gdb to stop on the line of the
12379 * gdb.base/break.exp (bp on small function, optimized file):
12380 Add a second pass pattern. The behavior differs here between stabs
12381 and dwarf for one-line functions. Stabs preserves two line symbols
12382 (one before the prologue and one after) with the same line number,
12383 but dwarf regards these as duplicates and discards one of them.
12384 Therefore the address after the prologue (where the breakpoint is)
12385 has no exactly matching line symbol, and GDB reports the breakpoint
12386 as if it were in the middle of a line rather than at the beginning.
12390 * gdb.base/interrupt.exp: Make "pass" message say "send"
12391 rather than "send_gdb" (for consistancy).
12396 * gdb.c++/templates.cc: Properly check for GCC version number.
12397 * lib/compiler.cc: Likewise
12401 * gdb.base/break.exp: When compiled with -O2 optimization,
12402 gdb may not stop at the first line of main, due to code motion.
12406 * gdb.base/call-ar-st.exp: Bail out if target is sparclet.
12407 This test depends on parsing the printf output from the target.
12408 Since the sparclet stub doesn't do stdio, this will never work.
12409 * gdb.base/call-rt-st.exp: ditto.
12410 * gdb.base/call-strs: ditto.
12414 * gdb.base/miscexprs.exp: make sizeof long array test portable.
12416 * gdb.base/ending-run.exp: After connecting to a remote target,
12417 but before running, the target will appear to be in a random
12418 location. Specify both a file and a line for breakpoints.
12419 Also, the function that calls main may be called 'init'
12420 rather than 'start'.
12424 * gdb.base/help.exp: Update output for add-symbol-file command.
12429 * gdb.base/structs2.c: Support platforms defaulting to a unsigned char.
12433 * gdb.base/call-ar-st.exp: Relax patterns matching tab characters.
12435 * gdb.base/funcargs.exp: Relax patterns matching pointers to char.
12439 * gdb.base/call-ar-st.c (init_small_structs, main): Use floating-point
12440 values that can be represented exactly.
12441 * gdb.base/call-ar-st.exp (print print_small_structs): Fixed to match
12442 above change, and to not check against the directory part of the source
12444 (step into print_long_arg_list): Likewise.
12445 (print print_small_structs from print_long_arg_list): Likewise.
12446 (print print_long_arg_list): Likewise.
12450 * gdb.base/printcmds.c: Terminate char array ctable2 with 0.
12454 * ChangeLog, gdb.base/commands.exp: Revert whitespace changes.
12458 * gdb.base/commands.exp (deprecated_command_test): Add test for
12459 deprecate with no arguments.
12463 * gdb.base/break.exp: Add new test for setting breakpoints on
12464 optimized code so we can test breakpoints work even when function
12465 prologues may be optimized away
12470 * gdb.base/commands.exp : Added command deprecator tests.
12474 * gdb.base/help.exp: Added test for new apropos command.
12478 * gdb.base/pointers.c (usevar): New function.
12479 (main): Make sure that global variables v_int_pointer2, rptr,
12480 and y are all referenced someplace in the program by calling
12481 usevar() on them. [Some linkers delete symbols which are
12482 never referenced. The space remains, but there's no way to
12483 get a (symbolic) handle on the variable from the debugger.]
12487 * gdb.base/printcmds.c: Add typedeffed arrays.
12489 * gdb.base/printcmds.exp (test_print_typedef_arrays): New
12490 procedure to test arrays that are typedef'd.
12494 * lib/gdb.exp: Fix the gdbtk_start routine to correctly find all
12495 the library directories.
12499 * configure.in (configdirs): Add sub directory gdb.mi.
12500 * configure: Re-generate.
12502 * gdb.mi: New directory.
12506 * gdb.base/long_long.exp: Correct test suite failure when printing
12507 a long long value as a double on ARM platforms.
12511 * gdb.base/break.exp ("breakpoint line number"): Make sure the
12512 default source file is set properly before running this test.
12516 * lib/gdb.exp: Tell the testsuite that now gdbtk is in the
12517 gdbtk/library directory, not in gdbtcl2.
12521 * gdb.c++/templates.exp: ("ptype T5<int>"): Remove extraneous
12522 backslash from regexp pattern.
12524 * gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): New
12525 procedure. Use it to run all the "continue to bp overloaded"
12526 tests. Note that this changes the names of the tests slightly.
12527 If the breakpoint hit message includes a hex PC value, because
12528 GCC's Dwarf 2 line info doesn't help us distinguish the prologue
12529 from the real source code, still consider that a pass.
12531 * gdb.base/condbreak.exp ("run until breakpoint at marker2"):
12532 XFAIL here if the breakpoint message contains a hex address. Note
12533 similar change on 1999-11-02.
12535 * gdb.base/step-test.exp: Comment Fernando's change of 2000-02-02.
12537 * gdb.base/ptype.exp: Establish a default source file before
12538 calling get_debug_format.
12542 * gdb.base/watchpoint.exp: Remove duplication of test messages.
12546 * gdb.base/step-test.exp: Fix the steps to enter a callee by means
12547 of successive stepi commands -- while in the prologue we should see
12548 the function entry bracket.
12552 * gdb.base/ending-run.exp: Add ARM in thumb mode case, where we
12553 reach __change_mode() when stepping through the end of main().
12557 * gdb.base/default.exp: Fix expected pattern.
12558 * gdb.base/help.exp: Same.
12562 * gdb.base/so-indr-cl.exp: Don't execute the test if not on HPUX.
12563 Don't use xfail's because that affects only the following test.
12565 * gdb.base/so-impl-ld.exp: Don't execute the tests if not on hpux,
12568 * gdb.base/selftest.exp: Update to reflect changes to main.c.
12572 * gdb.base/display.exp: Some yacc parsers like to say
12573 "A syntax error" rather than "A parse error". Accept both.
12577 * gdb.base/default.exp: Remove OS dependent string from "target
12579 * gdb.base/help.exp: Same for "help target remote" test.
12585 * gdb.c++/annota2.exp: Fix "delete bps" test to wait for the
12586 prompt (cleanup rather than necessity, but still might keep output
12587 from spilling to next test).
12591 * gdb.base/ptype.c (FALSE, TRUE): #undef these to avoid clash on
12592 AIX, which defines them in <sys/types.h>.
12596 * gdb.base/default.exp: Match arm* etc instead of arm in "info
12601 * gdb.base/watchpoint.exp: Add missing "(timeout)" to test message.
12603 * gdb.base/break.exp: Add missing anchor to reg exp on "finish from
12604 outermost frame disallowed".
12608 * gdb.base/setvar.exp: New tests for setting the value of a struct
12609 with a constant list.
12613 * gdb.base/setvar.exp: Remove pair os tests that expected gdb to
12614 require the user to type a cast before setting the value of a struct.
12618 * gdb.base/default.exp: Expect the new 'info float' command on
12619 all i386 platforms.
12621 * gdb.threads/linux-dp.exp: Expand our ability to recognize
12622 LinuxThreads libraries that don't support debugging.
12626 * gdb.base/remote.c: Fill the buffer with truely random data.
12627 Change the buffer type to ``unsigned char'' to simplify size
12630 * gdb.base/remote.exp: Reduce download numbers by one. Typical
12631 stub only handles 400-1 byte packets. Verify that the download
12636 * lib/gdb.exp (gdb_expect_list): FAIL only once on multiple pattern
12637 tests, using UNRESOLVED for the untested cases. Also, does not wait
12638 for a timeout if the prompt was received before a recognizable pattern.
12642 * lib/gdb.exp (gdb_expect_list): Fix spelling.
12646 * gdb.base/watchpoint.exp: Add tests cases for the hit count of
12651 * gdb.base/condbreak.exp: Add missing '$gdb_prompt $'.
12653 * gdb.c++/local.exp: Be more flexible in recognizing local class
12654 name mangling. Don't allow horribly truncated method names.
12655 * gdb.c++/derivation.exp: Expect protected inheritance.
12656 * gdb.c++/inherit.exp: Be more flexible in recognizing vbase pointers.
12657 * gdb.c++/virtfunc.exp: Likewise.
12658 * gdb.c++/classes.exp: Likewise. Don't require the enclosing scope
12659 when printing a nested enum.
12663 * gdb.base/step-test.exp: Properly await GDB's response to setting
12664 a breakpoint on the call to large_struct_by_value.
12666 * gdb.base/ending-run.exp ("step to end of run 1"): Don't fail
12667 just because we have debug info for the `start' function.
12671 * gdb.threads/linux-dp.exp ("create philosopher"): Recognize the
12672 "Unknown signal" messages, which indicate (on LinuxThreads) that
12673 GDB doesn't know how to debug threads on this system. This is
12674 better than hanging while philosopher 0 dumps chatter into gdb.log.
12678 * gdb.trace/deltrace.exp: Updated test to reflect new error text.
12682 * gdb.base/coremaker2.c: Add sample program for generating
12683 cores that is more self contained than coremaker.c. Eventually
12684 I'll add more code to this and tie it into the testsuite.
12688 * gdb.base/dollar.exp: Remove, now in gdb.hp.
12692 * gdb.exp (get_compiler_info): pick up compiler.c and compiler.cc
12694 * lib/compiler.c, lib/compiler.cc: New files, moved from gdb.base/
12697 * gdb.c++/derivation.exp: remove redundant get compiler info code.
12699 * gdb.base/commands.exp: add '$gdb_prompt $' anchor to
12700 'continue with watch' test point.
12704 Merged from p2linux-990323-branch:
12706 * lib/gdb.exp (gdb_continue_to_breakpoint): New function.
12710 * gdb.base/remote.exp: Test ``set remote memory-write-packet-sized
12711 {limit,fixed}''. Test ``set download-write-size''.
12715 * gdb.base/funcargs.exp: Rewrite stack traceback checks using
12720 * lib/gdb.exp (gdb_expect_list): Return a success/fail indication.
12724 * gdb.base/break.exp: Fix "stub continue" pattern.
12728 * gdb.base/shlib-call.exp ("next to shr1"): Fix test name.
12732 * gdb.base/display.exp ("finish"): Add timeout clause.
12734 * gdb.base/condbreak.exp ("run until breakpoint at marker1"): Add
12735 plain prompt clause, so this doesn't have to time out in order to
12738 * gdb.base/condbreak.exp, gdb.base/ena-dis-br.exp: XFAIL if the
12739 breakpoint hit messages include an address.
12741 * gdb.base/display.exp: Don't forget to escape parens in regular
12742 expressions. Unix regexp notatation sucks.
12746 * gdb.base/annota1.exp: Test for annotate-signalled: change output
12747 order for 'signalled' message.
12752 * gdb.base/annota1.exp: Add tests for annotate ignore count change.
12753 * gdb.base/annota1.c: Add code for tests to work with.
12757 * gdb.base/remote.exp: New test for remote downloading settings.
12758 * gdb.base/remote.c: New file with large .data.
12762 * gdb.threads/linux-dp.c, gdb.threads/linux-dp.exp: New test suite
12763 for LinuxThreads support, merged from the Code Fusion branch.
12767 * lib/gdb.exp (gdb_run_cmd): Break complicated gdb_expect
12768 containing exp_continue into a while within an expect. Don't
12769 attempt a start more than three times. Check return value from
12774 * gdb.base/watchpoint.exp: Match fail ``finish from marker1'' with
12779 * gdb.base/break.c (main): Added a statement that we can step
12781 * gdb.base/break.exp: Added tests for setting a breakpoint
12782 at an offset and stepping onto a breakpoint.
12786 * gdb.base/help.exp (help add-symbol-file): Update to match current
12791 * gdb.base/break.exp: Code locations are in hex, don't forget!
12796 * condbreak.exp: Use break.c as test program.
12797 * condbreak.c: Remove, redundant with break.c.
12801 * config/monitor.exp (gdb_target_monitor): Disable X- and
12802 Z-packets if the target needs it.
12806 * gdb.c++/overload.exp: Added tests for listing overloaded
12807 functions with function pointers in the arg, explicitly calling
12808 out the version you want.
12812 * long_long.exp: Add variations of test cases that work for
12813 targets with 16-bit ints and 32-bit doubles.
12817 * break.c (main): Compare a possibly-uninitialized argc with an
12818 unlikely value that fits in 16 bits.
12822 * gdb.base/restore.c, gdb.base/restore.exp: Use 0x7eeb instead of
12823 0xfeeb, don't want negative numbers if ints are 16 bits.
12825 * lib/gdb.exp (skip_cplus_tests): New proc.
12826 * gdb.c++/ambiguous.exp, gdb.c++/annota2.exp,
12827 gdb.c++/anon-union.exp, gdb.c++/classes.exp,
12828 gdb.c++/cplusfuncs.exp, gdb.c++/ctti.exp, gdb.c++/demangle.exp,
12829 gdb.c++/derivation.exp, gdb.c++/inherit.exp, gdb.c++/local.exp,
12830 gdb.c++/member-ptr.exp, gdb.c++/method.exp, gdb.c++/misc.exp,
12831 gdb.c++/overload.exp, gdb.c++/ovldbreak.exp,
12832 gdb.c++/ref-types.exp, gdb.c++/templates.exp, gdb.c++/userdef.exp,
12833 gdb.c++/virtfunc.exp: Use it to skip over C++ tests.
12835 * gdb.c++/cplusfuncs.exp: Use get_compiler_info consistently.
12839 * gdb.base/corefile.exp (up): Allow a parameter to appear
12840 in the frame that we're going up to.
12844 * gdb.base/default.exp (info float): Expect some output now.
12846 * gdb.base/callfuncs.exp (do_function_calls): We no longer expect
12847 returning floating-point values to fail on the x86.
12848 * gdb.base/callfwmall.exp (do_function_calls): Same.
12850 * gdb.base/list.exp (test_listsize): Correct expectations for
12851 listing line 1 with listsize 2. Also, listing a single line
12852 works now, as does listing three lines. [Kevin's note: There
12853 were a number of other cases fixed too where the expectations
12858 * gdb.base/selftest.exp: Add case for when version prints as
12859 constant string instead of char pointer.
12863 * gdb.base/ending-run.exp: Add Solaris case for what happens when
12864 stepping out of main.
12866 * gdb.c++/derivation.exp: XFAIL inf fn calls for all configs, if
12869 * gdb.c++/local.exp: Expect ptype NestedInnerLocal to succeed
12870 always, expect ptype InnerLocal::NestedInnerLocal to fail always.
12872 * gdb.c++/ovldbreak.exp: Update match string in test that
12873 includes a warning of multiple breakpoints.
12877 * gdb.base/display.exp: Improve precision of step-after-finish
12880 * gdb.base/signals.exp: Add extra wildcard to "handle all print"
12883 * gdb.c++/classes.exp: XFAIL HP-compiler-only tests for all
12884 configs when using G++, not just hppa*.
12888 * gdb.base/async.c: New file.
12889 * gdb.base/async.exp: New file.
12893 * gdb.base/break.exp: Tweak PA specific tests to properly handle
12898 * gdb.base/display.exp: "finish" can leave us mid-line on many
12899 targets, deal with it. Add a small constant to main, instead of
12900 1000 since main+1000 may not be a valid address in the target.
12902 * gdb.base/dollar.exp: Do not run for PA processors in wide mode
12905 * gdb.base/attach.exp: Handle another hpux11 error message variant
12906 when attaching to a process that does not exist.
12910 * gdb.base/call-ar-exp.exp: Fix pattern matching whitespace
12911 characters in 'continue to 1241' test.
12915 * gdb.base/call-ar-st.exp: Add a shorter match case for the
12916 stop in print_long_arg_list, define and use a whitespace
12917 variable in print_small_structs test, add an XFAIL for Solaris.
12918 * gdb.base/dbx.exp: XFAIL func commands until somebody is
12919 interested enough to fix.
12923 * gdb.base/dbx.exp (dbx_gdb_file_cmd): Rename to gdb_file_cmd.
12924 (dbx_gdb_load): Remove. Use gdb_load instead, since that
12925 proc knows about targets other than the natives.
12926 (test_assign): Use "gdb_run_cmd" to "run" the target.
12927 Check that we've actually hit the breakpoint at main.
12928 When we attempt to assign a value to a local variable, check
12929 that the variable is in the current scope, i.e., don't use
12930 a test with an empty result.
12934 * gdb.base/maint.exp: Add test of ``maintenance internal-error''
12940 gdb.hp: Move tests into subdirectories gdb.aCC, gdb.base-hp,
12941 gdb.compat, gdb.threads-hp.
12942 gdb.hp/configure, gdb.hp/configure.in: New files.
12943 gdb.hp/Makefile.in: Recurse into new subdirs.
12944 gdb.hp/gdb.defects: New directory, tests for HP bug reports.
12945 gdb.hp/gdb.objdbg: New directory, tests for debugging info
12947 gdb.hp/tools: New directory, aux tools for HP-specific tests.
12951 * gdb.base/display.exp: Help expect by putting a newline in the
12952 funky printf, remove a bogus p/a test.
12956 * gdb.base/display.exp: Make sure that when we say 'run', we are
12957 connected to the target. This is necessary when running not
12962 * gdb.base/step-test.exp: Removed some extraneous messages.
12964 * gdb.base/long_long.exp: Don't run memory examination tests
12965 on little-endian targets (they will need a different set of
12970 * gdb.c++/virtfunc.exp: Expect to fail the virtual call tests
12971 until somebody decides to fix GDB.
12973 * gdb.base/long_long.c: Stop compiler complaint by specifying long
12975 * gdb.base/long_long.exp: Loosen x/c test, add partial result
12976 matches for a couple x/2 commands.
12980 * gdb.c++/ref-types.cc, gdb.c++/ref-types.exp: Appease doschk
12981 by merging in ref-types2 tests.
12982 * gdb.c++/ref-types2.cc, gdb.c++/ref-types2.exp: Remove.
12985 * gdb.c++/Makefile.in: Add standard actions.
12986 (EXECUTABLES): Rename from PROGS, update list.
12987 * gdb.c++/ambiguous.cc, gdb.c++/ambiguous.exp: Move to here
12989 * gdb.c++/anon-union.cc: Don't use anonymous struct, make
12990 foo and bar locals.
12991 * gdb.c++/anon-union.exp: Fix tests to match.
12992 * gdb.c++/classes.exp: Run if HP compiler used, add extra
12993 expect matches to handle output variations.
12994 * gdb.c++/cplusfuncs.cc: Make operator -> return foo *.
12995 * gdb.c++/cplusfuncs.exp: Update to match, allow word "class" in
12996 output, add HP alternatives for new and delete prints.
12997 * gdb.c++/ctti.exp, gdb.c++/cttiadd.cc, gdb.c++/cttiadd1.cc,
12998 gdb.c++/cttiadd2.cc, gdb.c++/cttiadd3.cc: Move here from gdb.hp.
12999 * gdb.c++/demangle.exp: Use $style when reporting failure.
13000 * gdb.c++/derivation.exp: Add some xfails if GCC-compiled.
13001 * gdb.c++/inherit.exp: Run if HP compiler used, add some
13002 match alternatives.
13003 * gdb.c++/local.exp: Add match alternatives or xfails for HP
13005 * gdb.c++/member-ptr.exp: Add xfails for hppa*-*-*.
13006 * gdb.c++/method.exp: Add match alternatives.
13007 * gdb.c++/misc.cc: Add bool types.
13008 * gdb.c++/misc.exp: Add tests for bool types.
13009 * gdb.c++/overload.exp: Add xfails.
13010 * gdb.c++/templates.cc: Remove bogus arglist init, init fvpchar.
13011 * gdb.c++/templates.exp: Run if HP compiler used, add some xfails,
13012 add some more template parameter tests (only for HP currently).
13013 * gdb.c++/userdef.exp: Add xfails for hppa*-*-*.
13014 * gdb.c++/virtfunc.cc: Add return type and value for main.
13015 * gdb.c++/virtfunc.exp: Run if HP compiler used, add some
13016 match alternatives.
13020 * gdb.base/display.exp: Fix output of 'p/a &&j' test.
13024 * gdb.base/signals.exp: Don't expect getting a backtrace from
13025 within a signal handler to fail on Linux.
13030 * lib/gdb.exp: Remove some gratuitious semicolons.
13031 (delete_breakpoints): Increase timeout.
13032 (gdb_expect): Add -notransfer option.
13033 (gdb_test): Use -notransfer option.
13034 (get_compiler_info): Add f77 case.
13035 (get_compiler): New proc, split out from gdb_preprocess, add f77
13037 (gdb_preprocess): Call get_compiler.
13039 * gdb.base/Makefile.in (EXECUTABLES): Update the list.
13040 * gdb.base/attach.exp, gdb.base/display.exp,
13041 gdb.base/ending-run.exp, gdb.base/gdbvars.exp,
13042 gdb.base/long_long.exp, gdb.base/printcmds.exp,
13043 gdb.base/structs.exp, gdb.base/structs2.exp: Remove or fill in
13044 third arg to gdb_test.
13045 * gdb.base/call-ar-st.exp: Add HP-UX xfail for >10-arg functions.
13046 * gdb.base/callfuncs.exp, gdb.base/callfwmall.exp: Remove some
13047 HP-UX xfails, add others.
13048 * gdb.base/completion.exp: Reflect name change of self-test.
13049 * gdb.base/condbreak.exp, gdb.base/corefile.exp,
13050 gdb.base/foll-exec.exp, gdb.base/interrupt.exp,
13051 gdb.base/ptype.exp, gdb.base/scope.exp, gdb.base/setvar.exp: Note
13053 * gdb.base/foll-vfork.exp: Loosen matches slightly, remove
13054 useless HP-UX 10.30 references.
13055 * gdb.base/maint.exp: Loosen matches.
13056 * gdb.base/pointers.c (main): Declare more_code.
13057 * gdb.base/pointers.exp: Match on output of a `next'.
13058 * gdb.base/structs.c: Add prototypes.
13059 * gdb.base/watchpoint.exp: Remove HP-UX 10.30 reference.
13060 * gdb.base/whatis.exp: Fail for both HP-UX 10.20 and 11.
13064 * gdb.base/list.exp: Add tests for repeating 'list <linenum>'
13069 * gdb.c++/annota2.exp: Fix delete breakpoint query testcase.
13070 Fix run to main failures. Watchpoint can be hardware watchpoint.
13072 * gdb.base/annota1.exp: Clean up some more, in case printf has
13073 debug info. Deal with lack of signal hanlder info in stack.
13076 * gdb.base/annota1.exp: If printf has debug info, deal with it.
13080 * gdb.base/foll-exec.exp, gdb.base/foll-fork.exp,
13081 gdb.base/foll-vfork.exp: Don't run for crosses.
13085 * gdb.base/configure.in: Check for gdbvars.exp instead of
13087 * gdb.base/configure: Re-generate.
13091 * gdb.base/selftest.exp: Rename from a1-selftest.exp, no point
13092 in trying to run first and name is too long.
13094 * gdb.base/pointers.c, gdb.base/pointers.exp: Add contents of
13095 pointers2.c and pointers2.exp, respectively.
13096 * gdb.base/pointers2.c, gdb.base/pointers2.exp: Remove, makes
13101 * gdb.base/callfwmall.c, gdb.base/callfwmall.exp: Renamed from
13102 callfuncs2.c and callfuncs2.exp.
13104 * gdb.base/list.exp: Remove mistaken xfails.
13105 * gdb.base/list0.h: Add optional prototypes.
13109 * gdb.base/setvar.exp: Increase the time-out on tests indirectly
13111 * nodebug.exp, printcmds.exp, ptype.exp, setvar.exp: Ditto.
13112 * ptype.exp: Move test for get_debug_format to before its first
13117 * gdb.base/Makefile.in (EXECUTABLES): Remove annota2 executable.
13118 * gdb.base/annota2.cc, annota2.exp: Move from here.
13119 * gdb.c++/annota2.cc, annota2.exp: To here.
13120 * gdb.c++/Makefile.in (PROGS): Add annota2 executable.
13124 * lib/gdb.exp (gdb_expect_list): Output one message per pattern in
13125 a consistent format.
13130 * lib/gdb.exp (get_compiler_info): Add detection for assorted
13131 HP compilers, also set the globals $true and $false.
13133 * gdb.base/annota1.c, bitfields.c, break.c, call-ar-st.c,
13134 call-rt-st.c, call-strs.c, callfuncs.c, callfuncs2.c, condbreak.c,
13135 coremaker.c, ending-run.c, exprs.c, funcargs.c, interrupt.c,
13136 jump.c, langs0.c, langs1.c, langs2.c, list0.c, list1.c,
13137 long_long.c, mips_pro.c, nodebug.c, opaque0.c, opaque1.c,
13138 printcmds.c, ptype.c, recurse.c, restore.c, return.c, run.c,
13139 scope0.c, scope1.c, setshow.c, setvar.c, shmain.c, shr1.c, shr2.c,
13140 sigall.c, signals.c, so-impl-ld.c, so-indr-cl.c, solib.c,
13141 solib1.c, solib2.c, step-test.c, twice.c, varargs.c, watchpoint.c,
13142 whatis.c} Add C++ compatible function definitions and return
13143 types, add includes for library functions.
13144 * gdb.base/ptype.c (my_false, my_true): Use instead of false/true.
13145 * gdb.base/step-test.c (myglob): Rename from glob.
13146 * gdb.base/attach.c, attach2.c, average.c, execd-prog.c,
13147 foll-exec.c, foll-fork.c, foll-vfork.c, sum.c, vforked-prog.c: New
13148 files, move here from gdb.hp.
13149 * gdb.base/annota1.exp, break.exp, call-ar-st.exp, call-rt-st.exp,
13150 commands.exp, condbreak.exp, define.exp, ena-dis-br.exp,
13151 ending-run.exp, jump.exp. list.exp, long_long.exp, so-impl-ld.exp:
13152 Adjust line numbers in regexps.
13154 * gdb.base/all-bin.exp, eval-skip.exp, exprs.exp, logical.exp,
13155 miscexprs.exp, pointers.exp, relational.exp: Use $true and $false
13158 * gdb.base/attach.exp, dbx.exp, foll-exec.exp, foll-fork.exp,
13159 foll-vfork.exp: New files, move here from gdb.hp.
13160 * gdb.base/page.exp: New file, test of pagination command.
13162 * gdb.base/watchpoint.c (recurser): New function, for watchpoint
13164 * gdb.base/watchpoint.exp: Add more test cases for watchpoints.
13166 * gdb.base/so-impl-ld.exp, gdb.base/so-indr-cl.exp,
13167 gdb.base/solib.exp: Fix compiler invocation process.
13169 * gdb.base/callfuncs.exp, gdb.base/callfuncs2.exp: Don't xfail for
13170 HP-UX 11, turn off overload resolution explicitly.
13171 * gdb.base/commands.exp: Set argument list explicitly, add
13173 * gdb.base/completion.exp: Enable if HP-UX, tweak tests to make
13175 * gdb.base/constvars.exp, gdb.base/volatile.exp: Escape the
13176 expressions properly.
13177 * gdb.base/corefile.exp: Loosen the match slightly.
13178 * gdb.base/default.exp: Allow "Error accessing memory" message
13180 * gdb.base/display.exp: Skip over x/0 j if PA64.
13181 * gdb.base/funcargs.exp: Add xfails for HP-UX.
13182 * gdb.base/interrupt.exp: Ditto.
13183 * gdb.base/langs.exp: Add symbolic matches governed by compiler
13185 * gdb.base/list.exp: Add xfails for HP-UX.
13186 * gdb.base/long_long.exp: Refine some of the numeric matches.
13187 * gdb.base/mips_pro.exp: Xfail on HP-UX.
13188 * gdb.base/miscexprs.exp: Add PA2.0 case for array size test.
13189 * gdb.base/nodebug.exp: Succeed on more varieties of output.
13190 * gdb.base/opaque.exp: Remove some HP-UX xfails.
13191 * gdb.base/ptype.exp: Succeed on more varieties of output.
13192 * gdb.base/scope.exp: Add xfails for HP-UX.
13193 * gdb.base/sect-cmd.exp: Add more cases.
13194 * gdb.base/setvar.exp: Add xfails for HP-UX.
13195 * gdb.base/shlib-call.exp: Loosen some matches slightly.
13196 * gdb.base/signals.exp: Match on void symbolically.
13197 * gdb.base/step-test.exp: Add case for PA64.
13198 * gdb.base/term.exp: Add exit and restart.
13199 * gdb.base/twice.exp: Clean up after self.
13200 * gdb.base/varargs.exp: Disable overload resolution explicitly.
13201 * gdb.base/whatis.exp: Allow more ways to pass tests.
13203 * gdb.base/smoke.exp, gdb.base/smoke.c, gdb.base/smoke.cc: Remove,
13208 * lib/gdb.exp (proc gdb_expect_list): New procedure. Matches a
13210 * gdb.base/call-ar-st.exp: Use gdb_expect_list in "print
13211 print_double_array(double_array)", "continuing to breakpoint
13212 1018", "print print_double_array(array_d)" and "continuing to
13217 * Makefile.in: Add empty html and install-html targets.
13221 * config/mt-*: Remove, these haven't been used since 1996.
13225 * gdb.base/call-strs.c, gdb.base/ending-run.c,
13226 gdb.base/step-test.c: Include stdlib.h and string.h as needed.
13227 * gdb.c++/member-ptr.exp: Skip over these tests if using G++.
13231 * gdb.c++/overload.exp: XFAIL everything if using G++, add a
13232 simpler match case for the ptype of the big class.
13236 * gdb.exp: Fix test for gdb_prompt existence.
13240 * gdb.exp (gdb_test): Add fail after calls to perror.
13244 * gdb.exp (gdb_test): Accept variations of Undefined command messages.
13248 * gdb.exp (gdb_test): Fix anchors on gdb_expect statement.
13252 * gdb.base/call-strs.c (link_malloc): New function. Ensure that
13253 malloc() is linked in.
13257 * gdb.base/ending-run.exp: Make sure we fail and do not timeout at
13260 * gdb.base/annota1.exp: Increase match_max to prevent timeout.
13264 * gdb.java/jv-print.exp: New file. (Our first Java test!)
13268 * gdb.base/a1-selftest.exp: Remove bogus hppa xfail.
13269 * gdb.base/mips_pro.exp: Likewise.
13273 * gdb.c++/templates.cc: Change all "new" operators to throw
13275 * gdb.c++/cplusfuncs.cc: Likewise.
13277 * gdb.base/Makefile.in (EXECUTABLES): Add smoke1, annota1, and annota2.
13281 * gdb.base/condbreak.exp: Use rerun_to_main to start the program.
13282 * gdb.base/ending-run.exp: When stepping out of main, accept a
13283 step into an arbitrary assembler file.
13287 * gdb.base/annota1.exp: Allow any number of "frames-invalid" and
13288 "breakpoint-invalid" to be printed.
13289 * gdb.base/annota2.exp: Revise line number for main breakpoint. Allow any
13290 number of "frames-invalid" and "breakpoint-invalid" to be printed.
13291 * gdb.base/annota2.cc: Initialize a.x to 0.
13295 * gdb.base/call-ar-st.exp: Skip "print print_double_array (double_array)"
13296 when "skip_float_tests" set.
13297 Ditto for "print print_double_array(array_d)", "print print_small_structs",
13298 "print print_ten_doubles", and "step into print_long_arg_list".
13299 Don't assume we can step into "print_long_arg_list": we could step into memcpy.
13300 * gdb.base/call-rt-st.exp: Don't run float-related tests when "skip_float_tests"
13301 is set: "print print_one_double(*d1)" and "print print_two_floats(*f3)".
13302 * gdb.base/funcargs.exp: Don't run "float_and_integral_args" when
13303 "skip_float_tests" is set.
13304 * gdb.base/varargs.exp: Skip "print find_max_double(5,1.0,17.0,2.0,3.0,4.0)"
13305 when "skip_float_tests" set.
13309 * gdb.base/annota2.cc: Include stdio.h.
13313 * gdb.base/crossload.exp: Remove, this has been disabled ever
13314 since BFD stopped including all targets, and cross-GDB gets
13315 plenty of testing anyway.
13316 * gdb.base/i486-elf.u, gdb.base/m68k-aout.u, gdb.base/m68k-elf.u,
13317 gdb.base/sparc-aout.u, gdb.base/i860-elf.u, gdb.base/m68k-aout2.u,
13318 gdb.base/mips-ecoff.u, gdb.base/sparc-elf.u: Remove.
13319 * gdb.base/README: Remove, was doc for this.
13320 * gdb.base/Makefile.in (CROSS_EXECUTABLES): Remove, no longer
13325 * gdb.base/call-ar-st.exp: Fix one regular expression in test
13328 * gdb.base/annota1.exp: New file. Annotation level 2 tests.
13329 * gdb.base/annota2.exp: New file. More annotation tests.
13330 * gdb.base/annota1.c: New file. Source file for annota1.exp.
13331 * gdb.base/annota2.cc: New file. Source file for annota2.exp.
13335 * config/cfdbug.exp: New file.
13339 * gdb.c++/demangle.exp (test_gnu_style_demangling): Add tests for
13340 Marcus Daniel's and Dale Hawkins's demangler crashes.
13342 * gdb.c++/demangle.exp (test_gnu_style_demangling,
13343 test_lucid_style_demangling, test_arm_style_demangling,
13344 test_hp_style_demangling): Try Tom Tromey's core-dumping
13345 identifier under each demangling style.
13349 * gdb.c++/demangle.exp: Include the current demangling style
13351 (current_demangling_style): New global variable.
13352 (set_demangling_style, test_demangling_core, test_demangling,
13353 test_demangling_exact): New functions.
13354 (test_gnu_style_demangling, test_lucid_style_demangling,
13355 test_arm_style_demangling, test_hp_style_demangling): Use those,
13356 instead of calling gdb_test and gdb_test_exact directly.
13357 (catch_demangling_errors): New function, which reports errors
13358 signalled by the demangling test functions in an orderly way.
13359 (do_tests): Use catch_demangling_errors.
13363 * gdb.base/signals.exp (test_handle_all_print): Use () for
13364 grouping in expressions, not {}.
13366 * gdb.base/smoke.exp: Test value of x, not y. The latter isn't
13371 * gdb.c++/derivation.exp: Pass ptype tests if synthesized methods
13376 * gdb.stabs/weird.exp: Test for CC being defined before
13377 looking at its value.
13381 * gdb.base/call-ar-st.exp: Remove stray '#'.
13382 * gdb.base/miscexprs.exp: Allow "short" and "long" as well as
13383 "short int" and "long int".
13384 * gdb.c++/overload.cc: Cast the string added in the previous
13385 change, to mollify finicky HP compiler.
13386 * gdb.hp/reg-test.exp (testfile): Fix file name.
13387 * gdb.stabs/weird.exp: Don't try to run if HP compiler in use.
13389 * gdb.c++/misc.cc (main): Initialize obj_with_enum.
13390 * gdb.c++/classes.exp: Fix test of obj_with_enum values, allow
13391 alternate form of enum ptype.
13395 * lib/gdb.exp (skip_hp_tests): Remove gcc_used argument.
13396 * gdb.hp/*.exp: Change all to run compiler probe only after
13397 passing skip_hp_tests, so as not to waste time on guaranteed
13400 * gdb.c++/overload.cc: Pass string instead of char addr, always
13402 * gdb.c++/templates.cc: Fix syntax error.
13406 * gdb.base/commands.exp: Add test for correct position of '>'
13407 when issuing the 'commands' command after a 'while' or 'if'
13412 * gdb.c++/ovldbreak.exp: Use gdb_continue_to_end
13414 * gdb.c++/method.exp: It was testing an uninitialized int on the
13415 stack and assuming it was positive.
13417 * gdb.base/watchpoint.exp: Use gdb_continue_to_end.
13419 * gdb.base/step-test.exp: Catch a case where finish is broken and
13420 keep it from killing the rest of the tests.
13421 Use gdb_continue_to_end.
13423 * gdb.base/sigall.exp: use gdb_continue_to_end.
13425 * gdb.base/ena-dis-br.exp: use gdb_continue_to_end.
13427 * gdb.base/display.exp: use runto_main, not run.
13429 * gdb.base/default.exp: Check for the current error message in the
13430 r abbreviation test.
13431 Add strongarm to the targets that know info float.
13433 * gdb.base/condbreak.exp: Use the gdb_run command rather than just
13434 run which doesn't work with monitors.
13436 * gdb.base/call-ar-st.exp: fixed bogus regexp in continuing to 1034 test.
13438 * gdb.base/break.exp: use the gdb_continue_to_end proc.
13440 * lib/gdb.exp: I had added gdb_continue_to_end used to run to the end of a
13441 program. Traps the case (in Cygmon) when the program never really
13442 exits. Same as Mark's continue_to_exit, but I had put it in a lot
13443 more places, so I used my name. Sorry Mark...
13445 * config/monitor.exp (gdb_target_monitor): added another
13446 target_info parameter: remotebinarydownload. This will set the
13447 remotebinarydownload flag if this is causing some boards trouble.
13451 * lib/gdb.exp (continue_to_exit): New function.
13453 * gdb.base/ena-dis-br.exp: Clean up for remote targets.
13454 * gdb.base/ending-run.exp: Ditto.
13455 * gdb.base/step-test.exp: Ditto.
13459 * gdb.base/miscexprs.c: Clean up file, clear cbig.c[0] explicitly
13464 * gdb.base/signals.exp: Filter out *-*-linux* before matching *-*-gnu*.
13468 * gdb.c++/ref-types.exp, ref-types2.exp: Allow alternate
13469 descriptions of types (short unsigned int vs unsigned short, etc).
13473 * gdb.base/call-strs.exp: Don't assume that `step' will step over
13474 a call to strlen; sometimes we do have sources.
13478 * gdb.base/call-ar-st.c (main): Terminate char_array with a null
13479 character, so GDB won't print garbage after its end.
13481 * gdb.base/call-ar-st.exp: Don't step into sum_array_print; set a
13482 breakpoint there instead. Sometimes GCC emits memcpy to handle
13483 the large structures being passed by value, so we step into that
13484 instead of sum_array_print, which obscures what we're really testing.
13485 * gdb.base/step-test.exp: However, we do want a test that notices
13486 the bizarre steps into memcpy, so do that here. Add check for
13487 stepping into function calls that pass large structures by value.
13488 ("Is that a noun clause, or are you just happy to see me?")
13489 Remove all references to specific line numbers.
13490 * gdb.base/step-test.c (struct rhomboidal, large_struct_by_value):
13491 New type and function.
13492 (main): Call large_struct_by_value, passing it a large struct by value.
13493 * lib/gdb.exp (gdb_get_line_number): New function.
13495 * gdb.base/step-test.exp: Rewrite `stepi' and `nexti' tests to be
13500 * lib/gdb.exp: Doc fixes.
13504 * gdb.base/a2-run.exp: Add expected fails for strongarm-coff.
13508 * gdb.base/display.exp: Don't exercise the "detach" and "kill"
13509 commands. They're not germane to this test, and they don't work
13510 that way on remote targets.
13514 * Changelog entries merged over from gdb development branch.
13518 * lib/gdb.exp (gdbtk_analyze_results): Generic function
13519 for outputting results of test run.
13523 * lib/gdb.exp (gdbtk_start): Fix path for itcl library.
13527 * lib/gdb.exp (debug_format): initialize
13531 * gdb.base/call-ar-st.c: Include string.h, not strings.h.
13532 * gdb.base/call-rt-st.c: Ditto.
13536 * gdb.threads/pthreads.exp (horiz): New variable.
13537 (test_startup): Fix regexps that capture thread numbers.
13541 * gdb.base/smoke.exp: Disambiguate two test case names (both
13546 * gdb.base/volatile.exp: Use gdb_test, add xfails for GCC
13551 * gdb.base/miscexprs.exp: Change patterns to match GDB's
13552 actual output formatting.
13553 * gdb.base/smoke.exp: GDB removes leading 0's.
13554 * gdb.base/volatile.exp: Don't check type of remuneration;
13555 that variable is no longer defined in constvars.c.
13556 * gdb.base/step-test.c (main): Exit with explicit exit code.
13557 * gdb.base/step-test.exp: Remove two nexti checks--they are
13562 * gdb.base/help.exp ("help delete display"): Fix test to match
13565 * gdb.base/long_long.c (known_types): Initialize values to zero.
13566 * gdb.base/long_long.exp: Step one more line
13567 so 'dec' is initialized in "get to known place". GDB removes
13568 leading zeros. Explicitly ask for hex formatting. Use
13569 unique test case names.
13573 * lib/gdb.exp (gdb_preprocess): Remove 'puts' statement.
13575 * gdb.c++/method.exp: Add missing close brace.
13579 * gdb.base/maint.exp: Use 'set height 0' to disable page
13580 prompting, not 'set height 400'.
13582 Fix a bunch of timeouts.
13583 * gdb.base/maint.exp ("maint print objfiles"): Break this up into
13584 four separate tests, so expect doesn't take forever to match a ton
13585 of text against a regexp with lots of .* forms.
13586 ("maint print psymbols", "maint print symbols"): Make some of
13587 these greps more selective, so that expect doesn't try to wade
13588 through huge piles of output and time out.
13590 * gdb.base/maint.exp ("maint print msymbols"): Fix pattern.
13592 * gdb.base/maint.exp ("maint info breakpoints"): Split into two
13593 tests: one which doesn't expect shlib events to be reported, and
13594 another which does, but is XFAIL for all platforms other than
13597 * gdb.base/break.exp: Teach the test suite that the `catch
13598 fork', `catch vfork', and `catch exec' commands produce error
13599 messages on platforms that don't provide these features.
13603 * gdb.hp/gen-so-thresh.c, so-thresh.sh, so-thresh.exp,
13604 so-thresh.linkopts, so-thresh.mk: Move to gdb.hp from gdb.base
13605 (shortening names from solib_threshold.exp etc), won't run on
13606 anything but HP-UX for the foreseeable future.
13607 * gdb.hp/Makefile.in, gdb.base/Makefile.in (clean): Adjust to
13612 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
13613 gdb.trace/Makefile.in (clean): Remove all test executables.
13617 * gdb.base/shlib-call.exp: add test cases to verify that gdb
13618 successfully re-sets breakpoints in shared libraries.
13619 * gdb.base/shmain.c (main): return 0, don't fall off the end.
13623 * gdb.hp/xdb3.exp: do not execute unless on hppa-hpux platform
13624 and compiled w/o GCC.
13626 * gdb.hp/watch-cmd.exp: ditto.
13628 * gdb.hp/watch-hp.exp: ditto.
13630 * gdb.hp/xdb1.exp: ditto.
13632 * gdb.hp/xdb2.exp: ditto.
13634 * gdb.hp/dbx.exp: ditto.
13638 * constvars.c: Remove C++-isms.
13639 * constvars.exp: Use gdb_test everywhere, add xfails if compiled
13644 The following changes are part of the HP merge.
13646 * gdb.base/break.exp: new tests to verify that catchpoints for
13647 fork, vfork, and exec don't trigger inappropriately.
13649 * gdb.base/opaque.exp: compile one file at a time, then link.
13651 * gdb.base/signals.exp: be more restrictive about which hppa
13652 systems receive a setup_xfail. new tests.
13654 * gdb.base/solib_threshold.build: new file.
13655 * gdb.base/solib_threshold.exp: new file.
13656 * gdb.base/solib_threshold.link_opts: new file.
13657 * gdb.base/solib_threshold.mk: new file.
13658 * gdb.base/gen_solib_threshold.c: new file.
13660 * gdb.c++/classes.exp: if on HPUX and not using gcc, skip the
13661 tests. New tests for enums inside classes.
13663 * gdb.c++/compiler.cc: indicate support of template debugging.
13665 * gdb.c++/demangle.exp: run hp style demangling tests.
13667 * gdb.c++/inherit.exp: if on HPUX and not using gcc, skip the
13670 * gdb.c++/misc.cc: changes to support new tests.
13672 * gdb.c++/templates.cc: changes to support HP's compiler; changes
13673 to support new tests.
13675 * gdb.c++/virtfunc.exp: if we are on HPUX and we are not using
13676 gcc, then skip these tests.
13680 The following files are part of the HP merge; some had longer
13681 names at HP, but have been renamed to be no more than 14
13682 characters in length.
13684 * gdb.hp/ambiguous.cc: new file.
13685 * gdb.hp/ambiguous.exp: new file.
13686 * gdb.hp/attach.exp: new file.
13687 * gdb.hp/attach2.exp: new file.
13688 * gdb.hp/classes-hp.exp: new file.
13689 * gdb.hp/ctti.exp: new file.
13690 * gdb.hp/ctti-add.cc: new file.
13691 * gdb.hp/ctti-add1.cc: new file.
13692 * gdb.hp/ctti-add2.cc: new file.
13693 * gdb.hp/ctti-add3.cc: new file.
13694 * gdb.hp/dbx.exp: new file.
13695 * gdb.hp/exception.cc: new file.
13696 * gdb.hp/exception.exp: new file.
13697 * gdb.hp/foll-exec.c: new file.
13698 * gdb.hp/foll-exec.exp: new file.
13699 * gdb.hp/foll-fork.c: new file.
13700 * gdb.hp/foll-fork.exp: new file.
13701 * gdb.hp/foll-vfork.c: new file.
13702 * gdb.hp/foll-vfork.exp: new file.
13703 * gdb.hp/inherit-hp.exp: new file.
13704 * gdb.hp/more-steps.exp: new file.
13705 * gdb.hp/namespace.cc: new file.
13706 * gdb.hp/namespace.exp: new file.
13707 * gdb.hp/optimize.exp: new file.
13708 * gdb.hp/pxdb.c: new file.
13709 * gdb.hp/pxdb.exp: new file.
13710 * gdb.hp/quicksort.exp: new file.
13711 * gdb.hp/reg-test.exp: new file.
13712 * gdb.hp/reg-test.s: new file.
13713 * gdb.hp/sized-enum.c: new file.
13714 * gdb.hp/sized-enum.exp: new file.
13715 * gdb.hp/start-stop.exp: new file.
13716 * gdb.hp/templ-hp.cc: new file.
13717 * gdb.hp/templ-hp.exp: new file.
13718 * gdb.hp/thr-lib.c: new file.
13719 * gdb.hp/thr-lib.exp: new file.
13720 * gdb.hp/thr-lib.h: new file.
13721 * gdb.hp/thr-liblib.c: new file.
13722 * gdb.hp/virtfun-hp.c: new file.
13723 * gdb.hp/virtfun-hp.exp: new file.
13724 * gdb.hp/watch-cmd.exp: new file.
13725 * gdb.hp/watch-hp.exp: new file.
13726 * gdb.hp/xdb1.exp: new file.
13727 * gdb.hp/xdb2.exp: new file.
13728 * gdb.hp/xdb3.exp: new file.
13732 The following files are part of the HP merge; some had longer
13733 names at HP, but have been renamed to be no more than 14
13734 characters in length.
13736 * gdb.base/ss.h: new file.
13737 * gdb.base/call-ar-st.c: new file.
13738 * gdb.base/call-ar-st.exp: new file.
13739 * gdb.base/call-rt-st.c: new file.
13740 * gdb.base/call-rt-st-exp: new file.
13741 * gdb.base/call-strs.exp: new file.
13742 * gdb.base/ena-dis-br.exp: new file.
13743 * gdb.base/environ.exp: new file.
13744 * gdb.base/long_long.exp: new file.
13745 * gdb.base/sect-cmd.exp: new file.
13746 * gdb.base/shlib-cl2.exp: new file.
13747 * gdb.base/smoke.exp: new file.
13748 * gdb.base/so-impl-ld.c: new file.
13749 * gdb.base/so-impl-ld.exp: new file.
13750 * gdb.base/so-indr-cl.c: new file.
13751 * gdb.base/so-indr-cl.exp: new file.
13752 * gdb.base/varargs.exp: new file.
13753 * gdb.base/volatile.exp: new file.
13754 * gdb.base/whatis-exp.exp: new file.
13755 * gdb.base/display.exp: new file.
13756 * gdb.c++/derivation.exp: new file.
13757 * gdb.c++/local.exp: new file.
13758 * gdb.c++/member-ptr.exp: new file.
13759 * gdb.c++/overload.exp: new file.
13760 * gdb.c++/ovldbreak.exp: new file.
13761 * gdb.c++/ref-types.exp: new file.
13762 * gdb.c++/ref-types2.exp: new file.
13763 * gdb.c++/userdef.exp: new file.
13767 * gdb.base/default.exp: Reflect wording change in remote.c.
13771 * gdb.base/help.exp: Update to reflect current text.
13775 * gdb.c++/anon-union.cc: make foo and bar global, otherwise
13776 they're stack variables and contain garbage.
13777 * gdb.c++/anon-union.exp: new file.
13779 The following changes were made by David Taylor
13784 * gdb.base/bitops.exp: new file.
13785 * gdb.base/default.exp: change expected messages for catch and
13786 info catch tests to reflect HP merge changes.
13787 * gdb.base/enable-disable-break.exp
13788 * gdb.base/ending-run.c: new file.
13789 * gdb.base/long_long.c: new file.
13790 * gdb.base/maint.exp: new file.
13791 * gdb.base/pointers2.exp: new file.
13792 * gdb.base/shlib-call2.exp: new file.
13793 * gdb.base/solib.exp: new file.
13794 * gdb.base/step-test.c: new file.
13795 * gdb.c++/anon-union.cc: new file.
13796 * gdb.c++/local.cc: new file.
13797 * gdb.c++/member-pointer.cc: new file.
13798 * gdb.c++/method.cc: new file.
13799 * gdb.c++/ref-types.cc: new file.
13800 * gdb.c++/ref-types2.cc: new file.
13801 * gdb.c++/userdef.cc: new file.
13803 * gdb.base/scope.exp: compile one file at a time, then link.
13804 * gdb.base/langs.exp: ditto.
13805 * gdb.base/list.exp: ditto.
13809 The following changes were made by David Taylor
13814 * gdb.c++/inherit.exp: if on hppa*-*-hpux* and not using gcc,
13815 skip tests. When compiling pass c++ flag to gdb_compile.
13818 * lib/gdb.exp (get_compiler_info): new, optional argument -- args;
13819 test for on hppa*-*-hpux*; use args to see if c++ was specified.
13820 (skip_hp_tests): new function.
13821 (gdb_preprocess): new function.
13823 * configure.in (hpdir): decide whether to configure gdb.hp.
13824 * configure: regenerated.
13826 * gdb.base/Makefile.in (MISCELLANEOUS): new macros -- extra things
13827 to delete on clean.
13828 (EXECUTABLES): update to reflect new additions.
13829 * gdb.base/commands.exp: update message expected.
13830 * gdb.base/default.exp: add copyright notice.
13831 * gdb.base/funcargs.exp (timeout): if hpux, increase timeout.
13832 * gdb.base/help.exp: update messages to reflect current text.
13833 * gdb.base/recurse.exp: add hpppa*-*-bsd* to 'list' of enabled
13834 targets for recurse tests.
13835 * gdb.base/watchpoint.exp: if on hpux and not gcc compiled, then
13838 * gdb.c++/Makefile.in (PROGS): update to reflect new executables.
13839 * gdb.c++/cplusfuncs.exp: tell gdb_compile that it's a c++
13841 * gdb.c++/misc.exp: ditto.
13842 * gdb.c++/templates.exp: if we're on hpux and it's not gcc, don't
13843 run the tests. tell gdb_compile that it's a c++ compilation.
13845 * gdb.threads/pthreads.exp: fix typo in message.
13847 * gdb.base/all-bin.exp: new file.
13848 * gdb.base/arithmet.exp: new file.
13849 * gdb.base/assign.exp: new file.
13850 * gdb.base/completion.exp: new file.
13851 * gdb.base/cond-expr.exp: new file.
13852 * gdb.base/condbreak.exp: new file.
13853 * gdb.base/define.exp: new file.
13854 * gdb.base/dollar.exp: new file.
13855 * gdb.base/environment.exp: new file.
13856 * gdb.base/eval-skip.exp: new file.
13857 * gdb.base/jump.exp: new file.
13858 * gdb.base/logical.exp: new file.
13859 * gdb.base/pointers.exp: new file.
13860 * gdb.base/relational.exp: new file.
13861 * gdb.base/section_command.exp: new file.
13862 * gdb.base/whatis-expr.exp: new file.
13864 * gdb.base/all-types.c: new file.
13865 * gdb.base/call-array-struct.c: new file.
13866 * gdb.base/call-return-struct.c: new file.
13867 * gdb.base/call-strings.c: new file.
13868 * gdb.base/callfuncs2.c: new file.
13869 * gdb.base/condbreak.c: new file.
13870 * gdb.base/constvars.c: new file.
13871 * gdb.base/display.c: new file.
13872 * gdb.base/int-type.c: new file.
13873 * gdb.base/jump.c: new file.
13874 * gdb.base/miscexprs.c: new file.
13875 * gdb.base/pointers.c: new file.
13876 * gdb.base/pointers2.c: new file.
13877 * gdb.base/shmain.c: new file.
13878 * gdb.base/shr1.c: new file.
13879 * gdb.base/shr2.c: new file.
13880 * gdb.base/solib.c: new file.
13881 * gdb.base/solib1.c: new file.
13882 * gdb.base/solib2.c: new file.
13883 * gdb.base/varargs.c: new file.
13884 * gdb.c++/derivation.cc: new file.
13885 * gdb.c++/overload.cc: new file.
13886 * gdb.c++/ovldbreak.cc: new file.
13887 * gdb.hp/attach.c: new file.
13888 * gdb.hp/attach2.c: new file.
13889 * gdb.hp/average.c: new file.
13890 * gdb.hp/compiler.c: new file.
13891 * gdb.hp/compiler.cc: new file.
13892 * gdb.hp/execd-program.c: new file.
13893 * gdb.hp/follow-exec.c: new file.
13894 * gdb.hp/follow-fork.c: new file.
13895 * gdb.hp/follow-vfork-and-exec.c: new file.
13896 * gdb.hp/misc-hp.cc: new file.
13897 * gdb.hp/more-steps.c: new file.
13898 * gdb.hp/optimize.c: new file.
13899 * gdb.hp/quicksort.c: new file.
13900 * gdb.hp/run-hp.c: new file.
13901 * gdb.hp/start-stop.c: new file.
13902 * gdb.hp/sum.c: new file.
13903 * gdb.hp/templates-hp.cc: new file.
13904 * gdb.hp/thread-local-in-lib.c: new file.
13905 * gdb.hp/thread-local-in-lib.h: new file.
13906 * gdb.hp/thread-local-in-lib.lib.c: new file.
13907 * gdb.hp/vforked-program.c: new file.
13908 * gdb.hp/virtfunc-hp.cc: new file.
13909 * gdb.hp/watchpoint-hp.c: new file.
13910 * gdb.hp/xdb.c: new file.
13911 * gdb.hp/xdb0.c: new file.
13912 * gdb.hp/xdb0.h: new file.
13913 * gdb.hp/xdb1.c: new file.
13917 The following change was made by Edith Epstein
13919 originally made by HP; HP did not create ChangeLog entries.
13921 * gdb.c++/demangle.exp: changed the expected output for some
13922 ARM-style mangling -- removed second reference to datatype.
13923 For example, maint demangle __dt__11T1__pt__2_cFv
13924 T1<char>::~T1<char>(void)
13926 maint demangle __dt__11T1__pt__2_cFv
13927 T1<char>::~T1(void)
13929 (test_hp_style_demangling): new hp specific demangling test cases.
13933 * gdb.trace/actions.exp: Ignore compiler warnings compiling actions.c
13934 * gdb.trace/backtrace.exp: Likewise.
13935 * gdb.trace/circ.exp: Likewise.
13936 * gdb.trace/collection.exp: Likewise.
13937 * gdb.trace/deltrace.exp: Likewise.
13938 * gdb.trace/infotrace.exp: Likewise.
13939 * gdb.trace/limits.exp: Likewise.
13940 * gdb.trace/packetlen.exp: Likewise.
13941 * gdb.trace/passc-dyn.exp: Likewise.
13942 * gdb.trace/passcount.exp: Likewise.
13943 * gdb.trace/report.exp: Likewise.
13944 * gdb.trace/save-trace.exp: Likewise.
13945 * gdb.trace/tfind.exp: Likewise.
13946 * gdb.trace/tracecmd.exp: Likewise.
13947 * gdb.trace/while-dyn.exp: Likewise.
13948 * gdb.trace/while-stepping.exp: Likewise.
13952 * gdb.base/restore.exp, gdb.base/restore.c: New tests.
13956 From Brendan Kehoe:
13957 * gdb.c++/cplusfuncs.cc, misc.cc, virtfunc.cc: Add now-required
13962 * config/slite.exp (gdb_load): use gdb_file_cmd, so we can do
13963 remote dos host testing right.
13967 * gdb.base/corefile.exp: remove some xfails.
13971 * gdb.base/reread.exp: Sleep 1 - ensures that the two executables
13972 have different timestamps.
13976 * lib/gdb.exp, gdb.base/default.exp, config/monitor.exp,
13977 gdb.base/default.exp: Replace "exec" with "executable".
13981 * gdb.base/default.exp: Change else if to elseif from previous
13986 * gdb.base/default.exp: Add brace missing from previous delta.
13990 * gdb.base/default.exp: Support test for info float for all
13991 varieties of arm toolchain.
13995 * gdb.trace/*.exp: remove "remote_download" command.
13999 * gdb.trace/*.exp: remove -gdwarf from compile.
14003 * gdb.trace/configure.in(AC_INIT): typo
14004 * gdb.trace/configure: regenerated
14008 * config/m68k-emc.exp: New file.
14009 * lib/<emc-support.exp trace-support.exp}: New files.
14010 * configure.in: add new test directory gdb.trace.
14011 * gdb.trace/{configure configure.in Makefile.in}: New files.
14012 * gdb.trace/{actions.c actions.exp gdb_c_test.c}: New files.
14013 * gdb.trace/{circ.c circ.exp limits.c limits.exp}: New files.
14014 * gdb.trace/{collection.c collection.exp tfind.exp }: New files.
14015 * gdb.trace/{backtrace.exp deltrace.exp infotrace.exp}: New files.
14016 * gdb.trace/{packetlen.exp passc-dyn.exp passcount.exp}: New files.
14017 * gdb.trace/{report.exp save-trace.exp tracecmd.exp}: New files.
14018 * gdb.trace/{while-dyn.exp while-stepping.exp}: New files.
14022 * gdb.c++/classes.exp: Change all regular expressions to match
14023 arbitrary combinations of newline/carriage-return, so that they
14024 will work equally well on Unix and Windows.
14025 * gdb.c++/inherit.exp: ditto.
14026 * gdb.c++/virtfunc.exp: ditto.
14030 * gdb.base/setshow.exp: Fix error introduced by call to runto_main.
14034 * gdb.disasm/am33.s: Add tests for autoincrement instructions.
14035 * gdb.disasm/am33.exp: Run time. Update tests which use r8-r15
14036 to use a0-a3/d0-d3 as needed.
14040 * gdb.disasm/am33.s: Add 4 operand mul and mulu tests.
14041 * gdb.disasm/am33.exp: Corresponding changes.
14045 * gdb.base/callfuncs.exp: add cmp10 test.
14046 * gdb.base/callfuncs.c (cmp10): new function.
14050 * gdb.base/commands.exp: Break up infrun_breakpoint_command_test
14051 into two parts to get around a synchronization problem in expect.
14055 * lib/gdb.exp (gdbtk_start): Add startup for gdbtk.
14057 * configure.in: Add options for gdbtk testsuite.
14059 * configure: Regenerate.
14061 * gdb.gdbtk: New directory to hold gdbtk tests.
14065 * gdb.fortran/types.exp: Escape brackets in expect patterns
14066 for test_float_literal_types_accepted tests.
14067 * gdb.base/scope.exp: Remove extraneous newline in filelocal_bss
14072 * am33.exp: Just compile, do not link the testcase.
14073 * am33.s: Add ".am33" pseudoop to force am33 mode.
14077 * gdb.base/setshow.exp: make sure $pc is sane.
14079 * gdb.stabs/weird.exp: split expect patterns properly.
14083 * gdb.disasm/am33.s: New disassembler testfile for the am33.
14084 * gdb.disasm/am33.exp: Run it.
14088 * gdb.base/funcargs.exp: simplify expect strings to ease pattern
14089 match processing (and eliminate spurious timeouts when running).
14093 * gdb.base/signals.exp (test_handle_all_print): put back Mach
14094 exception test, but conditionalize it on target [mach | gnu].
14098 * gdb.base/overlays.exp: fixup compile line for linker script.
14102 * gdb.fortran/types.exp: don't guess at float size.
14106 * gdb.base/exprs.exp: delete test that depends on int size.
14110 * config/sim.exp: Removed checks for target triplets.
14111 (gdb_target_sim): Use gdb,target_sim_options.
14115 * gdb.base/reread.exp: New file.
14116 * gdb.base/reread1.c: New file.
14117 * gdb.base/reread2.c: New file.
14121 * config/sim.exp: Use 'target sim -sparclite' when running
14122 SPARClite programs.
14126 * gdb.base/structs2.exp: New file.
14127 * gdb.base/structs2.c: New file.
14131 * gdb.asm/common.inc: New file.
14132 * gdb.asm/d10v.inc: New file.
14133 * asm-source.exp: Pass -I's to gas to find .inc files.
14134 Update line numbers in expected output.
14135 * asmsrc1.s: Rewrite.
14136 * asmsrc2.s: Rewrite.
14137 * configure.in: Create arch.inc symlink.
14138 * configure: Regenerate.
14139 * Makefile.in (distclean): Delete arch.inc.
14143 * callfuncs.c (t_enum_value1) : Cleanup return value warnings
14144 (t_enum_value2): ditto
14145 (t_enum_value3): ditto
14149 * gdb.base/break.exp: Remove xfail for `deleting all breakpoints
14150 when none' unexpected prompt case, fixed by breakpoint.c:delete_command
14152 Use gdb_test instead of send_gdb/gdb_expect sequences.
14156 * gdb.c++/virtfunc.cc: Declare extern "C" printf to return int,
14161 * gdb.base/branches.c: Code with lots of loops and
14162 subroutines. Used to test gdbs ability to single step through PC
14163 changes, especially to test mips-tdep.c:mips_next_pc
14167 * gdb.c++/virtfunc.cc: Make extern "C" printf declaration pass
14168 more rigorous EGCS C++ error checking.
14172 * gdb.base/help.exp: Clean up `help set args' and `help show args'
14174 * gdb.base/interrupt.exp: Add "i*86-*-solaris2*" xfail for calling
14175 function when asleep.
14176 * gdb.base/signals.exp: Add "i*86-*-solaris2*" xfails. Add comment
14177 for i*86 Linux and SVR4 signal handling problems.
14178 Remove linux xfail for `next to handler in signals_tests_1', fixed
14179 by recent infrun.c change.
14180 Limit backtrace to 10 frames to avoid timeout problems with infinite
14182 Adjust expect pattern in `handle all print' test to match Apr 28 1997
14183 target.[ch] change.
14187 * lib/gdb.exp(gdb_test): Send multiline commands one at a time; wait
14188 for a newline from gdb before continuing.
14189 (default_gdb_exit): Just look for y or n.
14190 (gdb_test): Detect abnormal exit from GDB running on DOS; if
14191 it does, fail the rests of the tests in the file.
14195 * config/cygmon.exp: New file.
14199 * gdb.base/list.exp: Fix problem with "list default lines around
14200 main" test on remote targets.
14202 * gdb.base/scope.exp: Fix problem with filelocal_bss before
14203 run test on remote targets.
14207 * gdb.asm: New directory.
14208 * configure.in: Configure it.
14209 * configure: Regenerate.
14210 * gdb.asm/{Makefile.in,configure.in,configure}: New files.
14211 * gdb.asm/{asm-source.exp,asmsrc1.s,asmsrc2.s}: New files.
14215 * config/mn10300-eval.exp: New file to support MN10300 eval board.
14219 * gdb.base/overlays (several files): Merge the two overlay
14220 managers into one. Change variables (foox, barx, bazx, grbxx)
14221 back into ints but force them to load in their proper sections.
14225 * gdb.base/d10vovly.c (D10VTranslate): Map IMAP0 to low 128k of
14226 on-chip insn memory and IMAP1 to upper 128k.
14227 (D10VCopy): Handle memory regions crossing 16k boundaries.
14228 (D10VCopy): Transfer data in 32 bit chunks.
14232 * gdb.base/overlays.c (main): Exit normally when result is
14235 * gdb.base/d10v.ld: Update LMAs to reflect current d10v address
14236 map. Include space for printf in .text segment.
14238 * gdb.base/d10vovly.c (D10VTranslate): New function, handle
14239 updated d10v memory VMA/LMA map.
14240 (D10VCopy): Call D10VTranslate.
14244 * gdb.base/m32rovly.c: Force variable _novlys into .data section.
14246 * gdb.base/bar.c (barx, bar): Change variable to small array so
14247 that it won't be put into the .sdata - small data -
14248 section. Update reference.
14249 * gdb.base/baz.c (bazx, baz): Ditto.
14250 * gdb.base/foo.c (foox, foo): Ditto.
14251 * gdb.base/grbx.c (grbxx, grbx): Ditto.
14253 * gdb.base/overlays.exp: Expect variables barx, bazx, foox, grbxx
14258 * gdb.base/overlays.exp: fix up and get working again.
14259 Add tests for backtraces from an overlay function.
14263 * gdb.base/watchpoint.exp: Set "d10v*-*-*" clear_xfail for
14264 "calling function with watchpoint enabled".
14268 * gdb.base/break.exp (test_next_with_recursion): Remove
14269 gdb_suppress_tests for d10v-*-*.
14270 * lib/gdb.exp (gdb_suppress_tests): Disable this function
14271 pending review of whether it is useful or not.
14275 * gdb.base/funcargs.exp: Increase timeout for slow TX39 boards.
14279 * gdb.base/break.exp: Increase timeout for slow TX39 boards.
14280 * config/dve.exp: New file to support Densan boards.
14284 * gdb.base/interrupt.exp: Document problem of simulators, signals,
14289 * config/monitor.exp: Be a bit less picky about the "Remote debugging"
14292 * gdb.c++/misc.exp: Call runto_main instead of doint it manually.
14296 * gdb.base/mips_pro.exp: Add "mips64*-*-elf" xfail for backtrace
14299 * gdb.base/funcargs.exp: Query GDB for target_sizeof_int,
14300 target_sizeof_long and target_bigendian_p.
14301 (structs_by_value, structs_by_reference): Check values according
14302 to targets word size and endianess.
14306 * gdb.base/langs.exp: For "continue to exit" ignore any trailing
14311 * gdb.base/default.exp, gdb.base/help.exp, gdb.base/setshow.exp:
14312 Update test of set args help to match source change.
14316 * gdb.base/default.exp: Expect help system output to be in
14317 alphabetical order.
14318 * gdb.base/help.exp: Ditto.
14322 * gdb.base/signals.exp: Change "i*86-pc-linux-gnu" to
14323 "i*86-pc-linux-gnu*".
14324 * gdb.base/interrupt.exp: Ditto.
14325 * gdb.base/corefile.exp: Ditto.
14327 * lib/gdb.exp(gdb_compile): If is_vxworks target feature is set,
14328 define vxworks when building the testcase.
14330 * gdb.base/ptype.exp: Fix testnames to be unique.
14331 * gdb.base/radix.exp: Ditto.
14332 * gdb.base/term.exp: Ditto.
14333 * gdb.base/whatis.exp: Ditto.
14334 * gdb.c++/classes.exp: Ditto.
14338 * gdb.base/callfuncs.exp: Fix indentation.
14340 * lib/gdb.exp(gdb_expect): Set remote_suppress_flag if
14341 suppress_flag has been set.
14342 (gdb_step_for_stub): Check for gdb,use_breakpoint_for_stub
14347 * gdb.stabs/weird.exp: Don't start gdb 'til after we've compiled
14350 * gdb.c++/cplusfuncs.cc(main): Add extern "C" declaration for
14351 set_debug_traps() and breakpoint().
14352 * gdb.c++/misc.cc (main): Ditto.
14353 * gdb.c++/templates.cc (main): Ditto.
14354 * gdb.c++/virtfunc.cc (main): Ditto.
14358 * lib/gdb.exp(gdb_step_for_stub): New function.
14359 (gdb_run_cmd): Look for gdb,do_reload_on_run target feature--if it
14360 exists, reload the executable and do a "continue" instead of
14362 (runto_main): Use gdb_step_for_stub.
14364 * gdb.base/break.exp: Use gdb_step_for_stub. Also, rename certain
14365 tests to have unique names.
14366 * gdb.base/callfuncs.exp: Ditto.
14367 * gdb.base/commands.exp: Ditto.
14368 * gdb.base/default.exp: Ditto.
14369 * gdb.base/help.exp: Ditto.
14370 * gdb.base/list.exp: Ditto.
14371 * gdb.base/opaque.exp: Ditto.
14372 * gdb.base/printcmds.exp: Ditto. Use a loop to emit multiple
14375 * gdb.base/setshow.c: Add set_debug_traps/breakpoint calls.
14376 * gdb.c++/cplusfuncs.cc: Ditto.
14377 * gdb.c++/virtfunc.cc: Ditto.
14379 * config/monitor.exp: Keep track of the last file we saw, rather
14380 than trying to get the info from gdb.
14382 * gdb.fortran/types.exp: Move comment to previous line.
14386 * config/sparclet.exp: Detect gratuitous change to sparclet gdb
14392 * config/monitor.exp (gdb_target_monitor): Look for "Connected to"
14393 string from GDB when it connects.
14395 * lib/gdb.exp: Look for $TOOL_EXECUTABLE.
14399 * lib/gdb.exp(get_debug_format): Don't cause the testsuite to fail
14400 if we can't get a debug format from GDB (we may be testing an
14401 older GDB). Use a 10 second timeout when checking for the format.
14403 * gdb.stabs/weird.exp: Fix quoting.
14405 * config/sparclet.exp: Renamed sparclet-loader.c to stub-loader.c.
14409 * config/arm-ice.exp: New file.
14413 * gdb.base/overlays.exp: Preliminary fixes; temporarily disabled
14414 until it has been modified to work with the new testsuite.
14416 * gdb.*/*.exp: Instead of causing 1 unresolved test when the
14417 testcase won't compile, cause all of the testcases in the file to
14420 * lib/gdb.exp(gdb_suppress_entire_file): New procedure.
14421 (gdb_clear_suppressed): New procedure.
14422 (gdb_stop_suppressing_tests): Only clear suppress_flag if
14423 it contains a positive value.
14427 * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature.
14429 * gdb.c++/virtfunc.exp: Remove setting of libs variable.
14433 * lib/gdb.exp (setup_xfail_format): New function.
14434 (get_debug_format): New function to get debug format.
14435 (debug_format): New global variable to hold last value set
14436 by get_debug_format.
14437 * gdb.base/list.exp: Call get_debug_format and expect some
14438 tests to fail for DWARF 1 and COFF formats.
14439 * gdb.c++/ptype.exp: Ditto.
14440 * gdb.c++/classes.exp: Ditto.
14441 * gdb.c++/cplusfuncs.exp: Ditto.
14442 * gdb.c++/inherit.exp: Ditto.
14443 * gdb.c++/templates.exp: Ditto.
14444 * gdb.c++/virtfunc.exp: Ditto.
14448 * lib/gdb.exp(default_gdb_exit): Don't give an error if the remote
14449 host doesn't have a currently-open connection.
14451 * config/sparclet.exp: Cleanups and fixes to make it generic for
14452 any gdb stub target. Handle cases where gdb doesn't respond when
14453 interrupted in a sane fashion.
14455 * config/m32r-stub.exp: Load sparclet.exp instead of trying to do the
14456 same thing in a totally different way.
14458 * config/monitor.exp: Pass in timeouts to gdb_expect instead of
14460 (gdb_start): We set the global gdb_prompt variable in
14461 default_gdb_init now.
14465 * gdb.base/printcmds.exp: Fix "check for floating addition"
14466 regexp to accept results within approx +/- .01 of exact value.
14467 * lib/gdb.exp (gdb_test): Remove unused expect_out global decl.
14471 * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_init
14473 (gdb_expect): Add optional timeout parameter, and add timeout
14474 value to various calls.
14475 (gdb_suppress_tests): Only give one warning message per group.
14479 * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCode as
14480 global variables. Handle getting a value for $timeout more
14485 * lib/gdb.exp: Close connection to remote host if gdb doesn't
14487 (default_gdb_init): New procedure; allow gdb_init to be overridden
14488 by a target configuration file.
14489 (gdb_expect): Pass the timeout to remote_expect.
14491 * config/monitor.exp(gdb_load): Fix typo in regexp.
14495 * gdb.base/funcargs.exp: Remove spurious suppress tests call.
14499 * config/monitor.exp(gdb_target_monitor): Call gdb_file_cmd
14500 here. Call gdb_target_exec before rebooting the target, to make
14501 sure the connection to the target is closed.
14502 (gdb_load): Pass the name of the executable to gdb_target_monitor.
14503 Don't call gdb_file_cmd here; let gdb_target_monitor do it.
14504 Also detect "Timeout reading from remote" error.
14506 * config/gdbserver.exp: Pass the executable being loaded to
14507 gdb_target_monitor. Don't call gdb_file_cmd here; let
14508 gdb_target_monitor do it.
14510 * gdb.disasm/hppa.exp: Don't use exec_output.
14514 * gdb.base/list.exp: If we're debugging a non-native target,
14515 try to set the pc register to point to the start of the
14516 program before doing the first list command.
14518 * gdb.c++/virtfunc.exp(gdb_virtfunc_restart): Make sure we run
14519 test_calls after restarting.
14521 * lib/gdb.exp(gdb_run_cmd): Send jump command again after
14524 * gdb.base/watchpoint.exp: Fix typo.
14526 * gdb.base/setshow.exp: Check for use_gdb_stub.
14528 * gdb.base/break.exp: Fix continue until exit test for the gdb
14530 * gdb.base/langs.exp: Ditto.
14532 * config/monitor.exp(gdb_load): Handle gdb_sect_offset and
14533 gdb_load_offset. If we weren't given a file to load, figure out
14534 what the current file is and use it.
14536 * config/i386-bozo.exp: New file.
14540 * lib/gdb.exp(gdb_expect): Look for gdb,timeout target
14543 * config/proelf.exp: New entry.
14547 * lib/gdb.exp: Remove spurious .* patterns at the beginning
14550 * gdb.base/watchpoint.exp: Don't run the test_stepping
14551 tests if gdb can't call functions on the target.
14553 * gdb.base/setshow.exp: Don't run the set prompt tests if
14554 the board has gdb_prompt set.
14558 * gdb.base/a2-run.exp: Change "gdb,noargs" to just "noargs".
14559 * gdb.base/commands.exp: Likewise.
14560 * gdb.base/setshow.exp: Likewise.
14564 * config/monitor.exp(gdb_start): Look for gdb_prompt target
14567 * config/i960.exp: New file.
14571 * gdb.base/funcargs.exp: Check for gdb,short_int target
14572 feature instead of looking for explicit target triplets.
14576 * gdb.base/printcmds.exp: add a couple more tests a la
14577 "p 123DEADBEEF", to check parse_number.
14578 * top.c: change "to enable to enable" to "to enable" in a couple
14583 * gdb.base/callfuncs.exp: Mark some tests as expected to fail
14588 * gdb.base/a2-run.exp: Add arm-*-coff setup_xfails for cases
14589 where the test executable is run with explicit args.
14590 * gdb.base/default.exp: Handle arm-*-coff case for "info float".
14594 * gdb.base/run.c: Use FAKEARGV to build test executable that
14595 does not require a command line arg, since most simulators
14596 don't currently support passing such an arg into the simulated
14598 * gdb.base/commands.exp: Change tests to insert the proper
14599 value as the arg to the first recursive factorial call. Change
14600 compilation line to define FAKEARGV at compile time.
14604 * gdb.base/recurse.exp: Enable these tests for the mn10300.
14605 * gdb.base/watchpoint.exp: Don't expect a failure for an "calling
14606 function with watchpoint enabled" test.
14610 * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall):
14611 Don't call gdb_test when the command doesn't return to a gdb prompt.
14613 * lib/gdb.exp(gdb_stop_suppressing_tests): Don't print gratuitous
14614 "Tests restarted" messages.
14618 * gdb.disasm/mn10300.exp: Fix buglets in "other" tests.
14622 * gdb.base/help.exp: update help msg for INFO ADDR; add help test
14623 for INFO SYMBOL; add help tests for OVERLAY commands.
14624 * gdb.base/default.exp: add tests for INFO SYMBOL command;
14625 add tests for OVERLAY commands
14626 * gdb.base/overlays.c overlays.exp foo.c bar.c baz.c grbx.c ovlymgr.h
14627 d10v.ld m32r.ld d10vovly.c m32rovly.c: add test case for overlays.
14628 * gdb.base/sigall.c: add usestubs code frag
14629 * gdb.base/watchpoint.exp: turn on complex watchpoint test for M32R.
14633 * lib/gdb.exp(gdb_suppress_tests): Add explanation for subsequent
14635 (gdb_stop_suppressing_tests): Note that tests have restarted.
14639 * config/h8300.exp: New file.
14643 * gdb.base/setshow.exp: Check for the existence of a
14644 feature, not its value.
14648 * gdb.c++/virtfunc.exp: Restart gdb in a sane fashion.
14650 * gdb.base/scope.exp: It's now init0(), not init().
14652 * gdb.base/scope0.c: For now, change init() to be init0().
14654 * config/monitor.exp: Use gdb_serial in preference to serial
14657 * lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host
14658 and it's not already set.
14662 * gdb.base/setshow.exp: Only test the run command if the target
14663 isn't using a stub and if it supports argument passing.
14667 * config/udi.exp(gdb_start): Make sure UDICONF is set
14668 properly before starting gdb.
14672 * gdb.disasm/mn10300.s: New test file for mn10300 disassembler.
14673 * gdb.disasm/mn10300.exp: Run mn10300 disassembler tests.
14674 * gdb.disasm/Makefile.in: Remove "mn10300" when cleaning.
14678 * config/vx.exp: Use remote_ld, not vxworks_ld. Don't use
14679 specialized code to reboot the board, use remote_reboot instead.
14681 * config/vxworks29k.exp: Use vx.exp, not vx-gdb.exp.
14683 * lib/gdb.exp: Add GDB_TESTCASE_OPTIONS.
14685 * config/monitor.exp: Make sure we disconnect from the target.
14686 Also, try a reboot/reload cycle instead of failing if the
14691 * gdb.base/default.exp: Don't set match_max.
14692 * gdb.base/help.exp: Ditto.
14693 * gdb.base/list.exp: Ditto.
14694 * gdb.base/signals.exp: Ditto.
14696 * config/monitor.exp(gdb_load): If gdb,use_standard_load is
14697 set, use remote_ld to download the testcase instead of
14702 * config/vr5000.exp: New file.
14704 * config/monitor.exp(gdb_target_monitor): Add pattern for
14705 "Ending remote" to detect errors in connecting.
14707 * gdb.base/setshow.exp: Add .* within auto language test.
14709 * lib/gdb.exp(gdb_run_cmd): Add check for gdb_init_command
14712 * config/monitor.exp(gdb_load): Check for a failure when loading,
14713 and reboot the board if necessary.
14715 * gdb.base/setvar.exp(test_set): Handle multiple prints within
14716 a set of tests. Remove print.* from the patterns being checked.
14720 * gdb.base/a1-selftest.exp: Use send_gdb consistently. Don't
14721 refer to gdb_spawn_id.
14723 * config/m32r-stub.exp: Remove references to gdb_spawn_id, no
14725 * config/sparclet.exp: Ditto.
14726 * config/sparclet-old.exp: Ditto.
14727 * config/slite.exp: Ditto.
14728 * config/sim.exp: Ditto.
14729 * gdb.base/funcargs.exp: Ditto.
14731 * lib/gdb.exp:Remove references to gdb_spawn_id.
14732 (gdb_expect): Move to remote.exp.
14736 * config/monitor.exp: Detect the "Couldn't establish connection"
14741 * gdb.base/bitfields.exp: Use runto instead of explicit
14742 gdb_run_cmd/gdb_expect sequences.
14744 * gdb.base/break.exp(text_next_with_recursion): Add match for
14747 * config/monitor.exp(gdb_target_monitor): Calling exit loses big.
14748 We also need to handle the "A program is being debugged already"
14749 prompt from gdb. Use gdb_test to set the baud rate.
14751 * lib/gdb.exp(gdb_init): Increase the default expect buffer size
14752 to 20000. Really. I mean it.
14756 * lib/gdb.exp(gdb_test): Generate a FAIL message when send_gdb
14757 fails. If suppress_flag is set, skip perror message about not
14758 being able to send to GDB.
14759 (send_gdb): If suppress_flag is set, don't try to send commands to
14761 (gdb_expect): If suppress_flag is set, always fail immediately.
14762 (gdb_suppress_tests, gdb_stop_suppressing_tests): New functions.
14763 (gdb_init): Call gdb_stop_suppressing_tests.
14764 (default_gdb_exit): Ditto.
14765 (default_gdb_start): Ditto.
14767 * gdb.base/bitfields.exp: Call gdb_suppress_tests and
14768 gdb_stop_suppressing_tests as appropriate.
14769 * gdb.base/break.exp: Ditto.
14770 * gdb.base/callfuncs.exp: Ditto.
14771 * gdb.base/commands.exp: Ditto.
14772 * gdb.base/exprs.exp: Ditto.
14773 * gdb.base/funcargs.exp: Ditto.
14774 * gdb.base/list.exp: Ditto.
14775 * gdb.base/recurse.exp: Ditto.
14776 * gdb.base/scope.exp: Ditto.
14777 * gdb.base/structs.exp: Ditto.
14778 * gdb.c++/inherit.exp: Ditto.
14782 * config/vr4300.exp: New file.
14784 * gdb.*/*.exp: Call gdb_expect instead of expect.
14786 * lib/gdb.exp(gdb_expect): New function.
14790 * lib/gdb.exp(gdb_init): New function.
14792 * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
14793 for each individual variable set.
14795 * gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
14798 * gdb.base/help.exp: Fix the syntax of a few gdb_test calls.
14800 * gdb.base/scope.exp: Use gdb_test.
14802 * gdb.base/ptype.exp: Don't call "gdb_exit; gdb_start" if we're
14803 aborting; the testsuite driver will do that for us (see
14804 gdb_finish). Also, use gdb_test in a few more places.
14808 * gdb.base/help.exp: Fix syntax of "help info all-registers" test.
14812 * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
14813 and "add_tests" are not at the same address.
14817 * gdb.base/ptype.exp: Use gdb_test.
14821 * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
14822 * gdb.disasm/mn10200.exp (misc_tests): Remove bogus line accidentally
14823 left in. No longer expect them to fail.
14825 * gdb.stabs/*.mt; Deleted, no longer used.
14826 * gdb.stabs/configure.in: Remove references to target makefile
14828 * gdb.stabs/configure: Rebuilt.
14830 * gdb.disasm/*.mt: Deleted, no longer used.
14831 * gdb.disasm/configure.in: Remove references to target makefile
14832 frags. Use "sh3.s" as the unique filename for this directory.
14833 * gdb.disasm/configure: Rebuilt.
14835 * gdb.disasm/mn10200.s: New test file for mn10200 disassembler.
14836 * gdb.disasm/mn10200.exp: Run mn10200 disassembler tests.
14837 * gdb.disasm/Makefile.in: Remove "mn10200" when cleaning.
14841 * config/udi.exp: Use mondfe,name instead of remote_host.
14845 * gdb.base/watchpoint.exp: Don't expect a failure when calling
14846 a function with a watchpoint enabled on the mn10200.
14848 * gdb.stabs/weird.exp: Don't quit if "weird.s" doesn't exist
14849 before trying to create it!
14853 * config/vx.exp: Use hostname instead of netport.
14855 * config/vxworks.exp: New file.
14857 * gdb.base/a2-run.exp: Change vxworks cases to use gdb_spawn_id.
14859 * config/monitor.exp(gdb_target_monitor): Look for a prompt from
14860 gdb before assuming everything worked. Send a ^C if a timeout
14863 * lib/gdb.exp(gdb_test): Check the result of send_gdb. Use
14864 $gdb_spawn_id directly.
14865 (gdb_run_cmd): Try _start as well as start. Use the target feature
14866 gdb,start_symbol as the symbol to start from when jumping.
14870 * gdb.base/exprs.exp: Delete bogus/incorrect (and probably
14873 * gdb.base/recurse.exp: Relax final value test for 'b' so that
14874 it doesn't lose for 16bit integer systems.
14878 * gdb.fortran/types.exp: If the target doesn't support "double"
14879 data types, then expect "real" types to only be 4 bytes.
14881 * gdb.c++/virtfunc.exp: Expect failure for virtual function
14882 call tests if the target doesn't support inferior function calls.
14884 * gdb.base/printcmds.exp: Allow minor deviation in FP values
14889 * gdb.base/help.exp: Disable "help set", "help show", and
14890 "help support". Simplify regexp for "help stack".
14892 * gdb.base/default.exp: Set match_max to 5000 and the timeout
14893 to 60 seconds. Temporarily set match_max to 15000 around the
14894 "info copying" test.
14896 * gdb.base/nodebug.exp: Don't try to do an inferior function
14897 call if the target doesn't support them.
14898 * gdb.base/printcmds.exp: Likewise.
14899 * gdb.base/setvar.exp: Likewise.
14900 * gdb.base/structs.exp: Likewise.
14901 * gdb.c++/templates.exp: Likewise.
14902 * gdb.base/ptype.exp: Likewise. Remove UDI specific stuff.
14904 * gdb.base/recurse.exp: Enable for the mn10200.
14906 * configure.in: Do configure gdb.stabs directory for *-*-elf
14908 * configure: Rebuilt.
14910 * gdb.base/break.exp: Check for gdb,noresults before testing
14911 exit status and/or results from the target.
14912 * gdb.base/watchpoint.exp, gdb.base/langs.exp: Likewise.
14913 * lib/gdb.exp: Remove old (now bogus) initialization of
14914 noinferior, noargs, noresults and nosignals.
14918 * config/sh.exp: New file.
14920 * config/slite.exp: Try to connect multiple times to the board
14921 before rebooting. Only send a "monitor run" if need_monitor_run
14924 * gdb.base/break.exp: Don't do the "stub continue" test if
14925 the target has gdb_stub set.
14927 * gdb.base/callfuncs.exp: Increase the timeout.
14929 * gdb.base/interrupt.exp: Don't even try to compile the testcase
14930 if the target has gdb,noinferiorio set.
14932 * gdb.base/list.exp: Increase match_max to 10000 characters.
14934 * gdb.base/sigall.exp: Check for gdb,nosignals on the target.
14936 * gdb.base/watchpoint.exp: Check for gdb,noinferiorio on the
14939 * lib/gdb.exp(gdb_run_cmd): Fix for targets that use stubs.
14943 * gdb.base/a1-selftest.exp: Make sure we call gdb_exit before
14944 trying to delete the copy of gdb. Catch the file delete so we
14945 don't die if the delete fails; also, the file should be copied to
14946 the host, not to the build.
14950 * lib/gdb.exp(gdb_test): Surround the result pattern with
14951 parenthesis in case it contains multiple regexps separated
14954 * gdb.base/watchpoint.exp: Use gdb_test.
14955 * gdb.base/default.exp: Ditto.
14959 * gdb.*/*.exp: Replace $prompt with $gdb_prompt.
14961 * gdb.base/scope.exp: Use gdb_test.
14962 * gdb.c++/classes.exp: Ditto.
14963 * gdb.c++/inherit.exp: Ditto.
14967 * gdb.base/crossload.exp: Don't use execute_anywhere, use
14968 remote_exec instead.
14969 * gdb.base/corefile.exp: Don't be ridiculous.
14970 * gdb.base/*.c: Add missing stub invocations.
14974 * config/slite.exp: Miscellaneous fixes.
14976 * lib/gdb.exp: Fix runto.
14978 * gdb.base/signals.exp: Check for a gdb,nosignals feature of
14981 * gdb.base/watchpoint.exp: Fix regexp.
14983 * lib/gdb.exp(default_gdb_exit): Add a catch to the
14984 close and wait commands, as the descriptor may now be
14985 invalid. Always call "remote_close host".
14989 Major rewrite for testsuite revision.
14991 * lib/gdb.exp: Remove references to global CC, CXX, B_OPTIONS,
14992 TARGET_INCLUDES, LDFLAGS and target_alias. Use gdb_spawn_id
14993 instead of relying on spawn_id to always contain a valid
14995 (get_compiler_info): New procedure to build the ${binfile}.ci
14996 file, instead of replicating this in N different places.
14997 (gdb_compile): New procedure.
14999 gdb.*/*.exp: Use gdb_compile and get_compiler_info (with
15000 appropriate arguments) instead of compile. Use gdb_test in a lot
15001 more places. Use send_gdb instead of send. Always run gdb_start
15002 at the start of a testcase, as this is no longer done magically.
15004 config/*-gdb.exp: Rename without the -gdb suffix.
15006 config/mips.exp: Use remote_close instead of exit_remote_shell.
15007 config/monitor.exp: Use target_info instead of looking at
15008 baud, timeout, etc.
15009 config/sim.exp: Use gdb_spawn_id instead of relying on spawn_id.
15013 * gdb.c++/templates.exp (test_ptype_of_templates),
15014 gdb.c++/inherit.exp (test_ptype_si, test_print_anon_union):
15015 Update expect patterns for destructors and assignment operators
15016 to match corresponding c-typeprint.c changes.
15017 * gdb.c++/templates.exp (test_template_breakpoints): Revert change
15018 to destructor breakpoint test, GDB should be able to set the
15019 destructor breakpoint without specifying arguments.
15023 * gdb.threads/pthreads.exp: Change result for failure to compile due
15024 to lack of pthreads runtime support from an error to simply an
15025 unsupported test, per dejagnu standards.
15029 * lib/gdb.exp (gdb_test): Simplify expect pattern for the case
15030 where GDB exits to reduce pattern match time.
15031 (skip_chill_tests): Skip chill tests for mips*-sgi-irix6*.
15033 * gdb.base/nodebug.exp: Add mips*-sgi-irix6* xfails.
15037 * gdb.base/callfuncs.exp: Turn on function call tests for h8300.
15038 * gdb.base/default.exp: ditto.
15039 * gdb.base/nodebug.exp: ditto.
15040 * gdb.base/printcmds.exp: ditto.
15041 * gdb.base/ptype.exp: ditto.
15042 * gdb.base/setvar.exp: ditto.
15043 * gdb.base/structs.exp: ditto.
15044 * gdb.base/setshow.c: Guard against uninitialized values of argc.
15048 * configure, */configure: Rebuild with autoconf 2.12.
15052 * gdb.base/a1-selftest.exp: Change x86 linux setup_xfails to
15053 use new i*86-pc-linux*-gnu quads.
15054 * gdb.base/corefile.exp: Ditto.
15055 * gdb.base/signals.exp: Ditto.
15056 * gdb.base/sigall.exp: Ditto.
15057 * gdb.base/interrupt.exp: Ditto.
15059 * gdb.base/signals.exp (signal_tests_1): Remove setup_xfail
15060 "i*86-*-linux" for "signal SIGUSR1". Now works, at least with
15063 * gdb.threads/pthreads.c (_MIT_POSIX_THREADS): Define if target is
15064 linux. This allows the test case to at least compile on latest
15065 linux, but still not run due to missing the threads runtime library.
15069 * gdb.base/a1-selftest.exp (do_steps_and_nexts): Reinitialize source
15070 directory to search gdb directory. Accept and step over conditional
15071 stack alignment code. Consume $prompt in failure cases.
15072 Reset timeout to $oldtimeout instead of some arbitrary value.
15073 * gdb.base/nodebug.exp: Limit backtrace to 10 frames to avoid
15074 timeout problems with infinite stack backtraces.
15075 * gdb.base/ptype.exp (ptype struct link, union tu_link):
15076 Accept function parameters for linkfunc member.
15080 * lib/gdb.exp (CFLAGS): Remove, unreferenced.
15081 (CXXFLAGS): Remove, unreferenced.
15082 (B_OPTIONS): Add for -B options and add code to initialize with
15083 previous -B options and also add -B option to pick up cross compiled
15085 (TARGET_INCLUDES): Add for -I options and add code to initialize when
15086 doing cross compiles.
15087 (target_alias): Declare global.
15088 (xgcc): Set variable to full path of gcc in build tree. Use findfile
15089 to verify that gcc exists in build tree, and if so set CC to that
15090 gcc and to use B_OPTIONS and TARGET_INCLUDES.
15094 * gdb.c++/inherit.exp (test_print_anon_union): Reenable
15095 ptype test for anonymous union. Fixup testcase to match
15096 current gcc debug output.
15100 * gdb.base/funcargs.c: Use cast rather than "UL" suffix to
15101 force argument to an unsigned long type.
15105 * gdb.c++/inherit.exp (test_ptype_si): Fix tagless struct ptype
15106 tests and anonymous union print/ptype tests.
15107 * gdb.base/list.exp (test_forward-search): Increase timeout by
15108 5 minutes for the "search extremely long line" case.
15109 * lib/gdb.exp (gdb_test): Document that the third arg to gdb_test is
15110 completely optional and that the pass/fail messages use the command as
15111 the message if that third arg is a null string.
15112 (gdb_test_exact): Arrange that a null string pattern means match a
15113 null string output rather than any output, which might include random
15115 * gdb.base/mips_pro.exp: Add "mips*-sgi-irix4*" xfail for
15117 * gdb.c++/demangle.exp: Add a "*-*-*" xfail for test that was
15118 always failing and failure is now exposed by gdb.exp changes.
15122 * gdb.c++/inherit.exp (test_ptype_vi): Log some passes that
15123 weren't being noted.
15127 * gdb.base/corefile.exp: Consume $prompt in mmap fail cases.
15128 * gdb.stabs/weird.exp: Remove v_comb xfails.
15132 * gdb.base/[bitfields.exp crossload.exp funcargs.exp interrupt.exp
15133 list.exp scope.exp watchpoint.exp]
15134 Make all timeout error msgs explicitly say "(timeout)".
15138 * config/monitor.exp: Increase download timeout to 1000 seconds.
15142 * config/m32r.exp: Increase timeout to 120 seconds.
15146 * gdb.c++/classes.exp: Modify to handle current gcc C++ member ordering
15147 and accept older ordering as obsolescent gcc or gdb.
15148 * gdb.c++/templates.exp: Ditto.
15149 * gdb.c++/virtfunc.exp: Ditto.
15153 * gdb.base/coremaker.c: Add code to mmap some data so we
15154 can check that it ends up in the core file.
15155 * gdb.base/corefile.exp: Add test to read mmapped data
15160 * config/m32r.exp: New file.
15164 * testsuite/gdb.base/nodebug.exp: Whack out -g options by hand so
15165 that cflags can contains -gstabs, and work correctly for other tests.
15169 * gdb.base/setshow.exp: New file, tests show and set.
15170 * gdb.base/setshow.c: New file, tests show and set.
15171 * gdb.base/help.exp: Add test for help set|show annotate.
15172 * gdb.base/default.exp: Add test for set|show annotate.
15176 * testsuite/gdb.base/break.exp: Make backtrace from factorial
15178 * testsuite/gdb.base/nodebug.exp: Whack out all -g options
15183 * config/sim-gdb.exp (gdb_target_sim): Remove setting of height
15184 and width commands. This is done elsewhere.
15185 * (gdb_start): Don't call gdb_start_sim here. That's already
15186 done in gdb_load. This fixes lots of failures in default.exp.
15191 * gdb.base/mips_pro.exp: Fix misplaced gdb_exit/gdb_start/gdb_load.
15192 * lib/gdb.exp (gdb_test): Treat failures due to program exiting
15193 in the same we we treat other failures (since it may be an expected
15194 condition), rather than as an error.
15195 * gdb.base/signals.exp (test_handle_all_print): Revert back to
15200 * Makefile.in (clean mostlyclean): Also remove chill *.grt files.
15201 (distclean maintainer-clean realclean): No need to remove files
15202 twice. Nuke the duplicates.
15203 * gdb.base/Makefile.in (EXECUTABLES): Add "structs".
15204 * gdb.threads/Makefile.in (distclean maintainer-clean realclean):
15205 Remove config.h along with other config files.
15209 * gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
15210 "p func1 ()" and note that rests of tests are skipped.
15211 * gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
15212 setup_xfails for "print func2::coremaker_local".
15213 Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
15214 * gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
15215 affected by the previous run test.
15216 * gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
15217 "print array () ubyte (foo)" and "print/x array () byte (\$i)"
15218 * gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
15219 "pass int powerset tuple" and "pass modeless int powerset tuple".
15220 * gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
15221 "real write 4" and "real write 8".
15222 * gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
15223 setup_xfails for "print vs1 after tuple assign 2",
15224 "print \$i after tuple assign 2", and
15225 "print vs2 after tuple assign 2".
15226 * lib/gdb.exp (gdb_test): When a gdb aborts, print a more
15227 meaningful error message and return -1 so the caller can
15228 suppress further tests and avoid a cascade of errors.
15232 * gdb.base/a1-selftest.exp: Tweak tests to account for new
15233 format for printing version.
15234 * gdb.base/default.exp: Ditto.
15235 * gdb.base/interrupt.exp: Fix problem with cascade of
15236 errors if child process dies while calling a function.
15240 * Makefile.in (VPATH): Add
15241 * Makefile.in (Makefile, config.status): Fix rules so things get
15242 remade when necessary.
15246 * Makefile.in (just-check): Add path to sibling expect dir
15247 to environment variable specified by RPATH_ENVVAR.
15251 * Makefile.in (RPATH_ENVVAR): New var, set to @RPATH_ENVVAR@.
15252 (just-check): Add shared library paths for libstdc++, tk,
15253 tcl, bfd, and opcodes to the environment variable specified
15255 * configure.in: Add support to recognize --enable-shared flag
15256 and generate correct value for RPATH_ENVVAR.
15257 * configure: Regenerated with autoconf.
15261 * gdb.base/break.exp: Expand "Delete all breakpoints" xfail to
15262 include all osf versions.
15263 * gdb.threads/pthreads.exp: Expand "run to main" xfail to include
15264 all osf versions. Add -D_MIT_POSIX_THREADS to compilation command
15265 when target is linux. When failing to build pthreads test
15266 executable, give more meaningful message.
15267 * gdb.threads/pthreads.c: Hpux also uses old definition of second
15268 arg for pthread_create.
15272 * gdb.threads/pthreads.c (PTHREAD_CREATE_ARG2,
15273 PTHREAD_CREATE_NULL_ARG2): Accomodate old pthreads implementations.
15274 * gdb.threads/pthreads.exp: Try linking with both -lpthread (Solaris)
15275 and -lpthreads (everybody else).
15276 (test_startup): Fail gracefully if threads are not supported.
15277 * gdb.base/nodebug.exp: Add setup_xfail hppa*-*-hpux* for
15278 "p/c array_index("abcdef",2)" when not gcc compiled.
15279 * gdb.base/corefile.exp: Add setup_xfail hppa*-*-hpux* for
15280 "print func2::coremaker_local" when not gcc compiled.
15281 * gdb.base/opaque.exp: Remove setup_xfail hppa*-*-hpux* for
15282 "ptype on opaque struct tagname (statically)",
15283 "ptype on opaque struct tagname (dynamically) 1", and
15284 "ptype on opaque struct tagname (dynamically) 2"
15285 for not compiled with gcc.
15286 * gdb.base/mips_pro.exp: Only do setup_xfail hppa*-*-* for
15287 backtrace when compiled with gcc.
15288 * lib/gdb.exp (runto_main): Return result of "runto main" rather
15289 than always return success.
15293 * gdb.c++/virtfunc.exp: Remove setup_xfail for "mips-*-irix5*".
15297 * gdb.base/structs.exp: Undo last change.
15301 * gdb.base/a1-selftest.exp (do_steps_and_nexts): New routine to
15302 encapsulate all the steps/nexts done during self test, starting
15303 at main, and makes them less sensitive to optimization issues.
15304 Add "hppa*-*-hpux*" to setup_xfail for "backtrace through
15305 signal handler" test.
15306 * gdb.threads/pthreads.exp: Only run this for native configs.
15307 * gdb.base/structs.exp (do_function_calls): Add hppa*-*-hpux9*"
15308 setup_xfails for "p fun5()", "p fun6()", "p fun7()", and "p fun8"
15310 gdb.c++/virtfunc.exp (do_tests): Add "mips-*-irix5*" setup_xfail
15311 for "runto test_calls(void)" test.
15315 * gdb.base/term.exp: Set 7-bit strings, address off, width to 0,
15316 and don't expect address info in breakpoint confirmations.
15320 * gdb.base/list.exp (test_forward_search): Increase timeout
15321 temporarily by 60 seconds for searching extremely long line,
15322 and then reset to old value when done. Increase expect input
15327 * gdb.base/list.exp (test_forward_search): Fix to handle very
15328 long source line without overflowing expect's input buffer.
15332 * config/slite-gdb.exp (gdb_start): Use "full_buffer", not
15335 * config/nind-gdb.exp (gdb_start): Use "full_buffer", not
15338 * config/mips-gdb.exp (gdb_start): Use "full_buffer", not
15341 * lib/gdb.exp (gdb_test): Correct pattern is "full_buffer", not
15346 * configure.in (configdirs): Add gdb.threads.
15347 * configure: Regenerated with autoconf.
15348 * gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
15349 * gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
15350 * gdb.threads/configure: New, generated with autoconf.
15354 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n.
15358 * gdb.base/signals.exp (test_handle_all_print): Test separately for
15359 each signal's status in the output of "handle all print".
15360 * lib/gdb.exp (gdb_test): Document that the pattern must NOT include
15361 the \r\n sequence that immediately precedes the gdb prompt.
15362 * gdb.base/a1-selftest.exp: Save original timeout and restore
15367 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
15372 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'.
15376 * gdb.base/signals.exp (test_handle_all_print): Temporarily increase
15377 timeout by 60 seconds.
15381 * config/unix-gdb.exp: Increase default timeout from 30 to 60 sec.
15382 * config/netware.exp (gdb_run_cmd): Restore old timeout before doing
15387 * lib/gdb.exp (default_gdb_start): When reporting a timeout during
15388 gdb initialization, also report how long dejagnu waited. Restore
15389 old timeout before doing error return. Temporarily increase timeout
15390 by 3 minutes to allow for slow startups over heavy NFS use.
15394 * lib/gdb.exp: Report timeout value for verbosity level 2.
15395 * config/gdbserver.exp: Ditto.
15396 * config/hppro.exp: Ditto.
15397 * config/mips-gdb.exp: Ditto.
15398 * config/monitor.exp: Ditto.
15399 * config/netware.exp: Ditto.
15400 * config/sim-gdb.exp: Ditto.
15401 * config/slite-gdb.exp: Ditto.
15402 * config/udi-gdb.exp: Ditto.
15403 * config/unix-gdb.exp: Ditto.
15404 * config/vx-gdb.exp: Ditto.
15405 * gdb.base/a1-selftest.exp: Ditto.
15406 * gdb.base/a2-run.exp: Ditto.
15407 * gdb.base/break.exp: Ditto.
15408 * gdb.base/corefile.exp: Ditto.
15409 * gdb.base/list.exp: Ditto.
15410 * gdb.base/recurse.exp: Ditto.
15411 * gdb.base/scope.exp: Ditto.
15412 * gdb.base/signals.exp: Ditto.
15416 * gdb.threads/Makefile.in (docdir): Removed.
15420 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
15421 * gdb.{base,c++,chill,disasm,stabs}/Makefile.in (VPATH): set to
15423 * gdb.{base,c++,chill,disasm,stabs}/configure.in (AC_PREREQ):
15424 autoconf 2.5 or higher.
15425 * gdb.{base,c++,chill,disasm,stabs}/configure: Rebuilt.
15429 * configure: Regenerated.
15430 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
15431 avoid name clashes with SunOS headers.
15435 * gdb.c++/virtfunc.exp: Search $objdir/../../libstdc++ for libstdc++.
15439 * gdb.base/callfuncs.exp: Finish last change -- make sure the
15440 prototype information ends up in the compiler info file.
15444 * gdb.base/callfuncs.exp: Remove the compiler info file prior to
15445 attempting to regenerate it. Eliminate use of a temporary file
15446 and just generate the info file directly. Source it immediately,
15447 for consistency of use.
15448 * gdb.base/corefile.exp: Ditto
15449 * gdb.base/exprs.exp: Ditto.
15450 * gdb.base/funcargs.exp: Ditto.
15451 * gdb.base/langs.exp: Ditto.
15452 * gdb.base/list.exp: Ditto.
15453 * gdb.base/mips_pro.exp: Ditto.
15454 * gdb.base/nodebug.exp: Ditto.
15455 * gdb.base/opaque.exp: Ditto.
15456 * gdb.base/ptype.exp: Ditto.
15457 * gdb.base/scope.exp: Ditto.
15458 * gdb.base/setvar.exp: Ditto.
15459 * gdb.base/signals.exp: Ditto.
15460 * gdb.base/whatis.exp: Ditto.
15461 * gdb.c++/templates.exp: Ditto.
15462 * gdb.c++/virtfunc.exp: Ditto.
15463 * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide
15464 whether or not to add -lstdc++ to the compile command line args.
15468 * gdb.base/recurse.exp: Remove setup_xfail for "sparc*-*-sunos4*",
15469 it got fixed by the recent lookup_minimal_symbol_by_pc change.
15470 Increase timeout, a lot of single stepping might be needed if the
15471 target has no hardware watchpoints.
15475 * gdb.base/break.exp: Ignore compiler warnings when compiling
15477 * gdb.base/callfuncs.exp: Don't run these tests on the h8300.
15478 * gdb.base/default.exp: Add h8300 xfails. Handle messages
15480 * gdb.base/exprs.exp: Add h8300 xfails.
15481 * gdb.base/funcargs.exp: Likewise.
15482 * gdb.base/nodebug.exp: Likewise.
15483 * gdb.base/printcmds.exp: Likewise.
15484 * gdb.base/ptype.exp: Likewise.
15485 * gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300. Add
15487 * gdb.base/return.exp: Handle float/double precision problems
15489 * gdb.base/funcargs.c: Explicitly make last constant argument to
15490 call_after_alloca_subr an unsigned long type.
15491 * gdb.base/return.c: Include stdio.h.
15495 * config/abug.exp: New file for the older Motorola Bug monitor
15496 that runs on the mvme13x series VME boards.
15497 * config/monitor.exp: Use the new config array for target settings
15502 * sim-gdb.exp: Make the SH simulator allocate less space when
15507 * gdb.base/mips_pro.exp: Expect failure for hppa*-*-* in backtrace
15512 * gdb.base/list.exp (test_list_function): Remove setup_xfail for
15513 "rs6000-*-*" for "list function in include file" when gcc compiled.
15514 * gdb.base/printcmds.exp: Remove setup_xfail for "rs6000-*-aix*"
15515 for "p ctable1[120]".
15516 * gdb.base/scope.exp: Remove setup_xfail for "rs6000-*-*" for
15517 "print 'scope0.c'::filelocal_bss before run" when gcc compiled.
15518 Remove setup_xfail for "rs6000-*-*" for
15519 "print 'scope0.c'::filelocal before run".
15520 * gdb.base/{langs.exp, lists.exp, opaque.exp, scope.exp},
15521 gdb.stabs/weird.exp: Remove use of compiler options "-c -o ..."
15522 since some compilers don't allow both options to be given
15523 on the same command line. Create object file and move it.
15527 * gdb.base/corefile.exp: Always regenerate the core file, since
15528 we always regenerate the coremaker program. Detect special case
15529 where registers cannot be read from core file.
15534 * gdb.base/funcargs.c: Patch for SPARCworks alloca compatibility
15535 * gdb.c++/templates.exp: Only match on basename of file since
15536 some formats like xcoff don't encode directory information.
15537 * gdb.stabs/weird.exp: Use the right sed script for powerpc
15538 and rs6000 AIX xcoff targets.
15539 * configure.in: Add stabsdirs to configdirs for powerpc-*-aix*.
15540 * configure: Regenerate.
15541 * gdb.base/Makefile.in (clean): Remove generated file twice-tmp.c
15542 here, rather than in distclean.
15546 * gdb.base/mips_pro.exp: Create mips_pro.ci to get gcc_compiled
15547 defined, and use it to compile the test case with -O2. The
15548 native compilation still uses no optimization.
15549 * gdb.base/mips_pro.c: Remove inline assembly code since
15550 it is compiled PIC by default, which results in assembler
15551 warnings that make the testsuite think the compilation
15556 * gdb.c++/misc.exp: Add note to message for
15557 "print s.a for foo struct" that this is a known gcc 2.7.2
15562 * gdb.base/break.exp: Fix pattern for matching "Delete all
15563 breakpoints (y or n) ". Add "mips-dec-ultrix*" to
15564 setup_xfail for deleting all breakpoints test. Fix various
15565 timeout messages to include "(timeout)".
15566 * gdb.base/callfuncs.exp: Add "i*86-*-sysv4*" to setup_xfail
15567 for "p t_float_values2(3.14159,float_val2)".
15568 * gdb.base/funcargs.exp: Remove "mips-sgi-irix4*" setup_xfail
15569 for "continue to call2g" when gcc compiled.
15570 * gdb.base/langs.exp: Remove "i*86-*-sysv4*" setup_xfail for
15571 "up to foo in langs.exp", "show language at foo in langs.exp",
15572 "show language at cppsub_ in langs.exp", "up to fsub in langs.exp",
15573 and "show language at fsub in langs.exp".
15574 * gdb.base/list.exp: Remove "*-*-sysv4*" setup_xfail for
15575 "list line 1 in include file", "list message for lines past EOF",
15576 "list function in include file", "list list0.h:foo", and
15577 "list filename:function; nonexistant function".
15578 * gdb.base/ptype.exp: Change "i*86-*-sysv4*" setup_xfail for
15579 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)"
15580 and "ptype t_char_array" to be for native cc only.
15584 * gdb.base/corefile.exp: Remove "alpha-dec-osf2*" native compiled
15585 setup_xfail for "print coremaker_bss", "print coremaker_ro",
15586 "print func2::coremaker_local", and "backtrace in corefile.exp".
15590 * gdb.base/signals.exp: Remove "alpha-*-osf2*" setup_xfail for
15591 "bt in signals.exp". This problem only appears when running
15592 the testsuite, and then only intermittently.
15596 * gdb.base/return.exp (return_tests): Differentiate between
15597 two tests of continuing.
15601 * */Makefile.in (maintainer-clean): Remove config.log.
15602 * gdb.base/Makefile.in (EXECUTABLES): Replace twice with twice-tmp.
15603 * gdb.c++/Makefile.in (PROGS): Add inherit.
15604 (clean): Remove *.ci.
15608 * gdb.c++/misc.cc: Add test code from Mike Stump.
15609 * gdb.c++/misc.exp: Add test to print s.a, for Mike Stump.
15613 * gdb.base/signals.exp: Change setup_xfail for "alpha-*-osf2"
15614 to "alpha-*-osf2*" and add comment.
15615 * gdb.base/a1-selftest.exp (test_with_self): Remove "alpha-dec-osf2*"
15616 setup_xfail for "step over execarg initialization" and
15617 "step over corearg initialization".
15618 * gdb.base/callfuncs.exp (do_function_calls): Restore setup_xfail
15619 for "hppa*-*-*", "sparc-*-*", "mips*-*-*", and "alpha-dec-osf2*".
15620 * gdb.base/corefile.exp: Add "alpha-dec-osf2*" setup_xfail when not
15621 gcc compiled for "print coremaker_bss", "print coremaker_ro",
15622 "print func2::coremaker_local", and "backtrace in corefile.exp".
15623 * gdb.base/signals.exp: Build and source signals.ci.
15624 Change "alpha-dec-osf2*" setup_xfail for "bt in signals.exp"
15625 to be for gcc only.
15626 * lib/gdb.exp: Move verbose statements outside conditionals.
15630 * gdb.base/sigall.exp: Remove setup_xfail for irix4. Fixed by
15631 Feb 3 procfs.c change.
15635 * config/unix-gdb.exp: Remove extraneous newlines from end of file.
15639 * config/unix-gdb.exp: Default timeout in UNIX case to 30 seconds, up
15640 from dejagnu's apparent default of 10 seconds, which gives random
15641 results when running the tests over NFS on moderately loaded systems.
15642 * lib/gdb.exp (gdb_run_cmd): Add "(timeout)" in timeout case.
15646 * gdb.base/callfuncs.exp: Remove setup_xfail for PR 5318. Now fixed.
15647 * gdb.base/a2-run.exp: Replace $binfile with $testfile in test
15652 * configure.in (CY_AC_PATH_TCLH): Remove.
15653 * configure: Regenerate.
15657 * gdb.c++/Makefile.in (clean): Add missing '{'.
15661 * lib/gdb.exp: Provide a default value for noinferior.
15663 * lib/gdb.exp: Fix typos (LDLAGS -> LDFLAGS).
15668 * gdb.disasm/hppa.exp: Compile directly into an executable, use
15669 the executable, not the .o to run the tests from.
15673 * gdb.base/break.exp: Don't test for program exit or exit status
15674 if $noresults if nonzero.
15675 * gdb.base/langs.exp: Likewise.
15676 * gdb.base/watchpoint.exp: Likewise.
15678 * gdb.base/default.exp: Remove extraneous call to load gdb.exp.
15679 * gdb.chill/pr-8405.exp: Move skip_chill_tests check to just before
15680 trying to compile the testcase.
15684 * gdb.base/interrupt.exp (p func1): xfail sparc64-*-solaris2.
15685 * gdb.base/signals.exp (continue to handler): Likewise.
15689 * gdb.c++/classes.exp: Now = returns false/true, not 1/0.
15691 * gdb.fortran/exprs.exp: .LT. and .GT. now return .TRUE. or .FALSE..
15695 * gdb.base/corefile.exp: Recognize "not found" as failure
15696 when trying to determine if a core file was generated.
15697 If no core file was generate the first time, try again without
15698 the ulimit -c to work around braindamaged shells.
15702 * gdb.stabs/configure.in (alpha-*-*,mips-*-*): Replace
15703 [] tests with "test" and enclose string in quotes.
15704 * gdb.stabs/configure: Rebuild
15708 Changes in sync with expect:
15709 * aclocal.m4 (CY_AC_PATH_TCLH): Handle Tcl 7.5 and greater.
15710 (CY_AC_PATH_TCLLIB): Handle Tcl 7.5 and greater.
15711 (CY_AC_PATH_TKH): Handle Tk 4.1 and greater.
15712 (CY_AC_PATH_TKLIB): Handle Tk 4.1 and greater. Properly quote
15713 argument to AC_REQUIRE.
15714 * configure: Regenerated.
15718 * gdb.base/corefile.exp: When generating a core, discard any
15719 error messages about ulimit not found and the "core dumped"
15720 message from the shell that runs the coredumper.
15724 * lib/gdb.exp (skip_chill_tests): Skip them on the PA too.
15726 * gdb.stabs/weird.exp: Use ${target_triplet} to determine
15727 which sed script to run. Expect failure for v_comb test
15732 * gdb.base/corefile.exp: Remove "i*86-*-linux" xfail for
15733 "print func2::coremaker_local" and for "backtrace in corefile.exp"
15737 * lib/gdb.exp: Fix typo and rewrite skip_chill_tests.
15738 * gdb.stabs/weird.exp: Setup "sparc-sun-sunos4*" and
15739 "sparc-sun-solaris*" xfails for "p v_comb".
15740 * lib/gdb.exp (default_gdb_start): Fix typo.
15741 * gdb.base/corefile.exp: Allow "Core was generated by ..."
15742 messages to not include the full program name that caused
15743 the core dump since some systems (such as solaris) apparently
15744 truncate this path to about 80 characters.
15745 When generating a core file first try increasing the core file
15746 size limit to unlimited since some systems may default it to
15747 zero, and it is harmless to try it. Move the test for failing
15748 to generate a core file to where it will actually get executed.
15749 * gdb.c++/templates.exp (test_ptype_of_templates): Accept
15750 new gdb result from g++ debug info improvements and make old
15751 pattern obsolescent. Also account for size_t differences
15752 (may be int or long).
15753 * gdb.base/a1-selftest.exp (test_with_self): Check for case where
15754 initialization before function call is placed in the delay slot
15755 and thus appears to be skipped over by commands such as "next".
15759 * gdb.base/a1-selftest.exp (test_with_self): Run without windows.
15763 * gdb.base/*.exp: Make ${srcfile} only be the basename of the
15764 input source file; fix code to compile test to deal with this
15766 * gdb.c++/*.exp: Likewise.
15770 * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
15771 "bt in signals.exp".
15775 * gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
15776 "step over execarg initialization" and
15777 "step over corearg initialization".
15781 * gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
15782 with sizeof(pointer) > sizeof(int). Avoid "void *" or include files.
15787 * Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in},
15788 gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in,
15789 configure.in}, gdb.disasm/{Makefile.in, configure.in},
15790 gdb.stabs/{Makefile.in, configure.in}, gdb.threads/{Makefile.in,
15791 configure.in}: Major reworking for autoconfig.
15792 * aclocal.m4, configure, gdb.base/configure, gdb.c++/configure,
15793 gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt :
15795 * config/unix-gdb.exp: Make GDB global.
15796 * gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp,
15797 callfuncs.exp, commands.exp, corefile.exp, crossload.exp, exprs.exp,
15798 funcargs.exp, interrupt.exp, langs.exp, list.exp, mips_pro.exp,
15799 nodebug.exp, opaque.exp, printcmds.exp, ptype.exp, recurse.exp,
15800 regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp, signals.exp,
15801 term.exp, twice.exp, watchpoint.exp, whatis.exp},
15802 gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp,
15803 templates.exp, virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp,
15804 misc.exp, pr-4975.exp, pr-5016.exp, pr-5020.exp, pr-5022.exp,
15805 pr-5646.exp, pr-5984.exp, pr-6292.exp, pr-6632.exp, pr-8134.exp,
15806 pr-8136.exp, result.exp, string.exp, tuples.exp},
15807 gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues
15808 to returns as necessary, arrange for test to compile own testcase
15810 * lib/gdb.exp: Changes for testsuite to compile own test cases.
15814 * gdb.c++/classes.exp (test_pointers_to_class_members): Add
15815 clear_xfail at end of test which might not call either pass or fail.
15816 * gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for
15817 "backtrace through signal handler".
15821 * gdb.base/sigall.exp: Work around OSF/1-3.x kernel bug when
15822 continuing from a job control stop signal.
15823 * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o.
15827 * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
15828 * gdb.base/corefile.exp: Likewise.
15829 * gdb.base/funcargs.exp: Likewise.
15833 * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
15834 * config/monitor.exp: Add support for setting baud rate.
15838 * gdb.base/a1-selftest.exp: Remove i*86-*-sysv4* and
15839 i*86-*-linux* xfails for "backtrace through signal handler".
15840 * gdb.base/corefile.exp: Add i*86-*-sysv4* xfail for
15841 "print func2::coremaker_local".
15842 * gdb.base/break.exp: Add i*86-*-sysv4*, sparc-sun-sunos4,
15843 alpha-dec-osf2* xfail for
15844 "delete all breakpoints when none".
15848 * gdb.base/break.exp: Change test that deletes all breakpoints
15849 when no user breakpoints are installed. A post 4.15 change
15850 causes gdb to no longer prompt in this case.
15854 * gdb.base/return.exp (return_tests): Change xfail for test
15855 "correct value returned double test" to stop xfailing at
15856 Solaris 2.5. Apparently the bug has been fixed.
15860 * gdb.stabs/ecoff.sed: Remove comment lines except for first one.
15861 IRIX 4.0 /bin/sed chokes on them, though they work fine elsewhere.
15865 * gdb.disasm/hppa.exp: Test lci and syncdma instructions.
15866 * gdb.disasm/hppa.s: Corresponding changes.
15870 * gdb.base/configure.in (hppa*-*-hpux*): No longer needs target
15872 * config/mt-hpux: Deleted.
15876 * Many files: When warning about suppressed tests due to a
15877 nonexistant test binary, avoid incrementing the warning count.
15881 * Makefile.in (TARGET_FLAGS_TO_PASS): Remove BISON.
15885 * gdb.base/return.exp: Change xfail from "sparc-*-solaris2.*" to
15886 "sparc-*-solaris2*".
15890 * gdb.base/coremaker.c: Produce a full core dump for AIX targets.
15891 Add global and local variables and initialize them.
15892 * gdb.base/corefile.exp: Test correct mapping of corefile sections
15893 by printing variables. Remove rs6000 and powerpc xfails, BFD now
15894 extracts the file name and terminating signal from the core file.
15895 * TODO: Remove note about tests for correct mapping of corefile.
15896 * gdb.base/ptype.c (main): Use boolean2 to inhibit AIX 4.1 xlc
15897 from optimizing it away.
15898 * gdb.stabs/weird.exp: Remove rs6000 xfail, xcoffread.c now
15899 handles common blocks.
15903 * gdb.disasm/sh3.s (fmac): Update for new assembler syntax
15904 * gdb.disasm/sh3.exp (fmac): Corresponding changes.
15908 * Makefile.in (maintainer-clean): New target, synonym for
15910 * gdb.base/Makefile.in (maintainer-clean): Likewise.
15911 * gdb.c++/Makefile.in (maintainer-clean): Likewise.
15912 * gdb.chill/Makefile.in (maintainer-clean): Likewise.
15913 * gdb.disasm/Makefile.in (maintainer-clean): Likewise.
15914 * gdb.stabs/Makefile.in (maintainer-clean): Likewise.
15915 * gdb.threads/Makefile.in (maintainer-clean): Likewise.
15919 * gdb.base/scope.exp (text_at_main): Add "hppa*-*-hpux*"
15920 xfails when not gcc compiled for "print foo::funclocal".
15921 (test_at_foo): Add "hppa*-*-hpux*" xfails when not gcc compiled for:
15922 "print foo::funclocal at foo",
15923 "print 'scope1.c'::foo::funclocal at foo",
15924 "print foo::funclocal_bss at foo",
15925 "print 'scope1.c'::foo::funclocal_bss at foo",
15926 "print foo::funclocal_ro at foo",
15927 "print 'scope1.c'::foo::funclocal_ro at foo",
15928 "print bar::funclocal at foo" and
15929 "print 'scope1.c'::bar::funclocal at foo".
15930 (test_at_bar): Add "hppa*-*-hpux*" xfails when not
15931 gcc compiled for "print foo::funclocal at bar".
15932 Expand all messages to ensure that they identify that
15933 the test is at bar().
15934 * gdb.base/opaque.exp: Add "hppa*-*-hpux*" xfails when not
15936 "ptype on opaque struct pointer (statically)",
15937 "ptype on opaque struct tagname (statically)",
15938 "ptype on opaque struct pointer (dynamically) 1",
15939 "ptype on opaque struct tagname (dynamically) 1",
15940 "ptype on opaque struct pointer (dynamically) 2" and
15941 "ptype on opaque struct tagname (dynamically) 2
15942 * gdb.base/nodebug.exp: Add "hppa*-*-hpux*" xfails when not
15945 "whatis datalocal",
15948 "whatis bsslocal", and
15950 * gdb.base/langs.exp: Add "hppa*-*-hpux*" xfails for
15951 "backtrace in langs.exp" and "up to langs0__2do in langs.exp"
15952 when not gcc compiled.
15953 * gdb.base/funcargs.exp (float_and_integral_args): Add
15954 "hppa*-*-hpux*" xfail for "run to call2a" when not gcc
15956 (discard_and_shuffle): Add "hppa*-*-hpux*" xfail for
15957 "backtrace from call6a" when not gcc compiled.
15958 (shuffle_round_robin): Add "hppa*-*-hpux*" xfail for
15959 "backtrace from call7a" when not gcc compiled.
15960 * gdb.base/callfuncs.exp (do_function_calls):
15961 Add "hppa*-*-hpux*" xfail when not gcc compiled for
15962 "p t_char_array_values(char_array_val2,char_array_val1)",
15963 "p t_char_array_values(char_array_val1,char_array_val2)",
15964 "p t_char_array_values("carray 1","carray 2")",
15965 "p t_char_array_values("carray 1",char_array_val2)",
15966 "p t_char_array_values(char_array_val1,"carray 2")",
15967 "p sum_args(1,{2})",
15968 "p sum_args(2,{2,3})",
15969 "p sum_args(3,{2,3,4})",
15970 "p sum_args(4,{2,3,4,5})"
15971 * gdb.base/corefile.exp: Add "hppa*-*-hpux*" xfail for
15972 "backtrace in corefile.exp" when not gcc compiled.
15976 * gdb.base/signals.exp: Rewrite `handle all print' test as
15977 a procedure. Accept blanks or TABs as whitespace, increase
15978 timeout and expect input buffer size for the large output
15979 from the command. Remove "i*86-*-bsdi2.0" xfail.
15983 * gdb.base/setvar.exp: Add new testcases for truncation when
15984 assigning invalid values to bitfields.
15988 * gdb.base/callfuncs.exp (do_function_calls): Remove
15989 mips-sgi-irix* xfail for
15990 "call inferior func with struct - returns char *"
15991 and fix test so that an optional (unsigned char *) cast is
15992 accepted in the result.
15996 * gdb.base/funcargs.exp (float_and_integral_args): Remove
15997 sparc-sun-solaris2* xfail for "print f1 after run to call2a".
15998 * gdb.c++/Makefile.in (SUFFIXES): Add .SUFFIXES and ".cc" suffix.
15999 * gdb.base/signals.exp: Remove duplicate "handle all print" test
16000 that accidentally got checked in.
16004 * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
16005 clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
16007 * gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
16008 Add mips-sgi-irix5* xfail for not gcc compiled.
16009 * gdb.base/Makefile.in (nodebug.o): Also create nodebug.ci.
16010 * gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
16011 "p top", "whatis top", "p middle", and "whatis middle".
16012 * gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
16013 "whatis signed char" for not gcc compiled.
16014 * gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
16015 "set variable signed char=-1 (-1)" and
16016 "set variable signed char=0xFF (0xFF)" for not gcc compiled.
16017 * gdb.base/funcargs.exp (float_and_integral_args):
16018 Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
16019 Add mips-sgi-irix* xfail when not gcc compiled for
16020 "continue to call2b".
16021 Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
16022 "continue to call2g".
16023 (discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
16024 "backtrace from call6a"
16025 (shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
16026 "backtrace from call7k".
16027 Add mips-sgi-irix5* xfail when not gcc compiled for
16028 "backtrace from call7a".
16029 (localvars_after_alloca): Fix gdb_test cmds for
16030 "print * after runto ...".
16031 Remove rs6000-*-* xfails for
16032 "print i after runto localvars_after_alloca" and
16033 "print l after runto localvars_after_alloca"
16035 * gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
16036 when not compiled with gcc, for:
16037 "print signed char == (minus)",
16038 "print signed char != (minus)",
16039 "print signed char < (minus)",
16040 "print signed char > (minus)".
16041 * gdb.base/callfuncs.exp (do_function_calls):
16042 Add mips-sgi-irix* xfail, when compiled with native compiler, for
16043 "call inferior func with struct - returns char *".
16044 * gdb.base/return.exp (return_tests): Change xfail for
16045 "correct value returned double test" to include Solaris 2.4.
16046 * gdb.base/funcargs.exp (float_and_integral_args):
16047 Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".
16051 * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
16052 enumeration bitfields if compiling with GNU C.
16053 * lib/gdb.exp: Consume `(y or n) ' in `Reinitialize source path
16058 * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
16059 test for PRO targets.
16061 * gdb.base/funcargs.exp: Avoid ever setting more than 8
16062 breakpoints in the inferior at any given time by making
16063 two groups of breakpoints for call2*, call6* and call7*
16068 * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
16069 * gdb.base/callfuncs.c (main): Use struct_val1 to inhibit xlc
16070 from optimizing it away.
16071 * gdb.base/callfuncs.exp: Remove rs6000-*-* xfails for
16072 "call inferior func with struct".
16076 * configure.in: Only configure gdb.chill for particular targets.
16080 * gdb.base/Makefile.in: Add action to .c.o transformation
16081 rule that generates a .ci file for each .o file and remove
16082 explicit .c.o rules except for callfuncs.o.
16083 * gdb.c++/Makefile.in: Add .cc.o transformation rule that
16084 generates a .ci file for each .o file and remove explicit
16086 (clean): Remove *.tmp *.ci files.
16087 (EXECUTABLES): Remove templ-info.exp.
16088 * gdb.base/compiler.c: New file.
16089 * gdb.c++/compiler.cc: New file
16090 * gdb.base/scope.exp: Source gdb.base/scope.ci.
16091 Change rs6000-*-* xfail for
16092 "print 'scope0.c'::filelocal_ro" and
16093 "print 'scope1.c'::filelocal" and
16094 "print 'scope1.c'::filelocal_bss" and
16095 "print 'scope1.c'::filelocal_ro" and
16096 "print 'scope1.c'::foo::funclocal" and
16097 "print 'scope1.c'::foo::funclocal_ro" and
16098 "print 'scope1.c'::bar::funclocal" and
16099 "print 'scope0.c'::filelocal_ro" and
16100 "print 'scope1.c'::filelocal at foo" and
16101 "print 'scope1.c'::filelocal_bss at foo" and
16102 "print 'scope1.c'::filelocal_ro at foo" and
16103 "print 'scope1.c'::foo::funclocal at foo" and
16104 "print 'scope1.c'::foo::funclocal_bss at foo" and
16105 "print 'scope1.c'::foo::funclocal_ro at foo" and
16106 "print 'scope1.c'::bar::funclocal at foo" and
16107 "print 'scope0.c'::filelocal_ro" and
16108 "print 'scope1.c'::filelocal" and
16109 "print 'scope1.c'::filelocal_bss" and
16110 "print 'scope1.c'::filelocal_ro" and
16111 "print 'scope1.c'::foo::funclocal" and
16112 "print 'scope1.c'::foo::funclocal_bss" and
16113 "print 'scope1.c'::foo::funclocal_ro" and
16114 "print 'scope1.c'::bar::funclocal" and
16115 "print 'scope1.c'::bar::funclocal_bss"
16116 to only be xfail'd when not compiled with gcc.
16117 Add rs6000-*-* xfail for
16118 "print 'scope0.c'::filelocal_bss before run"
16119 when compiled with gcc.
16120 (test_at_main): Add rs6000-*-* xfail for
16121 "print filelocal_ro in test_at_main"
16122 when compiled with gcc.
16123 * gdb.base/ptype.exp: Source gdb.base/ptype.ci.
16124 Add rs6000-*-aix* xfail for
16125 "whatis unnamed typedef'd enum (compiler bug in IBM's xlc)" and
16126 "ptype t_char_array", not compiled with gcc.
16127 * gdb.base/list.exp (test_list_function): Add rs6000-*-*
16128 xfail for "list foo (in include file)" when gcc compiled.
16129 * gdb.base/funcargs.exp: Source gdb.base/funcargs.ci
16130 (integral_args): Add rs6000-*-* xfail for
16131 "run to call0a" if not compiled with gcc.
16132 (unsigned_integral_args): Add rs6000-*-* xfail for
16133 "run to call1a" if not compiled with gcc.
16134 (float_and_integral_args): Add rs6000-*-* xfail for
16135 "run to call2a" if not compiled with gcc and for
16136 "continue to call2b" for any compiler.
16137 Add rs6000-*-* xfail to
16138 "print f1 after run to call2a" for gcc compiled.
16139 (discard_and_shuffle): Add rs6000-*-* xfail for
16141 (shuffle_round_robin): Add rs6000-*-* xfail for
16142 "backtrace from call7a" if not compiled with gcc.
16143 Add rs6000-*-* xfail for
16144 "backtrace from call7b" if compiled with gcc.
16145 (call_after_alloca): Add rs6000-*-* xfail for
16146 "print c in call_after_alloca" and
16147 "print s in call_after_alloca" and
16148 "backtrace from call_after_alloca_subr"
16149 if not compiled with gcc.
16150 (localvars_in_indirect_call): Add rs6000-*-* xfail for
16151 "print c in localvars_in_indirect_call" and
16152 "print c in localvars_in_indirect_call" and
16153 "backtrace in indirectly called function" and
16154 "stepping into indirectly called function"
16155 if not compiled with gcc.
16156 (localvars_after_alloca): Add rs6000-*-* xfail for
16157 "print c after runto localvars_after_alloca" and
16158 "print s after runto localvars_after_alloca" and
16159 "print i after runto localvars_after_alloca" and
16160 "print l after runto localvars_after_alloca"
16162 * gdb.base/whatis.exp: Source gdb.base/whatis.ci rather
16163 than whatis-info.exp.
16164 * gdb.base/opaque.exp: Source gdb.base/opaque0.ci rather
16165 than opaque-info.exp.
16166 Setup rs6000-*-* xfail for
16167 "ptype on opaque struct pointer (statically)" and
16168 "ptype on opaque struct pointer (dynamically)" when
16169 not compiled with gcc.
16170 * gdb.base/callfuncs.exp: Source gdb.base/callfuncs.ci
16171 rather than callf-info.exp.
16172 (do_function_calls): Add clear_xfail for rs6000-*-* for
16173 "p t_float_values2(3.14159,float_val2)". Seems to work
16174 fine there, both with xlc and gcc. Need to find out what
16175 it is doing right and fix other platforms.
16176 * gdb.base/callfuncs.exp: Add rs6000-*-* xfail for
16177 "call inferior func with struct - returns int",
16178 "call inferior func with struct - returns long",
16179 "call inferior func with struct - returns float",
16180 "call inferior func with struct - returns double",
16181 "call inferior func with struct - returns char *",
16182 but only if not gcc compiled (presumes xlc compiled).
16183 Change rs6000-*-* xfails for
16184 "call inferior func with struct - returns char" and
16185 " call inferior func with struct - returns short" to only
16186 xfail if not using gcc.
16187 (clean mostlyclean): Remove *.ci and *.tmp files.
16188 * gdb.c++/templates.exp: Source gdb.c++/templates.ci rather
16189 than templ-info.exp.
16190 * gdb.base/langs.exp: Source gdb.base/langs.ci.
16191 Add rs6000-*-* xfail for "up to foo in langs.exp"
16192 "up to cppsub_ in langs.exp" and "up to fsub in langs.exp"
16193 when not gcc compiled.
16197 * gdb.base/callfuncs.exp: Add xfails for the powerpc.
16198 * gdb.base/corefile.exp: Likewise.
16199 * gdb.base/list.exp: Likewise.
16200 * gdb.base/scope.exp: Likewise.
16201 * gdb.base/siganls.exp: Likewise.
16203 * gdb.base/nodebug.exp: Add xfails for the powerpc. Handle aix4
16205 * gdb.base/whatis.exp: Likewise.
16209 * gdb.disasm/sh3.exp (all_fp_misc_tests): No longer expect a
16210 failure (opcode table has been fixed to match reality).
16214 * gdb.base/callfuncs.exp: Add rs6000-*-* xfails for
16215 "call inferior func with struct - returns char",
16216 "call inferior func with struct - returns short"
16218 * gdb.base/scope.exp: Remove rs6000-*-* xfails for
16219 "print 'scope0.c'::filelocal at main",
16220 "print 'scope0.c'::filelocal_bss in test_at_main",
16221 "print 'scope0.c'::filelocal at foo",
16222 "print 'scope0.c'::filelocal_bss in test_at_foo",
16223 "print 'scope0.c'::filelocal at bar",
16224 "print 'scope0.c'::filelocal_bss in test_at_bar"
16226 * gdb.base/list.exp: Remove rs6000-*-* xfail for "list function
16227 in source file 1". This bug seems to have been fixed with both
16228 gcc and native cc (was native assembler bug?).
16232 * gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
16233 "backtrace through signal handler" to "i*86-*-sysv4*".
16234 * gdb.base/signals.exp: Add xfail for "'next' behaved as
16235 continue" case. Add "known SVR4 bug" to fail message.
16236 Add "i*86-*-bsdi2.0" xfail for "handle all print".
16237 Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
16238 * gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
16239 "whatis unnamed typedef'd enum..." and "ptype t_char_array".
16240 * gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
16241 "up to foo in langs.exp", "show language at foo in
16242 langs.exp", "up to cppsub_ in langs.exp", "show
16243 language at cppsub_ in langs.exp", "up to fsub in
16244 langs.exp", and "show language at fsub in langs.exp".
16245 * gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
16246 "bactrace in corefile.exp".
16247 * gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
16248 "call inferior function with struct - returns float" and
16249 "call inferior function with struct - returns double".
16253 * gdb.disasm/sh3.s: Source for sh3 disassembler tests.
16254 * gdb.disasm/sh3.exp: Run the sh3 disassembler tests.
16255 * gdb.disasm/configure.in (sh-*-*): Use sh3.mt makefile fragment.
16256 * gdb.disasm/sh3.mt: Makefile fragment for sh3 ests.
16260 * Makefile.in (CHILL_FOR_TARGET): Use previously defined
16261 (or overriden) "CHILL" macro rather then bare "gcc".
16262 Also look for ../../gcc/xgcc since that is what we will
16263 actually need, not "Makefile". Remove following assignment
16264 of CHILL to CHILL_FOR_TARGET because that results in
16265 recursive definition.
16269 * gdb.base/corefile.exp: Change xfail for backtrace in
16270 corefile.exp from linuxaout to all linux.
16271 * gdb.base/sigall.exp (test_one_sig): Specifically deal with
16272 cases where we miss the breakpoint at the signal handler
16273 for some reason. Setup xfail for linuxoldld/linuxaout and
16274 getting SIGIO. Setup xfail for linuxoldld/linuxaout for
16275 hitting SIGURG breakpoint.
16276 * gdb.base/signals.exp: Setup xfail for "next" acting like
16277 continue to add linuxoldld. Setup xfail for all linux for
16278 "next to handler in signals_tests_1", "backtrace in
16279 signals_tests_1", "continue to func1", "pass SIGUSR1",
16280 and continue to handler".
16284 * Update all FSF addresses except those in COPYING* files.
16288 * gdb.base/a2-run.exp: Change messages to be more explicit about
16289 the status of args, and quote binfile in results.
16293 * gdb.base/callfuncs.exp: Add tests for passing structs to
16294 inferior functions and return various types.
16295 * gdb.base/callfuncs.c: Add functions to receive a struct
16296 and return a member of the struct, in various types.
16300 * gdb.base/Makefile.in (clean): Remove callf-info.exp.
16304 * config/vxworks29k.exp: New file, sources vxworks.exp.
16308 * config/gdbremote.exp: New file. Testing framework using
16313 * gdb.base/interrupt.exp: Setup "i*86-*-linux" xfail for
16314 "call function when asleep" and "send end of file".
16315 * gdb.base/corefile.exp: Add "i*86-*-linuxaout" to xfail list
16316 for "backtrace in corefile.exp".
16317 * gdb.base/a1-selftest.exp: Add "i*86-*-linux*" to xfail list
16318 for "backtrace through signal handler".
16319 * gdb.base/corefile.exp: Make sure we actually generate a core file
16320 before trying the core tests. Some systems allow the user to suppress
16321 generation of core files and default to that (linux for example).
16322 * gdb.base/signals.exp: Change xfail for "next" acting like "continue"
16323 from "i*86-*-linux" to "i*86-*-linuxaout". Works with ELF beta.
16327 * gdb.threads: New directory with some crude multi-threaded
16328 gdb tests (step.exp and step2.exp).
16329 * config/mt-lynx (STEP_EXECUTABLE): Define.
16330 (THREADFLAGS): Define.
16334 * gdb.base/sigall.exp: Avoid losing in SIGPRIO test on lynx.
16336 * gdb.base/signals.exp: Disable whole file for lynx until
16339 * gdb.base/signals.exp: xfail test where "next" acts like
16340 "continue" for lynx.
16342 * gdb.base/interrupt.exp: xfail test for calling function while
16343 inferior is asleep for lynx.
16345 * gdb.base/watchpoint.exp: Handle more cases of gdb echoing more
16346 than one cr-lf after each command.
16350 * configure.in: Reinstate setting of stabsdirs variable, fix
16351 typo in setting up configdirs for native builds.
16353 * gdb.base/return.exp: Fix typo in return double test.
16354 * gdb.base/return.c (tmp2, tmp3): Made global to inhibit the
16355 compiler from optimizing them away.
16359 * gdb.base/gdbvars.exp: Expect zero or more additional cr-lf
16360 sequences to be echo'd by gdb when using gdb_test.
16361 * gdb.chill/chexp.exp: Likewise.
16362 * gdb.fortran/exprs.exp: Likewise
16366 * gdb.base/a1-selftest.exp: Reset the timeout value to 30 seconds
16367 after the inferior gdb has started.
16369 * gdb.base/a2-run.exp: Handle gdb echoing more than one cr-lf
16370 after each command.
16371 * gdb.base/funcargs.exp: Likewise.
16372 * gdb.base/gdbvars.exp: Likewise.
16373 * gdb.base/interrupt.exp: Likewise.
16374 * gdb.base/list.exp: Likewise.
16375 * gdb.base/watchpoint.exp: Likewise.
16376 * gdb.c++/demangle.exp: Likewise.
16377 * gdb.c++/inherit.exp: Likewise.
16378 * gdb.chill/chexp.exp: Likewise.
16379 * gdb.fortran/exprs.exp: Likewise.
16381 * gdb.base/watchpoint.exp: Disable watchpoint triggered in syscall
16382 test if we can't handle IO to/from the inferior.
16384 * gdb.c++/misc.exp: Always check for a program already being
16385 started after sending a "run" command to gdb.
16387 * gdb.base/twice.exp: Start with a fresh gdb.
16389 * gdb.chill/chexp.exp: Remove skip_chill_tests check; these tests
16390 only depend on gdb's expression code, not the chill runtime.
16392 * gdb.base/return.c: Put return values into variables so we
16393 can have gdb print them rather than depending on the program
16395 * gdb.base/return.exp: Corresponding changes.
16397 * lib/gdb.exp: Provide default value for noinferiorio.
16398 * gdb.base/interrupt.exp: Skip tests if we can't handle IO to/from
16401 * gdb.base/break.exp: Always check for a program already being
16402 started after sending a "run" command to gdb.
16403 (text_next_with_recursion): Don't check the output from the
16404 program's printf statement. Instead just make sure the program
16407 * gdb.base/commands.exp: Protect tests which need arguments with
16408 $noargs conditionals.
16412 * gdb.base/printcmds.exp: Adjust expect patterns for addresses
16413 of structure member arrays to match gdb/valops.c:value_addr change.
16417 * gdb.base/a1-selftest.exp: Fix unmatched quotes in many timeout
16422 * configure.in (configdirs): Remove gdb.chill from default list
16423 of subdirs and then add it back in only if doing a native build.
16424 The current chill compiler does not yet work in any cross build.
16425 * Revert all signal changes from Jul 6.
16426 * gdb.base/{sigall.c signals.c}: Define away signal() and alarm()
16427 for sh-hms targets, allowing these tests to link, with no other
16428 changes. Testing is suppressed by setting "nosignals" in site.exp.
16432 * configure.in (signaldirs): Define and add to configdirs for all
16433 targets except some specific ones that are known to not support signals.
16434 Also clean up formatting.
16435 * gdb.base/Makefile.in (EXECUTABLES): Remove sigall and signals.
16436 (signals, sigall): Remove rules to build.
16437 * gdb.base/{sigall.c, sigall.exp, signals.c, signals.exp}:
16438 Moved to new gdb.signals directory.
16439 * gdb.signals: New test directory.
16440 * gdb.signals/{Makefile.in, configure.in, sigall.c, sigall.exp,
16441 signals.c signals.exp}: New or moved files.
16445 * gdb.base/interrupt.exp: Don't choke if $nointerrupts doesn't exist.
16449 * gdb.base/return.exp: Xfail `return double' test failure
16450 on at least Solaris 2.3 and handle future/past versions on
16451 a case by case basis as appropriate. Also update message
16452 to include i*86 failures.
16456 * Makefile.in: Change variable CFLAGS to TESTSUITE_CFLAGS.
16458 * lib/gdb.exp: Fix comment which erroneously identified
16459 gdb_file_cmd as gdb_load (the 19 May change was in fact to
16460 gdb_file_cmd not gdb_load).
16461 * config/unix-gdb.exp (gdb_load): Add "upvar timeout timeout".
16463 * gdb.base/setvar.exp: Make test names consistent between pass and
16464 fail cases. Use gdb_test more.
16468 * lib/gdb.exp (gdb_load): Add "upvar timeout timeout".
16472 * gdb.base/help.exp: Fix expected help string for `show commands'.
16476 * gdb.stabs/xcoff.sed: Change N_LSYM to C_DECL not C_LSYM.
16478 * gdb.stabs/weird.exp: Remove xfail for xcoff bitching about lack
16483 * config/monitor.exp (gdb_target_monitor): Fix loop interator so
16484 that loop eventually terminates. Fix Connection refused logic so
16485 that testsuite will expire nicely.
16489 * config/cpu32bug.exp, config/est.exp, config/hppro.exp,
16490 config/rom68k.exp: New tcl glue for the appropriate monitors.
16491 These all just end up calling monitor.exp.
16492 * config/monitor.exp (gdb_target_monitor): Handle `Connection
16493 refused' by retrying. Cleanup some timeout issues.
16494 * (gdb_load): Reduce timeout. Cleanup some timeout issues.
16495 * lib/gdb.exp (gdb_test gdb_test_exact): Upvar timeout so that
16496 callers don't have to set/restore global timeout variable.
16498 * The following set of changes centralizes management of the global
16499 timeout variable. This way, it can be set in one target dependent
16500 place instead of dozens of places scattered throughout the test suite.
16501 If you need to lengthen a timeout, then you should either set timeout
16502 in one of the config/{target}.exp files, or multiply it by a factor.
16503 Setting it to an absolute value is always going to lose for some
16505 * gdb.base/a1-selftest.exp (test_with_self): Only use local timeout.
16506 * gdb.base/callfuncs.exp (do_function_calls): Don't set timeout.
16507 * gdb.base/funcargs.exp: Don't set timeout.
16508 * gdb.base/list.exp (test_forward_search): Only use local timeout.
16509 * gdb.base/printcmds.exp (test_print_string_constants
16510 test_print_array_constants): Don't set timeout.
16511 * gdb.base/ptype.exp: Don't set timeout.
16512 * gdb.base/recurse.exp: Don't set timeout.
16513 * gdb.base/return.exp: Don't set timeout.
16514 * gdb.base/watchpoint.exp: Don't set timeout.
16515 * gdb.c++/classes.exp (do_tests): Don't set timeout.
16516 * gdb.c++/virtfunc.exp (test_virtual_calls): Don't set timeout.
16520 * Makefile.in: Make clean targets work also when SUBDIRS is empty.
16524 * lib/gdb.exp: Disable chill tests for irix5.
16528 * gdb.base/scope.exp: Make test names unique. Use gdb_test. Make
16529 each test pass or fail.
16533 * gdb.base/opaque.exp: Remove xfails for aix; print a warning if
16538 * cpu32bug.exp est.exp rom68k.exp: Delete. Unify into monitor.exp.
16542 * config/est.exp: Fix copyright and comments. Remove dead code.
16543 Use targetname, serialport and baud variables instead of fixed
16545 * config/rom68k.exp: Fix copyright and comments. Remove dead code.
16546 * config/cpu32bug.exp: New file to support cpu32bug monitors.
16550 * gdb.base/watchpoint.exp: Don't run
16551 test_watchpoint_triggered_in_syscall for sunos.
16555 * gdb.base/{break.c,run.c}: Don't include vxWorks.h or stdioLib.h;
16556 they don't seem to exist. Do include stdio.h.
16560 * gdb.base/a1-selftest.exp: Add alpha xfail.
16564 * gdb.base/watchpoint.c (main): Prompt before calling read().
16565 * gdb.base/watchpoint.exp (test_watchpoint_triggered_in_syscall):
16566 Revise accordingly. Remove cruft about sending "123" several
16567 times, until it gets noticed. Clean up the "print buf[0]" stuff
16568 so that it passes or fails, and waits for prompts in the usual way.
16572 * gdb.base/recurse.exp: Fix comment.
16574 * TODO: Remove item about printing variables in nodebug.exp. Add
16575 item about enabling tests which are only run on some targets.
16577 * gdb.base/watchpoint.exp: Various cleanups (make each test pass or
16578 fail, make test names unique, use new gdb_test convention
16579 regarding pattern, use gdb_test more, etc.).
16581 * gdb.base/bitfields.exp: Various cleanups (make each test pass or
16582 fail, make test names unique, etc.).
16586 * gdb.base/nodebug.c: Change return type of top and middle to
16588 * gdb.base/nodebug.exp: Remove xfails for ecoff systems, they
16589 are fixed by the recent mdebugread.c changes. Allow `short ()'
16590 as type for top and middle.
16594 * gdb.base/break.exp: Remove commented out if $usestubs {}. As
16595 nearly as I can tell, the whole thing was an accident in Stu's
16596 change of 24 Mar 1995 (logged in ../ChangeLog), in which he meant
16597 to replace a send/expect pair with gdb_test, but ended up only
16598 adding the gdb_test. My change of 24 Mar 1995 and Kung's change
16599 of 30 Mar 1995 took care of it, but left this vestigial comment
16600 which I am now nuking.
16604 * gdb.base/break.exp: Look for different line number for
16605 breakpoint at main depending on usestubs.
16609 * gdb.base/list.exp: Adjust some alternate expect patterns to
16610 match recent list0.c change. Add alternate expect pattern for
16611 output from `list default lines around main' for optimizing
16616 * lib/gdb.exp: If nosignals is not set, set it to 0.
16620 * config/slite-gdb.exp: Responds to load symbol table prompt.
16621 * gdb.base/break.exp: Adjust line number, fix rerun.
16622 * gdb.base/langs0.c: Add #ifdef usestubs.
16626 * gdb.base/list.exp: Adjust line contents after adding new lines in
16627 list0.c. Also fix a syntax error.
16629 * lib/gdb.exp (gdb_run_cmd): Special handling for targets use stubs.
16630 * gdb.base/break.exp: ditto.
16631 * gdb.base/list.exp: ditto.
16632 * gdb.base/bitfields.c: Add #ifdef usestubs in main().
16633 * gdb.base/run.c: ditto.
16634 * gdb.base/list0.c: ditto.
16635 * gdb.base/funcargs.c: ditto.
16639 * testsuite/config/rom68k.exp (gdb_target_rom68k): Use
16640 $targetname, $serialport and $baud instead of hardwired variables.
16641 * testsuite/gdb.base/{sigall.exp signals.exp}: Skip these if the
16642 target doesn't support signals.
16646 * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1.
16650 * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(.
16651 Don't rely on the value of an auto variable before it has been
16652 initialized. Use gdb_test more.
16656 * lib/gdb.exp (default_gdb_version): A version number must start
16657 with a digit, but other than that contains all characters up to
16658 the first whitespace character.
16662 * gdb.base/commands.exp (breakpoint_command_test): New tests.
16666 * gdb.c++/*.exp: Warn if executable does not exist. The original
16667 reason for skipping the warning was that configure.in sometimes
16668 intentionally skipped building the executables but the tcl code
16669 had no way of knowing. That (a) was always bogus with respect to
16670 error handling, (b) is no longer true (right now there is no way
16671 to skip C++ tests).
16673 * gdb.c++/demangle.exp: Remove unused binfile and srcfile variables.
16677 * gdb.base/list.exp: Add expect patterns for output from
16678 SunPRO compiled executables.
16679 * gdb.base/whatis.exp: Allow leading `signed' for all v_signed_*
16684 * gdb.base/break.exp (test_next_with_recursion): Accept any line
16685 number (we are already testing that the correct source line text
16688 * gdb.base/break.exp: Make one test if $usestubs. I'm not sure
16689 that is what is intended, but something needed to be done to get
16690 sunos4 native working again.
16692 * gdb.c++/misc.cc (main): Fix typo (#iffef -> #ifdef).
16694 * gdb.base/a1-selftest.exp (test_with_self): Remove comment which
16695 apparently went with a (very) old xfail.
16699 * gdb.base/callfuncs.exp: call runto_main instead of runto main.
16700 runto_main is a proc in gdb.exp that will do 'step' for target use
16702 * gdb.base/exprs.exp: ditto.
16703 * gdb.base/interrupt.exp: ditto.
16704 * gdb.base/opaque.exp: ditto.
16705 * gdb.base/printcmds.exp: ditto.
16706 * gdb.base/ptype.exp: ditto.
16707 * gdb.base/scope.exp: ditto.
16708 * gdb.base/setvar.exp: ditto.
16709 * gdb.base/signals.exp: ditto.
16710 * gdb.base/twice.exp: ditto.
16711 * gdb.c++/classes.exp: ditto.
16712 * gdb.c++/inherit.exp: ditto.
16713 * gdb.c++/templates.exp: ditto.
16714 * gdb.base/break.exp: no run and hit main for stubs. Change line
16715 numbers for breakpoints and info breakpoint.
16716 * gdb.base/break.c: Add #ifdef usestubs for set_debug_traps() and
16718 * gdb.base/callfuncs.c: ditto.
16719 * gdb.base/exprs: ditto.
16720 * gdb.base/interrupt.c: ditto.
16721 * gdb.base/opaque0.c: ditto.
16722 * gdb.base/printcmds.c: ditto.
16723 * gdb.base/ptype.c: ditto.
16724 * gdb.base/scope0.c: ditto.
16725 * gdb.base/setvar.c: ditto.
16726 * gdb.base/signals.c: ditto.
16727 * gdb.base/twice.c: ditto.
16728 * gdb.c++/misc.cc: ditto.
16729 * gdb.c++/templates.cc: ditto.
16733 * config/vx-gdb.exp, lib/gdb.exp: Regexp cleanups (\[(\] -> \\(, etc.).
16735 * gdb.base/a1-selftest.exp: Don't check for # followed by a digit
16736 somewhere between `read' and `main.c'. I'm pretty sure the
16737 pattern ".*#\[0-9\].*" was slowing down pattern matching a lot,
16738 and it isn't particularly useful.
16740 * gdb.base/scope.exp: Make test names unique. \[(\] -> \\(.
16744 * gdb.base/commands.exp (infrun_breakpoint_command_test): New test.
16748 * config/mt-slite: add LIBS and -nostdlib.
16749 * config/slite-gdb.exp: add this new file to support sparclite target.
16753 * config/vx-gdb.exp (gdb_load): Update test of vxworks_ld return code.
16755 * gdb.base/a2-run.exp: Change argument to istarget from
16756 "*-*-vxworks" to "*-*-vxworks*".
16757 * gdb.base/{break.exp,default.exp,scope.exp}: Likewise.
16761 * lib/gdb.exp: add proc runto_main, for targets that use stubs, this
16762 will not runto main but do a 'step' to step out of breakpoint().
16763 * config/mt-slite: add -Dusestubs.
16767 * gdb.base/printcmds.exp (test_artificial_arrays): Send ^V@
16770 * gdb.base/signals.exp: Add test for "handle all print".
16771 * TODO: Remove "handle all print". Also remove item about
16772 checking copyright date (I don't like the idea of a spurious FAIL
16773 based on when we run the tests).
16775 * gdb.base/recurse.exp: Enable test for SunOS4. xfail one test
16776 for SunOS4 (reason for failure not investigated). Remove
16777 redundant test for $binfile.
16779 * gdb.base/nodebug.c (array_index): Call malloc.
16781 * gdb.base/{corefile.exp,default.exp}: Make names of "up" tests unique.
16785 * gdb.base/recurse.exp: Update gdb_test invocation to use new
16786 conventions and slightly simplify the matching regexp.
16790 * gdb.base/break.exp: Update gdb_test invocation to use new
16793 * lib/gdb.exp: If noargs is not set, set it to 0.
16795 * gdb.base/nodebug.exp: Comment out redundant test. Make name of
16798 * lib/gdb.exp: Skip CHILL for AIX and Solaris.
16802 * gdb.base/nodebug.exp: It is OK if GDB thinks top and middle have
16803 one argument of type "<non-float parameter>".
16807 * config/rom68k.exp: New file to support Motorola IDP board.
16808 * gdb.base/a2-run.exp: Skip this file if noargs is set.
16809 * gdb.base/break.c: Change things around so that this program
16810 doesn't depend upon args. This is necessary to make remote
16811 targets work (in general, they can't take args).
16812 * gdb.base/break.exp: Don't try to send args to program. Don't
16813 expect output. Also, replace lots of code with gdb_test.
16817 * gdb.base/printcmds.exp (test_character_literals_accepted): Test
16818 printing of '\'' (which is what the comment says we are testing,
16819 even though we were not), not '''.
16820 (test_integer_literals_rejected): Test that printing ''' is an error.
16822 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
16823 gdb.chill/chexp.exp, gdb.base/printcmds.exp,
16824 gdb.c++/cplusfuncs.exp, gdb.chill/callch.exp, gdb.chill/misc.exp,
16825 gdb.chill/pr-6292.exp, gdb.chill/string.exp, gdb.chill/tuples.exp:
16826 Use gdb_test not test_print_accept.
16827 * lib/gdb.exp: Remove test_print_accept.
16829 * gdb.base/signals.exp (signal_tests_1): Make pass message
16830 consistent with fail message.
16832 * gdb.base/whatis.exp: Remove xfails for printing char vs.
16833 unsigned char; the bug (PR 1821) is fixed.
16835 * gdb.base/scope.exp: Remove xfails for PRs 1843 and 1868.
16837 * gdb.base/scope.exp (test_at_localscopes): Call pass for
16838 successful tests--makes xfailing them work right.
16842 * lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
16843 only \r\n, not .*. The test can pass .* as the last thing in
16844 $pattern if that is what it wants. In addition to providing this
16845 flexibility, this change should speed up pattern matching in cases
16846 where the pattern already ended with .* (there were a number of
16847 them). This change also helps catch bad patterns--in the old
16848 scheme the typo "char \*" instead of "char \\*" would pass. Now
16850 * Many .exp files: Update callers.
16852 * gdb.base/funcargs.exp: Replace \[(\]+ with \\(. The latter is
16853 clearer and does not spuriously match multiple ('s. Likewise for
16856 * gdb.base/nodebug.exp: Test ability to call a function and pass
16857 it a string (even with no debugging info).
16859 * gdb.base/printcmds.exp (test_integer_literals_rejected): Change
16860 "p '\'", which is the same as "p ''" once tcl gets done with
16861 quoting, to "p '\\'", which I suspect is what is intended (one
16862 backslash gets sent to GDB).
16864 * gdb.base/printcmds.exp (test_artificial_arrays): New tests.
16868 * gdb.base/a1-selftest.exp: Remove xfail for solaris. The bug (PR
16869 1817) was fixed literally years ago.
16873 * gdb.base/funcargs.exp (call_after_alloca): Remove `next'
16874 test, it causes stepping out of call_after_alloca_subr with
16875 optimizing compilers.
16876 (localvars_in_indirect_call): Consume GDB prompt if `finish'
16879 * gdb.c++/templates.exp: Source templ-info.exp only if
16880 the templates executable exists.
16882 * gdb.c++/misc.cc (class Contains_static_instance,
16883 class Contains_nested_static_instance),
16884 gdb.c++/classes.exp (test_static_members): Test printing of
16885 a class that contains a static instance of the class.
16889 * gdb.base/langs2.c (cppsub_): Don't prototype.
16890 * gdb.base/langs2.cxx (cppsub_): Fix prototype (cosmetic value
16895 * lib/gdb.exp (skip_chill_tests): New procedure.
16897 * gdb.base/signals.exp (signal_tests_1): xfail for irix.
16901 * gdb.disasm/hppa.exp: Delete redundant ".*" at the beginning of
16902 each expect pattern. Cuts runtime from 12 to about 4 seconds.
16906 * gdb.base/langs.exp: Don't insist that foo__Fi be demangled.
16908 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Only
16909 disassemble 8, not 16, instructions for part 4.
16911 * config/vx-gdb.exp (gdb_start): Use \030, not \CX. tcl doesn't
16912 support the latter anymore.
16914 * gdb.base/Makefile.in: Try compiling callfuncs.c, if that fails try
16916 * gdb.base/callfuncs.c: Control use of prototypes based on
16917 NO_PROTOTYPES, not __STDC__.
16918 * gdb.base/callfuncs.exp (do_function_calls): xfail one of the
16919 t_float_values2 tests if prototypes in use.
16921 * gdb.base/callfuncs.c (t_float_values, t_float_values2,
16922 t_double_values): When checking differences against DELTA, check
16923 that difference is within the range (-DELTA,DELTA), not just
16928 * config/mips-gdb.exp (gdb_load): In every test case, we need to do
16929 'file' command firts, then 'target', then 'load', this is due to gdb
16931 * config/mips-gdb.exp: Fix a couple regular exp bugs.
16935 * gdb.disasm/hppa.s (fmemLRbug_tests): Add tests for the indexing
16936 FP load/store variants.
16937 * gdb.disasm/hppa.exp (fmemLRbug_tests): Test new variants.
16941 * gdb.base/term.exp: Do not give a warning if not native, it is
16942 not an abnormal condition.
16946 * gdb.base/ptype.exp: Accept char[0] as well as char[] for "ptype
16951 * lib/gdb.exp (default_gdb_version): Pass GDBFLAGS to gdb when we
16952 are getting the version number.
16954 * gdb.base/{a1-selftest.exp,corefile.exp}: Do not give a warning
16955 if not native, it is not an abnormal condition.
16959 * lib/gdb.exp: Just use "file exists", rather than undocumented
16960 dejagnu procedure "findfile".
16964 * config/mt-vxworks (CFLAGS): Set to -g -Dvxworks.
16965 (LDFLAGS): Set to -Xlinker -Ur.
16967 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB, GDBFLAGS):
16968 Removed, these values are set by lib/gdb.exp.
16970 * lib/gdb.exp: If GDBFLAGS is unset, set it to -nx.
16974 * config/vx-gdb.exp (spawn_vxgdb): Use default_gdb_start instead
16975 of replicating gdb startup code.
16977 * config/mt-vxworks (LDFLAGS): Set to -r.
16978 (CFLAGS_FOR_TARGET): Removed.
16980 * config/vx-gdb.exp: always set prompt; gdb.exp sets it to
16981 (gdb) and gdb for vxworks uses (vxgdb).
16983 * Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
16984 executable is not in the tree and host != target, use sed and
16985 program_transform_name to determine the gdb name used by the
16988 * configure.in, gdb.{base,c++,chill}/configure.in: changed so
16989 *-*-vxworks* matches vxworks and *-*-netware* matches NetWare.
16993 * gdb.base/{callfuncs.exp,callfuncs.c}: Add tests for passing
16994 floats, chars, and shorts where there are ANSI-style function
16997 * gdb.base/langs.exp, gdb.base/langs*: New test.
16998 * gdb.base/Makefile.in: Build it.
16999 * TODO: Remove item about checking that C names don't get C++
17000 demangling applied; this test tests it.
17004 * gdb.stabs/weird.exp: Remove "Haven't examined" comment which
17005 went with the const70 xfail. The xfail went away a year ago.
17007 * gdb.base/signals.exp: Rename a bunch of tests to give unique names.
17009 * gdb.base/corefile.exp: Give backtrace test unique name. xfail
17012 * gdb.base/interrupt.exp: Also xfail hpux (for hp300).
17014 * gdb.base/a1-selftest.exp: Don't run on hp300.
17018 * Makefile.in (site.exp): Set host_alias and target_alias as well
17019 as host_triplet and target_triplet.
17023 * gdb.base/a1-selftest.exp: Invoke stty before starting inferior.
17025 * gdb.base/nodebug.exp: Add xfails for ultrix and irix5 (same
17026 places as other ecoff systems).
17028 * gdb.base/a1-selftest.exp (test_with_self): Don't invoke stty on
17033 * gdb.base/nodebug.c (inner): Use variables so AIX linker doesn't
17035 * gdb.base/nodebug.exp: Accept "function" in addition to "text
17036 variable and "variable" in addition to "data variable".
17037 * gdb.base/nodebug.exp: xfail datalocal and bsslocal tests for AIX.
17039 * gdb.base/list.exp (test_forward_search): Set listsize to 4 not
17041 * gdb.base/list1.c (long_line): Add additional statement at start
17043 * gdb.base/list.exp (test_forward_search): Update line number to
17044 reflect new statement.
17048 * gdb.base/signals.exp: Reinitialize searched source directories
17049 after gdb_start call.
17053 * gdb.disasm/Makefile.in (clean): Delete "errs" file.
17054 * gdb.stabs/Makefile.in: Likewise.
17056 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Revert last
17057 change. Instead split the tests into smaller pieces.
17058 * gdb.disasm/hppa.s: Corresponding changes.
17062 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
17063 Quote ^C when passing it to stty. For some shells ^ is a pipe.
17065 * gdb.base/funcargs.exp: Modify many tests so that every test
17066 either passes or fails. Make some test names unique.
17070 * gdb.base/a1-selftest.exp (test_with_self), gdb.base/interrupt.exp:
17071 Call stty to set interrupt character.
17073 * gdb.disasm/hppa.mt (hppa), gdb.stabs/hppa.mt (weird.o): Check
17074 for HP assembler versus GNU assembler based on actual behavior of
17075 $(CC), rather than assuming that $(AS) is always the GNU assembler.
17077 * TODO: Suggest a few more stepping tests.
17081 * gdb.base/default.exp: xfail no-stack backtraces for h8300,
17082 restart GDB for h8300 after a continue.
17083 (return): Add pattern to match a29k-udi behavior.
17084 * gdb.base/nodebug.exp: Remove obsolete comment.
17085 * gdb.base/regs.exp: New file, testing of register displays.
17086 * gdb.base/return.exp: Fix typo in reference to $objdir.
17087 * gdb.base/whatis.exp: Always start with a fresh GDB.
17091 * gdb.disasm/hppa.exp (all_fpu_comparison_tests): Set timeout
17092 higher, these tests generate a lot of output.
17096 * lib/gdb.exp (gdb_test): Remove catch from around the send. The
17097 code following the catch silently ignored some errors; without the
17098 catch they should be thrown like any other tcl error. Also, the
17099 catch used "" instead of {} which meant all the callers who wanted
17100 to include one of the characters "[]$ had to quote it an extra time.
17101 * gdb.base/{callfuncs.exp,commands.exp,gdbvars.exp,printcmds.exp,
17102 ptype.exp,signals.exp,watchpoint.exp}, gdb.c++/{cplusfuncs.exp,
17103 demangle.exp}, gdb.chill/chexp.exp, gdb.fortran/exprs.exp:
17104 Remove extra quoting.
17108 * gdb.base/commands.exp: Make test names unique; every test either
17109 passes or fails. Update some comments.
17111 * gdb.disasm/hppa.exp (do_system_control_tests): Update.
17115 The following fixes a FAIL caused by the fact that the alpha stabs
17116 configuration didn't use the ".if alpha" code in weird.def.
17117 * gdb.stabs/weird.def (v_comb): Use type attribute to specify 32
17118 bit pointer, so the 32 bit version works even on the alpha.
17119 * gdb.stabs/{alpha.mt,ecoff.mt,aout.sed,hppa.sed,xcoff.sed,weird.def}:
17120 Remove the stuff which allowed us to have separate versions for
17121 alpha and everything else.
17123 * gdb.c++/cplusfuncs.exp (test_lookup_operator_functions): Fix
17124 regexp which "info func operator\[\](" is supposed to match. Fix
17125 string to send to GDB. Note that GDB still doesn't work right. Add a
17126 new test for "info func .perator\[\](" which GDB does handle correctly.
17128 * gdb.base/nodebug.exp: xfail most of the new tests for ecoff systems.
17132 * gdb.c++/classes.exp, gdb.c++/cplusfuncs.exp,
17133 gdb.c++/inherit.exp, gdb.c++/templates.exp, gdb.c++/virtfunc.exp,
17134 gdb.fortran/exprs.exp, gdb.fortran/types.exp, gdb.chill/chexp.exp,
17135 gdb.base/printcmds.exp: Remove passcount, failcount, etc., stuff;
17136 it makes the tests harder to understand and confuses test-o-matic.
17137 The preferred style is that each test provides a PASS or a FAIL,
17138 and has a unique message (e.g. "continue #54" not just "continue")
17139 which is the same for the pass and the fail.
17140 * gdb.fortran/exprs.exp, gdb.fortran/types.exp,
17141 gdb.chill/chexp.exp: Move test_print_accept and test_print_reject
17143 * gdb.base/printcmds.exp: Use test_print_accept. Remove
17144 prt_accept which was basically the same thing. Likewise for
17145 test_print_reject and prt_reject.
17146 * lib/gdb.exp (test_print_reject): Add some more error message
17147 patterns to match from the former printcmds.exp (prt_reject).
17148 * gdb.c++/classes.exp, gdb.base/scope.exp: Remove spurious xfails.
17149 One defect of the passcount stuff is that some of it failed to
17150 report XPASS where appropriate.
17151 * gdb.c++/cplusfuncs.exp (print_addr_of): No longer accept extra
17152 stuff before and after arg in expected pattern.
17153 (test_paddr_operator_functions): Re-do test without print_addr_of;
17154 this is the only test which seems to want extra stuff there.
17158 * gdb.base/nodebug.exp: Update new tests to reflect improved
17159 wording of gdb output.
17161 * gdb.base/nodebug.exp: Add tests to check that "print", "whatis"
17162 and "ptype" work on variables in files compiled without -g.
17163 Replaces commented out "maint print msymbol" tests.
17167 * gdb.base/setvar.c (dummy): Call malloc.
17169 * gdb.stabs/aout.sed: Enclose comments within a sed command to avoid
17170 losing with the irix4 sed.
17172 * gdb.base/sigall.exp (test_one_sig): Add xfail for "get signal
17177 * TODO: Remove items about corefile.exp testing new exec-file and
17178 backtrace; both are now done. Add items about printing enums.
17182 * gdb.base/sigall.exp (test_one_sig): Attempt to recover if
17183 "get signal $thissig" test fails.
17185 * gdb.base/setvar.exp: Check for and reject crazy expected type hacks.
17189 * gdb.base/sigall.c (gen_*): Pass argument to handle_* to avoid
17190 compiler warning with dec alpha compiler.
17192 * gdb.base/commands.exp (if_while_breakpoint_command_test): Remove
17193 extra \n from gdb_test call (this explains why the prompt test
17194 that I removed yesterday was there).
17195 (user_defined_command_test): Remove extra \n and prompt test.
17197 * gdb.base/sigall.c: If SIGABRT == SIGLOST, just act as if SIGLOST
17198 doesn't exist. Likewise if SIGIO == SIGPOLL, pretend SIGPOLL
17200 * gdb.base/sigall.exp: Remove special handling for SIGIO and SIGPOLL.
17201 Also remove alpha workaround, which turns out to be because
17202 SIGABRT == SIGLOST.
17204 * gdb.base/sigall.exp: Add workaround for alpha weirdness.
17206 * gdb.base/help.exp: Don't test "help show".
17210 * gdb.base/commands.exp: Call gdb_exit and gdb_start so that
17211 "set print address" is on.
17212 * gdb.base/commands.exp (if_while_breakpoint_command_test): Don't
17213 pass prompt to gdb_test; gdb_test already looks for the prompt.
17215 * gdb.base/help.exp: Replace most of docstring for "define" with ".*".
17217 * gdb.base/a1-selftest.exp: Don't test "maint dump-me". That test
17218 was a vestige of the manual TESTSTRATEGY, and the purpose of it
17219 was to make sure that gdb can read a core file. But (a) the "read
17220 the corefile" part didn't make it to a1-selftest.exp, we just
17221 delete the corefile after creating it, and (b) we test reading
17222 corefiles in corefile.exp anyway. Also, this test left around a
17223 xgdb process on Solaris.
17225 * gdb.base/corefile.exp: Also test backtrace.
17229 * gdb.base/commands.exp: Test a simple user defined command with
17230 arguments and if/while statements; verify the full user command is
17231 printed by "show user".
17233 * gdb.base/commands.exp: Test if/while commands as part of a
17234 breakpoint command list; verify they appear in breakpoint
17239 * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather
17240 than by dividing by zero.
17244 * gdb.base/watchpoint.exp: hppa*-*-*bsd* no longer has problems
17245 performing an inferior call with watchpoints enabled.
17246 * gdb.base/watchpoint.c (main): Delete second unnecessary read
17251 * gdb.stabs/weird.exp: Allow spaces followed by backspaces in echo
17254 * gdb.c++/classes.exp (test_ptype_class_objects, ptype class Foo):
17255 Add additional pattern for when "int operator int(void);" appears
17256 in a different order.
17260 * gdb.base/signals.exp: Call gdb_exit and gdb_start.
17262 * gdb.base/help.exp: Replace most of docstrings for "info signals"
17263 and "signal" with ".*".
17267 * TODO: Add note about "handle all nostop".
17269 * gdb.base/{sigall.c, sigall.exp}: New test.
17270 * gdb.base/Makefile.in: Add it.
17274 * lib/gdb.exp, gdb.base/corefile.exp: Supply -nw as argument
17275 when invoking GDB, suppresses any windowing interface.
17279 * config/sim-gdb: New file, simulator testing support.
17283 * gdb.base/interrupt.exp: Test calling func1 twice.
17287 * gdb.base/list.exp (test_forward_search): Set timeout higher
17288 when we'll be getting lots of output from gdb.
17290 * gdb.base/a1-selftest.exp: Move code that was inside expect -re
17291 "init_malloc" to after the expect statement. Run it if that
17292 regexp is taken, but also for two others which happen if source
17297 * gdb.base/printcmds.exp: New test, for printing register before
17298 program is running.
17302 * gdb.base/list.exp: Correct some alternate expect patterns
17303 to reflect changes in list1.c.
17307 * TODO: Add item regarding large frames.
17309 * gdb.base/{funcargs.exp, funcargs.c} (call_after_alloca): New test.
17311 * TODO: Remove item about enabling return.exp; it
17312 is enabled. Suggest a few more "return" tests.
17316 * gdb.c++/misc.cc, gdb.c++/inherit.exp: Add testcases for
17321 * gdb.chill/Makefile.in: Put all rule before rules for pr-4975.o
17322 and pr-5646.o, so "make" is the same as "make all", not "make
17327 * gdb.base/list.exp: Adjust expectations to reflect changes in
17329 (test_forward_search): New test proc.
17330 * gdb.base/list1.c (long_line): New function, has long source line.
17334 * gdb.base/a1-selftest.exp: Change initial stepping to know about
17335 additional line of code that was added.
17339 * gdb.disasm/hppa.s: Break the large branching tests into smaller
17340 tests so as not to overflow expect's input buffers.
17341 * gdb.disasm/hppa.exp: Corresponding changes.
17345 Beginnings of template debugging tests.
17346 * gdb.c++/templ-info.cc: New file to test for template
17347 debugging capability of the compiler.
17348 * gdb.c++/Makefile.in: Add rule to build templ-info.exp from
17350 * gdb.c++/templates.cc: Add explicit template instantiations
17351 to enable compiling with -fno-implicit-templates. Add destructor
17352 and 'value' method to T5 class for template tests.
17353 * gdb.c++/templates.exp: Add testcases for printing of template
17354 types, setting breakpoints on template methods and calling a
17359 * gdb.disasm/hppa.exp (branch_tests): Allow any symbol as the
17360 branch target since some assemblers (gas-2.5) may emit a
17361 relocation for the branch instead of resolving it in the
17366 * gdb.base/a1-selftest.exp: Remove RS/6000 xfail for backtrace
17367 through signal handler.
17371 * configure.in (*-*-netware): Use config/mt-netware.
17373 * config/mt-netware: New file.
17374 * config/mt-i386-netware: Removed, separate configs for different
17375 netware architectures are no longer needed now that we have
17380 * gdb.base/exprs.exp: Remove xfail for alpha, it is fixed
17381 by the recent changes to use ANSI C arithmetic conversions.
17385 * gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
17386 bug involving using inferior_pid to figure out whether to select a
17391 * gdb.disasm/hppa.exp: Change arg[0..3] to r[26..23] to
17392 match the current disassembler output.
17396 * gdb.fortran/exprs.exp: Expect VOID instead of void.
17397 * gdb.fortran/types.exp: Escape the expected '*'s in Fortran
17398 types, expect "int" as type of integer values (for now).
17402 * gdb.base/commands.exp: New tests for if/while commands.
17406 * lib/gdb.exp (runto): Replace sub-pattern for hex value
17407 by .*, since hex values have different syntax in Chill mode.
17411 * gdb.c++/demangle.exp (test_arm_style_demangling): Remove
17412 linefeed from expect pattern for repeated types with indices > 9.
17416 First part of Fortran test suite.
17417 * gdb.fortran: New directory.
17418 * gdb.fortran/exprs.exp, gdb.fortran/types.exp: New files.
17422 * gdb.base/default.exp: Update expect pattern for load command
17427 * configure.in: Change i386 to i[345]86.
17428 * gdb.base/configure.in: Likewise.
17429 * gdb.c++/configure.in: Likewise.
17430 * gdb.chill/configure.in: Likewise.
17434 * lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
17435 patterns, since that is not a valid context for comments.
17439 * gdb.c++/demangle.exp (test_arm_style_demangling): Add tests for
17440 repeated types and repeated types with indices > 9.
17444 * gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
17445 2417; old bug has been fixed.
17449 * gdb.base/interrupt.exp: When trying to wake up the inferior,
17450 send the newline ourselves instead of assuming gdb_test will do
17451 so when passed an empty input string.
17453 * gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
17458 * lib/gdb.exp (gdb_test): Don't send anything if the first
17459 argument is an empty string. This makes cases where we want to
17460 match output that is already in expect's buffers (for example,
17461 matching a breakpoint after gdb_run_cmd has been called) work
17466 * config/netware.exp: New file.
17470 * config/mt-slite (LDFLAGS): If using the newlib in the tree, set
17471 the -B and -L prefixes so we can find the debugging stub.
17473 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
17474 there and we are using the gcc from the tree.
17476 * gdb.base/types.c: Removed.
17478 * gdb.base/configure.in: Look for makefile fragments in ../config.
17479 Recognize i386-*-netware.
17480 * gdb.c++/configure.in: Likewise.
17484 * gdb.base/corefile.exp: Change `else if' to `elseif', which is
17485 the correct TCL syntax.
17489 * gdb.base/opaque.exp: use runto instead of messing around with
17490 breakpoints. Simplify by using gdb_test.
17492 * gdb.base/bitfields.exp: restart between tests on netware targets
17493 because breakpoints aren't relocated after target death. Run
17494 processes to completion.
17496 * gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.
17500 * Makefile.in: Remove extra tabs that confuse some versions
17501 of "make". Use the newly built gdb to test with by default,
17502 rather than the first one in the tester's search path.
17506 * gdb.base/whatis.exp (v_signed_short_array): Fix a typo.
17508 * gdb.base/help.exp: Update expected add-symbol-file, ignore, and
17513 * lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
17515 * lib/gdb.exp (gdb_run_cmd): New function, used to start program
17517 * gdb.base/bitfields.exp: Use gdb_run_cmd to start program.
17518 * gdb.base/funcargs.exp: Likewise.
17520 * gdb.base/bitfields.exp: Simplify by using gdb_test.
17521 * gdb.base/funcargs.exp: Likewise.
17523 * lib/gdb.exp (gdb_test): if match times out, don't call fail if
17528 * gdb.base/{a2-run,callfuncs,funcargs,interrupt,mips_pro,nodebug,
17529 return,signals,twice}.exp: Handle non-existant binaries
17532 * gdb.base/corefile.exp: Execute coremaker to generate core dump.
17533 * gdb.base/Makefile.in: Don't try to generate a core dump, we
17534 might testing a cross development system.
17538 * Makefile.in (RUNTEST_FOR_TARGET): Fix relative pathname, the
17539 runtest script is relative to ${srcdir}, not ${rootdir}.
17543 * gdb.base/signals.exp: Allow for optionality of breakpoint
17548 * gdb.base/{ptype.exp,ptype.c}: Add t_char_array test.
17552 * gdb.c++/cplusfuncs.cc: Include <stddef.h>, not <sys/types.h>,
17553 for size_t definition.
17554 * gdb.c++/templates.cc: Likewise
17556 * config/mt-i386-netware: New file.
17558 * gdb.base/interrupt.c: Do not test if errno == EINTR if it's not
17561 * gdb.base/Makefile.in: Added support for systems that name core
17562 files by appending "core" to the program name.
17563 * gdb.base/a1-selftest.exp: Likewise.
17567 * gdb.base/return.exp: Add comment and message for `return double'
17568 test failure on Sparc Solaris.
17572 * lib/gdb.exp (runto): Allow for optionality of breakpoint address.
17576 * gdb.c++/misc.cc: Instantiate classes to inhibit the compiler
17577 from optimizing them away.
17578 * gdb.c++/classes.exp, gdb.c++/inherit.exp: Update ptype expect
17579 patterns to include default constructors and assignment operators,
17580 to match gcc versions beyond 2.5.8. Accept any cplus demangling
17581 character in the output of the virtual base pointer.
17585 * gdb.c++/cplusfuncs.exp: Use string_to_regexp and a regular
17586 expression match in print_addr_of to avoid unintented matches.
17587 * gdb.c++/virtfunc.exp: Accept alternate ptype output of g++
17588 versions up to 2.5.8.
17592 * gdb.base/list.exp: Tweak alternate pattern for listing of an
17593 included file to run under newer versions of expect.
17594 * gdb.c++/demangle.exp: Add spaces to the expect patterns between
17595 consecutive >'s in templates to accomodate recent cplus-dem.c change.
17596 Remove xfail for the virtual table of BDDHookV.
17600 * lib/gdb.exp (string_to_regexp): Set a default result.
17601 (default_gdb_start): Fix misleading message.
17605 * config/mt-a29k-udi, config/mt-i960-nindy, config/mt-sparc-aout:
17606 Remove all CC, etc definitions.
17607 * config/mt-hpux: New file.
17608 * config/mt-mips-ecoff (CFLAGS_FOR_TARGET): Remove:
17609 (CFLAGS, LDFLAGS): Define.
17610 * config/mt-slite (CFLAGS_FOR_TARGET): Change to LDFLAGS.
17612 * Makefile.in (site.exp): Don't insert host_os, etc.
17613 (just-check): Just use RUNTEST with RUNTESTFLAGS only.
17614 (distclean): Check existence of subdir.
17615 * gdb.base/configure.in (hppa*-*-hpux*): Recognize.
17616 * gdb.base/Makefile.in: General cleanup and simplification.
17617 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
17618 to build executables. Use default rule to build .o files.
17619 (EXPECT, RUNTEST, CC): Fix relative pathname.
17620 (site.exp): Don't insert host_os, etc.
17621 * gdb.base/signals.c (main): Don't call signal unless SIGALRM
17622 and/or SIGUSR1 defined.
17623 * gdb.base/watchpoint.c: Don't include stdio.h a second time.
17624 * gdb.c++/Makefile.in: General cleanup and simplification.
17625 Use CC, CFLAGS, and LDFLAGS instead of ..._FOR_TARGET versions
17627 (EXPECT, RUNTEST_FOR_TARGET, CXX): Fix relative pathname.
17631 * gdb.base/recurse.exp: Misc changes to get tests running again
17632 after Kung's changes to the watchpoint code.
17633 * gdb.base/watchpoint.exp: Likewise.
17637 * lib/gdb.exp (string_to_regexp): Convert {\} also.
17641 * config/udi-gdb.exp, config/unix-gdb.exp: Call default_gdb_start.
17642 * lib/gdb.exp (default_gdb_start): Define.
17643 * gdb.base/bitfields.exp, gdb.base/break.exp, gdb.base/exprs.exp,
17644 gdb.base/funcargs.exp, gdb.base/opaque.exp,
17645 gdb.base/printcmds.exp, gdb.base/ptype.exp, gdb.base/recurse.exp,
17646 gdb.base/scope.exp, gdb.base/setvar.exp, gdb.base/watchpoint.exp,
17647 gdb.c++/classes.exp, gdb.c++/misc.exp, gdb.c++/virtfunc.exp:
17648 Don't call gdb_target_udi in between tests.
17652 * gdb.c++/demangle.exp: Use gdb_test_exact, rather than demangle
17653 (which was basically just a local version of the same thing). In
17654 addition to avoiding duplication, gdb_test_exact is faster.
17655 * lib/gdb.exp (gdb_test_exact): Fix typo.
17657 * lib/gdb.exp (delete_breakpoints): If there were no breakpoints,
17658 don't give an error.
17660 * gdb.base/term.exp: Call delete_breakpoints before starting.
17662 * gdb.base/Makefile.in (EXECUTABLES): Remove t10.
17663 (t10): Add comment.
17667 Reorganization of the GDB Test Suite.
17669 * gdb.base: New directory, contains all the basic tests.
17670 * gdb.c++: New directory, tests specific to C++.
17671 * gdb.chill: New directory, tests specific to Chill.
17672 * gdb.t00, gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06,
17673 gdb.t07, gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13,
17674 gdb.t15, gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23,
17675 gdb.t24, gdb.t30, gdb.t31: Removed directories, contents moved
17676 into appropriate new directories (t00-t17 to base, t20-t23 to c++,
17678 * */gdbme.*: Rename to match appropriate expect scripts.
17679 * gdb.base/bitfields.c, gdb.base/break.c, gdb.base/callfuncs.c,
17680 gdb.base/coremaker.c, gdb.base/exprs.c, gdb.base/funcargs.c,
17681 gdb.base/interrupt.c, gdb.base/list0.c, gdb.base/list0.h,
17682 gdb.base/list1.c, gdb.base/mips_pro.c, gdb.base/nodebug.c,
17683 gdb.base/opaque-info.c, gdb.base/opaque0.c, gdb.base/opaque1.c,
17684 gdb.base/printcmds.c, gdb.base/ptype.c, gdb.base/recurse.c,
17685 gdb.base/return.c, gdb.base/run.c, gdb.base/scope0.c,
17686 gdb.base/scope1.c, gdb.base/setvar.c, gdb.base/signals.c,
17687 gdb.base/types.c, gdb.base/twice.c, gdb.base/watchpoint.c,
17688 gdb.base/whatis-info.c, gdb.base/whatis.c: New names of C files.
17689 * gdb.c++/cplusfuncs.cc, gdb.c++/templates.cc, gdb.c++/misc.cc,
17690 gdb.c++/virtfunc.cc: New names of C++ files.
17691 * gdb.chill/chillvars.ch: New name of Chill file.
17692 * gdb.base/configure.in, gdb.c++/configure.in,
17693 gdb.chill/configure.in: Merge in contents of gdb.t*/configure.in.
17694 * gdb.base/Makefile.in, gdb.c++/Makefile.in,
17695 gdb.chill/Makefile.in: Merge in contents of gdb.t*/Makefile.in.
17696 * configure.in (configdirs): Update to reflect directory changes.
17697 (target_abbrev): No longer define for any configuration.
17698 * Makefile.in: Cosmetic improvements to header comments.
17702 Various changes to gdb.t31:
17704 * Makefile.in (gdbme.o): Compile with -fspecial_UC.
17705 * gdbme.ch: Make all key-words and predefineds be upper-case.
17706 * chillvars.exp: Expect key-words and predefinds in upper-case.
17708 * chillvars.exp: Use gdb_test_exact many places.
17709 Change expected output for arrays (which now includes index labels).
17711 * pr-5020.exp, gdme.ch (module PR_5020):
17712 New test, for PR-5020.
17716 * lib/gdb.exp (string_to_regexp, gdb_test_exact): New procedures.
17717 * Makefile.in (CHILL_LIB): Remove bogus redundant definitions.
17721 * Makefile.in: Fix bit-rot in definitions of CHILL,
17722 CHILL_FOR_TARGET and Chill_LIB.
17723 * gdb.t31/gdbme.ch: Fix syntax of nested array tuples.
17724 * gdb.t31/Makefile.in: Add definitions for CHILLFLAGS,
17725 CHILL, and CHILL_LIB.
17729 * Revert the previous changes. Please see Rob's directory
17730 /lisa/test/rob/progressive/gdb/testsuite for these fixes.
17734 * Makefile.in, configure.in, config/mips-gdb.exp,
17735 config/mt-a29k-udi, config/mt-i386-aout, config/mt-i960-nindy,
17736 config/mt-sparc-aout, config/udi-gdb.exp, config/unix-gdb.exp,
17737 config/unknown.exp, gdb.t00/default.exp, gdb.t00/help.exp,,
17738 gdb.t00/teststrategy.exp, gdb.t01/Makefile.in, gdb.t02/Makefile.in,
17739 gdb.t02/whatis.exp, gdb.t03/Makefile.in, gdb.t03/gdbme.c,
17740 gdb.t04/Makefile.in, gdb.t05/Makefile.in, gdb.t06/Makefile.in,
17741 gdb.t06/break.exp, gdb.t06/signals.c, gdb.t06/signals.exp,
17742 gdb.t08/Makefile.in, gdb.t08/opaque.exp, gdb.t09/Makefile.in,
17743 gdb.t10/Makefile.in, gdb.t11/Makefile.in, gdb.t12/Makefile.in,
17744 gdb.t13/Makefile.in, gdb.t15/Makefile.in, gdb.t15/funcargs.exp,
17745 gdb.t15/gdbme.c, gdb.t15/return.exp, gdb.t16/Makefile.in,
17746 gdb.t17/Makefile.in, gdb.t17/callfuncs.exp, gdb.t17/gdbme.c,
17747 gdb.t20/Makefile.in, gdb.t21/Makefile.in, gdb.t21/cplusfuncs.exp,
17748 gdb.t22/Makefile.in, gdb.t22/virtfunc.exp, gdb.t23/Makefile.in,
17749 gdb.t24/demangle.exp, lib/gdb.exp: Check in Rob's testing
17754 * config/mt-lynx, config/mt-m68k, config/mt-mips-ecoff,
17755 config/mt-slite, config/mt-unix, config/mt-vxworks: Add
17756 Rob's new testing fragments.
17760 * config/mips-gdb.exp, config/udi-gdb.exp, config/vx-gdb.exp,
17761 lib/gdb.exp: Replace error proc calls with perror.
17765 * gdb.t00/teststrategy.exp: Reorder so that AIX gdb can print the
17766 version also, match on casted version strings, and match on
17767 gdb startup case where the line numbers might be messed up.
17771 * config/mt-i960-vx (LDFLAGS): Add '-r' option for test links.
17772 (CFLAGS): Delete it from here.
17776 * gdb.t22/virtfunc.exp: Fix g++ ptype expected outputs.
17780 * Makefile.in (RUNTEST): Default to just "runtest".
17784 * gdb.t17/callfuncs.exp: More comments about t_func_values tests.
17785 * gdb.t17/gdbme.c (t_func_values): Add comments about how and why
17786 the code has been restructured.
17790 * gdb.t00/default.exp (set write): Allow any number of \r and/or
17791 \n, not just one of each.
17793 * gdb.t07/gdbme.c (main): Don't take address of an array; SunOS4
17794 /bin/cc gives a warning if you do.
17798 * gdb.t24/demangle.exp: change expect pattern of
17799 __t10ListS_link1ZUiRCUiPT0
17803 * gdb.t07/{recurse.exp, recurse.c}: New tests for watchpoints
17804 on local variables in recursive functions.
17806 * gdb.t07/Makefile.in: Build the new test.
17810 * gdb.t17/gdbme.c (t_func_values): Do not compare function pointers
17811 directly. Instead compare the return values from actual calls.
17815 * Makefile.in (check): Set TCL_LIBRARY for runtest.
17819 * From Peter Schauer with minor modifications.
17820 * gdb.t15/return.exp (return_tests): Handle targets where "return"
17821 stops in mid-line in the caller. Add xfail for returning a float
17822 value on X86 targets.
17826 * gdb.disasm/hppa.exp (fcmp_tests): Break up into two halves
17827 to avoid expect lossage.
17828 (fmem_LRbug_tests): Likewise.
17829 * gdb.disasm/hppa.s: Corresponding changes.
17831 * gdb.disasm/hppa.exp: Rework escape sequences and end-of-line
17832 conditions to work with latest dejagnu/expect.
17834 * gdb.t15/funcargs.exp (finish from indirect call): No longer
17835 expected to fail on the PA.
17836 (backtrace in call with trampolines): Explicitly require main
17837 to be frame #1 (no trampolines should show up in backtrace).
17839 * gdb.t00/default.exp: Use "exp_continue" rather than obsolete
17840 "continue -expect".
17841 * gdb.t06/break.exp: Likewise.
17842 * gdb.t07/watchpoint.exp: Likewise.
17843 * gdb.t13/bitfields.exp: Likewise.
17844 * gdb.t15/{funcargs,return}.exp: Likewise.
17845 * gdb.stabs/weird.exp: Likewise.
17846 * config/{mips,udi}-gdb.exp: Likewise.
17848 * hppa.sed: Enclose comments within a sed command to avoid
17849 losing with the old OSF1 sed.
17853 * gdb.t02/whatis.exp, gdb.t08/opaque.exp: Add XFAILs for
17855 * gdb.t06/signals.exp: Add clear_xfail for sequent dynix.
17856 * gdb.t15/funcargs.exp: Conditionally step again to really
17857 finish from marker_call_with_trampolines. Handle the case where
17858 the first step from within call_with_trampolines already steps
17860 * gdb.t15/gdbme.c: Add comment to closing brace of
17861 call_with_trampolines for funcargs.exp.
17865 * gdb.t07/watchpoint.exp (test_watchpoint_triggered_in_syscall):
17870 * gdb.t07/gdbme.c: More code for watchpoint testing.
17872 * gdb.t07/watchpoint.exp: Accept both "Watchpoint" and
17873 "Hardware watchpoint" throughout file.
17874 (test_watchpoint_triggered_in_syscall): New test.
17875 (test_complex_watchpoint): New test.
17879 * gdbme.c (call_with_trampolines): New function to try and step
17880 into. Tests trampoline problems on the PA.
17882 * funcargs.exp (localvars_in_indirect_call): No longer expect
17883 stepping into indirect call to fail on PAs.
17884 (test_stepping_over_trampolines): New test.
17888 * TODO: Add suggestions for static member function tests, and
17893 * TODO: Add suggestions for "p/a" tests.
17895 * lib/gdb.exp: Set prompt to (gdb) if it isn't already set.
17896 (default_gdb_exit): Replace all the hair with sending "quit" to
17897 the process with a simple close.
17901 * TODO: Add suggestions for shared library tests.
17905 * TODO: Add suggestions for x/s tests.
17909 * gdb.t00/help.exp: Replace most of docstrings for "tbreak",
17910 "enable once", and "enable breakpoints once" with ".*".
17914 * TODO: Add suggestions about structure passing tests.
17918 * gdb.t03/gdbme.c: gcc version 1 puts out the wrong stabs for
17919 the primary1 test, use work around if __GNUC__ < 2.
17920 * gdb.t06/signals.c: Add comments for signals.exp pattern matching.
17921 * gdb.t06/signals.exp: Add XFAILs for i386 bsd and vax ultrix.
17922 Test for bad output rather than waiting for timeout. Issue
17923 second continue only if first continue failed.
17927 * gdb.t21/cplusfuncs.exp (test_paddr_operator_functions): Do
17928 operator[] test with gdb_test because the old code didn't seem to
17929 be getting the quoting right with the new dejagnu.
17933 * lib/gdb.exp: Set GDB to a fresh gdb if there is one, else use
17935 * Makefile.in: Use a fresh expect if there is one, use runtest
17936 from the src tree if there is one.
17940 * gdb.t06/break.exp (test_next_with_recursion): Remove xfail for
17941 next over recursive call. Revise the tests from that point on
17942 (which had been skipped) to match GDB's actual (correct) output.
17944 * gdb.t07/watchpoint.exp (test_stepping): Remove xfail for bug
17945 with next over a breakpoint whose condition is false.
17947 * gdb.t00/help.exp: Comment out "help set print" tests just like
17948 (and for same reason as) "help set" test.
17952 * gdb.disasm/hppa.s (fmemLRbug_tests): New tests.
17953 * gdb.disasm/hppa.exp (fmemLRbug_tests): Run them.
17957 * gdb.t06/break.exp (test_next_with_recursion): Remove no longer
17958 necessary gdb_target_udi.
17960 * gdb.t03/ptype.exp: For UDI, skip tests which call malloc.
17962 * gdb.t02/whatis.exp, gdb.t03/ptype.exp: Remove xfails for PRs
17963 1838 and 2417; they are fixed.
17965 * gdb.t02/whatis.exp (v_char_array, v_signed_char_array),
17966 gdb.t03/ptype.exp (ptype structure, ptype union):
17967 Remove xfails; the test is looser than when the xfails were added.
17969 * gdb.t00/{help.exp,default.exp}: Don't test "target remote" on UDI.
17970 * gdb.t00/help.exp: Don't expect remote to be in "help target" output.
17972 * gdb.t01/run.exp: Only run shell test if isnative.
17974 * config/udi-gdb.exp (gdb_load): Use "file", not "load" command,
17975 since "run" automatically loads if necessary. Call gdb_target_udi
17976 after the "file" since "file" kills any execution target.
17978 * config/udi-gdb.exp (gdb_start): Don't send "set args main" to
17979 GDB. GDB doesn't work that way (not anymore at least) on UDI.
17980 * gdb.t01/run.exp, gdb.t06/break.exp: Don't pass extra first
17985 * gdb.t17/interrupt.c: If we get EINTR, don't print an error message.
17987 * gdb.t17/callfuncs.exp: Add xfails for rs6000.
17991 * gdb.t24/demangle.exp: Re-write demangle to just call gdb_test,
17992 properly quoting regexps. This makes the second argument to
17993 demangle a fixed string, which matches the callers, instead of a
17994 shell-style pattern which is what the previous implementation
17995 used. Update some of the callers.
17999 * gdb.disasm/hppa.s (comib_tests): Add missing instruction.
18000 (comib_nullified_tests): Fix typo.
18001 * gdb.disasm/hppa.exp (all comb tests): Fix thinkos in expect
18002 strings. No longer expected to fail.
18004 * gdb.disasm/hppa.s (addib_tests): Fix typo.
18005 * gdb.disasm/hppa.exp (all addb tests): Fix thinkos in expect
18006 strings. No longer expected to fail.
18008 * gdb.disasm/hppa.exp (fmpy_addsub_tests): Fix typo in expect
18009 string. No longer expected to fail.
18013 * gdb.disasm/hppa.exp (fcmp_tests): Fix thinko in expect string.
18014 No longer expected to fail.
18016 * gdb.disasm/hppa.exp (xmpyu_tests): Fix buglet in expect
18017 string. No longer expected to fail.
18021 * gdb.t24/demangle.exp: Remove a bunch more tests which differ
18022 only in the names (I probably got most of them). I was even
18023 generous with some which differed in underscores in names, and
18024 probably missed a few, and I *still* was able to remove almost a
18025 third of the file with almost no impact on testsuite coverage.
18029 * gdb.t00/default.exp: Match udi_attach error message as well as
18030 the one from child_attach.
18032 * gdb.t00/default.exp: Use "." instead of "?" to match a question mark.
18034 * gdb.stabs/weird.exp: Remove xfail for const70; just fixed in GDB.
18036 * gdb.stabs/weird.def (bad_neg0type): Size of this type is 16, not 8.
18037 * gdb.stabs/weird.exp: Remove xfail for "p bad_neg0"; this fixes it.
18039 * Move test with enums and partial symbols back to
18040 gdb.t03/{ptype.exp,gdbme.c} from gdb.stabs/{weird.def,weird.exp}.
18041 Reverts the change of 26 May 93. Per today's change to
18042 stabs.texinfo, the behavior that weird.exp was expecting was
18043 unreasonable; what is important is that the compiler+gdb get
18044 things right, which happens with a recent gcc. Also fix the test
18045 to deal with native compilers which put out the stab gdb can't
18050 * gdb.t24/demangle.exp: Remove a bunch of tests which differ only
18051 in the names. The main thing these accomplish is to slow things down.
18052 Many more such duplicates surely remain.
18054 * gdb.t00/help.exp: Comment out "help support" test just like
18055 (and for same reason as) "help set" test.
18059 * gdb.t06/break.exp: Remove setup_xfails for
18060 sparc-sun-solaris2.*, these tests now pass with latest gcc and gdb.
18061 * gdb.t20/inherit.exp (test_ptype_si): Update warning message
18062 about known bug in gcc to include up through 2.5.8.
18063 * gdb.t20/inherit.exp (test_ptype_vi): Accept "_vb." as well as
18065 * gdb.t21/cplusfuncs.exp (test_lookup_operator_functions):
18066 Remove setup_xfails for sparc-sun-solaris2.*, these tests now pass
18067 with latest gcc and gdb.
18068 * gdb.t22/virtfunc.exp (test_ptype_of_classes): Accept "_vb." as
18073 * configure.in (hppa*-*-*): Also configure and build stabs-only
18078 * gdb.t10/hppa.mt: A makefile fragment for the PA.
18079 * gdb.t10/configure.in (hppa*-*-*): Use it.
18083 * gdb.t09/corefile: Increase timeout when spawning gdb explicitly.
18087 * gdb.t06/signals.exp: Handle blocked SIGTRAP on sun3 for bash
18088 versions prior to 1.13.5.
18092 * gdb.t00/default.exp (show prompt): In FAIL case, only match if
18093 the prompt is at the start of a line.
18097 * gdb.disasm/hppa.s: Add new tests for sfu and copr instructions.
18098 Enable "diag" instruction. Delete copr from fpu_misc_tests, it's
18099 in the copr tests now.
18100 * gdb.disasm/hppa.exp: Run new sfu and copr tests. Do not expect
18101 copr in the fpu_misc tests anymore. fpu_misc tests are no longer
18106 * gdb.t00/teststrategy.exp, gdb.t07/watchpoint.exp,
18107 gdb.t31/chillvars.exp, lib/gdb.exp:
18108 Tweak to run under either version of expect.
18109 * lib/gdb.exp (default_gdb_exit): Remove "catch" statement.
18110 * gdb.t00/teststrategy.exp: Use isnative and verbose procedures.
18111 * gdb.t11/list.exp: Remove extraneous whitespace.
18115 * gdb.t16/printcmds.exp (test_print_strings): Accept
18116 "(unsigned char *) " before the string.
18118 * TODO: Add notes about printing of fancy types and GDB expressions.
18122 * Makefile.in: Pass LDFLAGS and LIBS to sub-makes.
18123 * gdb.t06/configure.in: Don't try to compile signals test program
18124 if doing mips-idt-ecoff.
18128 * Most .exp files: Tweak to run under either version of expect.
18132 * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
18133 xfails; I'm not sure why they are failing, but not because of PR 1806.
18137 * config/unix-gdb.exp: Remove gdb_unload cause it's already
18138 defined in lib/gdb.exp.
18142 * gdb.t07/watchpoint.exp: Clear xfail for calling function with
18143 watchpoint enabled on mips, CALL_DUMMY_BREAKPOINT_OFFSET got defined.
18144 * gdb.t20/gdbme.cc, gdb.t21/gdbme.cc: Conversion operator functions
18145 have to be typeless.
18149 * TODO: Add suggestion for copyright year test.
18153 * configure.in (*-*-lynxos*): Add stabs tests.
18157 * gdb.stabs/hppa.sed: Only lables should ever start in column zero,
18158 so insert a tab before any assembler directive in column zero.
18160 * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
18162 * gdb.disasm/hppa.s (fpu_memory_indexing_tests): Add FP quadword
18164 (fpu_short_memory_tests): Likewise.
18168 * gdb.stabs/ecoff.mt: Delete alpha specific if block, fix typo.
18169 * gdb.stabs/ecoff.sed: Escape inserted blanks with backslashes, embed
18170 .stabs directives in comments.
18174 * TODO: New file, describing tests we could write.
18175 * gdb.t09/corefile.exp: Move description of tests to write to TODO.
18179 * gdb.t06/signals.exp: Add kludge to force re-sync.
18181 * gdb.t00/teststrategy.exp: If we accidently send the "maint dump-me"
18182 to xgdb instead of gdb, get out of gdb.
18186 * lib/gdb.exp: Make GDB and GDBFLAGS global so the scoping work
18191 * gdb.stabs/hppa.mt: A makefile fragment for the PA.
18192 * gdb.stabs/configure.in (hppa*-*-*): Use it.
18193 * gdb.stabs/hppa.sed: New sed script for the PA.
18197 * gdb.stabs: Re-write weird.def and configuration to use sed
18198 instead of cpp. sed is portable and POSIX; cpp is neither.
18202 * gdb.t06/signals.exp: Remove one sun3 XFAIL which has been fixed.
18206 * gdb.t20/gdbme.cc: Add comment about pmi being optimized out.
18210 * gdb.stabs/weird.exp, gdb.t22/virtfunc.exp: Accept "_vb." as well as
18212 * gdb.t00/teststrategy.exp: Add xfail for RS/6000.
18213 * gdb.t03/ptype.exp: Add comments and messages about FAILs with xlc.
18217 * lib/gdb.exp: Comment out code which depends on non-existent
18218 `transform' procedure.
18222 * lib/gdb.exp (default_gdb_exit): Remove `catch "close"'.
18223 * lib/gdb.exp: Transform tool name.
18224 * gdb.t*/*.exp: Change error to perror so it works with DejaGnu
18225 1.1's new error handling system.
18229 * Makefile.in, gdb.t2*/Makefile.in: Add -O to CXXFLAGS.
18233 * gdb.t00/default.exp: Avoid tests with a lot of .* in them.
18234 They made pattern matching so slow that timeouts happened on
18235 heavily loaded systems. Now any output from "show print" which
18236 gets us back to the GDB prompt is a PASS.
18238 Mon Oct 25 14:36:50 1993 Stu Grossman (grossman at cygnus.com)
18240 * gdb.disasm/hppa.mt: Use $(srcdir) in hppa.o make rule.
18244 * gdb.t06/signals.exp: Skip whole file with xfail for HPPA.
18246 * gdb.t24/demangle.exp: Remove "3220" from the one remaining xfail.
18247 It is not from PR 3220.
18251 * gdb.t00/{help.exp,default.exp}: Loosen up a few more tests which
18252 just started failing because they depended on the order the
18253 subcommands are presented, or exact docstring text. This kind of
18254 test is a pain and has minimal benefit.
18258 * gdb.t09/corefile.exp: At end of test, use "core" command with
18261 Wed Oct 20 08:56:02 1993 Stu Grossman (grossman at cygnus.com)
18263 * gdb.t{01 02 03 04 05 06 07 08 09 10 11 12 13 15 16
18264 17}/Makefile.in: Make it possible to run the testsuite with Sun
18265 make and CC = cross gcc by adding explicit build rules for .o
18270 * gdb.t15/funcargs.exp: Don't put comments on same line as
18271 setup_xfail (@#$*%& tcl braindamage!).
18275 * gdb.disasm/hppa.exp: Use $objdir/$subdir/$binfile not just $binfile.
18279 * gdb.t20/classes.exp: 'const xxx &' becomes 'xxx const &'.
18280 * gdb.t20/inherit.exp: remove three dumplicate entries.
18284 * gdb.t06/break.exp: For "next over recursive call", fail on any
18285 incorrect output, not just on "factorial (value=2)".
18289 * gdb.t12/scope.exp: Remove xfails, filename::var syntax should be
18290 working now. Add an xfail if accesing a bss variable causes
18291 a memory error if the target is not yet run.
18295 * gdb.t24/demangle.exp: Clean up spacing (2 strings), inclusion of
18296 constructor name (2 string), name of _GLOBAL_ demangling (2 strings),
18297 name of __st* demangling (2 strings). Did Kung really get the
18298 more than 95 others right without testing them?
18302 * gdb.t24/demangle.exp: clean up XFAILS, more than 100
18306 * configure.in (configdirs): Add gdb.disasm
18307 * gdb.disasm: New directory for GDB disassembler tests.
18308 * gdb.disasm/hppa.{exp,s,mt}: Disassembly tests for the HPPA.
18312 * gdb.t00/help.exp: Don't test "help set".
18314 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Remove all xfails
18315 from within expect statements. None of these happen anymore and
18316 they cause regressions to be silently unnoticed.
18318 * gdb.t20/inherit.exp, gdb.t22/virtfunc.exp: Add notes (in failure
18319 messages) about known failures with gcc cygnus-2.4.5-930417.
18321 * gdb.t02/Makefile.in, gdb.t08/Makefile.in: Make all depend on
18322 comp-info.exp so it gets built if it doesn't exist.
18324 * gdb.t13/{Makefile.in,bitfields.exp}: Remove comp-info.exp stuff;
18325 it is no longer used.
18326 * gdb.t13/comp-info.c: Removed.
18330 * gdb.t06/signals.exp: Add xfail for sun3.
18334 * gdb.t17/interrupt.exp: Add xfail for Irix (currently not really
18335 relevant because ^C doesn't get sent but failure can be reproduced
18340 * gdb.stabs/alpha.mt: New configuration file for alpha.
18341 * gdb.stabs/configure.in: Use it.
18342 * gdb.stabs/ecoff.mt, weird-ecoff.sed: Change sed script to enable
18343 sharing with alpha.mt, redefine long to word via preprocessor.
18344 * gdb.stabs/weird.def: Conditionally adapt storage layout of v_comb
18346 * gdb.stabs/weird.exp: Handle compilation of weird.s by alpha
18348 * gdb.t00/teststrategy.exp: Change expect string so that we
18349 consume the `(xgdb)' from the command echo and from the gdb prompt.
18350 * gdb.t05/expr.exp: xfail "print unsigned int == (~0)" on the alpha.
18351 gdb currently compares all values as long, so this failure probably
18352 applies to any configuration where LONGEST is bigger than a target int.
18353 * gdb.t08/comp-info.c: New file to determine if gdbme is compiled
18355 * gdb.t08/Makefile.in, opaque.exp: Use it. Alpha native cc is unable
18356 to handle opaque pointers, gcc is.
18357 * gdb.t21/gdbme.cc, gdb.t23/gdbme.cc: operator new takes a size_t
18358 as first argument. Include <sys/types.h> and change all operator
18359 new definitions to use size_t.
18360 * gdb.t21/cplusfuncs.exp: Handle changes in output for operator new
18361 now that we use size_t.
18365 * gdb.t03/ptype.exp, gdb.t15/printcmds.exp: When constructing
18366 a long or float array cast all array members to the same type.
18367 * gdb.t04/setvar.exp: Handle the decimal output of an unsigned long
18369 * gdb.t07/watchpoint.exp: Add finish and until variations encountered
18371 * gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Add xfails for alpha.
18375 * gdb.t24 (demangle.exp): Constructors of templates have names like
18376 vector<int>::vector(int) not vector<int>::vector<int>(int). See
18377 section 14.6 of the ARM.
18379 * gdb.t24 (demangle.exp): Remove a whole bunch of tests of the form
18380 "_vt$MoveCmd"; these differ only in name from "_vt$foo", so they
18381 accomplish little and slow down the testsuite.
18383 * gdb.t24 (demangle.exp): Accept "XXX const" as well as "const XXX".
18384 Accept spaces various places.
18388 * gdb.t07/watchpoint.exp: On sparc, clear xfail for calling function
18389 with watchpoint enabled.
18391 * Makefile.in: Remove definition of CC and remove the second
18392 definition of CXX (the "CXX = gcc" one remains). These definitions
18393 were causing backquotes to be expanded within backquotes, which
18398 * gdb.t17/callfuncs.exp: Add "return 0" to end.
18402 * gdb.stabs/ecoff.mt: Remove STABSCC hack.
18403 * gdb.stabs/weird.exp: Handle the case where weird.o is compiled
18404 by mips cc and contains no stabs entries.
18408 * config/vx-gdb.exp: Use fake device to load files rather than
18410 * lib/gdb.exp: New proc to do "file" command.
18411 * config/unix-gdb.exp: Use new "file" proc.
18415 * config/mips-gdb.exp (gdb_load): Increase timeout to 2400.
18416 Rework board rebooting slightly.
18417 (gdb_exit): Don't exit from the remote shell; there isn't one.
18418 * gdb.stabs/weird.exp: If a program is being debugged already,
18420 * gdb.t04/setvar.exp: Stop and restart gdb.
18421 * gdb.t05/expr.exp: Likewise.
18422 * gdb.t07/watchpoint.exp: If target is mips-idt-*, stop and
18423 restart gdb and reload the program.
18424 * gdb.t08/opaque.exp: Likewise.
18425 * gdb.t12/scope.exp: Likewise.
18426 * gdb.t13/bitfields.exp: Likewise.
18427 * gdb.t15/funcargs.exp: Likewise.
18428 * gdb.t20/classes.exp: Likewise.
18429 * gdb.t03/ptype.exp: Increase timeout.
18430 * gdb.t16/printcmds.exp (test_print_string_constants,
18431 test_print_array_constants): Likewise.
18432 * gdb.t17/callfuncs.exp (do_function_calls): Likewise.
18433 * gdb.t20/classes.exp (do_tests): Likewise.
18434 * gdb.t22/virtfunc.exp (test_virtual_calls): Likewise.
18438 * gdb.stabs: Renamed *wierd* to *weird*.
18442 * gdb.t13/bitfields.exp: Test for bad output rather than waiting
18443 for timeout. Add "known gcc 2.4.5 bug" to failure message.
18447 * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
18448 (do_tests): Remove xfail for whatis on one_var and two_var.
18452 * Makefile.in: Made cross building work better by adding
18453 {RUNTEST,CC}_FOR_TARGET and using TARGET_FLAGS_TO_PASS.
18457 * gdb.t15/{return.c,return.exp,Makefile.in}:
18458 New test, currently commented out.
18462 * config/udi-gdb.exp: gdb_exit now kills any isstip processes
18463 still running and removes the leftover named socket so GDb can do
18468 * gdb.t01/run.exp: Add match for VxWorks, cause I/O comes out the
18470 * config/mt-*: Added default values for RUNTEST and RUNTESTFLAGS so
18471 cross testing works better with "make check"
18472 * config/unix-gdb: Use default procedures for exit and version.
18473 * config/vx-gdb.exp: Cleaned up and massaged back to working order
18474 with the newest VxWorks.
18478 * gdb.t20/classes.exp: For "ptype class Base1", continue to accept
18481 * gdb.t22/virtfunc.exp: If it prints `struct' (not `class') with a
18482 name (e.g. devo gdb with gcc 2.4.5), it is still a pass.
18484 * gdb.t10/crossload.exp: Skip whole file (for now, until we fix it).
18486 * config/unix-gdb.exp: Remove this version of gdb_exit
18487 * lib/gdb.exp: Merge in all the crap from config/unix-gdb.exp.
18488 Rob says he'll look at it when he gets back to testing boards.
18492 * gdb.t22/virtfunc.exp: Accept missing struct/class names as
18493 an expected fail for certain ptype commands.
18495 * gdb.t20/classes.exp: Update expected results of "ptype class
18496 Base1" to account for the constructor that now appears in the type.
18500 * configure.in (configdirs): Restore gdb.t04, which mysteriously
18501 disappeared from list.
18502 * config/{udi-gdb.exp, gdb-unix.exp}: Replace calls to obsolete
18503 "alldone" proc with call to cleanup and exit.
18504 * {gdb.t01/run.exp, gdb.t01/term.exp, gdb.t02/whatis.exp,
18505 gdb.t03/ptype.exp, gdb.t04/setvar.exp, gdb.t05/expr.exp,
18506 gdb.t06/break.exp, gdb.t07/watchpoint.exp, gdb.t08/opaque.exp,
18507 gdb.t09/corefile.exp, gdb.t10/crossload.exp, gdb.t11/list.exp,
18508 gdb.t12/scope.exp, gdb.t13/bitfields.exp}: Replace calls to
18509 "alldone" proc with simple returns that suppress remaining
18510 tests. The alldone proc went away many months ago.
18514 * gdb.t10/nodebug.exp: Comment out "maint print msymbols" tests.
18516 * gdb.t12/gdbme0.c (localscopes, autovars): Modify to foil gcc -O.
18520 * gdb.t15/funcargs.exp: Allow arguments for main in backtraces
18521 as vax gdb will display them.
18525 * gdb.t20/gdbme.cc: Do some calculation with v.x, to confound
18528 * scope.exp: Change "bad value for localval" messages so each one
18531 * config/unix-gdb.exp (gdb_exit): Move info on this vs.
18532 lib/gdb.exp (gdb_exit) from ChangeLog to comments.
18534 * gdb.t06/signals.exp: Skip the whole file with xfail for delta68.
18538 * gdb.t00/teststrategy.exp: Deal with it if cmdsize = 1 line
18539 doesn't exist (due to optimization).
18543 * gdb.stabs/wierd.exp: Deal with it if echo of "file" command
18544 contains \r because the filename is long.
18546 * gdb.t06/signals.exp: Revise comments regarding "'next' behaved as
18547 'continue'" bug, and change xfail back to i*86-univel-sysv4*.
18551 * gdb.t00/help.exp, gdb.t02/whatis.exp, gdb.t07/watchpoint.exp,
18552 gdb.t08/opaque.exp, gdb.t17/interrupt.exp: Update for vax running
18554 * gdb.t02/whatis.exp: Use procedure to setup xfails on long versus
18556 * gdb.t08/opaque.exp: Use procedure to setup xfails for opaque tests.
18560 * Makefile.in (distclean): Remove *.log *.plog *.sum *.psum site.*.
18562 * gdb.t17/interrupt.exp: Fix 'missing Continuing' case so pattern
18563 to match does not match the passing case but still matches the
18568 * Makefile.in (distclean): Remove *.plog *.sum *.psum site.*.
18572 * lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
18573 to here. Fix 'Quit anyway.*?' bug (? is a regexp metacharacter).
18574 * config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
18575 Remove various versions of gdb_exit.
18576 * config/vx-gdb.exp: Remove quit_vxgdb, change a caller to call
18578 * config/unix-gdb.exp: gdb_exit remains here, and should override
18579 the generic version, since it's doing a lot of wierd stuff that
18580 the other versions aren't. FIXME, fold it in, or abandon this
18585 * gdb.t24/demangle.exp: Add tests for PR 3220.
18589 * gdb.t24/demangle.exp: Add lucid test for __vtbl__3foo__vt_cc_main_.
18593 * gdb.t07/watchpoint.exp: Clear xfail with "i*86-*-*", not just
18594 "i386-*-*". Works for i486 as well.
18596 * gdb.t06/signals.exp: Rework code that recognizes known SVR4
18597 bug, and expand domain of xfail to all SVR4 systems, since the
18598 actual problem is likely to be in generic SVR4 /proc support.
18602 * config/unix-gdb.exp (gdb_load): Add eof to expect statement.
18606 * gdb.t17/interrupt.exp: Set up xfail for *-*-sysv4*, in chain of
18607 xfails for other systems. Match a missing 'Continuing.' as an
18608 explicit fail for i*86-*-sysv4*, so it doesn't hose other tests.
18610 * gdb.t20 {classes.exp, inherit.exp, misc.exp}, gdb.t21/cplusfuncs.exp,
18611 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t31/chillvars.exp:
18612 Only issue warning for missing executables if -all option is used.
18614 * gdb.stabs/wierd.exp: Only issue warning for missing wierd.o
18615 file if -all option is used. It's like an unpredictable XFAIL.
18619 * gdb.t15/funcargs.exp: Add comments that hppa xfails are only
18620 for dynamically linked binaries.
18622 * gdb.t10/crossload.exp: Add `set gnutarget auto' at end of tests.
18626 * gdb.t20/inherit.exp: Change message for "print tagless struct"
18627 to state that this is a known bug in old versions of g++.
18631 * gdb.t17/interrupt.exp: Add xfail for 386 bsd. Accept echoed newline
18632 while waiting for `Continuing'.
18636 * gdb.t10/nodebug.exp: Expect to find local/global minimal symbols
18637 in text, data, and bss.
18638 * gdb.t10/nodebug.c: Add local and global test variables for
18639 initialized and uninitialized data.
18643 * config/unix-gdb.exp (gdb_exit): Add "wait".
18647 * gdb.t06/signals.exp: xfail the continue from the handler for all
18650 * gdb.t07/watchpoint.exp: clear_xfail for i386 when calling a
18651 function with watchpoints enabled, the i386 call dummy starts with
18654 * gdb.t00/teststrategy.exp, gdb.t09/Makefile.in: Handle the way
18655 386 bsd names its corefiles.
18659 * gdb.t10/Makefile.in (nodebug.o): Don't use "-c -o", many
18660 compilers don't grok it.
18661 * gdb.t16/gdbme.c (ctable1): Initialize unsigned char array
18662 with small octal ints rather than character constants, which
18663 are signed and might not fit if first promoted to int.
18667 * gdb.t09/Makefile.in (clean): Remove corefile.
18671 * gdb.t07/watchpoint.exp: Add missing `$prompt $'.
18676 * gdb.t06/signals.exp: Change xfail from "*-*-*" to be only for
18677 NO_SINGLE_STEP machines. Fix comment about its cause. Uncomment
18678 the `continue' test right after it (also xfailed if NO_SINGLE_STEP).
18682 * gdb.t17/interrupt.exp: Add xfail for hppa.
18686 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t08/opaque.exp,
18687 gdb.t09/corefile.exp: Cleanup xfails for fixed mips bugs.
18688 * gdb.t13/bitfields.exp, gdbme.c: Examine a variable in the inferior
18689 to determine signed-ness of bitfields and use the result to setup
18691 * gdb.t15/gdbme.c: Add comments to the two indirect call0a lines.
18692 * gdb.t15/funcargs.exp: Use them to step until the second indirect
18693 call line is reached if necessary.
18697 * gdb.stabs/wierd.exp: New test, for nameless baseclasses.
18701 * gdb.t06/break.exp: Also test `clear' command.
18705 * gdb.t00/teststrategy.exp: Remove extra quote.
18707 * gdb.t07/watchpoint.exp: Change xfail for calling function with
18708 watchpoint enabled to be for all non-68k machines.
18710 * gdb.t15/{mips_pro.{c,exp},Makefile.in}: New test.
18714 * gdb.stabs/configure.in: If configured -with-gnu-as for mips-*-*
18715 targets use aout.mt instead of ecoff.mt as gas understands
18716 standard aout format.
18720 * lib/gdb.exp (runto): Don't insist that function we are running to
18721 was compiled with -g.
18723 * gdb.t10/{nodebug.{c,exp},Makefile.in}: New test.
18725 * gdb.t17/interrupt.exp: Before sending ^C, give the inferior time
18726 to get back into the read system call.
18727 Accept leading newline in case where we woke it up.
18731 * gdb.stabs/{ecoff.mt,wierd-ecoff.S,wierd-ecoff.sed}: New files
18732 to make the stabs test work on ecoff systems using gcc and -with-stabs.
18733 * gdb.stabs/{Makefile.in,configure.in,aout.mt,xcoff.mt}: Modify to
18734 enable ecoff configuration.
18738 * gdb.t15/funcargs.exp (localvars_in_indirect_call): New test.
18742 * gdb.t16/printcmds.exp: Add another printf test.
18746 * configure.in: If configured -with-stabs on any target, add
18747 stabsdirs to configdirs.
18751 * gdb.t16/printcmds.exp: Change printf "%f\n" to printf "%f is
18752 fun" so pattern does not match the command itself.
18756 * gdb.t15/{gdbme.c,funcargs.exp}: Test for alloca-influenced frames.
18760 * gdb.t17/interrupt.exp: Test for more things.
18764 * gdb.t07/watchpoint.exp: In until test, deal with the way the DEC
18765 compiler arranges the code and line numbers.
18767 * gdb.t17/interrupt.exp: Don't send \n after ^C.
18771 * gdb.t00/help.exp: Increase expect input buffer size.
18775 * gdb.t06/signals.exp: Remove sparc xfail; bug fixed.
18777 * gdb.t07/watchpoint.exp: Add xfail for hppa.
18779 * gdb.t17/{gdbme.c,callfuncs.exp}: Add sum10 function, to test pa bug.
18781 * gdb.t06/signals.exp: At "p func1 ()" test, check for breakpoint
18782 [0-9]*, not just [0-9].
18786 * gdb.t20/{gdbme.cc,classes.exp}: Add xfail for gdb/2972.
18788 * gdb.t2*: Set CXXFLAGS, not CFLAGS, since that's what we use.
18792 * gdb.t00/help.exp: Replace most of docstring for "continue" with .*.
18796 * gdb.t06/signals.c: Add xfails for sun3.
18798 * gdb.t07/watchpoint.exp: Comment out xfail for fixed bug 1836.
18800 * gdb.t07/{gdbme.c,watchpoint.exp}: Add test for 2597. Also add
18801 test_stepping tests.
18805 * gdb.t{06,17}/Makefile.in (clean): Remove all executables.
18807 * gdb.t17/{interrupt.{c,exp},Makefile.in}: New test for solaris bug.
18809 * gdb.t06/twice.exp, Makefile.in: Just use an include of twice.c
18810 rather than actually putting it through cpp twice.
18812 * gdb.t06/signals.exp: Add xfails for unixware and rs6000.
18816 * config/mips-gdb.exp (gdb_exit): Removed close statement which is
18821 * gdb.t06/signals.exp: Add test for sparc bug with do_save_insn.
18823 * gdb.t20/{classes,inherit}.exp: If a class which doesn't use any
18824 C++ features prints as "struct", make it a pass, not an xfail.
18828 * gdb.t22/virtfunc.exp: Remove a bunch of xfails.
18829 Don't require VA to print as "class" rather than "struct".
18833 * gdb.t06/twice.exp: Don't care about the file name GDB prints.
18837 * gdb.t{02,13}/comp-info.c, gdb.t06/twice.exp: Add "return 0" to end.
18841 * gdb.t12/scope.exp: Remove xfail for parameter printing in wrong
18846 * gdb.t16/printcmds.exp: Add printf tests.
18848 * gdb.t06/{twice.{c,exp},Makefile.in}: New test.
18850 * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too.
18854 * gdb.t20/classes.exp: Add clear_xfail's before printing summary
18855 pass counts, to counteract any existing or future setup_xfails.
18859 * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
18860 {BEGIN,END}_COMMON for common block instead of STAB.
18861 * gdb.stabs/wierd.exp: Add xfail for rs6000.
18863 * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
18864 intp_var should be N_GSYM not N_LSYM.
18865 wierd-aout.S: Use a label for the value of the N_SO.
18866 wierd.def: Remove all backslashes.
18867 wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
18871 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
18872 get the expected next to inheritance3.
18876 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
18877 now that gcc-2.4 gets it right.
18881 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test.
18883 * gdb.t{02,13}/{Makefile.in,gdbme.c,comp-info.c}: New way of
18884 generating comp-info.exp which works for cross-compilation.
18888 * gdb.t11/list.exp: For SVR4 xfails, match "*-*-sysv4*", not
18893 * gdb.t01/run.exp: Start with a fresh gdb.
18894 * gdb.t11/list.exp: For SVR4 xfails, match on all versions of
18899 * {gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07,
18900 gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15,
18901 gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t30}/
18902 Makefile.in (distclean, realclean): Remove gdbme.c from list of
18907 * gdb.t24/demangle.exp (test_gnu_style_demangling): Add some new
18908 test cases from bug reports.
18912 * gdb.t06/break.exp: Add xfails for sparc-sun-solaris2.*.
18913 * gdb.t12/scope.exp: Add clear_xfails at appropriate places to
18914 avoid spurious xfails.
18915 * gdb.t20/classes.exp: Add xfails for longstanding C++ problems.
18916 * gdb.t21/cplusfuncs.exp: Add xfails for sparc-sun-solaris2.*.
18917 * gdb.t22/virtfunc.exp: Add xfails for longstanding C++ problems.
18921 * gdb.t00/teststrategy.exp: Rework to provide more useful
18922 description of each test, fix problem with systems that define
18923 ALIGN_STACK_ON_STARTUP code, other misc cleanups.
18924 * gdb.t06/break.exp (test_next_with_recursion): Fix expected
18925 results for "next over recursive call" so timeouts aren't taken
18930 * gdb.t12/scope.exp: Test printing of variables before run.
18932 * gdb.t12/{gdbme0.c,scope.exp}: Test for bug where parameters are
18933 printed in wrong order due to sorting.
18937 * gdb.t00/teststrategy.exp: Fix expected results for printing
18938 user entered string constant. Is array of char, prints with no
18941 * gdb.t00/{default.exp, help.exp}: Account for changes to radix
18943 * gdb.t16/gdbme.c: Add and use struct containing arrays of char.
18944 * gdb.t16/printcmds.exp: Fix all lines that match "unsigned char *".
18945 * gdb.t16/printcmds.exp (test_print_char_arrays): Test printing
18946 of struct of char arrays.
18947 * gdb.t00/radix.exp: New tests for radix commands.
18951 * gdb.t16/printcmd.exp: Print a variable before running program
18952 (with xfail for AIX).
18956 * gdb.t06/{signals.exp,signals.c,Makefile.in}: New test.
18958 * gdb.t16/printcmd.exp: Don't print variables before running program.
18960 * gdb.t06/break.exp: Don't require envp argument to main.
18962 * gdb.t0{2,3,4,5}/gdbme.c [_AIX]: Use signed keyword.
18964 * gdb.t02/whatis.exp, gdb.t11/list.exp:
18965 Add xfails for rs6000.
18967 * gdb.t02/whatis.exp: Change other tests not to re-test something
18970 * gdb.t{03,15,16}/gdbme.c: Reference all variables and make sure
18971 each type used has a variable of that type.
18975 * gdb.t20/{inherit.exp,gdbme.cc}: Test tagless structure.
18977 Fri Jun 4 11:07:19 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
18979 * configure.in: change srctrigger to be a file, not a directory
18983 * configure.in (mips-idt-ecoff*): Added trailing '*'.
18985 * gdb.t11/list.exp: Fixed a couple of typos.
18989 * gdb.t00 (teststrategy.exp): Remove notice about PR 1823. Bug
18990 is fixed and PR is closed.
18991 * gdb.t16 (gdbme.c): Add simple test string variable.
18992 * gdb.t16 (printcmds.exp): Add tests with simple test string
18993 variable, primarily for boundaries on "set print elements".
18997 * gdb.stabs/wierd.exp: Remove xfail for printing big integer.
18998 Make leading 0's optional and don't expect a tab in the middle
19001 * gdb.t00/teststrategy.exp: Remove xgdb before trying the copy.
19003 * gdb.stabs/wierd.def: Type attributes must be preceded by number=.
19004 * gdb.stabs/wierd.exp: Remove xfails for type attributes. Also
19005 don't end command passed to gdb_test with newline.
19007 * gdb.t13/{Makefile.in,gdbme.c,bitfields.exp}: If we #defined the
19008 signed keyword away, don't expect signed bitfields to be signed.
19010 * gdb.t13/bitfields.exp (bitfield containment): Accept the fields
19011 printing with only as many 1's as are in the field as well as printing
19012 with 32 1's (see comment).
19016 * gdb.t00/default.exp: Start with a fresh gdb.
19017 * configure.in (configdirs): Remove gdb.t31 until the chill
19018 compiler works again. It no longer is able to find chillrt0
19019 since it isn't in libchill.a anymore.
19020 * gdb.stabs/wierd.exp: Rewrite to properly handling a missing
19021 wierd.o, make more modular.
19022 * gdb.stabs/wierd.def (bad_neg0type, bad_neg0const): Remove
19023 spurious newlines that caused problems.
19027 * Move test with enums and partial symbols from gdb.t03/ptype.exp
19028 to gdb.stabs/wierd.exp since GCC has worked around the bug.
19029 gdb.stabs/wierd.{exp,def}: Many new tests.
19031 * gdb.t00/default.exp: update info line for new message.
19033 * gdb.t02/{whatis.exp,gdbme.c}:
19034 Test that "char *" doesn't print as "caddr_t".
19038 * gdb.t00/help.exp: Use .* in place of some help messages which
19040 gdb.t00/default.exp: Update "info frame" test for new message.
19041 * gdb.stabs/wierd.exp: Check for eof, directly or via gdb_test.
19046 * gdb.t03/{gdbme.c,ptype.exp}:
19047 Add tests for typedef'd struct and union without tags.
19048 Also check "whatis" on a variable of a typedef'd enum without a tag.
19050 * gdb.t00/teststrategy.exp: For p "foo", remove sun4 XFAIL (see
19051 PRMS 1823; the bug still exists but isn't reproduced by this test
19052 anymore), and remove rs6000 XFAIL (the bug is fixed).
19054 * gdb.t03/ptype.exp: Comment out a lot of tests which are basically
19055 duplicated from whatis.exp. For those that are left, accept
19056 "long", "long int", or "int" for long variables (whatis.exp already
19057 has an XFAIL for "int", so no need to fail it here).
19059 * gdb.t02/whatis.exp, gdb.t10/crossload.exp:
19060 Deal with GCC's names for types now that GDB uses the compiler's names.
19062 * gdb.t02/{Makefile.in,gdbme.c,whatis.exp}: If not GCC, do some
19063 setup_xfail's for sunos4. If we #defined the signed keyword away,
19064 don't expect GDB to know that char it is signed.
19066 * gdb.t00/teststrategy.exp: Update for symbolic signal names.
19070 * configure.in (configdirs): Add gdb.t24 for C++ tests that
19071 should work on any system, regardless of debugging format.
19072 * gdb.t21/demangle.exp: Move to gdb.t24.
19073 * gdb.t24/demangle.exp: Move from gdb.t21.
19074 * gdb.t24/{Makefile.in, configure.in}: New files.
19078 * configure.in: Do gdb.stabs and C++ tests only for stabs.
19079 * gdb.stabs: New directory.
19083 * config/{mips,nind,udi,unix,vx}-gdb.exp: Look for "Quit anyway.*?"
19084 not just "Quit anyway?".
19088 * gdb.t21/demangle.exp: Add a couple of new patterns. Ensure
19089 that all setup_xfails are immediately followed by clear_xfails.
19093 * config/unix-gdb.exp, gdb.t00/echo.exp, gdb.t00/help.exp,
19094 gdb.t00/teststrategy.exp, gdb.t00/gdbvars.exp, gdb.t01/run.exp,
19095 gdb.t01/term.exp, gdb.t02/whatis.exp, gdb.t03/ptype.exp,
19096 gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t06/break.exp,
19097 gdb.t07/watchpoint.exp, gdb.t08/opaque.exp, gdb.t09/corefile.exp,
19098 gdb.t10/crossload.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
19099 gdb.t13/bitfields.exp, gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
19100 gdb.t17/callfuncs.exp, gdb.t20/misc.exp, gdb.t20/inherit.exp,
19101 gdb.t20/classes.exp, gdb.t21/demangle.exp, gdb.t21/cplusfuncs.exp,
19102 gdb.t22/virtfunc.exp, gdb.t23/templates.exp, gdb.t30/chexp.exp,
19103 gdb.t31/chillvars.exp, lib/gdb.exp:
19109 * gdb.t17/callfuncs.exp (do_function_calls): Call t_double_values
19110 with 0.0, not integer 0.
19114 * gdb.t06/break.exp: Update for "Kill the program" message change.
19118 * Makefile.in (GDBFLAGS): Set to -nx.
19119 * Makefile.in (site.exp): Use GDBFLAGS.
19123 * */Makefile.in (CFLAGS): add CFLAGS = -g to all subdirectory
19125 (check): depend on just-check.
19126 (just-check): added so that tests can be run without a noop
19131 Switch to using configure's configdirs.
19132 * Makefile.in (Makefile): add configure.in dependency.
19133 (SUBDIRS): removed redundant assignment.
19134 * configure.in: switch subdirs assignment to configdirs.
19135 * gdb.t*/configure.in: new files.
19139 * gdb.t07/watchpoint.exp: Removed a29k expected failure which now
19144 * gdb.{t20,t21,t22,t23}/Makefile.in: Use $(srcdir) to avoid $<
19145 in explicit rules. Apparently this is not supported by some makes.
19149 * gdb.t31/Makefile.in: Use $(srcdir) when avoiding $<, sigh.
19153 * config/unix-gdb.exp: Add back missing return 0 which mysteriously
19158 * gdb.t31/Makefile.in: Avoid $< in explicit rule.
19162 * gdb.t07/watchpoint.exp: Remove setup_xfail for i486
19163 watchpoint problem that is now fixed.
19164 * gdb.t30/chexp.exp: Remove setup_xfail for printing
19165 uninitialized convenience variables.
19166 * gdb.t31/chillvars.exp: Fix expected patterns for printing
19171 * gdb.t00/help.exp: Compensate for bug in mips-*-ultrix* OS
19172 which causes expect to get out of sync with gdb on long output
19174 * gdb.t09/corefile.exp: Make expected pattern for core file
19175 failing signal and frame output format less sun specific.
19179 * gdb.t31/chillvars.exp: Add and remove initial dummy
19180 breakpoint, so that symbol table is forced in.
19181 (Needed at least on Sunos4, though it seems not SVR4.)
19182 * gdb.t31/chillvars.exp: Update for changed output format.
19184 Sun Apr 11 17:21:45 1993 Rob Savoye (rob at darkstar.cygnus.com)
19186 * config/unix-gdb.exp: Gracefully exits if $GDB is a bogus path.
19190 * Makefile.in: Added --srcdir when invoking runtest, removed the
19191 need for a local config file. (optional now)
19195 * gdb.t21/demangle.exp: Only count real fails (not xfails) for
19196 failure count used to force early termination. Add some more
19197 expected failures for gnu style demangling.
19201 * Makefile.in (CXXFLAGS): Remove -O. It caused the debug info for the
19202 pmi variable from gdb.t20/gdbme to get optimized away.
19203 * gdb.t00/teststrategy.exp: Added expected failure for mips-*-*.
19204 Check for written corefile upon timeout _and_ eof.
19208 * config/unix-gdb.exp: Add missing return 0.
19212 * gdb.t16/printcmds.exp: Remove misplaced xfail that caused an early
19217 * configure.in (subdirs): Put back gdb.t17 which mysteriously
19222 * gdb.t10/crossload.exp: Disable the i860-elf test until such
19223 time as i860 support works.
19225 * gdb.t15/funcargs.exp: Fix expected outputs to include
19226 "backtrace 100\r" rather than just "backtrace\r", to match last
19231 * config/udi-gdb.exp (gdb_exit): Remove close command.
19232 (gdb_target_udi): New procedure to set the UDI target.
19233 (gdb_start): Don't remove *_soc files. Use gdb_target_udi.
19234 * gdb.t00/default.exp: Added expected failures for a29k-*-udi.
19235 Added waits for prompts after several question responses. Added
19236 some more responses used by a29k-amd-udi-gdb.
19237 * gdb.t01/run.exp, gdb.t06/break.exp: Added a29k-*-udi support:
19238 pass different arguments, restart UDI connection after program
19240 * gdb.t02/whatis.exp, gdb.t03/ptype.exp, gdb.t07/watchpoint.exp,
19241 gdb.t08/opaque.exp, gdb.t11/list.exp, gdb.t12/scope.exp,
19242 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp, gdb.t20/misc.exp,
19243 gdb.t21/cplusfuncs.exp: Added expected failures for a29k-*-*.
19244 * gdb.t04/setvar.exp, gdb.t05/expr.exp, gdb.t07/watchpoint.exp,
19245 gdb.t08/opaque.exp, gdb.t12/scope.exp, gdb.t13/bitfields.exp,
19246 gdb.t15/funcargs.exp, gdb.t16/printcmds.exp,
19247 gdb.t17/callfuncs.exp, gdb.t20/classes.exp, gdb.t20/inherit.exp,
19248 gdb.t20/misc.exp, gdb.t22/virtfuncs.exp: Restart UDI connection
19249 after program completion.
19250 * gdb.t10/crossload.exp: Does not work for a29k-*-*, since BFD is
19251 compiled with a SELECT_VECS setting.
19252 * gdb.t15/funcargs.exp: Use argument to backtrace to prevent
19253 infinite recursion.
19255 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t22/virtfuncs.exp:
19256 Added checks for COFF results, and made them expected failures for
19257 all targets. It would be better to make them expected failures
19258 for COFF targets only.
19260 Wed Mar 24 14:43:38 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
19262 * Makefile.in: add null dvi target, don't bother to recurse
19263 through test directories for info and install-info; rename
19264 $(datadir) to be dejagnu instead of deja-gnu
19268 * gdb.t31/gdbme.ch: Re-enable code that previously caused
19269 compiler to coredump.
19270 * gdb.t31/chillvars.exp: Re-enable tests that depend on that
19275 * gdb.t31/gdbme.ch: Comment out code that causes chill compiler
19277 * gdb.t31/chillvars.exp: Comment out tests that depend on that
19280 Sun Mar 21 17:56:47 1993 Rob Savoye (rob at darkstar.cygnus.com)
19282 * gdb.t03/ptype.exp: tests for return code from gdb_test.
19283 * gdb.t00/teststrategy.exp: Uses which proc rather than spawning
19284 which in a shell. Deletes xgdb when done.
19285 * config/unix-gdb.exp: Won't try to spawn $GDB unless it exists.
19286 Tests the return from the "set height" or "set width" commands.
19287 Added a few return codes where needed.
19291 * Makefile.in (SUBDIRS): Add gdb.t17.
19292 * configure.in (subdirs): Add gdb.t17.
19293 * gdb.t17/{Makefile.in, callfuncs.exp, gdbme.c}: New test
19294 files to test gdb's calling of functions in the inferior with
19295 the correct arguments and gdb's ability to retrieve any
19300 * config/unix-gdb.exp (gdb_exit): Remove close commands that
19301 may be called after gdb goes away. Previous versions of expect
19302 needed these to avoid file descriptor leaks, but they cause
19303 errors with the current revision of expect.
19304 * gdb.t00/gdbvars.exp: Use -re on expected output after
19305 setting sevenbit-strings.
19306 * gdb.t04/setvar.exp, gdb.t13/bitfields.exp: Make commands
19307 to set sevenbit-strings consistent across tests.
19308 gdb.t30/chexp.exp, gdb.t31/chillvars.exp: Make commands to
19309 set sevenbit-strings consistent across tests.
19313 * gdb.t21/demangle.exp (proc demangle): Adjust quotes in an
19314 expected output to match current "expect" expectations.
19318 * gdb.t00/default.exp: Change expected output for default "source"
19319 command, to match new gdb behavior which requires a filename to
19324 * gdb.t07/watchpoint.exp (test_simple_watchpoint): Set up
19325 expected fail for i486-*-* that misses the marker2 function.
19326 * gdb.t10/crossload.exp (bfddefault): Allow successful
19327 recognition of a format to pass even if no symbols are found.
19328 Explicitly catch failures where the format is not recognized
19329 or is ambiguous, and add the reason to the fail message.
19330 * gdb.t10/crossload.exp (bfdexplicit): Catch failure where
19331 the cause is and invalid target and add reason to failure message.
19332 * gdb.t10/crossload.exp: Fix bfd target names for elf32-m68k,
19333 elf32-i386, elf32-sparc, and elf32-i860.
19334 * gdb.t12/scope.exp (test_at_main, test_at_foo, test_at_bar):
19335 Set up expected failure for 'filename'::variable scope resolution,
19336 which is now apparently broken on all targets.
19337 * gdb.t20/classes.exp, gdb.t20/inherit.exp, gdb.t20/misc.exp,
19338 gdb.t21/cplusfuncs.exp, gdb.t22/virtfunc.exp,
19339 gdb.t23/templates.exp: Change failure for missing binfile into
19341 gdb.t21/demangle.exp: Change all cfront references to 'arm'
19346 * gdb.t00/default.exp: Add expected output for default "source"
19347 command, to match new gdb behavior.
19348 * gdb.t09/corefile.exp: Use GDBFLAGS when spawning GDB.
19352 * config/*-gdb.exp: returns an error, rather than exiting on
19357 * gdb.t03/gdbme.c: Add pointer to struct variable.
19358 * gdb.t03/ptype.exp: Test equivalence of '.' and '->' for
19359 referencing struct members.
19363 * configure.in (mips-idt-ecoff): New target.
19364 * config/mips-gdb.exp: New file for remote board using MIPS remote
19365 debugging protocol.
19367 * Redid configuration scheme. Removed gdb.t*/configure.in.
19368 Renamed gdb.t*/in-gdbme* to gdb.t*/gdbme*. Changed to use CC, CXX
19369 instead of CC_FOR_TARGET, CXX_FOR_TARGET. Added mostlyclean and
19370 distclean targets. Built executables via .o files. Adjusted
19371 tests to account for source files in $(srcdir) rather than
19373 * lib/gdb.exp (runto): Don't expect () after the function name,
19374 because it may have arguments.
19378 * gdb.t00/default.exp, gdb.t01/run.exp, gdb.t02/whatis.exp,
19379 gdb.t03/ptype.exp, gdb.t06/break.exp, gdb.t12/scope.exp: Added
19380 expected failures for mips-idt-* and mips-sgi-*.
19381 * gdb.t00/default.exp (attach): Kill process if requested.
19382 * gdb.t00/help.exp (help target core, help target): Accept a gdb
19383 that does not read core files.
19384 * gdb.t01/run.exp: Removed checks for exit status code.
19385 * gdb.t03/in-gdbme.c: Make explicit call to malloc to ensure that
19387 * gdb.t03/ptype.exp: Increase timeout when calling malloc.
19388 * gdb.t04/setvar.exp, gdb.t05/expr.exp: Use runto function where
19389 appropriate, rather than doing it by hand.
19390 * gdb.t07/watchpoint.exp: If mips-idt-*, reload file after first
19392 * gdb.t10/crossload.exp: Kill existing program if needed.
19393 * gdb.t15/funcargs.exp: Use delete_breakpoints function where
19394 appropriate, rather than doing it by hand. Always increase
19395 timeout for this test, not just for VxWorks.
19399 * gdb.t31/chillvars.exp (test_structs): New proc to test printing
19400 of Chill STRUCT types and STRUCT values.
19401 * gdb.t31/chillvars.exp (test_strings): Expect "CHAR" now, rather
19403 * gdb.t31/in-gdbme.ch (simple_struct, nested_struct, struct1,
19404 struct2): New struct definitions and initializations to test
19405 simple Chill STRUCT types.
19409 * gdb.t00/teststrategy.exp: Track reversion in gdb to not print
19410 the null byte at the end of strings.
19411 * gdb.t00/default.exp: Make show version insensitive to copyright
19413 * gdb.t16/in-gdbme.c (ctable1, ctable2): Make explicitly unsigned
19414 to avoid dependencies on target char signedness.
19415 * gdb.t16/printcmds.exp: Update expected results for explicitly
19417 * gdb.t16/printcmds.exp: Remove setup_xfails for i960 that should
19419 * gdb.t21/demangle.exp: Add many more patterns for template
19420 demangling, most of them being expected failures.
19421 * gdb.t21/demangle.exp (proc demangle): Quote the demangled
19422 string we are matching for, to match on the whole string.
19423 * gdb.t21/demangle.exp: Add many new test strings to demangle,
19424 and fix a whole bunch that had incorrect expected output but were
19425 passing anyway because of the bug in "proc demangle".
19426 * gdb.t31/chillvars.exp: Remove setup_xfail for printing string
19428 * gdb.t31/in-gdbme.ch: Uncomment string4, now compiles.
19432 * gdb/testsuite: made modifications to testcases, etc., to allow
19433 them to work properly given the reorganization of deja-gnu and the
19434 relocation of the testcases from deja-gnu to a "tool" subdirectory.
19438 * gdb/testsuite: Initial creation of gdb/testsuite.
19439 Migrated dejagnu testcases and support files for testing nm to
19440 gdb/testsuite from deja-gnu. These files were moved "as is"
19441 with no modifications. This migration is part of a major overhaul
19442 of dejagnu. The modifications to these testcases, etc., which
19443 will allow them to work with the new version of dejagnu will be
19444 made in a future update.
19446 For additional changes see gdb.mi/ChangeLog-1999-2003.
19448 ;; Local Variables:
19449 ;; mode: change-log
19452 ;; version-control: never
19455 Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
19456 2003, 2004, 2005 Free Software Foundation, Inc.
19457 Copying and distribution of this file, with or without modification,
19458 are permitted provided the copyright notice and this notice are preserved.