Revert previous commit.
[binutils-gdb.git] / gdb / ChangeLog
index 3c0f5787ac444972368967e23719eb92f4423866..48743fd48025a03b4dc4525acdb15e92196e332f 100644 (file)
@@ -1,3 +1,316 @@
+2009-07-28  Aleksandar Ristovski  <aristovski@qnx.com>
+
+       * nto-tdep.c (nto_thread_state_str): New array.
+       (nto_extra_thread_info): New function definition.
+       * nto-tdep.h (gdbthread.h): New include.
+       (private_thread_info): New struct.
+       (nto_extra_thread_info): New declaration.
+       * nto-procfs.c (procfs_thread_alive): Properly check if
+       thread is still alive.
+       (update_thread_private_data_name, update_thread_private_data): New
+       function definition.
+       (procfs_find_new_threads): Fetch thread private data.
+       (init_procfs_ops): Register to_extra_thread_info.
+
+2009-07-25  Pedro Alves  <pedro@codesourcery.com>
+
+       * stack.c (backtrace_command_1): Remove dead check of NULL current
+       frame.
+
+2009-07-23  Keith Seitz  <keiths@redhat.com>
+
+       * source.c (forward_search_command): Don't fclose the stream,
+       just run the cleanups.
+       (reverse_search_command): Likewise.
+
+2009-07-23  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * symtab.c (search_symbols): Add QUIT.
+       
+2009-07-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * symfile.c (symbol_file_add_with_addrs_or_offsets): Call observer.
+       
+2009-07-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * objfiles.h (objfiles_changed): New prototype.
+       * objfiles.c (objfiles_updated_p): Rename to objfiles_changed_p.
+       (allocate_objfile, free_objfile): Must rebuild section map.
+       (objfile_relocate): Likewise.
+       (update_section_map, find_pc_section): Adjust.
+       (set_objfiles_updated_on_exe_change): Remove.
+       (set_objfiles_updated_on_solib_activity): Remove.
+       (_initialize_objfiles): Remove.
+       (objfiles_changed): New function.
+       * symfile.c (reread_symbols): Call objfiles_changed.    
+       
+2009-07-22  Hui Zhu  <teawater@gmail.com>
+
+       * record.c (record_xfer_partial): Call error When nquery
+       return "n".
+
+2009-07-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
+       
+       * objfiles.c (objfiles_updated_p): New variable.
+       (qsort_cmp, bsearch_cmp, update_section_map): New function.
+       (find_pc_section): Use bsearch.
+       (set_objfiles_updated_on_exe_change): New function.
+       (set_objfiles_updated_on_solib_activity): New function.
+       (_initialize_objfiles): New function.
+       
+2009-07-21 Michael Eager <eager@eagercon.com>
+
+       * features/rs6000/powerpc-405.xml: New.
+       * rs6000-tdep.c: Add include & initialize for
+       powerpc-405.c, add 405 to variants.
+       * features/rs6000/powerpc-405.c: Generate.
+
+2009-07-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * utils.c (internal_vproblem): Always print failure message.
+
+2009-07-21  Daniel Jacobowitz  <dan@codesourcery.com>
+           Vladimir Prus <vladimir@codesourcery.com>
+
+       * valops.c (value_fetch_lazy): Handle bitfields explicitly.
+       (value_assign): Remove unnecessary FIXME.  Honor the container
+       type of bitfields if possible.
+       * value.c (struct value): Add parent field.
+       (value_parent): New function.
+       (value_free): Free the parent also.
+       (value_copy): Copy the parent also.
+       (value_primitive_field): Do not read the contents of a lazy
+       value to create a child bitfield value.  Set bitpos and offset
+       according to the container type if possible.
+       (unpack_bits_as_long): Rename from unpack_field_as_long.  Take
+       field_type, bitpos, and bitsize instead of type and fieldno.
+       (unpack_field_as_long): Use unpack_bits_as_long.
+       * value.h (value_parent, unpack_bits_as_long): New prototypes.
+
+2009-07-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * value.c (struct value): Add reference_count field.
+       (allocate_value_lazy): Initialize reference_count.
+       (value_incref): New function.
+       (value_free): Check the reference count.
+       * value.h (value_incref): New prototype.
+
+2009-07-20  Marc Khouzam  <marc.khouzam@ericsson.com>
+
+       * utils.c (defaulted_query): Update comment and remove dead code.
+
+2009-07-20  Doug Evans  <dje@google.com>
+
+       Add support for "comdat types" from DWARF4.
+       * dwarf2read.c (dwarf2_per_objfile): New member types,
+       signatured_types.
+       (TYPES_SECTION): New macro.
+       (dwarf2_per_cu_data): Change size of length field from 30 bits
+       to 29 bits.  New member from_debug_types.
+       (signatured_type): New struct.
+       (struct attribute): New union member signatured_type.
+       (DW_SIGNATURED_TYPE): New macro.
+       (dwarf2_attr_no_follow): New function.
+       (read_type_unit_scope): New function.
+       (follow_die_ref_or_sig, follow_die_sig): New functions.
+       (dwarf2_locate_sectoins): Handle .debug_types.
+       (dwarf2_build_psymtabs): Read .debug_types.
+       (read_type_comp_unit_head): New function.
+       (hash_type_signature, eq_type_signature): New functions.
+       (create_debug_types_hash_table): New function.
+       (lookup_signatured_type): New function.
+       (process_psymtab_comp_unit): Handle type units too.
+       (process_type_comp_unit, build_type_psymtabs): New functions.
+       (dwarf2_build_psymtabs_hard): Call build_type_psymtabs.
+       (load_partial_comp_unit): Assert not called for a type unit.
+       (skip_one_die): Handle DW_FORM_sig8.
+       (queue_comp_unit): Don't call load_full_comp_unit here, or
+       update read_in_chain.
+       (psymtab_to_symtab_1): Call read_signatured_type_at_offset for
+       type units, or load_full_comp_unit for comp units after
+       queue_comp_unit returns.
+       (load_full_comp_unit): Assert not called for type units.
+       (load_full_comp_unit): Update read_in_chain here.
+       (process_die): Handle DW_TAG_type_unit.
+       (read_structure_type): Look for signatured types.
+       (read_enumeration_type): Ditto.
+       (init_cu_die_reader): Handle .debug_types.
+       (read_comp_unit): Assert hash not computed yet.
+       (read_die_and_children): Expand debugging printf to handle .debug_types.
+       (read_partial_die): Handle DW_TAG_type_unit:
+       (find_patial_die): Handle .debug_types.
+       (read_attribute_value): Handle DW_FORM_sig8.
+       (die_type): Call follow_die_ref_or_sig instead of follow_die_ref.
+       (die_containing_type): Ditto.
+       (dwarf_tag_name): Handle DW_TAG_type_unit.
+       (dwarf_attr_name): Handle DW_AT_signature.
+       (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
+       DW_FORM_flag_present, DW_FORM_sig8.
+       (dump_die_shallow): Handlel DW_FORM_sig8.
+       (maybe_queue_comp_unit): Change return type to int from void.
+       All callers updated.
+       (follow_die_ref): Handle .debug_types.
+       (lookup_signatured_type_at_offset): New function.
+       (read_signatured_type_at_offset): New function.
+       (read_signatured_type): New function.
+
+2009-07-20  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * arch-utils.c (gdbarch_info_fill): Only reference GDB_OSABI_DEFAULT
+       if the macro is defined.
+
+2009-07-20  Pedro Alves  <pedro@codesourcery.com>
+
+       * features/gdb-target.dtd (target): Accept an optional 'osabi'
+       element.
+       (osabi): Define element.
+       * features/mips-linux.xml (target): Add an osabi subelement set to
+       GNU/Linux.
+       * regformats/regdat.sh (xmlarch, xmlosabi): New variables.  Don't
+       write the architecture into $xmltarget.  Store it in $xmlarch.
+       Handle the 'osabi' type.  Handle outputting the osabi element of
+       the target description.
+       * regformats/reg-x86-64-linux.dat (osabi): Set to GNU/Linux.
+       * regformats/reg-i386-linux.dat (osabi): Set to GNU/Linux.
+
+       * target-descriptions.h (tdesc_osabi, set_tdesc_osabi): Declare.
+       * target-descriptions.c (struct target_desc) <osabi>: New field.
+       (tdesc_osabi): New function.
+       (set_tdesc_osabi): New function.
+       * xml-tdesc.c: Include osabi.h.
+       (tdesc_end_osabi): New.
+       (target_children): Parse "osabi" elements.
+       * arch-utils.c (gdbarch_info_fill): Try to get the osabi from the
+       target description if the user didn't override it or it is not
+       extractable from the bfd.  If that still fails, fallback to the
+       configured in default.
+       * osabi.h (osabi_from_tdesc_string): Declare.
+       * osabi.c (osabi_from_tdesc_string): New.
+       (gdbarch_lookup_osabi): Return GDB_OSABI_UNKNOWN instead of
+       GDB_OSABI_DEFAULT.
+
+       * NEWS: Mention that target descriptions can now describe the
+       target OS ABI.
+
+2009-07-20  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac (AC_CHECK_FUNCS): Check for pipe.
+       * config.in, configure: Regenerate.
+       * tui/tui-io.c (TUI_USE_PIPE_FOR_READLINE): Define if HAVE_PIPE.
+
+2009-07-20  Pedro Alves  <pedro@codesourcery.com>
+
+       * gnu-nat.c: Include "inf-child.h".
+       (gnu_mourn_inferior): Use the passed in target_ops
+       instead of the gnu_ops global.
+       (gnu_create_inferior): Inline `attach_to_child', use the passed in
+       target_ops instead of the gnu_ops global.
+       (gnu_can_run): Delete.
+       (gnu_attach): Use the passed in target_ops instead of the gnu_ops
+       global.
+       (gnu_detach): Ditto.
+       (gnu_prepare_to_store, gnu_open): Delete.
+       (gnu_store_registers, gnu_fetch_registers): Delete declarations.
+       (gnu_ops): Delete.
+       (init_gnu_ops): Delete.
+       (gnu_target): New.
+       (_initialize_gnu_nat): Don't call init_gnu_ops or add_target here.
+       * gnu-nat.h (gnu_target): Declare.
+       * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Make
+       static.
+       (_initialize_i386gnu_nat): New.
+
+2009-07-20  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * dwarf2loc.c (find_location_expression): Retrieve beginning and
+       ending address offsets in location list entries as integers,
+       not as addresses.
+
+2009-07-20  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * infrun.c (wait_for_inferior): Invalidate registers and overlay
+       cache every time before calling target_wait.
+       (handle_inferior_event): Make static. Always reset waiton_ptid.
+       Never call registers_changed.
+       (prepare_to_wait): Do not invaliate registers or overlay cache
+       (moved to wait_for_inferior).  Do not reset waiton_ptid (moved
+       to handle_inferior_event).
+       (fetch_inferior_event): Remove check for always-true condition.  
+
+2009-07-20  Thomas Schwinge  <tschwinge@gnu.org>
+
+       * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Adjust to
+       2009-02-23 target_ops changes.
+
+2009-07-18  Michael Snyder  <msnyder@vmware.com>
+
+       * infrun.c (handle_inferior_event): Remove an execution_direction
+       check in the "check for subroutine calls" test, and add some 
+       additional handling for reverse-stepping through shared libraries.
+
+2009-07-18  Anthony Green  <green@moxielogic.com>
+
+       * moxie-tdep.c (moxie_analyze_prologue): Take gdbarch as last
+       parameter instead of frame_info.
+       (moxie_frame_cache): Call moxie_analyze_prologue with different
+       args.
+
+2009-07-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * solib.c (solib_bfd_open): Do not call ops->bfd_open.
+       (solib_map_sections): Call ops->bfd_open instead of solib_bfd_open.
+       * solib-frv.c (_initialize_frv_solib): Initialize bfd_open member.
+       * solib-irix.c (_initialize_irix_solib): Likewise.
+       * solib-null.c (_initialize_null_solib): Likewise.
+       * solib-osf.c (_initialize_osf_solib): Likewise.
+       * solib-pa64.c (_initialize_pa64_solib): Likewise.
+       * solib-som.c (_initialize_som_solib): Likewise.
+       * solib-sunos.c (_initialize_sunos_solib): Likewise.
+       * solib-svr4.c (_initialize_svr4_solib): Likewise.
+       * solib-target.c (_initialize_solib_target): Likewise.
+
+2009-07-17  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * mi/mi-cmd-disas.c (mi_cmd_disassemble): Respect mixed_mode flag.
+
+2009-07-16  Doug Evans  <dje@google.com>
+
+       * linux-thread.db.c (try_thread_db_load_1): Tweak comment.
+
+2007-07-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+       * linux-thread-db.c (thread_db_find_new_threads_silently):
+       New function.
+       (try_thread_db_load_1): Call it.
+
+2009-07-15  Doug Evans  <dje@google.com>
+
+       Code reorg in preparation for adding comdat types support.
+       * dwarf2read.c (struct die_reader_specs): New struct.
+       (locate_pdi_sibling): New arg buffer.  All callers updated.
+       (load_partial_dies, read_partial_die): Ditto.
+       (read_8_bytes): Change return type to ULONGEST.
+       (read_comp_unit): Delete arg abfd.  All callers updated.
+       (read_die_and_children_1): Delete args abfd, cu.  New arg reader.
+       All callers updated.
+       (read_die_and_children, read_die_and_siblings): Ditto.
+       (read_full_die): Ditto.  Move closer to callers.
+       (skip_one_die): New arg buffer.  All callers updated.
+       (load_full_comp_unit): Change return type to void.  All callers
+       updated.
+       (partial_read_comp_unit_head): New args buffer, buffer_size.
+       All callers updated.
+       (process_psymtab_comp_unit): New function, split out from
+       dwarf2_build_psymtabs_hard.
+       (dwarf2_build_psymtabs_hard): Call it.
+       (load_partial_comp_unit): Renamed from load_comp_unit.
+       All callers updated.
+       (skip_children): New arg buffer.  All callers updated.
+       (init_cu_die_reader): New function.
+       (is_ref_attr): New function.
+       (dwarf2_get_ref_die_offset): Call it.
+       (alloc_one_comp_unit): New function.
+
 2009-07-14  Stan Shebs  <stan@codesourcery.com>
 
        * MAINTAINERS (Global Maintainers): Add Doug Evans.