* gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 462b8dd1c005622bdaa9923dfc6d2034116104be..0f7f24a07024b232b1fe15354946fa3a67a1d888 100644 (file)
@@ -1,3 +1,159 @@
+2012-07-23  Tom Tromey  <tromey@redhat.com>
+
+       * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
+
+2012-07-23  Tom Tromey  <tromey@redhat.com>
+
+       * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
+       and 'abfd'.
+       * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
+       and 'abfd'.
+       * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
+       * machoread.c (macho_add_oso_symfile): Make a cleanup for
+       'abfd'.
+       (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
+       * objfiles.c (allocate_objfile): Acquire a new reference.
+       * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
+       * solib.c (solib_read_symbols): Don't acquire a BFD reference.
+       * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
+       a cleanup for 'nbfd'.
+       * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
+       for 'nbfd'.
+       * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
+       make a cleanup for 'abfd'.
+       (symbol_file_add): Make a BFD cleanup.
+
+2012-07-23  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
+       (bfd_openw_with_cleanup): Use gdb_bfd_openw.
+       * corelow.c (core_open): Use gdb_bfd_fopen.
+       * dsrec.c (load_srec): Use gdb_bfd_openr.
+       * exec.c (exec_file_attach): Use gdb_bfd_fopen.
+       * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
+       * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
+       (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
+       (gdb_bfd_fdopenr): New functions.
+       * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
+       (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
+       (gdb_bfd_fdopenr): Declare.
+       * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
+       * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
+       * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
+       gdb_bfd_openr_next_archived_file.
+       (macho_check_dsym): Use gdb_bfd_openr.
+       (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
+       * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
+       * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
+       * remote-mips.c (mips_load_srec, pmon_load_fast): Use
+       gdb_bfd_openr.
+       * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
+       * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
+       gdb_bfd_openr_next_archived_file.
+       * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
+       Use gdb_bfd_openr.
+       * solib-pa64.c (pa64_solib_create_inferior_hook): Use
+       gdb_bfd_openr.
+       * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
+       * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
+       * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
+       * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
+       (symfile_bfd_open): Use gdb_bfd_fopen.
+       (generic_load): Use gdb_bfd_openr.
+       * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
+
+2012-07-23  Tom Tromey  <tromey@redhat.com>
+
+       * bfd-target.c (target_bfd_reopen): Update.
+       * cli/cli-dump.c (bfd_openr_with_cleanup)
+       (bfd_openw_with_cleanup): Update.
+       * corelow.c (core_open): Update.
+       * dsrec.c (load_srec): Update.
+       * exec.c (exec_file_attach): Update.
+       * gcore.c (create_gcore_bfd): Update.
+       * gdb_bfd.c (gdb_bfd_ref): Return void.
+       (gdb_bfd_open): Update.
+       * gdb_bfd.h (gdb_bfd_ref): Return void.
+       Update comments.
+       * jit.c (jit_bfd_try_read_symtab): Update.
+       * m32r-rom.c (m32r_load, m32r_upload_command): Update.
+       * machoread.c (macho_symfile_read_all_oso): Update.
+       (macho_check_dsym): Update.
+       * procfs.c (insert_dbx_link_bpt_in_file): Update.
+       * remote-m32r-sdi.c (m32r_load): Update.
+       * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
+       * rs6000-nat.c (add_vmap): Update.
+       * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
+       Update.
+       * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
+       * solib-spu.c (spu_bfd_open): Update.
+       * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
+       * spu-linux-nat.c (spu_bfd_open): Update.
+       * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
+       (generic_load): Update.
+       * windows-nat.c (windows_make_so): Update.
+
+2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+       * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
+
+2012-07-20  Jeff Kenton  <jkenton@tilera.com>
+
+       * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
+       SIGTRAMP_FRAME unwinding.
+
+2012-07-20  Doug Evans  <dje@google.com>
+
+       * NEWS: Document new options "set/show use-deprecated-index-sections",
+       and delete reference to --use-deprecated-index-sections.
+       * symfile.h (use_deprecated_index_sections): Delete.
+       * dwarf2read.c (use_deprecated_index_sections): Make static.
+       (read_index_from_section): Update wording of how to load
+       deprecated index sections.
+       (_initialize_dwarf2_read): New options
+       "set/show use-deprecated-index-sections".
+       * main.c (captured_main): Delete --use-deprecated-index-sections.
+
+2012-07-20  Pedro Alves  <palves@redhat.com>
+
+       PR threads/11692
+       PR gdb/12203
+
+       * infrun.c (handle_inferior_event) <new thread>: Don't special
+       case minus_one_ptid.
+       <TARGET_WAITKIND_SPURIOUS>: Ditto.
+       * linux-thread-db.c (thread_get_info_callback): Don't return early
+       if the thread is zombie.
+       (thread_from_lwp): Change return type to void.  Rewrite stale
+       comment.
+       (attach_thread): Don't return early if the thread is zombie,
+       instead set its "dying" flag.
+       (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
+       (find_new_threads_callback): Don't return early if the thread is
+       zombie.
+
+2012-07-20  Pedro Alves  <palves@redhat.com>
+
+       * linux-nat.c (linux_nat_wait): Dump the passed in target options.
+       * target.c (target_wait): Likewise.
+       (str_comma_list_concat_elem, do_option, target_options_to_string):
+       New functions.
+       * target.h (target_options_to_string): Declare.
+
+2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
+           Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (dwarf_decode_macros)
+       <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
+       DW_MACRO_GNU_transparent_include_alt>: New cases.
+       (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
+       DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
+
+2012-07-20  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (try_open_dwo_file): Don't call
+       gdb_bfd_stash_filename.
+
 2012-07-20  Pedro Alves  <palves@redhat.com>
 
        * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
This page took 0.03002 seconds and 4 git commands to generate.