Internal error while loading core on alpha-tru64.
[binutils-gdb.git] / gdb / ChangeLog
index 19826cf1f09cffd0c3ea30e0e07cf5ab7e34db40..a31122751c39420d69ae348ea7ca417490eaf21c 100644 (file)
@@ -1,3 +1,538 @@
+2009-12-31  Joel Brobecker  <brobecker@adacore.com>
+
+       Internal error while loading core on alpha-tru64.
+       * corelow.c (core_open): Delete unused local variables.
+       Use inferior_appeared instead of add_inferior_silent.
+
+2009-12-30  Stan Shebs  <stan@codesourcery.com>
+
+       * tracepoint.c (trace_status_command): Add some status output.
+
+20090-12-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
+            Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * breakpoint.c (update_watchpoint): Change b->type to
+       bp_watchpoint before calling hw_watchpoint_used_count.
+
+2009-12-30  Joel Brobecker  <brobecker@adacore.com>
+
+       Fix build failure in inf-ptrace.c.
+       * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
+
+2009-12-30  Joel Brobecker  <brobecker@adacore.com>
+
+       * breakpoint.c (watchpoint_check): Expand the function description.
+
+2009-12-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * valarith.c (value_equal_contents): New function.
+       * value.h (value_equal_contents): Declare.
+       * breakpoint.c (watchpoint_check): Use value_equal_contents
+       instead of value_equal.
+
+2009-12-30  Stan Shebs  <stan@codesourcery.com>
+
+       Add default-collect variable.
+       * tracepoint.c (default_collect): New global.
+       (encode_actions): Use it.
+       (download_tracepoint): Test it, for otherwise
+       action-less tracepoints.
+       (_initialize_tracepoint): Add set/show.
+       * NEWS: Mention default-collect.
+
+2009-12-29  Stan Shebs  <stan@codesourcery.com>
+
+       * language.c (pointer_type): Un-comment out.
+       * ax-gdb.c: Include language.h, use pointer_type throughout
+       instead of testing TYPE_CODE_PTR.
+       (gen_fetch): Include TYPE_CODE_REF.
+       (gen_cast): Ditto.
+
+       * ax-gdb.c (gen_expr): Handle logical and, logical or, and
+       conditional expressions.
+
+2009-12-28  Stan Shebs  <stan@codesourcery.com>
+
+       Add trace state variables.
+       * ax.h (enum agent_op): Add getv, setv, and tracev.
+       (ax_tsv): Declare.
+       * ax-gdb.c: Include tracepoint.h.
+       (gen_expr): Handle BINOP_ASSIGN, BINOP_ASSIGN_MODIFY, and
+       OP_INTERNALVAR.
+       (gen_expr_binop_rest): New function, split from gen_expr.
+       * ax-general.c (ax_tsv): New function.
+       (aop_map): Add new bytecodes.
+       * tracepoint.h (struct trace_state_variable): New struct.
+       (tsv_s): New typedef.
+       (find_trace_state_variable): Declare.
+       * tracepoint.c (tvariables): New global.
+       (next_tsv_number): New global.
+       (create_trace_state_variable): New function.
+       (find_trace_state_variable): New function.
+       (delete_trace_state_variable): New function.
+       (trace_variable_command): New function.
+       (delete_trace_variable_command): New function.
+       (tvariables_info): New function.
+       (trace_start_command): Download tsvs with initial values.
+       (_initialize_tracepoint): Add new commands.
+       * NEWS: Mention the addition of trace state variables.
+
+2009-12-28  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * NEWS: Document "info variables" change.
+       * dwarf2read.c (new_symbol): Add file-scope external unresolved
+       symbols to global_symbols.
+       * symtab.c (search_symbols): Skip LOC_UNRESOLVED symbols.
+
+2009-12-28  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * defs.h (print_address_symbolic, build_address_symbolic): Update
+       prototypes.
+       * printcmd.c (print_address_symbolic): Take a gdbarch argument.
+       Pass it to build_address_symbolic.  All callers updated.
+       (build_address_symbolic): Take a gdbarch argument.  Use
+       gdbarch_addr_bits_remove for functions.  All callers updated.
+
+2009-12-28  Pedro Alves  <pedro@codesourcery.com>
+
+       * ax-gdb.c (gen_expr) <OP_THIS>: Lookup `this' in the context of
+       the tracepoint, not of the selected frame and language.
+
+2009-12-23  Stan Shebs  <stan@codesourcery.com>
+
+       * ax-gdb.c (gen_expr): Handle OP_THIS.
+
+       * ax-gdb.h (gen_trace_for_var): Declare.
+       * ax-gdb.c (gen_trace_for_var): New function.
+       * dwarf2loc.c (dwarf_expr_frame_base_1): New function, split from...
+       (dwarf_expr_frame_base): ...here.
+       (dwarf2_tracepoint_var_ref): Add computed location case.
+       * tracepoint.c (collect_symbol): Add scope arg and LOC_COMPUTED
+       case.
+       (add_local_symbols): Update call to collect_symbol.
+       (encode_actions): Ditto.
+
+2009-12-23  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
+
+       PR gdb/11110
+       * tracepoint.h (deprecated_trace_find_hook)
+       (deprecated_trace_start_stop_hook): Declare extern.
+       * tracepoint.c (deprecated_trace_find_hook)
+       (deprecated_trace_start_stop_hook): Define.
+
+2009-12-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * breakpoint.c (bpstat_stop_status): Iterate using ALL_BREAKPOINTS and
+       the B->LOC list.  Remove gdb_assert on B.  Change bp_hardware_watchpoint
+       continue to break.  Remove variable update_locations.  Remove HIT_COUNT
+       increment protection by an ENABLE_STATE check.  Inline the delayed
+       update_global_location_list call.
+
+2009-12-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * breakpoint.c (bpstat_stop_status): Check BL->SHLIB_DISABLED.
+       (print_breakpoint_location): New comment.  Check LOC->SHLIB_DISABLED.
+       Check LOC validity before printing it.  Use LOC instead of B->LOC.
+       Swap the if conditionals order.
+
+2009-12-23  Tom Tromey  <tromey@redhat.com>
+
+       * Makefile.in (SFILES): Add exceptions.c.
+
+2009-12-22  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 7.0.1 released.
+
+2009-12-22  Hui Zhu  <teawater@gmail.com>
+
+       * record.c (record_message): Change argument.
+       (record_message_wrapper): New function.
+       (do_record_message): Change it name to
+       "record_message_wrapper_safe".
+       Let it call "record_message_wrapper".
+       (record_resume_error): Deleted.
+       (record_resume): Call "record_message".
+       (record_wait): Deleted record_resume_error.
+       Call "record_message_wrapper_safe".
+       Set status when do_record_message need stop the inferior.
+
+2009-12-21  Doug Evans  <dje@google.com>
+
+       * linux-nat.c (kill_lwp): Minor cleanup, move definition of
+       tkill_failed into ifdef HAVE_TKILL_SYSCALL.  Move setting of errno
+       there too.  Delete unnecessary resetting of errno after syscall.
+       Minor comment changes to match gdbserver/linux-low.c:kill_lwp.
+
+2009-12-21  Alan Modra  <amodra@gmail.com>
+
+       * MAINTAINERS: Update my email address.
+
+2009-12-21  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * mi/mi-main.c (mi_cmd_gdb_exit): Flush raw_stdout.
+
+2009-12-21  Vladimir Prus  <vladimir@codesourcery.com>
+
+       PR gdb/10884
+
+       * value.c (value_primitive_field): Call check_typedef
+       on the type.
+
+2009-12-21  Joel Brobecker  <brobecker@adacore.com>
+
+       * COPYING: Update to GPL version 3.
+
+2009-12-20  Michael Snyder  <msnyder@vmware.com>
+
+       * amd64-tdep.c (amd64_epilogue_frame_cache): Fix buf size.
+
+2009-12-20  Joel Brobecker  <brobecker@adacore.com>
+
+       * darwin-nat-info.c, solib-spu.c, spu-multiarch.c,
+       regformats/regdat.sh, features/Makefile: Update copyright header.
+
+2009-12-19  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * arm-linux-tdep.c (ARM_OABI_SYSCALL_RESTART_SYSCALL): New macro.
+       (ARM_LDR_PC_SP_12): Likewise.
+       (arm_linux_restart_syscall_init): New function.
+       (arm_linux_restart_syscall_tramp_frame): New variable.
+       (arm_linux_init_abi): Install the
+       arm_linux_restart_syscall_tramp_frame unwinder.
+
+2009-12-18  Doug Evans  <dje@google.com>
+
+       * gdb_proc_service.h (psaddr_t): Fix type.
+       * linux-thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
+       signature to match glibc.
+       (thread_db_get_thread_local_address): Use psaddr_t for type of
+       address to match parameter of td_thr_tls_get_addr_p.
+       Cast through psaddr_t instead of (void*) to match parameter of
+       td_thr_tls_get_addr_p.
+
+2009-12-17  Stan Shebs  <stan@codesourcery.com>
+
+       * breakpoint.c (bpstat_check_location): Check for tracepoints.
+
+2009-12-16  Michael Snyder  <msnyder@vmware.com>
+
+       * i386-tdep.c (i386_process_record): Reformat comments.
+
+2009-12-15  Gaius Mulley  <gaius@glam.ac.uk>
+
+       * dwarf2read.c (read_subroutine_type): Add the subroutine
+       type to the die immediately to allow a parameter type to be
+       the same subroutine type.
+
+2009-12-15  Tristan Gingold  <gingold@adacore.com>
+
+       * machoread.c (macho_symfile_read): Set section size of dsym bfd
+       from main bfd.
+
+2009-12-15  Tristan Gingold  <gingold@adacore.com>
+
+        * machoread.c (macho_check_dsym): Read uuid directly from load command
+        instead of from a fake section.
+
+2009-12-15  Tristan Gingold  <gingold@adacore.com>
+
+        * machoread.c (macho_symtab_read): Add comments.  Always set
+        first_offset.
+
+2009-12-14  Tristan Gingold  <gingold@adacore.com>
+
+       * symfile.h (find_separate_debug_file_by_buildid): Remove prototype.
+       (bfd_open_maybe_remote): New prototype.
+       * symfile.c (bfd_open_maybe_remote): New function.
+       (separate_debug_file_exists, reread_symbols): Use it.
+       (struct build_id, build_id_bfd_get, build_id_verify)
+       (build_id_to_debug_filename)
+       (find_separate_debug_file_by_buildid): Move these ...
+       * elfread.c (struct build_id)
+       (build_id_bfd_get, build_id_verify, build_id_to_debug_filename)
+       (find_separate_debug_file_by_buildid): ... here.
+
+2009-12-13  Paul N. Hilfinger  <hilfinger@adacore.com>
+
+       * dwarf2read.c (struct attribute): Increase sizes of unsnd and snd 
+       fields to allow larger integer sizes.
+       (read_subrange_type): Increase size of bound values.
+       Add logic to determine signedness based on base-type size, signedness.
+       (read_attribute_value): Change format for bad byte size in message.
+       (read_8_bytes): Increase size of result type.
+       (dump_die_shallow): Change format for value.
+       (dwarf2_get_attr_constant_value): Increase size of return type.
+       Correct comment.
+       * gdbtypes.c (create_range_type): Change API to increase size of 
+       bounds. struct field -> union field.
+       Always take signedness from base type.
+       (check_typedef): Use new API for TYPE_LOW_BOUND, TYPE_HIGH_BOUND.
+       (recursive_dump_type, copy_type_recursive): Adjust to new 
+       representation of range types.
+       * gdbtypes.h (fields_or_bounds): New union containing struct field and
+       new struct range_bounds, used for range types.
+       (TYPE_RANGE_DATA): New macro to access range_bounds member.
+       (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Represent with new TYPE_RANGE_DATA.
+       (TYPE_LOW_BOUND_UNDEFINED, TYPE_HIGH_BOUND_UNDEFINED): New macros,
+       taking over the job of TYPE_FIELD_ARTIFICIAL for range bounds.
+       (SET_TYPE_LOW_BOUND, SET_TYPE_HIGH_BOUND, SET_TYPE_LOW_BOUND_DEFINED)
+       (SET_TYPE_HIGH_BOUND_DEFINED): New macros.
+       (TYPE_FIELDS, TYPE_BASECLASS, TYPE_BASECLASS_NAME, TYPE_FIELD)
+       (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED)
+       (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED, TYPE_ARRAY_UPPER_BOUND_VALUE)
+       (TYPE_ARRAY_LOWER_BOUND_VALUE): Adjust to new representation.
+       (create_range_type): Adjust API.
+       * ada-lang.c (ada_modulus): Use new extended bound values.
+       (discrete_type_low_bound): Rename to...
+       (ada_discrete_type_low_bound): ... and make external.
+       (discrete_type_high_bound): Rename to...
+       (ada_discrete_type_high_bound): ... and make external.
+       (ada_value_slice_from_ptr, ada_array_bound_from_type)
+       (ada_evaluate_subexp, to_fixed_range_type): 
+       Use ada_discrete_type_low_bound, ada_discrete_type_high_bound.
+       * ada-typeprint.c (print_range): Use ada_discrete_type_low_bound,
+       ada_discrete_type_high_bound.  Don't look at field count, which 
+       is no longer meaningful.  Print bounds whenever argument is a range
+       or enumeration.
+       * ada-lang.h (ada_discrete_type_low_bound,ada_discrete_type_high_bound):
+       Declare.
+       * varobj.c (c_describe_child): Adjust to render larger values.
+       * mdebugread.c (parse_type): Use proper abstractions for range types:
+       TYPE_RANGE_DATA, SET_TYPE_LOW_BOUND_DEFINED,
+       SET_TYPE_HIGH_BOUND_DEFINED.
+       * p-typeprint.c (pascal_type_print_varspec_prefix): Use larger format
+       for bounds.
+       
+2009-12-11  Michael Snyder  <msnyder@vmware.com>
+
+       * main.c (captured_main): Indentation.
+
+2009-12-10  Michael Snyder  <msnyder@vmware.com>
+
+       * i386-tdep.c (i386_record_lea_modrm_addr): Indent goto label.
+       (i386_process_record): Indent goto label.  Use prefix opcode
+       constants from include/opcode/i386.h in switch statement.
+
+2009-12-10  Chris Moller  <cmoller@redhat.com>
+
+       PR gdb/9399
+       * valops.c (value_cast_structs): Added test to return NULL if no
+        casting needed.
+
+2009-12-10  Oza Pawandeep <paawan1982@yahoo.com>
+
+       * i386-tdep.c:  Support for floating point recording.
+       Records and Replay the i386 floating point registers,
+       of i387 FPU.
+       (i386_record_floats): New function.
+       (i386_process_record): Implement FP insns.
+
+2009-12-03  Tristan Gingold  <gingold@adacore.com>
+
+       * machoread.c (macho_symfile_read): Use symbol_file_add_separate
+       to add dsym files.
+
+2009-12-09  Tristan Gingold  <gingold@adacore.com>
+
+       * symfile.h (symbol_file_add_separate): New prototype.
+       (find_separate_debug_file_by_buildid): Ditto.
+       (find_separate_debug_file_by_debuglink): Ditto.
+       * symfile.c (reread_separate_symbols): Remove.
+       (find_separate_debug_file): Split into ...
+       (find_separate_debug_file_by_buildid): ... this and ...
+       (find_separate_debug_file_by_debuglink): ... this.
+       (symbol_file_add_with_addrs_or_offsets): Do not save orig_addrs.
+       Remove separate debug file handling.
+       (symbol_file_add_separate): New function.
+       (reread_symbols): Do not considere separate debug files, but free
+       them while handling their parent.  Reindent.
+       * coffread.c (coff_symfile_read): Handle separate object file.
+       * elfread.c (elf_symfile_read): Ditto.
+
+2009-12-09  Joel Brobecker  <brobecker@adacore.com>
+
+       * acinclude.m4: Update comment.
+
+2009-12-09  Joel Brobecker  <brobecker@adacore.com>
+
+       * acinclude.m4: Link against in-tree libiconv by adding
+       libiconv.a to the LIBS instead of using -liconv.
+       * configure: Regenerate.
+
+2009-12-08  Phil Muldoon  <pmuldoon@redhat.com>
+
+       PR python/10804
+
+       * python/py-type.c (typy_range): New Function.
+
+2009-12-07  Doug Evans  <dje@google.com>
+
+       * charset.c: Include environ.h.
+       (ignore_line_p): New function.
+       (find_charset_names): Handle older versions of iconv that print
+       human-readable output even if stdout is not a tty.
+
+2009-12-07  Kevin Buettner  <kevinb@redhat.com>
+
+       * configure.tgt: Add rx-*-elf target.
+       * rx-tdep.c: New target.
+       * NEWS: Announce Renesas RX support.
+
+2009-12-07  Tristan Gingold  <gingold@adacore.com>
+
+       * symfile.h (struct sym_fns): Adjust comment on sym_read.
+       * symfile.c (syms_from_objfile): Pass all symfile flags to sym_read.
+       * dbxread.c (dbx_symfile_read): Rename mainline to symfile_flags,
+       adjust header comment.
+       * elfread.c (elf_symfile_read): Ditto.
+       * somread.c (som_symfile_read): Ditto.
+       * xcoffread.c (xcoff_initial_scan): Ditto.
+       * coffread.c (coff_symfile_read): Rename mainline to symfile_flags.
+       * machoread.c (macho_symfile_read): Ditto.
+       * mipsread.c (mipscoff_symfile_read): Ditto.
+
+2009-12-07  Tristan Gingold  <gingold@adacore.com>
+
+       * dbxread.c (dbx_symfile_read): No need to test mainline to call
+       init_psymbol_list.
+       * xcoffread.c (xcoff_initial_scan): Ditto;
+       * coffread.c (coff_symfile_read): Remove call to init_psymbol_list.
+       * elfread.c (elf_symfile_read): Ditto.
+       * machoread.c (macho_symfile_read): Ditto.
+
+2009-12-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * valops.c (value_struct_elt_for_reference): Do not rely on
+       field order.
+
+2009-12-03  Richard Ward  <richard.j.ward1@googlemail.com>
+
+       * python/py-type.c (convert_field): New attribute "is_base_class".
+
+2009-12-03  Tom Tromey  <tromey@redhat.com>
+
+       * python/python.c (gdbpy_parse_and_eval): New function.
+       (GdbMethods): Add "parse_and_eval".
+
+2009-12-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linux-thread-db.c (find_new_threads_once): Change errp and err types
+       to td_err_e.
+       (thread_db_find_new_threads_2): Change err type to td_err_e.
+
+2009-12-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
+       
+       PR gdb/11022
+
+       * breakpoint.c (invalidate_bp_value_on_memory_change):
+       New function.
+       (_initialize_breakpoint): Add it as memory change observer.
+
+2009-12-03  Tristan Gingold  <gingold@adacore.com>
+
+       * machoread.c (macho_sym_fns): Set sym_segment routine.
+
+2009-12-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * ada-lang.c (ada_value_assign): Use observer_notify_memory_changed.
+       * valops.c (value_assign): Likewise.
+       * defs.h (deprecated_memory_changed_hook): Remove.
+       * top.c (deprecated_memory_changed_hook): Likewise.
+       * interps.c (clear_interpreter_hooks): Adjust.  
+       
+2009-12-02  Tristan Gingold  <gingold@adacore.com>
+
+       * symfile.h (dwarf2_build_psymtabs): Remove mainline parameter in
+       prototype.
+       * dwarf2read.c (dwarf2_build_psymtabs): Remove mainline paramter in
+       definition, simplify code assuming it is always 0.
+       * coffread.c (coff_symfile_read): Adjust call.
+       * elfread.c (elf_symfile_read): Ditto.
+       * machoread.c (macho_symfile_read): Explicitely calls
+       init_psymbol_list if mainline is set.
+
+2009-12-02  Tristan Gingold  <gingold@adacore.com>
+
+       * dwarf2read.c (dwarf2_build_psymtabs_easy): Remove mainline parameter.
+       (dwarf2_build_psymtabs_hard): Ditto.
+       (dwarf2_build_psymtabs): Ajust calls.
+       * stabsread.h (elfstab_build_psymtabs): Remove mainline parameter on
+       the prototype.
+       (coffstab_build_psymtabs): Ditto.
+       (stabsect_build_psymtabs): Ditto.
+       * dbxread.c (coffstab_build_psymtabs): Remove mainline parameter on
+       the definition.
+       (elfstab_build_psymtabs): Ditto.
+       (stabsect_build_psymtabs): Ditto.
+       * coffread.c (coff_symfile_read): Adjust call.
+       * elfread.c (elf_symfile_read): Ditto.
+       * somread.c (som_symfile_read): Ditto.
+
+2009-12-02  Tristan Gingold  <gingold@adacore.com>
+
+       * charset.c (_initialize_charset): Set a default value to
+       auto_host_charset_name if empty.
+
+2009-12-01  Joseph Myers  <joseph@codesourcery.com>
+
+       * gcore.c: Include solib.h.
+       (gcore_create_callback): Call solib_keep_data_in_core when
+       considering not saving memory in core file.
+       * solib-svr4.c (svr4_keep_data_in_core): New.
+       (_initialize_svr4_solib): Initialize
+       svr4_so_ops.keep_data_in_core.
+       * solib.c (solib_keep_data_in_core): New.
+       * solib.h (solib_keep_data_in_core): Declare.
+       * solist.h (struct target_so_ops): Add keep_data_in_core.
+
+2009-11-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * configure: Regenerate.
+
+2009-11-28  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * target.c (target_terminal_inferior): Use target_can_async_p, not
+       target_is_async_p.
+
+2009-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints
+       of type bp_hardware_watchpoint.
+
+2009-11-27  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c: Apply some corrections to the previous comment addition.
+
+2009-11-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c: Update the comment explaining how to evaluate
+       Ada expressions.
+
+2009-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR gdb/8704
+
+       * breakpoint.c (find_condition_and_thread): Correct task error message.
+       * c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations
+       of those.
+
+2009-11-24  Joel Brobecker  <brobecker@adacore.com>
+
+       * acinclude.m4: Include ../config/zlib.m4.
+       * configure.ac: Use AM_ZLIB to check for zlib support.
+       * configure: Regenerate.
+
+2009-11-24  Joel Brobecker  <brobecker@adacore.com>
+
+       * breakpoint.c (expand_line_sal_maybe): Adjust adjust the SAL
+       past the function prologue in the case where we were given only
+       one SAL.
+
+2009-11-24  Pedro Alves  <pedro@codesourcery.com>
+
+       * record.c (init_record_ops, init_record_core_ops): Actually
+       install record_stopped_data_address.
+
 2009-11-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing.