Use CXXCOMPILE in gold/testsuite/Makefile for c++ testcases
[deliverable/binutils-gdb.git] / gdb / testsuite / ChangeLog
index dda5b68473223c1d5082eb5ea4afb315347ad5a0..6fe1877132b9555b0829c27ae1e5548d2a6057af 100644 (file)
@@ -1,3 +1,373 @@
+2020-06-15  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+       * gdb.base/jit-elf-so.exp: Refer to the global main_loader_basename
+       variable.
+       * gdb.base/jit-reader-simple.exp: Fix typo ("Built" -> "Build"),
+       and use the already-defined 'options' variable.
+
+2020-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
+           Tom de Vries  <tdevries@suse.de>
+
+       * lib/gdb.exp (gdb_known_globals, gdb_persistent_globals): New global.
+       (gdb_persistent_global, gdb_persistent_global_no_decl): New proc.
+       (gdb_setup_known_globals): New proc.
+       (gdb_cleanup_globals): New proc.
+       * lib/gdb.exp (load_lib): New override proc.
+       (gdb_stdin_log_init): Set var in_file as persistent global.
+       * lib/pascal.exp (gdb_stdin_log_init): Set vars
+       pascal_compiler_is_gpc, pascal_compiler_is_fpc, gpc_compiler and
+       fpc_compiler as persistent global.
+
+2020-06-12  Tom de Vries  <tdevries@suse.de>
+
+       * lib/tuiterm.exp (spawn): Rename to ...
+       (tui_spawn): ... this.
+       (toplevel): Move rename of spawn ...
+       (gdb_init_tuiterm): ... here.  New proc.
+       (gdb_finish_tuiterm): New proc.
+       * lib/gdb.exp (gdb_finish_hooks): New global var.
+       (gdb_finish): Handle gdb_finish_hooks.
+       (tuiterm_env): New proc.
+       * gdb.python/tui-window.exp: Replace load_lib tuiterm.exp with
+       tuiterm_env.
+       * gdb.tui/basic.exp: Same.
+       * gdb.tui/corefile-run.exp: Same.
+       * gdb.tui/empty.exp: Same.
+       * gdb.tui/list-before.exp: Same.
+       * gdb.tui/list.exp: Same.
+       * gdb.tui/main.exp: Same.
+       * gdb.tui/new-layout.exp: Same.
+       * gdb.tui/regs.exp: Same.
+       * gdb.tui/resize.exp: Same.
+       * gdb.tui/tui-layout-asm-short-prog.exp: Same.
+       * gdb.tui/tui-layout-asm.exp: Same.
+       * gdb.tui/tui-missing-src.exp: Same.
+       * gdb.tui/winheight.exp: Same.
+
+2020-06-12  Tom de Vries  <tdevries@suse.de>
+
+       PR testsuite/26110
+       * lib/gdb.exp (gdb_init): Revert dejagnu's override of ::unknown.
+       (gdb_finish): Reinstall dejagnu's override of ::unknown.
+
+2020-06-11  Tom Tromey  <tom@tromey.com>
+
+       PR gdb/18318:
+       * gdb.base/printcmds.exp (test_float_accepted): Add more hex
+       floating point tests.
+
+2020-06-11  Keith Seitz  <keiths@redhat.com>
+
+       PR gdb/21356
+       * gdb.base/vla-datatypes.c (vla_factory): Add typedef for struct
+       vla_struct.
+       Add new struct vla_typedef and union vla_typedef_union and
+       corresponding instantiation objects.
+       Initialize new objects.
+       * gdb.base/vla-datatypes.exp: Add tests for vla_typedef_struct_object
+       and vla_typedef_union_object.
+       Fixup type for vla_struct_object.
+
+2020-06-11  Tom de Vries  <tdevries@suse.de>
+
+       * lib/gdb.exp (with_override): New proc, factored out of ...
+       * gdb.base/dbx.exp: ... here.  Use with_override and save_vars.
+
+2020-06-10  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.ada/ptype_union.exp: Remove PR24713 workaround.
+
+2020-06-09  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * gdb.base/index-cache.exp (test_cache_disabled): Add test_prefix
+       parameter, update callers.
+
+2020-06-04  Simon Marchi  <simon.marchi@efficios.com>
+
+       * gdb.dwarf2/share-psymtabs-bt.exp: New file.
+       * gdb.dwarf2/share-psymtabs-bt.c: New file.
+       * gdb.dwarf2/share-psymtabs-bt-2.c: New file.
+
+2020-06-04  Tom de Vries  <tdevries@suse.de>
+
+       * lib/gdb.exp (gdb_file_cmd): Avoid path names in error messages.
+
+2020-06-04  Tom de Vries  <tdevries@suse.de>
+
+       * lib/gdb.exp (gdb_file_cmd): Replace incomplete gdb_expect by
+       exp_continue.
+
+2020-06-04  Tom de Vries  <tdevries@suse.de>
+
+       * lib/gdb.exp (gdb_file_cmd): Use perror instead of fail.
+
+2020-06-03  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/26046
+       * gdb.cp/breakpoint-locs-2.cc: New test.
+       * gdb.cp/breakpoint-locs.cc: New test.
+       * gdb.cp/breakpoint-locs.exp: New file.
+       * gdb.cp/breakpoint-locs.h: New test.
+
+2020-06-03  Tom de Vries  <tdevries@suse.de>
+
+       PR testsuite/25609
+       * gdb.base/jit-elf-so.exp: Don't modify testing behaviour based on
+       value of global verbose.
+       * gdb.base/jit-elf.exp: Same.
+       * gdb.base/jit-reader.exp: Same.
+
+2020-06-02  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.dwarf2/multidictionary.exp: Don't use
+       gdb_spawn_with_cmdline_opts.
+
+2020-06-01  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.cp/step-and-next-inline.exp (do_test): Skip all tests in the
+       use_header case.
+       * gdb.dwarf2/dw2-inline-header-1.exp: New file.
+       * gdb.dwarf2/dw2-inline-header-2.exp: New file.
+       * gdb.dwarf2/dw2-inline-header-3.exp: New file.
+       * gdb.dwarf2/dw2-inline-header-lbls.c: New file.
+       * gdb.dwarf2/dw2-inline-header.c: New file.
+       * gdb.dwarf2/dw2-inline-header.h: New file.
+
+2020-05-30  Pedro Alves  <palves@redhat.com>
+
+       * gdb.linespec/cp-replace-typedefs-ns-template.cc: New.
+       * gdb.linespec/cp-replace-typedefs-ns-template.exp: New.
+
+2020-05-29  Gary Benson <gbenson@redhat.com>
+
+       * gdb.compile/compile-cplus.exp (additional_flags): Also
+       set when building with clang.
+       (additional_flags, srcfilesoptions): Pass -Wno-deprecated
+       when building with clang.
+
+2020-05-29  Gary Benson <gbenson@redhat.com>
+
+       * gdb.arch/i386-avx.exp (additional_flags): Also set when
+       building with clang.
+       * gdb.arch/i386-sse.exp (additional_flags): Likewise.
+
+2020-05-29  Gary Benson <gbenson@redhat.com>
+
+       * gdb.cp/koenig.exp (prepare_for_testing): Add
+       additional_flags=-Wno-unused-comparison.
+       * gdb.cp/operator.exp (prepare_for_testing): Likewise.
+
+2020-05-28  Gary Benson <gbenson@redhat.com>
+
+       * gdb.base/sigaltstack.c (catcher): Add default case to switch
+       statement.
+
+2020-05-28  Gary Benson <gbenson@redhat.com>
+
+       * gdb.cp/classes.exp (prepare_for_testing): Add
+       additional_flags=-Wno-deprecated-register.
+       * gdb.cp/inherit.exp (prepare_for_testing): Likewise.
+       * gdb.cp/misc.exp: Likewise.
+
+2020-05-28  Gary Benson <gbenson@redhat.com>
+
+       * gdb.linespec/cpls-ops.cc (dummy): New static global.
+       (test_op_new::operator new): Add return statement.
+       (test_op_new_array::operator new[]): Likewise.
+
+2020-05-27  Pedro Alves  <palves@redhat.com>
+
+       * gdb.linespec/cp-completion-aliases.exp: Remove readline_is_used
+       check.  Use test_gdb_complete_unique instead of
+       test_gdb_complete_tab_unique + test_gdb_complete_cmd_unique.  Use
+       test_gdb_complete_multiple instead of
+       test_gdb_complete_tab_multiple + test_gdb_complete_cmd_multiple.
+
+2020-05-27  Luis Machado  <luis.machado@linaro.org>
+
+       * gdb.arch/aarch64-sighandler-regs.exp: Fix duplicated test names.
+       * gdb.arch/aarch64-tagged-pointer.exp: Likewise.
+       * gdb.arch/arm-disassembler-options.exp: Likewise.
+       * gdb.arch/arm-disp-step.exp: Likewise.
+       * gdb.arch/thumb-prologue.exp: Likewise.
+       * gdb.base/async.exp: Likewise.
+       * gdb.base/auxv.exp: Likewise.
+       * gdb.base/complex-parts.exp: Likewise.
+       * gdb.base/ena-dis-br.exp: Likewise.
+       * gdb.base/foll-exec.exp: Likewise.
+       * gdb.base/permissions.exp: Likewise.
+       * gdb.base/relocate.exp: Likewise.
+       * gdb.base/return2.exp: Likewise.
+       * gdb.base/sigbpt.exp: Likewise.
+       * gdb.base/siginfo-obj.exp: Likewise.
+       * gdb.cp/converts.exp: Likewise.
+       * gdb.cp/exceptprint.exp: Likewise.
+       * gdb.cp/inherit.exp: Likewise.
+       * gdb.cp/nsnoimports.exp: Likewise.
+       * gdb.cp/virtbase2.exp: Likewise.
+       * gdb.mi/mi-var-cmd.exp: Likewise.
+       * gdb.mi/var-cmd.c: Likewise.
+
+2020-05-26  Tom Tromey  <tromey@adacore.com>
+
+       * gdb.ada/arr_acc_idx_w_gap.exp: Add tests.
+
+2020-05-26  Tom Tromey  <tromey@adacore.com>
+
+       * gdb.ada/arr_acc_idx_w_gap.exp: Add enum subrange tests.
+       * gdb.ada/arr_acc_idx_w_gap/enum_with_gap.ads (Enum_Subrange): New
+       type.
+       * gdb.ada/arr_acc_idx_w_gap/enum_with_gap_main.adb (V): New
+       variable.
+
+2020-05-26  Christian Biesinger  <cbiesinger@google.com>
+
+       * Makefile.in: Use = instead of == for the test command
+       for portability.
+
+2020-05-26  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.base/gold-gdb-index-2.c: New test.
+       * gdb.base/gold-gdb-index.c: New test.
+       * gdb.base/gold-gdb-index.exp: New file.
+       * gdb.base/gold-gdb-index.h: New test.
+
+2020-05-25  Tom de Vries  <tdevries@suse.de>
+
+       * boards/gold-gdb-index.exp: New file.
+
+2020-05-25  Simon Marchi  <simon.marchi@efficios.com>
+
+       * boards/simavr.exp: New file.
+
+2020-05-25  Simon Marchi  <simon.marchi@efficios.com>
+
+       * lib/gdb.exp (gdb_run_cmd): Return success or failure.
+       * gdb.base/inferior-args.exp: New file.
+       * gdb.base/inferior-args.c: New file.
+
+2020-05-25  Simon Marchi  <simon.marchi@efficios.com>
+
+       * lib/gdb.exp (gdb_run_cmd): Change argument from args to
+       inferior_args.  Pass it to gdb_reload.
+       (gdb_start_cmd, gdb_starti_cmd): Change argument from args to
+       inferior_args.
+       (gdb_reload): Add inferior_args argument.
+       * config/gdbserver.exp (gdb_reload): Add inferior_args argument,
+       pass it to gdbserver_run.
+       * boards/native-gdbserver.exp: Do not set noargs.
+       * boards/native-extended-gdbserver.exp (gdb_reload): Add
+       inferior_args argument.
+       * boards/stdio-gdbserver-base.exp (gdb_reload): Likewise.
+       * gdb.base/a2-run.exp: Check for use_gdb_stub.
+       * gdb.base/args.exp: Likewise.
+
+2020-05-25  Tom de Vries  <tdevries@suse.de>
+
+       * lib/gdb.exp (exec_is_pie): Add comment.
+
+2020-05-25  Tom de Vries  <tdevries@suse.de>
+
+       * lib/jit-elf-helpers.exp (compile_and_download_n_jit_so): Use $f
+       instead of $binfile in the untested message.
+
+2020-05-25  Tom de Vries  <tdevries@suse.de>
+
+       PR testsuite/26031
+       * lib/gdb.exp (exec_is_pie): Test readelf -h output.
+
+2020-05-25  Tom de Vries  <tdevries@suse.de>
+
+       * boards/gold.exp: New file.
+
+2020-05-23  Tom Tromey  <tom@tromey.com>
+
+       * gdb.base/style.exp: Remove completion styling test.
+       * lib/gdb-utils.exp (style): Remove completion styles.
+
+2020-05-23  Tom Tromey  <tom@tromey.com>
+
+       * gdb.base/style.exp: Add completion styling test.
+       * lib/gdb-utils.exp (style): Add completion styles.
+
+2020-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.base/annota1.exp: Update expected results.
+       * gdb.cp/annota2.exp: Update expected results, remove duplicate
+       test name.
+       * gdb.cp/annota3.exp: Update expected results.
+
+2020-05-20  Simon Marchi  <simon.marchi@efficios.com>
+
+       PR gdb/26016
+       * gdb.base/coredump-filter.c (do_mmap): Check mmap ret val
+       against MAP_FAILED.
+       * gdb.base/coremaker.c (mmapdata): Likewise.
+       * gdb.base/jit-reader-host.c (main): Likewise.
+       * gdb.base/sym-file-loader.c (load): Likewise.
+       (load_shlib): Likewise.
+
+2020-05-20  Tom Tromey  <tromey@adacore.com>
+
+       * gdb.ada/array_char_idx.exp: Recognize initialized array.
+
+2020-05-20  Tom de Vries  <tdevries@suse.de>
+
+       PR symtab/25833
+       * gdb.base/with-mf-inc.c: New test.
+       * gdb.base/with-mf-main.c: New test.
+       * gdb.base/with-mf.exp: New file.
+
+2020-05-19  Tom Tromey  <tromey@adacore.com>
+
+       * gdb.rust/simple.exp: Restore missing test result.
+
+2020-05-19  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.base/gdb-caching-proc.exp: Fix typo.
+
+2020-05-19  Tom Tromey  <tromey@adacore.com>
+
+       * gdb.rust/simple.exp: Add some test descriptions.
+       (test_one_slice): Use with_test_prefix.
+
+2020-05-18  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.base/gdb-caching-proc.exp: Use with_test_prefix.
+
+2020-05-17  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/25741
+       * gdb.base/hw-sw-break-same-address.exp: New file.
+
+2020-05-16  Pedro Alves  <palves@redhat.com>
+
+       * gdb.multi/multi-re-run.exp (test_re_run): Switch
+       LAST_LOADED_FILE accordingly.
+
+2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * gdb.base/alias.exp: Verify 'help aliases' shows user defined aliases.
+
+2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * gdb.base/help.exp: Test apropos and help for commands
+       having aliases.  Fixed comments not starting with an
+       upper-case letter or not finishing with a dot.
+
+2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * gdb.base/alias.exp: Update help output check.
+
+2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * gdb.base/default.exp: Update output following fixes.
+
+2020-05-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * gdb.base/alias.exp: Test aliases starting with a prefix of
+       another alias.
+
 2020-05-15  Gary Benson <gbenson@redhat.com>
 
        * gdb.base/info-os.c (main): Add return statement.
This page took 0.029858 seconds and 4 git commands to generate.