The branch, archer-jankratochvil-fedora18 has been updated via 897686c0aedb7a6da59b823f22b1d24ec5a1d2ba (commit) via c3c8464edb081043317fa499e77dcedb0e10d3c8 (commit) via e0dbdfeb51af42ed26460718463bd16fc16b9976 (commit) via 700d76b4c8bcda06717f0e04a6cf063718f5a325 (commit) via 1c41925c268b37659550eeef21c06529319506e7 (commit) via 02c22ca077247f2eddcdde30aa855f300a068a85 (commit) via fde4261764503f18d451c2cc0e47a5da95ed1b80 (commit) via 2a9ba042956059025afc16bd03de5ebca8bffa70 (commit) via bb8c3d691bfcfbfe02c179c2e9b3d60a55b85074 (commit) via e9bf4889598edf5f29bc0a2eddc6ce8c400849fd (commit) via 4337304b0513bf49b9b550d806a26355d31c2fde (commit) via a5f519d259948e1b63e6b2f26eaa0cab30e8d5de (commit) via c75b416063ef9ddc7029b04755918f822787b63b (commit) via 0b7b2a7a49f9d3d6a77c2792d8a991f5a8cb1f8a (commit) via cd5a9e1524354235ba395dd770b807e6679c079a (commit) via bdf3e7e7e351e5d8053bd13468f44c51440bfd67 (commit) via b2ef0b0f478437f07b6b3e4ddd2876508e1c3ffa (commit) via 9b54bf156d297dcf8603dd01d1c4cde4b5294f9f (commit) via 0c169466eea682278be88e1e49b09ac527413f1d (commit) via 87a9dffe8b0d13af59352822f4c4340a4a9d4edf (commit) via 36aec6fcb3031b58a5fe425622ae4b5c427af0d7 (commit) via ee9411572a2e530e58613d2148b4e8fde93005ac (commit) via 68bf8b484c380b29d248eae31b295e0443113357 (commit) via bcc7e441174ba3bbd2139248f2cbad5c11eddb4b (commit) via 3a6e209b4926d464692184f3d20e0ebc89045803 (commit) via d98a4021f3bbf405fc2493beb8570594c4be7330 (commit) via 65e97da3008142db7f9edcc36a6324a625eafcf4 (commit) via 8b63be83e4bc2c9c2ba03439c14cd711cbd3a715 (commit) via c93df1a6ff53b3181f0c3ac60691077bbfbc898a (commit) via 881507beb53ed88cac8d468292e4372f542f9e0c (commit) via 233aca0e9e8bc62e5f4178b5b8d0653aa83fad4c (commit) via 2c4676ff82334b670bd4c922d5efc7147b42937f (commit) via ab1eba6976306dbf52b7947f2561410aae146f96 (commit) via de94b80f67542c7020aedcccfec6b21001a85225 (commit) via 84f420f1cc4092f2d8cf110f98dfaa1ee508fde4 (commit) via 1d8ea0608ecf3f2acc39b8b6412b5165d7ab7736 (commit) via cbe25e6175fd8371f6d9bd422cbfa861a25f5202 (commit) via 4d4eca67000f91569978f5d5a5830d6acc06eb64 (commit) via 67e439b20f18370aa5313b2617fd652f15eb265a (commit) via 015d57aa1b9d8dea1a4c659df639014802c81397 (commit) via 8871883754be6b3e6cfdd39f00031e8253fb77bc (commit) via 733f692e7e7bb4efabc33d0ac52d1fdece09bdf5 (commit) via c6117965e1c0a0d8370b456b28e1bf96c4cee82c (commit) via c592f435744edc63417a388df6e12cbdc85290fe (commit) via dce1afe67e15b8c0ac7359376f87cfc92f721c75 (commit) via 1bb2d08f1f927762bacce6c3e7b8ae2cb1273e5e (commit) via 5cc4f75ccb5fc22013f242381f5175bc7b4ab9b5 (commit) via b836b1e85b3ed63fba1f64d3e13165d6ce2f2cbe (commit) via 977ab6ce155e1ca82219f03b4c04bab5fa99f6c0 (commit) via e318761d1cf647e2fabd972222c8089836c838fd (commit) via 85a5550fd99f1ed63e0d6cb2bd8b22a1be2528c9 (commit) via a0793ea3fadb615f8fd6bfb4e6da3e1acdfa70bc (commit) via fe04b31b2a8e91ecdcf1a4398085040a0e0472de (commit) via ce083ecc15bb7355b4d0edc5e3d3de1b2808fa4c (commit) via 262f25800ce21350b80df0002259f8ff5ea6c53c (commit) via b5a39a5de37b580b8a23bd22131b18d1f9b06c7c (commit) via 2b5ccce60b26578651a6fe658f762fa8b082688b (commit) via 74ef4c1cf21f9edc1e392959136eae47541972a6 (commit) via c607b48599631c29a2e8a79fe8312c09f10f7c92 (commit) via 106c053c6ee04e432b7fce34dec174cdf60fcade (commit) via cbcb999b156fb341e1740c982c4a508113924fc5 (commit) via e4df667e6522a3d59285f00907f5d5d9c3cb44e6 (commit) via a8af3f6c5ca3d32c0cb1c24257dad42972963e26 (commit) via f467d3abd8586ef655a9e9dda65575e7eb4ca64b (commit) via 0ed9f11dd7e3fcc6ea3bb166d013918f6c7e1abf (commit) via c936df07b82c0194d28fe7e1830dc8b07b6c3ee0 (commit) via 60e7a77836a8e8002916b3204e003869f4998722 (commit) via bcbd703c1a68b9ef4e39bef4e39e232534bd03cf (commit) via 76b5f0b227c602e6a9738dbaffd1d2ec4d1e9970 (commit) via 556a47bd7d184962b457f61edd2c76168f75dab1 (commit) via 86be0f83e343ab0c5a8978e1c2647dc529847328 (commit) via 01ce3a692823961e1d0c901a74e9c1352e5c9401 (commit) via 10f121e6da0388675557d2882790971bf8a6d6e5 (commit) via a4127fbd742128ef4046eaa9ef15feb1816c8e20 (commit) via 4c2f203820805a13812c6613108101b37de3783b (commit) via da79849a1fdebe4acd5826ee80f266630a78a81a (commit) via 2aecfcfb12d079ee7d417e1d8ab37f480a251be6 (commit) via 3f7f19a13a8b11a1798aff0e4b4948a74e386c53 (commit) via 1e1953c1b5ad02447caae50cea8d900d972b09ed (commit) via 307ab13bb4d932ab867035d3c11624a4389c089c (commit) via 65b24245f234c112a522109233d035d1f28bd17d (commit) via 8ddc4c764e23fa72f01690bd0de0ba7694306567 (commit) via 75df43022808b299158b992c93a93694ed90f0cc (commit) from 814db9ee87e8d609ce60324760cf80cd4e4ec43a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 897686c0aedb7a6da59b823f22b1d24ec5a1d2ba Merge: c3c8464 8b63be8 Author: Jan Kratochvil Date: Wed Aug 1 18:31:49 2012 +0200 Merge remote-tracking branch 'gdb/gdb_7_5-branch' into archer-jankratochvil-fedora18 Conflicts: gdb/NEWS gdb/dwarf2read.c gdb/main.c commit c3c8464edb081043317fa499e77dcedb0e10d3c8 Merge: e0dbdfe 02c22ca Author: Jan Kratochvil Date: Wed Aug 1 18:15:27 2012 +0200 Merge branch 'common-picks' into archer-jankratochvil-fedora18 commit e0dbdfeb51af42ed26460718463bd16fc16b9976 Author: Jan Kratochvil Date: Wed Aug 1 18:15:09 2012 +0200 Fix up the removal. commit 700d76b4c8bcda06717f0e04a6cf063718f5a325 Author: Jan Kratochvil Date: Wed Aug 1 18:14:33 2012 +0200 Remove the branch: archer-tromey-dwz-multifile-rebase commit 1c41925c268b37659550eeef21c06529319506e7 Merge: 814db9e bcbd703 Author: Jan Kratochvil Date: Wed Aug 1 18:10:06 2012 +0200 Merge commit 'bcbd703c1a68b9ef4e39bef4e39e232534bd03cf' into archer-jankratochvil-fedora18 commit 02c22ca077247f2eddcdde30aa855f300a068a85 Author: Jan Kratochvil Date: Wed Jul 25 20:14:17 2012 +0000 gdb/ * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/. (cherry picked from commit 232bffa3ba4859cf41d928a2bdfff804c4157d09) Conflicts: gdb/ChangeLog commit fde4261764503f18d451c2cc0e47a5da95ed1b80 Author: Tom Tromey Date: Wed Jul 25 15:47:08 2012 +0000 * NEWS: Mention maint info bfds. * gdb_bfd.c (all_bfds): New global. (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds. (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd): New functions. gdb/doc * gdb.texinfo (Maintenance Commands): Document maint info bfds. (cherry picked from commit 47bbf2c7f8fb4d2ef8e46ce1ae6f02c15736b1e6) Conflicts: gdb/ChangeLog gdb/NEWS gdb/doc/ChangeLog commit 2a9ba042956059025afc16bd03de5ebca8bffa70 Author: Tom Tromey Date: Tue Jul 24 20:15:47 2012 +0000 * symfile.c (symbol_file_add): Don't open BFD twice. (cherry picked from commit ec820e32a6abbef5191c2546c7e3b751477f9cbe) Conflicts: gdb/ChangeLog commit bb8c3d691bfcfbfe02c179c2e9b3d60a55b85074 Author: Tom Tromey Date: Mon Jul 23 18:54:25 2012 +0000 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference counting. * exec.c (exec_close_1): Unconditionally release vmap's BFD. (map_vmap): Acquire a reference to the BFD. (cherry picked from commit ea9d522e8c645377ffcb789862066e6bbb844eed) Conflicts: gdb/ChangeLog commit e9bf4889598edf5f29bc0a2eddc6ce8c400849fd Author: Tom Tromey Date: Mon Jul 23 15:25:11 2012 +0000 * solib-svr4.c (enable_break): Update. * bfd-target.h (target_bfd_reopen): Update documentation. (cherry picked from commit d0c57e98a587a85fccf8377096a3ff0956099be0) Conflicts: gdb/ChangeLog commit 4337304b0513bf49b9b550d806a26355d31c2fde Author: Tom Tromey Date: Mon Jul 23 15:03:58 2012 +0000 * symfile.c (separate_debug_file_exists): Update. (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote. (reread_symbols): Update. * elfread.c (build_id_verify): Update. * symfile.h (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote. (cherry picked from commit 5feafdc48ee0157865ef636861713ed049504956) Conflicts: gdb/ChangeLog commit a5f519d259948e1b63e6b2f26eaa0cab30e8d5de Author: Tom Tromey Date: Mon Jul 23 15:01:49 2012 +0000 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment. (cherry picked from commit d6c48b471538719626d3ac0eae2e3da5d5e26277) Conflicts: gdb/ChangeLog commit c75b416063ef9ddc7029b04755918f822787b63b Author: Tom Tromey Date: Mon Jul 23 14:58:44 2012 +0000 * 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. (cherry picked from commit 612c29ac072387bbddc9b0f4321353b929d5737b) Conflicts: gdb/ChangeLog commit 0b7b2a7a49f9d3d6a77c2792d8a991f5a8cb1f8a Author: Tom Tromey Date: Mon Jul 23 14:57:53 2012 +0000 * 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. (cherry picked from commit 8b3d8cbf611383b5759061e49521fb3cd83d4a71) Conflicts: gdb/ChangeLog commit cd5a9e1524354235ba395dd770b807e6679c079a Author: Tom Tromey Date: Mon Jul 23 14:56:07 2012 +0000 * 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. (cherry picked from commit 8ee2b379b49d8132dc895ba40e80cf36044358ba) Conflicts: gdb/ChangeLog commit bdf3e7e7e351e5d8053bd13468f44c51440bfd67 Author: Tom Tromey Date: Fri Jul 20 16:51:50 2012 +0000 2012-07-20 Jan Kratochvil Tom Tromey * dwarf2read.c (dwarf_decode_macros) : New cases. (dwarf_decode_macro_bytes) : Examine 'section_is_dwz'. (cherry picked from commit a2d46894fe06ff4a5960efa7493b72e42098c06f) Conflicts: gdb/ChangeLog commit b2ef0b0f478437f07b6b3e4ddd2876508e1c3ffa Author: Tom Tromey Date: Fri Jul 20 16:12:38 2012 +0000 * dwarf2read.c (try_open_dwo_file): Don't call gdb_bfd_stash_filename. (cherry picked from commit bf739cb8363c646f5cc29100f7ab8ff16f92912a) Conflicts: gdb/ChangeLog commit 9b54bf156d297dcf8603dd01d1c4cde4b5294f9f Author: Tom Tromey 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. (cherry picked from commit 553257f6403fab81623d152c0e99e52ea6dbdc89) Conflicts: gdb/ChangeLog commit 0c169466eea682278be88e1e49b09ac527413f1d Author: Tom Tromey Date: Wed Jul 18 20:01:26 2012 +0000 * dwarf2read.c (struct dwz_file) : 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. (cherry picked from commit 67635c29c6d4f4371507b6c43dd44b2ce1a6affb) Conflicts: gdb/ChangeLog commit 87a9dffe8b0d13af59352822f4c4340a4a9d4edf Author: Tom Tromey Date: Wed Jul 18 19:59:35 2012 +0000 * dwarf2read.c (struct dwarf2_per_objfile) : New field. (struct dwarf2_per_cu_data) : No longer bitfield. : New field. (struct dwz_file): New. (struct partial_die_info) : 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. (cherry picked from commit f618cd9d7121b5fd26a9f8a9ae49c0201dda728b) Conflicts: gdb/ChangeLog commit 36aec6fcb3031b58a5fe425622ae4b5c427af0d7 Author: Tom Tromey 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) : 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. (cherry picked from commit 4ee2aab930752a33e71dfd11865fde112bc03003) Conflicts: gdb/ChangeLog commit ee9411572a2e530e58613d2148b4e8fde93005ac Author: Tom Tromey Date: Wed Jul 18 19:52:14 2012 +0000 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open. (cherry picked from commit 17642581262f80256311ad4a8707c3aa462e0b2a) Conflicts: gdb/ChangeLog commit 68bf8b484c380b29d248eae31b295e0443113357 Author: Tom Tromey 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. (cherry picked from commit 112d5f62dbf2d223aefbb91b17ed15e22327f256) Conflicts: gdb/ChangeLog commit bcc7e441174ba3bbd2139248f2cbad5c11eddb4b Author: Tom Tromey 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. (cherry picked from commit 769cb3532d1a1a06cd9248370244df5ac8b30df6) Conflicts: gdb/ChangeLog commit 3a6e209b4926d464692184f3d20e0ebc89045803 Author: Tom Tromey 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. (cherry picked from commit 1f20395dc965144313da256a2f46448787cb7219) Conflicts: gdb/ChangeLog commit d98a4021f3bbf405fc2493beb8570594c4be7330 Author: Tom Tromey 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. (cherry picked from commit 6bae30f0df82cae05a3d708223dbe7783202295c) Conflicts: gdb/ChangeLog commit 65e97da3008142db7f9edcc36a6324a625eafcf4 Author: Tom Tromey 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. (cherry picked from commit e1a653b8460251c21a226128b5281fac3f783328) Conflicts: gdb/ChangeLog commit 8b63be83e4bc2c9c2ba03439c14cd711cbd3a715 Author: Ulrich Weigand Date: Wed Aug 1 13:08:41 2012 +0000 * gdb.base/catch-load.exp: Fix argument to gdb_load_shlibs. * gdb.base/ctxobj.exp: Call gdb_load_shlibs. * gdb.base/print-file-var.exp: Likewise. * gdb.server/solib-list.exp: Skip on remote targets. commit c93df1a6ff53b3181f0c3ac60691077bbfbc898a Author: Ulrich Weigand Date: Wed Aug 1 13:05:44 2012 +0000 gdbserver/ChangeLog: * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish between unsupported TYPE and unimplementable ADDR/LEN combination. (arm_insert_point): Act on new return value. testsuite/ChangeLog: * gdb.base/watchpoint.exp (test_wide_location_1): Expect software watchpoints on ARM. When expecting software watchpoints, tolerate (remote) targets that report unsupported hardware watchpoint only at continue time. (test_wide_location_2): Likewise. commit 881507beb53ed88cac8d468292e4372f542f9e0c Author: Ulrich Weigand Date: Wed Aug 1 12:57:04 2012 +0000 ChangeLog: * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not attempt to 4-byte-align HW breakpoint addresses for Thumb. gdbserver/ChangeLog: * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt to 4-byte-align HW breakpoint addresses for Thumb. commit 233aca0e9e8bc62e5f4178b5b8d0653aa83fad4c Author: Jan Kratochvil Date: Wed Aug 1 09:03:17 2012 +0000 gdb/testsuite/ * gdb.base/valgrind-infcall.exp: Relax the UNSUPPORTED check for more valgrind versions. commit 2c4676ff82334b670bd4c922d5efc7147b42937f Author: Mike Frysinger Date: Wed Aug 1 03:36:44 2012 +0000 sim: bfin: set bfrom alias field to correct size When the sim is built w/out the bfroms, we end up passing a length of 0 when mapping the rom region which the core sim code rejects. So add an alias field equal to the length to avoid that error. Signed-off-by: Mike Frysinger commit ab1eba6976306dbf52b7947f2561410aae146f96 Author: Mike Frysinger Date: Wed Aug 1 03:35:37 2012 +0000 sim: bfin: update return value in bfin_reg_{fetch,store} The latest gdb sim-remote.c really wants a return value from the fetch/store register functions, so update the Blackfin sim to avoid the warnings/errors. Signed-off-by: Mike Frysinger commit de94b80f67542c7020aedcccfec6b21001a85225 Author: gdbadmin Date: Wed Aug 1 00:00:02 2012 +0000 *** empty log message *** commit 84f420f1cc4092f2d8cf110f98dfaa1ee508fde4 Author: Andreas Schwab Date: Tue Jul 31 19:51:02 2012 +0000 * ppc-linux-tdep.c (ppc_linux_init_abi): Register linux_get_siginfo_type. commit 1d8ea0608ecf3f2acc39b8b6412b5165d7ab7736 Author: Jan Kratochvil Date: Tue Jul 31 07:34:39 2012 +0000 gdb/ * infcall.c (call_function_by_hand): Move BP_ADDR comment to AT_ENTRY_POINT. (call_function_by_hand) : Call write_memory with gdbarch_breakpoint_from_pc, if possible. (call_function_by_hand) : The BP_ADDR comment is moved here. gdb/testsuite/ * gdb.base/valgrind-infcall.c: New file. * gdb.base/valgrind-infcall.exp: New file. commit cbe25e6175fd8371f6d9bd422cbfa861a25f5202 Author: gdbadmin Date: Tue Jul 31 00:00:33 2012 +0000 *** empty log message *** commit 4d4eca67000f91569978f5d5a5830d6acc06eb64 Author: Keith Seitz Date: Mon Jul 30 18:03:53 2012 +0000 * linespec.c (linespec_lex_number): A number followed by quotes is a valid number, too. * gdb.linespec/ls-errs.exp: Check some quote-enclosed linespecs. commit 67e439b20f18370aa5313b2617fd652f15eb265a Author: Doug Evans Date: Mon Jul 30 16:58:10 2012 +0000 * gdb.dwarf2/fission-reread.S: Use .data instead of .bss. * gdb.dwarf2/pr13961.S: Ditto. commit 015d57aa1b9d8dea1a4c659df639014802c81397 Author: Doug Evans Date: Mon Jul 30 16:34:33 2012 +0000 * gdb.dwarf2/dw4-sig-types.exp: Fix typo. commit 8871883754be6b3e6cfdd39f00031e8253fb77bc Author: gdbadmin Date: Mon Jul 30 00:00:34 2012 +0000 *** empty log message *** commit 733f692e7e7bb4efabc33d0ac52d1fdece09bdf5 Author: gdbadmin Date: Sun Jul 29 00:00:02 2012 +0000 *** empty log message *** commit c6117965e1c0a0d8370b456b28e1bf96c4cee82c Author: gdbadmin Date: Sat Jul 28 00:00:32 2012 +0000 *** empty log message *** commit c592f435744edc63417a388df6e12cbdc85290fe Author: Jan Kratochvil Date: Fri Jul 27 21:35:57 2012 +0000 gdb/testsuite/ Fix testsuite regression after --use-deprecated-index-sections removal. * gdb.base/annota1.exp (run until main breakpoint): Update the expect string. * gdb.base/async-shell.exp (gdbindex_warning_re): Likewise. commit dce1afe67e15b8c0ac7359376f87cfc92f721c75 Author: qiyao Date: Fri Jul 27 02:30:20 2012 +0000 gdb/gdbserver/ * server.c (process_point_options): Stop at 'X' when parsing. commit 1bb2d08f1f927762bacce6c3e7b8ae2cb1273e5e Author: gdbadmin Date: Fri Jul 27 00:00:32 2012 +0000 *** empty log message *** commit 5cc4f75ccb5fc22013f242381f5175bc7b4ab9b5 Author: Keith Seitz Date: Thu Jul 26 16:34:38 2012 +0000 * linespec.c (linespec_lexer_lex_number): The input is also a valid number if the next character is a comma or colon. commit b836b1e85b3ed63fba1f64d3e13165d6ce2f2cbe Author: gdbadmin Date: Thu Jul 26 00:00:03 2012 +0000 *** empty log message *** commit 977ab6ce155e1ca82219f03b4c04bab5fa99f6c0 Author: Jan Kratochvil Date: Wed Jul 25 20:35:30 2012 +0000 gdb/testsuite/ Fix testsuite regression after --use-deprecated-index-sections removal. * lib/mi-support.exp (gdbindex_warning_re): Update the expect string. commit e318761d1cf647e2fabd972222c8089836c838fd Author: corsepiu Date: Wed Jul 25 15:35:54 2012 +0000 2012-07-25 Ralf Corsépius * configure.tgt: Add v850*-*-rtems*. commit 85a5550fd99f1ed63e0d6cb2bd8b22a1be2528c9 Author: Hui Zhu Date: Wed Jul 25 12:50:07 2012 +0000 2012-07-25 Hui Zhu * linespec.c (linespec_lexer_lex_number): Update comments, change the return and add check to make sure the input is the decimal numbers. (linespec_lexer_lex_one): If linespec_lexer_lex_number return false, call linespec_lexer_lex_string. commit a0793ea3fadb615f8fd6bfb4e6da3e1acdfa70bc Author: gdbadmin Date: Wed Jul 25 00:00:32 2012 +0000 *** empty log message *** commit fe04b31b2a8e91ecdcf1a4398085040a0e0472de Author: Marc Khouzam Date: Tue Jul 24 17:41:31 2012 +0000 2012-07-24 Marc Khouzam * breakpoint.c (create_breakpoint): Store condition for pending breakpoints. commit ce083ecc15bb7355b4d0edc5e3d3de1b2808fa4c Author: gdbadmin Date: Tue Jul 24 00:00:33 2012 +0000 *** empty log message *** commit 262f25800ce21350b80df0002259f8ff5ea6c53c Author: Keith Seitz Date: Mon Jul 23 21:12:33 2012 +0000 * linespec.c (convert_linespec_to_sal): Don't add any symbols to the result vector if symbol_to_sal returns zero. commit b5a39a5de37b580b8a23bd22131b18d1f9b06c7c Author: gdbadmin Date: Mon Jul 23 00:00:34 2012 +0000 *** empty log message *** commit 2b5ccce60b26578651a6fe658f762fa8b082688b Author: gdbadmin Date: Sun Jul 22 00:00:03 2012 +0000 *** empty log message *** commit 74ef4c1cf21f9edc1e392959136eae47541972a6 Author: gdbadmin Date: Sat Jul 21 00:00:33 2012 +0000 *** empty log message *** commit c607b48599631c29a2e8a79fe8312c09f10f7c92 Author: Doug Evans Date: Fri Jul 20 17:59:04 2012 +0000 * 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. doc/ * gdb.texinfo (Mode Options): Delete --use-deprecated-index-sections. (Index Files): Document how to control the use of deprecated index sections. (Index Section Format): Replace --use-deprecated-index-sections with "set use-deprecated-index-sections on". commit 106c053c6ee04e432b7fce34dec174cdf60fcade Author: gdbadmin Date: Fri Jul 20 00:00:03 2012 +0000 *** empty log message *** commit cbcb999b156fb341e1740c982c4a508113924fc5 Author: gdbadmin Date: Thu Jul 19 00:00:33 2012 +0000 *** empty log message *** commit e4df667e6522a3d59285f00907f5d5d9c3cb44e6 Author: gdbadmin Date: Wed Jul 18 16:34:42 2012 +0000 Set version to 7.4.91.20120718-cvs commit a8af3f6c5ca3d32c0cb1c24257dad42972963e26 Author: gdbadmin Date: Wed Jul 18 16:34:26 2012 +0000 GDB 7.4.91 released. commit f467d3abd8586ef655a9e9dda65575e7eb4ca64b Author: gdbadmin Date: Wed Jul 18 15:56:55 2012 +0000 NEWS: Replace "Changes since GDB 7.4" with "Changes in GDB 7.5" commit 0ed9f11dd7e3fcc6ea3bb166d013918f6c7e1abf Author: gdbadmin Date: Wed Jul 18 15:50:59 2012 +0000 Update GDB version number in version.in commit c936df07b82c0194d28fe7e1830dc8b07b6c3ee0 Author: gdbadmin Date: Wed Jul 18 03:43:40 2012 +0000 Set development mode to off by default. commit 60e7a77836a8e8002916b3204e003869f4998722 Author: gdbadmin Date: Wed Jul 18 03:35:25 2012 +0000 Record GDB 7.5 branch creation. Bump version number to 7.4.90.20120718-cvs. ----------------------------------------------------------------------- Summary of changes: bfd/version.h | 2 +- gdb/ChangeLog | 143 + gdb/NEWS | 23 +- gdb/arm-linux-nat.c | 12 +- gdb/bfd-target.c | 3 +- gdb/bfd-target.h | 6 +- gdb/breakpoint.c | 13 +- gdb/buildsym.c | 5 +- gdb/buildsym.h | 3 +- gdb/cli/cli-dump.c | 4 +- gdb/coffread.c | 3 +- gdb/configure | 2 +- gdb/configure.ac | 2 +- gdb/configure.tgt | 2 +- gdb/contrib/cc-with-tweaks.sh | 4 +- gdb/corelow.c | 8 +- gdb/doc/ChangeLog | 8 + gdb/doc/gdb.texinfo | 36 +- gdb/dsrec.c | 2 +- gdb/dwarf2read.c | 254 +- gdb/elfread.c | 6 +- gdb/exec.c | 16 +- gdb/f-valprint.c | 13 + gdb/gcore.c | 3 +- gdb/gdb_bfd.c | 205 +- gdb/gdb_bfd.h | 57 +- gdb/gdbserver/ChangeLog | 15 + gdb/gdbserver/linux-arm-low.c | 21 +- gdb/gdbserver/server.c | 2 +- gdb/infcall.c | 41 +- gdb/jit.c | 16 +- gdb/jv-typeprint.c | 3 - gdb/linespec.c | 46 +- gdb/linux-nat.c | 7 +- gdb/m32r-rom.c | 4 +- gdb/machoread.c | 28 +- gdb/main.c | 2 - gdb/objfiles.c | 3 +- gdb/ppc-linux-tdep.c | 2 + gdb/printcmd.c | 8 +- gdb/procfs.c | 2 +- gdb/remote-m32r-sdi.c | 2 +- gdb/remote-mips.c | 4 +- gdb/remote.c | 14 +- gdb/rs6000-nat.c | 32 +- gdb/solib-darwin.c | 5 +- gdb/solib-pa64.c | 2 +- gdb/solib-spu.c | 9 +- gdb/solib-svr4.c | 12 +- gdb/solib.c | 7 +- gdb/spu-linux-nat.c | 18 +- gdb/stack.c | 52 +- gdb/symfile-mem.c | 11 +- gdb/symfile.c | 41 +- gdb/symfile.h | 5 +- gdb/symtab.c | 44 +- gdb/testsuite/ChangeLog | 74 + gdb/testsuite/gdb.base/annota1.exp | 2 +- gdb/testsuite/gdb.base/async-shell.exp | 2 +- gdb/testsuite/gdb.base/catch-load.exp | 4 +- gdb/testsuite/gdb.base/ctxobj.exp | 1 + gdb/testsuite/gdb.base/print-file-var.exp | 1 + gdb/testsuite/gdb.base/store.exp | 19 +- .../gdb.base/valgrind-infcall.c} | 41 +- gdb/testsuite/gdb.base/valgrind-infcall.exp | 115 + gdb/testsuite/gdb.base/watchpoint.exp | 44 +- gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp | 2 +- gdb/testsuite/gdb.dwarf2/fission-reread.S | 6 +- gdb/testsuite/gdb.dwarf2/pr13961.S | 2 +- gdb/testsuite/gdb.linespec/ls-errs.exp | 2 + gdb/testsuite/gdb.python/py-prettyprint.c | 18 + gdb/testsuite/gdb.python/py-prettyprint.exp | 13 +- gdb/testsuite/gdb.python/py-prettyprint.py | 10 + gdb/testsuite/gdb.server/solib-list.exp | 6 + gdb/testsuite/lib/mi-support.exp | 2 +- gdb/version.in | 2 +- gdb/windows-nat.c | 2 +- opcodes/ChangeLog | 15 + opcodes/i386-dis.c | 12 +- opcodes/i386-gen.c | 9 + opcodes/i386-init.h | 243 +- opcodes/i386-opc.h | 9 + opcodes/i386-opc.tbl | 7 +- opcodes/i386-tbl.h | 8070 +++++++++++++------- sim/bfin/ChangeLog | 13 + sim/bfin/machs.c | 28 +- 86 files changed, 6921 insertions(+), 3146 deletions(-) copy gdb/{bfd-target.h => testsuite/gdb.base/valgrind-infcall.c} (59%) create mode 100644 gdb/testsuite/gdb.base/valgrind-infcall.exp First 500 lines of diff: diff --git a/bfd/version.h b/bfd/version.h index 44ba28d..ecf6d14 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20120714 +#define BFD_VERSION_DATE 20120718 #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 5e96444..901b908 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,146 @@ +2012-08-01 Ulrich Weigand + + * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not + attempt to 4-byte-align HW breakpoint addresses for Thumb. + +2012-07-31 Andreas Schwab + + * ppc-linux-tdep.c (ppc_linux_init_abi): Register + linux_get_siginfo_type. + +2012-07-31 Jan Kratochvil + + * infcall.c (call_function_by_hand): Move BP_ADDR comment to + AT_ENTRY_POINT. + (call_function_by_hand) : Call write_memory with + gdbarch_breakpoint_from_pc, if possible. + (call_function_by_hand) : The BP_ADDR comment is moved + here. + +2012-07-30 Keith Seitz + + * linespec.c (linespec_lexer_lex_number): A number followed + by quotes is a valid number, too. + +2012-07-26 Keith Seitz + + * linespec.c (linespec_lexer_lex_number): The input + is also a valid number if the next character is a comma + or colon. + +2012-07-25 Ralf Corsépius + + * configure.tgt: Add v850*-*-rtems*. + +2012-07-25 Hui Zhu + + * linespec.c (linespec_lexer_lex_number): Update comments, + change the return and add check to make sure the input is + the decimal numbers. + (linespec_lexer_lex_one): If linespec_lexer_lex_number return + false, call linespec_lexer_lex_string. + +2012-07-24 Marc Khouzam + + * breakpoint.c (create_breakpoint): Store condition for pending + breakpoints. + +2012-07-23 Keith Seitz + + * linespec.c (convert_linespec_to_sal): Don't add + any symbols to the result vector if symbol_to_sal + returns zero. + +2012-07-20 Doug Evans + + * 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-18 Joel Brobecker + + * version.in: Set version to 7.4.91.20120718-cvs. + +2012-07-18 Joel Brobecker + + GDB 7.4.91 released. + +2012-07-18 Joel Brobecker + + * NEWS: Replace "Changes since GDB 7.4" with "Changes in GDB 7.5". + +2012-07-18 Joel Brobecker + + * version.in: Update GDB version number to 7.4.91. + +2012-07-18 Joel Brobecker + + * configure.ac (development): Set to false. + * configure: Regenerate. + +2012-07-18 Joel Brobecker + + GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC) + * version.in: Bump version to 7.4.90.20120718-cvs. + +2012-07-16 Jan Kratochvil + + PR 11914 + * f-valprint.c (info_common_command): New variable frame_id. + Reinitialize FI form FRAME_ID after each print_variable_and_value. + * printcmd.c (print_variable_and_value): Extend function comment. + Add comment for invalidated FRAME. + * stack.c (backtrace_command_1): New variable frame_id. Reinitialize + FI form FRAME_ID after each print_frame_local_vars. + (struct print_variable_and_value_data): Change frame to frame_id. + (do_print_variable_and_value): New variable frame, initialize it from + p->frame_id. Add comment for invalidated FRAME. + (print_frame_local_vars, print_frame_arg_vars): New function comment. + Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment + for invalidated FRAME. + +2012-07-16 Marc Khouzam + Pedro Alves + + * linux-nat.c (linux_nat_detach): Don't unregister from the event + loop. + +2012-07-16 Tom Tromey + + * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare. + +2012-07-15 Doug Evans + + * dwarf2read.c (stmt_list_hash): New struct. + (type_unit_group): Embed "per_cu" member, remove pointer. + New union member "t", move member "tus" into it, all uses updated. + New member "hash", replaces member "line_offset, all uses updated. + (quick_file_names): Replace member "offset" with "hash", all uses + updated. + (hash_stmt_list_entry, eq_stmt_list_entry): New functions. + (hash_file_name_entry, eq_file_name_entry): Call them. + (hash_type_unit_group, eq_type_unit_group): Ditto. + (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one. + (dw2_get_file_names_reader): Fix file name table calculation for TUs. + (dw2_get_file_names): Update. + (create_type_unit_group): Replace "per_cu" arg with "cu". + All callers updated. Fix "quick" (.gdb_index) handling. + (get_type_unit_group): Replace "per_cu" arg with "cu". + All callers updated. + (build_type_unit_groups): Don't reset tu_stats. + + * symtab.c (filename_seen_cache): Delete members "tab_alloc_size", + "tab_cur_size". Change member "tab" to be a htab_t. + (create_filename_seen_cache): Update. + (clear_filename_seen_cache, delete_filename_seen_cache): Update. + (filename_seen): Update. + 2012-07-13 Doug Evans * symtab.c (filename_seen): Update comment. diff --git a/gdb/NEWS b/gdb/NEWS index 1db3950..4da886c 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -1,7 +1,14 @@ What has changed in GDB? (Organized release by release) -*** Changes since GDB 7.4 +*** Changes since GDB 7.5 + +* New commands (for set/show, see "New options" below) + +maint info bfds + List the BFDs known to GDB. + +*** Changes in GDB 7.5 * GDB now supports x32 ABI. Visit for more x32 ABI info. @@ -112,11 +119,11 @@ * The .gdb_index section has been updated to include symbols for inlined functions. GDB will ignore older .gdb_index sections by default, which could cause symbol files to be loaded more slowly - until their .gdb_index sections can be recreated. The new option - --use-deprecated-index-sections will cause GDB to use any older - .gdb_index sections it finds. This will restore performance, but - the ability to set breakpoints on inlined functions will be lost - in symbol files with older .gdb_index sections. + until their .gdb_index sections can be recreated. The new command + "set use-deprecated-index-sections on" will cause GDB to use any older + .gdb_index sections it finds. This will restore performance, but the + ability to set breakpoints on inlined functions will be lost in symbol + files with older .gdb_index sections. The .gdb_index section has also been updated to record more information about each symbol. This speeds up the "info variables", "info functions" @@ -137,6 +144,10 @@ * New commands + ** "set use-deprecated-index-sections on|off" + "show use-deprecated-index-sections on|off" + Controls the use of deprecated .gdb_index sections. + ** "catch load" and "catch unload" can be used to stop when a shared library is loaded or unloaded, respectively. diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index 2485a84..bf81c03 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -896,11 +896,17 @@ arm_linux_hw_breakpoint_initialize (struct gdbarch *gdbarch, /* We have to create a mask for the control register which says which bits of the word pointed to by address to break on. */ if (arm_pc_is_thumb (gdbarch, address)) - mask = 0x3 << (address & 2); + { + mask = 0x3; + address &= ~1; + } else - mask = 0xf; + { + mask = 0xf; + address &= ~3; + } - p->address = (unsigned int) (address & ~3); + p->address = (unsigned int) address; p->control = arm_hwbp_control_initialize (mask, arm_hwbp_break, 1); } diff --git a/gdb/bfd-target.c b/gdb/bfd-target.c index 21f53bb..455d3e6 100644 --- a/gdb/bfd-target.c +++ b/gdb/bfd-target.c @@ -84,7 +84,8 @@ target_bfd_reopen (struct bfd *abfd) struct target_bfd_data *data; data = XZALLOC (struct target_bfd_data); - data->bfd = gdb_bfd_ref (abfd); + data->bfd = abfd; + gdb_bfd_ref (abfd); build_section_table (abfd, &data->table.sections, &data->table.sections_end); t = XZALLOC (struct target_ops); diff --git a/gdb/bfd-target.h b/gdb/bfd-target.h index 71001c5..7f4e628 100644 --- a/gdb/bfd-target.h +++ b/gdb/bfd-target.h @@ -23,9 +23,9 @@ struct bfd; struct target_ops; -/* Given an existing BFD, re-open it as a "struct target_ops". On - close, it will also close the corresponding BFD (which is like - freopen and fdopen). */ +/* Given an existing BFD, re-open it as a "struct target_ops". This + acquires a new reference to the BFD. This reference will be + released when the target is closed. */ struct target_ops *target_bfd_reopen (struct bfd *bfd); #endif diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 43ff16a..224ba49 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -9548,7 +9548,18 @@ create_breakpoint (struct gdbarch *gdbarch, init_raw_breakpoint_without_location (b, gdbarch, type_wanted, ops); b->addr_string = copy_arg; - b->cond_string = NULL; + if (parse_condition_and_thread) + b->cond_string = NULL; + else + { + /* Create a private copy of condition string. */ + if (cond_string) + { + cond_string = xstrdup (cond_string); + make_cleanup (xfree, cond_string); + } + b->cond_string = cond_string; + } b->extra_string = NULL; b->ignore_count = ignore_count; b->disposition = tempflag ? disp_del : disp_donttouch; diff --git a/gdb/buildsym.c b/gdb/buildsym.c index e2f3192..e4882fb 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -966,7 +966,10 @@ reset_symtab_globals (void) file's text. If EXPANDABLE is non-zero the STATIC_BLOCK dictionary is made - expandable. */ + expandable. + + If REQUIRED is non-zero, then a symtab is created even if it does + not contain any symbols. */ struct block * end_symtab_get_static_block (CORE_ADDR end_addr, struct objfile *objfile, diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 2c1d179..33b34c8 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -260,7 +260,8 @@ extern char *pop_subfile (void); extern struct block *end_symtab_get_static_block (CORE_ADDR end_addr, struct objfile *objfile, - int expandable, int required); + int expandable, + int required); extern struct symtab *end_symtab_from_static_block (struct block *static_block, struct objfile *objfile, diff --git a/gdb/cli/cli-dump.c b/gdb/cli/cli-dump.c index 1244767..7341f00 100644 --- a/gdb/cli/cli-dump.c +++ b/gdb/cli/cli-dump.c @@ -112,7 +112,7 @@ bfd_openr_with_cleanup (const char *filename, const char *target) { bfd *ibfd; - ibfd = gdb_bfd_ref (bfd_openr (filename, target)); + ibfd = gdb_bfd_openr (filename, target); if (ibfd == NULL) error (_("Failed to open %s: %s."), filename, bfd_errmsg (bfd_get_error ())); @@ -132,7 +132,7 @@ bfd_openw_with_cleanup (const char *filename, const char *target, if (*mode == 'w') /* Write: create new file */ { - obfd = gdb_bfd_ref (bfd_openw (filename, target)); + obfd = gdb_bfd_openw (filename, target); if (obfd == NULL) error (_("Failed to open %s: %s."), filename, bfd_errmsg (bfd_get_error ())); diff --git a/gdb/coffread.c b/gdb/coffread.c index b0a8b82..0c7e6d9 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -653,13 +653,14 @@ coff_symfile_read (struct objfile *objfile, int symfile_flags) char *debugfile; debugfile = find_separate_debug_file_by_debuglink (objfile); + make_cleanup (xfree, debugfile); if (debugfile) { bfd *abfd = symfile_bfd_open (debugfile); + make_cleanup_bfd_unref (abfd); symbol_file_add_separate (abfd, symfile_flags, objfile); - xfree (debugfile); } } diff --git a/gdb/configure b/gdb/configure index 819967d..b3d3e2d 100755 --- a/gdb/configure +++ b/gdb/configure @@ -2686,7 +2686,7 @@ fi # Provide more thorough testing by -lmcheck. # Set it to 'true' for development snapshots, 'false' for releases or # pre-releases. -development=true +development=false ac_ext=c ac_cpp='$CPP $CPPFLAGS' diff --git a/gdb/configure.ac b/gdb/configure.ac index f3d75b1..15c4f16 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -26,7 +26,7 @@ AM_MAINTAINER_MODE # Provide more thorough testing by -lmcheck. # Set it to 'true' for development snapshots, 'false' for releases or # pre-releases. -development=true +development=false AC_PROG_CC AC_USE_SYSTEM_EXTENSIONS diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 7e2f9db..c25bdd5 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -564,7 +564,7 @@ xstormy16-*-*) # No simulator libraries are needed -- target uses SID. ;; -v850*-*-elf) +v850*-*-elf | v850*-*-rtems*) # Target: NEC V850 processor gdb_target_obs="v850-tdep.o" gdb_sim=../sim/v850/libsim.a diff --git a/gdb/contrib/cc-with-tweaks.sh b/gdb/contrib/cc-with-tweaks.sh index 9270db4..7d7932c 100755 --- a/gdb/contrib/cc-with-tweaks.sh +++ b/gdb/contrib/cc-with-tweaks.sh @@ -26,8 +26,8 @@ # # bash$ cd $objdir/gdb/testsuite # bash$ runtest \ -# CC_FOR_TARGET="/bin/sh $srcdir/cc-with-tweaks.sh ARGS gcc" \ -# CXX_FOR_TARGET="/bin/sh $srcdir/cc-with-tweaks.sh ARGS g++" +# CC_FOR_TARGET="/bin/sh $srcdir/gdb/contrib/cc-with-tweaks.sh ARGS gcc" \ +# CXX_FOR_TARGET="/bin/sh $srcdir/gdb/contrib/cc-with-tweaks.sh ARGS g++" # # For documentation on index files: info -f gdb.info -n "Index Files" # For information about 'dwz', see the announcement: diff --git a/gdb/corelow.c b/gdb/corelow.c index 380c0dc..340b149 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -318,14 +318,12 @@ core_open (char *filename, int from_tty) if (scratch_chan < 0) perror_with_name (filename); - temp_bfd = gdb_bfd_ref (bfd_fopen (filename, gnutarget, - write_files ? FOPEN_RUB : FOPEN_RB, - scratch_chan)); + temp_bfd = gdb_bfd_fopen (filename, gnutarget, + write_files ? FOPEN_RUB : FOPEN_RB, + scratch_chan); if (temp_bfd == NULL) perror_with_name (filename); - gdb_bfd_stash_filename (temp_bfd); - if (!bfd_check_format (temp_bfd, bfd_core) && !gdb_check_format (temp_bfd)) { diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 97b9a17..cbe96d2 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,11 @@ +2012-07-20 Doug Evans + + * gdb.texinfo (Mode Options): Delete --use-deprecated-index-sections. + (Index Files): Document how to control the use of deprecated index + sections. + (Index Section Format): Replace --use-deprecated-index-sections with + "set use-deprecated-index-sections on". + 2012-07-12 Eli Zaretskii * gdbint.texinfo: Remove @syncodeindex directives that put all the diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 29a62ad..5945bac 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1257,13 +1257,6 @@ memory usage after it completes each command and returns to the prompt. This option causes @value{GDBN} to print its version number and no-warranty blurb, and exit. -@item -use-deprecated-index-sections -@cindex @code{--use-deprecated-index-sections} -This option causes @value{GDBN} to read and use deprecated -@samp{.gdb_index} sections from symbol files. This can speed up -startup, but may result in some functionality being lost. -@xref{Index Section Format}. - @end table @node Startup @@ -16763,6 +16756,28 @@ $ objcopy --add-section .gdb_index=symfile.gdb-index \ --set-section-flags .gdb_index=readonly symfile symfile @end smallexample +@value{GDBN} will normally ignore older versions of @file{.gdb_index} +sections that have been deprecated. Usually they are deprecated because +they are missing a new feature or have performance issues. +To tell @value{GDBN} to use a deprecated index section anyway +specify @code{set use-deprecated-index-sections on}. +The default is @code{off}. +This can speed up startup, but may result in some functionality being lost. +@xref{Index Section Format}. + +@emph{Warning:} Setting @code{use-deprecated-index-sections} to @code{on} +must be done before gdb reads the file. The following will not work: + +@smallexample +$ gdb -ex "set use-deprecated-index-sections on" +@end smallexample + +Instead you must do, for example, + +@smallexample +$ gdb -iex "set use-deprecated-index-sections on" +@end smallexample + There are currently some limitation on indices. They only work when for DWARF debugging information, not stabs. And, they do not currently work for programs using Ada. hooks/post-receive -- Repository for Project Archer.