* lib/gdb.exp (gdb_init): Set LC_ALL and LANG to C in the
[binutils-gdb.git] / gdb / testsuite / ChangeLog
index 05a51316ff2941ad3ffb3162e1666c374d758408..a3ae15e00aef19a792fd6edf442bec121eea09ce 100644 (file)
@@ -1,3 +1,309 @@
+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.