Add ability to add attributes to gdb.Objfile and gdb.Progspace objects.
[binutils-gdb.git] / gdb / testsuite / ChangeLog
index 2602e7f2a0911f4b91aabe5a4735b6b219cae8ea..4f2f208230a9f609786ca3551b210e76fa42d0e7 100644 (file)
@@ -1,3 +1,320 @@
+2014-10-30  Doug Evans  <dje@google.com>
+
+       * gdb.python/py-objfile.exp: Add tests for setting random attributes
+       in objfiles.
+       * gdb.python/py-progspace.exp: Add tests for setting random attributes
+       in progspaces.
+
+2014-10-30  Janis Johnson  <janisjo@codesourcery.com>
+
+       * gdb.base/fullpath-expand.exp: Skip for a remote host.
+       * gdb.base/realname-expand.exp: Likewise.
+       * gdb.linespec/macro-relative.exp: Likewise.
+
+2014-10-29  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17408
+       * gdb.threads/schedlock.c (some_function): New function.
+       (call_function): New global.
+       (MAYBE_CALL_SOME_FUNCTION): New macro.
+       (thread_function): Call it.
+       * gdb.threads/schedlock.exp (get_args): Add description parameter,
+       and use it instead of a global counter.  Adjust all callers.
+       (get_current_thread): Use "find current thread" for test message
+       here rather than having all callers pass down the same string.
+       (goto_loop): New procedure, factored out from ...
+       (my_continue): ... this.
+       (step_ten_loops): Change parameter from test message to command to
+       use.  Adjust.
+       (list_count): Delete global.
+       (check_result): New procedure, factored out from duplicate top
+       level code.
+       (continue tests): Wrap in with_test_prefix.
+       (test_step): New procedure, factored out from duplicate top level
+       code.
+       (top level): Test "step" in combination with all scheduler-locking
+       modes.  Test "next" in combination with all scheduler-locking
+       modes, and in combination with stepping over a function call or
+       not.
+       * gdb.threads/next-bp-other-thread.c: New file.
+       * gdb.threads/next-bp-other-thread.exp: New file.
+
+2014-10-29  Pedro Alves  <palves@redhat.com>
+
+       PR python/17372
+       * gdb.python/python.exp: Test a multi-line command that spawns
+       interactive Python.
+       * gdb.base/multi-line-starts-subshell.exp: New file.
+
+2014-10-29  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/fileio.exp: Make directories on host.
+
+2014-10-29  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/fileio.c (test_write): Close the file.
+
+2014-10-28  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/12623
+       * gdb.base/sigstep.c (no_handler): New global.
+       (main): If 'no_handler is true, set the signal handlers to
+       SIG_IGN.
+       * gdb.base/sigstep.exp (breakpoint_over_handler): Add
+       with_sw_watch and no_handler parameters.  Handle them.
+       (top level) <stepping over handler when stopped at a breakpoint
+       test>: Add a test axis for testing with a software watchpoint, and
+       another for testing with the signal handler set to SIG_IGN.
+       * gdb.base/step-sw-breakpoint-adjust-pc.c: New file.
+       * gdb.base/step-sw-breakpoint-adjust-pc.exp: New file.
+
+2014-10-28  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17511
+       * gdb.base/sigstep.c (handler): Add a few more writes to 'done'.
+       * gdb.base/sigstep.exp (other_handler_location): New global.
+       (advance): Support stepping into the signal handler, and running
+       commands while in the handler.
+       (in_handler_map): New global.
+       (top level): In the advance test, add combinations for getting
+       into the handler with stepping commands, and for running commands
+       in the handler.  Add comment descripting the advancei tests.
+
+2014-10-28  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/sigstep.exp: Use build_executable instead of
+       prepare_for_testing.
+       (top level): Move code that starts GDB, runs to main and creates a
+       display to ...
+       (restart): ... this new procedure.
+       (top level): Move backtrace from signal handler test to ...
+       (validate_backtrace): ... this new procedure.
+       (advance, advancei): Rename parameter from 'i' to 'cmd'.  Use
+       with_test_prefix.  Always restart GDB.
+       (skip_to_handler): Rename parameter from 'i' to 'cmd'.  Use
+       with_test_prefix.  Always restart GDB.  No need to delete
+       breakpoints after the test.
+       (test_skip_handler): Remove prefix parameter.
+       (skip_over_handler, breakpoint_to_handler)
+       (breakpoint_to_handler_entry, breakpoint_over_handler): Rename
+       parameter from 'i' to 'cmd'.  Use with_test_prefix.  Always
+       restart GDB.  No need to delete breakpoints after the test.
+       (top level): Use foreach to call the test procedures with
+       different commands.
+
+2014-10-28  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/sigaltstack.exp: Update to use Bugzilla bug numbers
+       instead of GNATS numbers.
+       * gdb.base/sigbpt.exp: Likewise.
+       * gdb.base/siginfo.exp: Likewise.
+       * gdb.base/sigstep.exp: Likewise.
+
+2014-10-27  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/sigstep.c (dummy): New global.
+       (main): Issue a couple writes to the new global.
+       * gdb.base/sigstep.exp (get_next_pc, test_skip_handler): New
+       procedures.
+       (skip_over_handler): Use test_skip_handler.
+       (top level): Call skip_over_handler for stepi and nexti too.
+       (breakpoint_over_handler): Use test_skip_handler.
+       (top level): Call breakpoint_over_handler for stepi and nexti too.
+
+2014-10-27  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.trace/tfile.c (adjust_function_address)
+       [__powerpc64__ && _CALL_ELF != 2]: Get function address from
+       function descriptor.
+
+2014-10-24  Don Breazeal  <donb@codesourcery.com>
+
+       * gdb.base/foll-fork.exp (test_follow_fork,
+       catch_fork_child_follow): Check for updated fork messages emitted
+       from infrun.c.
+       * gdb.base/foll-vfork.exp (vfork_parent_follow_through_step,
+       vfork_parent_follow_to_bp, vfork_and_exec_child_follow_to_main_bp,
+       vfork_and_exec_child_follow_through_step): Check for updated vfork
+       messages emitted from infrun.c.
+
+2014-10-24  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/corefile.exp: Remove references to ultrix.
+       * gdb.base/interrupt.exp: Likewise.
+       * gdb.base/whatis.exp: Likewise.
+       * gdb.gdb/selftest.exp: Likewise.
+       * gdb.threads/manythreads.exp: Likewise.
+       * gdb.threads/print-threads.exp: Likewise.
+       * gdb.threads/pthreads.exp:: Likewise.
+       * gdb.threads/schedlock.exp: Likewise.
+
+2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
+
+       * gdb.cp/non-trivial-retval.cc: Add a test case.
+       * gdb.cp/non-trivial-retval.exp: Add a test.
+
+2014-10-20  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.python/py-objfile-script-gdb.py.in: Rename it to ...
+       * gdb.python/py-objfile-script-gdb.py: New file.
+       * gdb.python/py-objfile-script.exp: Update reference to
+       py-objfile-script-gdb.py.in.  Use gdb_remote_donwload instead
+       of remote_download.  Remove the dest file.
+
+2014-10-20  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/checkpoint.exp: Don't remove file copied on host.
+       * gdb.base/step-line.exp: Likewise.
+       * gdb.dwarf2/dw2-anonymous-func.exp: Likewise.
+       * gdb.dwarf2/dw2-basic.exp: Likewise.
+       * gdb.dwarf2/dw2-compressed.exp: Likewise.
+       * gdb.dwarf2/dw2-filename.exp: Likewise.
+       * gdb.dwarf2/dw2-intercu.exp: Likewise.
+       * gdb.dwarf2/dw2-intermix.exp: Likewise.
+       * gdb.dwarf2/dw2-producer.exp: Likewise.
+       * gdb.dwarf2/mac-fileno.exp: Likewise.
+       * gdb.python/py-frame-args.exp: Likewise.
+       * gdb.python/py-framefilter.exp: Likewise.
+       * gdb.python/py-mi.exp: Likewise.
+       * gdb.python/py-objfile-script.exp: Likewise
+       * gdb.python/py-pp-integral.exp: Likewise.
+       * gdb.python/py-pp-re-notag.exp: Likewise.
+       * gdb.python/py-prettyprint.exp: Likewise.
+       * gdb.python/py-section-script.exp: Likewise.
+       * gdb.python/py-typeprint.exp: Likewise.
+       * gdb.python/py-xmethods.exp: Likewise.
+       * gdb.stabs/weird.exp: Likewise.
+       * gdb.xml/tdesc-regs.exp: Likewise.
+
+2014-10-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+       * gdb.dwarf2/dw2-dir-file-name.exp (addr_len): New.
+       (out_cu): Use addr_len for the size of addresses.
+       (out_line): Likewise.  Size DW_LNE_set_address instruction
+       according to addr_len.
+       * gdb.dwarf2/dw2-dir-file-name.c (START_INSNS): New.
+       (FUNC): Add START_INSNS to definition.
+
+2014-10-18  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/argv0-symlink.exp: Check argv[0] value if
+       gdb_has_argv0 return true.
+       * gdb.guile/scm-value.exp (test_value_in_inferior): Don't
+       check [target_info exists noargs], check [gdb_has_argv0]
+       instead.
+       * gdb.python/py-value.exp (test_value_in_inferior): Likewise.
+       * lib/gdb.exp (gdb_has_argv0, gdb_has_argv0_1): New
+       procedures.
+
+2014-10-17  Doug Evans  <dje@google.com>
+
+       * gdb.python/py-events.exp: Update expected output for clear_objfiles
+       event.
+       * gdb.python/py-events.py: Add clear_objfiles event.
+
+2014-10-17  Doug Evans  <dje@google.com>
+
+       * gdb.python/py-objfile.exp: Test progspace attribute.
+
+2014-10-17  Luis Machado  <lgustavo@codesourcery.com>
+
+       * gdb.guile/scm-breakpoint.exp: Do not assume any
+       directory separators when matching source file paths.
+       * gdb.python/py-breakpoint.exp: Likewise.
+       * gdb.reverse/break-precsave.exp: Likewise.
+       * gdb.reverse/break-reverse.exp: Likewise.
+       * gdb.reverse/consecutive-precsave.exp: Likewise.
+       * gdb.reverse/finish-precsave.exp: Likewise.
+       * gdb.reverse/finish-reverse-bkpt.exp: Likewise.
+       * gdb.reverse/finish-reverse.exp: Likewise.
+       * gdb.reverse/i386-precsave.exp: Likewise.
+       * gdb.reverse/i387-env-reverse.exp: Likewise.
+       * gdb.reverse/i387-stack-reverse.exp: Likewise.
+       * gdb.reverse/machinestate-precsave.exp: Likewise.
+       * gdb.reverse/machinestate.exp: Likewise.
+       * gdb.reverse/sigall-precsave.exp: Likewise.
+       * gdb.reverse/solib-precsave.exp: Likewise.
+       * gdb.reverse/step-precsave.exp: Likewise.
+       * gdb.reverse/until-precsave.exp: Likewise.
+       * gdb.reverse/watch-precsave.exp: Likewise.
+       * gdb.reverse/watch-reverse.exp: Likewise.
+
+2014-10-17  Yao Qi  <yao@codesourcery.com>
+
+       * lib/gdb.exp (gdb_skip_xml_test): Copy trivial.xml to host.
+       * gdb.xml/tdesc-regs.exp: Copy single-reg.xml to host.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17471
+       * gdb.base/bg-execution-repeat.c: New file.
+       * gdb.base/bg-execution-repeat.exp: New file.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17300
+       * gdb.base/continue-all-already-running.c: New file.
+       * gdb.base/continue-all-already-running.exp: New file.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/17472
+       * gdb.base/annota-input-while-running.c: New file.
+       * gdb.base/annota-input-while-running.exp: New file.
+
+2014-10-17  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/callfuncs.exp: emove references to osf.
+       * gdb.base/sigall.exp: Likewise.
+       * gdb.gdb/selftest.exp: Likewise.
+       * gdb.hp/gdb.base-hp/callfwmall.exp: Likewise.
+       * gdb.mi/non-stop.c: Likewise.
+       * gdb.mi/pthreads.c: Likewise.
+       * gdb.reverse/sigall-precsave.exp: Likewise.
+       * gdb.reverse/sigall-reverse.exp: Likewise.
+       * gdb.threads/pthreads.c: Likewise.
+       * gdb.threads/pthreads.exp: Likewise.
+
+2014-10-17  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/commands.exp (gdbvar_complex_if_while_test): Don't
+       check 'target_info exists noargs'.
+       (test_command_prompt_position): Likewise.
+       (progvar_simple_if_test): Don't check 'target_info exists noargs'.
+       Remove "set args".
+       (progvar_simple_while_test): Likewise.
+       (progvar_complex_if_while_test): Likewise.
+       (if_while_breakpoint_command_test): Likewise.
+       (infrun_breakpoint_command_test): Likewise.
+       (breakpoint_command_test): Likewise.
+       (watchpoint_command_test): Likewise.
+       (bp_deleted_in_command_test): Likewise.
+       (temporary_breakpoint_commands): Likewise.
+
+2014-10-16  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.base/remotetimeout.exp: Remove noargs checking.
+
+2014-10-15  Pedro Alves  <palves@redhat.com>
+
+       PR breakpoints/9649
+       * gdb.base/breakpoint-in-ro-region.c (main): Add more instructions.
+       * gdb.base/breakpoint-in-ro-region.exp
+       (probe_target_hardware_step): New procedure.
+       (top level): Probe hardware stepping and hardware breakpoint
+       support.  Test stepping through a read-only region, with both
+       "breakpoint auto-hw" on and off and both "always-inserted" on and
+       off.
+
+2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * gdb.dlang/demangle.exp: Update for demangling changes.
+
+2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
+
+       * gdb.cp/non-trivial-retval.cc: Add new test cases.
+       * gdb.cp/non-trivial-retval.exp: Add new tests.
+
 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
 
        PR c++/13403