testsuite: Prevent writes to prms_id and bug_id.
[binutils-gdb.git] / gdb / testsuite / ChangeLog
index d79a15cf5909d83a0a6b54753af12be86c56217d..e3905bada09c896fa142385edec0c7ee3ac1dc86 100644 (file)
@@ -1,3 +1,515 @@
+2010-05-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * lib/gdb.exp (banned_variables): New variable/constant.
+       (gdb_init): Add write trace on variables listed in banned_variables.
+       (gdb_finish): Remove write traces on variables listed in
+       banned_variables.
+
+2010-05-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.base/gdb11530.exp: Delete setting of prms_id and bug_id.
+       * gdb.cp/koenig.exp: Likewise.
+
+2010-05-14  Phil Muldoon  <pmuldoon@redhat.com>
+
+       PR python/11482
+
+       * gdb.python/py-value.exp (test_value_hash): New function.
+
+2010-05-11  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       PR exp/11530.
+       * gdb.base/gdb11530.c: New file.
+       * gdb.base/gdb11530.exp: New file.
+
+2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.dwarf2/dw2-modula2-self-type.exp: New.
+       * gdb.dwarf2/dw2-modula2-self-type.S: New.
+
+2010-05-07  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdb.cp/koenig.exp: New test.
+       * gdb.cp/koenig.cc: New test program.
+
+2010-05-05  Joel Brobecker  <brobecker@adacore.com>
+
+       Remove the use of prms_id and bug_id throughout the testsuite.
+
+2010-05-04  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       PR exp/11349.
+       * testsuite/gdb.cp/ref-types.exp: Add test to examine
+       use a reference local variable.
+
+2010-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/break-interp.exp: Remove $exec.debug safety removal.
+       * gdb.base/sepdebug.exp: Remove .debug subdirectory handling.  New
+       variable different_dir. Move debugfile into a full directory pathname
+       under DIFFERENT_DIR.
+       * lib/gdb.exp (separate_debug_filename): Remove.
+       (gdb_gnu_strip_debug): No longer call separate_debug_filename.  Remove
+       variable debug_dir and mkdir of it.  Update function comments.
+
+2010-04-29  Pedro Alves  <pedro@codesourcery.com>
+
+       PR gdb/11557
+
+       * gdb.mi/mi-ns-stale-regcache.exp, gdb.mi/ns-stale-regcache.c: New
+       files.
+
+2010-04-29  Phil Muldoon  <pmuldoon@redhat.com>
+
+        * gdb.python/py-param.exp: New File.
+
+2010-04-29  Mihail Zenkov  <mihail.zenkov@gmail.com>
+
+       * gdb.base/default.exp: Fix "set language" test.
+
+2010-04-24  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       PR breakpoints/11531.
+       * gdb.base/gdb11531.c: New file.
+       * gdb.base/gdb11531.exp: New file.
+
+2010-04-26  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.base/completion.exp: Add tests for completion and deprecated
+       commands.
+
+2010-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.pascal/gdb11492.exp (print integer_array, print /d char_array)
+       (print /x char_array): Escape curly brackets.
+
+2010-04-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix deadlock on looped list of loaded shared objects.
+       * gdb.base/solib-corrupted.exp: New.
+
+2010-04-23  Doug Evans  <dje@google.com>
+
+       * gdb.python/py-section-script.c: New file.
+       * gdb.python/py-section-script.exp: New file.
+       * gdb.python/py-section-script.py: New file.
+
+2010-04-20  Chris Moller  <cmoller@redhat.com>
+
+       PR 10179
+
+       * gdb.base/Makefile.in (EXECUTABLES): Added pr10179.
+       * gdb.base/pr10179-a.c:
+       * gdb.base/pr10179-b.c:
+       * gdb.base/pr10179.exp: New files.
+
+2010-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix crashes on dangling display expressions.
+       * gdb.base/solib-display.exp: Call gdb_gnu_strip_debug if LIBSEPDEBUG
+       is SEP.
+       (lib_flags): Remove the "debug" keyword.
+       (libsepdebug): New variable for iterating new loop.
+       (save_pf_prefix): New variable wrapping the loop.
+       (sep_lib_flags): New variable derived from LIB_FLAGS.  Use it.
+       * lib/gdb.exp (gdb_gnu_strip_debug): Document the return code.
+
+2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * gdb.threads/watchthreads.exp: Change to obtain consistent output.
+
+2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       PR stabs/11479.
+       * gdb.stabs/gdb11479.exp: New file.
+       * gdb.stabs/gdb11479.c: New file.
+
+2010-04-22  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * gdb.base/charset.c (Strin16, String32): New variables.
+       * gdb.base/charset.exp (gdb_test): Test correct display
+       of 16 or 32 bit strings.
+
+2010-04-21  Chris Moller  <cmoller@redhat.com>
+
+       PR 9167
+       * gdb.cp/Makefile.in (EXECUTABLES): Added pr9167.
+       * gdb.cp/pr9167.cc: New file.
+       * gdb.cp/pr9167.exp: New file.
+
+
+2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       PR pascal/11492.
+       * gdb.pascal/gdb11492.pas: New file.
+       * gdb.pascal/gdb11492.exp: New file.
+
+2010-04-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.ada/info_types.c, gdb.ada/info_types.exp: New files.
+
+2010-04-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.ada/dyn_loc: New testcase.
+
+2010-04-20  Chris Moller  <cmoller@redhat.com>
+
+       PR 10867
+       
+       * gdb.cp/Makefile.in  (EXECUTABLES): Added pr10687
+       * gdb.cp/pr10687.cc: New file.
+       * gdb.cp/pr10687.exp: New file.
+
+
+2010-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
+           Sergio Durigan Junior  <sergiodj@redhat.com>
+
+       * gdb.fortran/logical.exp: New testcase.
+       * gdb.fortran/logical.f90: New file.
+
+2010-04-19  Doug Evans  <dje@google.com>
+
+       * gdb.base/help.exp (help source): Update expected output.
+
+2010-04-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/solib-display.exp: Replace gdb_exit, gdb_start,
+       gdb_reinitialize_dir and gdb_load by clean_restart.  Remove trailing
+       gdb_exit and return.
+       (executable): New variable.
+       (binfile): Use it.
+
+2010-04-19  Pedro Alves  <pedro@codesourcery.com>
+
+       PR breakpoints/8554.
+
+       * gdb.trace/save-trace.exp: Adjust.
+
+2010-04-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR corefiles/11511
+       * gdb.arch/system-gcore.exp: New.
+       * gdb.arch/gcore.c: Likewise.
+
+2010-04-15  Doug Evans  <dje@google.com>
+
+       * gdb.python/py-progspace.c: New file.
+       * gdb.python/py-progspace.exp: New file.
+
+       * gdb.base/source.exp: Add tests for "source -s".
+
+2010-04-14  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * gdb.python/py-prettyprint.py (NoStringContainerPrinter): New printer.
+       * gdb.python/py-prettyprint.c: Add justchildren struct, typedefs.
+       * gdb.python/py-prettyprint.exp: New test for to_string returning None.
+       * gdb.python/py-mi.exp: New test for to_string returning None.
+
+2010-04-12  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * gdb.python/py-breakpoint.c: Make result global.
+
+2010-04-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       Fix non-GNU make compatibility.
+       * Makefile.in ($(TEST_TARGETS)): Conditionalize it by @GMAKE_TRUE@.
+
+2010-04-09  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * gdb.python/py-breakpoint.exp: New File.
+       * gdb.python/py-breakpoint.C: Ditto.
+
+2010-04-08  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/actions.exp: Clear default-collect.
+       * gdb.trace/save-trace.exp: Clear default-collect.
+
+2010-04-08  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * gdb.python/py-value: Add null string variable.
+         (test_lazy_string): Test zero length, NULL address lazy
+         strings.
+
+2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gdb.arch/i386-avx.c: New.
+       * gdb.arch/i386-avx.exp: Likewise.
+
+       * gdb.arch/i386-cpuid.h: Updated from gcc 4.4.
+
+2010-04-06  Doug Evans  <dje@google.com>
+
+       * gdb.base/source-test.gdb: New file.
+       * gdb.base/source.exp: Test source -v.
+
+2010-04-06  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.cp/inherit.exp (test_print_anon_union): Fix re_class pattern.
+
+2010-04-06  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * gdb.stabs/aout.sed: Convert all backslash to double backslash
+       within one line, unless it is followed by a double quote.
+       * gdb.stabs/hppa.sed: Idem.
+       * gdb.stabs/weird.def: Add char and String constants
+       * gdb.stabs/weird.exp: Check for correct parsing of 
+       chhar and string constants.
+       * gdb.stabs/xcoff.sed: Ignore escaped quote quotes
+       in .stabs to .stabx substitution.
+
+2010-04-05  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/tfile.c: Add a variable split across two blocks, and a
+       constant global.
+       * gdb.trace/tfile.exp: Try to print them.
+
+2010-04-04  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.base/completion.exp: Update for new "info watchpoints".
+       * gdb.base/default.exp: Ditto.
+       * gdb.base/help.exp: Ditto.
+       * gdb.base/watchpoint.exp: Ditto.
+       * gdb.trace/infotrace.exp: Update "info tracpoints" output.
+       
+2010-04-04  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/tfile.exp: Sharpen tfind test.
+
+2010-04-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/break-entry.exp: New.
+
+2010-04-02  Hui Zhu  <teawater@gmail.com>
+            Michael Snyder <msnyder@vmware.com>
+
+       * gdb.reverse/i386-sse-reverse.exp: New file.
+       * gdb.reverse/i386-sse-reverse.c: New file.
+
+2010-04-02  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.trace/tfind.exp: Adjust expected disassembly output.
+
+2010-04-01  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/actions.exp: Tweak expected output.
+       * gdb.trace/while-stepping.exp: Tweak expected output.
+
+2010-04-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gdb.arch/amd64-byte.exp: Check "ah", "bh", "ch", "dh".
+
+2010-04-01  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.base/commands.exp: Adjust.
+       * gdb.cp/extern-c.exp: Adjust.
+
+2010-04-01  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.trace/collection.c (local_test_func): Define a local struct,
+       and instanciate it.
+
+2010-04-01  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.trace/collection.exp (gdb_collect_args_test)
+       (gdb_collect_argarray_test): XFAIL the tests that assume the
+       argarray argument's elements are collected.
+
+2010-03-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.dwarf2/dw2-bad-parameter-type.exp,
+       gdb.dwarf2/dw2-bad-parameter-type.S: New.
+
+2010-03-31  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/save-trace.exp: Test save/restore of default-collect
+       and tracepoint conditionals.
+       (gdb_verify_tracepoints): Delete unused return.
+
+2010-03-26  Keith Seitz  <keiths@redhat.com>
+
+       * gdb.java/jmisc.exp (ptype jmisc): Allow the constructor to
+       appear in the output before main.
+       Remove KFAIL for gdb/2215 aka bz 9320.
+
+2010-03-30  Doug Evans  <dje@google.com>
+
+       * gdb.arch/amd64-word.exp: Rename hex to hexr, the former is defined
+       by dejagnu.
+       * gdb.arch/amd64-dword.exp: Ditto.
+
+       * gdb.base/annota1.exp (break handle_USR1): Make fail and pass text
+       match.
+       (break printf): Ditto.
+
+2010-03-29  Sami Wagiaalla  <swagiaal@redhat.com>
+
+       * gdb.cp/nsusing.exp: Marked imported declaration test as xfail with
+       gcc < 4.4.
+       * gdb.cp/shadow.exp: Ditto.
+
+2010-03-29  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.trace/collection.exp (run_trace_experiment): Make sure
+       "tstart" is silent.
+
+2010-03-29  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.trace/collection.exp (executable): New.
+       (binfile): Use it.
+       (fpreg, spreg, pcreg): New.
+       (test_register): Use gdb_test_multiple.  Pass /x to print.
+       (prepare_for_trace_test): New.
+       (run_trace_experiment): Use "continue", not gdb_run_cmd.
+       (gdb_collect_args_test, gdb_collect_argstruct_test)
+       (gdb_collect_argarray_test, gdb_collect_locals_test): Use
+       prepare_for_trace_test.
+       (gdb_collect_registers_test): Use prepare_for_trace_test.  Use
+       fpreg, spreg and pcreg.
+       (gdb_collect_expression_test, gdb_collect_globals_test): Use
+       prepare_for_trace_test.
+       (gdb_trace_collection_test): Use fpreg, spreg and pcreg.  Don't
+       try to detect tracing support here.  Don't set breakpoints at
+       `begin' or `end' here.
+       <global scope>: Use clean_restart.  Run to main before checking
+       for tracing support.  Check for for tracing support here.
+
+2010-03-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/break-interp.exp (test_core, test_attach, test_ld): Add
+       " as $displacement" to "seen displacement message".
+
+2010-03-28  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.trace/while-dyn.exp (executable): New variable.
+       (binfile): Use it.
+       (test_while_stepping): New function.  Move most tests here.  Call
+       it once for each of the while-stepping, stepping and ws aliases.
+
+2010-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.cp/inherit.exp (test_ptype_si): XFAIL test for GCC versions
+       that do not provide the tagless_struct type name at all.
+       (test_print_anon_union): Do not check value of uninitialized
+       union member.  Do not use cp_test_ptype_class, so we can accept
+       "long" as well as "long int".
+
+2010-03-26  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.trace/tfile.c (tohex, bin2hex): New.
+       (write_error_trace_file): Hexify error description.
+
+2010-03-25  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/tfile.c: Generate an additional trace file, improve
+       portability.
+       * gdb.trace/tfile.exp: Test trace file with an error stop, delete
+       files in a better way.
+
+2010-03-25  Keith Seitz  <keiths@redhat.com>
+
+       * gdb.java/jprint.exp: XFAIL printing of static class members
+       because of GCC debuginfo problem.
+
+2010-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/dup-sect.exp, gdb.base/dup-sect.S: New.
+
+2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.base/completion.exp: Allow long instead of long int.
+       * gdb.base/ending-run.exp: Match _rt_entry.* for RealView.
+       * gdb.base/gdbvars.c (main): Remove unused usestubs code.  Reference
+       variable p.
+       * gdb.base/maint.exp: Allow ER_RO and ER_RW instead of .text and .data.
+       * gdb.base/pointers.exp: Allow long instead of long int.
+       * gdb.base/printcmds.exp: XFAIL for RealView on ARM EABI.
+       * gdb.base/step-line.exp: Allow a directory before the source file name.
+
+2010-03-24  Tom Tromey  <tromey@redhat.com>
+
+       PR breakpoints/9352:
+       * gdb.base/default.exp: Update.
+       * gdb.base/commands.exp: Update.
+       * gdb.cp/extern-c.exp: Test setting commands on multiple
+       breakpoints at once.
+
+2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.base/call-signal-resume.exp, gdb.base/unwindonsignal.exp: Skip
+       if gdb,nosignals.
+       * gdb.base/watchpoints.c: Do not include unnecessary headers.
+       * lib/gdb.exp (gdb_test_multiple): Relax pattern for "the program
+       exited".
+
+2010-03-24  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/tfile.exp: Expect "trace frame", with a space.
+
+2010-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.base/callfuncs.exp (do_function_calls): Add XFAILs for RealView.
+       * gdb.base/ptype.exp (ptype_maybe_prototyped): Add overprototyped
+       argument.  Handle "short" and "long".
+       (Top level): Pass overprototyped output for old_fptr and xptr.
+
+2010-03-23  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.threads/pthreads.c (thread1, thread2, main): Fix printf
+       format strings and add casts to avoid compiler warnings.
+
+2010-03-23  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * lib/trace-support.exp (gdb_trace_setactions):
+       Don't expect whitespace after ">" prompt.
+       * gdb.trace/actions.exp: Adjust for output changes.
+       * gdb.trace/while-stepping.exp: Likewise.
+
+2010-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dg-extract-results.sh: Sync with GCC HEAD (import r155655, r157175
+       and r157645).
+
+2010-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.dwarf2/dw2-empty-namespace.exp, gdb.dwarf2/dw2-empty-namespace.S:
+       New.
+
+2010-03-22  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * gdb.python/Makefile.in (EXECUTABLES): Add py-mi.
+       * gdb.python/py-mi.exp (binfile): Rename to py-mi.
+
+2010-03-19  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/ax.exp: New file.
+
+2010-03-19  Doug Evans  <dje@google.com>
+
+       * lib/gdb.exp (gdb_compile_test): Watch for "compiler not installed"
+       output from gcc.
+
+       * gdb.base/break-interp.exp (prelinkNO): Handle prelink binaries
+       named /usr/sbin/prelink<foo>.
+
+2010-03-18  Stan Shebs  <stan@codesourcery.com>
+
+       * gdb.trace/circ.exp: Test circular-trace-buffer.
+       * gdb.trace/tfile.exp: Update tstatus test.
+
+2010-03-18  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.dwarf2/dw2-anonymous-func.S: New file.
+       * gdb.dwarf2/dw2-anonymous-func.exp: New testcase.
+
+2010-03-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.mi/gdb680.exp: Revert 2009-06-17 change.
+
+2010-03-18  Pedro Alves  <pedro@codesourcery.com>
+
+       * gdb.base/default.exp: Adjust the expected output of the finish
+       and until commands when the inferior is not being run.
+
 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
 
        * gdb.cp/shadow.exp: Removed kfail; test has been fix.