+2010-06-11 Tom Tromey <tromey@redhat.com>
+
+ PR gdb/9977, PR exp/11636:
+ * value.h (value_offset): Update.
+ (struct lval_funcs) <check_validity>: New field.
+ <copy_closure>: Make argument const.
+ (value_computed_closure): Update.
+ (value_contents_for_printing): Declare.
+ (value_bits_valid): Likewise.
+ (val_print): Likewise.
+ (set_value_component_location): Update.
+ (value_entirely_optimized_out): Declare.
+ * value.c (value_offset): Argument now const.
+ (require_not_optimized_out): New function.
+ (value_contents_for_printing): New function.
+ (value_contents_all): Call require_not_optimized_out.
+ (value_contents): Likewise.
+ (value_bits_valid): New function.
+ (value_computed_closure): Argument now const.
+ (set_value_component_location): Make 'whole' argument const.
+ (value_entirely_optimized_out): New function.
+ (value_bitsize): Argument now 'const'.
+ (value_bitpos): Likewise.
+ (value_type): Likewise.
+ * valprint.h (val_print_array_elements): Update.
+ * valprint.c (val_print): Add 'val' argument. Use
+ valprint_check_validity.
+ (valprint_check_validity): New function.
+ (value_check_printable): Use value_entirely_optimized_out.
+ (common_val_print): Update.
+ (value_print): Likewise.
+ (val_print_array_elements): Add 'val' argument.
+ * valops.c (value_fetch_lazy): Use value_contents_for_printing,
+ value_bits_valid. Reinit frame cache for lval_computed.
+ * sh64-tdep.c (sh64_do_register): Update.
+ * scm-valprint.c (scm_val_print): Add 'val' argument.
+ * scm-lang.h (scm_val_print): Update.
+ * python/python.h (apply_val_pretty_printer): Update.
+ * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
+ argument. Call set_value_component_location.
+ * printcmd.c (print_scalar_formatted): Update.
+ * p-valprint.c (pascal_val_print): Add 'val' argument.
+ (pascal_object_print_value_fields): Likewise.
+ (pascal_object_print_value): Likewise.
+ (pascal_object_print_static_field): Update.
+ * p-lang.h (pascal_val_print): Update.
+ (pascal_object_print_value_fields): Update.
+ * mt-tdep.c (mt_registers_info): Update.
+ * mi/mi-main.c (get_register): Update.
+ (mi_cmd_data_evaluate_expression): Use common_val_print.
+ * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
+ (m2_print_unbounded_array): Likewise.
+ (m2_val_print): Likewise.
+ * m2-lang.h (m2_val_print): Update.
+ * language.h (struct language_defn) <la_val_print>: Add 'val'
+ argument.
+ (LA_VAL_PRINT): Likewise.
+ * language.c (unk_lang_val_print): Add 'val' argument.
+ * jv-valprint.c (java_print_value_fields): Add 'val' argument.
+ (java_val_print): Likewise.
+ * jv-lang.h (java_val_print): Add 'val' argument.
+ * infcmd.c (default_print_registers_info): Update.
+ * f-valprint.c (f77_print_array_1): Add 'val' argument.
+ (f77_print_array): Likewise.
+ (f_val_print): Likewise.
+ * f-lang.h (f_val_print): Add 'val' argument.
+ * dwarf2loc.c (read_pieced_value): Use value_bitsize and
+ value_bitpos.
+ <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
+ set_value_optimized_out.
+ (write_pieced_value): Use value_bitsize and value_bitpos.
+ <default>: Don't exit loop.
+ (check_pieced_value_validity): New function.
+ (pieced_value_funcs): Reference check_pieced_value_validity,
+ check_pieced_value_invalid.
+ (copy_pieced_value_closure): Update.
+ (check_pieced_value_bits): New function.
+ (check_pieced_value_invalid): New function.
+ * d-valprint.c (dynamic_array_type): Add 'val' argument.
+ (d_val_print): Likewise.
+ * d-lang.h (d_val_print): Update.
+ * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
+ (cp_print_value_fields_rtti): Likewise.
+ (cp_print_value): Likewise.
+ (cp_print_static_field): Update.
+ * c-valprint.c (c_val_print): Add 'val' argument.
+ (c_value_print): Update.
+ * c-lang.h (c_val_print): Update.
+ (cp_print_value_fields): Likewise.
+ (cp_print_value_fields_rtti): Likewise.
+ * ada-valprint.c (struct ada_val_print_args): Remove.
+ (val_print_packed_array_elements): Add 'val' argument.
+ (ada_val_print): Likewise. Rewrite.
+ (ada_val_print_stub): Remove.
+ (ada_val_print_array): Add 'val' argument.
+ (ada_val_print_1): Likewise.
+ (print_variant_part): Likewise.
+ (ada_value_print): Update.
+ (print_record): Add 'val' argument.
+ (print_field_values): Likewise.
+ * ada-lang.h (ada_val_print): Update.
+
+2010-06-11 Tom Tromey <tromey@redhat.com>
+
+ * vec.h (VEC_cleanup): New macro.
+ (DEF_VEC_ALLOC_FUNC_I): Update.
+ (DEF_VEC_ALLOC_FUNC_P): Likewise.
+ (DEF_VEC_ALLOC_FUNC_O): Likewise.
+ * dwarf2loc.c (struct axs_var_loc): Remove.
+ (unimplemented): New function.
+ (translate_register): Likewise.
+ (access_memory): Likewise.
+ (compile_dwarf_to_ax): Likewise.
+ (dwarf2_tracepoint_var_loc): Remove.
+ (dwarf2_tracepoint_var_access): Likewise.
+ (dwarf2_tracepoint_var_ref): Likewise.
+ (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
+ (loclist_tracepoint_var_ref): Likewise.
+ * dwarf2expr.h (dwarf_expr_require_composition): Declare.
+ * dwarf2expr.c (dwarf_expr_require_composition): Rename from
+ require_composition. No longer static.
+ (execute_stack_op): Update.
+ * ax-gdb.h (trace_kludge): Declare.
+
+2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
+ (should_be_inserted): Return zero also on NULL OWNER.
+ (breakpoint_program_space_exit): New OWNER comment.
+ (insert_breakpoint_locations): Extend comment for OWNER.
+ (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
+ (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
+ New OWNER comment.
+ (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
+ (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
+ (bpstat_check_location): New assert on OWNER.
+ (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
+ and B initializations to the code block. New assert on them.
+ (print_one_breakpoint_location): New OWNER comment.
+ (watchpoint_locations_match): Assert on OWNER.
+ (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
+ initializations to the code block. New assert on OWNER.
+ (set_breakpoint_location_function): New assert on OWNER.
+ (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
+ (bp_location_compare, update_global_location_list)
+ (update_global_location_list): New OWNER comment.
+
+2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
+
+2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * config/nm-linux.h (struct target_ops): Remove forward declaration.
+ (lin_thread_get_thread_signals): Remove prototype.
+ (GET_THREAD_SIGNALS): Remove.
+ * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
+ * linux-thread-db.c (check_thread_signals): Directly call
+ lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
+
+2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * gregset.h (GDB_FPXREGSET_T): Remove.
+ (gdb_fpxregset_t): Likewise.
+ (supply_fpxregset): Remove prototype.
+ (fill_fpxregset): Likewise.
+ * i386-linux-nat.c (supply_fpxregset): Remove.
+ (fill_fpxregset): Likewise.
+ (fetch_fpxregs): Inline supply_fpxregset call.
+ (store_fpxregs): Inline fill_fpxregset call.
+
+ * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
+ * config/i386/nm-linux.h: Remove file.
+
+2010-06-09 Michael Snyder <msnyder@vmware.com>
+
+ * target.c (update_current_target): Fix spelling error in comment.
+ (target_mourn_inferior): Fix spelling error in error message.
+
+2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
+
+ * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
+ SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
+
+2010-06-08 Michael Snyder <msnyder@vmware.com>
+
+ * remote.c (remote_close): Set inferior_ptid to null_ptid.
+
+2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * configure.ac <"${have_libpython}" != no>: New workaround of
+ python#4434.
+ * configure: Regenerate.
+
+2010-06-08 Hui Zhu <teawater@gmail.com>
+
+ * record.c (record_wait): Move signal out of replay code.
+
+2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix PR 10640.
+ * dwarf2-frame.c (no_dwarf_call): New function.
+ (execute_stack_op): Set CTX->DWARF_CALL.
+ * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
+ * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
+ (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
+ * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
+ (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
+ (needs_frame_dwarf_call): New function.
+ (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
+ * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
+ Update the comment. Move variables die, offset and error call to ...
+ (follow_die_ref): ... a new function.
+ (dwarf2_fetch_die_location_block): New function.
+ * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
+
+2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
+ (dwarf_expr_tls_address): Use per_cu instead of objfile.
+ (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
+ Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
+ this change.
+ (struct needs_frame_baton): New field per_cu.
+ (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
+ * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
+
+2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * cp-support.c (make_symbol_overload_list_namespace): Only search
+ static and global blocks.
+ (make_symbol_overload_list_block): New function.
+ (make_symbol_overload_list): Separate namespace search from block
+ search.
+ (make_symbol_overload_list_qualified): Use
+ make_symbol_overload_list_block.
+
+2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * value.h: Created oload_search_type enum.
+ (find_overload_match): Use oload_search_type enum.
+ * valops.c (find_overload_match): Support combined member and
+ non-member search.
+ * eval.c (evaluate_subexp_standard): Calls to
+ find_overload_match now use oload_search_type enum.
+ (oload_method_static): Verify index is a proper value.
+ * valarith.c (value_user_defined_cpp_op): Search for and handle
+ both member and non-member operators.
+ (value_user_defined_cpp_op): New function.
+ (value_user_defined_op): New function.
+ (value_x_unop): Use value_user_defined_op.
+ (value_x_binop): Ditto.
+ * cp-support.c (make_symbol_overload_list_using): Added block
+ iteration.
+ Add check for namespace aliases and imported declarations.
+
+2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.h (owner): Extend the comment.
+
+2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Clear stale specific bp_location from former whole breakpoint.
+ * breakpoint.c (delete_breakpoint): Move the stale referencing clear
+ code ...
+ (free_bp_location): ... here. Rename there the called function to
+ bpstat_remove_bp_location_callback.
+ (bpstat_remove_breakpoint_callback): Rename to ...
+ (bpstat_remove_bp_location_callback): ... here, change DATA resolution
+ to struct bp_location. Change the called function to
+ bpstat_remove_bp_location. Create new declaration for the function.
+ (bpstat_remove_breakpoint): Rename to ...
+ (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
+ code for the new parameter type.
+
+2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
+
+ * README: Make version-agnostic.
+
+2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix duplicate types for single DIE.
+ * dwarf2read.c (read_structure_type): Move set_descriptive_type after
+ set_die_type.
+ (read_array_type): Remove type initialization. Recheck get_die_type
+ after initial die_type. Move set_die_type before set_descriptive_type.
+ (read_set_type): New variable domain_type. Recheck get_die_type after
+ initial die_type. Move attr initialization later.
+ (read_tag_pointer_type, read_tag_reference_type): New variable
+ target_type. Recheck get_die_type after initial die_type.
+ (read_tag_ptr_to_member_type): Recheck get_die_type after initial
+ die_type and die_containing_type.
+ (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
+ Recheck get_die_type after initial die_type.
+ (read_subrange_type): Recheck get_die_type after initial die_type.
+ Move set_die_type before set_descriptive_type.
+ (set_die_type): Extend the function comment. Call complaint if DIE has
+ some type already set.
+
+2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
+
+ * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
+ for current naming of thread groups (iN, not N).
+
+2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * ada-lang.c (ada_operator_length): Constify `struct expression'.
+ * parse.c (operator_length): Likewise.
+ (operator_length_standard): Likewise.
+ * parser-defs.h (operator_length): Likewise.
+ (operator_length_standard): Likewise.
+ (struct exp_descriptor <operator_length>): Likewise.
+
+2010-06-04 Doug Evans <dje@google.com>
+
+ Add support for enabling/disabling individual pretty-printers.
+ * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
+ * python/python-internal.h (gdbpy_enabled_cst): Declare.
+ * python/python.c (gdbpy_enabled_cst): Define.
+ (_initialize_python): Initialize gdbpy_enabled_cst.
+ * NEWS: Add entry.
+
+2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * breakpoint.c (update_global_location_list): Fix comment typo.
+
+2010-06-04 Hui Zhu <teawater@gmail.com>
+
+ * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
+
+2010-06-03 Doug Evans <dje@google.com>
+
+ * configure.ac: Don't fail if python is unusable when
+ configured with --with-python=auto.
+ * configure: Regenerate.
+
+2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
+
+2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * valprint.h (get_array_bounds): Change low and high parameter types
+ to LONGEST *.
+ * valprint.c (get_array_bounds): Use get_discrete_bounds call to
+ compute bounds.
+ (val_print_array_elements): Adapt to change above.
+ * ada-valprint.c (print_optional_low_bound): Adapt to change above.
+ * p-valprint.c (pascal_val_print): Likewise.
+
+2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * symfile.c (init_filename_language_table): New extensions .for, .FOR,
+ .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
+ .F08.
+
+2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Support DW_TAG_module as separate namespaces.
+ * dwarf2read.c (typename_concat): New parameter physname.
+ (read_module_type): New function and declaration.
+ (scan_partial_symbols): Scan also DW_TAG_module children.
+ (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
+ to typename_concat backward compatible physname value 0.
+ (partial_die_full_name, read_namespace_type): Pass to typename_concat
+ backward compatible physname value 0.
+ (add_partial_module, read_module): Remove FIXME comment.
+ (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
+ (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
+ DIEs under DW_TAG_module.
+ (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
+ DW_AT_MIPS_linkage_name first, extend it for language_fortran
+ && physname and return there instead of just setting NAME. Extend
+ the main block for language_fortran. Pass physname parameter to the
+ typename_concat call.
+ (read_import_statement, read_func_scope, get_scope_pc_bounds)
+ (load_partial_dies, determine_prefix): Support also DW_TAG_module.
+ (new_symbol): Fill in cplus_specific.demangled_name if it is still
+ missing from SYMBOL_SET_NAMES in the language_fortran case.
+ (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
+ variables.
+ (read_type_die) <DW_TAG_module>: New.
+ (MAX_SEP_LEN): Increase to 7.
+ (typename_concat): New parameter physname. New variable lead. Support
+ also language_fortran.
+ * f-exp.y (yylex): Consider : also as a symbol name character class.
+ * f-lang.c: Include cp-support.h.
+ (f_word_break_characters, f_make_symbol_completion_list): New functions.
+ (f_language_defn): Use cp_lookup_symbol_nonlocal,
+ f_word_break_characters and f_make_symbol_completion_list.
+ * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
+ * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
+ * symtab.c (symbol_init_language_specific): Support language_fortran.
+ (symbol_find_demangled_name): New comment on language_fortran.
+ (symbol_natural_name, symbol_demangled_name): Use demangled_name even
+ for language_fortran.
+ (lookup_symbol_aux_local): Check imports also for language_fortran.
+ (default_make_symbol_completion_list): Rename to ...
+ (default_make_symbol_completion_list_break_on): ... this name. New
+ parameter break_on, use it.
+ (default_make_symbol_completion_list): New stub.
+ * symtab.h (default_make_symbol_completion_list_break_on): New
+ prototype.
+
+2010-06-02 Joel Brobecker <brobecker@adacore.com>
+
+ * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
+ to error.
+
+2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (typename_concat): Add const to the variable sep.
+
+2010-06-02 Tom Tromey <tromey@redhat.com>
+
+ * dwarf2loc.h (dwarf2_per_cu_data): Declare.
+ * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
+ type is const. Add 'def' argument. Add missing operators, remove
+ unhandled ones.
+ (decode_locdesc): Update.
+ (dwarf2_always_disassemble): New global.
+ (show_dwarf2_always_disassemble): New function.
+ (_initialize_dwarf2_read): Add always-disassemble.
+ (dwarf2_per_cu_offset_size): New function.
+ * dwarf2loc.c (dwarf2_always_disassemble): Declare.
+ (piece_end_p): New function.
+ (locexpr_describe_location_piece): Replace 'size' argument with
+ 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
+ some constants. Remove errors.
+ (disassemble_dwarf_expression): New function.
+ (locexpr_describe_location_1): Use disassemble_dwarf_expression.
+ Add 'offset_size' argument.
+ (loclist_describe_location): Change output formatting.
+ * dwarf2expr.h (dwarf_stack_op_name): Declare.
+
+2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
+
+ * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
+ anonymous type case.
+
+2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * dwarf2read.c (read_subrange_type): Handle missing base type
+ according to Dwarf-2 specifications.
+
+2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
+ BINOP_EXCL.
+ (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
+ UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
+ (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
+ BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
+ UNOP_CHMAX, UNOP_CHMIN.
+ * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
+ UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
+ UNOP_CHMIN>: Remove opcodes.
+
2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
* dwarf2read.c (read_func_scope): Do not complain for