3 * gdb.compile/compile.exp (compile code globalvar): Update expectation
4 for a change by "Mention language in compile error message".
9 * gdb.python/py-type.c (C::a_method): New.
10 (C::a_const_method): New.
11 (C::a_static_method): New.
13 * gdb.python/py-type.exp (test_fields): Test getting fields
14 from function and method.
18 * gdb.fortran/vla-alloc-assoc.exp: New file.
19 * gdb.fortran/vla-datatypes.exp: New file.
20 * gdb.fortran/vla-datatypes.f90: New file.
21 * gdb.fortran/vla-history.exp: New file.
22 * gdb.fortran/vla-ptype-sub.exp: New file.
23 * gdb.fortran/vla-ptype.exp: New file.
24 * gdb.fortran/vla-sizeof.exp: New file.
25 * gdb.fortran/vla-sub.f90: New file.
26 * gdb.fortran/vla-value-sub-arbitrary.exp: New file.
27 * gdb.fortran/vla-value-sub-finish.exp: New file.
28 * gdb.fortran/vla-value-sub.exp: New file.
29 * gdb.fortran/vla-value.exp: New file.
30 * gdb.fortran/vla-ptr-info.exp: New file.
31 * gdb.mi/mi-vla-fortran.exp: New file.
32 * gdb.mi/vla.f90: New file.
36 * gdb.base/freebpcmd.exp: Use with_timeout_factor instead
37 of hardwired timeout value.
42 * gdb.dwarf2/dw2-regno-invalid.exp: New file.
43 * lib/dwarf.exp (Dwarf): Add DW_OP_bregx.
47 * gdb.base/catch-syscall.c: Include <sched.h>.
48 (unknown_syscall): New variable.
49 (main): Trigger a vfork and an unknown syscall.
50 * gdb.base/catch-syscall.exp (vfork_syscalls): New variable.
51 (unknown_syscall_number): Likewise.
52 (check_call_to_syscall): Accept an optional syscall pattern.
53 (check_return_from_syscall): Likewise.
54 (check_continue): Likewise.
55 (test_catch_syscall_without_args): Check for vfork and ENOSYS.
56 (test_catch_syscall_skipping_return): New test toggling off 'catch
57 syscall' to step over the syscall return, then toggling back on.
58 (test_catch_syscall_mid_vfork): New test turning on 'catch syscall'
59 during a PTRACE_EVENT_VFORK stop, in the middle of a vfork syscall.
60 (do_syscall_tests): Call test_catch_syscall_without_args and
61 test_catch_syscall_mid_vfork.
62 (test_catch_syscall_without_args_noxml): Check for vfork and ENOSYS.
63 (fill_all_syscalls_numbers): Initialize unknown_syscall_number.
67 * gdb.cp/inherit.exp (print g_vB, print g_vC, print g_vD,
68 print g_vE): Add new pass patterns.
69 * gdb.cp/virtbase.exp (print *this, print *(D *) e): Allow GDB to
70 print various symbol names for vptr fields.
74 * gdb.base/dbx.exp (test_func): Remove xfails, update expected
79 * gdb.arch/disp-step-insn-reloc.exp: New test case.
83 * lib/gdb.exp (support_displaced_stepping): Return 1 if target
88 * gdb.arch/insn-reloc.c (can_relocate_bcond): Rename to ...
89 (can_relocate_bcond_true): ... it.
90 (can_relocate_bcond_false): New function.
92 (can_relocate_bl): Likewise.
93 (testcases) [__aarch64__]: Add can_relocate_bcond_false and
98 * gdb.base/nested-addr.c: New file.
99 * gdb.base/nested-addr.exp: New testcase.
103 * gdb.btrace/vdso.c (main): Remove breakpoint markers.
104 * gdb.btrace/vdso.exp: Change stepping command to "next" and ignore
105 its output. Ignore the output of "record goto begin" and instead
106 check that GDB is replaying.
110 * gdb.base/a2-run.exp (maybe_exp_continue): New procedure.
111 (top level): Use it in the run with no args test.
115 * gdb.dlang/properties.exp: New file.
119 * gdb.dwarf2/staticvirtual.exp: Generalize regexp so it can match
120 whether or not address 0x1000 is mapped on the target.
124 * gdb.python/py-type.exp: Do not run tests if binaries fail to
129 * gdb.btrace/tsx.exp: Consider multiple correct outputs in the record
130 instruction-history test.
134 * gdb.base/gcore.c (array_func): Add reference to static_array.
138 * gdb.gdb/selftest.exp (do_steps_and_nexts): Adjust expected
143 * gdb.cp/classes.exp (test_enums): Generalize regexp to allow
144 short or char as base type.
148 * gdb.cp/var-tag.exp (do_global_tests): Generalize opt_underlying
149 to allow any size enum.
153 * gdb.ada/array_ptr_renaming.exp: New testcase.
154 * gdb.ada/array_ptr_renaming/foo.adb: New file.
155 * gdb.ada/array_ptr_renaming/pack.ads: New file.
159 * gdb.trace/ftrace-lock.c: New file.
160 * gdb.trace/ftrace-lock.exp: New file.
164 * gdb.arch/insn-reloc.c: New file.
165 * gdb.arch/ftrace-insn-reloc.exp: New file.
169 * gdb.trace/change-loc.h (func4) [__aarch64__]: Add a nop
171 * gdb.trace/pendshr1.c (pendfunc): Likewise.
172 * gdb.trace/pendshr2.c (pendfunc2): Likewise.
173 * gdb.trace/range-stepping.c: Likewise.
174 * gdb.trace/trace-break.c: Likewise.
175 * gdb.trace/trace-mt.c (thread_function): Likewise.
176 * gdb.trace/ftrace.c (marker): Likewise.
177 * gdb.trace/trace-condition.c (marker): Likewise.
178 * gdb.trace/ftrace.exp: Enable ftrace test if is_aarch64_target.
179 * gdb.trace/trace-condition.exp: Set pcreg to "\$pc" if
184 * gdb.dwarf2/dw2-bad-unresolved.c: New file.
185 * gdb.dwarf2/dw2-bad-unresolved.exp: New file.
189 * gdb.base/dso2dso.exp: Don't use directory prefix when setting
194 * gdb.mi/mi-pending.exp: Don't use directory prefix when setting
195 the pending breakpoint. Remove timeout override for "Run till
196 MI pending breakpoint on pendfunc3 on thread 2" test.
200 * gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint
205 * gdb.mi/mi-dprintf-pending.exp: Don't require directory prefix
206 in breakpoint filename pattern.
210 * gdb.base/global-var-nested-by-dso.exp: Call gdb_load_shlibs.
214 * gdb.linespec/explicit.exp: Check for readline support for
215 tab-completion tests. Fix obvious typo.
219 * gdb.btrace/multi-thread-step.exp: Test scheduler-locking on, step,
224 * gdb.btrace/non-stop.c: New.
225 * gdb.btrace/non-stop.exp: New.
230 * gdb.trace/trace-condition.c: New file.
231 * gdb.trace/trace-condition.exp: New file.
235 * gdb.trace/ftrace.exp: (test_ftrace_condition) New function
236 for testing bytecode compilation.
241 * gdb.threads/non-stop-fair-events.c (timeout): New global.
243 (main): Call pthread_kill and alarm early.
244 * gdb.threads/non-stop-fair-events.exp: Probe displaced stepping
246 (test): If the target can't hardware step and doesn't support
247 displaced stepping, increase the timeout.
251 * gdb.threads/non-stop-fair-events.exp (gdb_test_no_anchor)
252 (enable_debug): New procedures.
253 (test): Use them. Bail out if waiting for threads fails.
254 (top level): Bail out if a test fails.
258 * gdb.asm/asm-source.exp: Set asm-arch for
260 * gdb.asm/aarch64.inc: New file.
264 * gdb.ada/array_of_variable_length.exp: New testcase.
265 * gdb.ada/array_of_variable_length/foo.adb: New file.
266 * gdb.ada/array_of_variable_length/pck.adb: New file.
267 * gdb.ada/array_of_variable_length/pck.ads: New file.
271 * gdb.base/callfuncs.exp (do_function_calls): Handle clang naming
272 of function static local variable.
276 * gdb.threads/tls-so_extern.exp: New test file.
277 * gdb.threads/tls-so_extern.c: New test file.
278 * gdb.threads/tls-so_extern_main.c: New test file.
282 * gdb.opt/solib-intra-step-lib.c: New file.
283 * gdb.opt/solib-intra-step-main.c: New file.
284 * gdb.opt/solib-intra-step.exp: New file.
288 * gdb.threads/non-ldr-exc-3.exp (do_test): Use
289 gdb_continue_to_breakpoint instead of gdb_test_multiple.
293 * gdb.base/hook-stop-continue.c: Delete.
294 * gdb.base/hook-stop-continue.exp: Delete.
295 * gdb.base/hook-stop-frame.c: Delete.
296 * gdb.base/hook-stop-frame.exp: Delete.
297 * gdb.base/hook-stop.c: New file.
298 * gdb.base/hook-stop.exp: New file.
302 * gdb.ada/access_to_packed_array.exp: New testcase.
303 * gdb.ada/access_to_packed_array/foo.adb: New file.
304 * gdb.ada/access_to_packed_array/pack.adb: New file.
305 * gdb.ada/access_to_packed_array/pack.ads: New file.
309 * gdb.btrace/buffer-size.exp: Remove recording with unlimited BTS
314 * gdb.base/foll-exec.c: Add copyright header. Fix
316 * gdb.base/foll-exec.exp (zap_session): Delete proc.
317 (do_exec_tests): Use clean_restart in place of zap_session,
318 and for test initialization. Fix formatting issues. Use
319 fail in place of perror.
320 * gdb.base/pie-execl.exp (main): Use 'inferior_spawn_id' in
321 an expect statement to match an expression with output from
322 the program under debug.
323 * gdb.threads/non-ldr-exc-1.exp (do_test, main): Add
324 non-stop tests and use save_vars to enable non-stop in GDBFLAGS.
325 * gdb.threads/non-ldr-exc-2.exp: Likewise.
326 * gdb.threads/non-ldr-exc-3.exp: Likewise.
327 * gdb.threads/non-ldr-exc-4.exp: Likewise.
331 * gdb.python/py-prettyprint.exp: Check result of run_lang_tests.
335 * gdb.base/pie-execl.exp: Fix result test of build_executable.
339 * gdb.base/savedregs.exp: Fix typo.
343 * gdb.mi/mi-cli.exp: Add CLI finish tests.
347 * gdb.threads/hand-call-in-threads.exp: Make sure the thread
348 command actually switches threads. Give up on remaining
349 tests if target fails to stop at breakpoint.
353 * gdb.ada/funcall_char.exp: New testcase.
354 * gdb.ada/funcall_char/foo.adb: New file.
358 * gdb.ada/complete.exp: Add "pck.ambiguous_func" to the relevant
359 expected outputs. Add two testcases for completing ambiguous
361 * gdb.ada/complete/aux_pck.adb: New file.
362 * gdb.ada/complete/aux_pck.ads: New file.
363 * gdb.ada/complete/foo.adb: Pull Aux_Pck and call the two
364 Ambiguous_Func functions.
365 * gdb.ada/complete/pck.ads: Add an Ambiguous_Func function.
366 * gdb.ada/complete/pck.adb: Likewise.
370 * lib/cell.exp (skip_cell_tests): Report UNRESOLVED on unexpected
371 failures to run the test program under GDB.
375 * gdb.compile/compile-ifunc.exp (with_test_prefix): Force language
380 * gdb.base/run-after-attach.exp: New test file.
381 * gdb.base/run-after-attach.c: New test file.
385 * gdb.base/foll-exec-2.c: New test program.
386 * gdb.base/foll-exec-2.exp: New test.
390 * gdb.base/nested-subp1.exp: New file.
391 * gdb.base/nested-subp1.c: New file.
392 * gdb.base/nested-subp2.exp: New file.
393 * gdb.base/nested-subp2.c: New file.
394 * gdb.base/nested-subp3.exp: New file.
395 * gdb.base/nested-subp3.c: New file.
399 * gdb.server/connect-without-multi-process.c: New file.
400 * gdb.server/connect-without-multi-process.exp: New file.
404 * gdb.opt/inline-markers.c: Make z int.
408 * gdb.opt/inline-markers.c: Make z volatile.
412 * gdb.opt/inline-bt.c: New volatile global z.
413 * gdb.opt/inline-cmds.c: Likewise.
414 * gdb.opt/inline-locals.c: Likewise.
415 * gdb.opt/inline-markers.c: New extern global z.
417 (inline_fn): Likewise.
421 * config/m32r-stub.exp: Remove file.
422 * gdb.base/call-ar-st.exp: Remove reference to sparclet.
423 * gdb.base/call-rt-st.exp: Likewise.
424 * gdb.base/call-strs.exp: Likewise.
425 * gdb.base/default.exp: Remove references to h8300-*-hms and
427 * gdb.base/funcargs.exp: Remove reference to sparclet-*-*.
431 * gdb.base/gnu_vector.exp: Try compilation with "-mcpu=native
432 -Wno-psabi" if "-mcpu=native" fails. For the tests with "finish"
433 and "return" use KFAIL when GDB can not read/write the vector
438 * gdb.trace/pending.exp: Cope with remote transfer warnings.
442 * gdb.server/solib-list.exp: No longer expect an interior stop in
447 * gdb.server/connect-stopped-target.c: New file.
448 * gdb.server/connect-stopped-target.exp: New file.
452 * gdb.dwarf2/comp-unit-lang.exp: New file.
453 * gdb.dwarf2/comp-unit-lang.c: New file.
457 * gdb.ada/attr_ref_and_charlit.exp: New testcase.
458 * gdb.ada/attr_ref_and_charlit/foo.adb: New file.
462 * gdb.dwarf2/dw2-bad-mips-linkage-name.c: New file.
463 * gdb.dwarf2/dw2-bad-mips-linkage-name.exp: New file.
468 * lib/gdb.exp (skip_python_tests_prompt): Renamed from
469 skip_python_tests. New arg prompt_regexp.
470 (skip_python_tests): New function.
471 * lib/mi-support.exp (mi_skip_python_tests): New function.
472 * gdb.python/py-mi-objfile-gdb.py: New file.
473 * gdb.python/py-mi-objfile.c: New file.
474 * gdb.python/py-mi-objfile.exp: New file.
478 * gdb.linespec/explicit.exp: Move strace test from here ...
479 * gdb.trace/strace.exp: ... to here.
483 * gdb.base/kill-detach-inferiors-cmd.exp: New test file.
484 * gdb.base/kill-detach-inferiors-cmd.c: New test file.
488 * gdb.perf/lib/perftest/utils.py (select_file): Kill any existing
489 inferior before selecting a new file.
493 * gdb.mi/mi-disassemble.exp: Update.
494 * gdb.base/disasm-optim.S: New file.
495 * gdb.base/disasm-optim.c: New file.
496 * gdb.base/disasm-optim.h: New file.
497 * gdb.base/disasm-optim.exp: New file.
501 * lib/mi-support.exp (mi_make_breakpoint): Add option/handling for
506 * gdb.base/dso2dso.exp: Improve the testcase's documentation.
510 * gdb.ada/fun_renaming.exp: New testcase.
511 * gdb.ada/fun_renaming/fun_renaming.adb: New file.
512 * gdb.ada/fun_renaming/pack.adb: New file.
513 * gdb.ada/fun_renaming/pack.ads: New file.
517 * gdb.base/dso2dso.exp: Pass basename of source file in call to
522 * gdb.base/dso2dso-dso2.c, gdb.base/dso2dso-dso2.h,
523 gdb.base/dso2dso-dso1.c, gdb.base/dso2dso-dso1.h, gdb.base/dso2dso.c,
524 gdb.base/dso2dso.exp: New files.
530 * gdb.base/checkpoint-ns.exp: Use save_vars to save and restore
535 * gdb.base/gdbhistsize-history.exp
536 (test_histsize_history_setting): Use save_vars.
537 * gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
539 (test_no_truncation_of_unlimited_history_file): Use save_vars.
540 * gdb.base/readline.exp: Use save_vars.
544 * lib/gdb.exp (save_vars): New proc.
548 * gdb.base/help.exp: Update help_breakpoint_text.
552 * gdb.mi/mi-break.exp (test_explicit_breakpoints): New proc.
553 (at toplevel): Call test_explicit_breakpoints.
554 * gdb.mi/mi-dprintf.exp: Add tests for explicit dprintf
556 * lib/mi-support.exp (mi_make_breakpoint): Add support for
557 breakpoint conditions, "-cond".
561 * gdb.linespec/3explicit.c: New file.
562 * gdb.linespec/cpexplicit.cc: New file.
563 * gdb.linespec/cpexplicit.exp: New file.
564 * gdb.linespec/explicit.c: New file.
565 * gdb.linespec/explicit.exp: New file.
566 * gdb.linespec/explicit2.c: New file.
567 * gdb.linespec/ls-errs.exp: Add explicit location tests.
568 * lib/gdb.exp (capture_command_output): Regexp-escape `command'
569 before using in the matching pattern.
570 Clarify that `prefix' is a regular expression.
574 * gdb.base/dprintf-pending.exp: Update dprintf "without format"
576 Add tests for missing ",FMT" and ",".
582 * gdb.base/completion.exp: Add location completer tests.
586 * gdb.arch/ppc64-atomic-inst.exp (do_test): New procedure, move
588 (top level): Run do_test with and without displaced stepping.
592 * gdb.base/valgrind-disp-step.c: New file.
593 * gdb.base/valgrind-disp-step.exp: New file.
597 * gdb.threads/step-over-lands-on-breakpoint.c (wait_threads):
599 (main): Add alarm. Run an infinite loop instead of calling
601 * gdb.threads/step-over-lands-on-breakpoint.exp (do_test): Change
603 * gdb.threads/step-over-trips-on-watchpoint.c (wait_threads):
605 (main): Add alarm. Run an infinite loop instead of calling
607 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): Change
612 * gdb.base/checkpoint-ns.exp: New file.
613 * gdb.base/checkpoint.exp: Pass explicit "checkpoint.c" to
618 * lib/gdb.exp (skip_tsx_tests, skip_btrace_pt_tests): New.
619 * gdb.btrace/instruction_history.exp: Update.
620 * gdb.btrace/tsx.exp: New.
621 * gdb.btrace/tsx.c: New.
625 * gdb.reverse/step-precsave.exp: Use with_timeout_factor to
627 * gdb.reverse/until-precsave.exp: Bump timeouts.
631 * gdb.base/valgrind-infcall.exp: Issue a "disconnect".
636 * gdb.threads/process-dies-while-handling-bp.c: New file.
637 * gdb.threads/process-dies-while-handling-bp.exp: New file.
641 * gdb.threads/forking-threads-plus-breakpoint.exp: New file.
642 * gdb.threads/forking-threads-plus-breakpoint.c: New file.
646 * gdb.threads/next-while-other-thread-longjmps.c: New file.
647 * gdb.threads/next-while-other-thread-longjmps.exp: New file.
651 * gdb.base/bp-permanent.exp: Report test as unsupported if
652 the target cannot stop at the permanent breakpoint.
656 * gdb.perf/single-step.exp (SINGLE_STEP_COUNT): Change to 1000 from
661 * Makefile.in (workers/%.worker, build-perf): New rule.
662 (GDB_PERFTEST_MODE): New variable.
663 (check-perf): Use it.
664 (clean): Clean up gdb.perf parallel build subdirs.
665 * lib/build-piece.exp: New file.
666 * lib/gdb.exp (make_gdb_parallel_path): New function
667 (standard_output_file, standard_temp_file): Call it.
668 (GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs
670 * lib/cache.exp (gdb_do_cache): Call make_gdb_parallel_path.
674 * gdb.perf/lib/perftest/reporter.py (SUM_FILE_NAME): New global.
675 (LOG_FILE_NAME): New global.
676 (TextReporter.__init__): Initialize self.txt_sum.
677 (TextReporter.report): Add support for multiple data-points.
678 Move report to perftest.sum, put raw data in perftest.log.
679 (TextReporter.start): Open sum and log files.
680 (TextReporter.end): Close sum and log files.
681 * gdb.perf/lib/perftest/testresult.py
682 (SingleStatisticTestResult.record): Handle multiple data-points.
686 * gdb.base/attach-pie-misread.exp: Rename $res to $test_spawn_id.
687 Use spawn_id_get_pid. Wait for spawn id after eof. Use
688 kill_wait_spawned_process instead of explicit "kill -9".
689 * gdb.base/attach-pie-noexec.exp: Adjust to spawn_wait_for_attach
690 returning a spawn id instead of a pid. Use spawn_id_get_pid and
691 kill_wait_spawned_process.
692 * gdb.base/attach-twice.exp: Likewise.
693 * gdb.base/attach.exp: Likewise.
694 (do_command_attach_tests): Use gdb_spawn_with_cmdline_opts and
696 * gdb.base/solib-overlap.exp: Adjust to spawn_wait_for_attach
697 returning a spawn id instead of a pid. Use spawn_id_get_pid and
698 kill_wait_spawned_process.
699 * gdb.base/valgrind-infcall.exp: Likewise.
700 * gdb.multi/multi-attach.exp: Likewise.
701 * gdb.python/py-prompt.exp: Likewise.
702 * gdb.python/py-sync-interp.exp: Likewise.
703 * gdb.server/ext-attach.exp: Likewise.
704 * gdb.threads/attach-into-signal.exp (corefunc): Use
705 spawn_wait_for_attach, spawn_id_get_pid and
706 kill_wait_spawned_process.
707 * gdb.threads/attach-many-short-lived-threads.exp: Adjust to
708 spawn_wait_for_attach returning a spawn id instead of a pid. Use
709 spawn_id_get_pid and kill_wait_spawned_process.
710 * gdb.threads/attach-stopped.exp (corefunc): Use
711 spawn_wait_for_attach, spawn_id_get_pid and
712 kill_wait_spawned_process.
713 * gdb.base/break-interp.exp: Rename $res to $test_spawn_id.
714 Use spawn_id_get_pid. Wait for spawn id after eof. Use
715 kill_wait_spawned_process instead of explicit "kill -9".
716 * lib/gdb.exp (can_spawn_for_attach): Adjust comment.
717 (kill_wait_spawned_process, spawn_id_get_pid): New procedures.
718 (spawn_wait_for_attach): Use spawn instead of exec to spawn
719 processes. Don't map cygwin/windows pids here. Now returns a
724 * gdb.cp/var-tag.exp (do_global_tests): Revert broken commit
725 4bc4d42859e3b42c79c89295ef39944bdb3e6753 and apply the
730 * gdb.arch/ppc64-symtab-cordic.exp: Restrict to ppc64 targets.
737 * gdb.cp/var-tag.exp (do_global_tests): Handle underlying type.
741 * linux-low.c (handle_extended_wait): Set the child's last
742 reported status to TARGET_WAITKIND_STOPPED.
747 * gdb.threads/fork-plus-threads.exp: Test that "info inferiors"
748 only shows inferior 1.
754 * gdb.threads/fork-plus-threads.c: New file.
755 * gdb.threads/fork-plus-threads.exp: New file.
759 * gdb.base/batch-preserve-term-settings.exp
760 (test_terminal_settings_preserved_after_cli_exit): Use
766 * gdb.base/multi-forks.exp (continue_to_exit_bp_loc): Expect
767 output from both inferior_spawn_id and gdb_spawn_id.
771 * gdb.threads/attach-into-signal.exp (corefunc): Use
772 with_test_prefix on nested loops, uniquefying the test messages.
776 * gdb.python/py-objfile.exp: Fix typo that snuck in from my last
781 * gdb.base/batch-preserve-term-settings.exp (send_quit_command):
783 (test_terminal_settings_preserved_after_sigterm): New test.
787 * gdb.base/batch-preserve-term-settings.exp
788 (test_terminal_settings_preserved_after_cli_exit): New test.
792 * gdb.base/batch-preserve-term-settings.exp: Remove top-level
793 manipulation of saved_gdbflags.
794 (test_terminal_settings_preserved): Remove global declaration of
795 the unused variable pagination_prompt. Remove manipulation of
796 saved_gdbflags. Use a local variable EXTRA_GDBFLAGS instead of
801 * boards/gdbserver-base.exp: Don't set gdb,noinferiorio.
805 * gdb.base/interrupt.exp: Revert back to checking gdb,noinferiorio
810 * gdb.base/call-ar-st.c: Include "../lib/unbuffer_output.c".
811 (main): Call gdb_unbuffer_output.
812 * gdb.base/call-rt-st.c: Include "../lib/unbuffer_output.c".
813 (main): Call gdb_unbuffer_output.
814 * gdb.base/call-strs.c: Include "../lib/unbuffer_output.c".
815 (main): Call gdb_unbuffer_output.
816 * gdb.base/call-strs.exp: Adjust to step over the
817 gdb_unbuffer_output call.
818 * gdb.base/catch-gdb-caused-signals.c: Include
819 "../lib/unbuffer_output.c".
820 (main): Call gdb_unbuffer_output.
821 * gdb.base/dprintf.c: Include "../lib/unbuffer_output.c".
822 (main): Call gdb_unbuffer_output.
823 * gdb.base/ending-run.c: Include "../lib/unbuffer_output.c".
824 (main): Call gdb_unbuffer_output.
825 * gdb.base/run.c: Include "../lib/unbuffer_output.c".
826 (main): Call gdb_unbuffer_output.
827 * gdb.base/shlib-call.exp: Adjust to step over the
828 gdb_unbuffer_output call.
829 * gdb.base/shmain.c: Include "../lib/unbuffer_output.c".
830 (main): Call gdb_unbuffer_output.
831 * gdb.base/sizeof.c: Include "../lib/unbuffer_output.c".
832 (main): Call gdb_unbuffer_output.
833 * gdb.base/varargs.c: Include "../lib/unbuffer_output.c".
834 (main): Rename to ...
837 * gdb.base/varargs.exp: Run to test instead of to main.
838 * gdb.mi/mi-dprintf.c: Include "../lib/unbuffer_output.c".
839 (main): Call gdb_unbuffer_output.
843 * gdb.mi/mi-dprintf.exp (mi_expect_dprintf): New procedure,
844 factore out from mi_continue_dprintf. For call-style dprintfs,
845 expect dprintf output out of $inferior_spawn_id.
846 (mi_continue_dprintf): Use mi_expect_dprintf.
847 * gdb.mi/mi-dprintf.c: Include "../lib/unbuffer_output.c".
848 (main): Call gdb_unbuffer_output.
852 * lib/mi-support.exp (mi_inferior_spawn_id): Delete.
853 (default_mi_gdb_start): Set inferior_spawn_id instead of
854 mi_inferior_spawn_id. If $inferior_spawn_id is not set, set it to
856 (mi_gdb_test): Always expect inferior output from both
857 $inferior_spawn_id and $gdb_spawn_id.
861 * gdb.gdb/selftest.exp (test_with_self): Update comment. Use
862 send_inferior and $inferior_spawn_id.
866 * gdb.gdb/complaints.exp (test_initial_complaints)
867 (test_serial_complaints, test_short_complaints): Use
869 (test_empty_complaint): Handle $inferior_spawn_id !=
874 * gdb.base/varargs.exp: Use gdb_test_stdio.
878 * gdb.base/shlib-call.exp: Use gdb_test_stdio.
882 * gdb.base/ending-run.exp: Use gdb_test_stdio.
886 * gdb.base/call-rt-st.exp (print_struct_call): Split "result"
887 parameter into two new parameters, "inf_result" and "gdb_result".
888 Expect inferior output and gdb output from $inferior_spawn_id and
889 $gdb_spawn_id, respectively. Adjust all callers.
893 * gdb.base/call-ar-st.exp: Use gdb_test_stdio+multi_line instead
894 of gdb_test_sequence.
898 * gdb.base/a2-run.exp (saw_usage, saw_exit_wrapper)
899 (saw_spurious_output): Expect inferior output from
900 $inferior_spawn_id. Use gdb_test_stdio.
904 * gdb.base/dprintf.exp: Use standard_testfile. Change
905 prepare_for_testing call.
906 (srcfile): Don't set.
907 (restart): New procedure.
908 (test_dprintf): New procecure, use to continue over dprintfs.
909 (test_call, test_agent): New procedures, tests moved here.
910 Restart gdb and recreate dprintfs. Adjust expected output.
914 * gdb.base/catch-gdb-caused-signals.exp: Use gdb_test_stdio.
918 * gdb.base/call-strs.exp: Use gdb_test_stdio instead of gdb_test.
922 * gdb.base/sizeof.exp (check_sizeof, check_valueof): Use
927 * lib/gdb.exp (gdb_test_stdio): New procedure.
931 * gdb.base/restore.exp (restore_tests): Use gdb_continue_to_end.
935 * gdb.base/call-signal-resume.exp: Remove check for
936 gdb,noinferiorio. Don't expect "no signal". Use gdb_test.
937 * gdb.base/unwindonsignal.exp: Likewise.
938 * gdb.base/call-signals.c (gen_signal): Remove printf call.
939 * gdb.base/unwindonsignal.c (gen_signal): Likewise.
943 * gdb.base/siginfo-addr.c (pass): New function.
944 (handler): Call it iff si_addr is correct.
945 * gdb.base/siginfo-addr.exp: Remove gdb_skip_stdio_test check.
946 Set a breakpoint at "pass" and continue to it.
950 * gdb.python/py-objfile.exp: Make some tests have unique names.
951 * gdb.python/py-pp-registration.exp: Likewise.
955 * gdb.server/server-exec-info.exp: Issue a "disconnect".
959 * gdb.mi/mi-pending.c (thread_func): Replace return with return NULL.
963 * gdb.mi/mi-watch.exp (test_watchpoint_triggering): Remove xfail.
967 * gdb.base/gdb-sigterm-2.exp: New test.
972 * Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL.
973 (workers/%.worker, build-perf): New rule.
974 (GDB_PERFTEST_MODE): New variable.
975 (check-perf): Use it.
976 (clean): Clean up gdb.perf parallel build subdirs.
977 * lib/build-piece.exp: New file.
978 * lib/cache.exp (gdb_do_cache): Include $GDB_PARALLEL in path name.
979 * lib/gdb.exp (standard_output_file): Include $GDB_PARALLEL in path
981 (standard_temp_file): Ditto.
982 (GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs
987 * gdb.perf/lib/perftest/utils.py: New file.
988 * gdb.perf/gm-hello.cc: New file.
989 * gdb.perf/gm-pervasive-typedef.cc: New file.
990 * gdb.perf/gm-pervasive-typedef.h: New file.
991 * gdb.perf/gm-std.cc: New file.
992 * gdb.perf/gm-std.h: New file.
993 * gdb.perf/gm-use-cerr.cc: New file.
994 * gdb.perf/gm-utils.h: New file.
995 * gdb.perf/gmonster-null-lookup.py: New file.
996 * gdb.perf/gmonster-pervasive-typedef.py: New file.
997 * gdb.perf/gmonster-print-cerr.py: New file.
998 * gdb.perf/gmonster-ptype-string.py: New file.
999 * gdb.perf/gmonster-runto-main.py: New file.
1000 * gdb.perf/gmonster-select-file.py: New file.
1001 * gdb.perf/gmonster1-null-lookup.exp: New file.
1002 * gdb.perf/gmonster1-pervasive-typedef.exp: New file.
1003 * gdb.perf/gmonster1-print-cerr.exp: New file.
1004 * gdb.perf/gmonster1-ptype-string.exp: New file.
1005 * gdb.perf/gmonster1-runto-main.exp: New file.
1006 * gdb.perf/gmonster1-select-file.exp: New file.
1007 * gdb.perf/gmonster1.cc: New file.
1008 * gdb.perf/gmonster1.exp: New file.
1009 * gdb.perf/gmonster2-null-lookup.exp: New file.
1010 * gdb.perf/gmonster2-pervasive-typedef.exp: New file.
1011 * gdb.perf/gmonster2-print-cerr.exp: New file.
1012 * gdb.perf/gmonster2-ptype-string.exp: New file.
1013 * gdb.perf/gmonster2-runto-main.exp: New file.
1014 * gdb.perf/gmonster2-select-file.exp: New file.
1015 * gdb.perf/gmonster2.cc: New file.
1016 * gdb.perf/gmonster2.exp: New file.
1020 * gdb.perf/README: New file.
1021 * lib/perftest.exp (tcl_string_list_to_python_list): New function.
1022 * lib/gen-perf-test.exp: New file.
1026 * lib/perftest.exp (PerfTest::compile): Unconditionally call body.
1027 (PerfTest::startup): New function.
1028 (PerfTest::run): Return result of calling body.
1029 (PerfTest::assemble): Rewrite.
1030 * gdb.perf/backtrace.exp (PerfTest::assemble): Update function result.
1031 * gdb.perf/disassemble.exp (PerfTest::assemble): Ditto.
1032 * gdb.perf/single-step.exp (PerfTest::assemble): Ditto.
1033 * gdb.perf/skip-prologue.exp (PerfTest::assemble): Ditto.
1034 * gdb.perf/solib.exp (PerfTest::assemble): Ditto.
1038 * lib/gdb.exp (clean_restart): Make executable optional.
1042 * gdb.base/watchpoint.exp (test_complex_watchpoint): Remove
1043 compiler_info references.
1044 * gdb.cp/temargs.exp: Ditto.
1045 * lib/gdb.exp: Unset compiler_info instead of setting to "unknown".
1046 (get_compiler_info): Early exit if already computed. Set compiler_info
1047 to "unknown" if there was a problem.
1048 (test_compiler_info): Add function comment. Call get_compiler_info.
1052 * Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL.
1053 (workers/%.worker, build-perf): New rule.
1054 (GDB_PERFTEST_MODE): New variable.
1055 (check-perf): Use it.
1056 (clean): Clean up gdb.perf parallel build subdirs.
1057 * lib/build-piece.exp: New file.
1058 * lib/cache.exp (gdb_do_cache): Include $GDB_PARALLEL in path name.
1059 * lib/gdb.exp (standard_output_file): Include $GDB_PARALLEL in path
1061 (standard_temp_file): Ditto.
1062 (GDB_PARALLEL handling): Make outputs,temp,cache directories as subdirs
1067 * lib/future.exp (gdb_default_target_compile): New option
1069 * lib/gdb.exp (gdb_compile): Undo debian's change in default of
1074 * gdb.base/catch-syscall.exp: Call gdb_exit before
1079 * gdb.python/py-events.exp: Accept output between the stop event
1081 * gdb.python/py-evsignal.exp: Likewise.
1082 * gdb.python/py-evthreads.exp: Likewise.
1087 * gdb.threads/non-ldr-exit.c: New file.
1088 * gdb.threads/non-ldr-exit.exp: New file.
1092 * gdb.server/ext-wrapper.exp: Test --wrapper option when
1097 * gdb.server/ext-restart.exp: New file.
1101 * lib/gdbserver-support.exp (gdbserver_start_extended): Add
1103 * gdb.server/ext-wrapper.exp: New file.
1107 * gdb.dwarf2/dw2-dummy-cu.S: New file.
1108 * gdb.dwarf2/dw2-dummy-cu.exp: New file.
1112 * gdb.ada/var_arr_typedef.exp: New testcase.
1113 * gdb.ada/var_arr_typedef/pack.adb: New file.
1114 * gdb.ada/var_arr_typedef/pack.ads: New file.
1115 * gdb.ada/var_arr_typedef/var_arr_typedef.adb: New file.
1119 * gdb.ada/info_exc.exp: Adjust "info exceptions" expected output.
1123 * gdb.arch/i386-biarch-core.exp: Replace istarget
1124 by "complete set gnutarget". Remove expectation for the "core-file"
1129 Revert the previous commit:
1130 Tests for validate symbol file using build-id.
1134 Tests for validate symbol file using build-id.
1135 * gdb.base/solib-mismatch-lib.c: New file.
1136 * gdb.base/solib-mismatch-libmod.c: New file.
1137 * gdb.base/solib-mismatch.c: New file.
1138 * gdb.base/solib-mismatch.exp: New file.
1142 * gdb.base/sigaltstack.exp (finish_test): Add kfail for
1144 * gdb.base/sigbpt.exp (stepi_out): Likewise.
1145 * gdb.base/siginfo.exp: Likewise.
1146 * gdb.base/sigstep.exp (advance, advancei): Likewise.
1150 * gdb.base/range-stepping.exp (gdb_range_stepping_enabled):
1152 * lib/range-stepping-support.exp (gdb_range_stepping_enabled):
1154 * gdb.trace/range-stepping.exp: Check that the target supports
1159 * gdb.arch/i386-biarch-core.exp: Fix comment typo.
1163 * gdb.base/killed-outside.exp: New file.
1164 * gdb.base/killed-outside.c: New file.
1168 * gdb.asm/asm-source.exp (f at main): Stop at gdbasm_enter.
1170 * gdb.asm/asmsrc1.s: Add comment "mark: main enter".
1174 * gdb.base/gnu_vector.exp: On x86 and x86_64 targets, skip the
1175 infcall tests instead of setting up for KFAIL.
1179 * gdb.btrace/record_goto-step.exp: New.
1184 * gdb.compile/compile.c (struct struct_type): Add volatile to
1186 * gdb.compile/compile.exp
1187 (compile code struct_object.selffield = &struct_object): Skip further
1188 struct_object tests if this one xfails.
1193 * gdb.trace/ax.exp: Add test.
1197 * gdb.arch/aarch64-atomic-inst.exp: Check is_aarch64_target
1198 instead of istarget "aarch64*-*-*".
1199 * gdb.arch/aarch64-fp.exp: Likewise.
1200 * gdb.base/float.exp: Likewise.
1201 * gdb.reverse/aarch64.exp: Likewise.
1202 * lib/gdb.exp (is_aarch64_target): New proc.
1206 * lib/gdb.exp (is_aarch32_target): New proc.
1207 * gdb.arch/arm-bl-branch-dest.exp: Check is_aarch32_target
1208 instead of "istarget "arm*-*-*"".
1209 * gdb.arch/arm-disp-step.exp: Likewise.
1210 * gdb.arch/thumb-bx-pc.exp: Likewise.
1211 * gdb.arch/thumb-prologue.exp: Likewise.
1212 * gdb.arch/thumb-singlestep.exp: Likewise.
1213 * gdb.base/disp-step-syscall.exp: Likewise.
1214 * gdb.base/float.exp: Likewise.
1218 * gdb.base/catch-syscall.exp (test_catch_syscall_multi_arch):
1219 Set arch1, arch2, syscall1_name, syscall2_name and syscall_number.
1223 * gdb.multi/multi-arch-exec.exp: Set march1 and march2 to "" if target
1224 is aarch64. If target is aarch64, set compiler=${ARM_CC_FOR_TARGET}
1226 * gdb.multi/multi-arch.exp: Likewise.
1230 * gdb.python/py-lazy-string.exp: Add missing parentheses to
1235 * gdb.arch/thumb-singlestep.exp: Do one more single step.
1239 * lib/gdb.exp (test_class_help): Remove the unneeded escaping of
1240 '[' and ']' characters.
1244 * gdb.dlang/demangle.exp: Sync tests from libiberty testsuite.
1249 * gdb.threads/hand-call-new-thread.c: New file.
1250 * gdb.threads/hand-call-new-thread.c: New file.
1256 * gdb.cp/var-tag-2.cc: New file.
1257 * gdb.cp/var-tag-3.cc: New file.
1258 * gdb.cp/var-tag-4.cc: New file.
1259 * gdb.cp/var-tag.cc: New file.
1260 * gdb.cp/var-tag.exp: New file.
1264 * gdb.base/history-duplicates.exp: New test.
1268 * gdb.base/completion.exp: Test the completion of the "focus"
1273 * gdb.arch/amd64-prologue-skip.S: New file.
1274 * gdb.arch/amd64-prologue-skip.exp: New file.
1278 * gdb.python/py-prettyprint.exp (run_lang_tests): Add
1279 is_address_zero_readable check.
1283 * gdb.arch/powerpc-power.exp <rfebb>: Fixup test results.
1284 * gdb.arch/powerpc-power.s <rfebb>: Likewise.
1288 * lib/gdb.exp (supports_get_siginfo_type): Return 1 for all
1293 * lib/gdb.exp (supports_get_siginfo_type): New proc.
1294 * gdb.base/siginfo-obj.exp: Invoke supports_get_siginfo_type.
1295 * gdb.base/siginfo-thread.exp: Likewise.
1299 * boards/remote-gdbserver-on-localhost.exp: Add comments.
1303 * lib/gdb.exp (skip_hw_breakpoint_tests): Return 0 for target
1305 (skip_hw_watchpoint_tests): Likewise.
1309 * gdb.base/gdbinit-history.exp: Test the interaction between
1310 setting GDBHISTSIZE and setting the history size via .gdbinit.
1315 * gdb.base/gdbhistsize-history.exp: New test.
1319 * gdb.base/gdbinit-history.exp: Replace occurrences of HISTSIZE
1321 * gdb.base/readline.exp: Likewise.
1325 * lib/gdb.exp (get_build_id): Move braces and "else" to the same
1330 * gdb.base/gdbinit-history.exp: Add test case to check that
1331 an unlimited history file does not get truncated on exit.
1335 * gdb.base/gnu_vector.c: Include stdarg.h and stdio.h.
1336 (VECTOR): New macro. Use it...
1337 (int4, uint4, char4, float4, int2, longlong2, float2, double2):
1338 ...for these typedefs.
1339 (int8, char1, int1, double1): New typedefs.
1340 (struct just_int2, struct two_int2): New structures.
1341 (add_some_intvecs, add_many_charvecs, add_various_floatvecs)
1342 (add_structvecs, add_singlevecs): New functions.
1343 (main): Call add_some_intvecs twice.
1344 * gdb.base/gnu_vector.exp: Drop GCC version check; just attempt
1345 the compile and exit upon failure. Try compiling for the "native"
1346 architecture. Test inferior function calls with vector arguments
1347 and vector return value handling with "finish" and "return".
1351 * gdb.base/sepdebug.exp: Add EXEEXT where needed.
1352 * lib/gdb.exp (get_build_id): Teach how to extract build-id from a
1354 * lib/future.exp (gdb_find_objdump): Add gdb_find_objdump.
1358 PR breakpoints/16465
1359 * gdb.mi/mi-dprintf-pending.c: New file.
1360 * gdb.mi/mi-dprintf-pending.exp: New test.
1361 * gdb.mi/mi-dprintf-pendshr.c: New file.
1366 * gdb.arch/i386-mpx-map.c: New file.
1367 * gdb.arch/i386-mpx-map.exp: New File.
1371 * gdb.arch/i386-mpx.c (have_mpx): Indentation fixed.
1372 * gdb.arch/i386-mpx.exp: Indentation fixed.
1376 * gdb.arch/i386-mpx.c: Added final return to the have_mpx
1377 function and improved indentation.
1378 * gdb.arch/i386-mpx.exp: Exchanging gdb_send and gdb_expect for
1379 gdb_test_multiple. Added additional tests to skip the test.
1383 * gdb.arch/i386-avx512.c: Change path in include file.
1384 * gdb.arch/i386-avx512.exp: Change include dir path
1386 * gdb.arch/i386-mpx.c: Change path in include file.
1387 * gdb.arch/i386-mpx.exp: Change include dir path compilation
1392 * gdb.compile/compile-print.exp (compile print *vararray@3)
1393 (compile print *vararrayp@3): Change xfail to kfail compile/18489.
1397 * gdb.compile/compile.exp (keep jit in memory): Rename to ...
1398 (do not keep jit in memory): ... this.
1399 (expect 5): Change it to ...
1400 (expect no 5): ... this.
1405 * gdb.mi/mi-detach.exp: New file.
1410 * gdb.arch/amd64-tailcall-self.S: New file.
1411 * gdb.arch/amd64-tailcall-self.c: New file.
1412 * gdb.arch/amd64-tailcall-self.exp: New file.
1416 * gdb.base/foll-vfork.exp (main): Disable exec-dependent
1417 tests for remote targets by checking is_target_gdbserver.
1421 * gdb.dwarf2/opaque-type-lookup-2.c: New file.
1422 * gdb.dwarf2/opaque-type-lookup.c: New file.
1423 * gdb.dwarf2/opaque-type-lookup.exp: New file.
1427 * gdb.cp/iostream.cc: New file.
1428 * gdb.cp/iostream.exp: New file.
1432 * gdb.dwarf2/dw2-op-call.exp: Update.
1433 * gdb.dwarf2/dw4-sig-types.exp: Update.
1434 * gdb.dwarf2/implptr.exp: Update.
1435 * gdb.mi/mi-cmd-param-changed.exp: Update.
1439 * gdb.python/py-lazy-string.c: New file.
1440 * gdb.python/py-lazy-string.exp: New file.
1441 * gdb.python/py-prettyprint.c (lazystring) <len>: New member.
1442 (main): Update. Add estring3.
1443 * gdb.python/py-prettyprint.exp: Add tests for strings at address 0.
1444 * gdb.python/py-prettyprint.py (pp_ls): Handle length.
1449 * gdb.reverse/aarch64.c: New.
1450 * gdb.reverse/aarch64.exp: New.
1454 * lib/gdb.exp (supports_process_record): Return true for aarch64*-linux*.
1455 (supports_reverse): Likewise.
1459 * gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
1460 Use with_test_prefix.
1464 * gdb.base/completion.exp: Add test for completion of layout
1469 * lib/gdb.exp (skip_tui_tests): New proc.
1470 * gdb.base/tui-layout.exp: Check skip_tui_tests.
1474 * gdb.base/gdbinit-history.exp (test_gdbinit_history_setting):
1475 Save the whole env array instead of just HOME. Unset HISTSIZE in
1476 the environment while testing. Restore whole environment
1481 * gdb.guile/scm-ports.c: New file.
1482 * gdb.guile/scm-ports.exp: Add memory port tests.
1486 * gdb.compile/compile-print.c: New file.
1487 * gdb.compile/compile-print.exp: New file.
1491 * gdb.compile/compile-ops.exp: Cast param to void.
1492 * gdb.compile/compile.exp: Complete type for _gdb_expr.
1493 (compile code struct_object.selffield = &struct_object): Add xfail.
1497 * gdb.ada/arr_enum_with_gap: New testcase.
1501 * gdb.ada/byte_packed_arr: New testcase.
1505 * gdb.ada/pckd_neg: New testcase.
1510 * gdb.base/gdbinit-history.exp: New test.
1511 * gdb.base/gdbinit-history/unlimited/.gdbinit: New file.
1512 * gdb.base/gdbinit-history/zero/.gdbinit: New file.
1516 * gdb.python/py-xmethods.cc: Enhance test case.
1517 * gdb.python/py-xmethods.exp: New tests.
1518 * gdb.python/py-xmethods.py (A_indexoper): New xmethod worker
1520 (B_indexoper): Likewise.
1521 (global_dm_list) : Add new xmethod worker functions.
1525 * gdb.base/coredump-filter.exp: Correctly unset
1526 "coredump_var_addr" array.
1530 * gdb.server/non-existing-program.exp: Unset spawn_id.
1535 * gdb.python/py-xmethods.exp: Add tests.
1540 * gdb.base/coredump-filter.c (set_coredump_filter): New function.
1541 * gdb.base/coredump-filter.exp (do_save_core): Call inferior
1542 function set_coredump_filter, and remove remote_exec call.
1543 Remove argument ipid. Callers update.
1544 (top level): Don't get inferior's PID.
1548 * gdb.base/watch_thread_num.exp: Skip test on targets without
1554 * gdb.server/non-existing-program.exp: New file.
1558 * gdb.ada/out_of_line_in_inlined.exp: Add run and "bt" tests.
1562 * gdb.ada/out_of_line_in_inlined: New testcase.
1566 * gdb.ada/var_rec_arr: New testcase.
1570 * gdb.base/break-idempotent.exp: If
1571 skip_hw_watchpoint_multi_tests returns true, skip the tests
1572 on "rwatch" and "awatch".
1576 * gdb.base/relativedebug.exp: Invoke gdb command
1577 "info sharedlibrary", and if libc.so doesn't have debug info,
1582 * gdb.python/py-xmethods.exp: Add ptype tests.
1583 * gdb.python/py-xmethods.py (E_method_char_worker): Add
1584 get_result_type method.
1588 * gdb.base/watch-bitfields.exp: Switch to software watchpoints if
1589 the target does not support hardware watchpoints.
1593 * gdb.base/break-always.exp: Abort testing if writing to memory
1598 * gdb.python/py-pp-maint.py: Move "replace" testing to ...
1599 * gdb.python/py-pp-registration.exp: ... here. New file.
1600 * gdb.python/py-pp-registration.c: New file.
1601 * gdb.python/py-pp-registration.py: New file.
1605 * gdb.python/py-bad-printers.c: New file.
1606 * gdb.python/py-bad-printers.py: New file.
1607 * gdb.python/py-bad-printers.exp: New file.
1611 * gdb.python/py-type.exp: New test.
1615 * gdb.python/py-parameter.exp:
1616 * gdb.guile/scm-parameter.exp: Escape the path that we are
1617 matching against, as it might contain characters that are special
1618 to regular expressions.
1622 * gdb.ada/rec_comp: New testcase.
1626 * gdb.base/coredump-filter.exp: Clear variable "coredump_var_addr"
1631 * gdb.base/dump.exp: Add *.verilog files to all_files list. Add
1632 new tests for verilog output.
1636 * boards/remote-gdbserver-on-localhost.exp: New file.
1640 * gdb.base/interrupt.exp: Use an indirect spawn id list holding
1641 $inferior_spawn_id instead of $inferior_spawn_id directly. On
1642 "end of file", remove $inferior_spawn_id from the indirect list.
1646 * gdb.base/interrupt.exp: Rename saw_eof to saw_end_of_file.
1650 * lib/gdb.exp (gdb_test_multiple): Match eof/full_buffer/timeout
1651 on $any_spawn_id instead of only on $gdb_spawn_id.
1656 * lib/pascal.exp (gpc_compile): Add new option "class".
1657 (fpc_compile): Likewise.
1658 * gdb.pascal/case-insensitive-symbols.pas: New file.
1659 * gdb.pascal/case-insensitive-symbols.exp: New file.
1663 * gdb.base/attach.exp: Fix three extended remote failures.
1667 * gdb.server/server-exec-info.exp: Inhibit GDB from accessing
1668 the main executable over the remote protocol.
1672 * boards/native-extended-gdbserver.exp (mi_gdb_start): Don't start
1673 a new gdbserver if gdbserver_reconnect_p is set.
1677 * lib/gdbserver-support.exp (gdb_exit): If gdbserver_reconnect_p
1678 is set, don't exit gdbserver.
1682 * gdb.arch/s390-vregs.S (change_vrs): Replace exrl by an
1683 appropriate .insn, such that an older assembler can be used.
1684 * gdb.arch/s390-vregs.exp: Add the compile flag -mzarch, to enable
1685 the z/Architecture instruction set on 31-bit targets as well.
1689 * gdb.go/handcall.exp: Remove all logic related to the first
1690 breakpoint and rely on go_runto_main instead.
1691 * gdb.go/strings.exp: Likewise.
1692 * gdb.go/unsafe.exp: Likewise.
1693 * gdb.go/hello.exp: Likewise. Also rename the remaining
1694 breakpoint marker to "breakpoint 1".
1695 * gdb.go/handcall.go: Remove comment "set breakpoint 1 here".
1696 * gdb.go/strings.go: Likewise.
1697 * gdb.go/unsafe.go: Likewise.
1698 * gdb.go/hello.go: Likewise. Also remove the second occurrence of
1699 "set breakpoint 2 here" and rename the remaining breakpoint marker
1704 * gdb.python/py-framefilter.py (ErrorFilter.filter): Use map function
1705 if itertools.imap is not present.
1706 * gdb.python/py-objfile.exp: Add parentheses.
1707 * gdb.python/py-type.exp: Same.
1708 * gdb.python/py-unwind-maint.py: Same.
1712 * gdb.dwarf2/dynarr-ptr.exp (assemble): Use $ptr_size instead
1713 of ":$ptr_size" and set its form explicitly.
1718 * gdb.base/watch-bitfields.exp (test_watch_location): Increase
1719 timeout by factor of 4.
1720 (test_regular_watch): Likewise.
1721 * gdb.base/watchpoint-solib.exp: Use with_timeout_factor.
1722 * gdb.reverse/sigall-reverse.exp: Likewise.
1723 * gdb.reverse/until-precsave.exp: Likewise.
1724 * lib/gdb.exp (with_timeout_factor): New proc.
1725 (gdb_expect): Move some code to ...
1726 (get_largest_timeout): ... here. New procedure.
1730 * gdb.base/bp-permanent.exp (test): Reinstate correct test message.
1734 * gdb.base/bp-permanent.exp (test): Handle the case of being unable
1735 to write to the .text section.
1739 * gdb.base/coredump-filter.exp: Restrict test to Linux systems only.
1740 Handle the case of targets that do not provide PID information.
1744 * lib/gdbserver-support.exp (gdb_exit): Catch exception
1745 and use expect instead of gdb_expect.
1749 * gdb.base/coredump-filter.exp: Rename variable "addr" to
1750 "coredump_var_addr" to avoid naming conflict with other testcases.
1754 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp: Use
1755 gdb_test_sequence and gdb_assert.
1759 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): Use
1760 test messages that don't include the breakpoint address.
1764 * gdb.base/watchpoint-reuse-slot.exp (valid_addr_p): Return
1765 false for some offset and width combinations which aren't
1766 supported by linux kernel.
1770 * gdb.threads/step-over-lands-on-breakpoint.exp (do_test): New
1771 procedure, factored out from ...
1772 (top level): ... here. Add "set displaced-stepping" testing axis.
1773 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): New
1774 parameter "displaced". Use it.
1775 (top level): Use foreach and add "set displaced-stepping" testing
1780 * gdb.threads/step-over-trips-on-watchpoint.c (child_function):
1782 * gdb.threads/step-over-trips-on-watchpoint.exp (do_test): Find
1783 both the address of the instruction that triggers the watchpoint
1784 and the address of the instruction immediately after, and use
1785 those addresses for the test. Fix comment.
1789 * gdb.base/sigstep.exp (breakpoint_to_handler)
1790 (breakpoint_to_handler_entry): New parameter 'displaced'. Use it.
1791 Test "backtrace" in handler.
1792 (breakpoint_over_handler): New parameter 'displaced'. Use it.
1793 (top level): Add new "displaced" test axis to
1794 breakpoint_to_handler, breakpoint_to_handler_entry and
1795 breakpoint_over_handler.
1800 * gdb.threads/multiple-step-overs.exp: Remove expected eof.
1804 * gdb.arch/arm-disp-step.S (main): Call test_add_rn_pc.
1805 (test_add_rn_pc): New function.
1806 * gdb.arch/arm-disp-step.exp (test_add_rn_pc): New proc.
1807 (top level): Invoke test_add_rn_pc.
1812 * gdb.base/step-over-no-symbols.exp: New file.
1816 * gdb.guile/scm-frame.exp: Add frame-read-register tests, modelled
1817 after the Python tests.
1822 * gdb.python/py-completion.exp: New tests for completion.
1823 * gdb.python/py-completion.py (CompleteLimit1): New class.
1824 (CompleteLimit2): Likewise.
1825 (CompleteLimit3): Likewise.
1826 (CompleteLimit4): Likewise.
1827 (CompleteLimit5): Likewise.
1828 (CompleteLimit6): Likewise.
1829 (CompleteLimit7): Likewise.
1835 * gdb.threads/multiple-step-overs.c (sigusr1_handler): New
1837 (main): Install it as SIGUSR1 handler.
1838 * gdb.threads/multiple-step-overs.exp (setup): Remove 'prefix'
1839 parameter. Always use "setup" as prefix. Toggle "set
1840 displaced-stepping" off/on depending on global. Don't switch to
1842 (top level): Add displaced stepping "off/on" test axis. Update
1843 "setup" calls. Wrap each subtest with with_test_prefix. Test
1844 continuing with a queued signal in each thread.
1848 * gdb.trace/actions.exp: Use gdb_load before gdb_run_cmd.
1849 * gdb.trace/infotrace.exp: Use gdb_load before gdb_run_cmd. Use
1850 gdb_breakpoint instead of gdb_test that doesn't expect anything.
1851 Return early if running to main fails.
1852 * gdb.trace/while-stepping.exp: Likewise.
1856 * gdb.base/interrupt.exp: Don't skip if $inferior_spawn_id !=
1857 $gdb_spawn_id. Use send_inferior and $inferior_spawn_id to
1858 interact with inferior program.
1862 * lib/gdb.exp (inferior_spawn_id): New global.
1863 (gdb_test_multiple): Handle "-i". Reset the spawn id to GDB's
1864 spawn id after processing the user code.
1865 (default_gdb_start): Set inferior_spawn_id.
1866 (send_inferior): New procedure.
1867 * lib/gdbserver-support.exp (gdbserver_start): Set
1869 (close_gdbserver, gdb_exit): Unset inferior_spawn_id.
1873 * lib/gdb.exp (gdb_finish): Delete persistent gdbserver handling.
1874 * lib/gdbserver-support.exp (gdbserver_start): Make
1875 $server_spawn_id global.
1876 (gdbserver_start): Don't wait for gdbserver's spawn id with
1878 (close_gdbserver): New procedure.
1879 (gdb_exit): Rename the default version and reimplement.
1883 * lib/gdb.exp (gdb_test_multiple): When processing an argument,
1884 append the substituted item, not the original item.
1888 * gdb.base/interrupt.exp: Use gdb_test_multiple instead of
1893 * gdb.base/interrupt.exp: Don't handle the case of the inferior
1894 output appearing once only.
1898 * gdb.trace/actions.exp: Use gdb_breakpoint instead of gdb_test
1899 that doesn't expect anything. Return early if running to main
1904 * gdb.threads/non-stop-fair-events.c (SECONDS): New macro.
1905 (child_function): Call alarm.
1906 (main): Move call to alarm into the loop.
1907 * gdb.threads/non-stop-fair-events.exp: Build program with
1912 * lib/pascal.exp (gpc_compile): Rename dest arg to destfile.
1913 Fix dest parameter to board_info.
1914 (fpc_compile): Ditto.
1915 (gdb_compile_pascal): Rename dest arg to destfile.
1919 * gdb.ada/funcall_ref.exp: New file.
1920 * gdb.ada/funcall_ref/foo.adb: New file.
1924 * gdb.threads/no-unwaited-for-left.exp: Set up kfail if target
1929 * gdb.base/break-probes.exp: Cope with "target:" sysroot.
1933 * gdb.python/py-unwind-maint.c: New file.
1934 * gdb.python/py-unwind-maint.exp: New test.
1935 * gdb.python/py-unwind-maint.py: New file.
1936 * gdb.python/py-unwind.c: New file.
1937 * gdb.python/py-unwind.exp: New test.
1938 * gdb.python/py-unwind.py: New test.
1942 * gdb.threads/manythreads.exp (interrupt_and_wait): Pass $message
1943 to fail instead of non-existent $test.
1947 * lib/gdb.exp (gdb_spawn_with_cmdline_opts): Append space to
1948 GDBFLAGS if not empty.
1952 * gdb.ada/complete.exp: Remove "multi_line".
1953 * gdb.ada/info_exc.exp: Remove "multi_line".
1954 * gdb.ada/packed_tagged.exp: Remove "multi_line".
1955 * gdb.ada/ptype_field.exp: Remove "multi_line".
1956 * gdb.ada/sym_print_name.exp: Remove "multi_line".
1957 * gdb.ada/tagged.exp: Remove "multi_line".
1958 * gdb.btrace/buffer-size.exp: Replace [join [list ...]] with
1960 * gdb.btrace/delta.exp: Likewise.
1961 * gdb.btrace/exception.exp: Likewise.
1962 * gdb.btrace/function_call_history.exp: Likewise.
1963 * gdb.btrace/instruction_history.exp: Likewise.
1964 * gdb.btrace/nohist.exp: Likewise.
1965 * gdb.btrace/record_goto.exp: Likewise.
1966 * gdb.btrace/segv.exp: Likewise.
1967 * gdb.btrace/stepi.exp: Likewise.
1968 * gdb.btrace/tailcall.exp: Likewise.
1969 * gdb.btrace/unknown_functions.exp: Likewise.
1970 * gdb.dwarf2/dw2-undefined-ret-addr.exp: Likewise.
1971 * lib/gdb.exp: Add the "multi_line" helper.
1975 * gdb.threads/tid-reuse.c: New file.
1976 * gdb.threads/tid-reuse.exp: New file.
1981 * gdb.base/coredump-filter.c: New file.
1982 * gdb.base/coredump-filter.exp: Likewise.
1986 * lib/dwarf.exp (Dwarf::_handle_DW_FORM): Handle DW_FORM_sec_offset.
1987 (Dwarf::_line_count, Dwarf::_line_saw_file): New variables.
1988 (Dwarf::assemble): Initialize them.
1989 (Dwarf::lines): New function.
1993 * lib/gdb.exp (gdb_target_symbol_prefix_flags): Don't set
1994 SYMBOL_PREFIX for x86_64-*-cygwin.
1999 * gdb.dwarf2/dw2-intercu.S (one, two): Add variables that have a
2000 const_value but not a location.
2001 * gdb.dwarf2/dw2-intercu.exp: Add tests that constants without
2002 location defined in non-main CUs are visible.
2007 * gdb.linespec/break-asm-file0.s (func): New label .Lfunc_2.
2008 Add a line number entry for the same line.
2009 * gdb.linespec/break-asm-file1.s (func): New label .Lfunc_2.
2010 Add a line number entry for the same line.
2014 * gdb.linespec/break-asm-file0.s (func2): Use nop instead of
2016 (func): Likewise. Add .Lfunc_1 label.
2018 * gdb.linespec/break-asm-file1.s (func3): Use nop instead of
2025 * gdb.linespec/break-asm-file.exp: Don't call prepare_for_testing.
2026 Call gdb_compile instead to compile each .s files without debug
2031 * gdb.base/savedregs.exp (process_saved_regs): Make
2032 "Saved registers:" optional in the pattern.
2036 * gdb.btrace/next.exp: Merged into step.exp.
2037 * gdb.btrace/finish.exp: Merged into step.exp.
2038 * gdb.btrace/nexti.exp: Merged into stepi.exp.
2039 * gdb.btrace/step.exp: Use record_goto.c as test file. Avoid using
2040 "record goto" and checking the exact replay position.
2041 * gdb.btrace/stepi.exp: Choose test file based on target. Do not
2042 check for "Recording format" in "info record" output.
2043 * gdb.btrace/record_goto.exp: Choose test file based on target.
2044 * gdb.btrace/x86-record_goto.S: Renamed into ...
2045 * gdb.btrace/x86_64-record_goto.S: ... this.
2046 * gdb.btrace/i686-record_goto.S: New.
2047 * gdb.btrace/x86-tailcall.S: Renamed into ...
2048 * gdb.btrace/x86_64-tailcall.S: ... this.
2049 * gdb.btrace/i686-tailcall.S: New.
2050 * gdb.btrace/x86-tailcall.c: Renamed into ...
2051 * gdb.btrace/tailcall.c: ... this. Split "return ++answer" into two
2052 separate statements. Update test.
2053 * gdb.btrace/delta.exp: Use record_goto.c as test file.
2054 * gdb.btrace/gcore.exp: Use record_goto.c as test file.
2055 * gdb.btrace/nohist.exp: Use record_goto.c as test file.
2056 * gdb.btrace/tailcall.exp: Choose test file based on target.
2057 * gdb.btrace/Makefile.in: Remove next, finish, and nexti.
2061 * gdb.btrace/exception.exp: Increase BTS buffer size.
2065 * gdb.threads/no-unwaited-for-left.exp: Test "thread apply all".
2069 * gdb.threads/schedlock.exp (test_step): No longer expect that
2070 "set scheduler-locking step" with "next" over a function call runs
2075 * gdb.mi/mi-pending.exp: Fix output of breakpoint test.
2079 PR breakpoints/16466
2080 * gdb.mi/Makefile.in: Add mi-pendshr2.sl to cleanup.
2081 * gdb.mi/mi-pending.c (thread_func): New function.
2082 (int main): Add threading support required.
2083 * gdb.mi/mi-pending.exp: Add tests for this issue.
2084 * gdb.mi/mi-pendshr.c (pendfunc1): Remove stdio dependency.
2085 (pendfunc2): Remove stdio dependency.
2086 * gdb.mi/mi-pendshr2.c: New file.
2090 * gdb.linespec/keywords.c: New file.
2091 * gdb.linespec/keywords.exp: New file.
2096 * gdb.dwarf2/staticvirtual.exp: New test.
2100 * Makefile.in (ALL_SUBDIRS): Remove gdb.hp.
2101 * README: Remove HP-UX and gdb.hp.
2103 * configure: Regenerate.
2104 * configure.ac (AC_OUTPUT): Remove gdb.hp/Makefile,
2105 gdb.hp/gdb.objdbg/Makefile, gdb.hp/gdb.base-hp/Makefile,
2106 gdb.hp/gdb.aCC/Makefile, gdb.hp/gdb.compat/Makefile,
2107 gdb.hp/gdb.defects/Makefile.
2108 * gdb.hp/Makefile.in: File deleted.
2109 * gdb.hp/gdb.aCC/Makefile.in: File deleted.
2110 * gdb.hp/gdb.aCC/optimize.c: File deleted.
2111 * gdb.hp/gdb.aCC/optimize.exp: File deleted.
2112 * gdb.hp/gdb.aCC/run.c: File deleted.
2113 * gdb.hp/gdb.aCC/watch-cmd.exp: File deleted.
2114 * gdb.hp/gdb.base-hp/Makefile.in: File deleted.
2115 * gdb.hp/gdb.base-hp/callfwmall.c: File deleted.
2116 * gdb.hp/gdb.base-hp/callfwmall.exp: File deleted.
2117 * gdb.hp/gdb.base-hp/dollar.c: File deleted.
2118 * gdb.hp/gdb.base-hp/dollar.exp: File deleted.
2119 * gdb.hp/gdb.base-hp/genso-thresh.c: File deleted.
2120 * gdb.hp/gdb.base-hp/hwwatchbus.c: File deleted.
2121 * gdb.hp/gdb.base-hp/hwwatchbus.exp: File deleted.
2122 * gdb.hp/gdb.base-hp/pxdb.c: File deleted.
2123 * gdb.hp/gdb.base-hp/pxdb.exp: File deleted.
2124 * gdb.hp/gdb.base-hp/reg-pa64.exp: File deleted.
2125 * gdb.hp/gdb.base-hp/reg-pa64.s: File deleted.
2126 * gdb.hp/gdb.base-hp/reg.exp: File deleted.
2127 * gdb.hp/gdb.base-hp/reg.s: File deleted.
2128 * gdb.hp/gdb.base-hp/sized-enum.c: File deleted.
2129 * gdb.hp/gdb.base-hp/sized-enum.exp: File deleted.
2130 * gdb.hp/gdb.base-hp/so-thresh.exp: File deleted.
2131 * gdb.hp/gdb.base-hp/so-thresh.mk: File deleted.
2132 * gdb.hp/gdb.base-hp/so-thresh.sh: File deleted.
2133 * gdb.hp/gdb.compat/Makefile.in: File deleted.
2134 * gdb.hp/gdb.compat/average.c: File deleted.
2135 * gdb.hp/gdb.compat/sum.c: File deleted.
2136 * gdb.hp/gdb.compat/xdb.c: File deleted.
2137 * gdb.hp/gdb.compat/xdb0.c: File deleted.
2138 * gdb.hp/gdb.compat/xdb0.h: File deleted.
2139 * gdb.hp/gdb.compat/xdb1.c: File deleted.
2140 * gdb.hp/gdb.compat/xdb1.exp: File deleted.
2141 * gdb.hp/gdb.compat/xdb2.exp: File deleted.
2142 * gdb.hp/gdb.compat/xdb3.exp: File deleted.
2143 * gdb.hp/gdb.defects/Makefile.in: File deleted.
2144 * gdb.hp/gdb.defects/bs14602.c: File deleted.
2145 * gdb.hp/gdb.defects/bs14602.exp: File deleted.
2146 * gdb.hp/gdb.defects/solib-d.c: File deleted.
2147 * gdb.hp/gdb.defects/solib-d.exp: File deleted.
2148 * gdb.hp/gdb.defects/solib-d1.c: File deleted.
2149 * gdb.hp/gdb.defects/solib-d2.c: File deleted.
2150 * gdb.hp/gdb.objdbg/Makefile.in: File deleted.
2151 * gdb.hp/gdb.objdbg/objdbg01.exp: File deleted.
2152 * gdb.hp/gdb.objdbg/objdbg01/x1.cc: File deleted.
2153 * gdb.hp/gdb.objdbg/objdbg01/x2.cc: File deleted.
2154 * gdb.hp/gdb.objdbg/objdbg01/x3.cc: File deleted.
2155 * gdb.hp/gdb.objdbg/objdbg01/x3.h: File deleted.
2156 * gdb.hp/gdb.objdbg/objdbg02.exp: File deleted.
2157 * gdb.hp/gdb.objdbg/objdbg02/x1.cc: File deleted.
2158 * gdb.hp/gdb.objdbg/objdbg02/x2.cc: File deleted.
2159 * gdb.hp/gdb.objdbg/objdbg02/x3.cc: File deleted.
2160 * gdb.hp/gdb.objdbg/objdbg03.exp: File deleted.
2161 * gdb.hp/gdb.objdbg/objdbg03/x1.cc: File deleted.
2162 * gdb.hp/gdb.objdbg/objdbg03/x2.cc: File deleted.
2163 * gdb.hp/gdb.objdbg/objdbg03/x3.cc: File deleted.
2164 * gdb.hp/gdb.objdbg/objdbg04.exp: File deleted.
2165 * gdb.hp/gdb.objdbg/objdbg04/x.h: File deleted.
2166 * gdb.hp/gdb.objdbg/objdbg04/x1.cc: File deleted.
2167 * gdb.hp/gdb.objdbg/objdbg04/x2.cc: File deleted.
2168 * gdb.hp/gdb.objdbg/tools/symaddr: File deleted.
2169 * gdb.hp/gdb.objdbg/tools/symaddr.pa64: File deleted.
2170 * gdb.hp/gdb.objdbg/tools/test-objdbg.cc: File deleted.
2171 * gdb.hp/tools/odump: File deleted.
2175 * gdb.threads/continue-pending-status.exp (saw_thread_2)
2176 (saw_thread_3): New globals.
2177 (top level): Increment them when an event for the corresponding
2179 (no thread starvation): New test.
2183 * gdb.threads/continue-pending-status.c: New file.
2184 * gdb.threads/continue-pending-status.exp: New file.
2188 * gdb.base/disp-step-syscall.exp (disp_step_cross_syscall):
2189 Use gdb_is_target_remote instead of is_remote. Use
2190 gdb_test_multiple instead of gdb_expect. Exit early if
2191 gdb_test_multiple hits its internal matches. Tighten stepi tests
2192 expected output. Fail on exit with any signal, instead of just
2198 * gdb.base/catch-syscall.c [!SYS_pipe] (pipe2_syscall): New
2200 * gdb.base/catch-syscall.exp: Don't skip it on
2201 aarch64*-*-linux* target. Remove elements in all_syscalls.
2202 (test_catch_syscall_multi_arch): Skip it on aarch64*-linux*
2204 (setup_all_syscalls): New proc.
2208 * gdb.base/watchpoint-reuse-slot.exp (valid_addr_p): New proc.
2209 (top level): Skip tests if valid_addr_p returns false for
2214 * gdb.guile/scm-objfile.exp: Add objfile-progspace test.
2218 * gdb.base/catch-syscall.exp: Fix typo in comments.
2222 * gdb.base/catch-syscall.exp: Skip it on HP-UX target.
2226 * dg-extract-results.py: Delete.
2230 Merge dg-extract-results.sh from GCC upstream (r218843).
2233 * dg-extract-results.sh: Use --text with grep to avoid issues with
2234 binary files. Fall back to cat -v, if that doesn't work.
2238 * gdb.base/bp-permanent.exp: Tighten "next over setup" regex.
2242 * lib/mi-support.exp (mi_expect_interrupt): Accept
2243 alternative event for when in all-stop mode.
2247 * gdb.threads/thread-specific-bp.exp: Delete "info threads" test.
2251 * gdb.base/foll-fork.exp: Enable on *-*-openbsd*.
2255 * gdb.base/breakpoint-in-ro-region.exp (test_single_step): In the
2256 regexps for GDB's current line display, accept a hex address
2257 preceding the line number.
2261 * gdb.base/catch-syscall.exp (test_catch_syscall_multi_arch): Set
2262 the 'arch1' variable for "s390*-linux*" targets.
2266 * gdb.threads/clone-thread_db.c: Include unistd.h and pthread.h.
2267 (main): Pass missing retval argument to pthread_join call.
2271 * gdb.threads/thread-execl.exp (do_test): Handle non-stop.
2272 (top level): Call do_test with non-stop as well.
2276 * lib/gdb.exp (gdb_test_multiple) <internal error>: Set result to
2281 * gdb.arch/s390-vregs.exp: New test.
2282 * gdb.arch/s390-vregs.S: New file.
2286 * gdb.gdb/python-interrupts.exp (test_python_interrupts): Adjust
2287 call to catch_command_errors.
2288 * gdb.gdb/python-selftest.exp (selftest_python): Adjust call to
2289 catch_command_errors.
2293 * gdb.gdb/complaints.exp (test_initial_complaints): Also accept
2294 "true" for boolean result.
2295 * gdb.gdb/selftest.exp (test_with_self): Also accept full
2300 * lib/unbuffer_output.c: New file.
2301 * gdb.base/interrupt.c: Include "../lib/unbuffer_output.c".
2302 (main): Call gdb_unbuffer_output.
2306 * gdb.base/catch-syscall.exp: Don't skip it on hppa*-hp-hpux*
2311 * gdb.cp/class2.cc (Dbase, D): New classes.
2312 (main): New local delta.
2313 * gdb.cp/class2.exp: Test printing delta.
2314 * gdb.cp/classes.cc (DynamicBase2, DynamicBar): New classes.
2315 (dynbar): New global.
2316 * gdb.cp/classes.exp (test_ptype_class_objects): Test ptype DynamicBar.
2320 * gdb.compile/compile-ifunc.c: New file.
2321 * gdb.compile/compile-ifunc.exp: New file.
2325 * gdb.base/structs.exp: Check for correct struct on finish.
2329 * lib/dwarf.exp (function_range): Adjust pattern when $func_length
2334 * gdb.arch/cordic.ko.bz2: New file.
2335 * gdb.arch/cordic.ko.debug.bz2: New file.
2336 * gdb.arch/ppc64-symtab-cordic.exp: New file.
2340 * gdb.xml/tdesc-regs.exp: Set core-regs to aarch64-core.xml for
2341 aarch64*-*-* target.
2345 * lib/gdb.exp (delete_breakpoints): Rewrite using
2350 * gdb.base/info-os.c: Include stdlib.h.
2355 * gdb.ada/exec_changed.exp: Add second test where symbol lookup cache
2356 is read after symbols have been re-read.
2357 * gdb.ada/exec_changed/first.adb (First): New procedure Break_Me.
2358 * gdb.ada/exec_changed/second.adb (Second): Ditto.
2362 * gdb.cp/anon-ns.exp: Add test for ptype '(anonymous namespace)'.
2367 * gdb.arch/i386-biarch-core.core.bz2: New file.
2368 * gdb.arch/i386-biarch-core.exp: New file.
2372 * gdb.threads/multi-create-ns-info-thr.exp: Return early if
2377 * gdb.base/solib-corrupted.exp: Expect "stap" as first column of
2382 * gdb.threads/multi-create-ns-info-thr.exp: New file.
2386 * gdb.trace/no-attach-trace.exp: Don't run to main. Do
2387 clean_restart before gdb_target_supports_trace.
2392 * gdb.threads/clone-thread_db.c: New file.
2393 * gdb.threads/clone-thread_db.exp: New file.
2397 PR breakpoints/16812
2398 * gdb.base/catch-gdb-caused-signals.c: New file.
2399 * gdb.base/catch-gdb-caused-signals.exp: New file.
2403 * configure: Regenerated.
2404 * configure.ac: Use GDB_AC_TRANSFORM.
2405 * aclocal.m4: sinclude ../transform.m4.
2409 * lib/dtrace.exp: New file.
2410 * gdb.base/dtrace-probe.exp: Likewise.
2411 * gdb.base/dtrace-probe.d: Likewise.
2412 * gdb.base/dtrace-probe.c: Likewise.
2413 * lib/pdtrace.in: Likewise.
2414 * configure.ac: Output variables with the transformed names of
2415 the strip, readelf, as and nm tools. AC_SUBST lib/pdtrace.in.
2416 * configure: Regenerated.
2420 * gdb.base/stap-probe.exp (stap_test): Remove "SystemTap" from
2421 expected message when trying to access $_probe_* convenience
2422 variables while not on a probe.
2426 * gdb.python/py-framefilter.exp (pagination quit - *): New tests.
2430 * gdb.threads/step-bg-decr-pc-switch-thread.c: New file.
2431 * gdb.threads/step-bg-decr-pc-switch-thread.exp: New file.
2435 * lib/gdb.exp (gdb_load): Always return a result.
2439 * gdb.threads/signal-sigtrap.c: New file.
2440 * gdb.threads/signal-sigtrap.exp: New file.
2444 * gdb.trace/no-attach-trace.c: New file.
2445 * gdb.trace/no-attach-trace.exp: New file.
2449 * gdb.dwarf2/atomic.c: New file.
2450 * gdb.dwarf2/atomic-type.exp: Likewise.
2454 * gdb.btrace/buffer-size.exp: Update "info record" output.
2455 * gdb.btrace/delta.exp: Update "info record" output.
2456 * gdb.btrace/enable.exp: Update "info record" output.
2457 * gdb.btrace/finish.exp: Update "info record" output.
2458 * gdb.btrace/instruction_history.exp: Update "info record" output.
2459 * gdb.btrace/next.exp: Update "info record" output.
2460 * gdb.btrace/nexti.exp: Update "info record" output.
2461 * gdb.btrace/step.exp: Update "info record" output.
2462 * gdb.btrace/stepi.exp: Update "info record" output.
2463 * gdb.btrace/nohist.exp: Update "info record" output.
2467 * gdb.btrace/buffer-size: New.
2471 * gdb.btrace/delta.exp: Update "info record" output.
2472 * gdb.btrace/enable.exp: Update "info record" output.
2473 * gdb.btrace/finish.exp: Update "info record" output.
2474 * gdb.btrace/instruction_history.exp: Update "info record" output.
2475 * gdb.btrace/next.exp: Update "info record" output.
2476 * gdb.btrace/nexti.exp: Update "info record" output.
2477 * gdb.btrace/step.exp: Update "info record" output.
2478 * gdb.btrace/stepi.exp: Update "info record" output.
2479 * gdb.btrace/nohist.exp: Update "info record" output.
2484 * gdb.base/ena-dis-br.exp: Test "enable count" for bad user input.
2488 * gdb.threads/attach-many-short-lived-threads.c (SECONDS): New
2490 (seconds_left, again): New globals.
2491 (main): Wait seconds_left in a 1-second sleep loop instead of
2492 sleeping 180 seconds. If 'again' is set, reset the seconds
2494 * gdb.threads/attach-many-short-lived-threads.exp (test): Set
2495 'again' in the inferior before detaching. Print the seconds left.
2496 (options): New global.
2497 (top level): Build program with -DTIMEOUT=$timeout.
2501 * gdb.base/gdb-sigterm.c (main): Use the TIMEOUT define to
2502 determine how many seconds to pass to 'alarm'.
2503 * gdb.base/gdb-sigterm.exp (top level): Build program with
2505 (do_test): Return success/failure indication. Add more verbose
2506 logging. Don't fail if 200 single steps are seen. Instead, fail
2507 when the test times out.
2508 (passes): New global.
2509 (top level): Break the testing loop if testing fails on any
2510 iteration. Use gdb_assert.
2514 * gdb.base/info-os.c (shmid, semid, msqid): Make variables static
2515 and initialize them.
2516 (ipc_cleanup): New function.
2517 (main): Don't declare shmid, semid, and msqid. Add a call to
2518 atexit so that we call ipc_cleanup on exit.
2522 * boards/native-extended-gdbserver.exp: Remove any target variant
2523 specifications from the board name before clearing the isremote
2524 flag from board_info.
2528 * gdb.base/maint.exp <maint print type argc>: Update expected output.
2532 * gdb.base/completion.exp: Disable completion limiting for
2533 existing tests. Add new tests to check completion limiting.
2534 * gdb.linespec/ls-errs.exp: Disable completion limiting.
2538 * gdb.ada/dyn_arrayidx.exp: Add additional_flags=-gnat12.
2542 * gdb.guile/scm-section-script.c: Add duplicate inlined section script
2543 entries. Duplicate file section script entries.
2544 * gdb.guile/scm-section-script.exp: Add tests for duplicate entries,
2545 inlined entries. Add test for safe-path rejection.
2546 * gdb.python/py-section-script.c: Add duplicate inlined section script
2547 entries. Duplicate file section script entries.
2548 * gdb.python/py-section-script.exp: Add tests for duplicate entries,
2549 inlined entries. Add test for safe-path rejection.
2553 * gdb.ada/disc_arr_bound: New testcase.
2557 * gdb.ada/mi_var_array: New testcase.
2561 * gdb.python/py-objfile.exp: Add tests for objfile.username.
2562 Add test for objfile.filename, objfile.username after objfile
2567 * gdb.python/py-lookup-type.exp (test_lookup_type): Change
2568 the second test to print the name attribute of value
2569 returned by the call to gdb.lookup_type, and adjust
2570 the expected output accordingly.
2574 * gdb.arch/i386-bp_permanent.c (standard): New declaration.
2575 * gdb.base/disp-step-fork.c: Include unistd.h.
2576 * gdb.base/siginfo-obj.c: Include stdio.h.
2577 * gdb.base/siginfo-thread.c: Likewise.
2578 * gdb.mi/non-stop.c: Include unistd.h.
2579 * gdb.mi/nsthrexec.c: Include stdio.h.
2580 * gdb.mi/pthreads.c: Include unistd.h.
2581 * gdb.modula2/unbounded1.c (main): Declare returns int.
2582 * gdb.reverse/consecutive-reverse.c: Likewise.
2583 * gdb.threads/create-fail.c: Include unistd.h.
2584 * gdb.threads/killed.c: Likewise.
2585 * gdb.threads/linux-dp.c: Likewise.
2586 * gdb.threads/non-ldr-exc-1.c: Include stdio.h and string.h.
2587 * gdb.threads/non-ldr-exc-2.c: Likewise.
2588 * gdb.threads/non-ldr-exc-3.c: Likewise.
2589 * gdb.threads/non-ldr-exc-4.c: Likewise.
2590 * gdb.threads/pthreads.c: Include unistd.h.
2591 (main): Declare returns int.
2592 * gdb.threads/tls-main.c (foo): New declaration.
2593 * gdb.threads/watchpoint-fork-mt.c: Define _GNU_SOURCE.
2597 * gdb.mi/mi-var-list-children-invalid-grandchild.c: New file.
2598 * gdb.mi/mi-var-list-children-invalid-grandchild.exp: New file.
2602 * gdb.base/noreturn-return.c: New file.
2603 * gdb.base/noreturn-return.exp: New file.
2604 * gdb.base/noreturn-finish.c: New file.
2605 * gdb.base/noreturn-finish.exp: New file.
2609 * gdb.threads/continue-pending-after-query.c: New file.
2610 * gdb.threads/continue-pending-after-query.exp: New file.
2615 * gdb.base/statistics.exp: Assign spawn id to gdb_spawn_id.
2616 * gdb.base/valgrind-db-attach.exp: Same.
2617 * gdb.base/valgrind-infcall.exp: Same.
2618 * lib/mi-support.exp (default_mi_gdb_start): Same.
2619 * lib/prompt.exp (default_prompt_gdb_start): Same.
2620 * lib/gdb.exp (default_gdb_spawn): Same.
2621 (gdb_interact): New.
2626 * gdb.compile/compile.exp (pointer to jit function): New test.
2630 * lib/gdb.exp (supports_process_record): Return true for
2632 (supports_reverse): Likewise.
2636 * gdb.base/attach-pie-noexec.exp: Use can_spawn_for_attach
2637 instead of checking whether the target board is remote and
2638 use spawn_wait_for_attach instead of exec/sleep.
2639 * gdb.base/attach-twice.exp: Likewise.
2643 * gdb.ada/var_arr_attrs: New testcase.
2649 * gdb.base/bp-cmds-execution-x-script.c: New file.
2650 * gdb.base/bp-cmds-execution-x-script.exp: New file.
2651 * gdb.base/bp-cmds-execution-x-script.gdb: New file.
2656 * gdb.base/batch-preserve-term-settings.c: New file.
2657 * gdb.base/batch-preserve-term-settings.exp: New file.
2661 * gdb.python/py-objfile.exp: Test gdb.lookup_objfile on symlinked
2666 * Makefile.in (clean mostlyclean): Do not delete *.py.
2670 * gdb.python/py-lookup-type.exp: New file.
2674 * gdb.python/py-prompt.exp: When the board can't spawn for attach,
2675 restore GDBFLAGS before returning.
2679 * gdb.python/py-frame.exp (test Frame.read_register(rip)): Use
2680 is_amd64_regs_target and is_x86_like_target.
2684 * lib/dwarf.exp (Dwarf): Flag an error if a numeric attribute value
2685 is given without an explicit form.
2686 * gdb.dwarf2/arr-subrange.exp: Specify forms for all numeric
2688 * gdb.dwarf/corrupt.exp: Ditto.
2689 * gdb.dwarf2/enum-type.exp: Ditto.
2690 * gdb.trace/entry-values.exp: Ditto.
2691 * gdb.trace/unavailable-dwarf-piece.exp: Ditto.
2696 * gdb.base/maint.exp: Remove references to "maint demangle".
2697 * gdb.cp/demangle.exp: Update. "maint demangle" -> "demangle".
2698 Add tests for explicitly specifying language to demangle.
2699 * gdb.dlang/demangle.exp: Ditto.
2703 * gdb.threads/non-stop-fair-events.c: New file.
2704 * gdb.threads/non-stop-fair-events.exp: New file.
2708 * gdb.base/annota1.exp (thread_test): Use srcfile and binfile from
2709 the global scope. Set a breakpoint after all threads are started
2710 rather than stepping over two source lines. Expect the prompt.
2711 * gdb.base/watch_thread_num.c (threads_started_barrier): New
2714 (main): Use threads_started_barrier to wait for all threads to
2715 start. Main thread no longer calls thread_function. Exit after
2717 (loop): New function.
2718 (thread_function): Wait on threads_started_barrier barrier. Call
2719 'loop' at each iteration.
2720 * gdb.base/watch_thread_num.exp: Continue to breakpoint after all
2721 threads have started, instead of hardcoding number of "next"
2722 steps. Use an access watchpoint instead of a write watchpoint.
2726 * gdb.threads/ia64-sigill.c (threads_started_barrier): New global.
2727 (thread_func): Wait on barrier.
2728 (main): Wait for all threads to start before stopping GDB.
2729 * gdb.threads/siginfo-threads.c (threads_started_barrier): New
2731 (thread1_func, thread2_func): Wait on barrier.
2732 (main): Wait for all threads to start before stopping GDB.
2733 * gdb.threads/watchthreads-reorder.c (threads_started_barrier):
2735 (thread1_func, thread2_func): Wait on barrier.
2736 (main): Wait for all threads to start before stopping GDB.
2740 * gdb.threads/attach-many-short-lived-threads.c: New file.
2741 * gdb.threads/attach-many-short-lived-threads.exp: New file.
2745 * gdb.threads/fork-thread-pending.exp: Switch to the main thread
2746 instead of to thread 2.
2747 * gdb.threads/signal-command-multiple-signals-pending.c (main):
2748 Add barrier around each pthread_create call instead of around all
2750 * gdb.threads/signal-command-multiple-signals-pending.exp (test):
2751 Set a break on thread_function and have the child threads hit it
2756 * lib/gdb.exp (can_spawn_for_attach): New procedure.
2757 (spawn_wait_for_attach): Error out if can_spawn_for_attach returns
2759 * gdb.base/attach.exp: Use can_spawn_for_attach instead of
2760 checking whether the target board is remote.
2761 * gdb.multi/multi-attach.exp: Likewise.
2762 * gdb.python/py-sync-interp.exp: Likewise.
2763 * gdb.server/ext-attach.exp: Likewise.
2764 * gdb.python/py-prompt.exp: Use can_spawn_for_attach before the
2765 tests that need to attach, instead of checking whether the target
2766 board is remote at the top of the file.
2770 * gdb.trace/entry-values.exp: Set call_insn for MIPS target.
2774 Fix testcase compilation.
2775 * gdb.arch/i386-avx512.exp (comp_flags): Remove /common.
2779 * gdb.python/py-type.exp: Add a couple test about empty
2780 array creation, and negative-length array creation.
2784 * gdb.cp/nsalias.exp: Fix output of external/declaration flags.
2788 * gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc.
2792 * gdb.trace/entry-values.exp: Update comments. Rename variable
2793 bar_call_foo to returned_from_foo.
2798 * gdb.linespec/break-asm-file.c: New file.
2799 * gdb.linespec/break-asm-file.exp: New file.
2800 * gdb.linespec/break-asm-file0.s: New file.
2801 * gdb.linespec/break-asm-file1.s: New file.
2806 * gdb.base/float.exp: Handle the new output from "info float" on
2811 Fix MinGW compilation.
2812 * gdb.compile/compile-ops.exp: Update untested message if
2813 !skip_compile_feature_tests.
2814 * gdb.compile/compile-setjmp.exp: Likewise.
2815 * gdb.compile/compile-tls.exp: Likewise.
2816 * gdb.compile/compile.exp: Likewise.
2817 * lib/gdb.exp (skip_compile_feature_tests): Check also "Command not
2818 supported on this host".
2822 * boards/stabs.exp: New file.
2826 * gdb.base/completion.exp: Adjust to format changes of "maint
2827 print user-registers".
2832 * gdb.arch/aarch64-fp.c: New file.
2833 * gdb.arch/aarch64-fp.exp: New file.
2837 Merge dg-extract-results.{sh,py} from GCC upstream (r210243,
2838 r210637, r210913, r211666, r215400, r215817).
2841 * dg-extract-results.py: New file.
2842 * dg-extract-results.sh: Use it if the environment seems
2847 * dg-extract-results.py (parse_run): Handle warnings that
2848 are printed before a test harness is run.
2852 * dg-extract-results.py (Named): Remove __cmp__ method.
2853 (output_variation): Use a key to sort variation.harnesses.
2857 * dg-extract-results.py: For Python 3, force sys.stdout to
2858 handle surrogate escape sequences.
2859 (safe_open): New function.
2860 (output_segment, main): Use it.
2864 * dg-extract-results.py (Prog.result_re): Include options
2869 * dg-extract-results.py (output_variation): Always sort if
2874 * lib/gdb.exp (default_gdb_start): After starting gdb, loop
2875 as long as we get pagination notifications.
2879 * Makefile.in (check-gdb.%): Restore.
2880 * README: Mention it.
2884 * gdb.ada/str_uninit: New testcase.
2889 * gdb.base/vla-stub-define.c: New file.
2890 * gdb.base/vla-stub.c: New file.
2891 * gdb.base/vla-stub.exp: New file.
2897 * configure.ac: Add gdb.compile/.
2898 * configure: Regenerate.
2899 * gdb.compile/Makefile.in: New file.
2900 * gdb.compile/compile-ops.exp: New file.
2901 * gdb.compile/compile-ops.c: New file.
2902 * gdb.compile/compile-tls.c: New file.
2903 * gdb.compile/compile-tls.exp: New file.
2904 * gdb.compile/compile-constvar.S: New file.
2905 * gdb.compile/compile-constvar.c: New file.
2906 * gdb.compile/compile-mod.c: New file.
2907 * gdb.compile/compile-nodebug.c: New file.
2908 * gdb.compile/compile-setjmp-mod.c: New file.
2909 * gdb.compile/compile-setjmp.c: New file.
2910 * gdb.compile/compile-setjmp.exp: New file.
2911 * gdb.compile/compile-shlib.c: New file.
2912 * gdb.compile/compile.c: New file.
2913 * gdb.compile/compile.exp: New file.
2914 * lib/gdb.exp (skip_compile_feature_tests): New proc.
2918 * lib/dwarf.exp (_location): Ignore blank lines. Allow comments.
2919 Handle DW_OP_pick, DW_OP_skip, DW_OP_bra.
2923 * lib/gdb-python.exp (get_python_valueof): New function.
2924 * gdb.python/py-objfile.exp: Add tests for gdb.lookup_objfile.
2928 * gdb.base/completion.exp: Add test for completion of "info
2933 * gdb.base/func-ptrs.c: New file.
2934 * gdb.base/func-ptrs.exp: New file.
2938 PR breakpoints/17012
2939 * gdb.base/dprintf-detach.c: New file.
2940 * gdb.base/dprintf-detach.exp: New file.
2944 * gdb.trace/qtro.exp: Replace gdbserver detection code by...
2945 * lib/gdb.exp (target_is_gdbserver): New procedure.
2949 * gdb.python/py-objfile.exp: Add tests for objfile.owner.
2953 * gdb.guile/scm-error.exp: Remove the third argument to
2954 gdb_remote_download.
2955 * gdb.guile/scm-frame-args.exp: Likewise.
2956 * gdb.guile/scm-section-script.exp: Likewise.
2960 * gdb.arch/i386-bp_permanent.exp: Use standard_testfile.
2964 * gdb.python/py-objfile.exp: Add tests for
2965 objfile.add_separate_debug_file.
2969 * lib/gdb.exp (get_build_id): New function.
2970 (build_id_debug_filename_get): Rewrite to use it.
2971 * gdb.python/py-objfile.exp: Add test for objfile.build_id.
2975 * gdb.cp/expand-psymtabs-cxx.exp: Accept any address of
2976 `method(long)', not just 0x0.
2977 * gdb.cp/nsalias.exp: Align code labels to 4.
2978 * gdb.dwarf2/dw2-canonicalize-type.S (main): Expand to 4-bytes.
2979 * gdb.dwarf2/dw2-empty-pc-range.S (main): Likewise.
2980 * gdb.dwarf2/pr11465.S (_ZN1N1cE): Likewise.
2981 * gdb.dwarf2/dw2-case-insensitive.c (START_INSNS): New macro.
2982 (cu_text_start, FUNC_lang_start): Use `START_INSNS'.
2983 * gdb.dwarf2/dw2-stack-boundary.exp: Accept noise in complaints.
2988 * gdb.cp/anon-ns.cc: Move guts of this file to ...
2989 * gdb.cp/anon-ns2.cc: ... here. New file.
2990 * gdb.cp/anon-ns.exp: Update.
2994 * gdb.python/py-events.py (inferior_call_handler): New.
2995 (register_changed_handler, memory_changed_handler): New.
2996 (test_events.invoke): Register new handlers.
2997 * gdb.python/py-events.exp: Add tests for inferior call,
2998 memory_changed and register_changed events.
3002 * gdb.base/execl-update-breakpoints.exp: Specify the link address
3003 with '-Ttext-segment' instead of '-Ttext'. Fall back to '-Ttext'
3004 if the linker doesn't understand this.
3008 * gdb.python/python.exp: Change expected reply to help().
3012 * configure.ac: Remove AC_ARG_ENABLE for gdbtk. Don't invoke
3013 AC_CONFIG_SUBDIRS(gdb.gdbtk).
3014 * configure: Re-generated.
3018 * gdb.cp/chained-calls.cc: New file.
3019 * gdb.cp/chained-calls.exp: New file.
3020 * gdb.cp/smartp.exp: Remove KFAIL for "p c2->inta".
3024 * gdb.ada/py_range.exp: Add parentheses to python calls to print.
3025 * gdb.dwarf2/symtab-producer.exp: Same.
3026 * gdb.gdb/python-interrupts.exp: Same.
3027 * gdb.gdb/python-selftest.exp: Same.
3028 * gdb.python/py-linetable.exp: Same.
3029 * gdb.python/py-type.exp: Same.
3030 * gdb.python/py-value-cc.exp: Same.
3031 * gdb.python/py-value.exp: Same.
3035 * gdb.base/break-probes.exp: Match library name prefixed with
3040 * gdb.python/py-linetable.exp: Escape properly sorted(fset)
3041 test expected output. Add parentheses for the call to print.
3042 Remove L suffix from integers.
3046 * gdb.dwarf2/dw2-op-out-param.S: Fix comment.
3050 * gdb.trace/entry-values.c: Remove asms.
3051 (foo): Add foo_label.
3052 (bar): Add bar_label.
3053 * gdb.trace/entry-values.exp: Remove code computing foo's
3054 length and bar's length.
3055 (Dwarf::assemble): Invoke function_range for bar and use
3056 MACRO_AT_func for foo.
3060 * gdb.dwarf2/dw2-compdir-oldgcc.S: Define label .Lgcc42_procstart
3061 and .Lgcc43_procstart. Use .Lgcc42_procstart instead of gcc42.
3062 Use .Lgcc43_procstart instead of gcc43.
3066 * gdb.ada/n_arr_bound: New testcase.
3070 PR breakpoints/10737
3071 * gdb.base/catch-syscall.exp (do_syscall_tests): Call
3072 test_catch_syscall_multi_arch.
3073 (test_catch_syscall_multi_arch): New function.
3077 * gdb.base/maint.exp: Update expected output.
3081 * gdb.base/bp-permanent.c (NOP): Define as 2-byte instead of
3082 4-byte instruction on S390.
3086 * gdb.ada/arr_arr: New testcase.
3090 * gdb.ada/pkd_arr_elem: New Testcase.
3094 * gdb.reverse/break-precsave: Expect completion message for
3096 * gdb.reverse/consecutive-precsave.exp: Likewise.
3097 * gdb.reverse/finish-precsave.exp: Likewise.
3098 * gdb.reverse/i386-precsave.exp: Likewise.
3099 * gdb.reverse/machinestate-precsave.exp: Likewise.
3100 * gdb.reverse/sigall-precsave.exp: Likewise.
3101 * gdb.reverse/solib-precsave.exp: Likewise.
3102 * gdb.reverse/step-precsave.exp: Likewise.
3103 * gdb.reverse/until-precsave.exp: Likewise.
3104 * gdb.reverse/watch-precsave.exp: Likewise.
3108 * gdb.base/bp-permanent.c: Include unistd.h.
3109 * gdb.python/py-framefilter-mi.c (main): Add return type.
3110 * gdb.python/py-framefilter.c (main): Likewise.
3111 * gdb.trace/actions-changed.c (main): Likewise.
3115 * gdb.mi/until.c: Add eye-catchers.
3116 * gdb.mi/mi-until.exp: Refer to eye-catchers instead of literal
3121 * gdb.base/condbreak.exp: Drop references to removed non-prototype
3122 function header variants in break1.c.
3123 * gdb.base/ena-dis-br.exp: Likewise.
3124 * gdb.base/hbreak2.exp: Likewise.
3125 * gdb.reverse/until-precsave.exp: Drop references to removed
3126 non-prototype function header variants in ur1.c.
3127 * gdb.reverse/until-reverse.exp: Likewise.
3131 * lib/dwarf.exp (Dwarf::cu, Dwarf::tu): Emit
3132 ${_cu_offset_size} bytes abbrev offset.
3137 * gdb.base/line-symtabs.exp: New file.
3138 * gdb.base/line-symtabs.c: New file.
3139 * gdb.base/line-symtabs.h: New file.
3143 * gdb.dwarf2/dw2-ifort-parameter.c: Remove inline asm.
3144 (func): Add label func_label.
3145 * gdb.dwarf2/dw2-ifort-parameter.exp (Dwarf::assemble):
3146 Replace low_pc and high_pc with MACRO_AT_range.
3147 Replace name, low_pc and high_pc with MACRO_AT_func.
3151 * gdb.dwarf2/implptr-optimized-out.exp (Dwarf::assemble):
3152 Replace name, low_pc and high_pc with MACRO_AT_func.
3156 * gdb.dwarf2/implptr-optimized-out.exp: Use Dwarf::assemble to
3157 produce debug information.
3158 * gdb.dwarf2/implptr-optimized-out.S: Removed.
3162 * gdb.dwarf2/dwz.exp: Remove the code to compile main.c to
3163 object and get function length.
3164 (Dwarf::assemble): Replace name, low_pc and high_pc attributes
3166 (top-level): Replace gdb_compile and clean_restart with
3167 prepare_for_testing.
3168 * gdb.dwarf2/main.c (main): Add label main_label.
3172 * lib/dwarf.exp (function_range): New procedure.
3173 (Dwarf::_handle_macro_at_func): New procedure.
3174 (Dwarf::_handle_macro_at_range): New procedure.
3175 (Dwarf): Handle MACRO_AT_func and MACRO_AT_range.
3179 * lib/dwarf.exp (_handle_DW_TAG): Move some code to ...
3180 (_handle_attribute): New procedure.
3184 * gdb.ada/cond_lang/foo.c (callme): Add return type.
3185 * gdb.base/call-sc.c (zed): Likewise.
3186 * gdb.base/checkpoint.c (main): Likewise.
3187 * gdb.base/dump.c (main): Likewise.
3188 * gdb.base/gcore.c (main): Likewise.
3189 * gdb.base/huge.c (main): Likewise.
3190 * gdb.base/multi-forks.c (main): Likewise.
3191 * gdb.base/pr10179-a.c (main): Likewise.
3192 * gdb.base/savedregs.c (main): Likewise.
3193 * gdb.base/sigaltstack.c (main): Likewise.
3194 * gdb.base/siginfo.c (main): Likewise.
3195 * gdb.base/structs.c (zed): Likewise.
3196 * gdb.mi/mi-stack.c (callee3, callee2, callee1, main): Likewise.
3197 * gdb.mi/mi-syn-frame.c (main): Likewise.
3198 * gdb.mi/until.c (foo, main): Likewise.
3199 * gdb.base/global-var-nested-by-dso.c (b_main, c_main): Declare.
3200 * gdb.base/solib-weak.c (foo): Declare.
3201 * gdb.base/attach-twice.c: Include stdio.h.
3202 * gdb.base/weaklib1.c: Likewise.
3203 * gdb.base/weaklib2.c: Likewise.
3204 * gdb.base/catch-signal-fork.c: Include stdio.h and sys/wait.h.
3205 * gdb.mi/mi-condbreak-call-thr-state-mt.c: Include stdio.h and
3207 * gdb.base/attach-pie-misread.c: Include stdlib.h.
3208 * gdb.mi/mi-exit-code.c: Likewise.
3209 * gdb.base/break-interp-lib.c: Include string.h.
3210 * gdb.base/coremaker.c: Likewise.
3211 * gdb.base/testenv.c: Likewise.
3212 * gdb.python/py-finish-breakpoint.c: Likewise.
3213 * gdb.base/inferior-died.c: Include sys/wait.h.
3214 * gdb.base/fileio.c: Include time.h.
3215 * gdb.base/async-shell.c: Include unistd.h.
3216 * gdb.base/dprintf-non-stop.c: Likewise.
3217 * gdb.base/info-os.c: Likewise.
3218 * gdb.mi/mi-console.c: Likewise.
3219 * gdb.mi/watch-nonstop.c: Likewise.
3220 * gdb.python/py-events.c: Likewise.
3221 * gdb.base/async.c (baz): Move up before its invocation.
3222 * gdb.base/code_elim2.c (my_global_func): Likewise.
3223 * gdb.base/skip-solib-lib.c (multiply): Likewise.
3224 * gdb.base/advance.c (func2): Likewise.
3228 * gdb.base/annota1.c: Remove #ifdef PROTOTYPES, keep prototyped
3230 * gdb.base/annota3.c: Likewise.
3231 * gdb.base/async.c: Likewise.
3232 * gdb.base/average.c: Likewise.
3233 * gdb.base/call-ar-st.c: Likewise.
3234 * gdb.base/call-rt-st.c: Likewise.
3235 * gdb.base/call-sc.c: Likewise.
3236 * gdb.base/call-strs.c: Likewise.
3237 * gdb.base/ending-run.c: Likewise.
3238 * gdb.base/execd-prog.c: Likewise.
3239 * gdb.base/exprs.c: Likewise.
3240 * gdb.base/foll-exec.c: Likewise.
3241 * gdb.base/foll-fork.c: Likewise.
3242 * gdb.base/foll-vfork.c: Likewise.
3243 * gdb.base/funcargs.c: Likewise.
3244 * gdb.base/gcore.c: Likewise.
3245 * gdb.base/jump.c: Likewise.
3246 * gdb.base/langs0.c: Likewise.
3247 * gdb.base/langs1.c: Likewise.
3248 * gdb.base/langs2.c: Likewise.
3249 * gdb.base/mips_pro.c: Likewise.
3250 * gdb.base/nodebug.c: Likewise.
3251 * gdb.base/opaque0.c: Likewise.
3252 * gdb.base/opaque1.c: Likewise.
3253 * gdb.base/recurse.c: Likewise.
3254 * gdb.base/run.c: Likewise.
3255 * gdb.base/scope0.c: Likewise.
3256 * gdb.base/scope1.c: Likewise.
3257 * gdb.base/setshow.c: Likewise.
3258 * gdb.base/setvar.c: Likewise.
3259 * gdb.base/shmain.c: Likewise.
3260 * gdb.base/shr1.c: Likewise.
3261 * gdb.base/shr2.c: Likewise.
3262 * gdb.base/sigall.c: Likewise.
3263 * gdb.base/signals.c: Likewise.
3264 * gdb.base/so-indr-cl.c: Likewise.
3265 * gdb.base/solib2.c: Likewise.
3266 * gdb.base/structs.c: Likewise.
3267 * gdb.base/sum.c: Likewise.
3268 * gdb.base/vforked-prog.c: Likewise.
3269 * gdb.base/watchpoint.c: Likewise.
3270 * gdb.reverse/shr2.c: Likewise.
3271 * gdb.reverse/until-reverse.c: Likewise.
3272 * gdb.reverse/ur1.c: Likewise.
3273 * gdb.reverse/watch-reverse.c: Likewise.
3277 * gdb.base/sepdebug.c: Remove #ifdef PROTOTYPES, keep prototyped
3279 * gdb.base/sepdebug.exp: Drop references to removed code.
3283 * gdb.base/list0.h: Remove #ifdef PROTOTYPES, keep prototyped
3284 variant. Preserve original line numbering.
3285 * gdb.base/list1.c: Likewise.
3289 * gdb.base/break.c: Remove #ifdef PROTOTYPES, keep prototyped
3291 * gdb.base/break1.c: Likewise.
3292 * gdb.base/break.exp: Drop references to removed code.
3296 * gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped
3301 * gdb.base/callfuncs.exp (perform_all_tests): Re-indent.
3305 * gdb.base/callfuncs.exp: Remove 'prototypes' variable. Move main
3306 logic into perform_all_tests() and invoke it with and without
3307 function header prototypes.
3308 (do_function_calls): Remove conditional XFAIL for PR 5318.
3309 (rerun_and_prepare): Remove duplicate code.
3310 (perform_all_tests): New. Main logic moved here.
3314 * gdb.base/callfuncs.c (t_float_many_args): Fix syntax error in
3315 code guarded by #ifdef NO_PROTOTYPES.
3316 (t_double_many_args): Likewise.
3317 (DEF_FUNC_MANY_ARGS_1): Likewise.
3318 (DEF_FUNC_VALUES_1): Likewise.
3319 (t_structs_ldc): Renamed from t_structs_fc in conditional code
3320 guarded by #ifdef PROTOTYPES.
3324 * gdb.mi/mi-console.c: Add eye-catcher.
3325 * gdb.mi/mi-console.exp (semihosted_string): Refer to eye-catcher
3326 instead of literal line number.
3330 * gdb.base/shr2.c: Add eye-catcher.
3331 * gdb.base/shlib-call.exp: Refer to eye-catcher instead of literal
3336 * gdb.base/jump.c: Add eye-catchers.
3337 * gdb.base/jump.exp: Refer to eye-catchers instead of literal line
3342 * gdb.base/execd-prog.c: Add eye-catchers.
3343 * gdb.base/foll-exec.c: Likewise.
3344 * gdb.base/foll-exec.exp: Refer to eye-catchers instead of literal
3349 * gdb.base/ending-run.c: Add eye-catchers.
3350 * gdb.base/ending-run.exp: Refer to eye-catchers instead of
3351 literal line numbers.
3355 * gdb.base/call-rt-st.c: Add eye-catchers.
3356 * gdb.base/call-rt-st.exp: Refer to eye-catchers instead of
3357 literal line numbers.
3361 * gdb.base/call-ar-st.c: Add eye-catchers.
3362 * gdb.base/call-ar-st.exp: Refer to eye-catchers instead of
3363 literal line numbers.
3367 * gdb.base/average.c: Add eye-catchers.
3368 * gdb.base/sum.c: Likewise.
3369 * gdb.base/dbx.exp: Use eye-catchers to determine line numbers for
3370 regexps dynamically.
3374 * gdb.base/solib1.c: Add eye-catchers.
3375 * gdb.base/so-impl-ld.exp: Match against eye-catchers instead of
3376 literal line numbers.
3380 * gdb.threads/leader-exit.exp: Test sending ctrl-c works after the
3385 * gdb.arch/i386-bp_permanent.c: New file.
3386 * gdb.arch/i386-bp_permanent.exp: Don't skip on x86_64.
3387 (srcfile): Set to i386-bp_permanent.c.
3388 (top level): Adjust to work in both 32-bit and 64-bit modes. Test
3389 that stepi does not execute the 'leave' instruction, instead of
3390 testing it does execute.
3391 * gdb.base/bp-permanent.c: New file.
3392 * gdb.base/bp-permanent.exp: New file.
3397 * gdb.base/symtab-search-order.exp: New file.
3398 * gdb.base/symtab-search-order.c: New file.
3399 * gdb.base/symtab-search-order-1.c: New file.
3400 * gdb.base/symtab-search-order-shlib-1.c: New file.
3405 * gdb.base/sigstep.exp (in_handler_map) <si+advance>: xfail
3411 * gdb.cp/pr17494.cc: New file.
3412 * gdb.cp/pr17494.exp: New file.
3416 * gdb.python/python.exp: Get working directory and match the
3417 output of "set extended-prompt \\w " with it.
3421 * gdb.python/py-objfile.exp: Add tests for setting random attributes
3423 * gdb.python/py-progspace.exp: Add tests for setting random attributes
3428 * gdb.base/fullpath-expand.exp: Skip for a remote host.
3429 * gdb.base/realname-expand.exp: Likewise.
3430 * gdb.linespec/macro-relative.exp: Likewise.
3435 * gdb.threads/schedlock.c (some_function): New function.
3436 (call_function): New global.
3437 (MAYBE_CALL_SOME_FUNCTION): New macro.
3438 (thread_function): Call it.
3439 * gdb.threads/schedlock.exp (get_args): Add description parameter,
3440 and use it instead of a global counter. Adjust all callers.
3441 (get_current_thread): Use "find current thread" for test message
3442 here rather than having all callers pass down the same string.
3443 (goto_loop): New procedure, factored out from ...
3444 (my_continue): ... this.
3445 (step_ten_loops): Change parameter from test message to command to
3447 (list_count): Delete global.
3448 (check_result): New procedure, factored out from duplicate top
3450 (continue tests): Wrap in with_test_prefix.
3451 (test_step): New procedure, factored out from duplicate top level
3453 (top level): Test "step" in combination with all scheduler-locking
3454 modes. Test "next" in combination with all scheduler-locking
3455 modes, and in combination with stepping over a function call or
3457 * gdb.threads/next-bp-other-thread.c: New file.
3458 * gdb.threads/next-bp-other-thread.exp: New file.
3463 * gdb.python/python.exp: Test a multi-line command that spawns
3465 * gdb.base/multi-line-starts-subshell.exp: New file.
3469 * gdb.base/fileio.exp: Make directories on host.
3473 * gdb.base/fileio.c (test_write): Close the file.
3478 * gdb.base/sigstep.c (no_handler): New global.
3479 (main): If 'no_handler is true, set the signal handlers to
3481 * gdb.base/sigstep.exp (breakpoint_over_handler): Add
3482 with_sw_watch and no_handler parameters. Handle them.
3483 (top level) <stepping over handler when stopped at a breakpoint
3484 test>: Add a test axis for testing with a software watchpoint, and
3485 another for testing with the signal handler set to SIG_IGN.
3486 * gdb.base/step-sw-breakpoint-adjust-pc.c: New file.
3487 * gdb.base/step-sw-breakpoint-adjust-pc.exp: New file.
3492 * gdb.base/sigstep.c (handler): Add a few more writes to 'done'.
3493 * gdb.base/sigstep.exp (other_handler_location): New global.
3494 (advance): Support stepping into the signal handler, and running
3495 commands while in the handler.
3496 (in_handler_map): New global.
3497 (top level): In the advance test, add combinations for getting
3498 into the handler with stepping commands, and for running commands
3499 in the handler. Add comment descripting the advancei tests.
3503 * gdb.base/sigstep.exp: Use build_executable instead of
3504 prepare_for_testing.
3505 (top level): Move code that starts GDB, runs to main and creates a
3507 (restart): ... this new procedure.
3508 (top level): Move backtrace from signal handler test to ...
3509 (validate_backtrace): ... this new procedure.
3510 (advance, advancei): Rename parameter from 'i' to 'cmd'. Use
3511 with_test_prefix. Always restart GDB.
3512 (skip_to_handler): Rename parameter from 'i' to 'cmd'. Use
3513 with_test_prefix. Always restart GDB. No need to delete
3514 breakpoints after the test.
3515 (test_skip_handler): Remove prefix parameter.
3516 (skip_over_handler, breakpoint_to_handler)
3517 (breakpoint_to_handler_entry, breakpoint_over_handler): Rename
3518 parameter from 'i' to 'cmd'. Use with_test_prefix. Always
3519 restart GDB. No need to delete breakpoints after the test.
3520 (top level): Use foreach to call the test procedures with
3525 * gdb.base/sigaltstack.exp: Update to use Bugzilla bug numbers
3526 instead of GNATS numbers.
3527 * gdb.base/sigbpt.exp: Likewise.
3528 * gdb.base/siginfo.exp: Likewise.
3529 * gdb.base/sigstep.exp: Likewise.
3533 * gdb.base/sigstep.c (dummy): New global.
3534 (main): Issue a couple writes to the new global.
3535 * gdb.base/sigstep.exp (get_next_pc, test_skip_handler): New
3537 (skip_over_handler): Use test_skip_handler.
3538 (top level): Call skip_over_handler for stepi and nexti too.
3539 (breakpoint_over_handler): Use test_skip_handler.
3540 (top level): Call breakpoint_over_handler for stepi and nexti too.
3544 * gdb.trace/tfile.c (adjust_function_address)
3545 [__powerpc64__ && _CALL_ELF != 2]: Get function address from
3546 function descriptor.
3550 * gdb.base/foll-fork.exp (test_follow_fork,
3551 catch_fork_child_follow): Check for updated fork messages emitted
3553 * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step,
3554 vfork_parent_follow_to_bp, vfork_and_exec_child_follow_to_main_bp,
3555 vfork_and_exec_child_follow_through_step): Check for updated vfork
3556 messages emitted from infrun.c.
3560 * gdb.base/corefile.exp: Remove references to ultrix.
3561 * gdb.base/interrupt.exp: Likewise.
3562 * gdb.base/whatis.exp: Likewise.
3563 * gdb.gdb/selftest.exp: Likewise.
3564 * gdb.threads/manythreads.exp: Likewise.
3565 * gdb.threads/print-threads.exp: Likewise.
3566 * gdb.threads/pthreads.exp:: Likewise.
3567 * gdb.threads/schedlock.exp: Likewise.
3571 * gdb.cp/non-trivial-retval.cc: Add a test case.
3572 * gdb.cp/non-trivial-retval.exp: Add a test.
3576 * gdb.python/py-objfile-script-gdb.py.in: Rename it to ...
3577 * gdb.python/py-objfile-script-gdb.py: New file.
3578 * gdb.python/py-objfile-script.exp: Update reference to
3579 py-objfile-script-gdb.py.in. Use gdb_remote_donwload instead
3580 of remote_download. Remove the dest file.
3584 * gdb.base/checkpoint.exp: Don't remove file copied on host.
3585 * gdb.base/step-line.exp: Likewise.
3586 * gdb.dwarf2/dw2-anonymous-func.exp: Likewise.
3587 * gdb.dwarf2/dw2-basic.exp: Likewise.
3588 * gdb.dwarf2/dw2-compressed.exp: Likewise.
3589 * gdb.dwarf2/dw2-filename.exp: Likewise.
3590 * gdb.dwarf2/dw2-intercu.exp: Likewise.
3591 * gdb.dwarf2/dw2-intermix.exp: Likewise.
3592 * gdb.dwarf2/dw2-producer.exp: Likewise.
3593 * gdb.dwarf2/mac-fileno.exp: Likewise.
3594 * gdb.python/py-frame-args.exp: Likewise.
3595 * gdb.python/py-framefilter.exp: Likewise.
3596 * gdb.python/py-mi.exp: Likewise.
3597 * gdb.python/py-objfile-script.exp: Likewise
3598 * gdb.python/py-pp-integral.exp: Likewise.
3599 * gdb.python/py-pp-re-notag.exp: Likewise.
3600 * gdb.python/py-prettyprint.exp: Likewise.
3601 * gdb.python/py-section-script.exp: Likewise.
3602 * gdb.python/py-typeprint.exp: Likewise.
3603 * gdb.python/py-xmethods.exp: Likewise.
3604 * gdb.stabs/weird.exp: Likewise.
3605 * gdb.xml/tdesc-regs.exp: Likewise.
3609 * gdb.dwarf2/dw2-dir-file-name.exp (addr_len): New.
3610 (out_cu): Use addr_len for the size of addresses.
3611 (out_line): Likewise. Size DW_LNE_set_address instruction
3612 according to addr_len.
3613 * gdb.dwarf2/dw2-dir-file-name.c (START_INSNS): New.
3614 (FUNC): Add START_INSNS to definition.
3618 * gdb.base/argv0-symlink.exp: Check argv[0] value if
3619 gdb_has_argv0 return true.
3620 * gdb.guile/scm-value.exp (test_value_in_inferior): Don't
3621 check [target_info exists noargs], check [gdb_has_argv0]
3623 * gdb.python/py-value.exp (test_value_in_inferior): Likewise.
3624 * lib/gdb.exp (gdb_has_argv0, gdb_has_argv0_1): New
3629 * gdb.python/py-events.exp: Update expected output for clear_objfiles
3631 * gdb.python/py-events.py: Add clear_objfiles event.
3635 * gdb.python/py-objfile.exp: Test progspace attribute.
3639 * gdb.guile/scm-breakpoint.exp: Do not assume any
3640 directory separators when matching source file paths.
3641 * gdb.python/py-breakpoint.exp: Likewise.
3642 * gdb.reverse/break-precsave.exp: Likewise.
3643 * gdb.reverse/break-reverse.exp: Likewise.
3644 * gdb.reverse/consecutive-precsave.exp: Likewise.
3645 * gdb.reverse/finish-precsave.exp: Likewise.
3646 * gdb.reverse/finish-reverse-bkpt.exp: Likewise.
3647 * gdb.reverse/finish-reverse.exp: Likewise.
3648 * gdb.reverse/i386-precsave.exp: Likewise.
3649 * gdb.reverse/i387-env-reverse.exp: Likewise.
3650 * gdb.reverse/i387-stack-reverse.exp: Likewise.
3651 * gdb.reverse/machinestate-precsave.exp: Likewise.
3652 * gdb.reverse/machinestate.exp: Likewise.
3653 * gdb.reverse/sigall-precsave.exp: Likewise.
3654 * gdb.reverse/solib-precsave.exp: Likewise.
3655 * gdb.reverse/step-precsave.exp: Likewise.
3656 * gdb.reverse/until-precsave.exp: Likewise.
3657 * gdb.reverse/watch-precsave.exp: Likewise.
3658 * gdb.reverse/watch-reverse.exp: Likewise.
3662 * lib/gdb.exp (gdb_skip_xml_test): Copy trivial.xml to host.
3663 * gdb.xml/tdesc-regs.exp: Copy single-reg.xml to host.
3668 * gdb.base/bg-execution-repeat.c: New file.
3669 * gdb.base/bg-execution-repeat.exp: New file.
3674 * gdb.base/continue-all-already-running.c: New file.
3675 * gdb.base/continue-all-already-running.exp: New file.
3680 * gdb.base/annota-input-while-running.c: New file.
3681 * gdb.base/annota-input-while-running.exp: New file.
3685 * gdb.base/callfuncs.exp: emove references to osf.
3686 * gdb.base/sigall.exp: Likewise.
3687 * gdb.gdb/selftest.exp: Likewise.
3688 * gdb.hp/gdb.base-hp/callfwmall.exp: Likewise.
3689 * gdb.mi/non-stop.c: Likewise.
3690 * gdb.mi/pthreads.c: Likewise.
3691 * gdb.reverse/sigall-precsave.exp: Likewise.
3692 * gdb.reverse/sigall-reverse.exp: Likewise.
3693 * gdb.threads/pthreads.c: Likewise.
3694 * gdb.threads/pthreads.exp: Likewise.
3698 * gdb.base/commands.exp (gdbvar_complex_if_while_test): Don't
3699 check 'target_info exists noargs'.
3700 (test_command_prompt_position): Likewise.
3701 (progvar_simple_if_test): Don't check 'target_info exists noargs'.
3703 (progvar_simple_while_test): Likewise.
3704 (progvar_complex_if_while_test): Likewise.
3705 (if_while_breakpoint_command_test): Likewise.
3706 (infrun_breakpoint_command_test): Likewise.
3707 (breakpoint_command_test): Likewise.
3708 (watchpoint_command_test): Likewise.
3709 (bp_deleted_in_command_test): Likewise.
3710 (temporary_breakpoint_commands): Likewise.
3714 * gdb.base/remotetimeout.exp: Remove noargs checking.
3719 * gdb.base/breakpoint-in-ro-region.c (main): Add more instructions.
3720 * gdb.base/breakpoint-in-ro-region.exp
3721 (probe_target_hardware_step): New procedure.
3722 (top level): Probe hardware stepping and hardware breakpoint
3723 support. Test stepping through a read-only region, with both
3724 "breakpoint auto-hw" on and off and both "always-inserted" on and
3729 * gdb.dlang/demangle.exp: Update for demangling changes.
3733 * gdb.cp/non-trivial-retval.cc: Add new test cases.
3734 * gdb.cp/non-trivial-retval.exp: Add new tests.
3740 * gdb.cp/non-trivial-retval.cc: New file.
3741 * gdb.cp/non-trivial-retval.exp: New file.
3745 * gdb.python/py-parameter.exp: Don't match $srcdir/$subdir on
3750 * gdb.python/py-symbol.exp: Match file base name if host is
3751 remote, otherwise match file name with dir name.
3752 * gdb.python/py-symtab.exp: Likewise.
3753 * gdb.python/python.exp: Likewise.
3757 * gdb.python/py-symbol.exp: Remove trailing ".*" in the
3759 * gdb.python/py-symtab.exp: Likewise.
3760 * gdb.python/python.exp: Remove trailing ".*". Fix typo
3765 * gdb.ada/addr_arith: New testcase.
3769 * gdb.dwarf2/dw2-case-insensitive-debug.S: Handle 64-bit pointers.
3770 * gdb.dwarf2/dw2-case-insensitive.exp: Update accordingly.
3771 * gdb.dwarf2/dw2-skip-prologue.S: Handle 64-bit pointers.
3772 * gdb.dwarf2/dw2-skip-prologue.exp: Update accordingly.
3776 * gdb.arch/stap-eval-lang-ada.S: Likewise.
3777 * gdb.arch/stap-eval-lang-ada.c: Likewise.
3778 * gdb.arch/stap-eval-lang-ada.exp: New file.
3782 * gdb.mi/mi-var-child.c (nothing1): New function.
3783 (nothing2): New function.
3784 (do_children_tests): Set function pointers by nothing1 and
3786 * gdb.mi/mi-var-child.exp: Step over new added statements.
3787 Update test to match the new output.
3788 * gdb.mi/var-cmd.c (nothing1): New function.
3789 (nothing2): New function.
3790 (do_children_tests): Set function pointers by nothing1 and
3792 * gdb.mi/mi-var-display.exp: Update test to match output.
3793 Step to the line specified by $line_dct_nothing.
3794 Increase the number of lines to step.
3798 * gdb.mi/mi-var-child.exp: Use mi_varobj_update to simplify
3800 * gdb.mi/mi2-var-child.exp: Likewise.
3804 * gdb.python/py-objfile.exp: Change name of file name test.
3808 * gdb.dwarf2/dw2-op-out-param.S: Make DW_FORM_ref4 values be the offset
3809 from the start of the CU.
3814 Fix "save breakpoints" for "catch" command.
3815 * gdb.base/catch-signal.exp: Add gdb_breakpoint "main".
3816 Remove -nonewline. Match also the added "main" line.
3820 Fix "save breakpoints" for "disable $bpnum" command.
3821 * gdb.base/save-bp.c (main): Add label.
3822 * gdb.base/save-bp.exp: Add 8th disabled breakpoint. Match it.
3826 * gdb.base/save-bp.exp (info break): Use gdb_test_sequence.
3830 * gdb.server/server-kill.exp: Execute command
3831 "set remote trace-status-packet on" before "tstatus".
3835 * gdb.server/server-kill.c: Include sys/types.h and unistd.h.
3836 (main): Call getppid.
3837 * gdb.server/server-kill.exp: Set breakpoint on line "i = 0;"
3838 and continue to it. Read variable "server_pid".
3842 * gdb.server/server-kill.exp: Remove "delete_breakpoints".
3846 * gdb.threads/thread-find.exp: Don't execute command
3848 * gdb.threads/attach-into-signal.exp (corefunc): Likewise.
3849 * gdb.threads/linux-dp.exp: Don't check the condition
3850 $threads_created equals to zero.
3854 * gdb.base/bigcore.exp: Remove references to IRIX.
3855 * gdb.base/funcargs.exp: Likewise.
3856 * gdb.base/interrupt.exp: Likewise.
3857 * gdb.base/mips_pro.exp: Likewise.
3858 * gdb.base/nodebug.exp: Likewise.
3859 * gdb.base/setvar.exp: Likewise.
3860 * lib/gdb.exp (gdb_compile_shlib): Remove mips-sgi-irix* case.
3866 * gdb.base/vdso-warning.c: New file.
3867 * gdb.base/vdso-warning.exp: New file.
3871 * gdb.base/structs.c (main): Don't run forever.
3875 * gdb.threads/manythreads.exp (interrupt_and_wait): New procedure.
3876 (top level) <stop threads 1, stop threads 2>: Use it.
3880 * gdb.threads/break-while-running.exp (test): Add new
3881 'update_thread_list' argument. Skip "info threads" if false.
3882 (top level): Add new 'update_thread_list' axis.
3886 PR breakpoints/17431
3887 * gdb.base/execl-update-breakpoints.c: New file.
3888 * gdb.base/execl-update-breakpoints.exp: New file.
3892 * gdb.base/breakpoint-in-ro-region.c: New file.
3893 * gdb.base/breakpoint-in-ro-region.exp: New file.
3897 * gdb.mi/mi-exit-code.exp: New file.
3898 * gdb.mi/mi-exit-code.c: New file.
3902 * lib/prelink-support.exp (build_executable_own_libs): Error if
3903 the target isn't native.
3907 * gdb.threads/dlopen-libpthread.exp: Skip it if isnative is
3912 * gdb.threads/break-while-running.exp: New file.
3913 * gdb.threads/break-while-running.c: New file.
3917 * gdb.dwarf2/dw2-var-zero-addr.exp: Move test into new proc test.
3918 Invoke test. Restart GDB with --readnow and invoke test again.
3922 * gdb.base/break-on-linker-gcd-function.exp: Move test into new
3923 proc set_breakpoint_on_gcd_function. Invoke
3924 set_breakpoint_on_gcd_function. Restart GDB with --readnow and
3925 invoke set_breakpoint_on_gcd_function again.
3929 * gdb.dwarf2/symtab-producer.exp: New file.
3933 * gdb.base/global-var-nested-by-dso-solib1.c: New file.
3934 * gdb.base/global-var-nested-by-dso-solib2.c: Likewise.
3935 * gdb.base/global-var-nested-by-dso.c: Likewise.
3936 * gdb.base/global-var-nested-by-dso.exp: Likewise.
3941 * gdb.base/watch-bitfields.exp: Pass string other than test file
3942 name to prepare_for_testing.
3943 (watch): New procedure.
3944 (expect_watchpoint): Use with_test_prefix.
3945 (top level): Factor out tests to ...
3946 (test_watch_location, test_regular_watch): ... these new
3947 procedures, and use with_test_prefix and gdb_continue_to_end.
3951 PR breakpoints/12526
3952 * gdb.base/watch-bitfields.exp: New file.
3953 * gdb.base/watch-bitfields.c: New file.
3957 * gdb.base/watchpoint-stops-at-right-insn.exp (test): Compare
3958 software and hardware addresses, not software address against
3963 * gdb.base/watchpoint-stops-at-right-insn.c: New file.
3964 * gdb.base/watchpoint-stops-at-right-insn.exp: New file.
3968 * config/vx.exp, config/vxworks.exp, config/vxworks29k.exp: Delete
3970 * gdb.base/a2-run.exp: Remove all code guarded by istarget
3971 "*-*-vxworks*" throughout.
3972 * gdb.base/break.exp: Likewise.
3973 * gdb.base/default.exp: Likewise.
3974 * gdb.base/scope.exp: Likewise.
3975 * gdb.base/sepdebug.exp: Likewise.
3976 * gdb.base/break.c: Remove all code guarded by #ifdef vxworks
3978 * gdb.base/run.c: Likewise.
3979 * gdb.base/sepdebug.c: Likewise.
3980 * gdb.hp/gdb.aCC/run.c: Likewise.
3981 * gdb.reverse/until-reverse.c: Likewise.
3982 * lib/gdb.exp (gdb_compile): Remove is_vxworks branch.
3986 * boards/local-remote-host-native.exp: New file.
3990 * gdb.threads/queue-signal.c (thread_count): New variable.
3991 (thread_count_mutex, thread_count_condvar): New variables.
3992 (incr_thread_count, wait_all_threads_running): New functions.
3993 (main): Wait for all threads to be in their thread functions.
3997 * gdb.threads/queue-signal.c: New file.
3998 * gdb.threads/queue-signal.exp: New file.
4002 * lib/gdb.exp (gdb_prompt): Add comment and change initial value to
4003 be consistent with what default_gdb_init uses.
4004 (with_gdb_prompt): Change form of PROMPT argument from a regexp to
4005 the plain text of the prompt. Add some logging printfs.
4006 * gdb.perf/disassemble.exp: Update call to with_gdb_prompt.
4010 * gdb.arch/gdb1558.exp: Replace uses of gdb_expect after
4011 gdb_run_cmd with gdb_test_multiple or gdb_test throughout.
4012 * gdb.arch/i386-size-overlap.exp: Likewise.
4013 * gdb.arch/i386-size.exp: Likewise.
4014 * gdb.arch/i386-unwind.exp: Likewise.
4015 * gdb.base/a2-run.exp: Likewise.
4016 * gdb.base/break.exp: Likewise.
4017 * gdb.base/charset.exp: Likewise.
4018 * gdb.base/chng-syms.exp: Likewise.
4019 * gdb.base/commands.exp: Likewise.
4020 * gdb.base/dbx.exp: Likewise.
4021 * gdb.base/find.exp: Likewise.
4022 * gdb.base/funcargs.exp: Likewise.
4023 * gdb.base/jit-simple.exp: Likewise.
4024 * gdb.base/reread.exp: Likewise.
4025 * gdb.base/sepdebug.exp: Likewise.
4026 * gdb.base/step-bt.exp: Likewise.
4027 * gdb.cp/mb-inline.exp: Likewise.
4028 * gdb.cp/mb-templates.exp: Likewise.
4029 * gdb.objc/basicclass.exp: Likewise.
4030 * gdb.threads/killed.exp: Likewise.
4035 * gdb.arch/powerpc-stackless.S: New file.
4036 * gdb.arch/powerpc-stackless.exp: New file.
4040 * gdb.base/attach.c: Include unistd.h.
4041 (main): Call alarm. Add label postloop.
4042 * gdb.base/attach.exp (do_attach_tests): Use gdb_get_line_number,
4043 gdb_breakpoint, gdb_continue_to_breakpoint.
4044 (test_command_line_attach_run): Kill ${testpid} in one exit path.
4049 * lib/gdb.exp (gdb_spawn_with_cmdline_opts): New procedure.
4050 * gdb.base/attach.exp (test_command_line_attach_run): New
4052 (top level): Call it.
4056 * lib/gdb.exp (spawn_wait_for_attach): New procedure.
4057 * gdb.base/attach.exp (do_attach_tests, do_call_attach_tests)
4058 (do_command_attach_tests): Use spawn_wait_for_attach.
4059 * gdb.base/solib-overlap.exp: Likewise.
4060 * gdb.multi/multi-attach.exp: Likewise.
4061 * gdb.python/py-prompt.exp: Likewise.
4062 * gdb.python/py-sync-interp.exp: Likewise.
4063 * gdb.server/ext-attach.exp: Likewise.
4067 * gdb.fortran/array-element.exp: Remove unexpected "continue"
4068 command in testcase. Simplify testcase.
4072 * gdb.dwarf2/dynarr-ptr.exp: Add a few ptype tests.
4076 * gdb.dwarf2/dynarr-ptr.exp: Add 'first, 'last and 'length tests.
4080 * gdb.dwarf2/dynarr-ptr.exp: Add subscripting tests.
4084 * gdb.dwarf2/dynarr-ptr.c: New file.
4085 * gdb.dwarf2/dynarr-ptr.exp: New file.
4089 * gdb.base/watchpoint-solib.exp: Increase the timeout by a factor
4090 of 30 rather than hardcoding 120 for a slow test case. Take the
4091 `gdb,timeout' target setting into account for this calculation.
4092 Don't extend the timeout for the test cases that don't need it.
4096 * gdb.reverse/sigall-reverse.exp: Increase the timeout by
4097 a factor of 2 for a slow test case. Take the `gdb,timeout'
4098 target setting into account for this calculation.
4099 * gdb.reverse/until-precsave.exp: Increase the timeout by
4100 a factor of 15 and 3 respectively rather than adding 120
4101 for a pair of slow test cases. Take the `gdb,timeout'
4102 target setting into account for this calculation.
4106 * lib/gdb.exp (gdb_test_multiple): Remove code to select the
4107 timeout, don't pass one down to gdb_expect.
4108 (gdb_expect): Rework timeout selection.
4112 * lib/gdbserver-support.exp (gdbserver_start): Throw an error
4113 exception on timeout.
4114 (gdbserver_run): Catch any `gdbserver_spawn' error exceptions.
4115 (gdbserver_start_extended): Catch any `gdbserver_start' error
4117 (gdbserver_start_multi, mi_gdbserver_start_multi): Likewise.
4118 * lib/mi-support.exp (mi_gdb_target_load): Catch any
4119 `gdbserver_gdb_load' error exceptions.
4123 * lib/gdbserver-support.exp (gdbserver_start): Set timeout to
4124 120 on waiting for the TCP socket to open.
4128 * gdb.base/default.exp (show_conv_list): Add _caller_is,
4129 _caller_matches, _any_caller_is, _any_caller_matches.
4133 * gdb.guile/scm-error.exp: Handle guile 2.2 backtrace output.
4137 * gdb.mi/mi-var-display.exp: Set print symbol off.
4142 * gdb.base/commands.exp: Add tests to verify user-defined
4143 commands with empty bodies.
4144 * gdb.python/py-cmd.exp: Test that we don't show user-defined
4145 python commands in `show user command`.
4146 * gdb.python/scm-cmd.exp: Test that we don't show user-defined
4147 scheme commands in `show user command`.
4152 * gdb.python/amd64-py-framefilter-invalidarg.S: New file.
4153 * gdb.python/py-framefilter-invalidarg-gdb.py.in: New file.
4154 * gdb.python/py-framefilter-invalidarg.exp: New file.
4155 * gdb.python/py-framefilter-invalidarg.py: New file.
4160 * gdb.python/py-caller-is.c: New file.
4161 * gdb.python/py-caller-is.exp: New file.
4166 * gdb.arch/amd64-stap-wrong-subexp.exp: New file.
4167 * gdb.arch/amd64-stap-wrong-subexp.S: Likewise.
4172 * gdb.fortran/print-formatted.exp: New file.
4173 * gdb.fortran/print-formatted.f90: Likewise.
4177 * gdb.python/py-frame.exp: Test Frame.read_register.
4182 * gdb.python/py-completion.exp: New file.
4183 * gdb.python/py-completion.py: Likewise.
4187 * gdb.arch/amd64-pseudo.c (main): Rewrite to better specify when
4188 eax,etc. are live with values set by gdb and thus the compiler can't
4190 * gdb.arch/i386-pseudo.c (main): Ditto.
4194 * lib/gdb.exp (gdb_compile_shlib): Add support for clang.
4198 * gdb.mi/basics.c (callee3, callee2, callee1): Specify result type.
4203 * gdb.threads/thread-execl.exp: #include <stdio.h>.
4207 * gdb.guile/scm-value.exp (test_lazy_strings): Set print
4209 * gdb.python/py-value.exp (test_lazy_strings): Likewise.
4214 * gdb.dwarf2/dw2-single-line-discriminators.S: New file.
4215 * gdb.dwarf2/dw2-single-line-discriminators.c: New file.
4216 * gdb.dwarf2/dw2-single-line-discriminators.exp: New file.
4220 * gdb.python/py-finish-breakpoint.exp: Copy .py file to host.
4221 * gdb.python/py-finish-breakpoint2.exp: Likewise.
4222 * gdb.python/python.exp: Likewise. Use .py file on the host
4223 instead of the build.
4227 * gdb.threads/gcore-stale-thread.c: New file.
4228 * gdb.threads/gcore-stale-thread.exp: New file.
4232 * gdb.base/gcore-buffer-overflow.exp: Remove "help gcore" test.
4233 * gdb.base/gcore-relro-pie.exp: Likewise.
4234 * gdb.base/gcore-relro.exp: Likewise.
4235 * gdb.base/gcore.exp: Likewise.
4236 * gdb.base/print-symbol-loading.exp: Likewise.
4237 * gdb.threads/gcore-thread.exp: Likewise.
4238 * lib/gdb.exp (gdb_gcore_cmd): Don't expect "Undefined command".
4243 * Makefile.in (EXTRA_RULES, CC): New variables, get from
4245 (EXPECT): Handle READ1 being set.
4246 (all): Depend on EXTRA_RULES.
4247 (check-read1, expect-read1, read1.so, read1): New rules.
4248 * README (Testsuite Parameters): Document the READ1 make variable.
4249 (Race detection): New section.
4250 * configure: Regenerate.
4251 * configure.ac: If build==host==target, and running under a
4252 GNU/glibc system, add read1 to the extra Makefile rules.
4253 (EXTRA_RULES): AC_SUBST it.
4254 * lib/read1.c: New file.
4258 * gdb.dwarf2/data-loc.exp: Add additional tests exercising
4259 the handling of variables declared as a typedef to an array
4260 which a DW_AT_data_location attribute.
4267 * gdb.dwarf2/dw2-op-out-param.exp: Remove kfail branches and use
4272 * gdb.base/watchpoint-hw-hit-once.c (main): Update comment.
4276 * gdb.base/watchpoint-hw-hit-once.exp: Set breakpoint on the
4281 * boards/fission.exp: Explicitly pass -ggnu-pubnames for clang.
4285 * gdb.dwarf2/data-loc.exp: Remove second DW_AT_upper bound
4286 attribute in array range.
4290 * gdb.dwarf2/data-loc.c, gdb.dwarf2/data-loc.exp: New files.
4295 * gdb.cp/pr17132.cc: New file.
4296 * gdb.cp/pr17132.exp: New file.
4300 * gdb.python/py-xmethods.py (A_getarrayind)
4301 (E_method_char_worker.__call__, E_method_int_worker.__call__):
4302 Use 'print' with function call syntax.
4303 (E_method_matcher.match): Fix tab vs space indentation mixup.
4307 * gdb.trace/tfile.exp: Return -1 if generate_tracefile returns
4312 * gdb.cp/casts.exp: Set print symbol off.
4313 * gdb.cp/class2.exp: Likewise.
4314 * gdb.cp/overload.exp: Likewise.
4315 * gdb.cp/templates.exp: Likewise.
4319 * gdb.base/print-symbol-loading.exp (test_load_core): Update.
4320 (test_load_shlib): Update.
4324 * gdb.base/display.exp: Invoke is_address_zero_readable.
4325 * gdb.guile/scm-value.exp (test_value_in_inferior): Likewise.
4326 * gdb.python/py-value.exp (test_value_in_inferior): Likewise.
4327 * gdb.base/hbreak-unmapped.exp: Return if
4328 is_address_zero_readable returns true.
4329 * gdb.base/signest.exp: Likewise.
4330 * gdb.base/signull.exp: Likewise.
4331 * gdb.base/sigbpt.exp: Likewise.
4332 * gdb.guile/scm-disasm.exp: Do the test if
4333 is_address_zero_readable returns false.
4334 * gdb.guile/scm-pretty-print.exp (run_lang_tests): Likewise.
4335 * gdb.python/py-arch.exp: Likewise.
4336 * gdb.python/py-prettyprint.exp (run_lang_tests): Likewise.
4337 * lib/gdb.exp (is_address_zero_readable): New proc.
4342 * gdb.mi/mi-var-display.exp: Make test messages unique.
4346 * gdb.base/sss-bp-on-user-bp-2.exp: Expect output from "set debug
4351 * gdb.base/sss-bp-on-user-bp-2.exp: Match "to_resume", not
4356 * gdb.base/vla-datatypes.c (vla_factory): Add new variable
4357 inner_vla_struct_object_size.
4358 * gdb.base/vla-datatypes.exp: Adjust last test, and mark it
4363 * gdb.threads/signal-command-handle-nopass.exp (test): Add
4369 * gdb.base/until-nodebug.exp: New.
4374 * gdb.guile/scm-parameter.exp: Add tests for trying to create
4375 previously existing parameter, and previously ambiguously spelled
4380 * gdb.base/varargs.exp: Remove KFAILs for ARM.
4386 * gdb.guile/types-module.exp: Add tests for wrong type arguments.
4390 * gdb.threads/signal-command-handle-nopass.c: New file.
4391 * gdb.threads/signal-command-handle-nopass.exp: New file.
4392 * gdb.threads/signal-command-multiple-signals-pending.c: New file.
4393 * gdb.threads/signal-command-multiple-signals-pending.exp: New file.
4394 * gdb.threads/signal-delivered-right-thread.c: New file.
4395 * gdb.threads/signal-delivered-right-thread.exp: New file.
4399 * gdb.base/double-prompt-target-event-error.exp
4400 (cancel_pagination_in_target_event): Remove '-notransfer <return>'
4402 (cancel_pagination_in_target_event): Rework double prompt
4404 * gdb.base/paginate-after-ctrl-c-running.exp
4405 (test_ctrlc_while_target_running_paginates): Remove '-notransfer
4407 * gdb.base/paginate-bg-execution.exp
4408 (test_bg_execution_pagination_return)
4409 (test_bg_execution_pagination_cancel): Remove '-notransfer
4411 * gdb.base/paginate-execution-startup.exp
4412 (test_fg_execution_pagination_return)
4413 (test_fg_execution_pagination_cancel): Remove '-notransfer
4415 * gdb.base/paginate-inferior-exit.exp
4416 (test_paginate_inferior_exited): Remove '-notransfer <return>'
4418 * lib/gdb-utils.exp (string_to_regexp): Move here from lib/gdb.exp.
4419 * lib/gdb.exp (pagination_prompt): Run text through
4421 (gdb_test_multiple): Match $pagination_prompt instead of
4423 (string_to_regexp): Move to lib/gdb-utils.exp.
4427 * gdb.arch/amd64-entry-value-paramref.S: New file.
4428 * gdb.arch/amd64-entry-value-paramref.cc: New file.
4429 * gdb.arch/amd64-entry-value-paramref.exp: New file.
4430 * gdb.arch/amd64-optimout-repeat.S: New file.
4431 * gdb.arch/amd64-optimout-repeat.c: New file.
4432 * gdb.arch/amd64-optimout-repeat.exp: New file.
4437 * gdb.base/statistics.exp: New file.
4442 * gdb.base/maint.exp: Update testing of per-command stats.
4446 * gdb.trace/tfile.c: Include unistd.h and stdint.h.
4447 (start_trace_file): Guard S_IRGRP and S_IROTH uses behind #ifdef.
4448 (tfile_write_64, tfile_write_16, tfile_write_8, tfile_write_addr)
4449 (tfile_write_buf): New functions.
4450 (add_memory_block): Rewrite using the above.
4451 (adjust_function_address): New function.
4452 (FUNCTION_ADDRESS): New macro.
4453 (write_basic_trace_file): Remove short_x local, and use
4454 tfile_write_16. Change type of func_addr local to unsigned long
4455 long. Use FUNCTION_ADDRESS instead of handling the Thumb bit
4456 here. Cast argument of add_memory_block to char pointer.
4457 (write_error_trace_file): Avoid alloca. Use FUNCTION_ADDRESS.
4458 (main): Remove parameters.
4459 * gdb.trace/tfile.exp: Remove nowarnings.
4463 * gdb.base/debug-expr.exp: Test string evaluation with
4464 "debug expression" on.
4468 * gdb.base/reread.exp: Use clean_restart.
4472 * gdb.arch/avr-flash-qualifer.c: New.
4473 * gdb.arch/avr-flash-qualifer.exp: New.
4477 * gdb.base/paginate-after-ctrl-c-running.c: New file.
4478 * gdb.base/paginate-after-ctrl-c-running.exp: New file.
4482 * gdb.base/double-prompt-target-event-error.c: New file.
4483 * gdb.base/double-prompt-target-event-error.exp: New file.
4488 * gdb.base/paginate-inferior-exit.c: New file.
4489 * gdb.base/paginate-inferior-exit.exp: New file.
4494 * gdb.base/paginate-bg-execution.c: New file.
4495 * gdb.base/paginate-bg-execution.exp: New file.
4500 * gdb.base/paginate-execution-startup.c: New file.
4501 * gdb.base/paginate-execution-startup.exp: New file.
4502 * lib/gdb.exp (pagination_prompt): New global.
4503 (default_gdb_spawn): New procedure, factored out from
4505 (default_gdb_start): Adjust to call default_gdb_spawn.
4506 (gdb_spawn): New procedure.
4510 * lib/gdb.exp (gdb_assert): New procedure.
4511 * gdb.trace/backtrace.exp (gdb_backtrace_tdp_4): Use it.
4515 * gdb.base/execution-termios.c: New file.
4516 * gdb.base/execution-termios.exp: New file.
4520 * gdb.cp/vla-cxx.cc: New file.
4521 * gdb.cp/vla-cxx.exp: New file.
4525 * gdb.reverse/rerun-prec.c: New file.
4526 * gdb.reverse/rerun-prec.exp: New file.
4531 * lib/gdb-utils.exp: New file.
4532 * lib/gdb.exp (gdb_run_cmd): Call gdb_init_commands, replacing
4533 inline `gdb_init_command' processing.
4534 (gdb_start_cmd): Likewise.
4535 * lib/mi-support.exp (mi_run_cmd): Likewise.
4536 * README: Document `gdb_init_command' and `gdb_init_commands'.
4540 Fix false FAIL running under a very long directory name.
4541 * gdb.base/argv0-symlink.exp: Add "set print repeats 10000"
4542 and "set print elements 10000". Twice.
4546 * gdb.base/exprs.exp: "set print symbol off".
4550 * gdb.threads/kill.c: New file.
4551 * gdb.threads/kill.exp: New file.
4555 * gdb.trace/tfile.c (write_basic_trace_file)
4556 [__thumb__||__thumb2__]: Clear the Thumb bit of the function
4557 address written to trace file.
4561 * gdb.base/attach-wait-input.exp: New file.
4562 * gdb.base/attach-wait-input.c: New file.
4566 * gdb.mi/var-cmd.c (do_nested_struct_union_tests): New function
4567 setting up test structures.
4568 (main): Call new test function.
4569 * gdb.mi/mi2-var-child.exp: Create additional breakpoint in new
4570 test function, continue into test function and walk test
4575 * gdb.trace/entry-values.c: Define labels 'foo_start' and
4576 'bar_start' at the beginning of functions 'foo' and 'bar'
4578 * gdb.trace/entry-values.exp: Use 'foo_start' and 'bar_start'
4579 instead of 'foo' and 'bar'.
4583 * gdb.btrace/segv.exp: New.
4584 * gdb.btrace/segv.c: New.
4588 * gdb.trace/entry-values.exp: Handle powerpc-specific branch
4593 * gdb.base/constvars.c (violent, violet, vips, virgen, vulgar,
4594 vulture, vilify, villar): New volatile array constants.
4595 (vindictive, vegetation): New const volatile array constants.
4596 * gdb.base/volatile.exp: Test volatile and const volatile array
4601 * gdb.base/watchpoint-reuse-slot.exp: Handle the case that the
4602 target lacks support for awatch, rwatch, or hbreak.
4606 * gdb.multi/dummy-frame-restore.exp: New.
4607 * gdb.multi/dummy-frame-restore.c: New.
4611 * gdb.btrace/gcore.exp: New.
4615 * gdb.base/watchpoint-reuse-slot.c: New file.
4616 * gdb.base/watchpoint-reuse-slot.exp: New file.
4620 * gdb.python/py-xmethods.exp: Use "progspace" instead of the
4621 progspace's filename in 'info', 'enable' and 'disable' command
4626 * gdb.arch/amd64-stap-special-operands.exp: Use is_lp64_target.
4627 * gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
4628 * gdb.dwarf2/dw2-error.exp: Use istarget and is_lp64_target.
4632 * gdb.arch/i386-avx.exp: Fix include file location.
4633 * gdb.arch/i386-sse.exp: Likewise.
4637 * gdb.dlang/expression.exp: New file.
4641 * gdb.threads/thread-execl.exp (do_test): New procedure, factored
4643 (top level): ... here. Iterate running tests under different
4644 scheduler-locking settings.
4648 * gdb.cp/nsalias.exp: Set type of low_pc and high_pc entries
4649 to DW_FORM_addr and use non-zero addresses.
4654 * gdb.python/py-xmethods.cc: Add global function call counters and
4655 increment them in their respective functions. Remove "cout"
4657 * gdb.python/py-xmethods.exp: Make tests check the global function
4658 call counters instead of depending on inferior IO.
4662 * gdb.base/foll-fork.exp (default_fork_parent_follow):
4664 (explicit_fork_parent_follow): Deleted procedure.
4665 (explicit_fork_child_follow): Deleted procedure.
4666 (test_follow_fork): New procedure.
4667 (do_fork_tests): Replace calls to deleted procedures with
4668 calls to test_follow_fork and reset GDB for subsequent
4673 * gdb.base/wchar.exp: Set $cent to \u00A2 if "host-charset" is
4678 * gdb.mi/mi-var-rtti.cc (type_update_when_use_rtti_test):
4679 Initialize ptr and S explicitly.
4680 (skip_type_update_when_not_use_rtti_test): Likewise.
4685 * gdb.mi/mi-var-cmd.exp: Add test for -var-update before
4686 the inferior is started.
4690 * gdb.base/break-main-file-remove-fail.c: New file.
4691 * gdb.base/break-main-file-remove-fail.exp: New file.
4692 * gdb.base/break-unload-file.exp: Use build_executable instead of
4693 prepare_for_testing.
4694 (test_break): New parameter "initial_load". Handle it.
4695 (top level): Add initial_load cmdline/file axis.
4699 * gdb.base/completion.exp: Don't use directory name in test.
4703 * gdb.base/sigall.c [Functions to send signals]: Reorder to
4704 separate the always-available ANSI-standard signals from the
4705 signals that require checking.
4707 * gdb.reverse/sigall-reverse.c [Functions to send signals]:
4715 * gdb.cp/var-tag.cc: New file.
4716 * gdb.cp/var-tag.exp: New file.
4717 * gdb.dwarf2/dw2-ada-ffffffff.exp: Set the language to C++.
4718 * gdb.dwarf2/dw2-anon-mptr.exp: Likewise.
4719 * gdb.dwarf2/dw2-double-set-die-type.exp: Likewise.
4720 * gdb.dwarf2/dw2-inheritance.exp: Likewise.
4724 * gdb.guile/scm-frame-args.c (foo): Tweak to work with gcc 4.6.3.
4728 * gdb.base/sss-bp-on-user-bp-2.exp: Look for target_resume(step)
4729 in target debug output instead of looking at RSP packets,
4730 disabling the test on any target that uses hardware stepping.
4735 * gdb.base/break-unload-file.exp: Fix typo.
4739 * gdb.base/jit.exp (one_jit_test): Restrict the pattern
4740 from "jit_function" to "^jit_function".
4744 * gdb.base/async.c (foo): Add one statement.
4745 * gdb.base/async.exp: Get the next instruction address and
4746 match the output of "nexti" by instruction address. Match
4747 the hex address in the output of "finish".
4751 * gdb.base/call-signals.c: Remove preprocessor conditionals
4752 for always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4753 SIGSEGV and SIGTERM.
4754 * gdb.base/sigall.c: Likewise.
4755 * gdb.base/unwindonsignal.c: Likewise.
4756 * gdb.reverse/sigall-reverse.c: Likewise.
4760 * gdb.base/hbreak-unmapped.exp: Read memory at address 0. If
4761 readable, skip the test.
4765 * gdb.threads/staticthreads.c (thread_function): Move the line
4766 setting breakpoint on forward.
4767 * gdb.threads/staticthreads.exp: Update comments.
4771 * gdb.guile/scm-value.exp (test_value_in_inferior): Add test
4772 "history-append! type error".
4776 * gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify): Fix
4777 erroneous dprintf expected input.
4781 * gdb.guile/scm-generics.exp: Delete.
4785 * gdb.guile/scm-breakpoint.exp: Update.
4786 Add tests for breakpoint registration.
4790 * gdb.base/vla-datatypes.exp: Add tests for VLA-in-structure and
4792 * gdb.base/vla-datatypes.c (vla_factory): Add vla_struct,
4793 inner_vla_struct, vla_union types. Initialize objects of those
4794 types and compute their sizes.
4799 * gdb.base/fileio.exp: Add test for shell not available as well as
4801 * gdb.base/fileio.c (test_system): Check for shell twice.
4805 * gdb.base/auto-connect-native-target.exp: Remove redundant
4806 space from the regexp pattern.
4810 * gdb.base/default.exp: Replace "child" with "native" in
4815 * gdb.python/py-xmethods.cc: New testcase to test xmethods.
4816 * gdb.python/py-xmethods.exp: New tests to test xmethods.
4817 * gdb.python/py-xmethods.py: Python script supporting the
4818 new testcase and tests.
4823 PR breakpoints/17000
4824 * gdb.base/sss-bp-on-user-bp.exp: Remove kfail.
4825 * gdb.base/sss-bp-on-user-bp-2.exp: Remove kfail.
4829 * gdb.base/subst.exp: Add tests to verify partial path matching
4834 * gdb.base/sss-bp-on-user-bp-2.exp: Skip if testing with a remote
4835 target that doesn't use software single-stepping.
4839 PR breakpoints/17000
4840 * gdb.base/sss-bp-on-user-bp-2.c: New file.
4841 * gdb.base/sss-bp-on-user-bp-2.exp: New file.
4845 * gdb.guile/scm-parameter.exp: New file.
4849 * gdb.guile/scm-cmd.c: New file.
4850 * gdb.guile/scm-cmd.exp: New file.
4854 * gdb.guile/scm-pretty-print.exp: Add tests for objfile and progspace
4855 pretty-printer lookup.
4856 * gdb.guile/scm-pretty-print.scm (pp_s-printer): New function.
4857 (make-pp_s-printer): Call it.
4858 (make-pretty-printer-from-dict): New function.
4859 (lookup-pretty-printer-maker-from-dict): New function.
4860 (*pretty-printer*): Simplify.
4861 (make-objfile-pp_s-printer): New function.
4862 (install-objfile-pretty-printers!): New function.
4863 (make-progspace-pp_s-printer): New function.
4864 (install-progspace-pretty-printers!): New function.
4865 * gdb.guile/scm-progspace.c: New file.
4866 * gdb.guile/scm-progspace.exp: New file.
4870 * gdb.base/dprintf-bp-same-addr.c: New file.
4871 * gdb.base/dprintf-bp-same-addr.exp: New file.
4875 * gdb.arch/powerpc-power.exp: Add power8 instructions to the testcase.
4876 * gdb.arch/powerpc-power.s: Likewise.
4880 * gdb.base/completion.exp: Remove code aimed at restoring TIMEOUT.
4884 * gdb.base/watchpoint.exp (test_watch_location): Check null
4885 pointer can be dereferenced. If not, do the test, otherwise
4890 * gdb.arch/amd64-invalid-stack-middle.exp: Update expected
4892 * gdb.arch/amd64-invalid-stack-top.exp: Likewise.
4896 * gdb.arch/amd64-invalid-stack-middle.S: New file.
4897 * gdb.arch/amd64-invalid-stack-middle.c: New file.
4898 * gdb.arch/amd64-invalid-stack-middle.exp: New file.
4899 * gdb.arch/amd64-invalid-stack-top.c: New file.
4900 * gdb.arch/amd64-invalid-stack-top.exp: New file.
4904 PR breakpoints/17000
4905 * gdb.base/sss-bp-on-user-bp.c: New file.
4906 * gdb.base/sss-bp-on-user-bp.exp: New file.
4910 * gdb.opt/inline-break.c: Fix clang compatibility by specifying
4911 gnu_inline semantics via attribute.
4912 * gdb.opt/inline-break.exp: Remove -std=c89 now that the test
4913 source explicitly specifies the required semantics.
4917 * gdb.reverse/sigall-reverse.exp: Fix a typo.
4922 * gdb.base/async-shell.exp: Don't enable target-async.
4923 * gdb.base/async.exp
4924 * gdb.base/corefile.exp (corefile_test_attach): Remove 'async'
4926 (top level): Don't test with "target-async".
4927 * gdb.base/dprintf-non-stop.exp: Don't enable target-async.
4928 * gdb.base/gdb-sigterm.exp: Don't test with "target-async".
4929 * gdb.base/inferior-died.exp: Don't enable target-async.
4930 * gdb.base/interrupt-noterm.exp: Likewise.
4931 * gdb.mi/mi-async.exp: Use "mi-async" instead of "target-async".
4932 * gdb.mi/mi-nonstop-exit.exp: Likewise.
4933 * gdb.mi/mi-nonstop.exp: Likewise.
4934 * gdb.mi/mi-ns-stale-regcache.exp: Likewise.
4935 * gdb.mi/mi-nsintrall.exp: Likewise.
4936 * gdb.mi/mi-nsmoribund.exp: Likewise.
4937 * gdb.mi/mi-nsthrexec.exp: Likewise.
4938 * gdb.mi/mi-watch-nonstop.exp: Likewise.
4939 * gdb.multi/watchpoint-multi.exp: Adjust comment.
4940 * gdb.python/py-evsignal.exp: Don't enable target-async.
4941 * gdb.python/py-evthreads.exp: Likewise.
4942 * gdb.python/py-prompt.exp: Likewise.
4943 * gdb.reverse/break-precsave.exp: Don't test with "target-async".
4944 * gdb.server/solib-list.exp: Don't enable target-async.
4945 * gdb.threads/thread-specific-bp.exp: Likewise.
4946 * lib/mi-support.exp: Adjust to use mi-async.
4951 * gdb.mi/mi-cli.exp: Always expect "end-stepping-range" stop
4952 reason, even in sync mode.
4958 * gdb.mi/mi-condbreak-call-thr-state-mt.c: New file.
4959 * gdb.mi/mi-condbreak-call-thr-state-st.c: New file.
4960 * gdb.mi/mi-condbreak-call-thr-state.c: New file.
4961 * gdb.mi/mi-condbreak-call-thr-state.exp: New file.
4965 * config/monitor.exp (gdb_target_monitor): Replace use of
4966 "set remotebaud" by "set serial baud".
4970 * gdb.guile/scm-breakpoint.exp:
4971 * gdb.guile/scm-gsmob.exp: Update to use plain old object
4972 properties instead of gdb-object-properties.
4976 * gdb.server/no-thread-db.exp: Specify source file name
4977 explicitly when setting a breakpoint.
4981 * gdb.btrace/vdso.c: New.
4982 * gdb.btrace/vdso.exp: New.
4986 * gdb.base/gcore.exp (capture_command_output): Move ...
4987 * lib/gdb.exp (capture_command_output): ... here.
4991 * gdb.btrace/data.exp: Test memory access during btrace replay.
4995 * lib/mi-support.exp (mi_run_cmd_full): Add comments.
5000 * gdb.mi/mi-cli.exp (line_callee4_next_step): New global.
5001 (top level): Test that output related to execution commands is
5002 sent to the console with CLI commands, but not with MI commands.
5003 Test that breakpoint events are always mirrored to the console.
5004 Also expect the new source line to be output after a "next" in
5005 async mode too. Make it a pass/fail test.
5006 * gdb.mi/mi-solib.exp: Test that the CLI solib event note is
5008 * lib/mi-support.exp (mi_gdb_expect_cli_output): New procedure.
5012 * gdb.base/list.exp (build_pattern, test_list): New procedures.
5013 Use them to test variations of "list" after reaching a breakpoint.
5014 * gdb.mi/mi-cli.exp (line_main_callme_2): New global.
5015 Test "list" with listsize 10 after reaching a breakpoint.
5016 * gdb.python/python.exp (decode_line current location line
5017 number): Adjust expected line number.
5021 * lib/mi-support.exp (mi_run_cmd_full): Revert to original
5022 behavior for $args, pass it directly to "run".
5026 * lib/gdb.exp (default_gdb_init): Bump `match_max' up from
5031 * boards/gdbserver-base.exp (GDBFLAGS): Set to "set
5032 auto-connect-native-target off".
5033 * gdb.base/auto-connect-native-target.c: New file.
5034 * gdb.base/auto-connect-native-target.exp: New file.
5038 * gdb.base/default.exp: Test "target native" instead of "target
5043 * gdb.cp/var-tag.exp (do_global_tests): Handle underlying type.
5047 Fix TLS access for -static -pthread.
5048 * gdb.threads/staticthreads.c <HAVE_TLS> (tlsvar): New.
5049 <HAVE_TLS> (thread_function, main): Initialize it.
5050 * gdb.threads/staticthreads.exp: Try gdb_compile_pthreads for $have_tls.
5052 <$have_tls != "">: Check TLSVAR.
5056 * gdb.base/dcache-line-read-error.c: New.
5057 * gdb.base/dcache-line-read-error.exp: New.
5061 * gdb.base/compare-sections.c: New file.
5062 * gdb.base/compare-sections.exp: New file.
5066 * gdb.base/break-idempotent.c: New file.
5067 * gdb.base/break-idempotent.exp: New file.
5071 * gdb.btrace/nohist.exp: New.
5075 * lib/gdb.exp (gdb_init): Set timeout if test file is under
5076 gdb.reverse directory and gdb_reverse_timeout exists in board
5078 * README: Document gdb_reverse_timeout.
5082 * lib/gdb.exp (default_gdb_init): Rename argument 'args' by
5083 'test_file_name'. Treat args as a string instead of a list.
5084 (gdb_init): Rename argument 'args' by 'test_file_name'.
5088 * gdb.arch/powerpc-power.exp: New file.
5089 * gdb.arch/powerpc-power.s: New file.
5093 * gdb.base/Makefile.in (EXECUTABLES): Add completion.
5094 * gdb.base/completion.exp: Check that all expected files exist
5095 before doing file completion.
5099 * gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir):
5101 (do_syscall_tests_without_xml): Update.
5105 * lib/mi-support.exp (mi_expect_stop): On timeout, say "timeout"
5106 instead of "unknown output after running".
5110 * gdb.dwarf2/dw2-filename.exp: Copy file1.txt to host. Remove
5111 file1.txt from host at the end.
5112 * gdb.dwarf2/dw2-anonymous-func.exp: Likewise.
5116 * gdb.dwarf2/fission-reread.S: Remove directory from .dwo file path.
5117 * gdb.dwarf2/fission-reread.exp: Set debug-file-directory before
5118 loading file. Add test for TU lookup.
5122 * lib/mi-support.exp (mi_run_cmd_full): Set arguments by
5123 calling "-exec-arguments" or "set args" before running the
5128 * lib/mi-support.exp (mi_expect_stop): Expect message for
5129 inferiors that exit with non-zero exit code.
5133 * gdb.mi/mi-file.exp (test_file_list_exec_source_file): Don't
5134 match absolute path on remote host.
5135 (test_file_list_exec_source_files): Remove "/" from the
5140 * boards/local-remote-host-notty.exp (${board}_file): New
5146 * gdb.arch/aarch64-atomic-inst.c: New file.
5147 * gdb.arch/aarch64-atomic-inst.exp: New file.
5151 * gdb.dwarf2/dwzbuildid.exp: Match output "No symbol "the_int"
5152 in current context" too.
5156 * gdb.linespec/ls-dollar.exp: Add test for linespec
5157 file:convenience_variable.
5161 * gdb.trace/unavailable.exp (gdb_collect_args_test): Save
5162 traceframes into tfile and ctf trace files. Read data from
5163 trace file and test collected data.
5164 (gdb_collect_locals_test): Likewise.
5165 (gdb_unavailable_registers_test): Likewise.
5166 (gdb_unavailable_floats): Likewise.
5167 (gdb_collect_globals_test): Likewise.
5168 (top-level): Append "ctf" to trace_file_targets if GDB
5173 * gdb.trace/unavailable.exp (gdb_collect_args_test): Move some
5175 (gdb_collect_args_test_1): ... it. New proc.
5176 (gdb_collect_locals_test): Move some code to ...
5177 (gdb_collect_locals_test_1): ... it. New proc.
5178 (gdb_unavailable_registers_test): Move some code to ...
5179 (gdb_unavailable_registers_test_1): ... it. New proc.
5180 (gdb_unavailable_floats): Move some code to ...
5181 (gdb_unavailable_floats_1): ... it. New proc.
5185 * gdb.arch/amd64-stap-optional-prefix.S (main): Add several
5186 probes to test for bitness recognition.
5187 * gdb.arch/amd64-stap-optional-prefix.exp
5188 (test_probe_value_without_reg): New procedure.
5189 Add code to test for different kinds of bitness.
5193 PR breakpoints/16889
5194 * gdb.arch/amd64-stap-optional-prefix.S: New file.
5195 * gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
5199 * lib/gdb.exp (gdb_load): Extend comment. Skip calling
5200 gdb_file_cmd if no file is specified.
5201 * boards/native-extended-gdbserver.exp (gdb_load): Use the
5202 last_loaded_file to set the remote exec-file.
5206 * boards/local-remote-host.exp: New file.
5210 * boards/local-remote-host.exp: Rename to ...
5211 * boards/local-remote-host-notty.exp: ... this.
5215 * gdb.ada/dyn_arrayidx: New testcase.
5219 * gdb.dwarf2/dwz.exp: Compile main.c to object. Restart GDB
5220 and compute the length of function main. Save it in
5222 (Dwarf::assemble): Use $main_length instead of hard-coded 10.
5223 (top-level): Use gdb_compile to compile objects into
5224 executable and restart GDB. Remove invocation to
5225 prepare_for_testing.
5231 * gdb.multi/multi-attach.c: New file.
5232 * gdb.multi/multi-attach.exp: New file.
5236 * gdb.base/cond-eval-mode.exp (warning): Move trailing \r\n to
5238 (top level): Test that "set remote conditional-breakpoints-packet
5239 off" works as intended.
5240 * gdb.base/dprintf.exp: Test that "set remote
5241 breakpoint-commands-packet off" works as intended.
5242 * gdb.trace/change-loc.exp (tracepoint_install_in_trace_disabled):
5244 (top level): Call it.
5245 * gdb.trace/ftrace.exp (test_fast_tracepoints): Test that "set
5246 remote fast-tracepoints-packet off" works as intended.
5247 * gdb.trace/qtro.exp (gdb_is_target_remote): Moved ...
5248 * lib/gdb.exp (gdb_is_target_remote): ... here.
5252 * gdb.base/catch-syscall.c: Make unreferenced statics non-static to
5253 ensure clang would not discard them.
5254 * gdb.base/gdbvars.c: Ditto.
5255 * gdb.base/memattr.c: Ditto.
5256 * gdb.base/whatis.c: Ditto.
5257 * gdb.python/py-prettyprint.c: Ditto.
5258 * gdb.trace/actions.c: Ditto.
5259 * gdb.cp/ptype-cv-cp.cc: Mark unused global const int as used to
5260 ensure clang would not discard it.
5264 * gdb.stabs/gdb11479.c (tag_dummy_enum): introduce a variable to cause
5265 clang to emit the full definition of type required by the test
5266 * gdb.stabs/gdb11479.exp (do_test): correct a typo in a test message
5270 * gdb.cp/pr10728-x.cc (main::x): Return by value instead of pointer to
5271 coax Clang into emitting the definition of the type.
5272 * gdb.cp/pr10728-x.h (y): Ditto.
5273 * gdb.cp/pr10728-y.cc (y): Ditto.
5277 * gdb.base/label.exp: XFAIL label related tests under Clang.
5278 * gdb.cp/cplabel.exp: Ditto.
5279 * gdb.linespec/ls-errs.exp: Refactor tests to execute directly and XFAIL
5280 under Clang those using labels.
5284 * gdb.dwarf2/dwz.exp (Dwarf::assemble): Remove unused
5286 * gdb.dwarf2/dwzbuildid.exp (Dwarf::assemble): Remove
5287 partial_label and double_label.
5291 * gdb.python/lib-types.exp: Fix test and xfail under gcc due to gcc/55641.
5295 * gdb.cp/cpexprs.cc: Move braces to the same line as the start
5296 of the function to work across GCC and Clang.
5297 * gdb.cp/cpexprs.exp: Account for GCC/Clang difference in vtable
5298 pointer types (const void ** const V void **).
5303 * Makefile.in (EXECUTABLES): Added i386-avx512.
5304 * gdb.arch/i386-avx512.c: New file.
5305 * gdb.arch/i386-avx512.exp: Likewise.
5309 * lib/mi-support.exp (mi_list_breakpoints): Delete.
5310 (mi_make_breakpoint_table): New procedure.
5311 (mi_create_breakpoint): Use mi_make_breakpoint
5312 and return the result.
5313 (mi_make_breakpoint): New procedure.
5314 (mi_build_kv_pairs): New procedure.
5316 * gdb.mi/mi-break.exp: Remove unused globals,
5317 update mi_create_breakpoint usage, and use mi_make_breakpoint_table.
5318 All callers updated.
5319 * gdb.mi/mi-dprintf.exp: Use variable to track command
5321 Update all callers of mi_create_breakpoint and use
5322 mi_make_breakpoint_table.
5323 Remove any unused global variables.
5324 * gdb.mi/mi-nonstop.exp: Likewise.
5325 * gdb.mi/mi-nsintrall.exp: Likewise.
5326 * gdb.mi/mi-nsmoribund.exp: Likewise.
5327 * gdb.mi/mi-nsthrexec.exp: Likewise.
5328 * gdb.mi/mi-reverse.exp: Likewise.
5329 * gdb.mi/mi-simplerun.exp: Likewise.
5330 * gdb.mi/mi-stepn.exp: Likewise.
5331 * gdb.mi/mi-syn-frame.exp: Likewise.
5332 * gdb.mi/mi-until.exp: Likewise.
5333 * gdb.mi/mi-var-cp.exp: Likewise.
5334 * gdb.mi/mi-var-display.exp: Likewise.
5335 * gdb.mi/mi2-amd64-entry-value.exp: Likewise.
5336 * gdb.mi/mi2-var-child.exp: Likewise.
5337 * gdb.mi/mi-vla-c99.exp: Likewise.
5338 * lib/mi-support.exp: Likewise.
5341 * lib/gdb.exp (parse_args): New procedure.
5345 * gdb.base/break-unload-file.c: New file.
5346 * gdb.base/break-unload-file.exp: New file.
5347 * gdb.base/sym-file-lib.c (baz): New function.
5348 * gdb.base/sym-file-loader.c (struct segment) <mapped_size>: New
5350 (load): Store the segment's mapped size.
5351 (unload): New function.
5352 (unload_shlib): New function.
5353 * gdb.base/sym-file-loader.h (unload_shlib): New declaration.
5354 * gdb.base/sym-file-main.c (main): Unload, and reload the library,
5355 set a breakpoint at baz, and call it.
5356 * gdb.base/sym-file.exp: New tests for stale breakpoint
5361 * gdb.base/hbreak-in-shr-unsupported-shr.c: New file.
5362 * gdb.base/hbreak-in-shr-unsupported.c: New file.
5363 * gdb.base/hbreak-in-shr-unsupported.exp: New file.
5364 * gdb.base/hbreak-unmapped.c: New file.
5365 * gdb.base/hbreak-unmapped.exp: New file.
5366 * gdb.trace/qtro.exp (gdb_is_target_remote): Move ...
5367 * lib/gdb.exp (gdb_is_target_remote): ... here.
5371 * gdb.base/consecutive-step-over.c: New file.
5372 * gdb.base/consecutive-step-over.exp: New file.
5376 * lib/gdb.exp (gdb_continue_to_breakpoint): Use gdb_test_multiple
5377 instead of send_gdb/gdb_expect.
5381 * lib/trace-support.exp (generate_tracefile): New procedure.
5382 * gdb.trace/tfile.exp: Skip the test if generate_tracefile
5384 * gdb.trace/mi-traceframe-changed.exp: Invoke test_tfind_tfile
5385 if generate_tracefile returns 1.
5391 * gdb.opt/inline-bt.exp: Test backtracing from an inline function
5392 with a backtrace limit.
5393 * gdb.python/py-frame-inline.exp: Test running to an inline
5394 function with a backtrace limit, and printing the newest frame.
5395 * gdb.python/py-frame-inline.c (main): Call f.
5399 * gdb.java/jnpe.exp: Drop srcdir from untested path.
5403 * lib/gdb.exp (gdb_compile_pthreads, gdb_compile_objc):
5404 Drop prefix from unsupported source file path.
5408 * lib/gdb.exp (with_target_charset): New proc.
5409 * gdb.base/printcmds.exp (test_print_all_chars): Wrap tests with
5410 with_target_charset.
5411 (test_print_strings): Likewise.
5412 (test_repeat_bytes): Likewise.
5413 * gdb.base/setvar.exp: Set target-charset to ASCII temporarily
5419 * gdb.dwarf2/corrupt.c: New file.
5420 * gdb.dwarf2/corrupt.exp: New file.
5425 * gdb.cp/namelessclass.cc: New file.
5426 * gdb.cp/namelessclass.exp: New file.
5427 * gdb.cp/namelessclass.S: New file.
5431 * lib/gdbserver-support.exp (gdbserver_default_get_remote_address):
5433 (gdbserver_default_get_comm_port): New function.
5434 (gdbserver_start): Check if board file provided
5435 "gdbserver,get_comm_port" and use it if so.
5436 * boards/native-stdio-gdbserver.exp (sockethost): Set to "".
5437 (gdb,socketport): Set to "stdio".
5438 (gdbserver,get_comm_port): Set to ${board}_get_comm_port.
5439 (stdio_gdbserver_template): Delete.
5440 (${board}_get_remote_address): Update.
5441 (${board}_build_remote_cmd): Delete.
5442 (${board}_get_comm_port): New function.
5443 (${board}_spawn): Update.
5444 * boards/remote-stdio-gdbserver.exp (${board}_build_remote_cmd):
5446 (${board}_get_remote_address): Update.
5447 (${board}_get_comm_port): New function.
5451 * gdb.base/memattr.exp: Improve regexps to handle memory regions
5452 appearing in any order.
5456 * gdb.gdb/selftest.exp (do_steps_and_nexts): Don't reference
5457 uninitialized value of "description".
5461 * gdb.mi/mi-simplerun.exp (test_breakpoints_creation_and_listing):
5462 Remove unused globals.
5463 (test_running_the_program): Likewise.
5464 (test_controlled_execution): Likewise.
5465 (test_controlling_breakpoints): Likewise.
5466 (test_program_termination): Likewise.
5470 * gdb.mi/mi-break.exp (test_tbreak_creation_and_listing): Remove
5472 (test_rbreak_creation_and_listing): Likewise.
5473 (test_ignore_count): Likewise.
5474 (test_error): Likewise.
5478 * gdb.base/sym-file-loader.h: Move inclusion of <inttypes.h>,
5479 <ansidecl.h>, <elf/common.h> and <elf/external.h> to
5481 (Elf_External_Phdr, Elf_External_Ehdr, Elf_External_Shdr)
5482 (Elf_External_Sym, Elf_Addr, GET, GETADDR, struct segment): Move
5483 to sym-file-loader.c.
5484 (struct library): Forward declare.
5485 (load_shlib, lookup_function): Change prototypes.
5486 (find_shstrtab, find_strtab, find_shdr, find_symtab)
5487 (translate_offset): Remove declarations.
5488 (get_text_addr): New declaration.
5489 * gdb.base/sym-file-loader.c: Move inclusion of <inttypes.h>,
5490 <ansidecl.h>, <elf/common.h> and <elf/external.h> here from
5492 (Elf_External_Phdr, Elf_External_Ehdr, Elf_External_Shdr)
5493 (Elf_External_Sym, Elf_Addr, GET, GETADDR, struct segment): Move
5494 here from sym-file-loader.h.
5495 (struct library): New structure.
5496 (load_shlib, lookup_function): Change prototypes and adjust to
5497 work with a struct library.
5498 (find_shstrtab, find_strtab, find_shdr, find_symtab)
5499 (translate_offset): Make static.
5500 (get_text_addr): New function.
5501 * gdb.base/sym-file-main.c (main): Adjust to new loader interface.
5505 * gdb.base/sym-file-loader.c: Fix typo. SELF_LINK, not SELK_LINK.
5509 * gdb.base/sym-file-loader.c: Include <limits.h>.
5510 (SELF_LINK): New define.
5511 (get_origin): New function.
5512 (load_shlib): Use it.
5513 * gdb.base/sym-file.exp: Don't early return if the target is
5514 remote. Use runto_main, and issue fail is that fails. Use
5516 (shlib_name): Delete.
5517 (lib_so, lib_syms, lib_dlopen): New globals. Use them throughout.
5521 * gdb.base/sym-file.exp: Remove regex characters from test
5522 message. Don't refer to breakpoint numbers in test messages.
5527 * gdb.cp/var-tag.cc: New file.
5528 * gdb.cp/var-tag.exp: New file.
5529 * gdb.dwarf2/dw2-ada-ffffffff.exp: Set the language to C++.
5530 * gdb.dwarf2/dw2-anon-mptr.exp: Likewise.
5531 * gdb.dwarf2/dw2-double-set-die-type.exp: Likewise.
5532 * gdb.dwarf2/dw2-inheritance.exp: Likewise.
5536 * gdb.cp/classes.exp (test_enums): Handle underlying type.
5537 * gdb.dwarf2/enum-type.exp: Add test for enum with underlying
5539 * gdb.cp/enum-class.exp: New file.
5540 * gdb.cp/enum-class.cc: New file.
5544 * gdb.dwarf2/enum-type.exp: New file.
5548 * gdb.mi/mi-vla-c99.exp: New file.
5549 * gdb.mi/vla.c: New file.
5553 * gdb.base/vla-datatypes.c: New file.
5554 * gdb.base/vla-datatypes.exp: New file.
5558 * gdb.base/vla-ptr.c: New file.
5559 * gdb.base/vla-ptr.exp: New file.
5563 * gdb.dwarf2/count.exp: New file.
5567 * gdb.base/vla-sideeffect.c: New file.
5568 * gdb.base/vla-sideeffect.exp: New file.
5572 * gdb.mi/non-stop.c: Add return value for non-void function return
5574 * gdb.threads/staticthreads.c: Ditto.
5579 * gdb.guile/scm-value.c: Improve test case.
5580 * gdb.guile/scm-value.exp: Add new test.
5584 * gdb.opt/inline-break.exp: Explicitly specify -std=gnu89 to
5585 override Clang's default.
5589 Revert the following changes (regressions):
5591 * gdb.base/vla-sideeffect.c: New file.
5592 * gdb.base/vla-sideeffect.exp: New file.
5594 * gdb.dwarf2/count.exp: New file.
5596 * gdb.base/vla-multi.c: New file.
5597 * gdb.base/vla-multi.exp: New file.
5599 * gdb.base/vla-ptr.c: New file.
5600 * gdb.base/vla-ptr.exp: New file.
5602 * gdb.base/vla-datatypes.c: New file.
5603 * gdb.base/vla-datatypes.exp: New file.
5605 * gdb.mi/mi-vla-c99.exp: New file.
5606 * gdb.mi/vla.c: New file.
5611 * gdb.cp/cpsizeof.exp: New file.
5612 * gdb.cp/cpsizeof.cc: New file.
5616 * gdb.mi/mi-vla-c99.exp: New file.
5617 * gdb.mi/vla.c: New file.
5621 * gdb.base/vla-datatypes.c: New file.
5622 * gdb.base/vla-datatypes.exp: New file.
5626 * gdb.base/vla-ptr.c: New file.
5627 * gdb.base/vla-ptr.exp: New file.
5631 * gdb.base/vla-multi.c: New file.
5632 * gdb.base/vla-multi.exp: New file.
5636 * gdb.dwarf2/count.exp: New file.
5640 * gdb.base/vla-sideeffect.c: New file.
5641 * gdb.base/vla-sideeffect.exp: New file.
5645 * gdb.base/completion.exp: Check file exists before running tests
5650 * gdb.base/cond-eval-mode.c: New file.
5651 * gdb.base/cond-eval-mode.exp: Use standard_testfile. Adjust
5652 prepare_for_testing to build the new file. Check result of
5654 (test_break, test_watch): New procedures.
5655 (top level): Use them.
5659 * gdb.base/printcmds.exp (test_artificial_arrays): Disable
5660 Ctrl-V use for mingw hosts.
5664 * gdb.python/py-value.c: Improve test case.
5665 * gdb.python/py-value.exp: Add new test.
5669 * lib/compiler.c: Identify the clang compiler.
5670 * lib/compiler.cc: Ditto.
5674 * gdb.base/setshow.exp: Invoke string_to_regexp to HOME and PWD.
5678 * gdb.arch/ppc64-atomic-inst.exp: Use untested. Make test
5683 * gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
5684 prepare_for_testing.
5688 * gdb.arch/ppc64-atomic-inst.c: Remove.
5689 * gdb.arch/ppc64-atomic-inst.S: New file.
5690 * gdb.arch/ppc64-atomic-inst.exp: Adapt for asm based testcase.
5694 * gdb.base/print-symbol-loading-lib.c: New file.
5695 * gdb.base/print-symbol-loading-main.c: New file.
5696 * gdb.base/print-symbol-loading.exp: New file.
5700 * gdb.base/source-dir.exp: Allow ';' as a directory separator.
5704 * gdb.ada/mi_dyn_arr: New testcase.
5708 * gdb.dwarf2/dw2-abs-hi-pc.exp: Build tests with "nodebug".
5712 * lib/gdb.exp (can_single_step_to_signal_handler): Return zero
5713 if target is nios2-*-*.
5717 * lib/gdb.exp (readline_is_used): New proc.
5718 * gdb.base/completion.exp: Move tests on command complete up.
5719 Skip the rest of tests if readline is not used.
5720 * gdb.ada/complete.exp: Skp the test if readline is not
5722 * gdb.base/filesym.exp: Likewise.
5723 * gdb.base/macscp.exp: Likewise.
5724 * gdb.base/readline-ask.exp: Likewise.
5725 * gdb.base/readline.exp: Likewise.
5726 * gdb.python/py-cmd.exp: Likewise.
5727 * gdb.trace/tfile.exp: Likewise.
5731 * gdb.base/macscp.exp: Fix code format issues.
5735 * gdb.asm/asm-source.exp: Handle powerpc64le-* targets.
5736 * gdb.asm/powerpc64le.inc: New file.
5741 * gdb.base/source-execution.c: New file.
5742 * gdb.base/source-execution.exp: New file.
5743 * gdb.base/source-execution.gdb: New file.
5747 * gdb.linespec/macro-relative.exp: Mark the test as unsupported if
5753 PR breakpoints/16101
5754 * gdb.base/dprintf.exp: Use unsupported rather than changing the
5755 test pass/fail messages. Detect missing support for dprintf when
5756 breakpoints are actually inserted.
5757 * gdb.base/mi-dprintf.exp: Detect missing support for dprintf when
5758 breakpoints are actually inserted.
5759 * lib/mi-support.exp (mi_run_cmd_full): Return -1 if continue
5764 * gdb.base/gdb-sigterm.exp (do_test): Remove "set debug lin-lwp 1".
5768 * gdb.python/python.exp (python not supported): Verify multi-line
5769 python command issues an error.
5770 * gdb.guile/guile.exp (guile not supported): Verify multi-line
5771 guile command issues an error.
5775 * gdb.threads/thread-specific.exp: Handle the lack of usable
5776 $this_breakpoint and $this_thread.
5780 * gdb.base/attach.exp (do_command_attach_tests): New.
5786 * gdb.base/condbreak-call-false.c: New file.
5787 * gdb.base/condbreak-call-false.exp: New file.
5791 * gdb.threads/signal-while-stepping-over-bp-other-thread.c (pid):
5793 (block_signals, unblock_signals): Delete.
5794 (child_function_2, main): Remove references to deleted variable
5799 * gdb.threads/signal-while-stepping-over-bp-other-thread.c (main):
5800 Use pthread_kill to signal thread 2.
5801 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp:
5802 Adjust to make the test send itself a signal rather than using the
5803 host's "kill" command.
5807 * gdb.threads/multiple-step-overs.c: New file.
5808 * gdb.threads/multiple-step-overs.exp: New file.
5809 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp:
5810 Adjust expected infrun debug output.
5814 * gdb.threads/step-over-trips-on-watchpoint.c: New file.
5815 * gdb.threads/step-over-trips-on-watchpoint.exp: New file.
5820 * gdb.base/watchpoint.exp: Mention bugzilla bug number instead of
5821 old gnats gdb/38. Remove kfail. Adjust to use gdb_test instead
5822 of gdb_test_multiple.
5823 * gdb.cp/annota2.exp: Remove kfail for gdb/38.
5824 * gdb.cp/annota3.exp: Remove kfail for gdb/38.
5828 * gdb.threads/step-over-lands-on-breakpoint.c: New file.
5829 * gdb.threads/step-over-lands-on-breakpoint.exp: New file.
5833 * gdb.base/async.exp: Remove early return.
5837 * gdb.base/async.exp (step& tests): Pass explicit test messages.
5841 * gdb.base/async.exp (test_background): Expect \r\n after
5842 "completed." in the fail pattern.
5846 * gdb.base/async.exp (test_background): New procedure.
5847 Use it for all background execution command tests.
5851 * gdb.base/async.exp: Use prepare_for_testing.
5855 * gdb.base/async.c (foo): Make 'x' volatile. Write to it twice in
5860 * gdb.base/async.c (main): Add "jump here" and "until here" line
5862 * gdb.base/async.exp (jump_here): New global.
5863 (jump& test): Use it.
5864 (until_here): New global.
5865 (until& test): Use it.
5869 * gdb.base/async.exp: Don't frob gdb_protocol.
5873 * gdb.base/async.exp: Whitespace fixes. Turn on target-async.
5874 Fix spelling of exec-done-display.
5879 * gdb.base/gdb-sigterm.c: New file.
5880 * gdb.base/gdb-sigterm.exp: New file.
5885 * gdb.mi/mi-solib.exp: Remove gdb/13860 kfail.
5886 * lib/mi-support.exp (mi_expect_stop): Add special handling for
5891 * gdb.ada/pckd_arr_ren: New testcase.
5896 * gdb.guile/scm-value.ep (test_value_after_death): Do a garbage
5897 collect after discarding symbols.
5902 * gdb.guile/scm-value.exp (test_value_in_inferior): Verify value added
5903 to history survives a gc.
5907 * gdb.base/default.exp: Don't test "target procfs".
5911 * gdb.base/default.exp: Update "target child" and "target procfs"
5912 tests to not expect "Unix".
5916 * gdb.base/corefile.exp (corefile_test_run, corefile_test_attach):
5917 New procs. Add target-async tests.
5918 * gdb.reverse/break-precsave.exp (precsave_tests): New proc.
5919 Add target-async tests.
5923 * gdb.dwarf2/dw2-ifort-parameter.c (func): Define labels
5924 'func_start' and 'func_end' for the beginning and end of the
5925 function code, respectively.
5926 * gdb.dwarf2/dw2-ifort-parameter.exp: Use 'func_start' and
5927 'func_end' instead of 'func' and 'main'.
5931 * gdb.dwarf2/dw2-ifort-parameter-debug.S: Remove.
5932 * gdb.dwarf2/dw2-ifort-parameter.exp: Use Dwarf::assemble to
5933 generate the debug info assembler source.
5937 * gdb.dwarf2/arr-stride.exp: Exploit 'prepare_for_testing'.
5938 * gdb.dwarf2/arr-subrange.exp: Likewise.
5939 * gdb.dwarf2/dwz.exp: Likewise.
5940 * gdb.dwarf2/method-ptr.exp: Likewise.
5941 * gdb.dwarf2/missing-sig-type.exp: Likewise.
5942 * gdb.dwarf2/subrange.exp: Likewise.
5943 * gdb.dwarf2/implptrconst.exp: Exploit 'build_executable'.
5944 * gdb.dwarf2/implptrpiece.exp: Likewise.
5945 * gdb.dwarf2/nostaticblock.exp: Likewise.
5949 * lib/gdb.exp (build_executable_from_specs): Don't prepend source
5950 directory to absolute path name arguments.
5954 * gdb.ada/tagged_access: New testcase.
5958 * gdb.btrace/data.exp: Update expected output.
5962 * gdb.trace/pr16508.exp: New file.
5967 * gdb.base/breakpoint-shadow.exp (compare_disassembly): New
5969 (top level): Adjust to use it. Add tests that exercise breakpoint
5970 interaction with the code-cache.
5974 * gdb.guile/scm-value.exp (test_value_in_inferior): Add
5975 test for 'history-append!'.
5979 * gdb.dwarf2/dw2-abs-hi-pc-hello-dbg.S: New file.
5980 * gdb.dwarf2/dw2-abs-hi-pc-hello.c: New file.
5981 * gdb.dwarf2/dw2-abs-hi-pc-world-dbg.S: New file.
5982 * gdb.dwarf2/dw2-abs-hi-pc-world.c: New file.
5983 * gdb.dwarf2/dw2-abs-hi-pc.c: New file.
5984 * gdb.dwarf2/dw2-abs-hi-pc.exp: New file.
5988 * testsuite/gdb.python/py-pp-re-notag.c: New file.
5989 * testsuite/gdb.python/py-pp-re-notag.ex: New file.
5990 * testsuite/gdb.python/py-pp-re-notag.p: New file.
5994 * gdb.dwarf2/arr-subrange.c, gdb.dwarf2/arr-subrange.exp: New files.
5998 * gdb.dwarf2/arr-stride.c: New file.
5999 * gdb.dwarf2/arr-stride.exp: New file.
6003 * gdb.ada/tasks.exp: Set a task-specific breakpoint at break_me
6004 that won't ever trigger. Make sure that GDB reports the correct
6005 breakpoint that caused the stop.
6010 * gdb.base/auto-load-script: New file.
6011 * gdb.base/auto-load.c: New file.
6012 * gdb.base/auto-load.exp: New file.
6015 * gdb.base/auto-load.exp: Fix out-of-srctree run.
6019 Fix dw2-icycle.exp -fsanitize=address GDB crash.
6020 * gdb.dwarf2/dw2-icycle.S: Remove all DW_AT_sibling.
6024 * lib/gdb.exp (run_on_host): Log error output if program fails.
6028 * gdb.threads/step-after-sr-lock.c: Rename to ...
6029 * gdb.threads/signal-while-stepping-over-bp-other-thread.c: ... this.
6030 * gdb.threads/step-after-sr-lock.exp: Rename to ...
6031 * gdb.threads/signal-while-stepping-over-bp-other-thread.exp:
6037 * gdb.arch/amd64-stap-special-operands.exp: New file.
6038 * gdb.arch/amd64-stap-three-arg-disp.S: Likewise.
6039 * gdb.arch/amd64-stap-three-arg-disp.c: Likewise.
6040 * gdb.arch/amd64-stap-triplet.S: Likewise.
6041 * gdb.arch/amd64-stap-triplet.c: Likewise.
6045 * gdb.dwarf2/dw2-icycle.S: Remove second and third parameters
6046 in .section pseudo-op.
6053 * gdb.dwarf2/dw2-icycle.S: New file.
6054 * gdb.dwarf2/dw2-icycle.c: New file.
6055 * gdb.dwarf2/dw2-icycle.exp: New file.
6059 * gdb.python/py-value-cc.cc: Improve test case to enable testing
6060 operations on gdb.Value objects.
6061 * gdb.python/py-value-cc.exp: Add new test to test operations on
6066 * Makefile.in (TESTS): New variable.
6067 (expanded_tests, expanded_tests_or_none): New variables
6068 (check-single): Pass $(expanded_tests_or_none) to runtest.
6069 (check-parallel): Only run tests in $(TESTS) if non-empty.
6070 (check/no-matching-tests-found): New rule.
6071 * README: Document TESTS makefile variable.
6075 * Makefile.in (check-parallel): rm -rf outputs temp.
6079 Fix "ERROR: no fileid for" in the testsuite.
6080 * lib/gdb.exp (gdb_finish): Check gdb_spawn_id.
6084 * gdb.dwarf2/Makefile.in (EXECUTABLES): Add dwp-symlink.
6085 (MISCELLANEOUS): New variable.
6086 (clean): rm -rf $(MISCELLANEOUS).
6087 * gdb.dwarf2/dwp-symlink.exp: Test the case where the executable and
6088 dwp live in the same directory as symlinks, with each symlink pointed
6089 to a differently named file in a different directory.
6093 * gdb.dwarf2/dwp-symlink.exp: Rewrite to use remote_* commands instead
6094 of Tcl file commands.
6098 * gdb.threads/step-after-sr-lock.exp: Avoid executing
6103 * gdb.ada/tick_length_array_enum_idx: New testcase.
6107 * configure.ac (AC_OUTPUT): Add gdb.guile.
6108 * configure: Regenerate.
6109 * lib/gdb-guile.exp: New file.
6110 * lib/gdb.exp (get_target_charset): New function.
6111 * gdb.base/help.exp: Update expected output from "apropos apropos".
6112 * gdb.guile/Makefile.in: New file.
6113 * gdb.guile/guile.exp: New file.
6114 * gdb.guile/scm-arch.c: New file.
6115 * gdb.guile/scm-arch.exp: New file.
6116 * gdb.guile/scm-block.c: New file.
6117 * gdb.guile/scm-block.exp: New file.
6118 * gdb.guile/scm-breakpoint.c: New file.
6119 * gdb.guile/scm-breakpoint.exp: New file.
6120 * gdb.guile/scm-disasm.c: New file.
6121 * gdb.guile/scm-disasm.exp: New file.
6122 * gdb.guile/scm-equal.c: New file.
6123 * gdb.guile/scm-equal.exp: New file.
6124 * gdb.guile/scm-error.exp: New file.
6125 * gdb.guile/scm-error.scm: New file.
6126 * gdb.guile/scm-frame-args.c: New file.
6127 * gdb.guile/scm-frame-args.exp: New file.
6128 * gdb.guile/scm-frame-args.scm: New file.
6129 * gdb.guile/scm-frame-inline.c: New file.
6130 * gdb.guile/scm-frame-inline.exp: New file.
6131 * gdb.guile/scm-frame.c: New file.
6132 * gdb.guile/scm-frame.exp: New file.
6133 * gdb.guile/scm-generics.exp: New file.
6134 * gdb.guile/scm-gsmob.exp: New file.
6135 * gdb.guile/scm-iterator.c: New file.
6136 * gdb.guile/scm-iterator.exp: New file.
6137 * gdb.guile/scm-math.c: New file.
6138 * gdb.guile/scm-math.exp: New file.
6139 * gdb.guile/scm-objfile-script-gdb.in: New file.
6140 * gdb.guile/scm-objfile-script.c: New file.
6141 * gdb.guile/scm-objfile-script.exp: New file.
6142 * gdb.guile/scm-objfile.c: New file.
6143 * gdb.guile/scm-objfile.exp: New file.
6144 * gdb.guile/scm-ports.exp: New file.
6145 * gdb.guile/scm-pretty-print.c: New file.
6146 * gdb.guile/scm-pretty-print.exp: New file.
6147 * gdb.guile/scm-pretty-print.scm: New file.
6148 * gdb.guile/scm-section-script.c: New file.
6149 * gdb.guile/scm-section-script.exp: New file.
6150 * gdb.guile/scm-section-script.scm: New file.
6151 * gdb.guile/scm-symbol.c: New file.
6152 * gdb.guile/scm-symbol.exp: New file.
6153 * gdb.guile/scm-symtab-2.c: New file.
6154 * gdb.guile/scm-symtab.c: New file.
6155 * gdb.guile/scm-symtab.exp: New file.
6156 * gdb.guile/scm-type.c: New file.
6157 * gdb.guile/scm-type.exp: New file.
6158 * gdb.guile/scm-value-cc.cc: New file.
6159 * gdb.guile/scm-value-cc.exp: New file.
6160 * gdb.guile/scm-value.c: New file.
6161 * gdb.guile/scm-value.exp: New file.
6162 * gdb.guile/source2.scm: New file.
6163 * gdb.guile/types-module.cc: New file.
6164 * gdb.guile/types-module.exp: New file.
6169 * configure.ac: Append gdb.gdb/Makefile in AC_OUTPUT.
6170 * configure: Regenerated.
6171 * Makefile.in: New file.
6175 * gdb.python/py-framefilter.exp: Fix typo.
6179 * gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify): Test
6180 that no =breakpoint-modified is emitted when breakpoints are
6181 modified through MI commands.
6186 * gdb.threads/step-after-sr-lock.c: New file.
6187 * gdb.threads/step-after-sr-lock.exp: New file.
6191 * gdb.threads/stepi-random-signal.exp: Set SIGCHLD to print.
6195 Fix i386-sse-stack-align.exp regression since GDB_PARALLEL.
6196 * gdb.arch/i386-sse-stack-align.exp: Use standard_output_file.
6200 * gdb.python/py-breakpoint.exp (test_bkpt_eval_funcs): Update expected
6203 * gdb.gdb/python-interrupts.exp: New file.
6207 * gdb.trace/report.exp (use_collected_data): Test the output
6208 of "info threads" and "info inferiors".
6216 * gdb.trace/tfile.exp: Test inferior and thread.
6220 * gdb.base/sigbpt.exp: Do not use "*" when setting breakpoint
6222 * gdb.base/step-bt.c: Call hello via function pointer to make
6223 sure its first instruction is executed on powerpc64le-linux.
6227 * gdb.arch/powerpc-d128-regs.exp: Enable on powerpc64*-*.
6231 * gdb.arch/vsx-regs.exp: Check target endianness. Provide variants
6232 of the test patterns for use on little-endian systems.
6236 * gdb.arch/altivec-regs.exp: Use gdb_test_multiple for endian test.
6237 (decimal_vector): Fix for little-endian.
6241 * gdb.arch/sparc-sysstep.exp: New file.
6242 * gdb.arch/sparc-sysstep.c: Likewise.
6244 * gdb.arch/Makefile.in (EXECUTABLES): Add sparc-sysstep.
6248 * gdb.base/info-shared.exp: Expect leading `.' on ppc64's symbols.
6252 * gdb.ada/array_char_idx: New testcase.
6257 * gdb.python/py-framefilter.exp: Add test using "Error" filter.
6258 * gdb.python/py-framefilter.py (ErrorInName, ErrorFilter): New
6264 * gdb.python/py-framefilter.py (Reverse_Function.function): Read a
6265 string from an inferior frame.
6266 * gdb.python/py-framefilter-mi.exp: Update.
6270 * gdb.server/server-mon.exp: Add tests for "set debug-format".
6274 * gdb.base/catch-syscall.exp: Activate test on s390*-linux.
6278 * gdb.trace/entry-values.exp: Remove excess space character from
6279 regex patterns. Handle s390 call instruction.
6283 * gdb.dwarf2/dw2-dir-file-name.c (FUNC): Insert alignment and
6284 define "*_start" label. Make "name" static.
6285 * gdb.dwarf2/dw2-dir-file-name.exp: Replace references to
6286 ${name} by references to ${name}_start.
6290 * gdb.base/info-macros.exp: Remove "debug" from the compile
6295 * gdb.dlang/demangle.exp: New file.
6299 * gdb.dlang/primitive-types.exp: New file.
6303 * configure.ac: Create gdb.dlang/Makefile.
6304 * configure: Regenerate.
6305 * Makefile.in (ALL_SUBDIRS): Add gdb.dlang.
6306 * gdb.dlang/Makefile.in: New file.
6307 * lib/d-support.exp: New file.
6308 * lib/gdb.exp (skip_d_tests): New proc.
6312 * gdb.btrace/delta.exp: Check reverse stepi.
6313 * gdb.btrace/tailcall.exp: Update. Add stepping tests.
6314 * gdb.btrace/finish.exp: New.
6315 * gdb.btrace/next.exp: New.
6316 * gdb.btrace/nexti.exp: New.
6317 * gdb.btrace/record_goto.c: Add comments.
6318 * gdb.btrace/step.exp: New.
6319 * gdb.btrace/stepi.exp: New.
6320 * gdb.btrace/multi-thread-step.c: New.
6321 * gdb.btrace/multi-thread-step.exp: New.
6322 * gdb.btrace/rn-dl-bind.c: New.
6323 * gdb.btrace/rn-dl-bind.exp: New.
6324 * gdb.btrace/data.c: New.
6325 * gdb.btrace/data.exp: New.
6326 * gdb.btrace/Makefile.in (EXECUTABLES): Add new.
6330 * gdb.btrace/Makefile.in (EXECUTABLES): Add delta.
6331 * gdb.btrace/exception.exp: Update.
6332 * gdb.btrace/instruction_history.exp: Update.
6333 * gdb.btrace/record_goto.exp: Update.
6334 * gdb.btrace/tailcall.exp: Update.
6335 * gdb.btrace/unknown_functions.exp: Update.
6336 * gdb.btrace/delta.exp: New.
6340 * gdb.btrace/record_goto.exp: Add backtrace test.
6341 * gdb.btrace/tailcall.exp: Add backtrace test.
6345 * gdb.btrace/Makefile.in (EXECUTABLES): Add record_goto.
6346 * gdb.btrace/record_goto.c: New.
6347 * gdb.btrace/record_goto.exp: New.
6348 * gdb.btrace/x86-record_goto.S: New.
6352 * gdb.btrace/function_call_history.exp: Update tests.
6353 * gdb.btrace/instruction_history.exp: Update tests.
6357 * gdb.btrace/function_call_history.exp: Fix expected field
6358 order for "record function-call-history".
6359 Add new tests for "record function-call-history /c".
6360 * gdb.btrace/exception.cc: New.
6361 * gdb.btrace/exception.exp: New.
6362 * gdb.btrace/tailcall.exp: New.
6363 * gdb.btrace/x86-tailcall.S: New.
6364 * gdb.btrace/x86-tailcall.c: New.
6365 * gdb.btrace/unknown_functions.c: New.
6366 * gdb.btrace/unknown_functions.exp: New.
6367 * gdb.btrace/Makefile.in (EXECUTABLES): Add new.
6371 * gdb.btrace/instruction_history.exp: Update.
6372 * gdb.btrace/function_call_history.exp: Update.
6376 * gdb.btrace/function_call_history.exp: Fix expected function
6378 * gdb.btrace/instruction_history.exp: Initialize traced.
6379 Remove traced_functions.
6383 * gdb.btrace/function_call_history.exp: Update
6384 * gdb.btrace/instruction_history.exp: Update.
6388 * gdb.btrace/enable.exp: Update expected text.
6392 * gdb.dwarf2/dw2-dos-drive.S: Increase text section size to 4
6397 * gdb.base/float.exp: Handle "aarch64*-*-*" targets.
6401 * lib/gdb.exp (supports_process_record): Return true for
6402 arm*-linux*. (supports_reverse): Likewise.
6408 * gdb.python/py-type.c: Enhance test case.
6409 * gdb.python/py-value-cc.cc: Likewise
6410 * gdb.python/py-type.exp: Add new tests.
6411 * gdb.python/py-value-cc.exp: Likewise
6416 * gdb.dwarf2/dw2-dir-file-name.c (FUNC): Remove "*_start" symbol.
6418 * gdb.dwarf2/dw2-dir-file-name.exp (out_cu, out_line): Replace
6419 references to ${name}_start by references to ${name}.
6423 * gdb.ada/pp-rec-component.exp: Remove path from "source" test.
6427 * gdb.python/py-pp-integral.exp: Remove path from "source" test.
6432 * gdb.mi/mi-info-os.exp: Connect to the target with
6437 * gdb.threads/reconnect-signal.c: New file.
6438 * gdb.threads/reconnect-signal.exp: New file.
6442 * gdb.base/source-dir.exp: New file.
6446 * gdb.ada/mi_interface: New testcase.
6450 * gdb.ada/pp-rec-component.exp, gdb.ada/pp-rec-component.py,
6451 gdb.ada/pp-rec-component/foo.adb, gdb.ada/pp-rec-component/pck.adb,
6452 gdb.ada/pp-rec-component/pck.ads: New files.
6456 * gdb.python/py-pp-integral.c: New file.
6457 * gdb.python/py-pp-integral.py: New file.
6458 * gdb.python/py-pp-integral.exp: New file.
6460 For older changes see ChangeLog-1993-2013.
6466 ;; version-control: never
6469 Copyright 2014-2015 Free Software Foundation, Inc.
6470 Copying and distribution of this file, with or without modification,
6471 are permitted provided the copyright notice and this notice are preserved.