* lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
[binutils-gdb.git] / gdb / testsuite / ChangeLog
index 1c31e2ab3ed7eaf0198a08f378638552376e2b8c..a3ae15e00aef19a792fd6edf442bec121eea09ce 100644 (file)
@@ -1,3 +1,500 @@
+2010-07-29  Pedro Alves  <pedro@codesourcery.com>
+
+       * lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
+       environment.
+
+2010-07-28  Tom Tromey  <tromey@redhat.com>
+
+       PR python/11060:
+       * gdb.python/py-type.c (Temargs): New template.
+       (temvar): New variable.
+       * gdb.python/py-type.exp (test_template): New proc.
+
+2010-07-28  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.cp/member-ptr.exp, gdb.cp/printmethod.exp,
+       gdb.dwarf2/member-ptr-forwardref.exp: Adjust.
+
+2010-07-28  Tom Tromey  <tromey@redhat.com>
+
+       PR c++/9946:
+       * gdb.cp/temargs.exp: New file.
+       * gdb.cp/temargs.cc: New file.
+
+2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/help.exp (help disassemble): Update the content.
+
+2010-07-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.threads/ia64-sigill.exp: New file.
+       * gdb.threads/ia64-sigill.c: New file.
+
+2010-07-27  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.opt/inline-cmds.c (ATTR): New define.
+       (func1): Use it.
+       (func2): Likewise.
+       (func3): Likewise.
+       (outer_inline1): Likewise.
+       (outer_inline2): Likewise.
+       * gdb.opt/inline-bt.c (ATTR): New define.
+       (func1): Use it.
+       (func2): Likewise.
+       * gdb.opt/inline-locals.c (ATTR): New define.
+       (func1): Use it.
+       (func2): Likewise.
+
+2010-07-27  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.stabs/gdb11479.c (hack): New function.
+       (test): Use it.
+       (test2): Use it.
+       * gdb.python/py-inferior.c (int8_search_buf, int16_search_buf)
+       (int32_search_buf, int64_search_buf): No longer static.
+       (x): Remove.
+       * gdb.base/relocate.c (hack): New function.
+
+2010-07-27  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * gdb.python/py-value.exp (test_inferior_function_call): New function.
+       * gdb.python/py-value.c (func1): New function.
+       (func2): Likewise.
+
+2010-07-26  Corinna Vinschen  <vinschen@redhat.com>
+
+       * gdb.asm/xstormy16.inc (gdbasm_startup): Fix beginning of stack so
+       as not to clash with .data section.
+
+2010-07-26  Jerome Guitton  <guitton@adacore.com>
+
+       * gdb.base/code_elim.exp: New file.
+       * gdb.base/code_elim1.c: New file.
+       * gdb.base/code_elim2.c: New file.
+
+2010-07-21  Pedro Alves  <pedro@codesourcery.com>
+
+       PR symtab/11827
+
+       * gdb.base/printcmds.c (enum some_volatile_enum): New enum.
+       (some_volatile_enum): New variable.
+       * gdb.base/printcmds.exp (test_print_enums): New.
+       <top level>: Call it.
+
+2010-07-21  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdb.cp/fpointer.cc: New test.
+       * gdb.cp/fpointer.exp: New test.
+
+2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/solib-nodir.exp: New file.
+       * lib/gdb.exp (runto): New case for a GDB internal error.
+
+2010-07-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Ulrich Weigand  <uweigand@de.ibm.com>
+           Tom Tromey  <tromey@redhat.com>
+
+       * gdb.base/charset-malloc.c: New file.
+       * gdb.base/charset.c (malloc_stub): New prototype.
+       (main): Call it instead of malloc itself.
+       * gdb.base/charset.exp: Use only prepare_for_testing.
+       (binfile): Remove the variable.
+
+2010-07-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Make core files the process_stratum.
+       * gdb.base/corefile.exp (run: load core again)
+       (run: sanity check we see the core file, run: with core)
+       (run: core file is cleared, attach: load core again)
+       (attach: sanity check we see the core file, attach: with core)
+       (attach: core file is cleared): New tests.
+       * gdb.base/coremaker.c (main): New parameters.  Implement "sleep" argv.
+
+2010-07-14  Ken Werner  <ken.werner@de.ibm.com>
+
+       * gdb.arch/altivec-abi.exp: New tests.
+
+2010-07-13  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.python/py-prettyprint.c (struct arraystruct): New struct.
+       (main): Use it.
+       * gdb.python/py-prettyprint.exp (run_lang_tests): Add test.
+
+2010-07-13  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.base/label.exp: New file.
+       * gdb.base/label.c: New file.
+
+2010-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
+           H.J. Lu  <hongjiu.lu@intel.com>
+
+       * lib/gdb.exp (is_ilp32_target): New.
+       (is_lp64_target): Likewise.
+
+       * gdb.arch/amd64-byte.exp: Use is_lp64_target to check 64bit
+       target.
+       * gdb.arch/amd64-disp-step.exp: Likewise.
+       * gdb.arch/amd64-dword.exp: Likewise.
+       * gdb.arch/amd64-i386-address.exp: Likewise.
+       * gdb.arch/amd64-word.exp: Likewise.
+       
+       * gdb.arch/i386-avx.exp: Use is_ilp32_target to check for 32bit
+       target.
+       * gdb.arch/i386-bp_permanent.exp: Likewise.
+       * gdb.arch/i386-byte.exp: Likewise.
+       * gdb.arch/i386-disp-step.exp: Likewise.
+       * gdb.arch/i386-gnu-cfi.exp: Likewise.
+       * gdb.arch/i386-prologue.exp: Likewise.
+       * gdb.arch/i386-size-overlap.exp: Likewise.
+       * gdb.arch/i386-size.exp: Likewise.
+       * gdb.arch/i386-sse.exp: Likewise.
+       * gdb.arch/i386-unwind.exp: Likewise.
+       * gdb.arch/i386-word.exp: Likewise.
+
+       * gdb.arch/ppc64-atomic-inst.exp: Use is_lp64_target to execute
+       test only when building 64-bit executables.  Do not hard-code
+       -m64 option.
+
+2010-07-07  Doug Evans  <dje@google.com>
+
+       * lib/gdb.exp (gdb_test_list_exact): New function.
+       * gdb.base/default.exp (show convenience): Call it, add tests for
+       $_sdata = void, $_thread = 0.
+
+2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       Fix re-run of PIE executable, PR shlibs/11776.
+       * gdb.base/break-interp.exp (test_ld): Turn off "disable-randomization".
+       Remove $displacement_main to match the solib-svr4.c change.  New "kill"
+       and re-"run" of the inferior.
+
+2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       Cope with missing /usr/sbin/prelink.
+       * lib/prelink-support.exp (prelink_no):
+       <result == 1 && $output is "no such file or directory">: New.
+       (prelink_yes): Likewise.  Return on failed prelink_no.
+
+2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.base/attach-pie-misread.exp: Load prelink-support.exp.  Replace
+       build_executable by build_executable_own_libs.  Replace "prelink -R"
+       execution by a call of prelink_yes.  Comment why "prelink -r" needs no
+       change.
+       * gdb.base/break-interp.exp: Load prelink-support.exp.  Rename calls of
+       copy to file_copy.  Move setting opts --dynamic-linker and -rpath,
+       mkdir $dir and ldd its parsing and copying to lib/prelink-support.exp.
+       Replace build_executable by build_executable_own_libs's function
+       build_executable_own_libs.
+       (prelinkNO): Create new stub to call prelink_no.
+       (prelinkYES): Create new stub to call prelink_yes.
+       (test_attach): Rename calls of copy to file_copy.
+       (section_get, prelinkNO_run, prelinkNO, prelinkYES, symlink_resolve)
+       (copy): Move to ...
+       * lib/prelink-support.exp: ... a new file.  Rename prelinkNO to
+       prelink_no, prelinkYES to prelink_yes, copy to file_copy.
+       * gdb.base/prelink.exp: Disable testcase also for is_remote and
+       skip_shlib_tests.  Load prelink-support.exp.  Replace gdb_compile with
+       special flags by gdb_compile_shlib.  Replace second gdb_compile by
+       build_executable_own_libs.  Replace "prelink -R" execution by a call of
+       prelink_yes.  Replace "prelink -u" and second "prelink -R" execution by
+       a second call of prelink_yes.  Replace restart commands by
+       clean_restart.
+       (prelink): Rename to ...
+       (seen displacement message): ... this test.  Extend its expectation
+       strictness.
+
+2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/attach-pie-misread.exp, gdb.base/attach-pie-misread.c: New.
+       * gdb.base/break-interp.exp (reach, test_core, test_ld): Require each
+       displacement message exactly once.
+
+2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.base/break-interp.exp (test_attach): Keep $interp changed.  Move
+       its restore after the <$relink_args != ""> loop.  new comment.
+
+2010-07-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.base/break-interp.exp: Run $binpie with new value "ATTACH", new
+       code for it.  New variable relink_args.
+       (prelinkYES): Call prelinkNO.
+       (test_attach): Accept new parameter relink_args.  Re-prelink the binary
+       in such case.  Move the core code to ...
+       (test_attach_gdb): ... a new function.  Send GDB command "file".
+       Extend expected "Attaching to " string.
+
+2010-07-02  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.base/bitops.exp: Remove extraneous "pass".
+
+2010-07-02  Ken Werner  <ken.werner@de.ibm.com>
+
+       * gdb.arch/altivec-abi.exp: Fix expect pattern of character vectors.
+
+2010-07-01  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.base/help.exp: Adjust expected output.
+
+2010-07-01  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.base/help.exp: Adjust expected output.
+
+2010-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.cp/namespace.exp (print C::OtherFileClass::cOtherFileClassVar)
+       (print ::C::OtherFileClass::cOtherFileClassVar): Remove KFAIL for
+       c++/11702.
+
+2010-06-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Doug Evans  <dje@google.com>
+
+       * gdb.base/break-interp.exp (prelinkYES): XFAIL on `Not enough room to
+       add .dynamic entry'.
+
+2010-06-29  Doug Evans  <dje@google.com>
+
+       Test PR c++/11702.
+       * gdb.cp/m-static.exp: Add testcase.
+       * gdb.cp/m-static.h (gnu_obj_4): Add initialized static const member.
+
+2010-06-28  Phil Muldoon  <pmuldoon@redhat.com>
+            Tom Tromey  <tromey@redhat.com>
+            Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * gdb.python/py-inferior.c: New File.
+       * gdb.python/py-infthread.c: New File.
+       * gdb.python/py-inferior.exp: New File.
+       * gdb.python/py-infthread.exp: New File.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.cp/namespace.exp (ptype OtherFileClass typedefs)
+       (ptype ::C::OtherFileClass typedefs): New.
+       * gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType2)
+       (C::OtherFileClass::cOtherFileClassVar2): New.
+       (C::OtherFileClass::cOtherFileClassVar_use): Use also
+       cOtherFileClassVar2.
+       (C::cOtherFileType2, C::cOtherFileVar2): New.
+       (C::cOtherFileVar_use): use also cOtherFileVar2.
+       * gdb.cp/userdef.exp (ptype &*c): Permit arbitrary trailing text.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.cp/namespace.exp (whatis C::cOtherFileType)
+       (whatis ::C::cOtherFileType, whatis C::cOtherFileVar)
+       (whatis ::C::cOtherFileVar, print C::cOtherFileVar)
+       (print ::C::cOtherFileVar)
+       (whatis C::OtherFileClass::cOtherFileClassType)
+       (whatis ::C::OtherFileClass::cOtherFileClassType)
+       (print C::OtherFileClass::cOtherFileClassVar)
+       (print ::cOtherFileClassVar)
+       (print ::C::OtherFileClass::cOtherFileClassVar): New tests.
+       (ptype OtherFileClass, ptype ::C::OtherFileClass): Permit arbitrary
+       trailing content.
+       * gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType)
+       (C::OtherFileClass::cOtherFileClassVar)
+       (C::OtherFileClass::cOtherFileClassVar_use, C::cOtherFileType)
+       (C::cOtherFileVar, C::cOtherFileVar_use): New.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Test PR c++/11703 and PR gdb/1448.
+       * gdb.cp/namespace.exp (ptype ::C::NestedClass): Remove KFAIL for
+       gdb/1448.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.cp/virtbase.cc (class RTTI_base, class RTTI_data)
+       (main) <rtti_data>: New.
+       * gdb.cp/virtbase.exp (print rtti_data): New.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Joel Brobecker  <brobecker@adacore.com>
+
+       * lib/gdb.exp (gdb_test_multiple): Error on trailing newlines.
+
+2010-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.cp/static-print-quit.exp, gdb.cp/static-print-quit.cc: New.
+
+2010-06-28  Doug Evans  <dje@google.com>
+
+       * gdb.base/break-interp.exp (reach): Relax expected output a bit.
+
+2010-06-27  Doug Evans  <dje@google.com>
+
+       * gdb.cp/m-static.exp: Update expected test output.
+
+2010-06-25  Paul Hilfinger  <hilfinger@adacore.com>
+
+        * gdb.gdb/selftest.exp: Adjust expected message for
+        capturing start-up runtime.
+
+2010-06-25  Tom Tromey  <tromey@redhat.com>
+
+       PR python/10808:
+       * gdb.python/python.exp: Add new tests.
+
+2010-06-25  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdb.cp/operator.cc: Created an import loop.
+       * gdb.cp/operator.exp: Added testcase for import loop.
+
+2010-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Test PR python/11407.
+       * gdb.dwarf2/dw2-ref-missing-frame-func.c: New file.
+       * gdb.dwarf2/dw2-ref-missing-frame.S: Use cu_text_start and cu_text_end.
+       Split main into func_nofb and func_loopfb dropping NO_FRAME_BASE.
+       * gdb.dwarf2/dw2-ref-missing-frame.exp: Remove variables sources,
+       executable_nofb and executable_fb.  New variables srcsfile, objsfile,
+       srcfuncfile, objfuncfile, srcmainfile, objmainfile, executable and
+       binfile.  Call gdb_compile with clean_restart twice.
+       (func_nofb print, func_nofb backtrace, func_loopfb print)
+       (func_loopfb backtrace): New.
+
+2010-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.dwarf2/dw2-ref-missing-frame-main.c: New.
+       * gdb.dwarf2/dw2-ref-missing-frame.S: Replace compiler generated output
+       by a hand made one.
+       * gdb.dwarf2/dw2-ref-missing-frame.exp: Remove invalid comment.  Remove
+       i?86 requirement.  Remove variables srcfile and binfile.  New variable
+       sources, executable_nofb and executable_fb.  Call prepare_for_testing.
+
+2010-06-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.cell/dwarfaddr.exp: New file.
+       * gdb.cell/dwarfaddr.S: New file.
+
+2010-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Test PR 9436.
+       * gdb.base/nostdlib.exp, gdb.base/nostdlib.c: New.
+
+2010-06-24  Hui Zhu  <teawater@gmail.com>
+
+       * gdb.base/eval.exp: New file.
+
+2010-06-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.cell/fork.exp: New file.
+       * gdb.cell/fork.c: Likewise.
+       * gdb.cell/fork-spu.c: Likewise.
+
+2010-06-22  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * lib/gdb.exp (banned_variables_traced): New global variable.
+       (gdb_init, gdb_finish): Use new variable to avoid multiple tracing.
+       (gdb_init): Use `trace add variable' instead of obsolete
+       `trace variable'.
+
+2010-06-21  Doug Evans  <dje@google.com>
+
+       * gdb.gdb/selftest.exp: Remove support for gpl v1 and v2 gdb's.
+
+2010-06-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.arch/spu-ls.exp: New file.
+       * gdb.arch/spu-ls.c: Likewise.
+
+2010-06-18  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.threads/thread-specific.exp: Add tests of $_thread.
+
+2010-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.base/gdb11531.exp: Respect gdb,no_hardware_watchpoints flag.
+       * gdb.base/watch-cond.exp: Likewise.
+       * gdb.python/py-breakpoint.exp: Likewise.
+
+2010-06-18  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.multi/base.exp, gdb.multi/bkpt-multi-exec.exp: Use
+       clean_restart, make sure every test has a distinct message, and
+       that messages don't include the executable' full path.
+
+2010-06-17  Doug Evans  <dje@google.com>
+
+       * gdb.arch/i386-size.exp: Updated expected output for
+       DISASSEMBLY_OMIT_FNAME.
+
+2010-06-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * gdb.base/watch-notconst.c: New file.
+       * gdb.base/watch-notconst.S: New file.
+       * gdb.base/watch-notconst2.c: New file.
+       * gdb.base/watch-notconst2.S: New file.
+       * gdb.base/watch-notconst.exp: New file.
+       * gdb.base/watchpoint.c (global_ptr_ptr): New variable.
+       (func4): Add operations on `global_ptr_ptr'.
+       * gdb.base/watchpoint.exp (test_constant_watchpoint): New
+       routine to test watchpoints created with a constant expression.
+       (test_inaccessible_watchpoint): Include tests for watchpoints
+       created with a constant expression.
+
+2010-06-14  Kevin Buettner  <kevinb@redhat.com>
+
+       * gdb.disasm/t01_mov.exp, gdb.disasm/t02_mova.exp,
+       gdb.disasm/t03_add.exp, gdb.disasm/t04_sub.exp,
+       gdb.disasm/t05_cmp.exp, gdb.disasm/t06_ari2.exp,
+       gdb.disasm/t07_ari3.exp, gdb.disasm/t08_or.exp,
+       gdb.disasm/t09_xor.exp, gdb.disasm/t10_and.exp,
+       gdb.disasm/t11_logs.exp, gdb.disasm/t12_bit.exp,
+       gdb.disasm/t13_otr.exp: Examine instruction at label `start' instead
+       of `_start'.
+
+2010-06-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.mi/mi-nonstop.exp: Do not call perror if non-stop mode is
+       not supported on the target.
+       * gdb.mi/mi-nonstop-exit.exp: Likewise.
+       * gdb.mi/mi-ns-stale-regcache.exp: Likewise.
+       * gdb.mi/mi-nsintrall.exp: Likewise.
+       * gdb.mi/mi-nsmoribund.exp: Likewise.
+       * gdb.mi/mi-nsthrexec.exp: Likewise.
+
+2010-06-11  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.base/permissions.exp: New file.
+
+2010-06-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.base/valgrind-db-attach.exp: Fail gracefully if valgrind
+       does not support ELF executable class.
+
+2010-06-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace.
+
+2010-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt.
+       (runto): Catch "The target does not support running in non-stop mode.".
+
+2010-06-11  Michael Snyder  <msnyder@vmware.com>
+
+       * gdb.base/setshow.exp (set language asm): Don't use
+       gdb_test_no_output, fails on some targets.
+
+2010-06-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.cp/cpexprs.exp: Skip test on spu*-*-*.
+       * gdb.cp/pr9167.exp: Likewise.
+
+2010-06-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.python/py-breakpoint.exp: Handle software watchpoints as well.
+
 2010-06-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * gdb.base/solib-corrupted.exp: Respect skip_shlib_tests.