* gdbarch.sh: Include "regcache.h" into gdbarch.c.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index b201340997c24797284ad76d81cb9afb4acb98dd..c67ade7fd6dcc32aecc8fb9c5ba7bf53349a4598 100644 (file)
@@ -1,3 +1,361 @@
+2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * gdbarch.sh: Include "regcache.h" into gdbarch.c.
+       (deprecated_current_gdbarch_select_hack): Call registers_changed
+       instead of reinit_frame_cache.
+       * gdbarch.c: Regenerate.
+
+2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
+
+2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
+
+2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * findvar.c (locate_var_value): Do not call get_frame_arch
+       with a NULL frame argument.
+
+2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * frame.h (frame_map_regnum_to_name): Remove prototype.
+       (frame_map_name_to_regnum): Remove prototype.
+       * frame.c (frame_map_regnum_to_name): Remove.
+       (frame_map_name_to_regnum): Remove.
+       (frame_unwind_register_value): Use user_reg_map_regnum_to_name
+       instead of frame_map_regnum_to_name.
+       * ax-gdb.c: Include "user-regs.h".
+       (gen_expr): Use user_reg_map_name_to_regnum instead of
+       frame_map_name_to_regnum.
+       * eval.c:  Include "user-regs.h".
+       (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
+       instead of frame_map_name_to_regnum.
+       * infcmd.c (registers_info): Likewise.
+       * parse.c: Include "user-regs.h".
+       (write_dollar_variable): Use user_reg_map_name_to_regnum
+       instead of frame_map_name_to_regnum.
+       * tracepoint.c: Include "user-regs.h".
+       (encode_actions): Use user_reg_map_name_to_regnum
+       instead of frame_map_name_to_regnum.
+       * valops.c: Include "user-regs.h".
+       (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
+       of frame_map_regnum_to_name.
+
+2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
+       and manually relocate .opd contents from BFD instead of reading
+       them from target memory.
+
+2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (processing_current_prefix): Delete static
+       variable.
+       (process_full_comp_unit): Do not set processing_current_prefix.
+       (dwarf2_full_name): New function.
+       (read_func_scope): Do not set processing_current_prefix.  Use
+       determine_prefix.
+       (read_structure_type): Do not set processing_current_prefix.  Remove
+       unused inner cleanup.
+       (process_structure_scope): Do not set processing_current_prefix.
+       (read_enumeration_type): Use dwarf2_full_name.
+       (determine_class_name): Return a const char *.  Put the result
+       on the objfile obstack.  Use dwarf2_full_name.
+       (read_namespace_type): New function.
+       (read_namespace): Do not create the type here.  Use
+       determine_prefix.
+       (read_typedef): Use dwarf2_full_name.  Do not pass the name
+       to init_type.
+       (read_base_type): Do not pass the name to init_type.  Handle
+       TYPE_FLAG_NOSIGN.
+       (read_unspecified_type): Do not pass the name to init_type.
+       (new_symbol): Use dwarf2_full_name instead of
+       processing_current_prefix.
+       (read_type_die): Do not set processing_current_prefix.  Handle
+       DW_TAG_namespace.
+       (determine_prefix): Handle specifications.  Return the result
+       on the objfile obstack.  Handle unions correctly.
+
+2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * buildsym.c (add_symbol_to_list): Do not call
+       cp_scan_for_anonymous_namespaces here.
+       (finish_block): Do not call cp_set_block_scope here.
+       * cp-namespace.c (processing_has_namespace_info)
+       (processing_current_prefix): Delete.
+       (cp_initialize_namespace): Do not initialize
+       processing_has_namespace_info.
+       (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME.  Do
+       not check processing_has_namespace_info.
+       (cp_set_block_scope): Take prefix and namespace info flag as
+       arguments.  Honor namespaces regardless of a demangled name.
+       * cp-support.h (processing_has_namespace_info)
+       (processing_current_prefix): Delete declarations.
+       (cp_set_block_scope): Update prototype.
+       * dwarf2read.c (processing_has_namespace_info)
+       (processing_current_prefix): New static variables.
+       (read_file_scope): Initialize processing_has_namespace_info.
+       (read_func_scope): Call cp_set_block_scope for C++.
+       (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
+       * symtab.c (symbol_demangled_name): Accept a const argument.
+       * symtab.h (symbol_demangled_name): Update prototype.
+
+2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
+       * blockframe.c (find_pc_partial_function): Likewise.
+       * buildsym.c (find_symbol_in_list): Likewise.
+       * c-valprint.c (c_val_print): Likewise.
+       * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
+       (coff_read_enum_type): Likewise.  Use SYMBOL_SET_LINKAGE_NAME.
+       * cp-support.c (cp_remove_params): Renamed from remove_params and
+       made global.
+       (overload_list_add_symbol): Update call to remove_params.
+       * cp-support.h (cp_remove_params): Declare.
+       * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
+       (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
+       * expprint.c (dump_subexp_body_standard): Likewise.
+       * f-valprint.c (info_common_command, there_is_a_visible_common_named):
+       Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
+       for messages.
+       * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
+       * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
+       * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
+       (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
+       symbols and SYMBOL_PRINT_NAME for messages.
+       * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
+       * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
+       * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
+       SYMBOL_SET_LINKAGE_NAME.
+       (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
+       * minsyms.c (add_minsym_to_demangled_hash_table): Use
+       SYMBOL_SEARCH_NAME.
+       (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
+       SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
+       * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
+       * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
+       (address_info): Use SYMBOL_PRINT_NAME for messages and
+       SYMBOL_LINKAGE_NAME for lookups.
+       * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
+       * stabsread.c (patch_block_stabs, define_symbol)
+       (read_type, read_enum_type, common_block_end)
+       (cleanup_undefined_types_1, scan_file_globals): Use
+       SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
+       and SYMBOL_PRINT_NAME.
+       * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
+       (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output.  Use
+       cp_remove_params instead of cplus_demangle.
+       (print_block_frame_labels, print_frame_arg_vars): Use
+       SYMBOL_LINKAGE_NAME.
+       * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
+       SYMBOL_LINKAGE_NAME.
+       (dump_symtab_1, print_symbol, print_partial_symbols)
+       (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
+       * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
+       (SYMBOL_SET_LINKAGE_NAME): New.
+       (SYMBOL_SET_NAMES): Add a comment.
+       * tracepoint.c (set_traceframe_context, validate_actionline)
+       (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
+       lookups and SYMBOL_PRINT_NAME for output.
+       * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
+       * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
+
+2008-08-21  Pedro Alves  <pedro@codesourcery.com>
+
+       * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
+       * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
+       * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
+       obj_section_addr and obj_section_endaddr.
+       * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
+       * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
+       * ia64-tdep.c (ia64_find_global_pointer): Likewise.
+       (find_extant_func_descr): Likewise.
+       * solib-frv.c (frv_relocate_main_executable): Use
+       obj_section_addr.
+       * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
+       obj_section_addr and obj_section_endaddr.
+
+2008-08-21  Paul N. Hilfinger  <hilfinger@adacore.com>
+
+       * NEWS: Amplify last entry on boolean types in Ada.
+
+2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
+       Make the dwarf2_cu * parameter output as well as input.  Update it if
+       we follow a reference to another CU.
+       (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
+       (die_type, die_containing_type): Update calls to changed functions.
+       Use the returned CU along with the returned DIE.
+       (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
+
+2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (queue_comp_unit): Take an objfile argument.  Read
+       in the DIEs here.
+       (process_queue): Do not read in the DIEs here.
+       (psymtab_to_symtab_1): Update call to queue_comp_unit.
+       (read_full_die): Do not call queue_comp_unit from here.
+       (maybe_queue_comp_unit): New function.
+       (follow_die_ref): Use it.
+
+2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (struct attribute): Move earlier.
+       (struct die_info): Change attrs to a trailing array.
+       (dwarf_alloc_die): Take the number of attributes.  Allocate space
+       for them.
+       (read_full_die): Update call to dwarf_alloc_die.  Do not manually
+       allocate attributes.
+
+2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (REF_HASH_SIZE): Delete.
+       (struct dwarf2_cu): Replace die_ref_table with die_hash.
+       (struct die_info): Remove next_ref.
+       (store_in_ref_table): Remove offset argument.  Rewrite to use
+       htab_find_slot_with_hash.
+       (die_hash, die_eq): New.
+       (read_comp_unit): Allocate the die_hash.
+       (read_die_and_children): Update call to store_die_ref.
+       (follow_die_ref): Rewrite to use htab_find_with_hash.
+
+2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (free_die_list, copy_die): Delete.
+       (dwarf_alloc_die): Take a CU argument.  Allocate the new DIE
+       on the obstack.
+       (read_full_die): Update call to dwarf_alloc_die.  Allocate
+       attributes on the CU obstack.
+       (free_one_comp_unit): Do not call free_die_list.
+
+2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
+       (read_die_and_siblings): Likewise.  Do not add padding DIEs to the
+       sibling list.
+       (read_full_die): Do not allocate DIEs for abbrev 0.
+       (follow_die_ref): Correct error message.
+
+2008-08-20  Pedro Alves  <pedro@codesourcery.com>
+
+       * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
+       there are no symbols loaded, instead of throwing a generic error.
+       (decode_variable): Likewise.
+
+2008-08-20  Pedro Alves  <pedro@codesourcery.com>
+
+       * objfiles.h (struct obj_section): Remove addr and endaddr fields.
+       (obj_section_offset, obj_section_addr, obj_section_endaddr): New
+       macros.
+       * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
+       and offset.  Use size_t instead of unsigned long.
+       (build_objfile_section_table): Use size_t instead of unsigned
+       long.
+       (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
+       gone.
+       (find_pc_sect_section): Use obj_section_addr and
+       obj_section_endaddr.
+       * symfile.c (symfile.c): Remove code that maps sections
+       offsets in "addr" to the object's sections.
+       * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
+       * gcore.c (gcore_create_callback): Use obj_section_addr and
+       obj_section_endaddr.
+       * maint.c (print_objfile_section_info): Likewise.
+       * printcmd.c (sym_info): Use obj_section_addr and
+       obj_section_endaddr.
+       * symtab.c (fixup_section): Likewise.
+
+2008-08-20  Mark Kettenis  <kettenis@gnu.org>
+
+       * sparc-tdep.c: Make some comments catch up with reality.
+
+2008-08-20  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * NEWS: Mention 'set target-async'
+
+2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * infrun.c (resume): If the thread is placed to the deferred step
+        queue, mark it as running.
+
+2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
+
+       Make sure target supports non-stop.
+        * infcmd.c (run_command_1, attach_command): If non-stop mode
+        is requested, verify the target supports it.
+        * linux-nat.c (linux_nat_supports_non_stop): New.
+        (linux_nat_add_target): Register the above.
+        * target.c (find_default_supports_non_stop)
+        (target_supports_non_stop): New.
+        (init_dummy_target): Register find_default_supports_non_stop.
+        * target.h (struct target_ops): New field to_supports_non_stop.
+        (target_supports_non_stop): New.
+
+2008-08-19  Pedro Alves  <pedro@codesourcery.com>
+           Vladimir Prus  <vladimir@codesourcery.com>
+
+       * target.c (target_async_permitted, target_async_permitted_1)
+        (set_maintenance_target_async_permitted)
+        (show_maintenance_target_async_permitted): New.
+        (initialize_targets): Register 'set target-async'.
+        * target.h (target_async_permitted): Declare.
+        * linux-nat.c (linux_nat_async_enabled)
+        (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
+        (show_maintenance_linux_async_permitted): Remove.
+        (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
+        (get_pending_events, linux_nat_async): Use target_async_permitted.
+        (linux_nat_set_async_mode): Remove, moving the only used bits
+        into...
+        (linux_nat_setup_async): This.
+        (_initialize_linux_nat): Do not register 'maint set linux-async'.
+        Use linux_nat_setup_async.
+        * remote.c (remote_async_permitted, remote_async_permitted_set)
+        (set_maintenance_remote_async_permitted)
+        (show_maintenance_remote_async_permitted): Remove.
+        (remote_open_1, remote_terminal_inferior, remote_can_async_p)
+        (remote_is_async_p): Use target_async_permitted.
+        (_initialize_remote): Don't register 'main set remote-async'.
+        * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
+        * mi/mi-cmds.h (mi_cmd_list_target_features): New.
+        * mi/mi-main.c (mi_cmd_list_target_features): New.
+
+2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * target.c (maybe_kill_then_attach)
+        (maybe_kill_then_create_inferior): Remove.
+        (update_current_target): Do not default to_attach,
+        to_create_inferiour, to_is_async_p.
+
+2008-08-19  Paul N. Hilfinger  <hilfinger@adacore.com>
+       
+       Changes for supporting boolean types in debugging data.
+       * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change 
+       API to return LONGEST values rather than struct values.
+       (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
+       and discrete_type_high_bound.
+       (to_fixed_range_type): Create a range type in cases where 
+       argument is base type and its limits are representable as ints.
+       (ada_is_modular_type): Correct so that base type must be integral.
+       * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' 
+       keywords when they appear alone, since we are phasing out 
+       direct representation of these identifiers in debugging data.
+       * ada-exp.y: Define 'true' and 'false' as primaries.
+       (type_boolean): New function.
+       (type_int,type_long,type_long_long,type_floattype_double)
+       (type_long_double): Remove uses of current_gdbarch for consistency
+       with type_boolean.
+       (write_int): Change comment to indicate that it might write boolean 
+       constant as well.
+       * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
+       type, since will no longer be represented as enumerated type in 
+       debugging data.
+       * ada-valprint.c (print_optional_low_bound): Handle boolean case
+       as well.
+       * NEWS: Note support boolean types.
+       
 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
 
        * bsd-uthread.c (bsd_uthread_close): New.
This page took 0.026689 seconds and 4 git commands to generate.