public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: pmuldoon@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-pmuldoon-python-backtrace: Merge remote-tracking branch 'gdb/master' into archer-pmuldoon-python-backtrace
Date: Thu, 19 Jul 2012 12:40:00 -0000	[thread overview]
Message-ID: <20120719124004.23830.qmail@sourceware.org> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 43601 bytes --]

The branch, archer-pmuldoon-python-backtrace has been updated
       via  69d2d6b96038fb7177007f1999f6a7e8905bd6e1 (commit)
       via  a521600d9cd16117e8bbba90133f7b4168540c92 (commit)
       via  69b5c33c956162f8490427d37830a2e7f3b76d0c (commit)
       via  1d10b4ff69eee1789b1217f30497f138f5186dd2 (commit)
       via  960de796479fcf5869d03654480cfaa647c32d05 (commit)
       via  f1a0ec49ff0280d5b15f97629d4bc612e4b767fe (commit)
       via  d46fe51844e8e634744c7df3b1ac657b963dd94f (commit)
       via  42746c601b8b5dbd05784079e4dc451acf8723bc (commit)
       via  553257f6403fab81623d152c0e99e52ea6dbdc89 (commit)
       via  67635c29c6d4f4371507b6c43dd44b2ce1a6affb (commit)
       via  f618cd9d7121b5fd26a9f8a9ae49c0201dda728b (commit)
       via  4ee2aab930752a33e71dfd11865fde112bc03003 (commit)
       via  17642581262f80256311ad4a8707c3aa462e0b2a (commit)
       via  112d5f62dbf2d223aefbb91b17ed15e22327f256 (commit)
       via  769cb3532d1a1a06cd9248370244df5ac8b30df6 (commit)
       via  1f20395dc965144313da256a2f46448787cb7219 (commit)
       via  6bae30f0df82cae05a3d708223dbe7783202295c (commit)
       via  e1a653b8460251c21a226128b5281fac3f783328 (commit)
       via  1eff6a630f30663ee81bc981436d0badedec9a47 (commit)
       via  d4d8a83ca3ab1ebbb4afc557d0e66e309c3384f6 (commit)
       via  483900ddcb9d4eb2d0ae989d50499bac8dcdbadf (commit)
       via  00e167333c0e785e1afc22da41a926a6e0efa258 (commit)
       via  e135445a0e826c25a9bf8b954b288c47609c108e (commit)
       via  5244e113595fa31473da2666dc24552bcd3b12d2 (commit)
      from  11314e6057e82edeeefe595ad8b66c50c519ee03 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 69d2d6b96038fb7177007f1999f6a7e8905bd6e1
Merge: 11314e6 a521600
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Thu Jul 19 13:36:44 2012 +0100

    Merge remote-tracking branch 'gdb/master' into archer-pmuldoon-python-backtrace

commit a521600d9cd16117e8bbba90133f7b4168540c92
Author: Alan Modra <amodra@bigpond.net.au>
Date:   Thu Jul 19 00:00:06 2012 +0000

    daily update

commit 69b5c33c956162f8490427d37830a2e7f3b76d0c
Author: gdbadmin <gdbadmin@sourceware.org>
Date:   Thu Jul 19 00:00:03 2012 +0000

    *** empty log message ***

commit 1d10b4ff69eee1789b1217f30497f138f5186dd2
Author: Doug Evans <dje@google.com>
Date:   Wed Jul 18 23:37:57 2012 +0000

    	* common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
    	* common/gdb_vecs.c: New file, contents from utils.c.
    	* common/host-defs.h: New file, contents from defs.h.
    	* utils.h: New file, contents from defs.h.
    	* defs.h: Move all declarations of objects defined in utils.c
    	to utils.h (except QUIT() and related).
    	#include "utils.h", "host-defs.h".
    	* probe.h (probe_p): Move here from gdb_vecs.h.
    	* symfile.c: #include "probe.h" instead of "gdb_vecs.h".
    	* utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
    	(dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
    	* Makefile.in (SFILES): Add common/gdb_vecs.c.
    	(HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
    	(COMMON_OBS): Add gdb_vecs.o.
    	(gdb_vecs.o): New rule.

commit 960de796479fcf5869d03654480cfaa647c32d05
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Jul 18 20:38:17 2012 +0000

    	* linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
    	parameter.  If non-zero, use SYMNAME as the canonical name
    	for the SaL.
    	Update all callers.
    	(convert_linespec_to_sals): Use add_sal_to_sals for
    	expressions, too.
    	(decode_line_full): No need to "fill in missing canonical names"
    	anymore. Simply make cleanups for the allocated names.

commit f1a0ec49ff0280d5b15f97629d4bc612e4b767fe
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Jul 18 20:30:00 2012 +0000

    	* linespec.c (struct linespec): Constify expression,
    	source_filename, function_name, and label_name.
    	(symbol_not_found_error): Make all parameters const.
    	(linespec_parser_delete): No need to check for NULL
    	when using xfree. Cast const char * to char * for xfree.

commit d46fe51844e8e634744c7df3b1ac657b963dd94f
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Jul 18 20:20:51 2012 +0000

    	* breakpoint.c (invalid_thread_id_error): New function.
    	(find_condition_and_thread): Use invalid_thread_id_error.
    	(watch_command_1): Likewise.

commit 42746c601b8b5dbd05784079e4dc451acf8723bc
Author: DJ Delorie <dj@delorie.com>
Date:   Wed Jul 18 20:08:53 2012 +0000

    merge from gcc

commit 553257f6403fab81623d152c0e99e52ea6dbdc89
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 20:04:43 2012 +0000

    	* cc-with-index.sh, cc-with-dwz.sh: Remove.
    	* contrib/cc-with-tweaks.sh: New file.

commit 67635c29c6d4f4371507b6c43dd44b2ce1a6affb
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 20:01:26 2012 +0000

    	* dwarf2read.c (struct dwz_file) <gdb_index>: New field.
    	(locate_dwz_sections): Recognize .gdb_index.
    	(create_cus_from_index_list): New function.
    	(create_cus_from_index): Use it.  Handle .dwz data.
    	(read_index_from_section): New function, extracted from
    	dwarf2_read_index.
    	(dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
    	if needed.

commit f618cd9d7121b5fd26a9f8a9ae49c0201dda728b
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:59:35 2012 +0000

    	* dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
    	(struct dwarf2_per_cu_data) <length>: No longer bitfield.
    	<is_dwz>: New field.
    	(struct dwz_file): New.
    	(struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
    	(locate_dwz_sections, dwarf2_get_dwz_file)
    	(get_abbrev_section_for_cu): New functions.
    	(error_check_comp_unit_head, read_and_check_comp_unit_head)
    	(read_and_check_type_unit_head): Add abbrev_section argument.
    	(create_debug_types_hash_table): Update.
    	(init_cutu_and_read_dies): Use proper abbrev section.
    	(init_cutu_and_read_dies_no_follow): Likewise.
    	(set_partial_user): Do nothing if PST==NULL.
    	(read_comp_units_from_section): New function.
    	(create_all_comp_units): Use it.
    	(scan_partial_symbols, partial_die_parent_scope): Update.
    	(skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
    	(process_imported_unit_die, read_partial_die): Handle .dwz files.
    	(find_partial_die): Add offset_in_dwz argument.  Update.
    	(guess_partial_die_structure_name, fixup_partial_die): Update.
    	(read_attribute_value): Handle DW_FORM_GNU_ref_alt,
    	DW_FORM_GNU_strp_alt.
    	(read_indirect_string_from_dwz): New function.
    	(dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
    	(dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
    	(is_ref_attr): Handle DW_FORM_GNU_ref_alt.
    	(follow_die_offset): Add offset_in_dwz argument.
    	(follow_die_ref, dwarf2_fetch_die_location_block): Update.
    	(skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
    	(dwarf_decode_macro_bytes): Add section_is_dwz argument.
    	Handle new macro forms.
    	(dwarf_decode_macros): Update.
    	(dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
    	(dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
    	(lookup_die_type): Handle DW_FORM_GNU_ref_alt.
    	(create_debug_types_hash_table): Use correct abbrev section.
    	(get_debug_line_section): New function.
    	(dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
    	(process_full_comp_unit): Pass 'required' argument to
    	end_symtab_get_static_block.
    	* buildsym.h (end_symtab_get_static_block): Update.
    	* buildsym.c (end_symtab_get_static_block): Add 'required'
    	argument.
    	(end_symtab, end_expandable_symtab): Update.

commit 4ee2aab930752a33e71dfd11865fde112bc03003
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:57:20 2012 +0000

    	* dwarf2read.c: Don't include zlib.h or sys/mman.h.
    	(pagesize): Remove.
    	(struct dwarf2_section_info) <map_addr, map_len>: Remove.
    	(zlib_decompress_section): Remove.
    	(dwarf2_read_section): Use gdb_bfd_map_section.
    	(munmap_section_buffer): Remove.
    	(free_dwo_file, dwarf2_per_objfile_free): Don't use
    	munmap_section_buffer.
    	* gdb_bfd.c: Include zlib.h, sys/mman.h.
    	(struct gdb_bfd_section_data): New.
    	(free_one_bfd_section): New function.
    	(gdb_bfd_close_or_warn): Use free_one_bfd_section.
    	(get_section_descriptor, zlib_decompress_section)
    	(gdb_bfd_map_section): New functions.
    	* gdb_bfd.h (gdb_bfd_map_section): Declare.

commit 17642581262f80256311ad4a8707c3aa462e0b2a
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:52:14 2012 +0000

    	* dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.

commit 112d5f62dbf2d223aefbb91b17ed15e22327f256
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:49:33 2012 +0000

    	* gdb_bfd.c (struct gdb_bfd_data): New.
    	(gdb_bfd_cache): New global.
    	(struct gdb_bfd_cache_search): New.
    	(hash_bfd, eq_bfd, gdb_bfd_open): New functions.
    	(gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
    	* gdb_bfd.h (gdb_bfd_open): Declare.

commit 769cb3532d1a1a06cd9248370244df5ac8b30df6
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:42:25 2012 +0000

    	* utils.c (make_cleanup_bfd_unref): Rename from
    	make_cleanup_bfd_close.
    	* defs.h (make_cleanup_bfd_unref): Rename from
    	make_cleanup_bfd_close.
    	* cli/cli-dump.c (bfd_openr_with_cleanup): Update.
    	(bfd_openw_with_cleanup): Update.
    	* corelow.c (core_open): Update.
    	* dsrec.c (load_srec): Update.
    	* m32r-rom.c (m32r_load, m32r_upload_command): Update.
    	* remote-m32r-sdi.c (m32r_load): Update.
    	* remote-mips.c (mips_load_srec): Update.
    	(pmon_load_fast): Update.
    	* solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
    	Update.
    	(darwin_bfd_open): Update.
    	* solib.c (solib_bfd_fopen): Update.
    	* symfile-mem.c (symbol_file_add_from_memory): Update.
    	* symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
    	(symfile_bfd_open): Update.
    	(generic_load): Update.

commit 1f20395dc965144313da256a2f46448787cb7219
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:38:38 2012 +0000

    	* remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
    	(pmon_load_fast): Likewise.
    	* m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
    	(m32r_upload_command): Likewise.
    	* dsrec.c (load_srec): Use make_cleanup_bfd_close.
    	* solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
    	Use make_cleanup_bfd_close.

commit 6bae30f0df82cae05a3d708223dbe7783202295c
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:34:57 2012 +0000

    	* symfile.c (symfile_bfd_open): Don't copy name.  Call
    	gdb_bfd_stash_filename.
    	(load_command): Open the new BFD before freeing the old.
    	(bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
    	* symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
    	Call gdb_bfd_stash_filename.
    	* spu-linux-nat.c (spu_bfd_open): Don't copy name.
    	* solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
    	gdb_bfd_stash_filename.
    	* solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
    	Free found_pathname.
    	* rs6000-nat.c (add_vmap): Don't copy filename.  Call
    	gdb_bfd_stash_filename.
    	* remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
    	* machoread.c (macho_add_oso_symfile): Call
    	gdb_bfd_stash_filename.
    	(macho_symfile_read_all_oso): Arrange to free archive_name.  Call
    	gdb_bfd_stash_filename.
    	(macho_check_dsym): Don't copy filename.  Call
    	gdb_bfd_stash_filename.
    	* jit.c (bfd_open_from_target_memory): Don't copy the filename.
    	* gdb_bfd.c (gdb_bfd_stash_filename): New function.
    	* gdb_bfd.h (gdb_bfd_stash_filename): Declare.
    	* gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
    	* exec.c (exec_close): Don't free the BFD's filename.
    	(exec_file_attach): Don't copy the filename.  Call
    	gdb_bfd_stash_filename.
    	* corelow.c (core_close): Don't free the BFD's filename.
    	(core_open): Call gdb_bfd_stash_filename.
    	* corefile.c (reopen_exec_file): Remove #if 0 code.
    	* solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
    	pathname.
    	* dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.

commit e1a653b8460251c21a226128b5281fac3f783328
Author: Tom Tromey <tromey@redhat.com>
Date:   Wed Jul 18 19:33:33 2012 +0000

    	* dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
    	gdb_bfd_unref.
    	(free_dwo_file): Use gdb_bfd_unref.
    	* cli/cli-dump.c: Include gdb_bfd.h.
    	(bfd_openw_with_cleanup): Use gdb_bfd_ref.
    	(bfd_openr_with_cleanup): Likewise.
    	* windows-nat.c (windows_make_so): Use gdb_bfd_ref,
    	gdb_bfd_unref.
    	* utils.c: Include gdb_bfd.h.
    	(do_bfd_close_cleanup): Use gdb_bfd_unref.
    	* symfile.c: Include gdb_bfd.h.
    	(separate_debug_file_exists): Use gdb_bfd_unref.
    	(bfd_open_maybe_remote): Use gdb_bfd_ref.
    	(symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
    	(generic_load): Use gdb_bfd_ref.
    	(reread_symbols): Use gdb_bfd_unref.
    	* symfile-mem.c: Include gdb_bfd.h.
    	(symbol_file_add_from_memory): Use make_cleanup_bfd_close.
    	* spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
    	* solib.c: Include gdb_bfd.h.
    	(solib_bfd_fopen): Use gdb_bfd_ref.
    	(solib_bfd_open): Use gdb_bfd_unref.
    	(free_so_symbols): Use gdb_bfd_unref.
    	(reload_shared_libraries_1): Use gdb_bfd_unref.
    	* solib-spu.c: Include gdb_bfd.h.
    	(spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
    	* solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
    	gdb_bfd_unref.
    	* solib-frv.c: Include gdb_bfd.h.
    	(enable_break2): Use gdb_bfd_unref.
    	* solib-dsbt.c: Include gdb_bfd.h.
    	(enable_break2): Use gdb_bfd_unref.
    	* solib-darwin.c: Include gdb_bfd.h.
    	(darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
    	gdb_bfd_unref.
    	(darwin_bfd_open): Use gdb_bfd_unref.
    	* rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
    	* remote-mips.c: Include gdb_bfd.h.
    	(mips_load_srec): Use gdb_bfd_ref.
    	(pmon_load_fast): Use gdb_bfd_ref.
    	* remote-m32r-sdi.c: Include gdb_bfd.h.
    	(m32r_load): Use gdb_bfd_ref.
    	* record.c: Include gdb_bfd.h.
    	(record_save_cleanups): Use gdb_bfd_unref.
    	(cmd_record_save): Use gdb_bfd_unref.
    	* procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
    	gdb_bfd_unref.
    	* objfiles.h (gdb_bfd_close_or_warn): Remove.
    	(gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
    	* objfiles.c: Include gdb_bfd.h.
    	(free_objfile): Use gdb_bfd_unref.
    	(gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
    	gdb_bfd.c.
    	* machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
    	(macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
    	(macho_check_dsym): Likewise.
    	* m32r-rom.c: Include gdb_bfd.h.
    	(m32r_load): Use gdb_bfd_ref.
    	(m32r_upload_command): Use gdb_bfd_ref.
    	* jit.c: Include gdb_bfd.h.
    	(jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
    	* gdb_bfd.h: New file.
    	* gdb_bfd.c: New file.
    	* gcore.c: Include gdb_bfd.h.
    	(create_gcore_bfd): Use gdb_bfd_ref.
    	(do_bfd_delete_cleanup): Use gdb_bfd_unref.
    	(gcore_command): Use gdb_bfd_unref.
    	* exec.c: Include gdb_bfd.h.
    	(exec_close): Use gdb_bfd_unref.
    	(exec_close_1): Use gdb_bfd_unref.
    	(exec_file_attach): Use gdb_bfd_ref.
    	* elfread.c: Include gdb_bfd.h.
    	(build_id_verify): Use gdb_bfd_unref.
    	* dsrec.c: Include gdb_bfd.h.
    	(load_srec): Use gdb_bfd_ref.
    	* corelow.c: Include gdb_bfd.h.
    	(core_close): Use gdb_bfd_unref.
    	(core_open): Use gdb_bfd_ref.
    	* bfd-target.c: Include gdb_bfd.h.
    	(target_bfd_xclose): Use gdb_bfd_unref.
    	(target_bfd_reopen): Use gdb_bfd_ref.
    	* Makefile.in (SFILES): Add gdb_bfd.c.
    	(HFILES_NO_SRCDIR): Add gdb_bfd.h.
    	(COMMON_OBS): Add gdb_bfd.o.

commit 1eff6a630f30663ee81bc981436d0badedec9a47
Author: Keith Seitz <keiths@redhat.com>
Date:   Wed Jul 18 19:30:19 2012 +0000

    	* breakpoint.c (find_condition_and_thread): Initialize
    	TASK and REST.
    	(create_breakpiont): find_condition_and_thread will now
    	initialize COND_STRING, THREAD, and REST (and TASK).
    	(addr_string_to_sals): Likewise.

commit d4d8a83ca3ab1ebbb4afc557d0e66e309c3384f6
Author: Pedro Alves <palves@redhat.com>
Date:   Wed Jul 18 18:04:37 2012 +0000

    2012-07-18  Pedro Alves  <palves@redhat.com>
    
    	* infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
    	Pull the single step breakpoints out of the target.

commit 483900ddcb9d4eb2d0ae989d50499bac8dcdbadf
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 18 17:09:31 2012 +0000

    Regenerate bfd-in2.h
    
    	* bfd-in2.h: Regenerated.

commit 00e167333c0e785e1afc22da41a926a6e0efa258
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Jul 18 17:08:16 2012 +0000

    Fix a typo in section.c comments
    
    	PR binutils/14335
    	* section.c: Fix a typo in comments.

commit e135445a0e826c25a9bf8b954b288c47609c108e
Author: sergiodj <sergiodj>
Date:   Wed Jul 18 16:20:36 2012 +0000

    2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
    
    	* probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
    	* stap-probe.c (compile_probe_arg): Likewise.

commit 5244e113595fa31473da2666dc24552bcd3b12d2
Author: sergiodj <sergiodj>
Date:   Wed Jul 18 16:12:15 2012 +0000

    2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
    
    	* elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
    	(elf_compile_to_ax): Likewise.
    	* infrun.c (insert_exception_resume_from_probe): Likewise.
    	(check_exception_resume): Remove `objfile' variable.
    	* probe.c (find_probe_by_pc): Remove `objfile' argument.
    	(struct probe_and_objfile, probe_and_objfile_s): Delete.
    	(collect_probes): Adjust return value to `VEC (probe_p) *'.
    	(compare_entries): Rename to...
    	(compare_probes): ...this.  Adjust function to work with
    	`struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
    	respectively.
    	(gen_ui_out_table_header_info): Adjust `probes' argument to be
    	`VEC (probe_p) *'.
    	(print_ui_out_info): Adjust argument to be `struct probe *'.
    	(info_probes_for_ops): Adjust internal computations to use
    	`VEC (probe_p) *'.
    	(probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
    	* probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
    	gen_info_probes_table_values>: Remove `objfile' argument.
    	(struct probe) <objfile>: New field.
    	(find_probe_by_pc): Remove `objfile' argument.
    	* stap-probe.c (stap_parse_probe_arguments): Likewise.
    	(stap_get_probe_argument_count): Likewise.
    	(stap_get_arg): Likewise.
    	(stap_evaluate_probe_argument): Likewise.
    	(stap_compile_to_ax): Likewise.
    	(compile_probe_arg): Refactor not to pass `objfile' anymore.
    	(handle_stap_probe): Fill `objfile' field from `struct probe'.
    	(stap_gen_info_probes_table_header): Remove `objfile' argument.
    	* symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
    	sym_compile_to_ax>: Likewise.

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                                      |    9 +
 bfd/bfd-in2.h                                      |    2 +
 bfd/section.c                                      |    2 +-
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |  345 ++++++++
 gdb/Makefile.in                                    |   20 +-
 gdb/bfd-target.c                                   |    5 +-
 gdb/breakpoint.c                                   |   25 +-
 gdb/buildsym.c                                     |   14 +-
 gdb/buildsym.h                                     |    3 +-
 gdb/cc-with-dwz.sh                                 |   80 --
 gdb/cli/cli-dump.c                                 |    9 +-
 gdb/common/gdb_vecs.c                              |   93 +++
 gdb/{ => common}/gdb_vecs.h                        |    9 +-
 gdb/{gdb_vecs.h => common/host-defs.h}             |   45 +-
 .../cc-with-tweaks.sh}                             |   70 ++-
 gdb/corelow.c                                      |   17 +-
 gdb/defs.h                                         |  382 +---------
 gdb/dsrec.c                                        |    7 +-
 gdb/dwarf2read.c                                   |  871 +++++++++++++-------
 gdb/elfread.c                                      |   19 +-
 gdb/exec.c                                         |   26 +-
 gdb/gcore.c                                        |    8 +-
 gdb/gdb_bfd.c                                      |  483 +++++++++++
 gdb/gdb_bfd.h                                      |   61 ++
 gdb/infrun.c                                       |   18 +-
 gdb/jit.c                                          |    7 +-
 gdb/linespec.c                                     |   65 +-
 gdb/m32r-rom.c                                     |   11 +-
 gdb/machoread.c                                    |   53 +-
 gdb/objfiles.c                                     |   74 +--
 gdb/objfiles.h                                     |    4 -
 gdb/probe.c                                        |  165 ++---
 gdb/probe.h                                        |   28 +-
 gdb/procfs.c                                       |   10 +-
 gdb/record.c                                       |    5 +-
 gdb/remote-m32r-sdi.c                              |    5 +-
 gdb/remote-mips.c                                  |   13 +-
 gdb/remote.c                                       |   15 +-
 gdb/rs6000-nat.c                                   |   29 +-
 gdb/solib-darwin.c                                 |   33 +-
 gdb/solib-dsbt.c                                   |    7 +-
 gdb/solib-frv.c                                    |   13 +-
 gdb/solib-pa64.c                                   |    6 +-
 gdb/solib-spu.c                                    |   12 +-
 gdb/solib.c                                        |   25 +-
 gdb/spu-linux-nat.c                                |    5 +-
 gdb/stap-probe.c                                   |   75 +-
 gdb/symfile-mem.c                                  |   15 +-
 gdb/symfile.c                                      |   71 +-
 gdb/symfile.h                                      |   11 +-
 gdb/utils.c                                        |   71 +--
 gdb/utils.h                                        |  381 +++++++++
 gdb/version.in                                     |    2 +-
 gdb/windows-nat.c                                  |    6 +-
 libiberty/ChangeLog                                |    6 +
 libiberty/cp-demangle.c                            |   32 +-
 libiberty/testsuite/demangle-expected              |    3 +
 58 files changed, 2510 insertions(+), 1373 deletions(-)
 delete mode 100755 gdb/cc-with-dwz.sh
 create mode 100644 gdb/common/gdb_vecs.c
 copy gdb/{ => common}/gdb_vecs.h (93%)
 rename gdb/{gdb_vecs.h => common/host-defs.h} (51%)
 rename gdb/{cc-with-index.sh => contrib/cc-with-tweaks.sh} (63%)
 mode change 100644 => 100755
 create mode 100644 gdb/gdb_bfd.c
 create mode 100644 gdb/gdb_bfd.h
 create mode 100644 gdb/utils.h

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index da9e6a2..98bd591 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+2012-07-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* bfd-in2.h: Regenerated.
+
+2012-07-18  Nicolàs Alejandro Di Risio <sheeva@tiscali.it>
+
+	PR binutils/14335
+	* section.c: Fix a typo in comments.
+
 2012-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
 	* elf64-s390.c: Include elf-s390-common.c.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index c1c5e90..7a90a44 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -4293,6 +4293,8 @@ in .byte hlo8(symbol)  */
   BFD_RELOC_390_GOT20,
   BFD_RELOC_390_GOTPLT20,
   BFD_RELOC_390_TLS_GOTIE20,
+
+/* STT_GNU_IFUNC relocation.  */
   BFD_RELOC_390_IRELATIVE,
 
 /* Score relocations
diff --git a/bfd/section.c b/bfd/section.c
index a3b7c56..ab5635b 100644
--- a/bfd/section.c
+++ b/bfd/section.c
@@ -1311,7 +1311,7 @@ DESCRIPTION
 	This is the preferred method for iterating over sections; an
 	alternative would be to use a loop:
 
-|	   section *p;
+|	   asection *p;
 |	   for (p = abfd->sections; p != NULL; p = p->next)
 |	      func (abfd, p, ...)
 
diff --git a/bfd/version.h b/bfd/version.h
index ecf6d14..543480f 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120718
+#define BFD_VERSION_DATE 20120719
 #define BFD_VERSION @bfd_version@
 #define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9bd7d6e..171a02e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,348 @@
+2012-07-18  Doug Evans  <dje@google.com>
+
+	* common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
+	* common/gdb_vecs.c: New file, contents from utils.c.
+	* common/host-defs.h: New file, contents from defs.h.
+	* utils.h: New file, contents from defs.h.
+	* defs.h: Move all declarations of objects defined in utils.c
+	to utils.h (except QUIT() and related).
+	#include "utils.h", "host-defs.h".
+	* probe.h (probe_p): Move here from gdb_vecs.h.
+	* symfile.c: #include "probe.h" instead of "gdb_vecs.h".
+	* utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
+	(dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
+	* Makefile.in (SFILES): Add common/gdb_vecs.c.
+	(HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
+	(COMMON_OBS): Add gdb_vecs.o.
+	(gdb_vecs.o): New rule.
+
+2012-07-18  Keith Seitz  <keiths@redhat.com>
+
+	* linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
+	parameter.  If non-zero, use SYMNAME as the canonical name
+	for the SaL.
+	Update all callers.
+	(convert_linespec_to_sals): Use add_sal_to_sals for
+	expressions, too.
+	(decode_line_full): No need to "fill in missing canonical names"
+	anymore. Simply make cleanups for the allocated names.
+
+2012-07-18  Keith Seitz  <keiths@redhat.com>
+
+	* linespec.c (struct linespec): Constify expression,
+	source_filename, function_name, and label_name.
+	(symbol_not_found_error): Make all parameters const.
+	(linespec_parser_delete): No need to check for NULL
+	when using xfree. Cast const char * to char * for xfree.
+
+2012-07-18  Keith Seitz  <keiths@redhat.com>
+
+	* breakpoint.c (invalid_thread_id_error): New function.
+	(find_condition_and_thread): Use invalid_thread_id_error.
+	(watch_command_1): Likewise.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* cc-with-index.sh, cc-with-dwz.sh: Remove.
+	* contrib/cc-with-tweaks.sh: New file.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* dwarf2read.c (struct dwz_file) <gdb_index>: New field.
+	(locate_dwz_sections): Recognize .gdb_index.
+	(create_cus_from_index_list): New function.
+	(create_cus_from_index): Use it.  Handle .dwz data.
+	(read_index_from_section): New function, extracted from
+	dwarf2_read_index.
+	(dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
+	if needed.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
+	(struct dwarf2_per_cu_data) <length>: No longer bitfield.
+	<is_dwz>: New field.
+	(struct dwz_file): New.
+	(struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
+	(locate_dwz_sections, dwarf2_get_dwz_file)
+	(get_abbrev_section_for_cu): New functions.
+	(error_check_comp_unit_head, read_and_check_comp_unit_head)
+	(read_and_check_type_unit_head): Add abbrev_section argument.
+	(create_debug_types_hash_table): Update.
+	(init_cutu_and_read_dies): Use proper abbrev section.
+	(init_cutu_and_read_dies_no_follow): Likewise.
+	(set_partial_user): Do nothing if PST==NULL.
+	(read_comp_units_from_section): New function.
+	(create_all_comp_units): Use it.
+	(scan_partial_symbols, partial_die_parent_scope): Update.
+	(skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
+	(process_imported_unit_die, read_partial_die): Handle .dwz files.
+	(find_partial_die): Add offset_in_dwz argument.  Update.
+	(guess_partial_die_structure_name, fixup_partial_die): Update.
+	(read_attribute_value): Handle DW_FORM_GNU_ref_alt,
+	DW_FORM_GNU_strp_alt.
+	(read_indirect_string_from_dwz): New function.
+	(dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
+	(dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
+	(is_ref_attr): Handle DW_FORM_GNU_ref_alt.
+	(follow_die_offset): Add offset_in_dwz argument.
+	(follow_die_ref, dwarf2_fetch_die_location_block): Update.
+	(skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
+	(dwarf_decode_macro_bytes): Add section_is_dwz argument.
+	Handle new macro forms.
+	(dwarf_decode_macros): Update.
+	(dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
+	(dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
+	(lookup_die_type): Handle DW_FORM_GNU_ref_alt.
+	(create_debug_types_hash_table): Use correct abbrev section.
+	(get_debug_line_section): New function.
+	(dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
+	(process_full_comp_unit): Pass 'required' argument to
+	end_symtab_get_static_block.
+	* buildsym.h (end_symtab_get_static_block): Update.
+	* buildsym.c (end_symtab_get_static_block): Add 'required'
+	argument.
+	(end_symtab, end_expandable_symtab): Update.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* dwarf2read.c: Don't include zlib.h or sys/mman.h.
+	(pagesize): Remove.
+	(struct dwarf2_section_info) <map_addr, map_len>: Remove.
+	(zlib_decompress_section): Remove.
+	(dwarf2_read_section): Use gdb_bfd_map_section.
+	(munmap_section_buffer): Remove.
+	(free_dwo_file, dwarf2_per_objfile_free): Don't use
+	munmap_section_buffer.
+	* gdb_bfd.c: Include zlib.h, sys/mman.h.
+	(struct gdb_bfd_section_data): New.
+	(free_one_bfd_section): New function.
+	(gdb_bfd_close_or_warn): Use free_one_bfd_section.
+	(get_section_descriptor, zlib_decompress_section)
+	(gdb_bfd_map_section): New functions.
+	* gdb_bfd.h (gdb_bfd_map_section): Declare.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* gdb_bfd.c (struct gdb_bfd_data): New.
+	(gdb_bfd_cache): New global.
+	(struct gdb_bfd_cache_search): New.
+	(hash_bfd, eq_bfd, gdb_bfd_open): New functions.
+	(gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
+	* gdb_bfd.h (gdb_bfd_open): Declare.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* utils.c (make_cleanup_bfd_unref): Rename from
+	make_cleanup_bfd_close.
+	* defs.h (make_cleanup_bfd_unref): Rename from
+	make_cleanup_bfd_close.
+	* cli/cli-dump.c (bfd_openr_with_cleanup): Update.
+	(bfd_openw_with_cleanup): Update.
+	* corelow.c (core_open): Update.
+	* dsrec.c (load_srec): Update.
+	* m32r-rom.c (m32r_load, m32r_upload_command): Update.
+	* remote-m32r-sdi.c (m32r_load): Update.
+	* remote-mips.c (mips_load_srec): Update.
+	(pmon_load_fast): Update.
+	* solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
+	Update.
+	(darwin_bfd_open): Update.
+	* solib.c (solib_bfd_fopen): Update.
+	* symfile-mem.c (symbol_file_add_from_memory): Update.
+	* symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
+	(symfile_bfd_open): Update.
+	(generic_load): Update.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
+	(pmon_load_fast): Likewise.
+	* m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
+	(m32r_upload_command): Likewise.
+	* dsrec.c (load_srec): Use make_cleanup_bfd_close.
+	* solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
+	Use make_cleanup_bfd_close.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* symfile.c (symfile_bfd_open): Don't copy name.  Call
+	gdb_bfd_stash_filename.
+	(load_command): Open the new BFD before freeing the old.
+	(bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
+	* symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
+	Call gdb_bfd_stash_filename.
+	* spu-linux-nat.c (spu_bfd_open): Don't copy name.
+	* solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
+	gdb_bfd_stash_filename.
+	* solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
+	Free found_pathname.
+	* rs6000-nat.c (add_vmap): Don't copy filename.  Call
+	gdb_bfd_stash_filename.
+	* remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
+	* machoread.c (macho_add_oso_symfile): Call
+	gdb_bfd_stash_filename.
+	(macho_symfile_read_all_oso): Arrange to free archive_name.  Call
+	gdb_bfd_stash_filename.
+	(macho_check_dsym): Don't copy filename.  Call
+	gdb_bfd_stash_filename.
+	* jit.c (bfd_open_from_target_memory): Don't copy the filename.
+	* gdb_bfd.c (gdb_bfd_stash_filename): New function.
+	* gdb_bfd.h (gdb_bfd_stash_filename): Declare.
+	* gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
+	* exec.c (exec_close): Don't free the BFD's filename.
+	(exec_file_attach): Don't copy the filename.  Call
+	gdb_bfd_stash_filename.
+	* corelow.c (core_close): Don't free the BFD's filename.
+	(core_open): Call gdb_bfd_stash_filename.
+	* corefile.c (reopen_exec_file): Remove #if 0 code.
+	* solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
+	pathname.
+	* dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
+
+2012-07-18  Tom Tromey  <tromey@redhat.com>
+
+	* dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
+	gdb_bfd_unref.
+	(free_dwo_file): Use gdb_bfd_unref.
+	* cli/cli-dump.c: Include gdb_bfd.h.
+	(bfd_openw_with_cleanup): Use gdb_bfd_ref.
+	(bfd_openr_with_cleanup): Likewise.
+	* windows-nat.c (windows_make_so): Use gdb_bfd_ref,
+	gdb_bfd_unref.
+	* utils.c: Include gdb_bfd.h.
+	(do_bfd_close_cleanup): Use gdb_bfd_unref.
+	* symfile.c: Include gdb_bfd.h.
+	(separate_debug_file_exists): Use gdb_bfd_unref.
+	(bfd_open_maybe_remote): Use gdb_bfd_ref.
+	(symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
+	(generic_load): Use gdb_bfd_ref.
+	(reread_symbols): Use gdb_bfd_unref.
+	* symfile-mem.c: Include gdb_bfd.h.
+	(symbol_file_add_from_memory): Use make_cleanup_bfd_close.
+	* spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
+	* solib.c: Include gdb_bfd.h.
+	(solib_bfd_fopen): Use gdb_bfd_ref.
+	(solib_bfd_open): Use gdb_bfd_unref.
+	(free_so_symbols): Use gdb_bfd_unref.
+	(reload_shared_libraries_1): Use gdb_bfd_unref.
+	* solib-spu.c: Include gdb_bfd.h.
+	(spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
+	* solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
+	gdb_bfd_unref.
+	* solib-frv.c: Include gdb_bfd.h.
+	(enable_break2): Use gdb_bfd_unref.
+	* solib-dsbt.c: Include gdb_bfd.h.
+	(enable_break2): Use gdb_bfd_unref.
+	* solib-darwin.c: Include gdb_bfd.h.
+	(darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
+	gdb_bfd_unref.
+	(darwin_bfd_open): Use gdb_bfd_unref.
+	* rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
+	* remote-mips.c: Include gdb_bfd.h.
+	(mips_load_srec): Use gdb_bfd_ref.
+	(pmon_load_fast): Use gdb_bfd_ref.
+	* remote-m32r-sdi.c: Include gdb_bfd.h.
+	(m32r_load): Use gdb_bfd_ref.
+	* record.c: Include gdb_bfd.h.
+	(record_save_cleanups): Use gdb_bfd_unref.
+	(cmd_record_save): Use gdb_bfd_unref.
+	* procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
+	gdb_bfd_unref.
+	* objfiles.h (gdb_bfd_close_or_warn): Remove.
+	(gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
+	* objfiles.c: Include gdb_bfd.h.
+	(free_objfile): Use gdb_bfd_unref.
+	(gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
+	gdb_bfd.c.
+	* machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
+	(macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
+	(macho_check_dsym): Likewise.
+	* m32r-rom.c: Include gdb_bfd.h.
+	(m32r_load): Use gdb_bfd_ref.
+	(m32r_upload_command): Use gdb_bfd_ref.
+	* jit.c: Include gdb_bfd.h.
+	(jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
+	* gdb_bfd.h: New file.
+	* gdb_bfd.c: New file.
+	* gcore.c: Include gdb_bfd.h.
+	(create_gcore_bfd): Use gdb_bfd_ref.
+	(do_bfd_delete_cleanup): Use gdb_bfd_unref.
+	(gcore_command): Use gdb_bfd_unref.
+	* exec.c: Include gdb_bfd.h.
+	(exec_close): Use gdb_bfd_unref.
+	(exec_close_1): Use gdb_bfd_unref.
+	(exec_file_attach): Use gdb_bfd_ref.
+	* elfread.c: Include gdb_bfd.h.
+	(build_id_verify): Use gdb_bfd_unref.
+	* dsrec.c: Include gdb_bfd.h.
+	(load_srec): Use gdb_bfd_ref.
+	* corelow.c: Include gdb_bfd.h.
+	(core_close): Use gdb_bfd_unref.
+	(core_open): Use gdb_bfd_ref.
+	* bfd-target.c: Include gdb_bfd.h.
+	(target_bfd_xclose): Use gdb_bfd_unref.
+	(target_bfd_reopen): Use gdb_bfd_ref.
+	* Makefile.in (SFILES): Add gdb_bfd.c.
+	(HFILES_NO_SRCDIR): Add gdb_bfd.h.
+	(COMMON_OBS): Add gdb_bfd.o.
+
+2012-07-18  Keith Seitz  <keiths@redhat.com>
+
+	* breakpoint.c (find_condition_and_thread): Initialize
+	TASK and REST.
+	(create_breakpiont): find_condition_and_thread will now
+	initialize COND_STRING, THREAD, and REST (and TASK).
+	(addr_string_to_sals): Likewise.
+
+2012-07-18  Pedro Alves  <palves@redhat.com>
+
+	* infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
+	Pull the single step breakpoints out of the target.
+
+2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+	* probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
+	* stap-probe.c (compile_probe_arg): Likewise.
+
+2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
+
+	* elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
+	(elf_compile_to_ax): Likewise.
+	* infrun.c (insert_exception_resume_from_probe): Likewise.
+	(check_exception_resume): Remove `objfile' variable.
+	* probe.c (find_probe_by_pc): Remove `objfile' argument.
+	(struct probe_and_objfile, probe_and_objfile_s): Delete.
+	(collect_probes): Adjust return value to `VEC (probe_p) *'.
+	(compare_entries): Rename to...
+	(compare_probes): ...this.  Adjust function to work with
+	`struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
+	respectively.
+	(gen_ui_out_table_header_info): Adjust `probes' argument to be
+	`VEC (probe_p) *'.
+	(print_ui_out_info): Adjust argument to be `struct probe *'.
+	(info_probes_for_ops): Adjust internal computations to use
+	`VEC (probe_p) *'.
+	(probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
+	* probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
+	gen_info_probes_table_values>: Remove `objfile' argument.
+	(struct probe) <objfile>: New field.
+	(find_probe_by_pc): Remove `objfile' argument.
+	* stap-probe.c (stap_parse_probe_arguments): Likewise.
+	(stap_get_probe_argument_count): Likewise.
+	(stap_get_arg): Likewise.
+	(stap_evaluate_probe_argument): Likewise.
+	(stap_compile_to_ax): Likewise.
+	(compile_probe_arg): Refactor not to pass `objfile' anymore.
+	(handle_stap_probe): Fill `objfile' field from `struct probe'.
+	(stap_gen_info_probes_table_header): Remove `objfile' argument.
+	* symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
+	sym_compile_to_ax>: Likewise.
+
 2012-07-18  Terry Guo  <terry.guo@arm.com>
 
 	PR 14329
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index d31d872..08e6c24 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -706,7 +706,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
 	exceptions.c expprint.c \
 	f-exp.y f-lang.c f-typeprint.c f-valprint.c filesystem.c \
 	findcmd.c findvar.c frame.c frame-base.c frame-unwind.c \
-	gdbarch.c arch-utils.c gdbtypes.c gnu-v2-abi.c gnu-v3-abi.c \
+	gdbarch.c arch-utils.c gdb_bfd.c gdbtypes.c gnu-v2-abi.c gnu-v3-abi.c \
 	go-exp.y go-lang.c go-typeprint.c go-valprint.c \
 	inf-loop.c \
 	infcall.c \
@@ -746,7 +746,7 @@ SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
 	xml-syscall.c \
 	annotate.c common/signals.c copying.c dfp.c gdb.c inf-child.c \
 	regset.c sol-thread.c windows-termcap.c \
-	common/common-utils.c common/xml-utils.c \
+	common/gdb_vecs.c common/common-utils.c common/xml-utils.c \
 	common/ptid.c common/buffer.c gdb-dlfcn.c common/agent.c \
 	common/format.c
 
@@ -767,8 +767,8 @@ osf-share/cma_errors.h osf-share/cma_tcb_defs.h osf-share/cma_attr.h \
 osf-share/cma_stack_int.h osf-share/cma_init.h \
 osf-share/cma_deb_core.h osf-share/AT386/cma_thread_io.h \
 osf-share/cma_sched.h \
-common/gdb_signals.h common/gdb_thread_db.h common/i386-xstate.h \
-common/linux-ptrace.h \
+common/gdb_signals.h common/gdb_thread_db.h common/gdb_vecs.h \
+common/i386-xstate.h common/linux-ptrace.h \
 proc-utils.h arm-tdep.h ax-gdb.h ppcnbsd-tdep.h	\
 cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h \
 exec.h m32r-tdep.h osabi.h gdbcore.h solib-som.h amd64bsd-nat.h \
@@ -830,8 +830,8 @@ gnulib/import/extra/snippet/arg-nonnull.h gnulib/import/extra/snippet/c++defs.h
 gnulib/import/extra/snippet/warn-on-use.h \
 gnulib/import/stddef.in.h gnulib/import/inttypes.in.h inline-frame.h skip.h \
 common/common-utils.h common/xml-utils.h common/buffer.h common/ptid.h \
-common/format.h \
-common/linux-osdata.h gdb-dlfcn.h auto-load.h probe.h stap-probe.h
+common/format.h common/host-defs.h utils.h \
+common/linux-osdata.h gdb-dlfcn.h auto-load.h probe.h stap-probe.h gdb_bfd.h
 
 # Header files that already have srcdir in them, or which are in objdir.
 
@@ -881,7 +881,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
 	macrotab.o macrocmd.o macroexp.o macroscope.o \
 	mi-common.o \
 	event-loop.o event-top.o inf-loop.o completer.o \
-	gdbarch.o arch-utils.o gdbtypes.o osabi.o copying.o \
+	gdbarch.o arch-utils.o gdbtypes.o gdb_bfd.o osabi.o copying.o \
 	memattr.o mem-break.o target.o parse.o language.o buildsym.o \
 	findcmd.o \
 	std-regs.o \
@@ -919,7 +919,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
 	xml-support.o xml-syscall.o xml-utils.o \
 	target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o \
 	inferior.o osdata.o gdb_usleep.o record.o gcore.o \
-	jit.o progspace.o skip.o probe.o \
+	gdb_vecs.o jit.o progspace.o skip.o probe.o \
 	common-utils.o buffer.o ptid.o gdb-dlfcn.o common-agent.o \
 	format.o
 
@@ -1909,6 +1909,10 @@ common-utils.o: ${srcdir}/common/common-utils.c
 	$(COMPILE) $(srcdir)/common/common-utils.c
 	$(POSTCOMPILE)
 
+gdb_vecs.o: ${srcdir}/common/gdb_vecs.c
+	$(COMPILE) $(srcdir)/common/gdb_vecs.c
+	$(POSTCOMPILE)
+
 xml-utils.o: ${srcdir}/common/xml-utils.c
 	$(COMPILE) $(srcdir)/common/xml-utils.c
 	$(POSTCOMPILE)
diff --git a/gdb/bfd-target.c b/gdb/bfd-target.c
index 6728800..21f53bb 100644
--- a/gdb/bfd-target.c
+++ b/gdb/bfd-target.c
@@ -21,6 +21,7 @@
 #include "target.h"
 #include "bfd-target.h"
 #include "exec.h"
+#include "gdb_bfd.h"
 
 /* The object that is stored in the target_ops->to_data field has this
    type.  */
@@ -70,7 +71,7 @@ target_bfd_xclose (struct target_ops *t, int quitting)
 {
   struct target_bfd_data *data = t->to_data;
 
-  bfd_close (data->bfd);
+  gdb_bfd_unref (data->bfd);
   xfree (data->table.sections);
   xfree (data);
   xfree (t);


hooks/post-receive
--
Repository for Project Archer.


             reply	other threads:[~2012-07-19 12:40 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 12:40 pmuldoon [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-02-26 10:18 pmuldoon
2013-02-02 13:02 pmuldoon
2013-01-04 11:43 pmuldoon
2012-11-28 14:55 pmuldoon
2012-11-23 16:55 pmuldoon
2012-11-09 15:09 pmuldoon
2012-10-22 13:01 pmuldoon
2012-09-07 13:38 pmuldoon
2012-09-04 12:17 pmuldoon
2012-09-04 12:13 pmuldoon
2012-08-30 16:58 pmuldoon
2012-08-23 14:56 pmuldoon
2012-08-14 16:08 pmuldoon
2012-08-09 17:02 pmuldoon
2012-08-01 17:00 pmuldoon
2012-07-23 19:41 pmuldoon
2012-07-18 14:22 pmuldoon
2012-07-11 14:21 pmuldoon
2012-06-25 17:43 pmuldoon
2012-06-21 11:12 pmuldoon
2012-06-14 10:27 pmuldoon
2012-06-13 13:52 pmuldoon
2012-06-06 10:42 pmuldoon
2012-05-22 12:36 pmuldoon
2012-04-26 13:31 pmuldoon
2012-04-10 19:22 pmuldoon
2012-04-04 15:05 pmuldoon
2012-03-27 16:42 pmuldoon
2012-03-23 14:48 pmuldoon
2012-03-19 15:08 pmuldoon
2012-03-12 13:42 pmuldoon
2012-03-05 15:58 pmuldoon
2012-02-20 17:52 pmuldoon
2012-02-13 10:41 pmuldoon
2012-01-23 16:39 pmuldoon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120719124004.23830.qmail@sourceware.org \
    --to=pmuldoon@sourceware.org \
    --cc=archer-commits@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).