3 * gdb.base/examine-backward.c: New file.
4 * gdb.base/examine-backward.exp: New file.
8 * gdb.mi/mi-record-changed.exp: Adjust =record-started output
14 * gdb.python/py-shared.exp: Add solib_name test.
18 * gdb.mi/mi-memory-changed.exp: Fix filename passed to untested.
23 * gdb.dwarf2/implref.exp: Rename to...
24 * gdb.dwarf2/implref-const.exp: ...this. Also add more test statements.
25 * gdb.dwarf2/implref-array.c: New file.
26 * gdb.dwarf2/implref-array.exp: Likewise.
27 * gdb.dwarf2/implref-global.c: Likewise.
28 * gdb.dwarf2/implref-global.exp: Likewise.
29 * gdb.dwarf2/implref-struct.c: Likewise.
30 * gdb.dwarf2/implref-struct.exp: Likewise.
34 * gdb.trace/trace-condition.exp: Add 64bit tests.
38 * gdb.trace/trace-condition.c (marker): Adapt signature to 8 to 64
40 (main): Adapt to 8 to 64 bits types.
41 * gdb.trace/trace-condition.exp: Add new tests.
45 * gdb.trace/trace-condition.exp: Add emit_less_unsigned test.
49 * gdb.trace/ftrace.exp (test_ftrace_condition): Remove.
50 Move condition tests...
51 * gdb.trace/trace-condition.exp: Here.
55 * gdb.trace/trace-condition.exp: Add counter-case tests.
60 * gdb.ada/out_of_line_in_inlined.exp: Remove xfails.
61 * gdb.dwarf2/dw2-lexical-block-bare.exp: New file.
65 * gdb.threads/attach-many-short-lived-threads.exp (bad_dejagnu):
67 (top level): Call it, and bail out of DejaGnu is known to be bad.
71 * gdb.base/whatis.c: Extend the test case.
72 * gdb.base/whatis.exp: Add additional tests.
76 * gdb.fortran/type.f90: Add pointer variable.
77 * gdb.fortran/whatis_type.exp: Add whatis/ptype of pointers.
81 * gdb.fortran/vla-type.exp: Fix testcase name.
85 * gdb.fortran/vla-type.exp: Access elements in nested structs.
89 * gdb.fortran/type.f90: Add nested structures.
90 * gdb.fortran/whatis-type.exp: Whatis/ptype nested structures.
91 * gdb.fortran/derived-type.exp: Adapt expected output.
92 * gdb.fortran/vla-type.exp: Adapt expected output.
96 * gdb.fortran/whatis_type.exp: Adapt expected output.
100 * gdb.fortran/print_type.exp: Fix expected output.
101 * gdb.fortran/whatis_type.exp: Fix expected output.
105 * gdb.fortran/whatis_type.exp: Use multi_line.
110 * gdb.python/py-value.exp (test_value_numeric_ops): Add tests that
111 use value as an index.
116 * gdb.python/py-breakpoint.exp (test_bkpt_basic): Add test for
122 * gdb.threads/clone-attach-detach.c: New file.
123 * gdb.threads/clone-attach-detach.exp: New file.
127 * gdb.base/annota-input-while-running.exp: Fix syntax error.
131 PR python/19438, PR python/18393:
132 * gdb.python/py-progspace.exp: Add "dir" test.
133 * gdb.python/py-objfile.exp: Add "dir" test.
137 * gdb.arch/thumb-prologue.exp: Use standard_testfile.
138 * gdb.arch/thumb2-it.exp: Likewise.
142 * gdb.mi/mi-threads-interrupt.c: New file.
143 * gdb.mi/mi-threads-interrupt.exp: New file.
148 * gdb.mi/mi-async-run.exp: New file.
149 * gdb.mi/mi-async-run.c: New file.
154 * lib/rust-support.exp: New file.
155 * lib/gdb.exp (skip_rust_tests): New proc.
156 (build_executable_from_specs): Handle rust.
157 * lib/future.exp (gdb_find_rustc): New proc.
158 (gdb_default_target_compile): Handle rust.
159 * gdb.rust/expr.exp: New file.
160 * gdb.rust/generics.exp: New file.
161 * gdb.rust/generics.rs: New file.
162 * gdb.rust/methods.exp: New file.
163 * gdb.rust/methods.rs: New file.
164 * gdb.rust/modules.exp: New file.
165 * gdb.rust/modules.rs: New file.
166 * gdb.rust/simple.exp: New file.
167 * gdb.rust/simple.rs: New file.
171 * gdb.base/default.exp (set language): Add rust.
175 * gdb.gdb/unittest.exp: New file.
179 * gdb.base/batch-preserve-term-settings.exp: Remove variable
180 shell_prompt. Update shell_prompt_re.
185 * lib/dwarf.exp (build_executable_from_fission_assembler): Pass
186 $options when building executable.
187 * gdb.dwarf2/fission-loclists-pie.S: New file.
188 * gdb.dwarf2/fission-loclists-pie.exp: New file.
192 * gdb.base/solib-display.exp: Check for [use_gdb_stub] instead
193 of [is_remote target],
197 * lib/gdb.exp (use_gdb_stub): New procedure.
203 * gdb.dwarf2/dwp-sepdebug.c: New file.
204 * gdb.dwarf2/dwp-sepdebug.exp: New file.
208 * gdb.base/detach.exp: Remove is_remote check.
212 * gdb.base/annota-input-while-running.exp: Don't check for
213 [is_remote target]. Enable annotations after running to main.
214 Remove unused "set test..." line.
218 * gdb.trace/trace-enable-disable.exp: New file.
219 * gdb.trace/trace-enable-disable.c: New file.
223 * gdb.arch/ftrace-insn-reloc.exp: Save gdb_load_shlib result,
224 use it in info sharedlibrary test.
225 * gdb.trace/ftrace-lock.exp: Likewise.
226 * gdb.trace/ftrace.exp: Likewise.
227 * gdb.trace/range-stepping.exp: Likewise.
228 * gdb.trace/trace-break.exp: Likewise.
229 * gdb.trace/trace-condition.exp: Likewise.
230 * gdb.trace/trace-mt.exp: Likewise.
234 * lib/gdb.exp (gdb_load_shlibs): Rename to...
235 (gdb_load_shlib): ... this.
236 * gdb.arch/ftrace-insn-reloc.exp: Adjust gdb_load_shlibs ->
238 * gdb.base/catch-load.exp (one_catch_load_test): Likewise.
239 * gdb.base/ctxobj.exp: Likewise.
240 * gdb.base/dprintf-pending.exp: Likewise.
241 * gdb.base/dso2dso.exp: Likewise.
242 * gdb.base/fixsection.exp: Likewise.
243 * gdb.base/gcore-relro.exp: Likewise.
244 * gdb.base/gdb1555.exp: Likewise.
245 * gdb.base/global-var-nested-by-dso.exp: Likewise.
246 * gdb.base/gnu-ifunc.exp: Likewise.
247 * gdb.base/hbreak-in-shr-unsupported.exp: Likewise.
248 * gdb.base/jit-so.exp (one_jit_test): Likewise.
249 * gdb.base/pending.exp: Likewise.
250 * gdb.base/print-file-var.exp: Likewise.
251 * gdb.base/print-symbol-loading.exp: Likewise.
252 * gdb.base/shlib-call.exp: Likewise.
253 * gdb.base/shreloc.exp: Likewise.
254 * gdb.base/so-impl-ld.exp: Likewise.
255 * gdb.base/solib-disc.exp: Likewise.
256 * gdb.base/solib-nodir.exp: Likewise.
257 * gdb.base/solib-overlap.exp: Likewise.
258 * gdb.base/solib-symbol.exp: Likewise.
259 * gdb.base/solib-weak.exp (do_test): Likewise.
260 * gdb.base/sym-file.exp: Likewise.
261 * gdb.base/symtab-search-order.exp: Likewise.
262 * gdb.base/type-opaque.exp: Likewise.
263 * gdb.base/unload.exp: Likewise.
264 * gdb.base/watchpoint-solib.exp: Likewise.
265 * gdb.compile/compile.exp: Likewise.
266 * gdb.cp/gdb2384.exp: Likewise.
267 * gdb.cp/infcall-dlopen.exp: Likewise.
268 * gdb.cp/re-set-overloaded.exp: Likewise.
269 * gdb.fortran/library-module.exp: Likewise.
270 * gdb.opt/solib-intra-step.exp: Likewise.
271 * gdb.python/py-finish-breakpoint.exp: Likewise.
272 * gdb.python/py-shared.exp: Likewise.
273 * gdb.reverse/solib-precsave.exp: Likewise.
274 * gdb.reverse/solib-reverse.exp: Likewise.
275 * gdb.server/solib-list.exp: Likewise.
276 * gdb.threads/dlopen-libpthread.exp: Likewise.
277 * gdb.threads/tls-shared.exp: Likewise.
278 * gdb.threads/tls-so_extern.exp: Likewise.
279 * gdb.trace/change-loc.exp: Likewise.
280 * gdb.trace/ftrace-lock.exp: Likewise.
281 * gdb.trace/ftrace.exp: Likewise.
282 * gdb.trace/mi-tracepoint-changed.exp (test_reconnect): Likewise.
283 * gdb.trace/pending.exp: Likewise.
284 * gdb.trace/range-stepping.exp: Likewise.
285 * gdb.trace/strace.exp (strace_remove_socket): Likewise.
286 (strace_info_marker): Likewise.
287 (strace_probe_marker): Likewise.
288 (strace_trace_on_same_addr): Likewise.
289 (strace_trace_on_diff_addr): Likewise.
290 * gdb.trace/trace-break.exp: Likewise.
291 * gdb.trace/trace-condition.exp: Likewise.
292 * gdb.trace/trace-mt.exp: Likewise.
296 * lib/gdb.exp (gdb_load_shlibs): Accept a single argument. Return
297 result of gdb_remote_download.
298 * gdb.base/ctxobj.exp: Split gdb_load_shlibs call.
299 * gdb.base/dso2dso.exp: Likewise.
300 * gdb.base/global-var-nested-by-dso.exp: Likewise.
301 * gdb.base/print-file-var.exp: Likewise.
302 * gdb.base/shlib-call.exp: Likewise.
303 * gdb.base/shreloc.exp: Likewise.
304 * gdb.base/solib-overlap.exp: Likewise.
305 * gdb.base/solib-weak.exp (do_test): Likewise.
306 * gdb.base/unload.exp: Likewise.
310 * gdb.base/branch-to-self.exp: Skip it if gdb,nosignals
315 * vla-type.exp: Print structure from toplevel.
319 * gdb.fortran/vla-type.f90: Add test for static and dynamic arrays
321 * gdb.fortran/vla-type.exp: Add test for static and dynamic arrays
326 * gdb.fortran/vla-type.f90: New file.
327 * gdb.fortran/vla-type.exp: New file.
331 * gdb.base/branch-to-self.c: New file.
332 * gdb.base/branch-to-self.exp: New file.
336 * gdb.trace/unavailable.exp (gdb_collect_globals_test_1): Match
341 * gdb.base/annota1.exp: Set breakpoint on line $main_line.
342 * gdb.base/annota3.exp: Likewise.
346 * gdb.reverse/step-precsave.exp: Do one step and test program
347 stops in "callee" and do multiple steps until program goes out
349 * gdb.reverse/step-reverse.exp: Likewise.
353 * gdb.trace/signal.exp: Also pass if
354 $tracepoint_hits($i) > $iterations.
358 * gdb.trace/signal.c: New file.
359 * gdb.trace/signal.exp: New file.
363 * gdb.base/bad-file.exp: New file.
367 * gdb.dwarf2/implref.exp: New file.
371 * gdb.fortran/common-block.exp: Use type naming defined in lib fortran.
372 * gdb.fortran/derived-type.exp: Use type naming defined in lib fortran.
373 * gdb.fortran/multi-dim.exp: Use type naming defined in lib fortran.
374 * gdb.fortran/vla-datatypes.exp: Use type naming defined in lib fortran.
375 * gdb.fortran/vla-ptype-sub.exp: Use type naming defined in lib fortran.
376 * gdb.fortran/vla-ptype.exp: Use type naming defined in lib fortran.
377 * gdb.fortran/whatis_type.exp: Use type naming defined in lib fortran.
378 * lib/fortran.exp (fortran_int4): New procedure.
379 (fortran_real4, fortran_real8, fortran_complex4): Likewise.
380 (fortran_logical4): Likewise.
384 * lib/gdb.exp (gdb_compile_shlib): Add flag for ICC compiler.
388 * lib/compiler.c: Add Intel specific preprocessor macros.
389 * lib/compiler.cc: Likewise.
393 * gdb.server/connect-with-no-symbol-file.c: New file.
394 * gdb.server/connect-with-no-symbol-file.exp: New file.
398 * lib/gdb.exp (gdb_remote_download): Fix and extend comment.
402 * boards/gdbserver-base.exp (${board}_download): Copy source file to
403 standard output directory.
407 * gdb.trace/trace-condition.exp (foreach): Fix emit_sub testcase.
411 * gdb.btrace/instruction_history.c (loop): Add declaration.
415 * gdb.trace/ftrace.exp (proc): Change test prefix from "ond" to "cond".
419 * gdb.python/py-mi-events-gdb.py (signal_stop_handler): Add
420 parentheses to print.
421 (continue_handler): Likewise.
425 * gdb.server/solib-list.exp: Remove is_remote check.
426 Pass shlib= to gdb_compile. Don't link shared library with
427 -soname. Call gdb_remote_download instead of gdb_load_shlibs.
428 Run binary filename through "readlink -f" on the target.
432 * gdb.server/solib-list.exp: Don't use gdb_load. Instead pass the
433 interpreter filename as argument to gdbserver_spawn.
434 * lib/gdbserver-support.exp (gdbserver_download_current_prog):
435 Return empty if $last_loaded_file does not exist.
439 Fix compatibility with gcc-4.8.5-4.el7.x86_64.
440 * gdb.base/jit-main.c: Use exit after usage.
444 * gdb.base/gdbhistsize-history.exp: Save and unset GDBHISTFILE and
445 GDBHISTSIZE prior to the tests.
446 * gdb.base/gdbinit-history.exp: Likewise.
450 * gdb.compile/compile.exp: Use gdb_compile with "shlib=" option
451 instead of build_executable. Use gdb_load_shlibs.
455 * gdb.reverse/finish-reverse-bkpt.exp: Use temporary breakpoint.
456 Execute "si" command.
460 * gdb.reverse/next-reverse-bkpt-over-sr.exp: Match the breakpoint
461 number instead of the comments on some line.
465 * gdb.dwarf2/dw2-opt-structptr.c: New test program.
466 * gdb.dwarf2/dw2-opt-structptr.exp: New test script.
470 * gdb.threads/dlopen-libpthread.exp: Set binfile_lib using
471 standard_output_file. Remove unused binfile variable.
475 * gdb.python/py-mi-objfile-gdb.py: Use "list main" command.
476 * gdb.python/py-mi-objfile.exp: Match "list main" output
481 * gdb.arch/ftrace-insn-reloc.exp: Check for IPA basename instead of
486 * gdb.trace/ftrace-lock.exp: Check for IPA basename instead of
488 * gdb.trace/ftrace.exp: Likewise.
489 * lib/gdb.exp (gdb_compile): Set rpath $ORIGIN for non-remote
491 (gdb_compile_shlib): Set SONAME for non-remote targets as well.
492 (gdb_load_shlibs): Copy libraries to test directory when testing
493 natively. Only set solib-search-path if testing remotely.
494 * lib/mi-support.exp (mi_load_shlibs): Likewise.
498 * gdb.base/jit-so.exp: Use gdb_remote_download instead of
499 gdb_download. Use it even if the target is not remote.
500 * gdb.base/jit.exp (compile_jit_test): Likewise.
501 * lib/gdb.exp (gdb_remote_download): Copy files to the standard
502 output directory if the destination board is local, otherwise use
503 the standard remote_download from DejaGnu.
504 (gdb_download): Remove.
505 (gdb_load_shlibs): Use gdb_remote_download instead of
507 * lib/gdbserver-support.exp (gdbserver_download_current_prog):
508 Use gdb_remote_download instead of gdb_download. Use it even if
509 the target is not remote.
510 * lib/mi-support.exp (mi_load_shlibs): Use gdb_remote_download
511 instead of gdb_download.
515 * gdb.mi/mi-breakpoint-changed.exp: Add some with_test_prefix.
516 (test_insert_delete_modify): Call mi_load_shlibs before trying to
522 * gdb.base/printcmds.exp: Add artificial arrays tests.
527 * gdb.base/jit-main.c: Include unistd.h.
528 (ATTACH): Define to 0 if not already defined.
529 (wait_for_gdb, mypid): New globals.
530 (WAIT_FOR_GDB): New macro.
531 (MAIN): Set an alarm. Store the process's pid. Wait for GDB at
532 some breakpoint locations.
533 * gdb.base/jit.exp (clean_reattach, continue_to_test_location):
535 (one_jit_test): Add REATTACH parameter, and handle it. Use
536 continue_to_test_location.
537 (top level): Test attach, and adjusts calls to one_jit_test.
542 * gdb.base/jit.exp (compile_jit_test): Add intro comment. Add
543 BINSUFFIX parameter, and handle it.
544 (top level): Adjust calls compile_jit_test.
549 * gdb.python/py-mi-events-gdb.py: New file.
550 * gdb.python/py-mi-events.c: New file.
551 * gdb.python/py-mi-events.exp: New file.
555 * gdb.reverse/until-precsave.exp: Match function name only.
556 * gdb.reverse/until-reverse.c (main): Don't call fprintf nor printf.
557 Move malloc to a condition block.
558 * gdb.reverse/until-reverse.exp: Match function name only.
562 * gdb.trace/ftrace.exp: Set arg0exp for s390.
563 * gdb.trace/mi-trace-frame-collected.exp: Expect 4 registers on s390.
564 * gdb.trace/mi-trace-unavailable.exp: Set pcnum for s390, add gpr0num
565 variable for GPR 0 instead of assuming it is register 0.
566 * gdb.trace/trace-common.h: Add s390 fast tracepoint placeholder.
567 * lib/trace-support.exp: Add s390 registers.
571 * gdb.arch/arm-neon.exp: Pass debug to prepare_for_testing.
575 * gdb.reverse/break-reverse.exp: Add quotation mark in the
580 * gdb.arch/s390-multiarch.exp: Use standard_testfile instead of
581 maintaining separate logic for constructing the output path.
585 * gdb.threads/forking-threads-plus-breakpoint.c (thread_forks):
586 Retry fork and waitpid on interrupted system call errors.
587 * gdb.threads/forking-threads-plus-breakpoint.exp (do_test):
588 Use with_timeout_factor to increase timeout by factor of 10.
592 * gdb.cp/scope-err.cc: New test program.
593 * gdb.cp/scope-err.exp: New test script.
594 * gdb.linespec/ls-errs.c (myfunction): Expanded to have multiple
595 lines and "set breakpoint here" comment.
596 * gdb.linespec/ls-errs.exp: Added C++ testing and new test case.
597 Fixed some whitespace and format issues.
598 * gdb.mi/mi-linespec-err-cp.cc: New test program.
599 * gdb.mi/mi-linespec-err-cp.exp: New test script.
603 * gdb.xml/extra-regs.xml: Add enum, mixed_flags values.
604 * gdb.xml/tdesc-regs.exp (load_description): New arg xml_file.
605 All callers updated. Add tests for enums, mixed flags register.
609 * gdb.base/skip.c (main): Call test_skip_file_and_function.
610 * gdb.base/skip.exp: Remove hand calling test_skip_file_and_function.
614 * gdb.base/default.exp: Add $_as_string to the list of expected
615 convenience functions.
619 * gdb.base/maint.exp: New tests for 'maint info line-table'.
623 * gdb.python/py-as-string.exp: New file.
624 * gdb.python/py-as-string.c: New file.
628 * gdb.threads/attach-into-signal.exp: Adjust to "Program received
629 signal" -> "Thread NN received signal" output change.
630 * gdb.threads/ia64-sigill.exp: Likewise.
631 * gdb.threads/linux-dp.exp: Likewise.
632 * gdb.threads/manythreads.exp: Likewise.
633 * gdb.threads/pending-step.exp: Likewise.
634 * gdb.threads/print-threads.exp: Likewise.
635 * gdb.threads/sigstep-threads.exp: Likewise.
636 * gdb.threads/staticthreads.exp: Likewise.
637 * gdb.threads/tls.exp: Likewise.
641 * gdb.base/command-line-input.exp: New file.
645 * gdb.trace/ftrace.exp: Set arg0exp for ppc.
646 * gdb.trace/mi-trace-unavailable.exp: Set pcnum for ppc.
647 * gdb.trace/pending.exp: Accept leading dot before function name.
648 * gdb.trace/trace-common.h: Add fast tracepoint dummy insn for ppc.
649 * lib/trace-support.exp: Set registers for ppc.
653 * gdb.trace/entry-values.exp: Link ${binfile}1.o to ${binfile}1 and
654 use it for disassembly; accept .main in addition to main in backtrace.
659 * gdb.trace/actions.c (gdb_recursion_test_fp): New typedef.
660 (gdb_recursion_test_ptr): New global variable.
661 (gdb_recursion_test): Call gdb_recursion_test_ptr instead of
667 * gdb.trace/change-loc.exp: Don't depend on tracepoint location
672 * gdb.trace/unavailable-dwarf-piece.c (foo): Add foo_start_lbl label.
673 (bar): Add bar_start_lbl label.
674 * gdb.trace/unavailable-dwarf-piece.exp: Use foo/bar_start_lbl instead
675 of foo/bar for emitting DWARF and tracing.
679 * analyze-racy-logs.py: Set executable bit.
683 * Makefile.in (DEFAULT_RACY_ITER): New variable.
684 (CHECK_TARGET_TMP): Likewise.
685 (check-single-racy): New rule.
686 (check-parallel-racy): Likewise.
687 (TEST_TARGETS): Adjust rule to account for RACY_ITER.
688 (do-check-parallel-racy): New rule.
689 (check-racy/%.exp): Likewise.
690 * README (Racy testcases): New section.
691 * analyze-racy-logs.py: New file.
695 * gdb.base/skip.exp: Use with_test_prefix.
699 * gdb.base/step-over-syscall.exp (step_over_syscall): Kfail.
700 Invoke step_over_syscall "clone" and break_cond_on_syscall
702 * gdb.base/step-over-clone.c: New file.
706 * gdb.base/step-over-syscall.exp (disp_step_cross_syscall): Fix
711 * gdb.base/disp-step-fork.c: Rename to ...
712 * gdb.base/step-over-fork.c: ... it. New file.
713 * gdb.base/disp-step-vfork.c: Rename to ...
714 * gdb.base/step-over-vfork.c: ... it. New file.
715 * gdb.base/disp-step-syscall.exp: Rename to ...
716 * gdb.base/step-over-syscall.exp: ... it. New file.
717 (disp_step_cross_syscall): Rename to ...
718 (step_over_syscall): ... it.
722 * gdb.base/disp-step-syscall.exp (break_cond_on_syscall): New.
723 If target supports condition evaluation on target, invoke
724 break_cond_on_syscall for fork and vfork.
728 * gdb.base/disp-step-syscall.exp: Don't invoke
729 support_displaced_stepping.
730 (disp_step_cross_syscall): Test with displaced stepping off and
735 * gdb.base/disp-step-syscall.exp (check_pc_after_cross_syscall): New
738 (disp_step_cross_syscall): Move code to check_pc_after_cross_syscall
743 * gdb.fortran/vla-history.exp: Remove breakpoint.
747 * gdb.fortran/vla-history.exp: Lookup array elements and printing exceeds timeout.
751 * gdb.cp/vla-cxx.cc: Insert dummy assignment as anchor for an breakpoint.
755 * gdb.mi/vla.f90: Nullify pointer after declaration.
759 * gdb.trace/ftrace-lock.c: Include <unistd.h>.
763 * gdb.threads/watchpoint-fork-child.c: Include "watchpoint-fork.h"
764 before anything else.
765 * gdb.threads/watchpoint-fork-mt.c: Likewise. Don't define
767 * gdb.threads/watchpoint-fork-st.c: Include "watchpoint-fork.h"
768 before anything else.
769 * gdb.threads/watchpoint-fork.h: Define _GNU_SOURCE.
773 * gdb.base/catch-fork-kill.c: Include <sys/wait.h>.
777 * gdb.arch/arm-disp-step.exp: Use standard_testfile and
782 * gdb.arch/arm-neon.exp: Pass quiet to prepare_for_testing.
786 * gdb.arch/s390-tdbregs.exp: Use prepare_for_testing instead of
787 manually constructing the output path.
791 * gdb.arch/s390-stackless.S: New.
792 * gdb.arch/s390-stackless.exp: New.
796 * gdb.dlang/circular.c: New file.
797 * gdb.dlang/circular.exp: New file.
801 * gdb.reverse/insn-reverse.c [__arm__] (ext_reg_load): New.
802 [__arm__] (ext_reg_mov, ext_reg_push_pop): New.
807 * gdb.reverse/aarch64.c: Rename to ...
808 * gdb.reverse/insn-reverse.c: ... it.
809 * gdb.reverse/aarch64.exp: Rename to ...
810 * gdb.reverse/insn-reverse.exp: ... it.
814 * gdb.reverse/aarch64.c: [__aarch64__] Include arm_neon.h.
815 (testcase_ftype): New.
816 (testcases): New array.
818 (main): Call each element in testcases.
819 * gdb.reverse/aarch64.exp: Remove is_aarch64_target check.
820 (read_testcase): New.
821 Do the tests in a loop.
825 * gdb.base/branches.c: Remove.
830 * gdb.trace/ftrace.exp (test_fast_tracepoints): Remove kfail.
834 * gdb.trace/ftrace.exp: Remove unnecessary target check.
838 * gdb.trace/entry-values.exp: Surround $call_insn with '\y',
839 change x86_64 call_insn to 'callq'.
843 * gdb.trace/tfile-avx.c: Move to...
844 * gdb.trace/tracefile-pseudo-reg.c: Here.
845 * gdb.trace/tfile-avx.exp: Move to...
846 * gdb.trace/tracefile-pseudo-reg.exp: Here.
850 * gdb.base/attach-pie-noexec.exp: Do not expect an error
855 * gdb.base/skip.c (test_skip): New function.
856 (end_test_skip_file_and_function): New function.
857 (test_skip_file_and_function): New function.
858 * gdb.base/skip1.c (test_skip): New function.
859 (skip1_test_skip_file_and_function): New function.
860 * gdb.base/skip.exp: Add tests for new skip options.
861 * gdb.base/skip-solib.exp: Update expected output.
862 * gdb.perf/skip-command.cc: New file.
863 * gdb.perf/skip-command.exp: New file.
864 * gdb.perf/skip-command.py: New file.
868 * gdb.trace/unavailable.exp (gdb_unavailable_registers_test_1): Fix
869 info registers pattern.
873 * lib/future.exp: Add D support.
874 (gdb_find_gdc): New proc.
875 (gdb_default_target_compile): Add D support.
879 * gdb.trace/tspeed.c (myclock): Return wallclock instead of
881 (trace_speed_test): Determine the iteration count for a time
882 between 15..30 seconds.
886 * gdb.arch/i386-mpx-sigsegv.c: New file.
887 * gdb.arch/i386-mpx-sigsegv.exp: New file.
888 * gdb.arch/i386-mpx-simple_segv.c: New file.
889 * gdb.arch/i386-mpx-simple_segv.exp: New file.
893 * gdb.base/disp-step-syscall.exp (disp_step_cross_syscall):
894 Don't call setup_kfail.
898 * gdb.threads/forking-threads-plus-breakpoint.exp (do_test):
899 Set "set breakpoint condition-evaluation" per $cond_bp_target.
903 * gdb.base/skip.c: Add copyright. Whitespace cleanup.
904 * gdb.base/skip1.c: Ditto.
905 * gdb.base/skip.exp: Whitespace cleanup.
910 * gdb.threads/forking-threads-plus-breakpoint.exp (do_test):
911 Remove kfail for PR remote/19496.
915 * lib/gdb.exp (standard_temp_file): Return a path specific to
916 the runtest invocation.
920 * gdb.trace/save-trace.exp: Change relative path to be in the
921 standard output directory.
925 * gdb.arch/i386-prologue.c: Add missing prototypes.
929 * gdb.arch/i386-gnu-cfi.exp: Use standard_output_file.
930 * gdb.arch/i386-prologue.exp: Likewise.
931 * gdb.arch/i386-size.exp: Likewise.
935 * gdb.base/wrong_frame_bt_full.exp: Use standard_output_file to
936 define object file path.
937 * gdb.btrace/gcore.exp: Use standard_output_file to define core
939 * lib/opencl.exp (gdb_compile_opencl_hostapp): Use
940 standard_output_file to define binfile.
944 Fix compatibility with recent gfortran-5.3.1.
945 * gdb.fortran/vla-history.exp (print vla1 allocated)
946 (print vla2 allocated, print $2, print $3): Remove
947 (print $4): Rename to ...
948 (print $2): ... here.
949 (print $9): Rename to ...
950 (print $5): ... here.
951 (print $10): Rename to ...
952 (print $6): ... here.
953 * gdb.fortran/vla.f90: Add pvla initialization.
957 * gdb.fortran/vla-value-sub-finish.exp (set max-value-size 1024*1024):
959 * gdb.fortran/vla-value-sub.exp: Likewise.
963 * gdb.trace/tfile-avx.c (main): Change ymm15 to xmm15.
967 * i386-biarch-core.exp: Define corefile using
968 standard_output_file.
972 * gdb.arch/arm-single-step-kernel-helper.c: New.
973 * gdb.arch/arm-single-step-kernel-helper.exp: New.
977 * gdb.btrace/tailcall-only.exp: New.
978 * gdb.btrace/tailcall-only.c: New.
979 * gdb.btrace/x86_64-tailcall-only.S: New.
980 * gdb.btrace/i686-tailcall-only.S: New.
984 * README (Parallel testing): Add missing double quotes.
988 * README (Parallel testing): New section.
989 (GDB_PARALLEL): Rewrite.
990 (FORCE_PARALLEL): Document.
994 * gdb.trace/tfile-avx.c: New test.
995 * gdb.trace/tfile-avx.exp: New test.
1000 * gdb.base/infcall-exec.c: New file.
1001 * gdb.base/infcall-exec2.c: New file.
1002 * gdb.base/infcall-exec.exp: New file.
1006 * gdb.guile/scm-breakpoint.exp (test_bkpt_address): New procedure.
1007 (toplevel): Call test_bkpt_address.
1012 * gdb.python/py-breakpoint.exp (test_bkpt_address): New procedure.
1013 (toplevel): Call test_bkpt_address.
1017 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
1019 * configure: Regenerate.
1023 PR breakpoints/19548
1024 * gdb.base/execl-update-breakpoints.c (some_function): New
1027 * gdb.base/execl-update-breakpoints.exp: Add a second breakpoint.
1028 Tighten expected GDB output.
1032 * Makefile.in (ALL_SUBDIRS): Remove.
1033 (clean mostlyclean): Do not recurse in ALL_SUBDIRS.
1034 (distclean maintainer-clean realclean): Likewise.
1035 * configure.ac (AC_OUTPUT): Remove gdb.*/Makefile.
1036 * configure: Regenerate.
1037 * gdb.ada/Makefile.in: Delete.
1038 * gdb.arch/Makefile.in: Likewise.
1039 * gdb.asm/Makefile.in: Likewise.
1040 * gdb.base/Makefile.in: Likewise.
1041 * gdb.btrace/Makefile.in: Likewise.
1042 * gdb.cell/Makefile.in: Likewise.
1043 * gdb.compile/Makefile.in: Likewise.
1044 * gdb.cp/Makefile.in: Likewise.
1045 * gdb.disasm/Makefile.in: Likewise.
1046 * gdb.dlang/Makefile.in: Likewise.
1047 * gdb.dwarf2/Makefile.in: Likewise.
1048 * gdb.fortran/Makefile.in: Likewise.
1049 * gdb.gdb/Makefile.in: Likewise.
1050 * gdb.go/Makefile.in: Likewise.
1051 * gdb.guile/Makefile.in: Likewise.
1052 * gdb.java/Makefile.in: Likewise.
1053 * gdb.linespec/Makefile.in: Likewise.
1054 * gdb.mi/Makefile.in: Likewise.
1055 * gdb.modula2/Makefile.in: Likewise.
1056 * gdb.multi/Makefile.in: Likewise.
1057 * gdb.objc/Makefile.in: Likewise.
1058 * gdb.opencl/Makefile.in: Likewise.
1059 * gdb.opt/Makefile.in: Likewise.
1060 * gdb.pascal/Makefile.in: Likewise.
1061 * gdb.perf/Makefile.in: Likewise.
1062 * gdb.python/Makefile.in: Likewise.
1063 * gdb.reverse/Makefile.in: Likewise.
1064 * gdb.server/Makefile.in: Likewise.
1065 * gdb.stabs/Makefile.in: Likewise.
1066 * gdb.threads/Makefile.in: Likewise.
1067 * gdb.trace/Makefile.in: Likewise.
1068 * gdb.xml/Makefile.in: Likewise.
1069 * lib/gdb.exp (make_gdb_parallel_path): Add check for
1071 (standard_output_file): Remove check for GDB_PARALLEL, always
1072 return path in outputs/$subdir/$testname.
1076 * Makefile.in (abs_srcdir): Assign @abs_srcdir@.
1077 (site.exp): Assign abs_srcdir to tcl's srcdir.
1081 * gdb.base/foll-exec-mode.c: Include limits.h.
1082 (main): Add parameters argc and argv. Get directory from
1084 * gdb.base/foll-exec-mode.exp: Don't pass -DBASEDIR in
1086 * gdb.base/foll-exec.c: Include limits.h.
1087 (main): Add parameters argc and argv.
1088 Get directory from argv[0].
1089 * gdb.base/foll-exec.exp: Don't pass -DBASEDIR in compilation.
1090 Adjust tests on the number of lines as source code changed.
1091 * gdb.base/foll-vfork-exit.c: Include limits.h.
1092 (main): Add one line of statement before vfork.
1093 * gdb.base/foll-vfork.c: Include limits.h and string.h.
1094 (main): Add parameters argc and argv. Get directory from
1096 * gdb.base/foll-vfork.exp: Don't pass -DBASEDIR in compilation.
1097 (setup_gdb): Set tbreak to skip some source lines.
1098 * gdb.multi/bkpt-multi-exec.c: Include limits.h.
1099 (main): Add parameters argc and argv. Get directory from
1101 * gdb.multi/bkpt-multi-exec.exp: Don't pass -DBASEDIR in
1103 * gdb.multi/multi-arch-exec.c: Include limits.h and string.h.
1104 (main): Add parameters argc and argv. Get directory from
1106 * gdb.multi/multi-arch-exec.exp: Don't pass -DBASEDIR in
1111 * gdb.base/skip.exp: Clean up multiple references to same test name.
1116 * gdb.threads/forking-threads-plus-breakpoint.exp
1117 (displaced_stepping_supported): New global.
1118 (probe_displaced_stepping_support): New procedure.
1119 (do_test): Add 'displaced' parameter, and use it.
1120 (top level): Check for displaced stepping support. Add displaced
1121 stepping on/off testing axis.
1125 * gdb.mi/mi-vla-fortran.exp: Add XFAIL for accessing unassociated
1126 pointer. Don't perform further tests on the unassociated pointer
1127 if the first test fails.
1131 * gdb.base/max-value-size.c: New file.
1132 * gdb.base/max-value-size.exp: New file.
1133 * gdb.base/huge.exp: Disable max-value-size for this test.
1137 * gdb.dlang/demangle.exp: Sync tests from libiberty testsuite.
1141 * gdb.fortran/vla-value.exp: Wrap test with with_timeout_factor.
1146 * gdb.base/fork-running-state.c: New file.
1147 * gdb.base/fork-running-state.exp: New file.
1152 * gdb.base/catch-fork-kill.c: New file.
1153 * gdb.base/catch-fork-kill.exp: New file.
1157 * gdb.base/step-sw-breakpoint-adjust-pc.exp (foreach_with_prefix):
1158 Delete, moved to lib/gdb.exp.
1159 * gdb.threads/forking-threads-plus-breakpoint.exp
1160 (foreach_with_prefix): Likewise.
1161 * gdb.threads/process-dies-while-handling-bp.exp
1162 (foreach_with_prefix): Likewise.
1163 * lib/gdb.exp (foreach_with_prefix): New procedure.
1167 * gdb.trace/backtrace.exp: Bump stack collection fudge factor.
1168 * gdb.trace/entry-values.exp: Bump stack collection fudge factor.
1172 * gdb.trace/unavailable-dwarf-piece.exp: Fix bitfield handling on big
1178 Fix testsuite compatibility with Guile.
1179 * gdb.gdb/selftest.exp (send ^C to child process): Drop expected Thread
1184 Fix testsuite compatibility with Guile.
1185 * gdb.gdb/selftest.exp (send ^C to child process): Accept also Thread.
1186 (thread 1): New test for backtrace through signal handler.
1191 * gdb.base/multi-forks.c: Include
1192 ../lib/unbuffer_output.c
1193 (main): Call gdb_unbuffer_output.
1197 * lib/ada.exp (gdb_compile_ada): Fix typo.
1201 * gdb.base/break-fun-addr.exp: New file.
1202 * gdb.base/break-fun-addr1.c: New file.
1203 * gdb.base/break-fun-addr2.c: New file.
1207 * gdb.python/py-pp-maint.exp: Change/add enum flag tests.
1208 * gdb.python/py-pp-maint.c (enum flag_enum): Use more complex
1213 * gdb.base/gnu_vector.exp: Re-establish handling for should_kfail
1214 when GDB can not set the vector return value. Add more comments
1219 * gdb.trace/tspeed.exp: Use shlib instead of libs in gdb_compile
1224 * Makefile.in (DO_RUNTEST): Add --status and update usages.
1228 * Makefile.in (check-single): Pass --status to runtest.
1229 (check/%.exp): Likewise.
1233 * Makefile.in (check-parallel): Propagate return code from make
1238 * gdb.trace/ftrace.exp: Fix expected message on continue.
1239 * gdb.trace/pending.exp: Fix expected message on continue.
1240 * gdb.trace/trace-break.exp: Fix expected message on continue.
1244 * lib/gdb.exp (gdb_test): Remove unused global references.
1248 * gdb.base/async-shell.exp: Adjust expected output.
1249 * gdb.base/dprintf-non-stop.exp: Adjust expected output.
1250 * gdb.base/siginfo-thread.exp: Adjust expected output.
1251 * gdb.base/watchpoint-hw-hit-once.exp: Adjust expected output.
1252 * gdb.java/jnpe.exp: Adjust expected output.
1253 * gdb.threads/clone-new-thread-event.exp: Adjust expected output.
1254 * gdb.threads/continue-pending-status.exp: Adjust expected output.
1255 * gdb.threads/leader-exit.exp: Adjust expected output.
1256 * gdb.threads/manythreads.exp: Adjust expected output.
1257 * gdb.threads/pthreads.exp: Adjust expected output.
1258 * gdb.threads/schedlock.exp: Adjust expected output.
1259 * gdb.threads/siginfo-threads.exp: Adjust expected output.
1260 * gdb.threads/signal-command-multiple-signals-pending.exp: Adjust
1262 * gdb.threads/signal-delivered-right-thread.exp: Adjust expected
1264 * gdb.threads/sigthread.exp: Adjust expected output.
1265 * gdb.threads/watchpoint-fork.exp: Adjust expected output.
1269 * gdb.guile/scm-section-script.c: Replace @progbits with
1271 * gdb.python/py-section-script.c: Likewise.
1275 * gdb.multi/tids.exp: Test star wildcard ranges.
1279 * gdb.multi/tids.exp (thr_apply_info_thr_error): Remove "p 1234"
1280 command from "thread apply" invocation.
1281 (thr_apply_info_thr_invalid): Default the expected output to the
1283 (top level): Add tests that use convenience variables. Add tests
1284 for "thread apply" with a valid TID list, but missing the command.
1288 * gdb.base/default.exp: Expect $_gthread as well.
1289 * gdb.multi/tids.exp: Test $_gthread.
1290 * gdb.threads/thread-specific.exp: Test $_gthread.
1294 * gdb.multi/tids.exp: Test "info threads -gid".
1298 * gdb.multi/tids.exp: Test InferiorThread.global_num and
1300 * gdb.python/py-infthread.exp: Test InferiorThread.global_num.
1304 * gdb.base/break.exp: Adjust to output changes.
1305 * gdb.base/hbreak2.exp: Likewise.
1306 * gdb.base/sepdebug.exp: Likewise.
1307 * gdb.base/watch_thread_num.exp: Likewise.
1308 * gdb.linespec/keywords.exp: Likewise.
1309 * gdb.multi/info-threads.exp: Likewise.
1310 * gdb.threads/thread-find.exp: Likewise.
1311 * gdb.multi/tids.c: New file.
1312 * gdb.multi/tids.exp: New file.
1316 * gdb.python/py-infthread.exp: Test InferiorThread.inferior.
1320 * gdb.base/default.exp: Expect $_inferior as well.
1321 * gdb.multi/base.exp: Test $_inferior.
1325 PR breakpoints/19388
1326 * gdb.base/catch-signal-siginfo-cond.c: New file.
1327 * gdb.base/catch-signal-siginfo-cond.exp: New file.
1332 * gdb.base/catch-syscall.c (do_execve): New variable.
1333 (main): Conditionally trigger an execve.
1334 * gdb.base/catch-syscall.exp: Enable testing for remote targets.
1335 (test_catch_syscall_execve): New, check entry/return across execve.
1336 (do_syscall_tests): Call test_catch_syscall_execve.
1340 * gdb.base/random-signal.exp (do_test): New procedure, with body
1341 of testcase moved in.
1346 * gdb.base/funcargs.exp (finish from indirectly called function):
1347 Reintroduce the case for 'First'.
1352 * gdb.base/foll-vfork.exp (tcatch_vfork_then_parent_follow)
1353 (tcatch_vfork_then_child_follow_exec)
1354 (tcatch_vfork_then_child_follow_exit): Revert back DWARF vfork
1359 * gdb.guile/scm-value.exp (test_value_in_inferior): Set print elements
1360 and repeats to unlimited.
1361 * gdb.python/py-value.exp: Likewise.
1362 * lib/gdb.exp (gdb_has_argv0): Save and temporarily set print elements
1363 and repeats to unlimited.
1367 * gdb.multi/goodbye.c: Fix compilation warnings by adding return types
1368 and reordering the functions.
1369 * gdb.multi/hangout.c: Likewise.
1370 * gdb.multi/hello.c: Likewise.
1374 * gdb.perf/lib/perftest/perftest.py: Change relative imports to
1376 (SingleStatisticTestResult.report): Use dict.keys instead of
1381 * gdb.python/py-infthread.exp: Fix typo. Expect t0.num to be 1.
1385 * gdb.btrace/dlopen.exp: New.
1386 * gdb.btrace/dlopen.c: New.
1387 * gdb.btrace/dlopen-dso.c: New.
1391 * lib/gdb.exp (gdb_test): Update comments to clarify that the
1392 PATTERN argument is optional.
1396 * lib/ada.exp (target_compile_ada_from_dir): New function.
1397 (gdb_compile_ada): Reimplement avoiding the use of project files.
1398 * gdb.ada/gnat_ada.gpr: Delete.
1399 * gdb.ada/cond_lang.exp: Adjust test to make path before
1401 * gdb.ada/small_reg_param.exp: Likewise.
1405 * gdb.base/foll-vork.exp: Remove HP-UX special case.
1409 * lib/mi-support.exp (mi_run_cmd_full): Add an expect for the CLI jump
1414 * gdb.base/break.exp: Remove dead code.
1415 * gdb.base/sepdebug.exp: Likewise.
1419 * gdb.asm/asm-source.exp: Remove HP-UX references.
1420 * gdb.base/annota1.exp: Likewise.
1421 * gdb.base/annota3.exp: Likewise.
1422 * gdb.base/attach.exp: Likewise.
1423 * gdb.base/bigcore.exp: Likewise.
1424 * gdb.base/break.exp: Likewise.
1425 * gdb.base/call-ar-st.exp: Likewise.
1426 * gdb.base/callfuncs.exp: Likewise.
1427 * gdb.base/catch-fork-static.exp: Likewise.
1428 * gdb.base/display.exp: Likewise.
1429 * gdb.base/foll-exec-mode.exp: Likewise.
1430 * gdb.base/foll-exec.exp: Likewise.
1431 * gdb.base/foll-fork.exp: Likewise.
1432 * gdb.base/foll-vfork.exp: Likewise.
1433 * gdb.base/funcargs.exp: Likewise.
1434 * gdb.base/hbreak2.exp: Likewise.
1435 * gdb.base/inferior-died.exp: Likewise.
1436 * gdb.base/interrupt.exp: Likewise.
1437 * gdb.base/multi-forks.exp: Likewise.
1438 * gdb.base/nodebug.exp: Likewise.
1439 * gdb.base/sepdebug.exp: Likewise.
1440 * gdb.base/solib1.c: Likewise.
1441 * gdb.base/step-test.exp: Likewise.
1442 * gdb.mi/non-stop.c: Likewise.
1443 * gdb.mi/pthreads.c: Likewise.
1444 * gdb.multi/bkpt-multi-exec.ex: Likewise.
1445 * gdb.threads/pthreads.c: Likewise.
1446 * gdb.threads/staticthreads.exp: Likewise.
1447 * lib/future.exp: Likewise.
1448 * lib/gdb.exp: Likewise.
1449 * gdb.base/so-indr-cl.c: Remove.
1450 * gdb.base/so-indr-cl.exp: Likewise.
1451 * gdb.base/solib.c: Likewise.
1452 * gdb.base/solib.exp: Likewise.
1453 * gdb.base/solib2.c: Likewise.
1457 * gdb.base/break.exp: Remove references to HP CC/aCC compilers.
1458 * gdb.base/call-ar-st.exp: Likewise.
1459 * gdb.base/callfuncs.exp: Likewise.
1460 * gdb.base/condbreak.exp: Likewise.
1461 * gdb.base/constvars.exp: Likewise.
1462 * gdb.base/hbreak2.exp: Likewise.
1463 * gdb.base/langs.exp: Likewise.
1464 * gdb.base/list.exp: Likewise.
1465 * gdb.base/long_long.exp: Likewise.
1466 * gdb.base/ptype.exp: Likewise.
1467 * gdb.base/scope.exp: Likewise.
1468 * gdb.base/signals.exp: Likewise.
1469 * gdb.base/so-impl-ld.exp: Likewise.
1470 * gdb.base/varargs.exp: Likewise.
1471 * gdb.base/volatile.exp: Likewise.
1472 * gdb.base/whatis.exp: Likewise.
1473 * gdb.cp/cplusfuncs.exp: Likewise.
1474 * gdb.cp/inherit.exp: Likewise.
1475 * gdb.cp/local.exp: Likewise.
1476 * gdb.cp/member-ptr.exp: Likewise.
1477 * gdb.cp/method.exp: Likewise.
1478 * gdb.cp/overload.exp: Likewise.
1479 * gdb.cp/templates.exp: Likewise.
1480 * gdb.stabs/weird.exp: Likewise.
1481 * lib/compiler.c: Likewise.
1482 * lib/compiler.cc: Likewise.
1483 * lib/cp-support.exp: Likewise.
1484 * lib/gdb.exp: Likewise.
1488 * configure.ac: Remove HP-UX case.
1489 * configure: Regenerate.
1493 * lib/gdb.exp (gdb_compile): Add function doc.
1498 * gdb.multi/info-threads.exp: New file.
1502 * gdb.trace/ftrace.exp: Set arg0exp to "$x0" if target
1507 * gdb.base/history-duplicates.exp: Skip if no readline support.
1511 * gdb.base/gdbinit-history.exp: Skip for remote-host testing.
1515 * gdb.base/gdbhistsize-history.exp: Skip for remote-host testing.
1519 * gdb.base/completion.exp: Skip tests that interrupt GDB with
1520 ctrl-C if nointerrupts target property is set.
1521 * gdb.base/double-prompt-target-event-error.exp: Likewise.
1522 * gdb.base/paginate-after-ctrl-c-running.exp: Likewise.
1523 * gdb.base/paginate-bg-execution.exp: Likewise.
1524 * gdb.base/paginate-execution-startup.exp: Likewise.
1525 * gdb.base/random-signal.exp: Likewise.
1526 * gdb.base/range-stepping.exp: Likewise.
1527 * gdb.cp/annota2.exp: Likewise.
1528 * gdb.cp/annota3.exp: Likewise.
1529 * gdb.gdb/selftest.exp: Likewise.
1530 * gdb.threads/continue-pending-status.exp: Likewise.
1531 * gdb.threads/leader-exit.exp: Likewise.
1532 * gdb.threads/manythreads.exp: Likewise.
1533 * gdb.threads/pthreads.exp: Likewise.
1534 * gdb.threads/schedlock.exp: Likewise.
1535 * gdb.threads/sigthread.exp: Likewise.
1539 * gdb.base/execl-update-breakpoints.exp (main): Enable for target
1541 * gdb.base/foll-exec-mode.exp (main): Disable for target remote.
1542 * gdb.base/foll-exec.exp (main): Enable for target remote.
1543 * gdb.base/foll-fork.exp (main): Likewise.
1544 * gdb.base/foll-vfork.exp (main): Likewise.
1545 * gdb.base/multi-forks.exp (main): Likewise, and use clean_restart.
1546 (proc continue_to_exit_bp_loc): Use clean_restart.
1547 * gdb.base/pie-execl.exp (main): Disable for target remote.
1548 * gdb.base/watch-vfork.exp (main): Enable for target remote.
1549 * gdb.mi/mi-nsthrexec.exp (main): Likewise.
1550 * gdb.threads/execl.exp (main): Likewise.
1551 * gdb.threads/fork-child-threads.exp (main): Likewise.
1552 * gdb.threads/fork-plus-threads.exp (main): Disable for target
1554 * gdb.threads/fork-thread-pending.exp (main): Enable for target
1556 * gdb.threads/linux-dp.exp (check_philosopher_stack): Allow
1557 pid.tid style ptids, instead of just tid.
1558 * gdb.threads/thread-execl.exp (main): Enable for target remote.
1559 * gdb.threads/watchpoint-fork.exp (main): Likewise.
1560 * gdb.trace/report.exp (use_collected_data): Allow pid.tid style
1561 ptids, instead of just tid.
1565 * gdb.base/list.exp (test_list_forward): Add end of file error
1567 (test_repeat_list_command): Add end of file error test.
1568 (test_list_backwards): Add beginning of file error test.
1572 * gdb.base/list.exp (test_list_invalid_args): New function,
1573 defined, and called.
1577 * gdb.base/list.exp (test_list): Make test names unique.
1581 * gdb.base/coremaker2.c: Remove.
1585 * gdb.multi/base.exp: Remove stale "spaces" references.
1589 * gdb.multi/base.exp: Don't use nowarnings.
1590 * gdb.multi/bkpt-multi-exec.exp: Don't use nowarnings.
1591 * gdb.multi/hangout.c: Include stdio.h.
1592 * gdb.multi/hello.c: Include stdlib.h.
1593 * gdb.multi/multi-arch-exec.c: Include stdlib.h.
1594 * gdb.multi/multi-arch-exec.exp: Don't use nowarnings.
1595 * gdb.multi/multi-arch.exp: Don't use nowarnings.
1599 * gdb.dwarf2/dw2-ranges-base.c: New file.
1600 * gdb.dwarf2/dw2-ranges-base.exp: New file.
1601 * lib/dwarf.exp (namespace eval Dwarf): Add new variables to
1602 support additional line table, and debug ranges generation.
1603 (Dwarf::ranges): New function, generate .debug_ranges.
1604 (Dwarf::lines): Support generating simple line table programs.
1605 (Dwarf::assemble): Initialise new namespace variables.
1609 * gdb.base/async.exp (proc test_background): Add case for
1610 asynchronous execution not supported.
1614 * gdb.mi/mi-var-display.exp: Add new checks for the zero-hexadecimal
1615 format and change test names to make them unique.
1621 Add checking of floatformats setup on x86_64 hosts.
1622 * gdb.arch/i386-float.S (main): Load bigval and smallval.
1623 (smallval, bigval): New labels/constants.
1624 * gdb.arch/i386-float.exp: Use with_test_prefix and test "info
1625 float" after loading bigval and smallval.
1629 * gdb.ada/fun_overload_menu.exp: New testcase.
1630 * gdb.ada/fun_overload_menu/foo.adb: New testcase.
1634 * gdb.base/catch-fork-static.exp: New.
1638 * gdb.base/sizeof.c: Don't include stdio.h and
1639 ../lib/unbuffer_output.c.
1640 (main): New variable 'size' and 'value'. Remove printf and
1641 gdb_unbuffer_output. Assign return value to size and value.
1642 * gdb.base/sizeof.exp: Remove the checking to gdb,noinferiorio
1644 (check_sizeof): Check the result by printing variable 'size'.
1645 (check_valueof): Check the result by printing variable 'value'.
1649 * gdb.base/disp-step-syscall.exp: Define syscall instruction
1650 for aarch64*-*-linux* target.
1654 * gdb.threads/no-unwaited-for-left.exp: Remove setup_kfail calls.
1658 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
1659 Handle non-stop mode vCont replies.
1663 * gdb.base/dprintf-non-stop.exp: Use build_executable instead of
1664 prepare_for_testing. Start gdb with "set non-stop on" appended to
1665 GDBFLAGS. Lax expected stop output.
1669 * gdb.arch/arm-neon.exp: New.
1670 * gdb.arch/arm-neon.c: New.
1674 * gdb.cp/annota2.exp: Rewrite the pattern using multi_line.
1678 * gdb.cp/annota2.exp: Allow multiple occurrences of the
1679 frames-invalid annotation.
1683 * gdb.cp/annota2.exp: Use ${frames_invalid}.
1687 * gdb.threads/names.exp: New file.
1688 * gdb.threads/names.c: New file.
1689 * README: Mention gdb,no_thread_names.
1694 * lib/gdb.exp (skip_btrace_pt_tests): Check for a "GDB does not
1700 * gdb.base/display.exp: Expect displays to be sorted in ascending
1701 order. Use multi_line.
1702 * gdb.base/solib-display.exp: Likewise.
1707 * gdb.base/display.exp: Expect displays to be sorted in ascending
1708 order. Use multi_line.
1709 * gdb.base/solib-display.exp: Likewise.
1714 * gdb.base/foll-exec-mode.exp: Adjust to GDB listing inferiors and
1715 threads in ascending order.
1716 * gdb.base/foll-fork.exp: Likewise.
1717 * gdb.base/foll-vfork.exp: Likewise.
1718 * gdb.base/multi-forks.exp: Likewise.
1719 * gdb.mi/mi-nonstop.exp: Likewise.
1720 * gdb.mi/mi-nsintrall.exp: Likewise.
1721 * gdb.multi/base.exp: Likewise.
1722 * gdb.multi/multi-arch.exp: Likewise.
1723 * gdb.python/py-inferior.exp: Likewise.
1724 * gdb.threads/break-while-running.exp: Likewise.
1725 * gdb.threads/execl.exp: Likewise.
1726 * gdb.threads/gcore-thread.exp: Likewise.
1727 * gdb.threads/info-threads-cur-sal.exp: Likewise.
1728 * gdb.threads/kill.exp: Likewise.
1729 * gdb.threads/linux-dp.exp: Likewise.
1730 * gdb.threads/multiple-step-overs.exp: Likewise.
1731 * gdb.threads/next-bp-other-thread.exp: Likewise.
1732 * gdb.threads/step-bg-decr-pc-switch-thread.exp: Likewise.
1733 * gdb.threads/step-over-lands-on-breakpoint.exp: Likewise.
1734 * gdb.threads/step-over-trips-on-watchpoint.exp: Likewise.
1735 * gdb.threads/thread-find.exp: Likewise.
1736 * gdb.threads/tls.exp: Likewise.
1737 * lib/mi-support.exp (mi_reverse_list): Delete.
1738 (mi_check_thread_states): No longer reverse list.
1742 * gdb.python/py-inferior.exp: Use with_test_prefix. Consistently
1747 * gdb.trace/actions.c: Include trace-common.h.
1748 (main): Add a location for a fast tracepoint.
1749 * gdb.trace/save-trace.exp: Set a fast tracepoint in addition to
1750 the normal tracepoints.
1751 (gdb_verify_tracepoints): Adjust number of expected tracepoints.
1755 * save-trace.exp: Factor out code to these...
1756 (gdb_save_tracepoints): New.
1757 (gdb_load_tracepoints): New.
1758 (do_save_load_test): New.
1762 * gdb.base/asmlabel.exp: New test.
1763 * gdb.base/asmlabel.c: New test case.
1767 * gdb.base/wrong_frame_bt_full-main.c: New file.
1768 * gdb.base/wrong_frame_bt_full-opaque.c: New file.
1769 * gdb.base/wrong_frame_bt_full.exp: New file.
1773 * testsuite/gdb.ada/var_rec_arr.exp: Add "ptype a1(1)" test.
1777 * gdb.base/callfuncs.exp (fetch_all_registers): Filter out the
1778 pstate register when comparing registers values in
1779 sparc64-*-linux-gnu targets to avoid spurious differences.
1783 * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
1787 * gdb.base/nested-subp1.exp: Pass executable, not executable name,
1788 as type argument to gdb_compile.
1789 * gdb.base/nested-subp2.exp: Likewise.
1790 * gdb.base/nested-subp3.exp: Likewise.
1794 * lib/dwarf.exp (_note): Fix left shift of negative value.
1795 * gdb.trace/trace-condition.exp: Likewise.
1799 * gdb.base/call-sc.exp (test_scalar_returns): Remove the
1800 comments about d10v.
1801 (test_scalar_returns): Likewise.
1802 * gdb.base/d10v.ld: Remove.
1803 * gdb.base/overlays.exp: Remove the target triplet checking for
1805 * gdb.base/structs.exp (test_struct_returns): Remove the
1806 comments about d10v.
1807 (test_struct_calls): Likewise.
1811 * gdb.base/gnu_vector.exp: Check the return value by "p res".
1812 * gdb.base/gnu_vector.c: Don't include stdio.h.
1813 (main): Don't print res and call add_some_intvecs.
1817 * gdb.trace/change-loc.h: include "trace-common.h", remove SYMBOL
1820 (func4): Use FAST_TRACEPOINT_LABEL.
1821 * gdb.trace/ftrace-lock.c: include "trace-common.h", remove SYMBOL
1824 (thread_function): Use FAST_TRACEPOINT_LABEL.
1825 * gdb.trace/ftrace.c: include "trace-common.h", remove SYMBOL macro.
1827 (marker): Use FAST_TRACEPOINT_LABEL.
1828 * gdb.trace/pendshr1.c: include "trace-common.h", remove SYMBOL macro.
1829 (pendfunc1): Remove.
1830 (pendfunc): Use FAST_TRACEPOINT_LABEL.
1831 * gdb.trace/pendshr2.c: include "trace-common.h", remove SYMBOL macro.
1833 (pendfunc2): Use FAST_TRACEPOINT_LABEL.
1834 * gdb.trace/trace-break.c: include "trace-common.h", remove SYMBOL
1837 (marker): Use FAST_TRACEPOINT_LABEL.
1838 * gdb.trace/trace-common.h: New header.
1839 * gdb.trace/trace-condition.c: include "trace-common.h", remove SYMBOL
1842 (marker): Use FAST_TRACEPOINT_LABEL.
1843 * gdb.trace/trace-mt.c: include "trace-common.h", remove SYMBOL macro.
1845 (thread_function): Use FAST_TRACEPOINT_LABEL.
1849 * gdb.trace/backtrace.exp: Use global fpreg/spreg definition, add $
1851 * gdb.trace/change-loc.exp: Use global pcreg definition.
1852 * gdb.trace/collection.exp: Use global pcreg/fpreg/spreg definition.
1853 * gdb.trace/entry-values.exp: Use global spreg definition, add $
1855 * gdb.trace/mi-trace-frame-collected.exp: Use global pcreg definition.
1856 * gdb.trace/pending.exp: Likewise.
1857 * gdb.trace/report.exp: Use global pcreg/fpreg/spreg definition.
1858 * gdb.trace/trace-break.exp: Likewise.
1859 * gdb.trace/trace-condition.exp: Use global pcreg definition, add $
1861 * gdb.trace/unavailable.exp: Use global pcreg/fpreg/spreg definition.
1862 * gdb.trace/while-dyn.exp: Use global fpreg definition, add $
1864 * lib/trace-support.exp: Define fpreg, spreg, pcreg variables.
1868 * gdb.ada/fin_fun_out: New testcase.
1872 * gdb.dwarf2/data-loc.exp (Dwarf::assemble): Don't hardcode
1873 value associated with DW_AT_byte_size.
1874 * gdb.dwarf2/dynarr-ptr.exp (Dwarf::assemble): Don't hardcode
1875 constants for DW_AT_byte_size, DW_AT_lower_bound, and
1880 * lib/gdb (gdb_target_symbol_prefix_flags_asm): New proc.
1881 (gdb_target_symbol_prefix_flags): Define in terms of _asm
1883 * gdb.arch/i386-float.exp, gdb.arch/i386-permbkpt.exp,
1884 gdb.dwarf2/dw2-canonicalize-type.exp,
1885 gdb.dwarf2/dw2-compdir-oldgcc.exp, gdb.dwarf2/dw2-minsym-in-cu.exp,
1886 gdb.dwarf2/dw2-op-stack-value.exp, gdb.dwarf2/dw2-unresolved.exp,
1887 gdb.dwarf2/fission-reread.exp, gdb.dwarf2/pr13961.exp: Use flags
1888 provided by gdb_target_symbol_prefix_flags_asm.
1889 * gdb.dwarf2/dw2-canonicalize-type.S, gdb.dwarf2/dw2-compdir-oldgcc.S,
1890 testsuite/gdb.dwarf2/dw2-minsym-in-cu.S,
1891 testsuite/gdb.dwarf2/dw2-unresolved-main.c,
1892 testsuite/gdb.dwarf2/dw2-unresolved.S, gdb.dwarf2/fission-reread.S,
1893 gdb.dwarf2/pr13961.S: Define and use SYMBOL macro (and supporting
1894 macros where needed). Use this macro for symbols which require
1895 the prefix provided by SYMBOL_PREFIX.
1899 * lib/gdb.exp (gdb_target_symbol_prefix, gdb_target_symbol):
1901 * lib/dwarf.exp (_handle_DW_TAG): Handle attribute values,
1902 representing expressions, of more than one list element.
1903 * gdb.dwarf2/atomic-type.exp (Dwarf::assemble): Use gdb_target_symbol
1904 to prepend linker symbol prefix to f.
1905 * gdb.dwarf2/data-loc.exp (Dwarf::assemble): Likewise, for
1906 table_1 and table_2.
1907 * gdb.dwarf2/dw2-bad-mips-linkage-name.exp (Dwarf::assemble):
1908 Likewise, for f and g.
1909 * gdb.dwarf2/dw2-ifort-parameter.exp (Dwarf::assemble): Likewise,
1911 * gdb.dwarf2/dw2-regno-invalid.exp (Dwarf::assemble): Likewise,
1913 * gdb.dwarf2/dynarr-ptr.exp (Dwarf::assemble): Likewise, for
1914 table_1_ptr and table_2_ptr.
1919 * gdb.mi/mi-vla-fortran.exp (evaluate allocated vla): Permit any data.
1923 * gdb.reverse/s390-mvcle.c: New test.
1924 * gdb.reverse/s390-mvcle.exp: New file.
1925 * lib/gdb.exp: Enable reverse tests on s390*-linux.
1929 * gdb.reverse/readv-reverse.exp: Obvious typo fixed.
1933 * gdb.reverse/fstatat-reverse.exp: Set breakpoint on marker1 after
1935 * gdb.reverse/getresuid-reverse.exp: Likewise.
1936 * gdb.reverse/pipe-reverse.exp: Likewise.
1937 * gdb.reverse/readv-reverse.exp: Likewise.
1938 * gdb.reverse/recvmsg-reverse.exp: Likewise.
1939 * gdb.reverse/time-reverse.exp: Likewise.
1940 * gdb.reverse/waitpid-reverse.exp: Likewise and add KFAILs.
1944 * gdb.threads/wp-replication.c (watch_count_done): Remove.
1945 (empty_cycle): Remove.
1946 (main): Don't call empty_cycle. Don't use watch_count_done.
1947 * gdb.threads/wp-replication.exp: Don't set breakpoint on
1948 empty_cycle. Rewrite the code counting HW watchpoints.
1952 * gdb.reverse/fstatat-reverse.c: New test.
1953 * gdb.reverse/fstatat-reverse.exp: New file.
1954 * gdb.reverse/getresuid-reverse.c: New test.
1955 * gdb.reverse/getresuid-reverse.exp: New file.
1956 * gdb.reverse/pipe-reverse.c: New test.
1957 * gdb.reverse/pipe-reverse.exp: New file.
1958 * gdb.reverse/readv-reverse.c: New test.
1959 * gdb.reverse/readv-reverse.exp: New file.
1960 * gdb.reverse/recvmsg-reverse.c: New test.
1961 * gdb.reverse/recvmsg-reverse.exp: New file.
1962 * gdb.reverse/time-reverse.c: New test.
1963 * gdb.reverse/time-reverse.exp: New file.
1964 * gdb.reverse/waitpid-reverse.c: New test.
1965 * gdb.reverse/waitpid-reverse.exp: New file.
1969 * gdb.ada/access_to_packed_array.exp: Fix typos erroring the testfile.
1974 * lib/dwarf.exp (_location): Add support for DW_OP_regx.
1975 * gdb.dwarf2/bad-regnum.c: New file.
1976 * gdb.dwarf2/bad-regnum.exp: New file.
1981 * gdb.python/python.exp: Add test for symlink from .py file to .notpy
1986 * gdb.compile/compile.exp (compile code globalvar): Update expectation
1987 for a change by "Mention language in compile error message".
1992 * gdb.python/py-type.c (C::a_method): New.
1993 (C::a_const_method): New.
1994 (C::a_static_method): New.
1996 * gdb.python/py-type.exp (test_fields): Test getting fields
1997 from function and method.
2001 * gdb.fortran/vla-alloc-assoc.exp: New file.
2002 * gdb.fortran/vla-datatypes.exp: New file.
2003 * gdb.fortran/vla-datatypes.f90: New file.
2004 * gdb.fortran/vla-history.exp: New file.
2005 * gdb.fortran/vla-ptype-sub.exp: New file.
2006 * gdb.fortran/vla-ptype.exp: New file.
2007 * gdb.fortran/vla-sizeof.exp: New file.
2008 * gdb.fortran/vla-sub.f90: New file.
2009 * gdb.fortran/vla-value-sub-arbitrary.exp: New file.
2010 * gdb.fortran/vla-value-sub-finish.exp: New file.
2011 * gdb.fortran/vla-value-sub.exp: New file.
2012 * gdb.fortran/vla-value.exp: New file.
2013 * gdb.fortran/vla-ptr-info.exp: New file.
2014 * gdb.mi/mi-vla-fortran.exp: New file.
2015 * gdb.mi/vla.f90: New file.
2019 * gdb.base/freebpcmd.exp: Use with_timeout_factor instead
2020 of hardwired timeout value.
2025 * gdb.dwarf2/dw2-regno-invalid.exp: New file.
2026 * lib/dwarf.exp (Dwarf): Add DW_OP_bregx.
2030 * gdb.base/catch-syscall.c: Include <sched.h>.
2031 (unknown_syscall): New variable.
2032 (main): Trigger a vfork and an unknown syscall.
2033 * gdb.base/catch-syscall.exp (vfork_syscalls): New variable.
2034 (unknown_syscall_number): Likewise.
2035 (check_call_to_syscall): Accept an optional syscall pattern.
2036 (check_return_from_syscall): Likewise.
2037 (check_continue): Likewise.
2038 (test_catch_syscall_without_args): Check for vfork and ENOSYS.
2039 (test_catch_syscall_skipping_return): New test toggling off 'catch
2040 syscall' to step over the syscall return, then toggling back on.
2041 (test_catch_syscall_mid_vfork): New test turning on 'catch syscall'
2042 during a PTRACE_EVENT_VFORK stop, in the middle of a vfork syscall.
2043 (do_syscall_tests): Call test_catch_syscall_without_args and
2044 test_catch_syscall_mid_vfork.
2045 (test_catch_syscall_without_args_noxml): Check for vfork and ENOSYS.
2046 (fill_all_syscalls_numbers): Initialize unknown_syscall_number.
2050 * gdb.cp/inherit.exp (print g_vB, print g_vC, print g_vD,
2051 print g_vE): Add new pass patterns.
2052 * gdb.cp/virtbase.exp (print *this, print *(D *) e): Allow GDB to
2053 print various symbol names for vptr fields.
2057 * gdb.base/dbx.exp (test_func): Remove xfails, update expected
2062 * gdb.arch/disp-step-insn-reloc.exp: New test case.
2066 * lib/gdb.exp (support_displaced_stepping): Return 1 if target
2067 is aarch64*-*-linux*.
2071 * gdb.arch/insn-reloc.c (can_relocate_bcond): Rename to ...
2072 (can_relocate_bcond_true): ... it.
2073 (can_relocate_bcond_false): New function.
2075 (can_relocate_bl): Likewise.
2076 (testcases) [__aarch64__]: Add can_relocate_bcond_false and
2081 * gdb.base/nested-addr.c: New file.
2082 * gdb.base/nested-addr.exp: New testcase.
2086 * gdb.btrace/vdso.c (main): Remove breakpoint markers.
2087 * gdb.btrace/vdso.exp: Change stepping command to "next" and ignore
2088 its output. Ignore the output of "record goto begin" and instead
2089 check that GDB is replaying.
2093 * gdb.base/a2-run.exp (maybe_exp_continue): New procedure.
2094 (top level): Use it in the run with no args test.
2098 * gdb.dlang/properties.exp: New file.
2102 * gdb.dwarf2/staticvirtual.exp: Generalize regexp so it can match
2103 whether or not address 0x1000 is mapped on the target.
2107 * gdb.python/py-type.exp: Do not run tests if binaries fail to
2112 * gdb.btrace/tsx.exp: Consider multiple correct outputs in the record
2113 instruction-history test.
2117 * gdb.base/gcore.c (array_func): Add reference to static_array.
2121 * gdb.gdb/selftest.exp (do_steps_and_nexts): Adjust expected
2126 * gdb.cp/classes.exp (test_enums): Generalize regexp to allow
2127 short or char as base type.
2131 * gdb.cp/var-tag.exp (do_global_tests): Generalize opt_underlying
2132 to allow any size enum.
2136 * gdb.ada/array_ptr_renaming.exp: New testcase.
2137 * gdb.ada/array_ptr_renaming/foo.adb: New file.
2138 * gdb.ada/array_ptr_renaming/pack.ads: New file.
2142 * gdb.trace/ftrace-lock.c: New file.
2143 * gdb.trace/ftrace-lock.exp: New file.
2147 * gdb.arch/insn-reloc.c: New file.
2148 * gdb.arch/ftrace-insn-reloc.exp: New file.
2152 * gdb.trace/change-loc.h (func4) [__aarch64__]: Add a nop
2154 * gdb.trace/pendshr1.c (pendfunc): Likewise.
2155 * gdb.trace/pendshr2.c (pendfunc2): Likewise.
2156 * gdb.trace/range-stepping.c: Likewise.
2157 * gdb.trace/trace-break.c: Likewise.
2158 * gdb.trace/trace-mt.c (thread_function): Likewise.
2159 * gdb.trace/ftrace.c (marker): Likewise.
2160 * gdb.trace/trace-condition.c (marker): Likewise.
2161 * gdb.trace/ftrace.exp: Enable ftrace test if is_aarch64_target.
2162 * gdb.trace/trace-condition.exp: Set pcreg to "\$pc" if
2167 * gdb.dwarf2/dw2-bad-unresolved.c: New file.
2168 * gdb.dwarf2/dw2-bad-unresolved.exp: New file.
2172 * gdb.base/dso2dso.exp: Don't use directory prefix when setting
2177 * gdb.mi/mi-pending.exp: Don't use directory prefix when setting
2178 the pending breakpoint. Remove timeout override for "Run till
2179 MI pending breakpoint on pendfunc3 on thread 2" test.
2183 * gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint
2188 * gdb.mi/mi-dprintf-pending.exp: Don't require directory prefix
2189 in breakpoint filename pattern.
2193 * gdb.base/global-var-nested-by-dso.exp: Call gdb_load_shlibs.
2197 * gdb.linespec/explicit.exp: Check for readline support for
2198 tab-completion tests. Fix obvious typo.
2202 * gdb.btrace/multi-thread-step.exp: Test scheduler-locking on, step,
2207 * gdb.btrace/non-stop.c: New.
2208 * gdb.btrace/non-stop.exp: New.
2213 * gdb.trace/trace-condition.c: New file.
2214 * gdb.trace/trace-condition.exp: New file.
2218 * gdb.trace/ftrace.exp: (test_ftrace_condition) New function
2219 for testing bytecode compilation.
2224 * gdb.threads/non-stop-fair-events.c (timeout): New global.
2225 (SECONDS): Redefine.
2226 (main): Call pthread_kill and alarm early.
2227 * gdb.threads/non-stop-fair-events.exp: Probe displaced stepping
2229 (test): If the target can't hardware step and doesn't support
2230 displaced stepping, increase the timeout.
2234 * gdb.threads/non-stop-fair-events.exp (gdb_test_no_anchor)
2235 (enable_debug): New procedures.
2236 (test): Use them. Bail out if waiting for threads fails.
2237 (top level): Bail out if a test fails.
2241 * gdb.asm/asm-source.exp: Set asm-arch for
2242 aarch64*-*-* target.
2243 * gdb.asm/aarch64.inc: New file.
2247 * gdb.ada/array_of_variable_length.exp: New testcase.
2248 * gdb.ada/array_of_variable_length/foo.adb: New file.
2249 * gdb.ada/array_of_variable_length/pck.adb: New file.
2250 * gdb.ada/array_of_variable_length/pck.ads: New file.
2254 * gdb.base/callfuncs.exp (do_function_calls): Handle clang naming
2255 of function static local variable.
2259 * gdb.threads/tls-so_extern.exp: New test file.
2260 * gdb.threads/tls-so_extern.c: New test file.
2261 * gdb.threads/tls-so_extern_main.c: New test file.
2265 * gdb.opt/solib-intra-step-lib.c: New file.
2266 * gdb.opt/solib-intra-step-main.c: New file.
2267 * gdb.opt/solib-intra-step.exp: New file.
2271 * gdb.threads/non-ldr-exc-3.exp (do_test): Use
2272 gdb_continue_to_breakpoint instead of gdb_test_multiple.
2276 * gdb.base/hook-stop-continue.c: Delete.
2277 * gdb.base/hook-stop-continue.exp: Delete.
2278 * gdb.base/hook-stop-frame.c: Delete.
2279 * gdb.base/hook-stop-frame.exp: Delete.
2280 * gdb.base/hook-stop.c: New file.
2281 * gdb.base/hook-stop.exp: New file.
2285 * gdb.ada/access_to_packed_array.exp: New testcase.
2286 * gdb.ada/access_to_packed_array/foo.adb: New file.
2287 * gdb.ada/access_to_packed_array/pack.adb: New file.
2288 * gdb.ada/access_to_packed_array/pack.ads: New file.
2292 * gdb.btrace/buffer-size.exp: Remove recording with unlimited BTS
2297 * gdb.base/foll-exec.c: Add copyright header. Fix
2299 * gdb.base/foll-exec.exp (zap_session): Delete proc.
2300 (do_exec_tests): Use clean_restart in place of zap_session,
2301 and for test initialization. Fix formatting issues. Use
2302 fail in place of perror.
2303 * gdb.base/pie-execl.exp (main): Use 'inferior_spawn_id' in
2304 an expect statement to match an expression with output from
2305 the program under debug.
2306 * gdb.threads/non-ldr-exc-1.exp (do_test, main): Add
2307 non-stop tests and use save_vars to enable non-stop in GDBFLAGS.
2308 * gdb.threads/non-ldr-exc-2.exp: Likewise.
2309 * gdb.threads/non-ldr-exc-3.exp: Likewise.
2310 * gdb.threads/non-ldr-exc-4.exp: Likewise.
2314 * gdb.python/py-prettyprint.exp: Check result of run_lang_tests.
2318 * gdb.base/pie-execl.exp: Fix result test of build_executable.
2322 * gdb.base/savedregs.exp: Fix typo.
2326 * gdb.mi/mi-cli.exp: Add CLI finish tests.
2330 * gdb.threads/hand-call-in-threads.exp: Make sure the thread
2331 command actually switches threads. Give up on remaining
2332 tests if target fails to stop at breakpoint.
2336 * gdb.ada/funcall_char.exp: New testcase.
2337 * gdb.ada/funcall_char/foo.adb: New file.
2341 * gdb.ada/complete.exp: Add "pck.ambiguous_func" to the relevant
2342 expected outputs. Add two testcases for completing ambiguous
2344 * gdb.ada/complete/aux_pck.adb: New file.
2345 * gdb.ada/complete/aux_pck.ads: New file.
2346 * gdb.ada/complete/foo.adb: Pull Aux_Pck and call the two
2347 Ambiguous_Func functions.
2348 * gdb.ada/complete/pck.ads: Add an Ambiguous_Func function.
2349 * gdb.ada/complete/pck.adb: Likewise.
2353 * lib/cell.exp (skip_cell_tests): Report UNRESOLVED on unexpected
2354 failures to run the test program under GDB.
2358 * gdb.compile/compile-ifunc.exp (with_test_prefix): Force language
2363 * gdb.base/run-after-attach.exp: New test file.
2364 * gdb.base/run-after-attach.c: New test file.
2368 * gdb.base/foll-exec-2.c: New test program.
2369 * gdb.base/foll-exec-2.exp: New test.
2373 * gdb.base/nested-subp1.exp: New file.
2374 * gdb.base/nested-subp1.c: New file.
2375 * gdb.base/nested-subp2.exp: New file.
2376 * gdb.base/nested-subp2.c: New file.
2377 * gdb.base/nested-subp3.exp: New file.
2378 * gdb.base/nested-subp3.c: New file.
2382 * gdb.server/connect-without-multi-process.c: New file.
2383 * gdb.server/connect-without-multi-process.exp: New file.
2387 * gdb.opt/inline-markers.c: Make z int.
2391 * gdb.opt/inline-markers.c: Make z volatile.
2395 * gdb.opt/inline-bt.c: New volatile global z.
2396 * gdb.opt/inline-cmds.c: Likewise.
2397 * gdb.opt/inline-locals.c: Likewise.
2398 * gdb.opt/inline-markers.c: New extern global z.
2400 (inline_fn): Likewise.
2404 * config/m32r-stub.exp: Remove file.
2405 * gdb.base/call-ar-st.exp: Remove reference to sparclet.
2406 * gdb.base/call-rt-st.exp: Likewise.
2407 * gdb.base/call-strs.exp: Likewise.
2408 * gdb.base/default.exp: Remove references to h8300-*-hms and
2410 * gdb.base/funcargs.exp: Remove reference to sparclet-*-*.
2414 * gdb.base/gnu_vector.exp: Try compilation with "-mcpu=native
2415 -Wno-psabi" if "-mcpu=native" fails. For the tests with "finish"
2416 and "return" use KFAIL when GDB can not read/write the vector
2421 * gdb.trace/pending.exp: Cope with remote transfer warnings.
2425 * gdb.server/solib-list.exp: No longer expect an interior stop in
2430 * gdb.server/connect-stopped-target.c: New file.
2431 * gdb.server/connect-stopped-target.exp: New file.
2435 * gdb.dwarf2/comp-unit-lang.exp: New file.
2436 * gdb.dwarf2/comp-unit-lang.c: New file.
2440 * gdb.ada/attr_ref_and_charlit.exp: New testcase.
2441 * gdb.ada/attr_ref_and_charlit/foo.adb: New file.
2445 * gdb.dwarf2/dw2-bad-mips-linkage-name.c: New file.
2446 * gdb.dwarf2/dw2-bad-mips-linkage-name.exp: New file.
2451 * lib/gdb.exp (skip_python_tests_prompt): Renamed from
2452 skip_python_tests. New arg prompt_regexp.
2453 (skip_python_tests): New function.
2454 * lib/mi-support.exp (mi_skip_python_tests): New function.
2455 * gdb.python/py-mi-objfile-gdb.py: New file.
2456 * gdb.python/py-mi-objfile.c: New file.
2457 * gdb.python/py-mi-objfile.exp: New file.
2461 * gdb.linespec/explicit.exp: Move strace test from here ...
2462 * gdb.trace/strace.exp: ... to here.
2466 * gdb.base/kill-detach-inferiors-cmd.exp: New test file.
2467 * gdb.base/kill-detach-inferiors-cmd.c: New test file.
2471 * gdb.perf/lib/perftest/utils.py (select_file): Kill any existing
2472 inferior before selecting a new file.
2476 * gdb.mi/mi-disassemble.exp: Update.
2477 * gdb.base/disasm-optim.S: New file.
2478 * gdb.base/disasm-optim.c: New file.
2479 * gdb.base/disasm-optim.h: New file.
2480 * gdb.base/disasm-optim.exp: New file.
2484 * lib/mi-support.exp (mi_make_breakpoint): Add option/handling for
2489 * gdb.base/dso2dso.exp: Improve the testcase's documentation.
2493 * gdb.ada/fun_renaming.exp: New testcase.
2494 * gdb.ada/fun_renaming/fun_renaming.adb: New file.
2495 * gdb.ada/fun_renaming/pack.adb: New file.
2496 * gdb.ada/fun_renaming/pack.ads: New file.
2500 * gdb.base/dso2dso.exp: Pass basename of source file in call to
2501 gdb_get_line_number.
2505 * gdb.base/dso2dso-dso2.c, gdb.base/dso2dso-dso2.h,
2506 gdb.base/dso2dso-dso1.c, gdb.base/dso2dso-dso1.h, gdb.base/dso2dso.c,
2507 gdb.base/dso2dso.exp: New files.
2513 * gdb.base/checkpoint-ns.exp: Use save_vars to save and restore
2518 * gdb.base/gdbhistsize-history.exp
2519 (test_histsize_history_setting): Use save_vars.
2520 * gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
2522 (test_no_truncation_of_unlimited_history_file): Use save_vars.
2523 * gdb.base/readline.exp: Use save_vars.
2527 * lib/gdb.exp (save_vars): New proc.
2531 * gdb.base/help.exp: Update help_breakpoint_text.
2535 * gdb.mi/mi-break.exp (test_explicit_breakpoints): New proc.
2536 (at toplevel): Call test_explicit_breakpoints.
2537 * gdb.mi/mi-dprintf.exp: Add tests for explicit dprintf
2539 * lib/mi-support.exp (mi_make_breakpoint): Add support for
2540 breakpoint conditions, "-cond".
2544 * gdb.linespec/3explicit.c: New file.
2545 * gdb.linespec/cpexplicit.cc: New file.
2546 * gdb.linespec/cpexplicit.exp: New file.
2547 * gdb.linespec/explicit.c: New file.
2548 * gdb.linespec/explicit.exp: New file.
2549 * gdb.linespec/explicit2.c: New file.
2550 * gdb.linespec/ls-errs.exp: Add explicit location tests.
2551 * lib/gdb.exp (capture_command_output): Regexp-escape `command'
2552 before using in the matching pattern.
2553 Clarify that `prefix' is a regular expression.
2557 * gdb.base/dprintf-pending.exp: Update dprintf "without format"
2559 Add tests for missing ",FMT" and ",".
2565 * gdb.base/completion.exp: Add location completer tests.
2569 * gdb.arch/ppc64-atomic-inst.exp (do_test): New procedure, move
2571 (top level): Run do_test with and without displaced stepping.
2575 * gdb.base/valgrind-disp-step.c: New file.
2576 * gdb.base/valgrind-disp-step.exp: New file.
2580 * gdb.threads/step-over-lands-on-breakpoint.c (wait_threads):
2582 (main): Add alarm. Run an infinite loop instead of calling
2584 * gdb.threads/step-over-lands-on-breakpoint.exp (do_test): Change
2586 * gdb.threads/step-over-trips-on-watchpoint.c (wait_threads):
2588 (main): Add alarm. Run an infinite loop instead of calling
2590 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): Change
2595 * gdb.base/checkpoint-ns.exp: New file.
2596 * gdb.base/checkpoint.exp: Pass explicit "checkpoint.c" to
2601 * lib/gdb.exp (skip_tsx_tests, skip_btrace_pt_tests): New.
2602 * gdb.btrace/instruction_history.exp: Update.
2603 * gdb.btrace/tsx.exp: New.
2604 * gdb.btrace/tsx.c: New.
2608 * gdb.reverse/step-precsave.exp: Use with_timeout_factor to
2610 * gdb.reverse/until-precsave.exp: Bump timeouts.
2614 * gdb.base/valgrind-infcall.exp: Issue a "disconnect".
2619 * gdb.threads/process-dies-while-handling-bp.c: New file.
2620 * gdb.threads/process-dies-while-handling-bp.exp: New file.
2624 * gdb.threads/forking-threads-plus-breakpoint.exp: New file.
2625 * gdb.threads/forking-threads-plus-breakpoint.c: New file.
2629 * gdb.threads/next-while-other-thread-longjmps.c: New file.
2630 * gdb.threads/next-while-other-thread-longjmps.exp: New file.
2634 * gdb.base/bp-permanent.exp: Report test as unsupported if
2635 the target cannot stop at the permanent breakpoint.
2639 * gdb.perf/single-step.exp (SINGLE_STEP_COUNT): Change to 1000 from
2644 * Makefile.in (workers/%.worker, build-perf): New rule.
2645 (GDB_PERFTEST_MODE): New variable.
2646 (check-perf): Use it.
2647 (clean): Clean up gdb.perf parallel build subdirs.
2648 * lib/build-piece.exp: New file.
2649 * lib/gdb.exp (make_gdb_parallel_path): New function
2650 (standard_output_file, standard_temp_file): Call it.
2651 (GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs
2653 * lib/cache.exp (gdb_do_cache): Call make_gdb_parallel_path.
2657 * gdb.perf/lib/perftest/reporter.py (SUM_FILE_NAME): New global.
2658 (LOG_FILE_NAME): New global.
2659 (TextReporter.__init__): Initialize self.txt_sum.
2660 (TextReporter.report): Add support for multiple data-points.
2661 Move report to perftest.sum, put raw data in perftest.log.
2662 (TextReporter.start): Open sum and log files.
2663 (TextReporter.end): Close sum and log files.
2664 * gdb.perf/lib/perftest/testresult.py
2665 (SingleStatisticTestResult.record): Handle multiple data-points.
2669 * gdb.base/attach-pie-misread.exp: Rename $res to $test_spawn_id.
2670 Use spawn_id_get_pid. Wait for spawn id after eof. Use
2671 kill_wait_spawned_process instead of explicit "kill -9".
2672 * gdb.base/attach-pie-noexec.exp: Adjust to spawn_wait_for_attach
2673 returning a spawn id instead of a pid. Use spawn_id_get_pid and
2674 kill_wait_spawned_process.
2675 * gdb.base/attach-twice.exp: Likewise.
2676 * gdb.base/attach.exp: Likewise.
2677 (do_command_attach_tests): Use gdb_spawn_with_cmdline_opts and
2679 * gdb.base/solib-overlap.exp: Adjust to spawn_wait_for_attach
2680 returning a spawn id instead of a pid. Use spawn_id_get_pid and
2681 kill_wait_spawned_process.
2682 * gdb.base/valgrind-infcall.exp: Likewise.
2683 * gdb.multi/multi-attach.exp: Likewise.
2684 * gdb.python/py-prompt.exp: Likewise.
2685 * gdb.python/py-sync-interp.exp: Likewise.
2686 * gdb.server/ext-attach.exp: Likewise.
2687 * gdb.threads/attach-into-signal.exp (corefunc): Use
2688 spawn_wait_for_attach, spawn_id_get_pid and
2689 kill_wait_spawned_process.
2690 * gdb.threads/attach-many-short-lived-threads.exp: Adjust to
2691 spawn_wait_for_attach returning a spawn id instead of a pid. Use
2692 spawn_id_get_pid and kill_wait_spawned_process.
2693 * gdb.threads/attach-stopped.exp (corefunc): Use
2694 spawn_wait_for_attach, spawn_id_get_pid and
2695 kill_wait_spawned_process.
2696 * gdb.base/break-interp.exp: Rename $res to $test_spawn_id.
2697 Use spawn_id_get_pid. Wait for spawn id after eof. Use
2698 kill_wait_spawned_process instead of explicit "kill -9".
2699 * lib/gdb.exp (can_spawn_for_attach): Adjust comment.
2700 (kill_wait_spawned_process, spawn_id_get_pid): New procedures.
2701 (spawn_wait_for_attach): Use spawn instead of exec to spawn
2702 processes. Don't map cygwin/windows pids here. Now returns a
2707 * gdb.cp/var-tag.exp (do_global_tests): Revert broken commit
2708 4bc4d42859e3b42c79c89295ef39944bdb3e6753 and apply the
2713 * gdb.arch/ppc64-symtab-cordic.exp: Restrict to ppc64 targets.
2720 * gdb.cp/var-tag.exp (do_global_tests): Handle underlying type.
2724 * linux-low.c (handle_extended_wait): Set the child's last
2725 reported status to TARGET_WAITKIND_STOPPED.
2730 * gdb.threads/fork-plus-threads.exp: Test that "info inferiors"
2731 only shows inferior 1.
2737 * gdb.threads/fork-plus-threads.c: New file.
2738 * gdb.threads/fork-plus-threads.exp: New file.
2742 * gdb.base/batch-preserve-term-settings.exp
2743 (test_terminal_settings_preserved_after_cli_exit): Use
2749 * gdb.base/multi-forks.exp (continue_to_exit_bp_loc): Expect
2750 output from both inferior_spawn_id and gdb_spawn_id.
2754 * gdb.threads/attach-into-signal.exp (corefunc): Use
2755 with_test_prefix on nested loops, uniquefying the test messages.
2759 * gdb.python/py-objfile.exp: Fix typo that snuck in from my last
2764 * gdb.base/batch-preserve-term-settings.exp (send_quit_command):
2766 (test_terminal_settings_preserved_after_sigterm): New test.
2770 * gdb.base/batch-preserve-term-settings.exp
2771 (test_terminal_settings_preserved_after_cli_exit): New test.
2775 * gdb.base/batch-preserve-term-settings.exp: Remove top-level
2776 manipulation of saved_gdbflags.
2777 (test_terminal_settings_preserved): Remove global declaration of
2778 the unused variable pagination_prompt. Remove manipulation of
2779 saved_gdbflags. Use a local variable EXTRA_GDBFLAGS instead of
2784 * boards/gdbserver-base.exp: Don't set gdb,noinferiorio.
2788 * gdb.base/interrupt.exp: Revert back to checking gdb,noinferiorio
2793 * gdb.base/call-ar-st.c: Include "../lib/unbuffer_output.c".
2794 (main): Call gdb_unbuffer_output.
2795 * gdb.base/call-rt-st.c: Include "../lib/unbuffer_output.c".
2796 (main): Call gdb_unbuffer_output.
2797 * gdb.base/call-strs.c: Include "../lib/unbuffer_output.c".
2798 (main): Call gdb_unbuffer_output.
2799 * gdb.base/call-strs.exp: Adjust to step over the
2800 gdb_unbuffer_output call.
2801 * gdb.base/catch-gdb-caused-signals.c: Include
2802 "../lib/unbuffer_output.c".
2803 (main): Call gdb_unbuffer_output.
2804 * gdb.base/dprintf.c: Include "../lib/unbuffer_output.c".
2805 (main): Call gdb_unbuffer_output.
2806 * gdb.base/ending-run.c: Include "../lib/unbuffer_output.c".
2807 (main): Call gdb_unbuffer_output.
2808 * gdb.base/run.c: Include "../lib/unbuffer_output.c".
2809 (main): Call gdb_unbuffer_output.
2810 * gdb.base/shlib-call.exp: Adjust to step over the
2811 gdb_unbuffer_output call.
2812 * gdb.base/shmain.c: Include "../lib/unbuffer_output.c".
2813 (main): Call gdb_unbuffer_output.
2814 * gdb.base/sizeof.c: Include "../lib/unbuffer_output.c".
2815 (main): Call gdb_unbuffer_output.
2816 * gdb.base/varargs.c: Include "../lib/unbuffer_output.c".
2817 (main): Rename to ...
2819 (main): Reimplement.
2820 * gdb.base/varargs.exp: Run to test instead of to main.
2821 * gdb.mi/mi-dprintf.c: Include "../lib/unbuffer_output.c".
2822 (main): Call gdb_unbuffer_output.
2826 * gdb.mi/mi-dprintf.exp (mi_expect_dprintf): New procedure,
2827 factore out from mi_continue_dprintf. For call-style dprintfs,
2828 expect dprintf output out of $inferior_spawn_id.
2829 (mi_continue_dprintf): Use mi_expect_dprintf.
2830 * gdb.mi/mi-dprintf.c: Include "../lib/unbuffer_output.c".
2831 (main): Call gdb_unbuffer_output.
2835 * lib/mi-support.exp (mi_inferior_spawn_id): Delete.
2836 (default_mi_gdb_start): Set inferior_spawn_id instead of
2837 mi_inferior_spawn_id. If $inferior_spawn_id is not set, set it to
2839 (mi_gdb_test): Always expect inferior output from both
2840 $inferior_spawn_id and $gdb_spawn_id.
2844 * gdb.gdb/selftest.exp (test_with_self): Update comment. Use
2845 send_inferior and $inferior_spawn_id.
2849 * gdb.gdb/complaints.exp (test_initial_complaints)
2850 (test_serial_complaints, test_short_complaints): Use
2852 (test_empty_complaint): Handle $inferior_spawn_id !=
2857 * gdb.base/varargs.exp: Use gdb_test_stdio.
2861 * gdb.base/shlib-call.exp: Use gdb_test_stdio.
2865 * gdb.base/ending-run.exp: Use gdb_test_stdio.
2869 * gdb.base/call-rt-st.exp (print_struct_call): Split "result"
2870 parameter into two new parameters, "inf_result" and "gdb_result".
2871 Expect inferior output and gdb output from $inferior_spawn_id and
2872 $gdb_spawn_id, respectively. Adjust all callers.
2876 * gdb.base/call-ar-st.exp: Use gdb_test_stdio+multi_line instead
2877 of gdb_test_sequence.
2881 * gdb.base/a2-run.exp (saw_usage, saw_exit_wrapper)
2882 (saw_spurious_output): Expect inferior output from
2883 $inferior_spawn_id. Use gdb_test_stdio.
2887 * gdb.base/dprintf.exp: Use standard_testfile. Change
2888 prepare_for_testing call.
2889 (srcfile): Don't set.
2890 (restart): New procedure.
2891 (test_dprintf): New procecure, use to continue over dprintfs.
2892 (test_call, test_agent): New procedures, tests moved here.
2893 Restart gdb and recreate dprintfs. Adjust expected output.
2897 * gdb.base/catch-gdb-caused-signals.exp: Use gdb_test_stdio.
2901 * gdb.base/call-strs.exp: Use gdb_test_stdio instead of gdb_test.
2905 * gdb.base/sizeof.exp (check_sizeof, check_valueof): Use
2910 * lib/gdb.exp (gdb_test_stdio): New procedure.
2914 * gdb.base/restore.exp (restore_tests): Use gdb_continue_to_end.
2918 * gdb.base/call-signal-resume.exp: Remove check for
2919 gdb,noinferiorio. Don't expect "no signal". Use gdb_test.
2920 * gdb.base/unwindonsignal.exp: Likewise.
2921 * gdb.base/call-signals.c (gen_signal): Remove printf call.
2922 * gdb.base/unwindonsignal.c (gen_signal): Likewise.
2926 * gdb.base/siginfo-addr.c (pass): New function.
2927 (handler): Call it iff si_addr is correct.
2928 * gdb.base/siginfo-addr.exp: Remove gdb_skip_stdio_test check.
2929 Set a breakpoint at "pass" and continue to it.
2933 * gdb.python/py-objfile.exp: Make some tests have unique names.
2934 * gdb.python/py-pp-registration.exp: Likewise.
2938 * gdb.server/server-exec-info.exp: Issue a "disconnect".
2942 * gdb.mi/mi-pending.c (thread_func): Replace return with return NULL.
2946 * gdb.mi/mi-watch.exp (test_watchpoint_triggering): Remove xfail.
2950 * gdb.base/gdb-sigterm-2.exp: New test.
2955 * Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL.
2956 (workers/%.worker, build-perf): New rule.
2957 (GDB_PERFTEST_MODE): New variable.
2958 (check-perf): Use it.
2959 (clean): Clean up gdb.perf parallel build subdirs.
2960 * lib/build-piece.exp: New file.
2961 * lib/cache.exp (gdb_do_cache): Include $GDB_PARALLEL in path name.
2962 * lib/gdb.exp (standard_output_file): Include $GDB_PARALLEL in path
2964 (standard_temp_file): Ditto.
2965 (GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs
2970 * gdb.perf/lib/perftest/utils.py: New file.
2971 * gdb.perf/gm-hello.cc: New file.
2972 * gdb.perf/gm-pervasive-typedef.cc: New file.
2973 * gdb.perf/gm-pervasive-typedef.h: New file.
2974 * gdb.perf/gm-std.cc: New file.
2975 * gdb.perf/gm-std.h: New file.
2976 * gdb.perf/gm-use-cerr.cc: New file.
2977 * gdb.perf/gm-utils.h: New file.
2978 * gdb.perf/gmonster-null-lookup.py: New file.
2979 * gdb.perf/gmonster-pervasive-typedef.py: New file.
2980 * gdb.perf/gmonster-print-cerr.py: New file.
2981 * gdb.perf/gmonster-ptype-string.py: New file.
2982 * gdb.perf/gmonster-runto-main.py: New file.
2983 * gdb.perf/gmonster-select-file.py: New file.
2984 * gdb.perf/gmonster1-null-lookup.exp: New file.
2985 * gdb.perf/gmonster1-pervasive-typedef.exp: New file.
2986 * gdb.perf/gmonster1-print-cerr.exp: New file.
2987 * gdb.perf/gmonster1-ptype-string.exp: New file.
2988 * gdb.perf/gmonster1-runto-main.exp: New file.
2989 * gdb.perf/gmonster1-select-file.exp: New file.
2990 * gdb.perf/gmonster1.cc: New file.
2991 * gdb.perf/gmonster1.exp: New file.
2992 * gdb.perf/gmonster2-null-lookup.exp: New file.
2993 * gdb.perf/gmonster2-pervasive-typedef.exp: New file.
2994 * gdb.perf/gmonster2-print-cerr.exp: New file.
2995 * gdb.perf/gmonster2-ptype-string.exp: New file.
2996 * gdb.perf/gmonster2-runto-main.exp: New file.
2997 * gdb.perf/gmonster2-select-file.exp: New file.
2998 * gdb.perf/gmonster2.cc: New file.
2999 * gdb.perf/gmonster2.exp: New file.
3003 * gdb.perf/README: New file.
3004 * lib/perftest.exp (tcl_string_list_to_python_list): New function.
3005 * lib/gen-perf-test.exp: New file.
3009 * lib/perftest.exp (PerfTest::compile): Unconditionally call body.
3010 (PerfTest::startup): New function.
3011 (PerfTest::run): Return result of calling body.
3012 (PerfTest::assemble): Rewrite.
3013 * gdb.perf/backtrace.exp (PerfTest::assemble): Update function result.
3014 * gdb.perf/disassemble.exp (PerfTest::assemble): Ditto.
3015 * gdb.perf/single-step.exp (PerfTest::assemble): Ditto.
3016 * gdb.perf/skip-prologue.exp (PerfTest::assemble): Ditto.
3017 * gdb.perf/solib.exp (PerfTest::assemble): Ditto.
3021 * lib/gdb.exp (clean_restart): Make executable optional.
3025 * gdb.base/watchpoint.exp (test_complex_watchpoint): Remove
3026 compiler_info references.
3027 * gdb.cp/temargs.exp: Ditto.
3028 * lib/gdb.exp: Unset compiler_info instead of setting to "unknown".
3029 (get_compiler_info): Early exit if already computed. Set compiler_info
3030 to "unknown" if there was a problem.
3031 (test_compiler_info): Add function comment. Call get_compiler_info.
3035 * Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL.
3036 (workers/%.worker, build-perf): New rule.
3037 (GDB_PERFTEST_MODE): New variable.
3038 (check-perf): Use it.
3039 (clean): Clean up gdb.perf parallel build subdirs.
3040 * lib/build-piece.exp: New file.
3041 * lib/cache.exp (gdb_do_cache): Include $GDB_PARALLEL in path name.
3042 * lib/gdb.exp (standard_output_file): Include $GDB_PARALLEL in path
3044 (standard_temp_file): Ditto.
3045 (GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs
3050 * lib/future.exp (gdb_default_target_compile): New option
3052 * lib/gdb.exp (gdb_compile): Undo debian's change in default of
3057 * gdb.base/catch-syscall.exp: Call gdb_exit before
3062 * gdb.python/py-events.exp: Accept output between the stop event
3064 * gdb.python/py-evsignal.exp: Likewise.
3065 * gdb.python/py-evthreads.exp: Likewise.
3070 * gdb.threads/non-ldr-exit.c: New file.
3071 * gdb.threads/non-ldr-exit.exp: New file.
3075 * gdb.server/ext-wrapper.exp: Test --wrapper option when
3080 * gdb.server/ext-restart.exp: New file.
3084 * lib/gdbserver-support.exp (gdbserver_start_extended): Add
3086 * gdb.server/ext-wrapper.exp: New file.
3090 * gdb.dwarf2/dw2-dummy-cu.S: New file.
3091 * gdb.dwarf2/dw2-dummy-cu.exp: New file.
3095 * gdb.ada/var_arr_typedef.exp: New testcase.
3096 * gdb.ada/var_arr_typedef/pack.adb: New file.
3097 * gdb.ada/var_arr_typedef/pack.ads: New file.
3098 * gdb.ada/var_arr_typedef/var_arr_typedef.adb: New file.
3102 * gdb.ada/info_exc.exp: Adjust "info exceptions" expected output.
3106 * gdb.arch/i386-biarch-core.exp: Replace istarget
3107 by "complete set gnutarget". Remove expectation for the "core-file"
3112 Revert the previous commit:
3113 Tests for validate symbol file using build-id.
3117 Tests for validate symbol file using build-id.
3118 * gdb.base/solib-mismatch-lib.c: New file.
3119 * gdb.base/solib-mismatch-libmod.c: New file.
3120 * gdb.base/solib-mismatch.c: New file.
3121 * gdb.base/solib-mismatch.exp: New file.
3125 * gdb.base/sigaltstack.exp (finish_test): Add kfail for
3127 * gdb.base/sigbpt.exp (stepi_out): Likewise.
3128 * gdb.base/siginfo.exp: Likewise.
3129 * gdb.base/sigstep.exp (advance, advancei): Likewise.
3133 * gdb.base/range-stepping.exp (gdb_range_stepping_enabled):
3135 * lib/range-stepping-support.exp (gdb_range_stepping_enabled):
3137 * gdb.trace/range-stepping.exp: Check that the target supports
3142 * gdb.arch/i386-biarch-core.exp: Fix comment typo.
3146 * gdb.base/killed-outside.exp: New file.
3147 * gdb.base/killed-outside.c: New file.
3151 * gdb.asm/asm-source.exp (f at main): Stop at gdbasm_enter.
3153 * gdb.asm/asmsrc1.s: Add comment "mark: main enter".
3157 * gdb.base/gnu_vector.exp: On x86 and x86_64 targets, skip the
3158 infcall tests instead of setting up for KFAIL.
3162 * gdb.btrace/record_goto-step.exp: New.
3167 * gdb.compile/compile.c (struct struct_type): Add volatile to
3169 * gdb.compile/compile.exp
3170 (compile code struct_object.selffield = &struct_object): Skip further
3171 struct_object tests if this one xfails.
3176 * gdb.trace/ax.exp: Add test.
3180 * gdb.arch/aarch64-atomic-inst.exp: Check is_aarch64_target
3181 instead of istarget "aarch64*-*-*".
3182 * gdb.arch/aarch64-fp.exp: Likewise.
3183 * gdb.base/float.exp: Likewise.
3184 * gdb.reverse/aarch64.exp: Likewise.
3185 * lib/gdb.exp (is_aarch64_target): New proc.
3189 * lib/gdb.exp (is_aarch32_target): New proc.
3190 * gdb.arch/arm-bl-branch-dest.exp: Check is_aarch32_target
3191 instead of "istarget "arm*-*-*"".
3192 * gdb.arch/arm-disp-step.exp: Likewise.
3193 * gdb.arch/thumb-bx-pc.exp: Likewise.
3194 * gdb.arch/thumb-prologue.exp: Likewise.
3195 * gdb.arch/thumb-singlestep.exp: Likewise.
3196 * gdb.base/disp-step-syscall.exp: Likewise.
3197 * gdb.base/float.exp: Likewise.
3201 * gdb.base/catch-syscall.exp (test_catch_syscall_multi_arch):
3202 Set arch1, arch2, syscall1_name, syscall2_name and syscall_number.
3206 * gdb.multi/multi-arch-exec.exp: Set march1 and march2 to "" if target
3207 is aarch64. If target is aarch64, set compiler=${ARM_CC_FOR_TARGET}
3209 * gdb.multi/multi-arch.exp: Likewise.
3213 * gdb.python/py-lazy-string.exp: Add missing parentheses to
3218 * gdb.arch/thumb-singlestep.exp: Do one more single step.
3222 * lib/gdb.exp (test_class_help): Remove the unneeded escaping of
3223 '[' and ']' characters.
3227 * gdb.dlang/demangle.exp: Sync tests from libiberty testsuite.
3232 * gdb.threads/hand-call-new-thread.c: New file.
3233 * gdb.threads/hand-call-new-thread.c: New file.
3239 * gdb.cp/var-tag-2.cc: New file.
3240 * gdb.cp/var-tag-3.cc: New file.
3241 * gdb.cp/var-tag-4.cc: New file.
3242 * gdb.cp/var-tag.cc: New file.
3243 * gdb.cp/var-tag.exp: New file.
3247 * gdb.base/history-duplicates.exp: New test.
3251 * gdb.base/completion.exp: Test the completion of the "focus"
3256 * gdb.arch/amd64-prologue-skip.S: New file.
3257 * gdb.arch/amd64-prologue-skip.exp: New file.
3261 * gdb.python/py-prettyprint.exp (run_lang_tests): Add
3262 is_address_zero_readable check.
3266 * gdb.arch/powerpc-power.exp <rfebb>: Fixup test results.
3267 * gdb.arch/powerpc-power.s <rfebb>: Likewise.
3271 * lib/gdb.exp (supports_get_siginfo_type): Return 1 for all
3276 * lib/gdb.exp (supports_get_siginfo_type): New proc.
3277 * gdb.base/siginfo-obj.exp: Invoke supports_get_siginfo_type.
3278 * gdb.base/siginfo-thread.exp: Likewise.
3282 * boards/remote-gdbserver-on-localhost.exp: Add comments.
3286 * lib/gdb.exp (skip_hw_breakpoint_tests): Return 0 for target
3288 (skip_hw_watchpoint_tests): Likewise.
3292 * gdb.base/gdbinit-history.exp: Test the interaction between
3293 setting GDBHISTSIZE and setting the history size via .gdbinit.
3298 * gdb.base/gdbhistsize-history.exp: New test.
3302 * gdb.base/gdbinit-history.exp: Replace occurrences of HISTSIZE
3304 * gdb.base/readline.exp: Likewise.
3308 * lib/gdb.exp (get_build_id): Move braces and "else" to the same
3313 * gdb.base/gdbinit-history.exp: Add test case to check that
3314 an unlimited history file does not get truncated on exit.
3318 * gdb.base/gnu_vector.c: Include stdarg.h and stdio.h.
3319 (VECTOR): New macro. Use it...
3320 (int4, uint4, char4, float4, int2, longlong2, float2, double2):
3321 ...for these typedefs.
3322 (int8, char1, int1, double1): New typedefs.
3323 (struct just_int2, struct two_int2): New structures.
3324 (add_some_intvecs, add_many_charvecs, add_various_floatvecs)
3325 (add_structvecs, add_singlevecs): New functions.
3326 (main): Call add_some_intvecs twice.
3327 * gdb.base/gnu_vector.exp: Drop GCC version check; just attempt
3328 the compile and exit upon failure. Try compiling for the "native"
3329 architecture. Test inferior function calls with vector arguments
3330 and vector return value handling with "finish" and "return".
3334 * gdb.base/sepdebug.exp: Add EXEEXT where needed.
3335 * lib/gdb.exp (get_build_id): Teach how to extract build-id from a
3337 * lib/future.exp (gdb_find_objdump): Add gdb_find_objdump.
3341 PR breakpoints/16465
3342 * gdb.mi/mi-dprintf-pending.c: New file.
3343 * gdb.mi/mi-dprintf-pending.exp: New test.
3344 * gdb.mi/mi-dprintf-pendshr.c: New file.
3349 * gdb.arch/i386-mpx-map.c: New file.
3350 * gdb.arch/i386-mpx-map.exp: New File.
3354 * gdb.arch/i386-mpx.c (have_mpx): Indentation fixed.
3355 * gdb.arch/i386-mpx.exp: Indentation fixed.
3359 * gdb.arch/i386-mpx.c: Added final return to the have_mpx
3360 function and improved indentation.
3361 * gdb.arch/i386-mpx.exp: Exchanging gdb_send and gdb_expect for
3362 gdb_test_multiple. Added additional tests to skip the test.
3366 * gdb.arch/i386-avx512.c: Change path in include file.
3367 * gdb.arch/i386-avx512.exp: Change include dir path
3369 * gdb.arch/i386-mpx.c: Change path in include file.
3370 * gdb.arch/i386-mpx.exp: Change include dir path compilation
3375 * gdb.compile/compile-print.exp (compile print *vararray@3)
3376 (compile print *vararrayp@3): Change xfail to kfail compile/18489.
3380 * gdb.compile/compile.exp (keep jit in memory): Rename to ...
3381 (do not keep jit in memory): ... this.
3382 (expect 5): Change it to ...
3383 (expect no 5): ... this.
3388 * gdb.mi/mi-detach.exp: New file.
3393 * gdb.arch/amd64-tailcall-self.S: New file.
3394 * gdb.arch/amd64-tailcall-self.c: New file.
3395 * gdb.arch/amd64-tailcall-self.exp: New file.
3399 * gdb.base/foll-vfork.exp (main): Disable exec-dependent
3400 tests for remote targets by checking is_target_gdbserver.
3404 * gdb.dwarf2/opaque-type-lookup-2.c: New file.
3405 * gdb.dwarf2/opaque-type-lookup.c: New file.
3406 * gdb.dwarf2/opaque-type-lookup.exp: New file.
3410 * gdb.cp/iostream.cc: New file.
3411 * gdb.cp/iostream.exp: New file.
3415 * gdb.dwarf2/dw2-op-call.exp: Update.
3416 * gdb.dwarf2/dw4-sig-types.exp: Update.
3417 * gdb.dwarf2/implptr.exp: Update.
3418 * gdb.mi/mi-cmd-param-changed.exp: Update.
3422 * gdb.python/py-lazy-string.c: New file.
3423 * gdb.python/py-lazy-string.exp: New file.
3424 * gdb.python/py-prettyprint.c (lazystring) <len>: New member.
3425 (main): Update. Add estring3.
3426 * gdb.python/py-prettyprint.exp: Add tests for strings at address 0.
3427 * gdb.python/py-prettyprint.py (pp_ls): Handle length.
3432 * gdb.reverse/aarch64.c: New.
3433 * gdb.reverse/aarch64.exp: New.
3437 * lib/gdb.exp (supports_process_record): Return true for aarch64*-linux*.
3438 (supports_reverse): Likewise.
3442 * gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
3443 Use with_test_prefix.
3447 * gdb.base/completion.exp: Add test for completion of layout
3452 * lib/gdb.exp (skip_tui_tests): New proc.
3453 * gdb.base/tui-layout.exp: Check skip_tui_tests.
3457 * gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
3458 Save the whole env array instead of just HOME. Unset HISTSIZE in
3459 the environment while testing. Restore whole environment
3464 * gdb.guile/scm-ports.c: New file.
3465 * gdb.guile/scm-ports.exp: Add memory port tests.
3469 * gdb.compile/compile-print.c: New file.
3470 * gdb.compile/compile-print.exp: New file.
3474 * gdb.compile/compile-ops.exp: Cast param to void.
3475 * gdb.compile/compile.exp: Complete type for _gdb_expr.
3476 (compile code struct_object.selffield = &struct_object): Add xfail.
3480 * gdb.ada/arr_enum_with_gap: New testcase.
3484 * gdb.ada/byte_packed_arr: New testcase.
3488 * gdb.ada/pckd_neg: New testcase.
3493 * gdb.base/gdbinit-history.exp: New test.
3494 * gdb.base/gdbinit-history/unlimited/.gdbinit: New file.
3495 * gdb.base/gdbinit-history/zero/.gdbinit: New file.
3499 * gdb.python/py-xmethods.cc: Enhance test case.
3500 * gdb.python/py-xmethods.exp: New tests.
3501 * gdb.python/py-xmethods.py (A_indexoper): New xmethod worker
3503 (B_indexoper): Likewise.
3504 (global_dm_list) : Add new xmethod worker functions.
3508 * gdb.base/coredump-filter.exp: Correctly unset
3509 "coredump_var_addr" array.
3513 * gdb.server/non-existing-program.exp: Unset spawn_id.
3518 * gdb.python/py-xmethods.exp: Add tests.
3523 * gdb.base/coredump-filter.c (set_coredump_filter): New function.
3524 * gdb.base/coredump-filter.exp (do_save_core): Call inferior
3525 function set_coredump_filter, and remove remote_exec call.
3526 Remove argument ipid. Callers update.
3527 (top level): Don't get inferior's PID.
3531 * gdb.base/watch_thread_num.exp: Skip test on targets without
3537 * gdb.server/non-existing-program.exp: New file.
3541 * gdb.ada/out_of_line_in_inlined.exp: Add run and "bt" tests.
3545 * gdb.ada/out_of_line_in_inlined: New testcase.
3549 * gdb.ada/var_rec_arr: New testcase.
3553 * gdb.base/break-idempotent.exp: If
3554 skip_hw_watchpoint_multi_tests returns true, skip the tests
3555 on "rwatch" and "awatch".
3559 * gdb.base/relativedebug.exp: Invoke gdb command
3560 "info sharedlibrary", and if libc.so doesn't have debug info,
3565 * gdb.python/py-xmethods.exp: Add ptype tests.
3566 * gdb.python/py-xmethods.py (E_method_char_worker): Add
3567 get_result_type method.
3571 * gdb.base/watch-bitfields.exp: Switch to software watchpoints if
3572 the target does not support hardware watchpoints.
3576 * gdb.base/break-always.exp: Abort testing if writing to memory
3581 * gdb.python/py-pp-maint.py: Move "replace" testing to ...
3582 * gdb.python/py-pp-registration.exp: ... here. New file.
3583 * gdb.python/py-pp-registration.c: New file.
3584 * gdb.python/py-pp-registration.py: New file.
3588 * gdb.python/py-bad-printers.c: New file.
3589 * gdb.python/py-bad-printers.py: New file.
3590 * gdb.python/py-bad-printers.exp: New file.
3594 * gdb.python/py-type.exp: New test.
3598 * gdb.python/py-parameter.exp:
3599 * gdb.guile/scm-parameter.exp: Escape the path that we are
3600 matching against, as it might contain characters that are special
3601 to regular expressions.
3605 * gdb.ada/rec_comp: New testcase.
3609 * gdb.base/coredump-filter.exp: Clear variable "coredump_var_addr"
3614 * gdb.base/dump.exp: Add *.verilog files to all_files list. Add
3615 new tests for verilog output.
3619 * boards/remote-gdbserver-on-localhost.exp: New file.
3623 * gdb.base/interrupt.exp: Use an indirect spawn id list holding
3624 $inferior_spawn_id instead of $inferior_spawn_id directly. On
3625 "end of file", remove $inferior_spawn_id from the indirect list.
3629 * gdb.base/interrupt.exp: Rename saw_eof to saw_end_of_file.
3633 * lib/gdb.exp (gdb_test_multiple): Match eof/full_buffer/timeout
3634 on $any_spawn_id instead of only on $gdb_spawn_id.
3639 * lib/pascal.exp (gpc_compile): Add new option "class".
3640 (fpc_compile): Likewise.
3641 * gdb.pascal/case-insensitive-symbols.pas: New file.
3642 * gdb.pascal/case-insensitive-symbols.exp: New file.
3646 * gdb.base/attach.exp: Fix three extended remote failures.
3650 * gdb.server/server-exec-info.exp: Inhibit GDB from accessing
3651 the main executable over the remote protocol.
3655 * boards/native-extended-gdbserver.exp (mi_gdb_start): Don't start
3656 a new gdbserver if gdbserver_reconnect_p is set.
3660 * lib/gdbserver-support.exp (gdb_exit): If gdbserver_reconnect_p
3661 is set, don't exit gdbserver.
3665 * gdb.arch/s390-vregs.S (change_vrs): Replace exrl by an
3666 appropriate .insn, such that an older assembler can be used.
3667 * gdb.arch/s390-vregs.exp: Add the compile flag -mzarch, to enable
3668 the z/Architecture instruction set on 31-bit targets as well.
3672 * gdb.go/handcall.exp: Remove all logic related to the first
3673 breakpoint and rely on go_runto_main instead.
3674 * gdb.go/strings.exp: Likewise.
3675 * gdb.go/unsafe.exp: Likewise.
3676 * gdb.go/hello.exp: Likewise. Also rename the remaining
3677 breakpoint marker to "breakpoint 1".
3678 * gdb.go/handcall.go: Remove comment "set breakpoint 1 here".
3679 * gdb.go/strings.go: Likewise.
3680 * gdb.go/unsafe.go: Likewise.
3681 * gdb.go/hello.go: Likewise. Also remove the second occurrence of
3682 "set breakpoint 2 here" and rename the remaining breakpoint marker
3687 * gdb.python/py-framefilter.py (ErrorFilter.filter): Use map function
3688 if itertools.imap is not present.
3689 * gdb.python/py-objfile.exp: Add parentheses.
3690 * gdb.python/py-type.exp: Same.
3691 * gdb.python/py-unwind-maint.py: Same.
3695 * gdb.dwarf2/dynarr-ptr.exp (assemble): Use $ptr_size instead
3696 of ":$ptr_size" and set its form explicitly.
3701 * gdb.base/watch-bitfields.exp (test_watch_location): Increase
3702 timeout by factor of 4.
3703 (test_regular_watch): Likewise.
3704 * gdb.base/watchpoint-solib.exp: Use with_timeout_factor.
3705 * gdb.reverse/sigall-reverse.exp: Likewise.
3706 * gdb.reverse/until-precsave.exp: Likewise.
3707 * lib/gdb.exp (with_timeout_factor): New proc.
3708 (gdb_expect): Move some code to ...
3709 (get_largest_timeout): ... here. New procedure.
3713 * gdb.base/bp-permanent.exp (test): Reinstate correct test message.
3717 * gdb.base/bp-permanent.exp (test): Handle the case of being unable
3718 to write to the .text section.
3722 * gdb.base/coredump-filter.exp: Restrict test to Linux systems only.
3723 Handle the case of targets that do not provide PID information.
3727 * lib/gdbserver-support.exp (gdb_exit): Catch exception
3728 and use expect instead of gdb_expect.
3732 * gdb.base/coredump-filter.exp: Rename variable "addr" to
3733 "coredump_var_addr" to avoid naming conflict with other testcases.
3737 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp: Use
3738 gdb_test_sequence and gdb_assert.
3742 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): Use
3743 test messages that don't include the breakpoint address.
3747 * gdb.base/watchpoint-reuse-slot.exp (valid_addr_p): Return
3748 false for some offset and width combinations which aren't
3749 supported by linux kernel.
3753 * gdb.threads/step-over-lands-on-breakpoint.exp (do_test): New
3754 procedure, factored out from ...
3755 (top level): ... here. Add "set displaced-stepping" testing axis.
3756 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): New
3757 parameter "displaced". Use it.
3758 (top level): Use foreach and add "set displaced-stepping" testing
3763 * gdb.threads/step-over-trips-on-watchpoint.c (child_function):
3765 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): Find
3766 both the address of the instruction that triggers the watchpoint
3767 and the address of the instruction immediately after, and use
3768 those addresses for the test. Fix comment.
3772 * gdb.base/sigstep.exp (breakpoint_to_handler)
3773 (breakpoint_to_handler_entry): New parameter 'displaced'. Use it.
3774 Test "backtrace" in handler.
3775 (breakpoint_over_handler): New parameter 'displaced'. Use it.
3776 (top level): Add new "displaced" test axis to
3777 breakpoint_to_handler, breakpoint_to_handler_entry and
3778 breakpoint_over_handler.
3783 * gdb.threads/multiple-step-overs.exp: Remove expected eof.
3787 * gdb.arch/arm-disp-step.S (main): Call test_add_rn_pc.
3788 (test_add_rn_pc): New function.
3789 * gdb.arch/arm-disp-step.exp (test_add_rn_pc): New proc.
3790 (top level): Invoke test_add_rn_pc.
3795 * gdb.base/step-over-no-symbols.exp: New file.
3799 * gdb.guile/scm-frame.exp: Add frame-read-register tests, modelled
3800 after the Python tests.
3805 * gdb.python/py-completion.exp: New tests for completion.
3806 * gdb.python/py-completion.py (CompleteLimit1): New class.
3807 (CompleteLimit2): Likewise.
3808 (CompleteLimit3): Likewise.
3809 (CompleteLimit4): Likewise.
3810 (CompleteLimit5): Likewise.
3811 (CompleteLimit6): Likewise.
3812 (CompleteLimit7): Likewise.
3818 * gdb.threads/multiple-step-overs.c (sigusr1_handler): New
3820 (main): Install it as SIGUSR1 handler.
3821 * gdb.threads/multiple-step-overs.exp (setup): Remove 'prefix'
3822 parameter. Always use "setup" as prefix. Toggle "set
3823 displaced-stepping" off/on depending on global. Don't switch to
3825 (top level): Add displaced stepping "off/on" test axis. Update
3826 "setup" calls. Wrap each subtest with with_test_prefix. Test
3827 continuing with a queued signal in each thread.
3831 * gdb.trace/actions.exp: Use gdb_load before gdb_run_cmd.
3832 * gdb.trace/infotrace.exp: Use gdb_load before gdb_run_cmd. Use
3833 gdb_breakpoint instead of gdb_test that doesn't expect anything.
3834 Return early if running to main fails.
3835 * gdb.trace/while-stepping.exp: Likewise.
3839 * gdb.base/interrupt.exp: Don't skip if $inferior_spawn_id !=
3840 $gdb_spawn_id. Use send_inferior and $inferior_spawn_id to
3841 interact with inferior program.
3845 * lib/gdb.exp (inferior_spawn_id): New global.
3846 (gdb_test_multiple): Handle "-i". Reset the spawn id to GDB's
3847 spawn id after processing the user code.
3848 (default_gdb_start): Set inferior_spawn_id.
3849 (send_inferior): New procedure.
3850 * lib/gdbserver-support.exp (gdbserver_start): Set
3852 (close_gdbserver, gdb_exit): Unset inferior_spawn_id.
3856 * lib/gdb.exp (gdb_finish): Delete persistent gdbserver handling.
3857 * lib/gdbserver-support.exp (gdbserver_start): Make
3858 $server_spawn_id global.
3859 (gdbserver_start): Don't wait for gdbserver's spawn id with
3861 (close_gdbserver): New procedure.
3862 (gdb_exit): Rename the default version and reimplement.
3866 * lib/gdb.exp (gdb_test_multiple): When processing an argument,
3867 append the substituted item, not the original item.
3871 * gdb.base/interrupt.exp: Use gdb_test_multiple instead of
3876 * gdb.base/interrupt.exp: Don't handle the case of the inferior
3877 output appearing once only.
3881 * gdb.trace/actions.exp: Use gdb_breakpoint instead of gdb_test
3882 that doesn't expect anything. Return early if running to main
3887 * gdb.threads/non-stop-fair-events.c (SECONDS): New macro.
3888 (child_function): Call alarm.
3889 (main): Move call to alarm into the loop.
3890 * gdb.threads/non-stop-fair-events.exp: Build program with
3895 * lib/pascal.exp (gpc_compile): Rename dest arg to destfile.
3896 Fix dest parameter to board_info.
3897 (fpc_compile): Ditto.
3898 (gdb_compile_pascal): Rename dest arg to destfile.
3902 * gdb.ada/funcall_ref.exp: New file.
3903 * gdb.ada/funcall_ref/foo.adb: New file.
3907 * gdb.threads/no-unwaited-for-left.exp: Set up kfail if target
3912 * gdb.base/break-probes.exp: Cope with "target:" sysroot.
3916 * gdb.python/py-unwind-maint.c: New file.
3917 * gdb.python/py-unwind-maint.exp: New test.
3918 * gdb.python/py-unwind-maint.py: New file.
3919 * gdb.python/py-unwind.c: New file.
3920 * gdb.python/py-unwind.exp: New test.
3921 * gdb.python/py-unwind.py: New test.
3925 * gdb.threads/manythreads.exp (interrupt_and_wait): Pass $message
3926 to fail instead of non-existent $test.
3930 * lib/gdb.exp (gdb_spawn_with_cmdline_opts): Append space to
3931 GDBFLAGS if not empty.
3935 * gdb.ada/complete.exp: Remove "multi_line".
3936 * gdb.ada/info_exc.exp: Remove "multi_line".
3937 * gdb.ada/packed_tagged.exp: Remove "multi_line".
3938 * gdb.ada/ptype_field.exp: Remove "multi_line".
3939 * gdb.ada/sym_print_name.exp: Remove "multi_line".
3940 * gdb.ada/tagged.exp: Remove "multi_line".
3941 * gdb.btrace/buffer-size.exp: Replace [join [list ...]] with
3943 * gdb.btrace/delta.exp: Likewise.
3944 * gdb.btrace/exception.exp: Likewise.
3945 * gdb.btrace/function_call_history.exp: Likewise.
3946 * gdb.btrace/instruction_history.exp: Likewise.
3947 * gdb.btrace/nohist.exp: Likewise.
3948 * gdb.btrace/record_goto.exp: Likewise.
3949 * gdb.btrace/segv.exp: Likewise.
3950 * gdb.btrace/stepi.exp: Likewise.
3951 * gdb.btrace/tailcall.exp: Likewise.
3952 * gdb.btrace/unknown_functions.exp: Likewise.
3953 * gdb.dwarf2/dw2-undefined-ret-addr.exp: Likewise.
3954 * lib/gdb.exp: Add the "multi_line" helper.
3958 * gdb.threads/tid-reuse.c: New file.
3959 * gdb.threads/tid-reuse.exp: New file.
3964 * gdb.base/coredump-filter.c: New file.
3965 * gdb.base/coredump-filter.exp: Likewise.
3969 * lib/dwarf.exp (Dwarf::_handle_DW_FORM): Handle DW_FORM_sec_offset.
3970 (Dwarf::_line_count, Dwarf::_line_saw_file): New variables.
3971 (Dwarf::assemble): Initialize them.
3972 (Dwarf::lines): New function.
3976 * lib/gdb.exp (gdb_target_symbol_prefix_flags): Don't set
3977 SYMBOL_PREFIX for x86_64-*-cygwin.
3982 * gdb.dwarf2/dw2-intercu.S (one, two): Add variables that have a
3983 const_value but not a location.
3984 * gdb.dwarf2/dw2-intercu.exp: Add tests that constants without
3985 location defined in non-main CUs are visible.
3990 * gdb.linespec/break-asm-file0.s (func): New label .Lfunc_2.
3991 Add a line number entry for the same line.
3992 * gdb.linespec/break-asm-file1.s (func): New label .Lfunc_2.
3993 Add a line number entry for the same line.
3997 * gdb.linespec/break-asm-file0.s (func2): Use nop instead of
3999 (func): Likewise. Add .Lfunc_1 label.
4001 * gdb.linespec/break-asm-file1.s (func3): Use nop instead of
4008 * gdb.linespec/break-asm-file.exp: Don't call prepare_for_testing.
4009 Call gdb_compile instead to compile each .s files without debug
4014 * gdb.base/savedregs.exp (process_saved_regs): Make
4015 "Saved registers:" optional in the pattern.
4019 * gdb.btrace/next.exp: Merged into step.exp.
4020 * gdb.btrace/finish.exp: Merged into step.exp.
4021 * gdb.btrace/nexti.exp: Merged into stepi.exp.
4022 * gdb.btrace/step.exp: Use record_goto.c as test file. Avoid using
4023 "record goto" and checking the exact replay position.
4024 * gdb.btrace/stepi.exp: Choose test file based on target. Do not
4025 check for "Recording format" in "info record" output.
4026 * gdb.btrace/record_goto.exp: Choose test file based on target.
4027 * gdb.btrace/x86-record_goto.S: Renamed into ...
4028 * gdb.btrace/x86_64-record_goto.S: ... this.
4029 * gdb.btrace/i686-record_goto.S: New.
4030 * gdb.btrace/x86-tailcall.S: Renamed into ...
4031 * gdb.btrace/x86_64-tailcall.S: ... this.
4032 * gdb.btrace/i686-tailcall.S: New.
4033 * gdb.btrace/x86-tailcall.c: Renamed into ...
4034 * gdb.btrace/tailcall.c: ... this. Split "return ++answer" into two
4035 separate statements. Update test.
4036 * gdb.btrace/delta.exp: Use record_goto.c as test file.
4037 * gdb.btrace/gcore.exp: Use record_goto.c as test file.
4038 * gdb.btrace/nohist.exp: Use record_goto.c as test file.
4039 * gdb.btrace/tailcall.exp: Choose test file based on target.
4040 * gdb.btrace/Makefile.in: Remove next, finish, and nexti.
4044 * gdb.btrace/exception.exp: Increase BTS buffer size.
4048 * gdb.threads/no-unwaited-for-left.exp: Test "thread apply all".
4052 * gdb.threads/schedlock.exp (test_step): No longer expect that
4053 "set scheduler-locking step" with "next" over a function call runs
4058 * gdb.mi/mi-pending.exp: Fix output of breakpoint test.
4062 PR breakpoints/16466
4063 * gdb.mi/Makefile.in: Add mi-pendshr2.sl to cleanup.
4064 * gdb.mi/mi-pending.c (thread_func): New function.
4065 (int main): Add threading support required.
4066 * gdb.mi/mi-pending.exp: Add tests for this issue.
4067 * gdb.mi/mi-pendshr.c (pendfunc1): Remove stdio dependency.
4068 (pendfunc2): Remove stdio dependency.
4069 * gdb.mi/mi-pendshr2.c: New file.
4073 * gdb.linespec/keywords.c: New file.
4074 * gdb.linespec/keywords.exp: New file.
4079 * gdb.dwarf2/staticvirtual.exp: New test.
4083 * Makefile.in (ALL_SUBDIRS): Remove gdb.hp.
4084 * README: Remove HP-UX and gdb.hp.
4086 * configure: Regenerate.
4087 * configure.ac (AC_OUTPUT): Remove gdb.hp/Makefile,
4088 gdb.hp/gdb.objdbg/Makefile, gdb.hp/gdb.base-hp/Makefile,
4089 gdb.hp/gdb.aCC/Makefile, gdb.hp/gdb.compat/Makefile,
4090 gdb.hp/gdb.defects/Makefile.
4091 * gdb.hp/Makefile.in: File deleted.
4092 * gdb.hp/gdb.aCC/Makefile.in: File deleted.
4093 * gdb.hp/gdb.aCC/optimize.c: File deleted.
4094 * gdb.hp/gdb.aCC/optimize.exp: File deleted.
4095 * gdb.hp/gdb.aCC/run.c: File deleted.
4096 * gdb.hp/gdb.aCC/watch-cmd.exp: File deleted.
4097 * gdb.hp/gdb.base-hp/Makefile.in: File deleted.
4098 * gdb.hp/gdb.base-hp/callfwmall.c: File deleted.
4099 * gdb.hp/gdb.base-hp/callfwmall.exp: File deleted.
4100 * gdb.hp/gdb.base-hp/dollar.c: File deleted.
4101 * gdb.hp/gdb.base-hp/dollar.exp: File deleted.
4102 * gdb.hp/gdb.base-hp/genso-thresh.c: File deleted.
4103 * gdb.hp/gdb.base-hp/hwwatchbus.c: File deleted.
4104 * gdb.hp/gdb.base-hp/hwwatchbus.exp: File deleted.
4105 * gdb.hp/gdb.base-hp/pxdb.c: File deleted.
4106 * gdb.hp/gdb.base-hp/pxdb.exp: File deleted.
4107 * gdb.hp/gdb.base-hp/reg-pa64.exp: File deleted.
4108 * gdb.hp/gdb.base-hp/reg-pa64.s: File deleted.
4109 * gdb.hp/gdb.base-hp/reg.exp: File deleted.
4110 * gdb.hp/gdb.base-hp/reg.s: File deleted.
4111 * gdb.hp/gdb.base-hp/sized-enum.c: File deleted.
4112 * gdb.hp/gdb.base-hp/sized-enum.exp: File deleted.
4113 * gdb.hp/gdb.base-hp/so-thresh.exp: File deleted.
4114 * gdb.hp/gdb.base-hp/so-thresh.mk: File deleted.
4115 * gdb.hp/gdb.base-hp/so-thresh.sh: File deleted.
4116 * gdb.hp/gdb.compat/Makefile.in: File deleted.
4117 * gdb.hp/gdb.compat/average.c: File deleted.
4118 * gdb.hp/gdb.compat/sum.c: File deleted.
4119 * gdb.hp/gdb.compat/xdb.c: File deleted.
4120 * gdb.hp/gdb.compat/xdb0.c: File deleted.
4121 * gdb.hp/gdb.compat/xdb0.h: File deleted.
4122 * gdb.hp/gdb.compat/xdb1.c: File deleted.
4123 * gdb.hp/gdb.compat/xdb1.exp: File deleted.
4124 * gdb.hp/gdb.compat/xdb2.exp: File deleted.
4125 * gdb.hp/gdb.compat/xdb3.exp: File deleted.
4126 * gdb.hp/gdb.defects/Makefile.in: File deleted.
4127 * gdb.hp/gdb.defects/bs14602.c: File deleted.
4128 * gdb.hp/gdb.defects/bs14602.exp: File deleted.
4129 * gdb.hp/gdb.defects/solib-d.c: File deleted.
4130 * gdb.hp/gdb.defects/solib-d.exp: File deleted.
4131 * gdb.hp/gdb.defects/solib-d1.c: File deleted.
4132 * gdb.hp/gdb.defects/solib-d2.c: File deleted.
4133 * gdb.hp/gdb.objdbg/Makefile.in: File deleted.
4134 * gdb.hp/gdb.objdbg/objdbg01.exp: File deleted.
4135 * gdb.hp/gdb.objdbg/objdbg01/x1.cc: File deleted.
4136 * gdb.hp/gdb.objdbg/objdbg01/x2.cc: File deleted.
4137 * gdb.hp/gdb.objdbg/objdbg01/x3.cc: File deleted.
4138 * gdb.hp/gdb.objdbg/objdbg01/x3.h: File deleted.
4139 * gdb.hp/gdb.objdbg/objdbg02.exp: File deleted.
4140 * gdb.hp/gdb.objdbg/objdbg02/x1.cc: File deleted.
4141 * gdb.hp/gdb.objdbg/objdbg02/x2.cc: File deleted.
4142 * gdb.hp/gdb.objdbg/objdbg02/x3.cc: File deleted.
4143 * gdb.hp/gdb.objdbg/objdbg03.exp: File deleted.
4144 * gdb.hp/gdb.objdbg/objdbg03/x1.cc: File deleted.
4145 * gdb.hp/gdb.objdbg/objdbg03/x2.cc: File deleted.
4146 * gdb.hp/gdb.objdbg/objdbg03/x3.cc: File deleted.
4147 * gdb.hp/gdb.objdbg/objdbg04.exp: File deleted.
4148 * gdb.hp/gdb.objdbg/objdbg04/x.h: File deleted.
4149 * gdb.hp/gdb.objdbg/objdbg04/x1.cc: File deleted.
4150 * gdb.hp/gdb.objdbg/objdbg04/x2.cc: File deleted.
4151 * gdb.hp/gdb.objdbg/tools/symaddr: File deleted.
4152 * gdb.hp/gdb.objdbg/tools/symaddr.pa64: File deleted.
4153 * gdb.hp/gdb.objdbg/tools/test-objdbg.cc: File deleted.
4154 * gdb.hp/tools/odump: File deleted.
4158 * gdb.threads/continue-pending-status.exp (saw_thread_2)
4159 (saw_thread_3): New globals.
4160 (top level): Increment them when an event for the corresponding
4162 (no thread starvation): New test.
4166 * gdb.threads/continue-pending-status.c: New file.
4167 * gdb.threads/continue-pending-status.exp: New file.
4171 * gdb.base/disp-step-syscall.exp (disp_step_cross_syscall):
4172 Use gdb_is_target_remote instead of is_remote. Use
4173 gdb_test_multiple instead of gdb_expect. Exit early if
4174 gdb_test_multiple hits its internal matches. Tighten stepi tests
4175 expected output. Fail on exit with any signal, instead of just
4181 * gdb.base/catch-syscall.c [!SYS_pipe] (pipe2_syscall): New
4183 * gdb.base/catch-syscall.exp: Don't skip it on
4184 aarch64*-*-linux* target. Remove elements in all_syscalls.
4185 (test_catch_syscall_multi_arch): Skip it on aarch64*-linux*
4187 (setup_all_syscalls): New proc.
4191 * gdb.base/watchpoint-reuse-slot.exp (valid_addr_p): New proc.
4192 (top level): Skip tests if valid_addr_p returns false for
4197 * gdb.guile/scm-objfile.exp: Add objfile-progspace test.
4201 * gdb.base/catch-syscall.exp: Fix typo in comments.
4205 * gdb.base/catch-syscall.exp: Skip it on HP-UX target.
4209 * dg-extract-results.py: Delete.
4213 Merge dg-extract-results.sh from GCC upstream (r218843).
4216 * dg-extract-results.sh: Use --text with grep to avoid issues with
4217 binary files. Fall back to cat -v, if that doesn't work.
4221 * gdb.base/bp-permanent.exp: Tighten "next over setup" regex.
4225 * lib/mi-support.exp (mi_expect_interrupt): Accept
4226 alternative event for when in all-stop mode.
4230 * gdb.threads/thread-specific-bp.exp: Delete "info threads" test.
4234 * gdb.base/foll-fork.exp: Enable on *-*-openbsd*.
4238 * gdb.base/breakpoint-in-ro-region.exp (test_single_step): In the
4239 regexps for GDB's current line display, accept a hex address
4240 preceding the line number.
4244 * gdb.base/catch-syscall.exp (test_catch_syscall_multi_arch): Set
4245 the 'arch1' variable for "s390*-linux*" targets.
4249 * gdb.threads/clone-thread_db.c: Include unistd.h and pthread.h.
4250 (main): Pass missing retval argument to pthread_join call.
4254 * gdb.threads/thread-execl.exp (do_test): Handle non-stop.
4255 (top level): Call do_test with non-stop as well.
4259 * lib/gdb.exp (gdb_test_multiple) <internal error>: Set result to
4264 * gdb.arch/s390-vregs.exp: New test.
4265 * gdb.arch/s390-vregs.S: New file.
4269 * gdb.gdb/python-interrupts.exp (test_python_interrupts): Adjust
4270 call to catch_command_errors.
4271 * gdb.gdb/python-selftest.exp (selftest_python): Adjust call to
4272 catch_command_errors.
4276 * gdb.gdb/complaints.exp (test_initial_complaints): Also accept
4277 "true" for boolean result.
4278 * gdb.gdb/selftest.exp (test_with_self): Also accept full
4283 * lib/unbuffer_output.c: New file.
4284 * gdb.base/interrupt.c: Include "../lib/unbuffer_output.c".
4285 (main): Call gdb_unbuffer_output.
4289 * gdb.base/catch-syscall.exp: Don't skip it on hppa*-hp-hpux*
4294 * gdb.cp/class2.cc (Dbase, D): New classes.
4295 (main): New local delta.
4296 * gdb.cp/class2.exp: Test printing delta.
4297 * gdb.cp/classes.cc (DynamicBase2, DynamicBar): New classes.
4298 (dynbar): New global.
4299 * gdb.cp/classes.exp (test_ptype_class_objects): Test ptype DynamicBar.
4303 * gdb.compile/compile-ifunc.c: New file.
4304 * gdb.compile/compile-ifunc.exp: New file.
4308 * gdb.base/structs.exp: Check for correct struct on finish.
4312 * lib/dwarf.exp (function_range): Adjust pattern when $func_length
4317 * gdb.arch/cordic.ko.bz2: New file.
4318 * gdb.arch/cordic.ko.debug.bz2: New file.
4319 * gdb.arch/ppc64-symtab-cordic.exp: New file.
4323 * gdb.xml/tdesc-regs.exp: Set core-regs to aarch64-core.xml for
4324 aarch64*-*-* target.
4328 * lib/gdb.exp (delete_breakpoints): Rewrite using
4333 * gdb.base/info-os.c: Include stdlib.h.
4338 * gdb.ada/exec_changed.exp: Add second test where symbol lookup cache
4339 is read after symbols have been re-read.
4340 * gdb.ada/exec_changed/first.adb (First): New procedure Break_Me.
4341 * gdb.ada/exec_changed/second.adb (Second): Ditto.
4345 * gdb.cp/anon-ns.exp: Add test for ptype '(anonymous namespace)'.
4350 * gdb.arch/i386-biarch-core.core.bz2: New file.
4351 * gdb.arch/i386-biarch-core.exp: New file.
4355 * gdb.threads/multi-create-ns-info-thr.exp: Return early if
4360 * gdb.base/solib-corrupted.exp: Expect "stap" as first column of
4365 * gdb.threads/multi-create-ns-info-thr.exp: New file.
4369 * gdb.trace/no-attach-trace.exp: Don't run to main. Do
4370 clean_restart before gdb_target_supports_trace.
4375 * gdb.threads/clone-thread_db.c: New file.
4376 * gdb.threads/clone-thread_db.exp: New file.
4380 PR breakpoints/16812
4381 * gdb.base/catch-gdb-caused-signals.c: New file.
4382 * gdb.base/catch-gdb-caused-signals.exp: New file.
4386 * configure: Regenerated.
4387 * configure.ac: Use GDB_AC_TRANSFORM.
4388 * aclocal.m4: sinclude ../transform.m4.
4392 * lib/dtrace.exp: New file.
4393 * gdb.base/dtrace-probe.exp: Likewise.
4394 * gdb.base/dtrace-probe.d: Likewise.
4395 * gdb.base/dtrace-probe.c: Likewise.
4396 * lib/pdtrace.in: Likewise.
4397 * configure.ac: Output variables with the transformed names of
4398 the strip, readelf, as and nm tools. AC_SUBST lib/pdtrace.in.
4399 * configure: Regenerated.
4403 * gdb.base/stap-probe.exp (stap_test): Remove "SystemTap" from
4404 expected message when trying to access $_probe_* convenience
4405 variables while not on a probe.
4409 * gdb.python/py-framefilter.exp (pagination quit - *): New tests.
4413 * gdb.threads/step-bg-decr-pc-switch-thread.c: New file.
4414 * gdb.threads/step-bg-decr-pc-switch-thread.exp: New file.
4418 * lib/gdb.exp (gdb_load): Always return a result.
4422 * gdb.threads/signal-sigtrap.c: New file.
4423 * gdb.threads/signal-sigtrap.exp: New file.
4427 * gdb.trace/no-attach-trace.c: New file.
4428 * gdb.trace/no-attach-trace.exp: New file.
4432 * gdb.dwarf2/atomic.c: New file.
4433 * gdb.dwarf2/atomic-type.exp: Likewise.
4437 * gdb.btrace/buffer-size.exp: Update "info record" output.
4438 * gdb.btrace/delta.exp: Update "info record" output.
4439 * gdb.btrace/enable.exp: Update "info record" output.
4440 * gdb.btrace/finish.exp: Update "info record" output.
4441 * gdb.btrace/instruction_history.exp: Update "info record" output.
4442 * gdb.btrace/next.exp: Update "info record" output.
4443 * gdb.btrace/nexti.exp: Update "info record" output.
4444 * gdb.btrace/step.exp: Update "info record" output.
4445 * gdb.btrace/stepi.exp: Update "info record" output.
4446 * gdb.btrace/nohist.exp: Update "info record" output.
4450 * gdb.btrace/buffer-size: New.
4454 * gdb.btrace/delta.exp: Update "info record" output.
4455 * gdb.btrace/enable.exp: Update "info record" output.
4456 * gdb.btrace/finish.exp: Update "info record" output.
4457 * gdb.btrace/instruction_history.exp: Update "info record" output.
4458 * gdb.btrace/next.exp: Update "info record" output.
4459 * gdb.btrace/nexti.exp: Update "info record" output.
4460 * gdb.btrace/step.exp: Update "info record" output.
4461 * gdb.btrace/stepi.exp: Update "info record" output.
4462 * gdb.btrace/nohist.exp: Update "info record" output.
4467 * gdb.base/ena-dis-br.exp: Test "enable count" for bad user input.
4471 * gdb.threads/attach-many-short-lived-threads.c (SECONDS): New
4473 (seconds_left, again): New globals.
4474 (main): Wait seconds_left in a 1-second sleep loop instead of
4475 sleeping 180 seconds. If 'again' is set, reset the seconds
4477 * gdb.threads/attach-many-short-lived-threads.exp (test): Set
4478 'again' in the inferior before detaching. Print the seconds left.
4479 (options): New global.
4480 (top level): Build program with -DTIMEOUT=$timeout.
4484 * gdb.base/gdb-sigterm.c (main): Use the TIMEOUT define to
4485 determine how many seconds to pass to 'alarm'.
4486 * gdb.base/gdb-sigterm.exp (top level): Build program with
4488 (do_test): Return success/failure indication. Add more verbose
4489 logging. Don't fail if 200 single steps are seen. Instead, fail
4490 when the test times out.
4491 (passes): New global.
4492 (top level): Break the testing loop if testing fails on any
4493 iteration. Use gdb_assert.
4497 * gdb.base/info-os.c (shmid, semid, msqid): Make variables static
4498 and initialize them.
4499 (ipc_cleanup): New function.
4500 (main): Don't declare shmid, semid, and msqid. Add a call to
4501 atexit so that we call ipc_cleanup on exit.
4505 * boards/native-extended-gdbserver.exp: Remove any target variant
4506 specifications from the board name before clearing the isremote
4507 flag from board_info.
4511 * gdb.base/maint.exp <maint print type argc>: Update expected output.
4515 * gdb.base/completion.exp: Disable completion limiting for
4516 existing tests. Add new tests to check completion limiting.
4517 * gdb.linespec/ls-errs.exp: Disable completion limiting.
4521 * gdb.ada/dyn_arrayidx.exp: Add additional_flags=-gnat12.
4525 * gdb.guile/scm-section-script.c: Add duplicate inlined section script
4526 entries. Duplicate file section script entries.
4527 * gdb.guile/scm-section-script.exp: Add tests for duplicate entries,
4528 inlined entries. Add test for safe-path rejection.
4529 * gdb.python/py-section-script.c: Add duplicate inlined section script
4530 entries. Duplicate file section script entries.
4531 * gdb.python/py-section-script.exp: Add tests for duplicate entries,
4532 inlined entries. Add test for safe-path rejection.
4536 * gdb.ada/disc_arr_bound: New testcase.
4540 * gdb.ada/mi_var_array: New testcase.
4544 * gdb.python/py-objfile.exp: Add tests for objfile.username.
4545 Add test for objfile.filename, objfile.username after objfile
4550 * gdb.python/py-lookup-type.exp (test_lookup_type): Change
4551 the second test to print the name attribute of value
4552 returned by the call to gdb.lookup_type, and adjust
4553 the expected output accordingly.
4557 * gdb.arch/i386-bp_permanent.c (standard): New declaration.
4558 * gdb.base/disp-step-fork.c: Include unistd.h.
4559 * gdb.base/siginfo-obj.c: Include stdio.h.
4560 * gdb.base/siginfo-thread.c: Likewise.
4561 * gdb.mi/non-stop.c: Include unistd.h.
4562 * gdb.mi/nsthrexec.c: Include stdio.h.
4563 * gdb.mi/pthreads.c: Include unistd.h.
4564 * gdb.modula2/unbounded1.c (main): Declare returns int.
4565 * gdb.reverse/consecutive-reverse.c: Likewise.
4566 * gdb.threads/create-fail.c: Include unistd.h.
4567 * gdb.threads/killed.c: Likewise.
4568 * gdb.threads/linux-dp.c: Likewise.
4569 * gdb.threads/non-ldr-exc-1.c: Include stdio.h and string.h.
4570 * gdb.threads/non-ldr-exc-2.c: Likewise.
4571 * gdb.threads/non-ldr-exc-3.c: Likewise.
4572 * gdb.threads/non-ldr-exc-4.c: Likewise.
4573 * gdb.threads/pthreads.c: Include unistd.h.
4574 (main): Declare returns int.
4575 * gdb.threads/tls-main.c (foo): New declaration.
4576 * gdb.threads/watchpoint-fork-mt.c: Define _GNU_SOURCE.
4580 * gdb.mi/mi-var-list-children-invalid-grandchild.c: New file.
4581 * gdb.mi/mi-var-list-children-invalid-grandchild.exp: New file.
4585 * gdb.base/noreturn-return.c: New file.
4586 * gdb.base/noreturn-return.exp: New file.
4587 * gdb.base/noreturn-finish.c: New file.
4588 * gdb.base/noreturn-finish.exp: New file.
4592 * gdb.threads/continue-pending-after-query.c: New file.
4593 * gdb.threads/continue-pending-after-query.exp: New file.
4598 * gdb.base/statistics.exp: Assign spawn id to gdb_spawn_id.
4599 * gdb.base/valgrind-db-attach.exp: Same.
4600 * gdb.base/valgrind-infcall.exp: Same.
4601 * lib/mi-support.exp (default_mi_gdb_start): Same.
4602 * lib/prompt.exp (default_prompt_gdb_start): Same.
4603 * lib/gdb.exp (default_gdb_spawn): Same.
4604 (gdb_interact): New.
4609 * gdb.compile/compile.exp (pointer to jit function): New test.
4613 * lib/gdb.exp (supports_process_record): Return true for
4615 (supports_reverse): Likewise.
4619 * gdb.base/attach-pie-noexec.exp: Use can_spawn_for_attach
4620 instead of checking whether the target board is remote and
4621 use spawn_wait_for_attach instead of exec/sleep.
4622 * gdb.base/attach-twice.exp: Likewise.
4626 * gdb.ada/var_arr_attrs: New testcase.
4632 * gdb.base/bp-cmds-execution-x-script.c: New file.
4633 * gdb.base/bp-cmds-execution-x-script.exp: New file.
4634 * gdb.base/bp-cmds-execution-x-script.gdb: New file.
4639 * gdb.base/batch-preserve-term-settings.c: New file.
4640 * gdb.base/batch-preserve-term-settings.exp: New file.
4644 * gdb.python/py-objfile.exp: Test gdb.lookup_objfile on symlinked
4649 * Makefile.in (clean mostlyclean): Do not delete *.py.
4653 * gdb.python/py-lookup-type.exp: New file.
4657 * gdb.python/py-prompt.exp: When the board can't spawn for attach,
4658 restore GDBFLAGS before returning.
4662 * gdb.python/py-frame.exp (test Frame.read_register(rip)): Use
4663 is_amd64_regs_target and is_x86_like_target.
4667 * lib/dwarf.exp (Dwarf): Flag an error if a numeric attribute value
4668 is given without an explicit form.
4669 * gdb.dwarf2/arr-subrange.exp: Specify forms for all numeric
4671 * gdb.dwarf/corrupt.exp: Ditto.
4672 * gdb.dwarf2/enum-type.exp: Ditto.
4673 * gdb.trace/entry-values.exp: Ditto.
4674 * gdb.trace/unavailable-dwarf-piece.exp: Ditto.
4679 * gdb.base/maint.exp: Remove references to "maint demangle".
4680 * gdb.cp/demangle.exp: Update. "maint demangle" -> "demangle".
4681 Add tests for explicitly specifying language to demangle.
4682 * gdb.dlang/demangle.exp: Ditto.
4686 * gdb.threads/non-stop-fair-events.c: New file.
4687 * gdb.threads/non-stop-fair-events.exp: New file.
4691 * gdb.base/annota1.exp (thread_test): Use srcfile and binfile from
4692 the global scope. Set a breakpoint after all threads are started
4693 rather than stepping over two source lines. Expect the prompt.
4694 * gdb.base/watch_thread_num.c (threads_started_barrier): New
4697 (main): Use threads_started_barrier to wait for all threads to
4698 start. Main thread no longer calls thread_function. Exit after
4700 (loop): New function.
4701 (thread_function): Wait on threads_started_barrier barrier. Call
4702 'loop' at each iteration.
4703 * gdb.base/watch_thread_num.exp: Continue to breakpoint after all
4704 threads have started, instead of hardcoding number of "next"
4705 steps. Use an access watchpoint instead of a write watchpoint.
4709 * gdb.threads/ia64-sigill.c (threads_started_barrier): New global.
4710 (thread_func): Wait on barrier.
4711 (main): Wait for all threads to start before stopping GDB.
4712 * gdb.threads/siginfo-threads.c (threads_started_barrier): New
4714 (thread1_func, thread2_func): Wait on barrier.
4715 (main): Wait for all threads to start before stopping GDB.
4716 * gdb.threads/watchthreads-reorder.c (threads_started_barrier):
4718 (thread1_func, thread2_func): Wait on barrier.
4719 (main): Wait for all threads to start before stopping GDB.
4723 * gdb.threads/attach-many-short-lived-threads.c: New file.
4724 * gdb.threads/attach-many-short-lived-threads.exp: New file.
4728 * gdb.threads/fork-thread-pending.exp: Switch to the main thread
4729 instead of to thread 2.
4730 * gdb.threads/signal-command-multiple-signals-pending.c (main):
4731 Add barrier around each pthread_create call instead of around all
4733 * gdb.threads/signal-command-multiple-signals-pending.exp (test):
4734 Set a break on thread_function and have the child threads hit it
4739 * lib/gdb.exp (can_spawn_for_attach): New procedure.
4740 (spawn_wait_for_attach): Error out if can_spawn_for_attach returns
4742 * gdb.base/attach.exp: Use can_spawn_for_attach instead of
4743 checking whether the target board is remote.
4744 * gdb.multi/multi-attach.exp: Likewise.
4745 * gdb.python/py-sync-interp.exp: Likewise.
4746 * gdb.server/ext-attach.exp: Likewise.
4747 * gdb.python/py-prompt.exp: Use can_spawn_for_attach before the
4748 tests that need to attach, instead of checking whether the target
4749 board is remote at the top of the file.
4753 * gdb.trace/entry-values.exp: Set call_insn for MIPS target.
4757 Fix testcase compilation.
4758 * gdb.arch/i386-avx512.exp (comp_flags): Remove /common.
4762 * gdb.python/py-type.exp: Add a couple test about empty
4763 array creation, and negative-length array creation.
4767 * gdb.cp/nsalias.exp: Fix output of external/declaration flags.
4771 * gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc.
4775 * gdb.trace/entry-values.exp: Update comments. Rename variable
4776 bar_call_foo to returned_from_foo.
4781 * gdb.linespec/break-asm-file.c: New file.
4782 * gdb.linespec/break-asm-file.exp: New file.
4783 * gdb.linespec/break-asm-file0.s: New file.
4784 * gdb.linespec/break-asm-file1.s: New file.
4789 * gdb.base/float.exp: Handle the new output from "info float" on
4794 Fix MinGW compilation.
4795 * gdb.compile/compile-ops.exp: Update untested message if
4796 !skip_compile_feature_tests.
4797 * gdb.compile/compile-setjmp.exp: Likewise.
4798 * gdb.compile/compile-tls.exp: Likewise.
4799 * gdb.compile/compile.exp: Likewise.
4800 * lib/gdb.exp (skip_compile_feature_tests): Check also "Command not
4801 supported on this host".
4805 * boards/stabs.exp: New file.
4809 * gdb.base/completion.exp: Adjust to format changes of "maint
4810 print user-registers".
4815 * gdb.arch/aarch64-fp.c: New file.
4816 * gdb.arch/aarch64-fp.exp: New file.
4820 Merge dg-extract-results.{sh,py} from GCC upstream (r210243,
4821 r210637, r210913, r211666, r215400, r215817).
4824 * dg-extract-results.py: New file.
4825 * dg-extract-results.sh: Use it if the environment seems
4830 * dg-extract-results.py (parse_run): Handle warnings that
4831 are printed before a test harness is run.
4835 * dg-extract-results.py (Named): Remove __cmp__ method.
4836 (output_variation): Use a key to sort variation.harnesses.
4840 * dg-extract-results.py: For Python 3, force sys.stdout to
4841 handle surrogate escape sequences.
4842 (safe_open): New function.
4843 (output_segment, main): Use it.
4847 * dg-extract-results.py (Prog.result_re): Include options
4852 * dg-extract-results.py (output_variation): Always sort if
4857 * lib/gdb.exp (default_gdb_start): After starting gdb, loop
4858 as long as we get pagination notifications.
4862 * Makefile.in (check-gdb.%): Restore.
4863 * README: Mention it.
4867 * gdb.ada/str_uninit: New testcase.
4872 * gdb.base/vla-stub-define.c: New file.
4873 * gdb.base/vla-stub.c: New file.
4874 * gdb.base/vla-stub.exp: New file.
4880 * configure.ac: Add gdb.compile/.
4881 * configure: Regenerate.
4882 * gdb.compile/Makefile.in: New file.
4883 * gdb.compile/compile-ops.exp: New file.
4884 * gdb.compile/compile-ops.c: New file.
4885 * gdb.compile/compile-tls.c: New file.
4886 * gdb.compile/compile-tls.exp: New file.
4887 * gdb.compile/compile-constvar.S: New file.
4888 * gdb.compile/compile-constvar.c: New file.
4889 * gdb.compile/compile-mod.c: New file.
4890 * gdb.compile/compile-nodebug.c: New file.
4891 * gdb.compile/compile-setjmp-mod.c: New file.
4892 * gdb.compile/compile-setjmp.c: New file.
4893 * gdb.compile/compile-setjmp.exp: New file.
4894 * gdb.compile/compile-shlib.c: New file.
4895 * gdb.compile/compile.c: New file.
4896 * gdb.compile/compile.exp: New file.
4897 * lib/gdb.exp (skip_compile_feature_tests): New proc.
4901 * lib/dwarf.exp (_location): Ignore blank lines. Allow comments.
4902 Handle DW_OP_pick, DW_OP_skip, DW_OP_bra.
4906 * lib/gdb-python.exp (get_python_valueof): New function.
4907 * gdb.python/py-objfile.exp: Add tests for gdb.lookup_objfile.
4911 * gdb.base/completion.exp: Add test for completion of "info
4916 * gdb.base/func-ptrs.c: New file.
4917 * gdb.base/func-ptrs.exp: New file.
4921 PR breakpoints/17012
4922 * gdb.base/dprintf-detach.c: New file.
4923 * gdb.base/dprintf-detach.exp: New file.
4927 * gdb.trace/qtro.exp: Replace gdbserver detection code by...
4928 * lib/gdb.exp (target_is_gdbserver): New procedure.
4932 * gdb.python/py-objfile.exp: Add tests for objfile.owner.
4936 * gdb.guile/scm-error.exp: Remove the third argument to
4937 gdb_remote_download.
4938 * gdb.guile/scm-frame-args.exp: Likewise.
4939 * gdb.guile/scm-section-script.exp: Likewise.
4943 * gdb.arch/i386-bp_permanent.exp: Use standard_testfile.
4947 * gdb.python/py-objfile.exp: Add tests for
4948 objfile.add_separate_debug_file.
4952 * lib/gdb.exp (get_build_id): New function.
4953 (build_id_debug_filename_get): Rewrite to use it.
4954 * gdb.python/py-objfile.exp: Add test for objfile.build_id.
4958 * gdb.cp/expand-psymtabs-cxx.exp: Accept any address of
4959 `method(long)', not just 0x0.
4960 * gdb.cp/nsalias.exp: Align code labels to 4.
4961 * gdb.dwarf2/dw2-canonicalize-type.S (main): Expand to 4-bytes.
4962 * gdb.dwarf2/dw2-empty-pc-range.S (main): Likewise.
4963 * gdb.dwarf2/pr11465.S (_ZN1N1cE): Likewise.
4964 * gdb.dwarf2/dw2-case-insensitive.c (START_INSNS): New macro.
4965 (cu_text_start, FUNC_lang_start): Use `START_INSNS'.
4966 * gdb.dwarf2/dw2-stack-boundary.exp: Accept noise in complaints.
4971 * gdb.cp/anon-ns.cc: Move guts of this file to ...
4972 * gdb.cp/anon-ns2.cc: ... here. New file.
4973 * gdb.cp/anon-ns.exp: Update.
4977 * gdb.python/py-events.py (inferior_call_handler): New.
4978 (register_changed_handler, memory_changed_handler): New.
4979 (test_events.invoke): Register new handlers.
4980 * gdb.python/py-events.exp: Add tests for inferior call,
4981 memory_changed and register_changed events.
4985 * gdb.base/execl-update-breakpoints.exp: Specify the link address
4986 with '-Ttext-segment' instead of '-Ttext'. Fall back to '-Ttext'
4987 if the linker doesn't understand this.
4991 * gdb.python/python.exp: Change expected reply to help().
4995 * configure.ac: Remove AC_ARG_ENABLE for gdbtk. Don't invoke
4996 AC_CONFIG_SUBDIRS(gdb.gdbtk).
4997 * configure: Re-generated.
5001 * gdb.cp/chained-calls.cc: New file.
5002 * gdb.cp/chained-calls.exp: New file.
5003 * gdb.cp/smartp.exp: Remove KFAIL for "p c2->inta".
5007 * gdb.ada/py_range.exp: Add parentheses to python calls to print.
5008 * gdb.dwarf2/symtab-producer.exp: Same.
5009 * gdb.gdb/python-interrupts.exp: Same.
5010 * gdb.gdb/python-selftest.exp: Same.
5011 * gdb.python/py-linetable.exp: Same.
5012 * gdb.python/py-type.exp: Same.
5013 * gdb.python/py-value-cc.exp: Same.
5014 * gdb.python/py-value.exp: Same.
5018 * gdb.base/break-probes.exp: Match library name prefixed with
5023 * gdb.python/py-linetable.exp: Escape properly sorted(fset)
5024 test expected output. Add parentheses for the call to print.
5025 Remove L suffix from integers.
5029 * gdb.dwarf2/dw2-op-out-param.S: Fix comment.
5033 * gdb.trace/entry-values.c: Remove asms.
5034 (foo): Add foo_label.
5035 (bar): Add bar_label.
5036 * gdb.trace/entry-values.exp: Remove code computing foo's
5037 length and bar's length.
5038 (Dwarf::assemble): Invoke function_range for bar and use
5039 MACRO_AT_func for foo.
5043 * gdb.dwarf2/dw2-compdir-oldgcc.S: Define label .Lgcc42_procstart
5044 and .Lgcc43_procstart. Use .Lgcc42_procstart instead of gcc42.
5045 Use .Lgcc43_procstart instead of gcc43.
5049 * gdb.ada/n_arr_bound: New testcase.
5053 PR breakpoints/10737
5054 * gdb.base/catch-syscall.exp (do_syscall_tests): Call
5055 test_catch_syscall_multi_arch.
5056 (test_catch_syscall_multi_arch): New function.
5060 * gdb.base/maint.exp: Update expected output.
5064 * gdb.base/bp-permanent.c (NOP): Define as 2-byte instead of
5065 4-byte instruction on S390.
5069 * gdb.ada/arr_arr: New testcase.
5073 * gdb.ada/pkd_arr_elem: New Testcase.
5077 * gdb.reverse/break-precsave: Expect completion message for
5079 * gdb.reverse/consecutive-precsave.exp: Likewise.
5080 * gdb.reverse/finish-precsave.exp: Likewise.
5081 * gdb.reverse/i386-precsave.exp: Likewise.
5082 * gdb.reverse/machinestate-precsave.exp: Likewise.
5083 * gdb.reverse/sigall-precsave.exp: Likewise.
5084 * gdb.reverse/solib-precsave.exp: Likewise.
5085 * gdb.reverse/step-precsave.exp: Likewise.
5086 * gdb.reverse/until-precsave.exp: Likewise.
5087 * gdb.reverse/watch-precsave.exp: Likewise.
5091 * gdb.base/bp-permanent.c: Include unistd.h.
5092 * gdb.python/py-framefilter-mi.c (main): Add return type.
5093 * gdb.python/py-framefilter.c (main): Likewise.
5094 * gdb.trace/actions-changed.c (main): Likewise.
5098 * gdb.mi/until.c: Add eye-catchers.
5099 * gdb.mi/mi-until.exp: Refer to eye-catchers instead of literal
5104 * gdb.base/condbreak.exp: Drop references to removed non-prototype
5105 function header variants in break1.c.
5106 * gdb.base/ena-dis-br.exp: Likewise.
5107 * gdb.base/hbreak2.exp: Likewise.
5108 * gdb.reverse/until-precsave.exp: Drop references to removed
5109 non-prototype function header variants in ur1.c.
5110 * gdb.reverse/until-reverse.exp: Likewise.
5114 * lib/dwarf.exp (Dwarf::cu, Dwarf::tu): Emit
5115 ${_cu_offset_size} bytes abbrev offset.
5120 * gdb.base/line-symtabs.exp: New file.
5121 * gdb.base/line-symtabs.c: New file.
5122 * gdb.base/line-symtabs.h: New file.
5126 * gdb.dwarf2/dw2-ifort-parameter.c: Remove inline asm.
5127 (func): Add label func_label.
5128 * gdb.dwarf2/dw2-ifort-parameter.exp (Dwarf::assemble):
5129 Replace low_pc and high_pc with MACRO_AT_range.
5130 Replace name, low_pc and high_pc with MACRO_AT_func.
5134 * gdb.dwarf2/implptr-optimized-out.exp (Dwarf::assemble):
5135 Replace name, low_pc and high_pc with MACRO_AT_func.
5139 * gdb.dwarf2/implptr-optimized-out.exp: Use Dwarf::assemble to
5140 produce debug information.
5141 * gdb.dwarf2/implptr-optimized-out.S: Removed.
5145 * gdb.dwarf2/dwz.exp: Remove the code to compile main.c to
5146 object and get function length.
5147 (Dwarf::assemble): Replace name, low_pc and high_pc attributes
5149 (top-level): Replace gdb_compile and clean_restart with
5150 prepare_for_testing.
5151 * gdb.dwarf2/main.c (main): Add label main_label.
5155 * lib/dwarf.exp (function_range): New procedure.
5156 (Dwarf::_handle_macro_at_func): New procedure.
5157 (Dwarf::_handle_macro_at_range): New procedure.
5158 (Dwarf): Handle MACRO_AT_func and MACRO_AT_range.
5162 * lib/dwarf.exp (_handle_DW_TAG): Move some code to ...
5163 (_handle_attribute): New procedure.
5167 * gdb.ada/cond_lang/foo.c (callme): Add return type.
5168 * gdb.base/call-sc.c (zed): Likewise.
5169 * gdb.base/checkpoint.c (main): Likewise.
5170 * gdb.base/dump.c (main): Likewise.
5171 * gdb.base/gcore.c (main): Likewise.
5172 * gdb.base/huge.c (main): Likewise.
5173 * gdb.base/multi-forks.c (main): Likewise.
5174 * gdb.base/pr10179-a.c (main): Likewise.
5175 * gdb.base/savedregs.c (main): Likewise.
5176 * gdb.base/sigaltstack.c (main): Likewise.
5177 * gdb.base/siginfo.c (main): Likewise.
5178 * gdb.base/structs.c (zed): Likewise.
5179 * gdb.mi/mi-stack.c (callee3, callee2, callee1, main): Likewise.
5180 * gdb.mi/mi-syn-frame.c (main): Likewise.
5181 * gdb.mi/until.c (foo, main): Likewise.
5182 * gdb.base/global-var-nested-by-dso.c (b_main, c_main): Declare.
5183 * gdb.base/solib-weak.c (foo): Declare.
5184 * gdb.base/attach-twice.c: Include stdio.h.
5185 * gdb.base/weaklib1.c: Likewise.
5186 * gdb.base/weaklib2.c: Likewise.
5187 * gdb.base/catch-signal-fork.c: Include stdio.h and sys/wait.h.
5188 * gdb.mi/mi-condbreak-call-thr-state-mt.c: Include stdio.h and
5190 * gdb.base/attach-pie-misread.c: Include stdlib.h.
5191 * gdb.mi/mi-exit-code.c: Likewise.
5192 * gdb.base/break-interp-lib.c: Include string.h.
5193 * gdb.base/coremaker.c: Likewise.
5194 * gdb.base/testenv.c: Likewise.
5195 * gdb.python/py-finish-breakpoint.c: Likewise.
5196 * gdb.base/inferior-died.c: Include sys/wait.h.
5197 * gdb.base/fileio.c: Include time.h.
5198 * gdb.base/async-shell.c: Include unistd.h.
5199 * gdb.base/dprintf-non-stop.c: Likewise.
5200 * gdb.base/info-os.c: Likewise.
5201 * gdb.mi/mi-console.c: Likewise.
5202 * gdb.mi/watch-nonstop.c: Likewise.
5203 * gdb.python/py-events.c: Likewise.
5204 * gdb.base/async.c (baz): Move up before its invocation.
5205 * gdb.base/code_elim2.c (my_global_func): Likewise.
5206 * gdb.base/skip-solib-lib.c (multiply): Likewise.
5207 * gdb.base/advance.c (func2): Likewise.
5211 * gdb.base/annota1.c: Remove #ifdef PROTOTYPES, keep prototyped
5213 * gdb.base/annota3.c: Likewise.
5214 * gdb.base/async.c: Likewise.
5215 * gdb.base/average.c: Likewise.
5216 * gdb.base/call-ar-st.c: Likewise.
5217 * gdb.base/call-rt-st.c: Likewise.
5218 * gdb.base/call-sc.c: Likewise.
5219 * gdb.base/call-strs.c: Likewise.
5220 * gdb.base/ending-run.c: Likewise.
5221 * gdb.base/execd-prog.c: Likewise.
5222 * gdb.base/exprs.c: Likewise.
5223 * gdb.base/foll-exec.c: Likewise.
5224 * gdb.base/foll-fork.c: Likewise.
5225 * gdb.base/foll-vfork.c: Likewise.
5226 * gdb.base/funcargs.c: Likewise.
5227 * gdb.base/gcore.c: Likewise.
5228 * gdb.base/jump.c: Likewise.
5229 * gdb.base/langs0.c: Likewise.
5230 * gdb.base/langs1.c: Likewise.
5231 * gdb.base/langs2.c: Likewise.
5232 * gdb.base/mips_pro.c: Likewise.
5233 * gdb.base/nodebug.c: Likewise.
5234 * gdb.base/opaque0.c: Likewise.
5235 * gdb.base/opaque1.c: Likewise.
5236 * gdb.base/recurse.c: Likewise.
5237 * gdb.base/run.c: Likewise.
5238 * gdb.base/scope0.c: Likewise.
5239 * gdb.base/scope1.c: Likewise.
5240 * gdb.base/setshow.c: Likewise.
5241 * gdb.base/setvar.c: Likewise.
5242 * gdb.base/shmain.c: Likewise.
5243 * gdb.base/shr1.c: Likewise.
5244 * gdb.base/shr2.c: Likewise.
5245 * gdb.base/sigall.c: Likewise.
5246 * gdb.base/signals.c: Likewise.
5247 * gdb.base/so-indr-cl.c: Likewise.
5248 * gdb.base/solib2.c: Likewise.
5249 * gdb.base/structs.c: Likewise.
5250 * gdb.base/sum.c: Likewise.
5251 * gdb.base/vforked-prog.c: Likewise.
5252 * gdb.base/watchpoint.c: Likewise.
5253 * gdb.reverse/shr2.c: Likewise.
5254 * gdb.reverse/until-reverse.c: Likewise.
5255 * gdb.reverse/ur1.c: Likewise.
5256 * gdb.reverse/watch-reverse.c: Likewise.
5260 * gdb.base/sepdebug.c: Remove #ifdef PROTOTYPES, keep prototyped
5262 * gdb.base/sepdebug.exp: Drop references to removed code.
5266 * gdb.base/list0.h: Remove #ifdef PROTOTYPES, keep prototyped
5267 variant. Preserve original line numbering.
5268 * gdb.base/list1.c: Likewise.
5272 * gdb.base/break.c: Remove #ifdef PROTOTYPES, keep prototyped
5274 * gdb.base/break1.c: Likewise.
5275 * gdb.base/break.exp: Drop references to removed code.
5279 * gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped
5284 * gdb.base/callfuncs.exp (perform_all_tests): Re-indent.
5288 * gdb.base/callfuncs.exp: Remove 'prototypes' variable. Move main
5289 logic into perform_all_tests() and invoke it with and without
5290 function header prototypes.
5291 (do_function_calls): Remove conditional XFAIL for PR 5318.
5292 (rerun_and_prepare): Remove duplicate code.
5293 (perform_all_tests): New. Main logic moved here.
5297 * gdb.base/callfuncs.c (t_float_many_args): Fix syntax error in
5298 code guarded by #ifdef NO_PROTOTYPES.
5299 (t_double_many_args): Likewise.
5300 (DEF_FUNC_MANY_ARGS_1): Likewise.
5301 (DEF_FUNC_VALUES_1): Likewise.
5302 (t_structs_ldc): Renamed from t_structs_fc in conditional code
5303 guarded by #ifdef PROTOTYPES.
5307 * gdb.mi/mi-console.c: Add eye-catcher.
5308 * gdb.mi/mi-console.exp (semihosted_string): Refer to eye-catcher
5309 instead of literal line number.
5313 * gdb.base/shr2.c: Add eye-catcher.
5314 * gdb.base/shlib-call.exp: Refer to eye-catcher instead of literal
5319 * gdb.base/jump.c: Add eye-catchers.
5320 * gdb.base/jump.exp: Refer to eye-catchers instead of literal line
5325 * gdb.base/execd-prog.c: Add eye-catchers.
5326 * gdb.base/foll-exec.c: Likewise.
5327 * gdb.base/foll-exec.exp: Refer to eye-catchers instead of literal
5332 * gdb.base/ending-run.c: Add eye-catchers.
5333 * gdb.base/ending-run.exp: Refer to eye-catchers instead of
5334 literal line numbers.
5338 * gdb.base/call-rt-st.c: Add eye-catchers.
5339 * gdb.base/call-rt-st.exp: Refer to eye-catchers instead of
5340 literal line numbers.
5344 * gdb.base/call-ar-st.c: Add eye-catchers.
5345 * gdb.base/call-ar-st.exp: Refer to eye-catchers instead of
5346 literal line numbers.
5350 * gdb.base/average.c: Add eye-catchers.
5351 * gdb.base/sum.c: Likewise.
5352 * gdb.base/dbx.exp: Use eye-catchers to determine line numbers for
5353 regexps dynamically.
5357 * gdb.base/solib1.c: Add eye-catchers.
5358 * gdb.base/so-impl-ld.exp: Match against eye-catchers instead of
5359 literal line numbers.
5363 * gdb.threads/leader-exit.exp: Test sending ctrl-c works after the
5368 * gdb.arch/i386-bp_permanent.c: New file.
5369 * gdb.arch/i386-bp_permanent.exp: Don't skip on x86_64.
5370 (srcfile): Set to i386-bp_permanent.c.
5371 (top level): Adjust to work in both 32-bit and 64-bit modes. Test
5372 that stepi does not execute the 'leave' instruction, instead of
5373 testing it does execute.
5374 * gdb.base/bp-permanent.c: New file.
5375 * gdb.base/bp-permanent.exp: New file.
5380 * gdb.base/symtab-search-order.exp: New file.
5381 * gdb.base/symtab-search-order.c: New file.
5382 * gdb.base/symtab-search-order-1.c: New file.
5383 * gdb.base/symtab-search-order-shlib-1.c: New file.
5388 * gdb.base/sigstep.exp (in_handler_map) <si+advance>: xfail
5394 * gdb.cp/pr17494.cc: New file.
5395 * gdb.cp/pr17494.exp: New file.
5399 * gdb.python/python.exp: Get working directory and match the
5400 output of "set extended-prompt \\w " with it.
5404 * gdb.python/py-objfile.exp: Add tests for setting random attributes
5406 * gdb.python/py-progspace.exp: Add tests for setting random attributes
5411 * gdb.base/fullpath-expand.exp: Skip for a remote host.
5412 * gdb.base/realname-expand.exp: Likewise.
5413 * gdb.linespec/macro-relative.exp: Likewise.
5418 * gdb.threads/schedlock.c (some_function): New function.
5419 (call_function): New global.
5420 (MAYBE_CALL_SOME_FUNCTION): New macro.
5421 (thread_function): Call it.
5422 * gdb.threads/schedlock.exp (get_args): Add description parameter,
5423 and use it instead of a global counter. Adjust all callers.
5424 (get_current_thread): Use "find current thread" for test message
5425 here rather than having all callers pass down the same string.
5426 (goto_loop): New procedure, factored out from ...
5427 (my_continue): ... this.
5428 (step_ten_loops): Change parameter from test message to command to
5430 (list_count): Delete global.
5431 (check_result): New procedure, factored out from duplicate top
5433 (continue tests): Wrap in with_test_prefix.
5434 (test_step): New procedure, factored out from duplicate top level
5436 (top level): Test "step" in combination with all scheduler-locking
5437 modes. Test "next" in combination with all scheduler-locking
5438 modes, and in combination with stepping over a function call or
5440 * gdb.threads/next-bp-other-thread.c: New file.
5441 * gdb.threads/next-bp-other-thread.exp: New file.
5446 * gdb.python/python.exp: Test a multi-line command that spawns
5448 * gdb.base/multi-line-starts-subshell.exp: New file.
5452 * gdb.base/fileio.exp: Make directories on host.
5456 * gdb.base/fileio.c (test_write): Close the file.
5461 * gdb.base/sigstep.c (no_handler): New global.
5462 (main): If 'no_handler is true, set the signal handlers to
5464 * gdb.base/sigstep.exp (breakpoint_over_handler): Add
5465 with_sw_watch and no_handler parameters. Handle them.
5466 (top level) <stepping over handler when stopped at a breakpoint
5467 test>: Add a test axis for testing with a software watchpoint, and
5468 another for testing with the signal handler set to SIG_IGN.
5469 * gdb.base/step-sw-breakpoint-adjust-pc.c: New file.
5470 * gdb.base/step-sw-breakpoint-adjust-pc.exp: New file.
5475 * gdb.base/sigstep.c (handler): Add a few more writes to 'done'.
5476 * gdb.base/sigstep.exp (other_handler_location): New global.
5477 (advance): Support stepping into the signal handler, and running
5478 commands while in the handler.
5479 (in_handler_map): New global.
5480 (top level): In the advance test, add combinations for getting
5481 into the handler with stepping commands, and for running commands
5482 in the handler. Add comment descripting the advancei tests.
5486 * gdb.base/sigstep.exp: Use build_executable instead of
5487 prepare_for_testing.
5488 (top level): Move code that starts GDB, runs to main and creates a
5490 (restart): ... this new procedure.
5491 (top level): Move backtrace from signal handler test to ...
5492 (validate_backtrace): ... this new procedure.
5493 (advance, advancei): Rename parameter from 'i' to 'cmd'. Use
5494 with_test_prefix. Always restart GDB.
5495 (skip_to_handler): Rename parameter from 'i' to 'cmd'. Use
5496 with_test_prefix. Always restart GDB. No need to delete
5497 breakpoints after the test.
5498 (test_skip_handler): Remove prefix parameter.
5499 (skip_over_handler, breakpoint_to_handler)
5500 (breakpoint_to_handler_entry, breakpoint_over_handler): Rename
5501 parameter from 'i' to 'cmd'. Use with_test_prefix. Always
5502 restart GDB. No need to delete breakpoints after the test.
5503 (top level): Use foreach to call the test procedures with
5508 * gdb.base/sigaltstack.exp: Update to use Bugzilla bug numbers
5509 instead of GNATS numbers.
5510 * gdb.base/sigbpt.exp: Likewise.
5511 * gdb.base/siginfo.exp: Likewise.
5512 * gdb.base/sigstep.exp: Likewise.
5516 * gdb.base/sigstep.c (dummy): New global.
5517 (main): Issue a couple writes to the new global.
5518 * gdb.base/sigstep.exp (get_next_pc, test_skip_handler): New
5520 (skip_over_handler): Use test_skip_handler.
5521 (top level): Call skip_over_handler for stepi and nexti too.
5522 (breakpoint_over_handler): Use test_skip_handler.
5523 (top level): Call breakpoint_over_handler for stepi and nexti too.
5527 * gdb.trace/tfile.c (adjust_function_address)
5528 [__powerpc64__ && _CALL_ELF != 2]: Get function address from
5529 function descriptor.
5533 * gdb.base/foll-fork.exp (test_follow_fork,
5534 catch_fork_child_follow): Check for updated fork messages emitted
5536 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step,
5537 vfork_parent_follow_to_bp, vfork_and_exec_child_follow_to_main_bp,
5538 vfork_and_exec_child_follow_through_step): Check for updated vfork
5539 messages emitted from infrun.c.
5543 * gdb.base/corefile.exp: Remove references to ultrix.
5544 * gdb.base/interrupt.exp: Likewise.
5545 * gdb.base/whatis.exp: Likewise.
5546 * gdb.gdb/selftest.exp: Likewise.
5547 * gdb.threads/manythreads.exp: Likewise.
5548 * gdb.threads/print-threads.exp: Likewise.
5549 * gdb.threads/pthreads.exp:: Likewise.
5550 * gdb.threads/schedlock.exp: Likewise.
5554 * gdb.cp/non-trivial-retval.cc: Add a test case.
5555 * gdb.cp/non-trivial-retval.exp: Add a test.
5559 * gdb.python/py-objfile-script-gdb.py.in: Rename it to ...
5560 * gdb.python/py-objfile-script-gdb.py: New file.
5561 * gdb.python/py-objfile-script.exp: Update reference to
5562 py-objfile-script-gdb.py.in. Use gdb_remote_donwload instead
5563 of remote_download. Remove the dest file.
5567 * gdb.base/checkpoint.exp: Don't remove file copied on host.
5568 * gdb.base/step-line.exp: Likewise.
5569 * gdb.dwarf2/dw2-anonymous-func.exp: Likewise.
5570 * gdb.dwarf2/dw2-basic.exp: Likewise.
5571 * gdb.dwarf2/dw2-compressed.exp: Likewise.
5572 * gdb.dwarf2/dw2-filename.exp: Likewise.
5573 * gdb.dwarf2/dw2-intercu.exp: Likewise.
5574 * gdb.dwarf2/dw2-intermix.exp: Likewise.
5575 * gdb.dwarf2/dw2-producer.exp: Likewise.
5576 * gdb.dwarf2/mac-fileno.exp: Likewise.
5577 * gdb.python/py-frame-args.exp: Likewise.
5578 * gdb.python/py-framefilter.exp: Likewise.
5579 * gdb.python/py-mi.exp: Likewise.
5580 * gdb.python/py-objfile-script.exp: Likewise
5581 * gdb.python/py-pp-integral.exp: Likewise.
5582 * gdb.python/py-pp-re-notag.exp: Likewise.
5583 * gdb.python/py-prettyprint.exp: Likewise.
5584 * gdb.python/py-section-script.exp: Likewise.
5585 * gdb.python/py-typeprint.exp: Likewise.
5586 * gdb.python/py-xmethods.exp: Likewise.
5587 * gdb.stabs/weird.exp: Likewise.
5588 * gdb.xml/tdesc-regs.exp: Likewise.
5592 * gdb.dwarf2/dw2-dir-file-name.exp (addr_len): New.
5593 (out_cu): Use addr_len for the size of addresses.
5594 (out_line): Likewise. Size DW_LNE_set_address instruction
5595 according to addr_len.
5596 * gdb.dwarf2/dw2-dir-file-name.c (START_INSNS): New.
5597 (FUNC): Add START_INSNS to definition.
5601 * gdb.base/argv0-symlink.exp: Check argv[0] value if
5602 gdb_has_argv0 return true.
5603 * gdb.guile/scm-value.exp (test_value_in_inferior): Don't
5604 check [target_info exists noargs], check [gdb_has_argv0]
5606 * gdb.python/py-value.exp (test_value_in_inferior): Likewise.
5607 * lib/gdb.exp (gdb_has_argv0, gdb_has_argv0_1): New
5612 * gdb.python/py-events.exp: Update expected output for clear_objfiles
5614 * gdb.python/py-events.py: Add clear_objfiles event.
5618 * gdb.python/py-objfile.exp: Test progspace attribute.
5622 * gdb.guile/scm-breakpoint.exp: Do not assume any
5623 directory separators when matching source file paths.
5624 * gdb.python/py-breakpoint.exp: Likewise.
5625 * gdb.reverse/break-precsave.exp: Likewise.
5626 * gdb.reverse/break-reverse.exp: Likewise.
5627 * gdb.reverse/consecutive-precsave.exp: Likewise.
5628 * gdb.reverse/finish-precsave.exp: Likewise.
5629 * gdb.reverse/finish-reverse-bkpt.exp: Likewise.
5630 * gdb.reverse/finish-reverse.exp: Likewise.
5631 * gdb.reverse/i386-precsave.exp: Likewise.
5632 * gdb.reverse/i387-env-reverse.exp: Likewise.
5633 * gdb.reverse/i387-stack-reverse.exp: Likewise.
5634 * gdb.reverse/machinestate-precsave.exp: Likewise.
5635 * gdb.reverse/machinestate.exp: Likewise.
5636 * gdb.reverse/sigall-precsave.exp: Likewise.
5637 * gdb.reverse/solib-precsave.exp: Likewise.
5638 * gdb.reverse/step-precsave.exp: Likewise.
5639 * gdb.reverse/until-precsave.exp: Likewise.
5640 * gdb.reverse/watch-precsave.exp: Likewise.
5641 * gdb.reverse/watch-reverse.exp: Likewise.
5645 * lib/gdb.exp (gdb_skip_xml_test): Copy trivial.xml to host.
5646 * gdb.xml/tdesc-regs.exp: Copy single-reg.xml to host.
5651 * gdb.base/bg-execution-repeat.c: New file.
5652 * gdb.base/bg-execution-repeat.exp: New file.
5657 * gdb.base/continue-all-already-running.c: New file.
5658 * gdb.base/continue-all-already-running.exp: New file.
5663 * gdb.base/annota-input-while-running.c: New file.
5664 * gdb.base/annota-input-while-running.exp: New file.
5668 * gdb.base/callfuncs.exp: emove references to osf.
5669 * gdb.base/sigall.exp: Likewise.
5670 * gdb.gdb/selftest.exp: Likewise.
5671 * gdb.hp/gdb.base-hp/callfwmall.exp: Likewise.
5672 * gdb.mi/non-stop.c: Likewise.
5673 * gdb.mi/pthreads.c: Likewise.
5674 * gdb.reverse/sigall-precsave.exp: Likewise.
5675 * gdb.reverse/sigall-reverse.exp: Likewise.
5676 * gdb.threads/pthreads.c: Likewise.
5677 * gdb.threads/pthreads.exp: Likewise.
5681 * gdb.base/commands.exp (gdbvar_complex_if_while_test): Don't
5682 check 'target_info exists noargs'.
5683 (test_command_prompt_position): Likewise.
5684 (progvar_simple_if_test): Don't check 'target_info exists noargs'.
5686 (progvar_simple_while_test): Likewise.
5687 (progvar_complex_if_while_test): Likewise.
5688 (if_while_breakpoint_command_test): Likewise.
5689 (infrun_breakpoint_command_test): Likewise.
5690 (breakpoint_command_test): Likewise.
5691 (watchpoint_command_test): Likewise.
5692 (bp_deleted_in_command_test): Likewise.
5693 (temporary_breakpoint_commands): Likewise.
5697 * gdb.base/remotetimeout.exp: Remove noargs checking.
5702 * gdb.base/breakpoint-in-ro-region.c (main): Add more instructions.
5703 * gdb.base/breakpoint-in-ro-region.exp
5704 (probe_target_hardware_step): New procedure.
5705 (top level): Probe hardware stepping and hardware breakpoint
5706 support. Test stepping through a read-only region, with both
5707 "breakpoint auto-hw" on and off and both "always-inserted" on and
5712 * gdb.dlang/demangle.exp: Update for demangling changes.
5716 * gdb.cp/non-trivial-retval.cc: Add new test cases.
5717 * gdb.cp/non-trivial-retval.exp: Add new tests.
5723 * gdb.cp/non-trivial-retval.cc: New file.
5724 * gdb.cp/non-trivial-retval.exp: New file.
5728 * gdb.python/py-parameter.exp: Don't match $srcdir/$subdir on
5733 * gdb.python/py-symbol.exp: Match file base name if host is
5734 remote, otherwise match file name with dir name.
5735 * gdb.python/py-symtab.exp: Likewise.
5736 * gdb.python/python.exp: Likewise.
5740 * gdb.python/py-symbol.exp: Remove trailing ".*" in the
5742 * gdb.python/py-symtab.exp: Likewise.
5743 * gdb.python/python.exp: Remove trailing ".*". Fix typo
5748 * gdb.ada/addr_arith: New testcase.
5752 * gdb.dwarf2/dw2-case-insensitive-debug.S: Handle 64-bit pointers.
5753 * gdb.dwarf2/dw2-case-insensitive.exp: Update accordingly.
5754 * gdb.dwarf2/dw2-skip-prologue.S: Handle 64-bit pointers.
5755 * gdb.dwarf2/dw2-skip-prologue.exp: Update accordingly.
5759 * gdb.arch/stap-eval-lang-ada.S: Likewise.
5760 * gdb.arch/stap-eval-lang-ada.c: Likewise.
5761 * gdb.arch/stap-eval-lang-ada.exp: New file.
5765 * gdb.mi/mi-var-child.c (nothing1): New function.
5766 (nothing2): New function.
5767 (do_children_tests): Set function pointers by nothing1 and
5769 * gdb.mi/mi-var-child.exp: Step over new added statements.
5770 Update test to match the new output.
5771 * gdb.mi/var-cmd.c (nothing1): New function.
5772 (nothing2): New function.
5773 (do_children_tests): Set function pointers by nothing1 and
5775 * gdb.mi/mi-var-display.exp: Update test to match output.
5776 Step to the line specified by $line_dct_nothing.
5777 Increase the number of lines to step.
5781 * gdb.mi/mi-var-child.exp: Use mi_varobj_update to simplify
5783 * gdb.mi/mi2-var-child.exp: Likewise.
5787 * gdb.python/py-objfile.exp: Change name of file name test.
5791 * gdb.dwarf2/dw2-op-out-param.S: Make DW_FORM_ref4 values be the offset
5792 from the start of the CU.
5797 Fix "save breakpoints" for "catch" command.
5798 * gdb.base/catch-signal.exp: Add gdb_breakpoint "main".
5799 Remove -nonewline. Match also the added "main" line.
5803 Fix "save breakpoints" for "disable $bpnum" command.
5804 * gdb.base/save-bp.c (main): Add label.
5805 * gdb.base/save-bp.exp: Add 8th disabled breakpoint. Match it.
5809 * gdb.base/save-bp.exp (info break): Use gdb_test_sequence.
5813 * gdb.server/server-kill.exp: Execute command
5814 "set remote trace-status-packet on" before "tstatus".
5818 * gdb.server/server-kill.c: Include sys/types.h and unistd.h.
5819 (main): Call getppid.
5820 * gdb.server/server-kill.exp: Set breakpoint on line "i = 0;"
5821 and continue to it. Read variable "server_pid".
5825 * gdb.server/server-kill.exp: Remove "delete_breakpoints".
5829 * gdb.threads/thread-find.exp: Don't execute command
5831 * gdb.threads/attach-into-signal.exp (corefunc): Likewise.
5832 * gdb.threads/linux-dp.exp: Don't check the condition
5833 $threads_created equals to zero.
5837 * gdb.base/bigcore.exp: Remove references to IRIX.
5838 * gdb.base/funcargs.exp: Likewise.
5839 * gdb.base/interrupt.exp: Likewise.
5840 * gdb.base/mips_pro.exp: Likewise.
5841 * gdb.base/nodebug.exp: Likewise.
5842 * gdb.base/setvar.exp: Likewise.
5843 * lib/gdb.exp (gdb_compile_shlib): Remove mips-sgi-irix* case.
5849 * gdb.base/vdso-warning.c: New file.
5850 * gdb.base/vdso-warning.exp: New file.
5854 * gdb.base/structs.c (main): Don't run forever.
5858 * gdb.threads/manythreads.exp (interrupt_and_wait): New procedure.
5859 (top level) <stop threads 1, stop threads 2>: Use it.
5863 * gdb.threads/break-while-running.exp (test): Add new
5864 'update_thread_list' argument. Skip "info threads" if false.
5865 (top level): Add new 'update_thread_list' axis.
5869 PR breakpoints/17431
5870 * gdb.base/execl-update-breakpoints.c: New file.
5871 * gdb.base/execl-update-breakpoints.exp: New file.
5875 * gdb.base/breakpoint-in-ro-region.c: New file.
5876 * gdb.base/breakpoint-in-ro-region.exp: New file.
5880 * gdb.mi/mi-exit-code.exp: New file.
5881 * gdb.mi/mi-exit-code.c: New file.
5885 * lib/prelink-support.exp (build_executable_own_libs): Error if
5886 the target isn't native.
5890 * gdb.threads/dlopen-libpthread.exp: Skip it if isnative is
5895 * gdb.threads/break-while-running.exp: New file.
5896 * gdb.threads/break-while-running.c: New file.
5900 * gdb.dwarf2/dw2-var-zero-addr.exp: Move test into new proc test.
5901 Invoke test. Restart GDB with --readnow and invoke test again.
5905 * gdb.base/break-on-linker-gcd-function.exp: Move test into new
5906 proc set_breakpoint_on_gcd_function. Invoke
5907 set_breakpoint_on_gcd_function. Restart GDB with --readnow and
5908 invoke set_breakpoint_on_gcd_function again.
5912 * gdb.dwarf2/symtab-producer.exp: New file.
5916 * gdb.base/global-var-nested-by-dso-solib1.c: New file.
5917 * gdb.base/global-var-nested-by-dso-solib2.c: Likewise.
5918 * gdb.base/global-var-nested-by-dso.c: Likewise.
5919 * gdb.base/global-var-nested-by-dso.exp: Likewise.
5924 * gdb.base/watch-bitfields.exp: Pass string other than test file
5925 name to prepare_for_testing.
5926 (watch): New procedure.
5927 (expect_watchpoint): Use with_test_prefix.
5928 (top level): Factor out tests to ...
5929 (test_watch_location, test_regular_watch): ... these new
5930 procedures, and use with_test_prefix and gdb_continue_to_end.
5934 PR breakpoints/12526
5935 * gdb.base/watch-bitfields.exp: New file.
5936 * gdb.base/watch-bitfields.c: New file.
5940 * gdb.base/watchpoint-stops-at-right-insn.exp (test): Compare
5941 software and hardware addresses, not software address against
5946 * gdb.base/watchpoint-stops-at-right-insn.c: New file.
5947 * gdb.base/watchpoint-stops-at-right-insn.exp: New file.
5951 * config/vx.exp, config/vxworks.exp, config/vxworks29k.exp: Delete
5953 * gdb.base/a2-run.exp: Remove all code guarded by istarget
5954 "*-*-vxworks*" throughout.
5955 * gdb.base/break.exp: Likewise.
5956 * gdb.base/default.exp: Likewise.
5957 * gdb.base/scope.exp: Likewise.
5958 * gdb.base/sepdebug.exp: Likewise.
5959 * gdb.base/break.c: Remove all code guarded by #ifdef vxworks
5961 * gdb.base/run.c: Likewise.
5962 * gdb.base/sepdebug.c: Likewise.
5963 * gdb.hp/gdb.aCC/run.c: Likewise.
5964 * gdb.reverse/until-reverse.c: Likewise.
5965 * lib/gdb.exp (gdb_compile): Remove is_vxworks branch.
5969 * boards/local-remote-host-native.exp: New file.
5973 * gdb.threads/queue-signal.c (thread_count): New variable.
5974 (thread_count_mutex, thread_count_condvar): New variables.
5975 (incr_thread_count, wait_all_threads_running): New functions.
5976 (main): Wait for all threads to be in their thread functions.
5980 * gdb.threads/queue-signal.c: New file.
5981 * gdb.threads/queue-signal.exp: New file.
5985 * lib/gdb.exp (gdb_prompt): Add comment and change initial value to
5986 be consistent with what default_gdb_init uses.
5987 (with_gdb_prompt): Change form of PROMPT argument from a regexp to
5988 the plain text of the prompt. Add some logging printfs.
5989 * gdb.perf/disassemble.exp: Update call to with_gdb_prompt.
5993 * gdb.arch/gdb1558.exp: Replace uses of gdb_expect after
5994 gdb_run_cmd with gdb_test_multiple or gdb_test throughout.
5995 * gdb.arch/i386-size-overlap.exp: Likewise.
5996 * gdb.arch/i386-size.exp: Likewise.
5997 * gdb.arch/i386-unwind.exp: Likewise.
5998 * gdb.base/a2-run.exp: Likewise.
5999 * gdb.base/break.exp: Likewise.
6000 * gdb.base/charset.exp: Likewise.
6001 * gdb.base/chng-syms.exp: Likewise.
6002 * gdb.base/commands.exp: Likewise.
6003 * gdb.base/dbx.exp: Likewise.
6004 * gdb.base/find.exp: Likewise.
6005 * gdb.base/funcargs.exp: Likewise.
6006 * gdb.base/jit-simple.exp: Likewise.
6007 * gdb.base/reread.exp: Likewise.
6008 * gdb.base/sepdebug.exp: Likewise.
6009 * gdb.base/step-bt.exp: Likewise.
6010 * gdb.cp/mb-inline.exp: Likewise.
6011 * gdb.cp/mb-templates.exp: Likewise.
6012 * gdb.objc/basicclass.exp: Likewise.
6013 * gdb.threads/killed.exp: Likewise.
6018 * gdb.arch/powerpc-stackless.S: New file.
6019 * gdb.arch/powerpc-stackless.exp: New file.
6023 * gdb.base/attach.c: Include unistd.h.
6024 (main): Call alarm. Add label postloop.
6025 * gdb.base/attach.exp (do_attach_tests): Use gdb_get_line_number,
6026 gdb_breakpoint, gdb_continue_to_breakpoint.
6027 (test_command_line_attach_run): Kill ${testpid} in one exit path.
6032 * lib/gdb.exp (gdb_spawn_with_cmdline_opts): New procedure.
6033 * gdb.base/attach.exp (test_command_line_attach_run): New
6035 (top level): Call it.
6039 * lib/gdb.exp (spawn_wait_for_attach): New procedure.
6040 * gdb.base/attach.exp (do_attach_tests, do_call_attach_tests)
6041 (do_command_attach_tests): Use spawn_wait_for_attach.
6042 * gdb.base/solib-overlap.exp: Likewise.
6043 * gdb.multi/multi-attach.exp: Likewise.
6044 * gdb.python/py-prompt.exp: Likewise.
6045 * gdb.python/py-sync-interp.exp: Likewise.
6046 * gdb.server/ext-attach.exp: Likewise.
6050 * gdb.fortran/array-element.exp: Remove unexpected "continue"
6051 command in testcase. Simplify testcase.
6055 * gdb.dwarf2/dynarr-ptr.exp: Add a few ptype tests.
6059 * gdb.dwarf2/dynarr-ptr.exp: Add 'first, 'last and 'length tests.
6063 * gdb.dwarf2/dynarr-ptr.exp: Add subscripting tests.
6067 * gdb.dwarf2/dynarr-ptr.c: New file.
6068 * gdb.dwarf2/dynarr-ptr.exp: New file.
6072 * gdb.base/watchpoint-solib.exp: Increase the timeout by a factor
6073 of 30 rather than hardcoding 120 for a slow test case. Take the
6074 `gdb,timeout' target setting into account for this calculation.
6075 Don't extend the timeout for the test cases that don't need it.
6079 * gdb.reverse/sigall-reverse.exp: Increase the timeout by
6080 a factor of 2 for a slow test case. Take the `gdb,timeout'
6081 target setting into account for this calculation.
6082 * gdb.reverse/until-precsave.exp: Increase the timeout by
6083 a factor of 15 and 3 respectively rather than adding 120
6084 for a pair of slow test cases. Take the `gdb,timeout'
6085 target setting into account for this calculation.
6089 * lib/gdb.exp (gdb_test_multiple): Remove code to select the
6090 timeout, don't pass one down to gdb_expect.
6091 (gdb_expect): Rework timeout selection.
6095 * lib/gdbserver-support.exp (gdbserver_start): Throw an error
6096 exception on timeout.
6097 (gdbserver_run): Catch any `gdbserver_spawn' error exceptions.
6098 (gdbserver_start_extended): Catch any `gdbserver_start' error
6100 (gdbserver_start_multi, mi_gdbserver_start_multi): Likewise.
6101 * lib/mi-support.exp (mi_gdb_target_load): Catch any
6102 `gdbserver_gdb_load' error exceptions.
6106 * lib/gdbserver-support.exp (gdbserver_start): Set timeout to
6107 120 on waiting for the TCP socket to open.
6111 * gdb.base/default.exp (show_conv_list): Add _caller_is,
6112 _caller_matches, _any_caller_is, _any_caller_matches.
6116 * gdb.guile/scm-error.exp: Handle guile 2.2 backtrace output.
6120 * gdb.mi/mi-var-display.exp: Set print symbol off.
6125 * gdb.base/commands.exp: Add tests to verify user-defined
6126 commands with empty bodies.
6127 * gdb.python/py-cmd.exp: Test that we don't show user-defined
6128 python commands in `show user command`.
6129 * gdb.python/scm-cmd.exp: Test that we don't show user-defined
6130 scheme commands in `show user command`.
6135 * gdb.python/amd64-py-framefilter-invalidarg.S: New file.
6136 * gdb.python/py-framefilter-invalidarg-gdb.py.in: New file.
6137 * gdb.python/py-framefilter-invalidarg.exp: New file.
6138 * gdb.python/py-framefilter-invalidarg.py: New file.
6143 * gdb.python/py-caller-is.c: New file.
6144 * gdb.python/py-caller-is.exp: New file.
6149 * gdb.arch/amd64-stap-wrong-subexp.exp: New file.
6150 * gdb.arch/amd64-stap-wrong-subexp.S: Likewise.
6155 * gdb.fortran/print-formatted.exp: New file.
6156 * gdb.fortran/print-formatted.f90: Likewise.
6160 * gdb.python/py-frame.exp: Test Frame.read_register.
6165 * gdb.python/py-completion.exp: New file.
6166 * gdb.python/py-completion.py: Likewise.
6170 * gdb.arch/amd64-pseudo.c (main): Rewrite to better specify when
6171 eax,etc. are live with values set by gdb and thus the compiler can't
6173 * gdb.arch/i386-pseudo.c (main): Ditto.
6177 * lib/gdb.exp (gdb_compile_shlib): Add support for clang.
6181 * gdb.mi/basics.c (callee3, callee2, callee1): Specify result type.
6186 * gdb.threads/thread-execl.exp: #include <stdio.h>.
6190 * gdb.guile/scm-value.exp (test_lazy_strings): Set print
6192 * gdb.python/py-value.exp (test_lazy_strings): Likewise.
6197 * gdb.dwarf2/dw2-single-line-discriminators.S: New file.
6198 * gdb.dwarf2/dw2-single-line-discriminators.c: New file.
6199 * gdb.dwarf2/dw2-single-line-discriminators.exp: New file.
6203 * gdb.python/py-finish-breakpoint.exp: Copy .py file to host.
6204 * gdb.python/py-finish-breakpoint2.exp: Likewise.
6205 * gdb.python/python.exp: Likewise. Use .py file on the host
6206 instead of the build.
6210 * gdb.threads/gcore-stale-thread.c: New file.
6211 * gdb.threads/gcore-stale-thread.exp: New file.
6215 * gdb.base/gcore-buffer-overflow.exp: Remove "help gcore" test.
6216 * gdb.base/gcore-relro-pie.exp: Likewise.
6217 * gdb.base/gcore-relro.exp: Likewise.
6218 * gdb.base/gcore.exp: Likewise.
6219 * gdb.base/print-symbol-loading.exp: Likewise.
6220 * gdb.threads/gcore-thread.exp: Likewise.
6221 * lib/gdb.exp (gdb_gcore_cmd): Don't expect "Undefined command".
6226 * Makefile.in (EXTRA_RULES, CC): New variables, get from
6228 (EXPECT): Handle READ1 being set.
6229 (all): Depend on EXTRA_RULES.
6230 (check-read1, expect-read1, read1.so, read1): New rules.
6231 * README (Testsuite Parameters): Document the READ1 make variable.
6232 (Race detection): New section.
6233 * configure: Regenerate.
6234 * configure.ac: If build==host==target, and running under a
6235 GNU/glibc system, add read1 to the extra Makefile rules.
6236 (EXTRA_RULES): AC_SUBST it.
6237 * lib/read1.c: New file.
6241 * gdb.dwarf2/data-loc.exp: Add additional tests exercising
6242 the handling of variables declared as a typedef to an array
6243 which a DW_AT_data_location attribute.
6250 * gdb.dwarf2/dw2-op-out-param.exp: Remove kfail branches and use
6255 * gdb.base/watchpoint-hw-hit-once.c (main): Update comment.
6259 * gdb.base/watchpoint-hw-hit-once.exp: Set breakpoint on the
6264 * boards/fission.exp: Explicitly pass -ggnu-pubnames for clang.
6268 * gdb.dwarf2/data-loc.exp: Remove second DW_AT_upper bound
6269 attribute in array range.
6273 * gdb.dwarf2/data-loc.c, gdb.dwarf2/data-loc.exp: New files.
6278 * gdb.cp/pr17132.cc: New file.
6279 * gdb.cp/pr17132.exp: New file.
6283 * gdb.python/py-xmethods.py (A_getarrayind)
6284 (E_method_char_worker.__call__, E_method_int_worker.__call__):
6285 Use 'print' with function call syntax.
6286 (E_method_matcher.match): Fix tab vs space indentation mixup.
6290 * gdb.trace/tfile.exp: Return -1 if generate_tracefile returns
6295 * gdb.cp/casts.exp: Set print symbol off.
6296 * gdb.cp/class2.exp: Likewise.
6297 * gdb.cp/overload.exp: Likewise.
6298 * gdb.cp/templates.exp: Likewise.
6302 * gdb.base/print-symbol-loading.exp (test_load_core): Update.
6303 (test_load_shlib): Update.
6307 * gdb.base/display.exp: Invoke is_address_zero_readable.
6308 * gdb.guile/scm-value.exp (test_value_in_inferior): Likewise.
6309 * gdb.python/py-value.exp (test_value_in_inferior): Likewise.
6310 * gdb.base/hbreak-unmapped.exp: Return if
6311 is_address_zero_readable returns true.
6312 * gdb.base/signest.exp: Likewise.
6313 * gdb.base/signull.exp: Likewise.
6314 * gdb.base/sigbpt.exp: Likewise.
6315 * gdb.guile/scm-disasm.exp: Do the test if
6316 is_address_zero_readable returns false.
6317 * gdb.guile/scm-pretty-print.exp (run_lang_tests): Likewise.
6318 * gdb.python/py-arch.exp: Likewise.
6319 * gdb.python/py-prettyprint.exp (run_lang_tests): Likewise.
6320 * lib/gdb.exp (is_address_zero_readable): New proc.
6325 * gdb.mi/mi-var-display.exp: Make test messages unique.
6329 * gdb.base/sss-bp-on-user-bp-2.exp: Expect output from "set debug
6334 * gdb.base/sss-bp-on-user-bp-2.exp: Match "to_resume", not
6339 * gdb.base/vla-datatypes.c (vla_factory): Add new variable
6340 inner_vla_struct_object_size.
6341 * gdb.base/vla-datatypes.exp: Adjust last test, and mark it
6346 * gdb.threads/signal-command-handle-nopass.exp (test): Add
6352 * gdb.base/until-nodebug.exp: New.
6357 * gdb.guile/scm-parameter.exp: Add tests for trying to create
6358 previously existing parameter, and previously ambiguously spelled
6363 * gdb.base/varargs.exp: Remove KFAILs for ARM.
6369 * gdb.guile/types-module.exp: Add tests for wrong type arguments.
6373 * gdb.threads/signal-command-handle-nopass.c: New file.
6374 * gdb.threads/signal-command-handle-nopass.exp: New file.
6375 * gdb.threads/signal-command-multiple-signals-pending.c: New file.
6376 * gdb.threads/signal-command-multiple-signals-pending.exp: New file.
6377 * gdb.threads/signal-delivered-right-thread.c: New file.
6378 * gdb.threads/signal-delivered-right-thread.exp: New file.
6382 * gdb.base/double-prompt-target-event-error.exp
6383 (cancel_pagination_in_target_event): Remove '-notransfer <return>'
6385 (cancel_pagination_in_target_event): Rework double prompt
6387 * gdb.base/paginate-after-ctrl-c-running.exp
6388 (test_ctrlc_while_target_running_paginates): Remove '-notransfer
6390 * gdb.base/paginate-bg-execution.exp
6391 (test_bg_execution_pagination_return)
6392 (test_bg_execution_pagination_cancel): Remove '-notransfer
6394 * gdb.base/paginate-execution-startup.exp
6395 (test_fg_execution_pagination_return)
6396 (test_fg_execution_pagination_cancel): Remove '-notransfer
6398 * gdb.base/paginate-inferior-exit.exp
6399 (test_paginate_inferior_exited): Remove '-notransfer <return>'
6401 * lib/gdb-utils.exp (string_to_regexp): Move here from lib/gdb.exp.
6402 * lib/gdb.exp (pagination_prompt): Run text through
6404 (gdb_test_multiple): Match $pagination_prompt instead of
6406 (string_to_regexp): Move to lib/gdb-utils.exp.
6410 * gdb.arch/amd64-entry-value-paramref.S: New file.
6411 * gdb.arch/amd64-entry-value-paramref.cc: New file.
6412 * gdb.arch/amd64-entry-value-paramref.exp: New file.
6413 * gdb.arch/amd64-optimout-repeat.S: New file.
6414 * gdb.arch/amd64-optimout-repeat.c: New file.
6415 * gdb.arch/amd64-optimout-repeat.exp: New file.
6420 * gdb.base/statistics.exp: New file.
6425 * gdb.base/maint.exp: Update testing of per-command stats.
6429 * gdb.trace/tfile.c: Include unistd.h and stdint.h.
6430 (start_trace_file): Guard S_IRGRP and S_IROTH uses behind #ifdef.
6431 (tfile_write_64, tfile_write_16, tfile_write_8, tfile_write_addr)
6432 (tfile_write_buf): New functions.
6433 (add_memory_block): Rewrite using the above.
6434 (adjust_function_address): New function.
6435 (FUNCTION_ADDRESS): New macro.
6436 (write_basic_trace_file): Remove short_x local, and use
6437 tfile_write_16. Change type of func_addr local to unsigned long
6438 long. Use FUNCTION_ADDRESS instead of handling the Thumb bit
6439 here. Cast argument of add_memory_block to char pointer.
6440 (write_error_trace_file): Avoid alloca. Use FUNCTION_ADDRESS.
6441 (main): Remove parameters.
6442 * gdb.trace/tfile.exp: Remove nowarnings.
6446 * gdb.base/debug-expr.exp: Test string evaluation with
6447 "debug expression" on.
6451 * gdb.base/reread.exp: Use clean_restart.
6455 * gdb.arch/avr-flash-qualifer.c: New.
6456 * gdb.arch/avr-flash-qualifer.exp: New.
6460 * gdb.base/paginate-after-ctrl-c-running.c: New file.
6461 * gdb.base/paginate-after-ctrl-c-running.exp: New file.
6465 * gdb.base/double-prompt-target-event-error.c: New file.
6466 * gdb.base/double-prompt-target-event-error.exp: New file.
6471 * gdb.base/paginate-inferior-exit.c: New file.
6472 * gdb.base/paginate-inferior-exit.exp: New file.
6477 * gdb.base/paginate-bg-execution.c: New file.
6478 * gdb.base/paginate-bg-execution.exp: New file.
6483 * gdb.base/paginate-execution-startup.c: New file.
6484 * gdb.base/paginate-execution-startup.exp: New file.
6485 * lib/gdb.exp (pagination_prompt): New global.
6486 (default_gdb_spawn): New procedure, factored out from
6488 (default_gdb_start): Adjust to call default_gdb_spawn.
6489 (gdb_spawn): New procedure.
6493 * lib/gdb.exp (gdb_assert): New procedure.
6494 * gdb.trace/backtrace.exp (gdb_backtrace_tdp_4): Use it.
6498 * gdb.base/execution-termios.c: New file.
6499 * gdb.base/execution-termios.exp: New file.
6503 * gdb.cp/vla-cxx.cc: New file.
6504 * gdb.cp/vla-cxx.exp: New file.
6508 * gdb.reverse/rerun-prec.c: New file.
6509 * gdb.reverse/rerun-prec.exp: New file.
6514 * lib/gdb-utils.exp: New file.
6515 * lib/gdb.exp (gdb_run_cmd): Call gdb_init_commands, replacing
6516 inline `gdb_init_command' processing.
6517 (gdb_start_cmd): Likewise.
6518 * lib/mi-support.exp (mi_run_cmd): Likewise.
6519 * README: Document `gdb_init_command' and `gdb_init_commands'.
6523 Fix false FAIL running under a very long directory name.
6524 * gdb.base/argv0-symlink.exp: Add "set print repeats 10000"
6525 and "set print elements 10000". Twice.
6529 * gdb.base/exprs.exp: "set print symbol off".
6533 * gdb.threads/kill.c: New file.
6534 * gdb.threads/kill.exp: New file.
6538 * gdb.trace/tfile.c (write_basic_trace_file)
6539 [__thumb__||__thumb2__]: Clear the Thumb bit of the function
6540 address written to trace file.
6544 * gdb.base/attach-wait-input.exp: New file.
6545 * gdb.base/attach-wait-input.c: New file.
6549 * gdb.mi/var-cmd.c (do_nested_struct_union_tests): New function
6550 setting up test structures.
6551 (main): Call new test function.
6552 * gdb.mi/mi2-var-child.exp: Create additional breakpoint in new
6553 test function, continue into test function and walk test
6558 * gdb.trace/entry-values.c: Define labels 'foo_start' and
6559 'bar_start' at the beginning of functions 'foo' and 'bar'
6561 * gdb.trace/entry-values.exp: Use 'foo_start' and 'bar_start'
6562 instead of 'foo' and 'bar'.
6566 * gdb.btrace/segv.exp: New.
6567 * gdb.btrace/segv.c: New.
6571 * gdb.trace/entry-values.exp: Handle powerpc-specific branch
6576 * gdb.base/constvars.c (violent, violet, vips, virgen, vulgar,
6577 vulture, vilify, villar): New volatile array constants.
6578 (vindictive, vegetation): New const volatile array constants.
6579 * gdb.base/volatile.exp: Test volatile and const volatile array
6584 * gdb.base/watchpoint-reuse-slot.exp: Handle the case that the
6585 target lacks support for awatch, rwatch, or hbreak.
6589 * gdb.multi/dummy-frame-restore.exp: New.
6590 * gdb.multi/dummy-frame-restore.c: New.
6594 * gdb.btrace/gcore.exp: New.
6598 * gdb.base/watchpoint-reuse-slot.c: New file.
6599 * gdb.base/watchpoint-reuse-slot.exp: New file.
6603 * gdb.python/py-xmethods.exp: Use "progspace" instead of the
6604 progspace's filename in 'info', 'enable' and 'disable' command
6609 * gdb.arch/amd64-stap-special-operands.exp: Use is_lp64_target.
6610 * gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
6611 * gdb.dwarf2/dw2-error.exp: Use istarget and is_lp64_target.
6615 * gdb.arch/i386-avx.exp: Fix include file location.
6616 * gdb.arch/i386-sse.exp: Likewise.
6620 * gdb.dlang/expression.exp: New file.
6624 * gdb.threads/thread-execl.exp (do_test): New procedure, factored
6626 (top level): ... here. Iterate running tests under different
6627 scheduler-locking settings.
6631 * gdb.cp/nsalias.exp: Set type of low_pc and high_pc entries
6632 to DW_FORM_addr and use non-zero addresses.
6637 * gdb.python/py-xmethods.cc: Add global function call counters and
6638 increment them in their respective functions. Remove "cout"
6640 * gdb.python/py-xmethods.exp: Make tests check the global function
6641 call counters instead of depending on inferior IO.
6645 * gdb.base/foll-fork.exp (default_fork_parent_follow):
6647 (explicit_fork_parent_follow): Deleted procedure.
6648 (explicit_fork_child_follow): Deleted procedure.
6649 (test_follow_fork): New procedure.
6650 (do_fork_tests): Replace calls to deleted procedures with
6651 calls to test_follow_fork and reset GDB for subsequent
6656 * gdb.base/wchar.exp: Set $cent to \u00A2 if "host-charset" is
6661 * gdb.mi/mi-var-rtti.cc (type_update_when_use_rtti_test):
6662 Initialize ptr and S explicitly.
6663 (skip_type_update_when_not_use_rtti_test): Likewise.
6668 * gdb.mi/mi-var-cmd.exp: Add test for -var-update before
6669 the inferior is started.
6673 * gdb.base/break-main-file-remove-fail.c: New file.
6674 * gdb.base/break-main-file-remove-fail.exp: New file.
6675 * gdb.base/break-unload-file.exp: Use build_executable instead of
6676 prepare_for_testing.
6677 (test_break): New parameter "initial_load". Handle it.
6678 (top level): Add initial_load cmdline/file axis.
6682 * gdb.base/completion.exp: Don't use directory name in test.
6686 * gdb.base/sigall.c [Functions to send signals]: Reorder to
6687 separate the always-available ANSI-standard signals from the
6688 signals that require checking.
6690 * gdb.reverse/sigall-reverse.c [Functions to send signals]:
6698 * gdb.cp/var-tag.cc: New file.
6699 * gdb.cp/var-tag.exp: New file.
6700 * gdb.dwarf2/dw2-ada-ffffffff.exp: Set the language to C++.
6701 * gdb.dwarf2/dw2-anon-mptr.exp: Likewise.
6702 * gdb.dwarf2/dw2-double-set-die-type.exp: Likewise.
6703 * gdb.dwarf2/dw2-inheritance.exp: Likewise.
6707 * gdb.guile/scm-frame-args.c (foo): Tweak to work with gcc 4.6.3.
6711 * gdb.base/sss-bp-on-user-bp-2.exp: Look for target_resume(step)
6712 in target debug output instead of looking at RSP packets,
6713 disabling the test on any target that uses hardware stepping.
6718 * gdb.base/break-unload-file.exp: Fix typo.
6722 * gdb.base/jit.exp (one_jit_test): Restrict the pattern
6723 from "jit_function" to "^jit_function".
6727 * gdb.base/async.c (foo): Add one statement.
6728 * gdb.base/async.exp: Get the next instruction address and
6729 match the output of "nexti" by instruction address. Match
6730 the hex address in the output of "finish".
6734 * gdb.base/call-signals.c: Remove preprocessor conditionals
6735 for always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6736 SIGSEGV and SIGTERM.
6737 * gdb.base/sigall.c: Likewise.
6738 * gdb.base/unwindonsignal.c: Likewise.
6739 * gdb.reverse/sigall-reverse.c: Likewise.
6743 * gdb.base/hbreak-unmapped.exp: Read memory at address 0. If
6744 readable, skip the test.
6748 * gdb.threads/staticthreads.c (thread_function): Move the line
6749 setting breakpoint on forward.
6750 * gdb.threads/staticthreads.exp: Update comments.
6754 * gdb.guile/scm-value.exp (test_value_in_inferior): Add test
6755 "history-append! type error".
6759 * gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify): Fix
6760 erroneous dprintf expected input.
6764 * gdb.guile/scm-generics.exp: Delete.
6768 * gdb.guile/scm-breakpoint.exp: Update.
6769 Add tests for breakpoint registration.
6773 * gdb.base/vla-datatypes.exp: Add tests for VLA-in-structure and
6775 * gdb.base/vla-datatypes.c (vla_factory): Add vla_struct,
6776 inner_vla_struct, vla_union types. Initialize objects of those
6777 types and compute their sizes.
6782 * gdb.base/fileio.exp: Add test for shell not available as well as
6784 * gdb.base/fileio.c (test_system): Check for shell twice.
6788 * gdb.base/auto-connect-native-target.exp: Remove redundant
6789 space from the regexp pattern.
6793 * gdb.base/default.exp: Replace "child" with "native" in
6798 * gdb.python/py-xmethods.cc: New testcase to test xmethods.
6799 * gdb.python/py-xmethods.exp: New tests to test xmethods.
6800 * gdb.python/py-xmethods.py: Python script supporting the
6801 new testcase and tests.
6806 PR breakpoints/17000
6807 * gdb.base/sss-bp-on-user-bp.exp: Remove kfail.
6808 * gdb.base/sss-bp-on-user-bp-2.exp: Remove kfail.
6812 * gdb.base/subst.exp: Add tests to verify partial path matching
6817 * gdb.base/sss-bp-on-user-bp-2.exp: Skip if testing with a remote
6818 target that doesn't use software single-stepping.
6822 PR breakpoints/17000
6823 * gdb.base/sss-bp-on-user-bp-2.c: New file.
6824 * gdb.base/sss-bp-on-user-bp-2.exp: New file.
6828 * gdb.guile/scm-parameter.exp: New file.
6832 * gdb.guile/scm-cmd.c: New file.
6833 * gdb.guile/scm-cmd.exp: New file.
6837 * gdb.guile/scm-pretty-print.exp: Add tests for objfile and progspace
6838 pretty-printer lookup.
6839 * gdb.guile/scm-pretty-print.scm (pp_s-printer): New function.
6840 (make-pp_s-printer): Call it.
6841 (make-pretty-printer-from-dict): New function.
6842 (lookup-pretty-printer-maker-from-dict): New function.
6843 (*pretty-printer*): Simplify.
6844 (make-objfile-pp_s-printer): New function.
6845 (install-objfile-pretty-printers!): New function.
6846 (make-progspace-pp_s-printer): New function.
6847 (install-progspace-pretty-printers!): New function.
6848 * gdb.guile/scm-progspace.c: New file.
6849 * gdb.guile/scm-progspace.exp: New file.
6853 * gdb.base/dprintf-bp-same-addr.c: New file.
6854 * gdb.base/dprintf-bp-same-addr.exp: New file.
6858 * gdb.arch/powerpc-power.exp: Add power8 instructions to the testcase.
6859 * gdb.arch/powerpc-power.s: Likewise.
6863 * gdb.base/completion.exp: Remove code aimed at restoring TIMEOUT.
6867 * gdb.base/watchpoint.exp (test_watch_location): Check null
6868 pointer can be dereferenced. If not, do the test, otherwise
6873 * gdb.arch/amd64-invalid-stack-middle.exp: Update expected
6875 * gdb.arch/amd64-invalid-stack-top.exp: Likewise.
6879 * gdb.arch/amd64-invalid-stack-middle.S: New file.
6880 * gdb.arch/amd64-invalid-stack-middle.c: New file.
6881 * gdb.arch/amd64-invalid-stack-middle.exp: New file.
6882 * gdb.arch/amd64-invalid-stack-top.c: New file.
6883 * gdb.arch/amd64-invalid-stack-top.exp: New file.
6887 PR breakpoints/17000
6888 * gdb.base/sss-bp-on-user-bp.c: New file.
6889 * gdb.base/sss-bp-on-user-bp.exp: New file.
6893 * gdb.opt/inline-break.c: Fix clang compatibility by specifying
6894 gnu_inline semantics via attribute.
6895 * gdb.opt/inline-break.exp: Remove -std=c89 now that the test
6896 source explicitly specifies the required semantics.
6900 * gdb.reverse/sigall-reverse.exp: Fix a typo.
6905 * gdb.base/async-shell.exp: Don't enable target-async.
6906 * gdb.base/async.exp
6907 * gdb.base/corefile.exp (corefile_test_attach): Remove 'async'
6909 (top level): Don't test with "target-async".
6910 * gdb.base/dprintf-non-stop.exp: Don't enable target-async.
6911 * gdb.base/gdb-sigterm.exp: Don't test with "target-async".
6912 * gdb.base/inferior-died.exp: Don't enable target-async.
6913 * gdb.base/interrupt-noterm.exp: Likewise.
6914 * gdb.mi/mi-async.exp: Use "mi-async" instead of "target-async".
6915 * gdb.mi/mi-nonstop-exit.exp: Likewise.
6916 * gdb.mi/mi-nonstop.exp: Likewise.
6917 * gdb.mi/mi-ns-stale-regcache.exp: Likewise.
6918 * gdb.mi/mi-nsintrall.exp: Likewise.
6919 * gdb.mi/mi-nsmoribund.exp: Likewise.
6920 * gdb.mi/mi-nsthrexec.exp: Likewise.
6921 * gdb.mi/mi-watch-nonstop.exp: Likewise.
6922 * gdb.multi/watchpoint-multi.exp: Adjust comment.
6923 * gdb.python/py-evsignal.exp: Don't enable target-async.
6924 * gdb.python/py-evthreads.exp: Likewise.
6925 * gdb.python/py-prompt.exp: Likewise.
6926 * gdb.reverse/break-precsave.exp: Don't test with "target-async".
6927 * gdb.server/solib-list.exp: Don't enable target-async.
6928 * gdb.threads/thread-specific-bp.exp: Likewise.
6929 * lib/mi-support.exp: Adjust to use mi-async.
6934 * gdb.mi/mi-cli.exp: Always expect "end-stepping-range" stop
6935 reason, even in sync mode.
6941 * gdb.mi/mi-condbreak-call-thr-state-mt.c: New file.
6942 * gdb.mi/mi-condbreak-call-thr-state-st.c: New file.
6943 * gdb.mi/mi-condbreak-call-thr-state.c: New file.
6944 * gdb.mi/mi-condbreak-call-thr-state.exp: New file.
6948 * config/monitor.exp (gdb_target_monitor): Replace use of
6949 "set remotebaud" by "set serial baud".
6953 * gdb.guile/scm-breakpoint.exp:
6954 * gdb.guile/scm-gsmob.exp: Update to use plain old object
6955 properties instead of gdb-object-properties.
6959 * gdb.server/no-thread-db.exp: Specify source file name
6960 explicitly when setting a breakpoint.
6964 * gdb.btrace/vdso.c: New.
6965 * gdb.btrace/vdso.exp: New.
6969 * gdb.base/gcore.exp (capture_command_output): Move ...
6970 * lib/gdb.exp (capture_command_output): ... here.
6974 * gdb.btrace/data.exp: Test memory access during btrace replay.
6978 * lib/mi-support.exp (mi_run_cmd_full): Add comments.
6983 * gdb.mi/mi-cli.exp (line_callee4_next_step): New global.
6984 (top level): Test that output related to execution commands is
6985 sent to the console with CLI commands, but not with MI commands.
6986 Test that breakpoint events are always mirrored to the console.
6987 Also expect the new source line to be output after a "next" in
6988 async mode too. Make it a pass/fail test.
6989 * gdb.mi/mi-solib.exp: Test that the CLI solib event note is
6991 * lib/mi-support.exp (mi_gdb_expect_cli_output): New procedure.
6995 * gdb.base/list.exp (build_pattern, test_list): New procedures.
6996 Use them to test variations of "list" after reaching a breakpoint.
6997 * gdb.mi/mi-cli.exp (line_main_callme_2): New global.
6998 Test "list" with listsize 10 after reaching a breakpoint.
6999 * gdb.python/python.exp (decode_line current location line
7000 number): Adjust expected line number.
7004 * lib/mi-support.exp (mi_run_cmd_full): Revert to original
7005 behavior for $args, pass it directly to "run".
7009 * lib/gdb.exp (default_gdb_init): Bump `match_max' up from
7014 * boards/gdbserver-base.exp (GDBFLAGS): Set to "set
7015 auto-connect-native-target off".
7016 * gdb.base/auto-connect-native-target.c: New file.
7017 * gdb.base/auto-connect-native-target.exp: New file.
7021 * gdb.base/default.exp: Test "target native" instead of "target
7026 * gdb.cp/var-tag.exp (do_global_tests): Handle underlying type.
7030 Fix TLS access for -static -pthread.
7031 * gdb.threads/staticthreads.c <HAVE_TLS> (tlsvar): New.
7032 <HAVE_TLS> (thread_function, main): Initialize it.
7033 * gdb.threads/staticthreads.exp: Try gdb_compile_pthreads for $have_tls.
7035 <$have_tls != "">: Check TLSVAR.
7039 * gdb.base/dcache-line-read-error.c: New.
7040 * gdb.base/dcache-line-read-error.exp: New.
7044 * gdb.base/compare-sections.c: New file.
7045 * gdb.base/compare-sections.exp: New file.
7049 * gdb.base/break-idempotent.c: New file.
7050 * gdb.base/break-idempotent.exp: New file.
7054 * gdb.btrace/nohist.exp: New.
7058 * lib/gdb.exp (gdb_init): Set timeout if test file is under
7059 gdb.reverse directory and gdb_reverse_timeout exists in board
7061 * README: Document gdb_reverse_timeout.
7065 * lib/gdb.exp (default_gdb_init): Rename argument 'args' by
7066 'test_file_name'. Treat args as a string instead of a list.
7067 (gdb_init): Rename argument 'args' by 'test_file_name'.
7071 * gdb.arch/powerpc-power.exp: New file.
7072 * gdb.arch/powerpc-power.s: New file.
7076 * gdb.base/Makefile.in (EXECUTABLES): Add completion.
7077 * gdb.base/completion.exp: Check that all expected files exist
7078 before doing file completion.
7082 * gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir):
7084 (do_syscall_tests_without_xml): Update.
7088 * lib/mi-support.exp (mi_expect_stop): On timeout, say "timeout"
7089 instead of "unknown output after running".
7093 * gdb.dwarf2/dw2-filename.exp: Copy file1.txt to host. Remove
7094 file1.txt from host at the end.
7095 * gdb.dwarf2/dw2-anonymous-func.exp: Likewise.
7099 * gdb.dwarf2/fission-reread.S: Remove directory from .dwo file path.
7100 * gdb.dwarf2/fission-reread.exp: Set debug-file-directory before
7101 loading file. Add test for TU lookup.
7105 * lib/mi-support.exp (mi_run_cmd_full): Set arguments by
7106 calling "-exec-arguments" or "set args" before running the
7111 * lib/mi-support.exp (mi_expect_stop): Expect message for
7112 inferiors that exit with non-zero exit code.
7116 * gdb.mi/mi-file.exp (test_file_list_exec_source_file): Don't
7117 match absolute path on remote host.
7118 (test_file_list_exec_source_files): Remove "/" from the
7123 * boards/local-remote-host-notty.exp (${board}_file): New
7129 * gdb.arch/aarch64-atomic-inst.c: New file.
7130 * gdb.arch/aarch64-atomic-inst.exp: New file.
7134 * gdb.dwarf2/dwzbuildid.exp: Match output "No symbol "the_int"
7135 in current context" too.
7139 * gdb.linespec/ls-dollar.exp: Add test for linespec
7140 file:convenience_variable.
7144 * gdb.trace/unavailable.exp (gdb_collect_args_test): Save
7145 traceframes into tfile and ctf trace files. Read data from
7146 trace file and test collected data.
7147 (gdb_collect_locals_test): Likewise.
7148 (gdb_unavailable_registers_test): Likewise.
7149 (gdb_unavailable_floats): Likewise.
7150 (gdb_collect_globals_test): Likewise.
7151 (top-level): Append "ctf" to trace_file_targets if GDB
7156 * gdb.trace/unavailable.exp (gdb_collect_args_test): Move some
7158 (gdb_collect_args_test_1): ... it. New proc.
7159 (gdb_collect_locals_test): Move some code to ...
7160 (gdb_collect_locals_test_1): ... it. New proc.
7161 (gdb_unavailable_registers_test): Move some code to ...
7162 (gdb_unavailable_registers_test_1): ... it. New proc.
7163 (gdb_unavailable_floats): Move some code to ...
7164 (gdb_unavailable_floats_1): ... it. New proc.
7168 * gdb.arch/amd64-stap-optional-prefix.S (main): Add several
7169 probes to test for bitness recognition.
7170 * gdb.arch/amd64-stap-optional-prefix.exp
7171 (test_probe_value_without_reg): New procedure.
7172 Add code to test for different kinds of bitness.
7176 PR breakpoints/16889
7177 * gdb.arch/amd64-stap-optional-prefix.S: New file.
7178 * gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
7182 * lib/gdb.exp (gdb_load): Extend comment. Skip calling
7183 gdb_file_cmd if no file is specified.
7184 * boards/native-extended-gdbserver.exp (gdb_load): Use the
7185 last_loaded_file to set the remote exec-file.
7189 * boards/local-remote-host.exp: New file.
7193 * boards/local-remote-host.exp: Rename to ...
7194 * boards/local-remote-host-notty.exp: ... this.
7198 * gdb.ada/dyn_arrayidx: New testcase.
7202 * gdb.dwarf2/dwz.exp: Compile main.c to object. Restart GDB
7203 and compute the length of function main. Save it in
7205 (Dwarf::assemble): Use $main_length instead of hard-coded 10.
7206 (top-level): Use gdb_compile to compile objects into
7207 executable and restart GDB. Remove invocation to
7208 prepare_for_testing.
7214 * gdb.multi/multi-attach.c: New file.
7215 * gdb.multi/multi-attach.exp: New file.
7219 * gdb.base/cond-eval-mode.exp (warning): Move trailing \r\n to
7221 (top level): Test that "set remote conditional-breakpoints-packet
7222 off" works as intended.
7223 * gdb.base/dprintf.exp: Test that "set remote
7224 breakpoint-commands-packet off" works as intended.
7225 * gdb.trace/change-loc.exp (tracepoint_install_in_trace_disabled):
7227 (top level): Call it.
7228 * gdb.trace/ftrace.exp (test_fast_tracepoints): Test that "set
7229 remote fast-tracepoints-packet off" works as intended.
7230 * gdb.trace/qtro.exp (gdb_is_target_remote): Moved ...
7231 * lib/gdb.exp (gdb_is_target_remote): ... here.
7235 * gdb.base/catch-syscall.c: Make unreferenced statics non-static to
7236 ensure clang would not discard them.
7237 * gdb.base/gdbvars.c: Ditto.
7238 * gdb.base/memattr.c: Ditto.
7239 * gdb.base/whatis.c: Ditto.
7240 * gdb.python/py-prettyprint.c: Ditto.
7241 * gdb.trace/actions.c: Ditto.
7242 * gdb.cp/ptype-cv-cp.cc: Mark unused global const int as used to
7243 ensure clang would not discard it.
7247 * gdb.stabs/gdb11479.c (tag_dummy_enum): introduce a variable to cause
7248 clang to emit the full definition of type required by the test
7249 * gdb.stabs/gdb11479.exp (do_test): correct a typo in a test message
7253 * gdb.cp/pr10728-x.cc (main::x): Return by value instead of pointer to
7254 coax Clang into emitting the definition of the type.
7255 * gdb.cp/pr10728-x.h (y): Ditto.
7256 * gdb.cp/pr10728-y.cc (y): Ditto.
7260 * gdb.base/label.exp: XFAIL label related tests under Clang.
7261 * gdb.cp/cplabel.exp: Ditto.
7262 * gdb.linespec/ls-errs.exp: Refactor tests to execute directly and XFAIL
7263 under Clang those using labels.
7267 * gdb.dwarf2/dwz.exp (Dwarf::assemble): Remove unused
7269 * gdb.dwarf2/dwzbuildid.exp (Dwarf::assemble): Remove
7270 partial_label and double_label.
7274 * gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641.
7278 * gdb.cp/cpexprs.cc: Move braces to the same line as the start
7279 of the function to work across GCC and Clang.
7280 * gdb.cp/cpexprs.exp: Account for GCC/Clang difference in vtable
7281 pointer types (const void ** const V void **).
7286 * Makefile.in (EXECUTABLES): Added i386-avx512.
7287 * gdb.arch/i386-avx512.c: New file.
7288 * gdb.arch/i386-avx512.exp: Likewise.
7292 * lib/mi-support.exp (mi_list_breakpoints): Delete.
7293 (mi_make_breakpoint_table): New procedure.
7294 (mi_create_breakpoint): Use mi_make_breakpoint
7295 and return the result.
7296 (mi_make_breakpoint): New procedure.
7297 (mi_build_kv_pairs): New procedure.
7299 * gdb.mi/mi-break.exp: Remove unused globals,
7300 update mi_create_breakpoint usage, and use mi_make_breakpoint_table.
7301 All callers updated.
7302 * gdb.mi/mi-dprintf.exp: Use variable to track command
7304 Update all callers of mi_create_breakpoint and use
7305 mi_make_breakpoint_table.
7306 Remove any unused global variables.
7307 * gdb.mi/mi-nonstop.exp: Likewise.
7308 * gdb.mi/mi-nsintrall.exp: Likewise.
7309 * gdb.mi/mi-nsmoribund.exp: Likewise.
7310 * gdb.mi/mi-nsthrexec.exp: Likewise.
7311 * gdb.mi/mi-reverse.exp: Likewise.
7312 * gdb.mi/mi-simplerun.exp: Likewise.
7313 * gdb.mi/mi-stepn.exp: Likewise.
7314 * gdb.mi/mi-syn-frame.exp: Likewise.
7315 * gdb.mi/mi-until.exp: Likewise.
7316 * gdb.mi/mi-var-cp.exp: Likewise.
7317 * gdb.mi/mi-var-display.exp: Likewise.
7318 * gdb.mi/mi2-amd64-entry-value.exp: Likewise.
7319 * gdb.mi/mi2-var-child.exp: Likewise.
7320 * gdb.mi/mi-vla-c99.exp: Likewise.
7321 * lib/mi-support.exp: Likewise.
7324 * lib/gdb.exp (parse_args): New procedure.
7328 * gdb.base/break-unload-file.c: New file.
7329 * gdb.base/break-unload-file.exp: New file.
7330 * gdb.base/sym-file-lib.c (baz): New function.
7331 * gdb.base/sym-file-loader.c (struct segment) <mapped_size>: New
7333 (load): Store the segment's mapped size.
7334 (unload): New function.
7335 (unload_shlib): New function.
7336 * gdb.base/sym-file-loader.h (unload_shlib): New declaration.
7337 * gdb.base/sym-file-main.c (main): Unload, and reload the library,
7338 set a breakpoint at baz, and call it.
7339 * gdb.base/sym-file.exp: New tests for stale breakpoint
7344 * gdb.base/hbreak-in-shr-unsupported-shr.c: New file.
7345 * gdb.base/hbreak-in-shr-unsupported.c: New file.
7346 * gdb.base/hbreak-in-shr-unsupported.exp: New file.
7347 * gdb.base/hbreak-unmapped.c: New file.
7348 * gdb.base/hbreak-unmapped.exp: New file.
7349 * gdb.trace/qtro.exp (gdb_is_target_remote): Move ...
7350 * lib/gdb.exp (gdb_is_target_remote): ... here.
7354 * gdb.base/consecutive-step-over.c: New file.
7355 * gdb.base/consecutive-step-over.exp: New file.
7359 * lib/gdb.exp (gdb_continue_to_breakpoint): Use gdb_test_multiple
7360 instead of send_gdb/gdb_expect.
7364 * lib/trace-support.exp (generate_tracefile): New procedure.
7365 * gdb.trace/tfile.exp: Skip the test if generate_tracefile
7367 * gdb.trace/mi-traceframe-changed.exp: Invoke test_tfind_tfile
7368 if generate_tracefile returns 1.
7374 * gdb.opt/inline-bt.exp: Test backtracing from an inline function
7375 with a backtrace limit.
7376 * gdb.python/py-frame-inline.exp: Test running to an inline
7377 function with a backtrace limit, and printing the newest frame.
7378 * gdb.python/py-frame-inline.c (main): Call f.
7382 * gdb.java/jnpe.exp: Drop srcdir from untested path.
7386 * lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc):
7387 Drop prefix from unsupported source file path.
7391 * lib/gdb.exp (with_target_charset): New proc.
7392 * gdb.base/printcmds.exp (test_print_all_chars): Wrap tests with
7393 with_target_charset.
7394 (test_print_strings): Likewise.
7395 (test_repeat_bytes): Likewise.
7396 * gdb.base/setvar.exp: Set target-charset to ASCII temporarily
7402 * gdb.dwarf2/corrupt.c: New file.
7403 * gdb.dwarf2/corrupt.exp: New file.
7408 * gdb.cp/namelessclass.cc: New file.
7409 * gdb.cp/namelessclass.exp: New file.
7410 * gdb.cp/namelessclass.S: New file.
7414 * lib/gdbserver-support.exp (gdbserver_default_get_remote_address):
7416 (gdbserver_default_get_comm_port): New function.
7417 (gdbserver_start): Check if board file provided
7418 "gdbserver,get_comm_port" and use it if so.
7419 * boards/native-stdio-gdbserver.exp (sockethost): Set to "".
7420 (gdb,socketport): Set to "stdio".
7421 (gdbserver,get_comm_port): Set to ${board}_get_comm_port.
7422 (stdio_gdbserver_template): Delete.
7423 (${board}_get_remote_address): Update.
7424 (${board}_build_remote_cmd): Delete.
7425 (${board}_get_comm_port): New function.
7426 (${board}_spawn): Update.
7427 * boards/remote-stdio-gdbserver.exp (${board}_build_remote_cmd):
7429 (${board}_get_remote_address): Update.
7430 (${board}_get_comm_port): New function.
7434 * gdb.base/memattr.exp: Improve regexps to handle memory regions
7435 appearing in any order.
7439 * gdb.gdb/selftest.exp (do_steps_and_nexts): Don't reference
7440 uninitialized value of "description".
7444 * gdb.mi/mi-simplerun.exp (test_breakpoints_creation_and_listing):
7445 Remove unused globals.
7446 (test_running_the_program): Likewise.
7447 (test_controlled_execution): Likewise.
7448 (test_controlling_breakpoints): Likewise.
7449 (test_program_termination): Likewise.
7453 * gdb.mi/mi-break.exp (test_tbreak_creation_and_listing): Remove
7455 (test_rbreak_creation_and_listing): Likewise.
7456 (test_ignore_count): Likewise.
7457 (test_error): Likewise.
7461 * gdb.base/sym-file-loader.h: Move inclusion of <inttypes.h>,
7462 <ansidecl.h>, <elf/common.h> and <elf/external.h> to
7464 (Elf_External_Phdr, Elf_External_Ehdr, Elf_External_Shdr)
7465 (Elf_External_Sym, Elf_Addr, GET, GETADDR, struct segment): Move
7466 to sym-file-loader.c.
7467 (struct library): Forward declare.
7468 (load_shlib, lookup_function): Change prototypes.
7469 (find_shstrtab, find_strtab, find_shdr, find_symtab)
7470 (translate_offset): Remove declarations.
7471 (get_text_addr): New declaration.
7472 * gdb.base/sym-file-loader.c: Move inclusion of <inttypes.h>,
7473 <ansidecl.h>, <elf/common.h> and <elf/external.h> here from
7475 (Elf_External_Phdr, Elf_External_Ehdr, Elf_External_Shdr)
7476 (Elf_External_Sym, Elf_Addr, GET, GETADDR, struct segment): Move
7477 here from sym-file-loader.h.
7478 (struct library): New structure.
7479 (load_shlib, lookup_function): Change prototypes and adjust to
7480 work with a struct library.
7481 (find_shstrtab, find_strtab, find_shdr, find_symtab)
7482 (translate_offset): Make static.
7483 (get_text_addr): New function.
7484 * gdb.base/sym-file-main.c (main): Adjust to new loader interface.
7488 * gdb.base/sym-file-loader.c: Fix typo. SELF_LINK, not SELK_LINK.
7492 * gdb.base/sym-file-loader.c: Include <limits.h>.
7493 (SELF_LINK): New define.
7494 (get_origin): New function.
7495 (load_shlib): Use it.
7496 * gdb.base/sym-file.exp: Don't early return if the target is
7497 remote. Use runto_main, and issue fail is that fails. Use
7499 (shlib_name): Delete.
7500 (lib_so, lib_syms, lib_dlopen): New globals. Use them throughout.
7504 * gdb.base/sym-file.exp: Remove regex characters from test
7505 message. Don't refer to breakpoint numbers in test messages.
7510 * gdb.cp/var-tag.cc: New file.
7511 * gdb.cp/var-tag.exp: New file.
7512 * gdb.dwarf2/dw2-ada-ffffffff.exp: Set the language to C++.
7513 * gdb.dwarf2/dw2-anon-mptr.exp: Likewise.
7514 * gdb.dwarf2/dw2-double-set-die-type.exp: Likewise.
7515 * gdb.dwarf2/dw2-inheritance.exp: Likewise.
7519 * gdb.cp/classes.exp (test_enums): Handle underlying type.
7520 * gdb.dwarf2/enum-type.exp: Add test for enum with underlying
7522 * gdb.cp/enum-class.exp: New file.
7523 * gdb.cp/enum-class.cc: New file.
7527 * gdb.dwarf2/enum-type.exp: New file.
7531 * gdb.mi/mi-vla-c99.exp: New file.
7532 * gdb.mi/vla.c: New file.
7536 * gdb.base/vla-datatypes.c: New file.
7537 * gdb.base/vla-datatypes.exp: New file.
7541 * gdb.base/vla-ptr.c: New file.
7542 * gdb.base/vla-ptr.exp: New file.
7546 * gdb.dwarf2/count.exp: New file.
7550 * gdb.base/vla-sideeffect.c: New file.
7551 * gdb.base/vla-sideeffect.exp: New file.
7555 * gdb.mi/non-stop.c: Add return value for non-void function return
7557 * gdb.threads/staticthreads.c: Ditto.
7562 * gdb.guile/scm-value.c: Improve test case.
7563 * gdb.guile/scm-value.exp: Add new test.
7567 * gdb.opt/inline-break.exp: Explicitly specify -std=gnu89 to
7568 override Clang's default.
7572 Revert the following changes (regressions):
7574 * gdb.base/vla-sideeffect.c: New file.
7575 * gdb.base/vla-sideeffect.exp: New file.
7577 * gdb.dwarf2/count.exp: New file.
7579 * gdb.base/vla-multi.c: New file.
7580 * gdb.base/vla-multi.exp: New file.
7582 * gdb.base/vla-ptr.c: New file.
7583 * gdb.base/vla-ptr.exp: New file.
7585 * gdb.base/vla-datatypes.c: New file.
7586 * gdb.base/vla-datatypes.exp: New file.
7588 * gdb.mi/mi-vla-c99.exp: New file.
7589 * gdb.mi/vla.c: New file.
7594 * gdb.cp/cpsizeof.exp: New file.
7595 * gdb.cp/cpsizeof.cc: New file.
7599 * gdb.mi/mi-vla-c99.exp: New file.
7600 * gdb.mi/vla.c: New file.
7604 * gdb.base/vla-datatypes.c: New file.
7605 * gdb.base/vla-datatypes.exp: New file.
7609 * gdb.base/vla-ptr.c: New file.
7610 * gdb.base/vla-ptr.exp: New file.
7614 * gdb.base/vla-multi.c: New file.
7615 * gdb.base/vla-multi.exp: New file.
7619 * gdb.dwarf2/count.exp: New file.
7623 * gdb.base/vla-sideeffect.c: New file.
7624 * gdb.base/vla-sideeffect.exp: New file.
7628 * gdb.base/completion.exp: Check file exists before running tests
7633 * gdb.base/cond-eval-mode.c: New file.
7634 * gdb.base/cond-eval-mode.exp: Use standard_testfile. Adjust
7635 prepare_for_testing to build the new file. Check result of
7637 (test_break, test_watch): New procedures.
7638 (top level): Use them.
7642 * gdb.base/printcmds.exp (test_artificial_arrays): Disable
7643 Ctrl-V use for mingw hosts.
7647 * gdb.python/py-value.c: Improve test case.
7648 * gdb.python/py-value.exp: Add new test.
7652 * lib/compiler.c: Identify the clang compiler.
7653 * lib/compiler.cc: Ditto.
7657 * gdb.base/setshow.exp: Invoke string_to_regexp to HOME and PWD.
7661 * gdb.arch/ppc64-atomic-inst.exp: Use untested. Make test
7666 * gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
7667 prepare_for_testing.
7671 * gdb.arch/ppc64-atomic-inst.c: Remove.
7672 * gdb.arch/ppc64-atomic-inst.S: New file.
7673 * gdb.arch/ppc64-atomic-inst.exp: Adapt for asm based testcase.
7677 * gdb.base/print-symbol-loading-lib.c: New file.
7678 * gdb.base/print-symbol-loading-main.c: New file.
7679 * gdb.base/print-symbol-loading.exp: New file.
7683 * gdb.base/source-dir.exp: Allow ';' as a directory separator.
7687 * gdb.ada/mi_dyn_arr: New testcase.
7691 * gdb.dwarf2/dw2-abs-hi-pc.exp: Build tests with "nodebug".
7695 * lib/gdb.exp (can_single_step_to_signal_handler): Return zero
7696 if target is nios2-*-*.
7700 * lib/gdb.exp (readline_is_used): New proc.
7701 * gdb.base/completion.exp: Move tests on command complete up.
7702 Skip the rest of tests if readline is not used.
7703 * gdb.ada/complete.exp: Skp the test if readline is not
7705 * gdb.base/filesym.exp: Likewise.
7706 * gdb.base/macscp.exp: Likewise.
7707 * gdb.base/readline-ask.exp: Likewise.
7708 * gdb.base/readline.exp: Likewise.
7709 * gdb.python/py-cmd.exp: Likewise.
7710 * gdb.trace/tfile.exp: Likewise.
7714 * gdb.base/macscp.exp: Fix code format issues.
7718 * gdb.asm/asm-source.exp: Handle powerpc64le-* targets.
7719 * gdb.asm/powerpc64le.inc: New file.
7724 * gdb.base/source-execution.c: New file.
7725 * gdb.base/source-execution.exp: New file.
7726 * gdb.base/source-execution.gdb: New file.
7730 * gdb.linespec/macro-relative.exp: Mark the test as unsupported if
7736 PR breakpoints/16101
7737 * gdb.base/dprintf.exp: Use unsupported rather than changing the
7738 test pass/fail messages. Detect missing support for dprintf when
7739 breakpoints are actually inserted.
7740 * gdb.base/mi-dprintf.exp: Detect missing support for dprintf when
7741 breakpoints are actually inserted.
7742 * lib/mi-support.exp (mi_run_cmd_full): Return -1 if continue
7747 * gdb.base/gdb-sigterm.exp (do_test): Remove "set debug lin-lwp 1".
7751 * gdb.python/python.exp (python not supported): Verify multi-line
7752 python command issues an error.
7753 * gdb.guile/guile.exp (guile not supported): Verify multi-line
7754 guile command issues an error.
7758 * gdb.threads/thread-specific.exp: Handle the lack of usable
7759 $this_breakpoint and $this_thread.
7763 * gdb.base/attach.exp (do_command_attach_tests): New.
7769 * gdb.base/condbreak-call-false.c: New file.
7770 * gdb.base/condbreak-call-false.exp: New file.
7774 * gdb.threads/signal-while-stepping-over-bp-other-thread.c (pid):
7776 (block_signals, unblock_signals): Delete.
7777 (child_function_2, main): Remove references to deleted variable
7782 * gdb.threads/signal-while-stepping-over-bp-other-thread.c (main):
7783 Use pthread_kill to signal thread 2.
7784 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp:
7785 Adjust to make the test send itself a signal rather than using the
7786 host's "kill" command.
7790 * gdb.threads/multiple-step-overs.c: New file.
7791 * gdb.threads/multiple-step-overs.exp: New file.
7792 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp:
7793 Adjust expected infrun debug output.
7797 * gdb.threads/step-over-trips-on-watchpoint.c: New file.
7798 * gdb.threads/step-over-trips-on-watchpoint.exp: New file.
7803 * gdb.base/watchpoint.exp: Mention bugzilla bug number instead of
7804 old gnats gdb/38. Remove kfail. Adjust to use gdb_test instead
7805 of gdb_test_multiple.
7806 * gdb.cp/annota2.exp: Remove kfail for gdb/38.
7807 * gdb.cp/annota3.exp: Remove kfail for gdb/38.
7811 * gdb.threads/step-over-lands-on-breakpoint.c: New file.
7812 * gdb.threads/step-over-lands-on-breakpoint.exp: New file.
7816 * gdb.base/async.exp: Remove early return.
7820 * gdb.base/async.exp (step& tests): Pass explicit test messages.
7824 * gdb.base/async.exp (test_background): Expect \r\n after
7825 "completed." in the fail pattern.
7829 * gdb.base/async.exp (test_background): New procedure.
7830 Use it for all background execution command tests.
7834 * gdb.base/async.exp: Use prepare_for_testing.
7838 * gdb.base/async.c (foo): Make 'x' volatile. Write to it twice in
7843 * gdb.base/async.c (main): Add "jump here" and "until here" line
7845 * gdb.base/async.exp (jump_here): New global.
7846 (jump& test): Use it.
7847 (until_here): New global.
7848 (until& test): Use it.
7852 * gdb.base/async.exp: Don't frob gdb_protocol.
7856 * gdb.base/async.exp: Whitespace fixes. Turn on target-async.
7857 Fix spelling of exec-done-display.
7862 * gdb.base/gdb-sigterm.c: New file.
7863 * gdb.base/gdb-sigterm.exp: New file.
7868 * gdb.mi/mi-solib.exp: Remove gdb/13860 kfail.
7869 * lib/mi-support.exp (mi_expect_stop): Add special handling for
7874 * gdb.ada/pckd_arr_ren: New testcase.
7879 * gdb.guile/scm-value.ep (test_value_after_death): Do a garbage
7880 collect after discarding symbols.
7885 * gdb.guile/scm-value.exp (test_value_in_inferior): Verify value added
7886 to history survives a gc.
7890 * gdb.base/default.exp: Don't test "target procfs".
7894 * gdb.base/default.exp: Update "target child" and "target procfs"
7895 tests to not expect "Unix".
7899 * gdb.base/corefile.exp (corefile_test_run, corefile_test_attach):
7900 New procs. Add target-async tests.
7901 * gdb.reverse/break-precsave.exp (precsave_tests): New proc.
7902 Add target-async tests.
7906 * gdb.dwarf2/dw2-ifort-parameter.c (func): Define labels
7907 'func_start' and 'func_end' for the beginning and end of the
7908 function code, respectively.
7909 * gdb.dwarf2/dw2-ifort-parameter.exp: Use 'func_start' and
7910 'func_end' instead of 'func' and 'main'.
7914 * gdb.dwarf2/dw2-ifort-parameter-debug.S: Remove.
7915 * gdb.dwarf2/dw2-ifort-parameter.exp: Use Dwarf::assemble to
7916 generate the debug info assembler source.
7920 * gdb.dwarf2/arr-stride.exp: Exploit 'prepare_for_testing'.
7921 * gdb.dwarf2/arr-subrange.exp: Likewise.
7922 * gdb.dwarf2/dwz.exp: Likewise.
7923 * gdb.dwarf2/method-ptr.exp: Likewise.
7924 * gdb.dwarf2/missing-sig-type.exp: Likewise.
7925 * gdb.dwarf2/subrange.exp: Likewise.
7926 * gdb.dwarf2/implptrconst.exp: Exploit 'build_executable'.
7927 * gdb.dwarf2/implptrpiece.exp: Likewise.
7928 * gdb.dwarf2/nostaticblock.exp: Likewise.
7932 * lib/gdb.exp (build_executable_from_specs): Don't prepend source
7933 directory to absolute path name arguments.
7937 * gdb.ada/tagged_access: New testcase.
7941 * gdb.btrace/data.exp: Update expected output.
7945 * gdb.trace/pr16508.exp: New file.
7950 * gdb.base/breakpoint-shadow.exp (compare_disassembly): New
7952 (top level): Adjust to use it. Add tests that exercise breakpoint
7953 interaction with the code-cache.
7957 * gdb.guile/scm-value.exp (test_value_in_inferior): Add
7958 test for 'history-append!'.
7962 * gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S: New file.
7963 * gdb.dwarf2/dw2-abs-hi-pc-hello.c: New file.
7964 * gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S: New file.
7965 * gdb.dwarf2/dw2-abs-hi-pc-world.c: New file.
7966 * gdb.dwarf2/dw2-abs-hi-pc.c: New file.
7967 * gdb.dwarf2/dw2-abs-hi-pc.exp: New file.
7971 * testsuite/gdb.python/py-pp-re-notag.c: New file.
7972 * testsuite/gdb.python/py-pp-re-notag.ex: New file.
7973 * testsuite/gdb.python/py-pp-re-notag.p: New file.
7977 * gdb.dwarf2/arr-subrange.c, gdb.dwarf2/arr-subrange.exp: New files.
7981 * gdb.dwarf2/arr-stride.c: New file.
7982 * gdb.dwarf2/arr-stride.exp: New file.
7986 * gdb.ada/tasks.exp: Set a task-specific breakpoint at break_me
7987 that won't ever trigger. Make sure that GDB reports the correct
7988 breakpoint that caused the stop.
7993 * gdb.base/auto-load-script: New file.
7994 * gdb.base/auto-load.c: New file.
7995 * gdb.base/auto-load.exp: New file.
7998 * gdb.base/auto-load.exp: Fix out-of-srctree run.
8002 Fix dw2-icycle.exp -fsanitize=address GDB crash.
8003 * gdb.dwarf2/dw2-icycle.S: Remove all DW_AT_sibling.
8007 * lib/gdb.exp (run_on_host): Log error output if program fails.
8011 * gdb.threads/step-after-sr-lock.c: Rename to ...
8012 * gdb.threads/signal-while-stepping-over-bp-other-thread.c: ... this.
8013 * gdb.threads/step-after-sr-lock.exp: Rename to ...
8014 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp:
8020 * gdb.arch/amd64-stap-special-operands.exp: New file.
8021 * gdb.arch/amd64-stap-three-arg-disp.S: Likewise.
8022 * gdb.arch/amd64-stap-three-arg-disp.c: Likewise.
8023 * gdb.arch/amd64-stap-triplet.S: Likewise.
8024 * gdb.arch/amd64-stap-triplet.c: Likewise.
8028 * gdb.dwarf2/dw2-icycle.S: Remove second and third parameters
8029 in .section pseudo-op.
8036 * gdb.dwarf2/dw2-icycle.S: New file.
8037 * gdb.dwarf2/dw2-icycle.c: New file.
8038 * gdb.dwarf2/dw2-icycle.exp: New file.
8042 * gdb.python/py-value-cc.cc: Improve test case to enable testing
8043 operations on gdb.Value objects.
8044 * gdb.python/py-value-cc.exp: Add new test to test operations on
8049 * Makefile.in (TESTS): New variable.
8050 (expanded_tests, expanded_tests_or_none): New variables
8051 (check-single): Pass $(expanded_tests_or_none) to runtest.
8052 (check-parallel): Only run tests in $(TESTS) if non-empty.
8053 (check/no-matching-tests-found): New rule.
8054 * README: Document TESTS makefile variable.
8058 * Makefile.in (check-parallel): rm -rf outputs temp.
8062 Fix "ERROR: no fileid for" in the testsuite.
8063 * lib/gdb.exp (gdb_finish): Check gdb_spawn_id.
8067 * gdb.dwarf2/Makefile.in (EXECUTABLES): Add dwp-symlink.
8068 (MISCELLANEOUS): New variable.
8069 (clean): rm -rf $(MISCELLANEOUS).
8070 * gdb.dwarf2/dwp-symlink.exp: Test the case where the executable and
8071 dwp live in the same directory as symlinks, with each symlink pointed
8072 to a differently named file in a different directory.
8076 * gdb.dwarf2/dwp-symlink.exp: Rewrite to use remote_* commands instead
8077 of Tcl file commands.
8081 * gdb.threads/step-after-sr-lock.exp: Avoid executing
8086 * gdb.ada/tick_length_array_enum_idx: New testcase.
8090 * configure.ac (AC_OUTPUT): Add gdb.guile.
8091 * configure: Regenerate.
8092 * lib/gdb-guile.exp: New file.
8093 * lib/gdb.exp (get_target_charset): New function.
8094 * gdb.base/help.exp: Update expected output from "apropos apropos".
8095 * gdb.guile/Makefile.in: New file.
8096 * gdb.guile/guile.exp: New file.
8097 * gdb.guile/scm-arch.c: New file.
8098 * gdb.guile/scm-arch.exp: New file.
8099 * gdb.guile/scm-block.c: New file.
8100 * gdb.guile/scm-block.exp: New file.
8101 * gdb.guile/scm-breakpoint.c: New file.
8102 * gdb.guile/scm-breakpoint.exp: New file.
8103 * gdb.guile/scm-disasm.c: New file.
8104 * gdb.guile/scm-disasm.exp: New file.
8105 * gdb.guile/scm-equal.c: New file.
8106 * gdb.guile/scm-equal.exp: New file.
8107 * gdb.guile/scm-error.exp: New file.
8108 * gdb.guile/scm-error.scm: New file.
8109 * gdb.guile/scm-frame-args.c: New file.
8110 * gdb.guile/scm-frame-args.exp: New file.
8111 * gdb.guile/scm-frame-args.scm: New file.
8112 * gdb.guile/scm-frame-inline.c: New file.
8113 * gdb.guile/scm-frame-inline.exp: New file.
8114 * gdb.guile/scm-frame.c: New file.
8115 * gdb.guile/scm-frame.exp: New file.
8116 * gdb.guile/scm-generics.exp: New file.
8117 * gdb.guile/scm-gsmob.exp: New file.
8118 * gdb.guile/scm-iterator.c: New file.
8119 * gdb.guile/scm-iterator.exp: New file.
8120 * gdb.guile/scm-math.c: New file.
8121 * gdb.guile/scm-math.exp: New file.
8122 * gdb.guile/scm-objfile-script-gdb.in: New file.
8123 * gdb.guile/scm-objfile-script.c: New file.
8124 * gdb.guile/scm-objfile-script.exp: New file.
8125 * gdb.guile/scm-objfile.c: New file.
8126 * gdb.guile/scm-objfile.exp: New file.
8127 * gdb.guile/scm-ports.exp: New file.
8128 * gdb.guile/scm-pretty-print.c: New file.
8129 * gdb.guile/scm-pretty-print.exp: New file.
8130 * gdb.guile/scm-pretty-print.scm: New file.
8131 * gdb.guile/scm-section-script.c: New file.
8132 * gdb.guile/scm-section-script.exp: New file.
8133 * gdb.guile/scm-section-script.scm: New file.
8134 * gdb.guile/scm-symbol.c: New file.
8135 * gdb.guile/scm-symbol.exp: New file.
8136 * gdb.guile/scm-symtab-2.c: New file.
8137 * gdb.guile/scm-symtab.c: New file.
8138 * gdb.guile/scm-symtab.exp: New file.
8139 * gdb.guile/scm-type.c: New file.
8140 * gdb.guile/scm-type.exp: New file.
8141 * gdb.guile/scm-value-cc.cc: New file.
8142 * gdb.guile/scm-value-cc.exp: New file.
8143 * gdb.guile/scm-value.c: New file.
8144 * gdb.guile/scm-value.exp: New file.
8145 * gdb.guile/source2.scm: New file.
8146 * gdb.guile/types-module.cc: New file.
8147 * gdb.guile/types-module.exp: New file.
8152 * configure.ac: Append gdb.gdb/Makefile in AC_OUTPUT.
8153 * configure: Regenerated.
8154 * Makefile.in: New file.
8158 * gdb.python/py-framefilter.exp: Fix typo.
8162 * gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify): Test
8163 that no =breakpoint-modified is emitted when breakpoints are
8164 modified through MI commands.
8169 * gdb.threads/step-after-sr-lock.c: New file.
8170 * gdb.threads/step-after-sr-lock.exp: New file.
8174 * gdb.threads/stepi-random-signal.exp: Set SIGCHLD to print.
8178 Fix i386-sse-stack-align.exp regression since GDB_PARALLEL.
8179 * gdb.arch/i386-sse-stack-align.exp: Use standard_output_file.
8183 * gdb.python/py-breakpoint.exp (test_bkpt_eval_funcs): Update expected
8186 * gdb.gdb/python-interrupts.exp: New file.
8190 * gdb.trace/report.exp (use_collected_data): Test the output
8191 of "info threads" and "info inferiors".
8199 * gdb.trace/tfile.exp: Test inferior and thread.
8203 * gdb.base/sigbpt.exp: Do not use "*" when setting breakpoint
8205 * gdb.base/step-bt.c: Call hello via function pointer to make
8206 sure its first instruction is executed on powerpc64le-linux.
8210 * gdb.arch/powerpc-d128-regs.exp: Enable on powerpc64*-*.
8214 * gdb.arch/vsx-regs.exp: Check target endianness. Provide variants
8215 of the test patterns for use on little-endian systems.
8219 * gdb.arch/altivec-regs.exp: Use gdb_test_multiple for endian test.
8220 (decimal_vector): Fix for little-endian.
8224 * gdb.arch/sparc-sysstep.exp: New file.
8225 * gdb.arch/sparc-sysstep.c: Likewise.
8227 * gdb.arch/Makefile.in (EXECUTABLES): Add sparc-sysstep.
8231 * gdb.base/info-shared.exp: Expect leading `.' on ppc64's symbols.
8235 * gdb.ada/array_char_idx: New testcase.
8240 * gdb.python/py-framefilter.exp: Add test using "Error" filter.
8241 * gdb.python/py-framefilter.py (ErrorInName, ErrorFilter): New
8247 * gdb.python/py-framefilter.py (Reverse_Function.function): Read a
8248 string from an inferior frame.
8249 * gdb.python/py-framefilter-mi.exp: Update.
8253 * gdb.server/server-mon.exp: Add tests for "set debug-format".
8257 * gdb.base/catch-syscall.exp: Activate test on s390*-linux.
8261 * gdb.trace/entry-values.exp: Remove excess space character from
8262 regex patterns. Handle s390 call instruction.
8266 * gdb.dwarf2/dw2-dir-file-name.c (FUNC): Insert alignment and
8267 define "*_start" label. Make "name" static.
8268 * gdb.dwarf2/dw2-dir-file-name.exp: Replace references to
8269 ${name} by references to ${name}_start.
8273 * gdb.base/info-macros.exp: Remove "debug" from the compile
8278 * gdb.dlang/demangle.exp: New file.
8282 * gdb.dlang/primitive-types.exp: New file.
8286 * configure.ac: Create gdb.dlang/Makefile.
8287 * configure: Regenerate.
8288 * Makefile.in (ALL_SUBDIRS): Add gdb.dlang.
8289 * gdb.dlang/Makefile.in: New file.
8290 * lib/d-support.exp: New file.
8291 * lib/gdb.exp (skip_d_tests): New proc.
8295 * gdb.btrace/delta.exp: Check reverse stepi.
8296 * gdb.btrace/tailcall.exp: Update. Add stepping tests.
8297 * gdb.btrace/finish.exp: New.
8298 * gdb.btrace/next.exp: New.
8299 * gdb.btrace/nexti.exp: New.
8300 * gdb.btrace/record_goto.c: Add comments.
8301 * gdb.btrace/step.exp: New.
8302 * gdb.btrace/stepi.exp: New.
8303 * gdb.btrace/multi-thread-step.c: New.
8304 * gdb.btrace/multi-thread-step.exp: New.
8305 * gdb.btrace/rn-dl-bind.c: New.
8306 * gdb.btrace/rn-dl-bind.exp: New.
8307 * gdb.btrace/data.c: New.
8308 * gdb.btrace/data.exp: New.
8309 * gdb.btrace/Makefile.in (EXECUTABLES): Add new.
8313 * gdb.btrace/Makefile.in (EXECUTABLES): Add delta.
8314 * gdb.btrace/exception.exp: Update.
8315 * gdb.btrace/instruction_history.exp: Update.
8316 * gdb.btrace/record_goto.exp: Update.
8317 * gdb.btrace/tailcall.exp: Update.
8318 * gdb.btrace/unknown_functions.exp: Update.
8319 * gdb.btrace/delta.exp: New.
8323 * gdb.btrace/record_goto.exp: Add backtrace test.
8324 * gdb.btrace/tailcall.exp: Add backtrace test.
8328 * gdb.btrace/Makefile.in (EXECUTABLES): Add record_goto.
8329 * gdb.btrace/record_goto.c: New.
8330 * gdb.btrace/record_goto.exp: New.
8331 * gdb.btrace/x86-record_goto.S: New.
8335 * gdb.btrace/function_call_history.exp: Update tests.
8336 * gdb.btrace/instruction_history.exp: Update tests.
8340 * gdb.btrace/function_call_history.exp: Fix expected field
8341 order for "record function-call-history".
8342 Add new tests for "record function-call-history /c".
8343 * gdb.btrace/exception.cc: New.
8344 * gdb.btrace/exception.exp: New.
8345 * gdb.btrace/tailcall.exp: New.
8346 * gdb.btrace/x86-tailcall.S: New.
8347 * gdb.btrace/x86-tailcall.c: New.
8348 * gdb.btrace/unknown_functions.c: New.
8349 * gdb.btrace/unknown_functions.exp: New.
8350 * gdb.btrace/Makefile.in (EXECUTABLES): Add new.
8354 * gdb.btrace/instruction_history.exp: Update.
8355 * gdb.btrace/function_call_history.exp: Update.
8359 * gdb.btrace/function_call_history.exp: Fix expected function
8361 * gdb.btrace/instruction_history.exp: Initialize traced.
8362 Remove traced_functions.
8366 * gdb.btrace/function_call_history.exp: Update
8367 * gdb.btrace/instruction_history.exp: Update.
8371 * gdb.btrace/enable.exp: Update expected text.
8375 * gdb.dwarf2/dw2-dos-drive.S: Increase text section size to 4
8380 * gdb.base/float.exp: Handle "aarch64*-*-*" targets.
8384 * lib/gdb.exp (supports_process_record): Return true for
8385 arm*-linux*. (supports_reverse): Likewise.
8391 * gdb.python/py-type.c: Enhance test case.
8392 * gdb.python/py-value-cc.cc: Likewise
8393 * gdb.python/py-type.exp: Add new tests.
8394 * gdb.python/py-value-cc.exp: Likewise
8399 * gdb.dwarf2/dw2-dir-file-name.c (FUNC): Remove "*_start" symbol.
8401 * gdb.dwarf2/dw2-dir-file-name.exp (out_cu, out_line): Replace
8402 references to ${name}_start by references to ${name}.
8406 * gdb.ada/pp-rec-component.exp: Remove path from "source" test.
8410 * gdb.python/py-pp-integral.exp: Remove path from "source" test.
8415 * gdb.mi/mi-info-os.exp: Connect to the target with
8420 * gdb.threads/reconnect-signal.c: New file.
8421 * gdb.threads/reconnect-signal.exp: New file.
8425 * gdb.base/source-dir.exp: New file.
8429 * gdb.ada/mi_interface: New testcase.
8433 * gdb.ada/pp-rec-component.exp, gdb.ada/pp-rec-component.py,
8434 gdb.ada/pp-rec-component/foo.adb, gdb.ada/pp-rec-component/pck.adb,
8435 gdb.ada/pp-rec-component/pck.ads: New files.
8439 * gdb.python/py-pp-integral.c: New file.
8440 * gdb.python/py-pp-integral.py: New file.
8441 * gdb.python/py-pp-integral.exp: New file.
8443 For older changes see ChangeLog-1993-2013.
8449 ;; version-control: never
8452 Copyright 2014-2016 Free Software Foundation, Inc.
8453 Copying and distribution of this file, with or without modification,
8454 are permitted provided the copyright notice and this notice are preserved.