From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20447 invoked by alias); 26 Feb 2013 18:04:29 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 20416 invoked by uid 306); 26 Feb 2013 18:04:25 -0000 Date: Tue, 26 Feb 2013 18:04:00 -0000 Message-ID: <20130226180424.20395.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] tromey/threaded-dwarf: reverse-20080717-branchpoint-5157-gf46dc58 X-Git-Refname: refs/heads/tromey/threaded-dwarf X-Git-Reftype: branch X-Git-Oldrev: 0000000000000000000000000000000000000000 X-Git-Newrev: f46dc58dcb881b653021700a45c8f92c7b616892 X-SW-Source: 2013-q1/txt/msg00149.txt.bz2 List-Id: The branch, tromey/threaded-dwarf has been created at f46dc58dcb881b653021700a45c8f92c7b616892 (commit) - Log ----------------------------------------------------------------- commit f46dc58dcb881b653021700a45c8f92c7b616892 Author: Tom Tromey Date: Fri Feb 22 09:31:29 2013 -0700 add README.archer commit e0418e92bde228efd50f5305014969ff17b58ed0 Author: Tom Tromey Date: Wed Jun 9 11:58:24 2010 -0600 work around complaint threading bug commit 636eb11b3238428dcdec3800f9600d6ce4167991 Author: Tom Tromey Date: Mon Jun 7 20:16:38 2010 -0600 Update bfd_cache_delete as well commit c96a2a771a3864b356a6f39b8f11da6e53bcbacd Author: Tom Tromey Date: Mon Jun 7 16:11:10 2010 -0600 BFD minimal thread-awareness. Unbreak the cache, update gdb to follow. commit 574ec047bc80357c701bf8e5cb907e24f9d3961c Author: Tom Tromey Date: Mon Jun 7 12:39:36 2010 -0600 Add configury; support no-threads case commit 66baf61458b08c72cf92ef88af4261805bde740f Author: Tom Tromey Date: Thu Jun 3 15:28:45 2010 -0600 Print a message to the user if a task is taking too long commit 6792e372d5cc3f64472ff349621fb29bf8fa7ff8 Author: Tom Tromey Date: Mon May 31 19:09:52 2010 -0600 Read main objfile in background again; reverts earlier commit. Arrange for set_initial_language to work lazily. commit e85053bc05713cc3c4f3fdc36a654537ebdcff54 Author: Tom Tromey Date: Thu Mar 11 09:55:00 2010 -0700 const-correct a couple APIs commit 2f29a1c6a7b27fe5b02f58ad68056e438d6eb27c Merge: c63a101 302ba51 Author: Tom Tromey Date: Wed Mar 10 19:28:10 2010 -0700 Merge from master commit c63a10143b7971cd56c62a32ea0394b5267518b7 Author: Tom Tromey Date: Thu Feb 11 13:20:45 2010 -0700 Rename threadpool.[ch] to taskpool.[ch]. commit 5029c6687e2f09000e120040f088afc690ad23e0 Author: Tom Tromey Date: Fri Feb 5 10:21:30 2010 -0700 Read the main objfile in the foreground commit 2c9af9897b81f88aea6e9a9cc66a3f978b37c937 Author: Tom Tromey Date: Fri Feb 5 10:10:29 2010 -0700 Put objfile into psymtab_state commit c4c94e394dcb7e1e43b5191a9c8bb21d1852fe63 Author: Tom Tromey Date: Fri Dec 18 13:41:47 2009 -0700 Bug fixes for background psymtab reading. Removed bogus locking code -- it was only used by one thread. Removed some unused code. Re-enabled some .debug_gnu_index code. We never look for the index, but this lets us read full symtabs without going through psymtabs again. Handle objfile destruction properly; added cancel_task function. commit 2669e890a5e7d92613918da7440146fac1a40c72 Author: Tom Tromey Date: Fri Dec 18 10:21:53 2009 -0700 Clean up psymtab allocation and destruction. This introduces a psymtab_state, which is used to manage all aspects of psymtabs. This lets the dwarf reader manage psymtabs in the background without worrying about conflicts with the main thread. commit 82a39818df8e8fd2d7b46711168b9fa00e7ac41d Author: Tom Tromey Date: Thu Dec 17 00:21:32 2009 -0700 fix bug in qsort comparison function commit ce7c42ef45327b793ce3d0931f8395aa9c28c245 Author: Tom Tromey Date: Wed Dec 16 17:12:49 2009 -0700 Read partial symbol tables in the background. This temporarily disables all the .debug_gnu_index reading. The code is still there but cannot work; see dwarf2_initialize_objfile, the commented-out code in dw2_setup, and the change in elfread.c. commit 4ab02ec44e8877820e4b8fed90b9a5ed66f4041d Author: Tom Tromey Date: Wed Dec 16 16:11:14 2009 -0700 Minor psymtab cleanup and generalization. This is preparation for safely creating psymtabs in a separate thread. commit b4435fb10020f863eb7ba66234fd8dd6e992305f Author: Tom Tromey Date: Wed Dec 16 13:20:53 2009 -0700 Fix task-sorting bug. commit b50b4c886d563663424ec81328086d7b1db8db67 Author: Tom Tromey Date: Thu Dec 10 11:28:28 2009 -0700 Fix some races. cp-name-parser.y is now a "pure" parser. Made some variables in BFD thread-local. Added locking for the BFD cache; this is incomplete but works for our purposes. commit b9f657f29695bd9d828da4c2e7f0252897135eaf Author: Tom Tromey Date: Mon Dec 7 12:24:38 2009 -0700 Use _SC_NPROCESSORS_ONLN. commit 366cdc7ce286cbdda54fa8c76bcaaccfca328ddb Author: Tom Tromey Date: Mon Dec 7 12:08:12 2009 -0700 Read DWARF indices in a background thread. commit 60c233c72cb944f1a6088477506565c3dfcc74fa Author: Tom Tromey Date: Thu Dec 3 12:31:19 2009 -0700 Lazily read all section data. commit 9a08e6de2fc7fcd2316137f5b4032124e88cfb74 Author: Tom Tromey Date: Thu Dec 3 11:00:10 2009 -0700 Canonicalize names when reading from the index. This needs a new version of the gcc patch, because we now need the CU's language in .debug_gnu_index. commit 492e052b7c313588f0f133c1d7cae79e37c398d2 Author: Tom Tromey Date: Wed Dec 2 10:58:48 2009 -0700 fix section name in comment commit db8850dcf1feda1fb52e46a95c81581dcd987da5 Author: Tom Tromey Date: Tue Dec 1 14:44:50 2009 -0700 Don't allocate a new index_entry if we're just going to read the CU anyway. commit 622f3d072e138c97952a7847c45e67c717e5ba68 Author: Tom Tromey Date: Mon Nov 30 14:51:05 2009 -0700 Fix a few important bugs, and try to account for gaps in aranges. commit acc95e6fd8b834adb8c83b2029b1166feed34f2e Author: Tom Tromey Date: Mon Nov 30 09:24:57 2009 -0700 Mostly revert previous patch. It was wrong, because when -readnow, we don't ever need to make psymtabs. commit 101ec16e9bd2503d9b7dba786a577020ac9e8df3 Author: Tom Tromey Date: Wed Nov 25 19:15:59 2009 -0700 Correctly handle the cases where we must use psymtabs. This occurs when the objfile has mixed debuginfo types. commit 0a1038098d6ae97da1873b80ba5b10899acccb72 Author: Tom Tromey Date: Wed Nov 25 10:35:31 2009 -0700 Fix bug in qsort call. Change contents of index hash. commit 5473fd58fddac98dbed861989d57218bdead66ac Author: Tom Tromey Date: Tue Nov 24 15:18:52 2009 -0700 Fix have_partial_symbols and friends commit a4d657497cc5c3d9beadcf297247844d6d4c6e2e Author: Tom Tromey Date: Tue Nov 24 12:54:34 2009 -0700 Reset using_gnu_index when deciding not to use the indices. commit d425a2ac61e06bf5e327c9fcaf4b1d2f755578b9 Author: Tom Tromey Date: Tue Nov 24 10:33:17 2009 -0700 If the users uses -readnow, don't read the indices at all. commit 53fe6455c692982567186798cadb0b80763bb4a1 Author: Tom Tromey Date: Mon Nov 23 11:31:05 2009 -0700 Handle currently_reading_symtab commit 4c3d8306e0852d49931bb34579baa4206fc258f3 Author: Tom Tromey Date: Mon Nov 23 08:06:20 2009 -0700 Don't call create_all_comp_units when reading .debug_gnu_index. Replaced all_comp_units with a VEC. commit 698285897a10efc6b4fd076cd2bac9a60f8f9b3a Author: Tom Tromey Date: Thu Nov 19 13:37:14 2009 -0700 Read .debug_gnu_index; avoid psymtabs when it exists. commit a2a41c26753dec40ef3e0678758de1c2dca7df10 Author: Tom Tromey Date: Tue Nov 17 10:14:09 2009 -0700 Remove from_tty argument from expand_all_symtabs method commit ec5adc3e38afb30240cebaab766591312e8c68e3 Author: Tom Tromey Date: Mon Nov 16 14:13:11 2009 -0700 make a couple quick functions const-correct commit bae817a545cfec8ca73ec727dc4a4384f32537e6 Author: Tom Tromey Date: Mon Nov 16 13:19:22 2009 -0700 Consolidate two quick functions. Normalize quick function names. Move require_partial_symbols out of loops over psymtabs. commit e5f2d15c145891551c3d3f260a08f36c140876d4 Author: Tom Tromey Date: Wed Nov 11 15:34:51 2009 -0700 Remove one quick symtab function; document most others. commit fb411a67c70ba3f423805df456f402db8685707c Author: Tom Tromey Date: Wed Nov 11 14:23:24 2009 -0700 Rearrange psymtab.c; make require_partial_symbols private. commit a6416fcb1bcf520c1b260c37dc5e7a62ca591cfc Author: Tom Tromey Date: Mon Nov 2 14:38:17 2009 -0700 Restore old gdb behavior of only pre-reading symbols for all frames when info_verbose is true. commit f2a69a5da2fe5b3539f8ae2817d4568419089182 Author: Tom Tromey Date: Mon Nov 2 14:07:53 2009 -0700 Demand-load the FDE data commit 7ebdef1d14cfb5e83e00c38ca0c304dca1c92bfb Author: Tom Tromey Date: Mon Nov 2 10:26:05 2009 -0700 Move final psymtab APIs to function vector. commit 829f6eb500790f571e88ef35cfb6292b93f110fc Author: Tom Tromey Date: Fri Oct 30 17:10:12 2009 -0600 consolidate a few similar functions commit 68608139bafe9c4821fb4367a901f6bb91b5bcb6 Author: Tom Tromey Date: Fri Oct 30 16:14:11 2009 -0600 made more psymtab functions private commit 8ae5cdff3901dad42b92227bc670211b7abc05db Author: Tom Tromey Date: Fri Oct 30 13:28:41 2009 -0600 Actually check warn_if_readin. commit e46f07aa9475cd32c98d55e505532999dc7c26eb Author: Tom Tromey Date: Fri Oct 30 11:59:48 2009 -0600 Finish changing symfile not to depend directly on psymtabs. commit 4f82c7a7adf36dc6f461e5e81886fc0332b308ec Author: Tom Tromey Date: Fri Oct 30 11:07:13 2009 -0600 Change blockframe.c not to need psympriv.h. This changes the semantics a bit, it will now read symbols in more cases. If this is a problem we will need a new API. commit 6d38893f0af5413696e962ff17993aadab630de1 Author: Tom Tromey Date: Thu Oct 29 15:32:58 2009 -0600 move ada psymtab uses into psymtab.c commit 1434c2717cce1215847509dde8f0096c6b711648 Author: Tom Tromey Date: Thu Oct 29 15:08:19 2009 -0600 initial implementation of psymtab function vector commit 3c1bc2fbcd7d27a1607dfbe185ec939501119027 Author: Tom Tromey Date: Tue Oct 27 13:55:54 2009 -0600 Move most partial-symbol-related functions into a new file. commit 2e0c6f02d3efcd0d758e19fb2c5d4b6b5686ca75 Merge: 46a2581 29b96de Author: Tom Tromey Date: Thu Sep 10 11:22:45 2009 -0600 Merged from master commit 46a2581eab1077d009a81c38084bee930f7aed4c Author: Tom Tromey Date: Sat Aug 15 10:28:42 2009 -0600 * dwarf2read.c (dwarf2_create_quick_addrmap): Ignore zero addr_size and entries with zero length. Properly compute end of range. commit 77fa7778a37b0d28a7e4e5235f074a10ecf1815d Author: Jan Kratochvil Date: Sat Aug 15 15:05:54 2009 +0200 Test for "handle incorrect aranges". readelf: Contents of the .debug_aranges section: Length: 8 Version: 2 Offset into .debug_info: 0x0 Pointer Size: 0 Segment Size: 0 Address Length Floating point exception * gdb.dwarf2/dw2-aranges.exp, gdb.dwarf2/dw2-aranges.S: New files. commit d0fe3272b8b3b64a9a72912d334a9adca8c66a99 Author: Tom Tromey Date: Thu Aug 13 13:52:26 2009 -0600 * dwarf2read.c (dwarf2_create_quick_addrmap): Sanity-check aranges section. commit d73baf081a4ad1760a1e08f70705b9e6dce96420 Merge: 803f5bc f80adba Author: Jan Kratochvil Date: Mon Aug 10 00:03:32 2009 +0200 Merge branch 'master' of git://sourceware.org/git/gdb into archer-tromey-delayed-symfile Conflicts: gdb/dwarf2-frame.c commit 803f5bce41c1c48ac08f7ee231d7a6bbbde4d36c Merge: 99716c9 2e0cf31 Author: Jan Kratochvil Date: Thu Aug 6 23:09:01 2009 +0200 Merge commit 'gdb/master' into archer-tromey-delayed-symfile Conflicts: gdb/objfiles.h commit 99716c98581317ed365428348e59b03268c36d85 Merge: 766bff3 5a5358d Author: Tom Tromey Date: Mon Jul 20 19:21:06 2009 -0600 Merged from master commit 766bff3b3e7ba4a544c27132abd7d06d9753e72d Merge: 1018589 2e72500 Author: Tom Tromey Date: Thu Mar 12 17:13:38 2009 -0600 Merge branch 'archer-tromey-delayed-symfile' of ssh://sourceware.org/git/archer into archer-tromey-delayed-symfile commit 1018589cd4646267c3dfc2225d1227f25a85f644 Author: Tom Tromey Date: Thu Mar 12 17:12:03 2009 -0600 Fix compilation on MacOS 2009-03-12 Jonas Maebe Tom Tromey * somread.c (som_sym_fns): Add sym_read_psymbols entry. * machoread.c (macho_sym_fns): Add sym_read_psymbols entry. commit 2e725006c9b88b6fae515bee939258ec7926f17e Merge: 7e9393e 852c0e0 Author: Jan Kratochvil Date: Thu Mar 12 21:05:17 2009 +0100 Merge commit 'origin/master' into archer-tromey-delayed-symfile commit 7e9393ea476b4d6d8e27481d2b98c41aa0bb4af4 Author: Tom Tromey Date: Sat Mar 7 10:41:42 2009 -0700 Fix regressions caused by spurious messages 2009-03-06 Tom Tromey * symfile.c (symbol_file_add_with_addrs_or_offsets): Make "no debugging symbols found" message use same condition as other prints. commit 959bb592d557a9536b6586792c00579359b49318 Merge: 0b71a22 9f08a39 Author: Jan Kratochvil Date: Thu Feb 26 21:18:51 2009 +0100 Merge commit 'origin/master' into archer-tromey-delayed-symfile Conflicts: gdb/symfile.c commit 0b71a223391a3f8304943b24956b1a6fcaba2a16 Author: Jan Kratochvil Date: Tue Feb 24 23:59:11 2009 +0100 Fix a regression on forgotten delayed read of a type info. There was a regression on gdb.base/type-opaque.exp. Currently the delayed reading is determined according to `.debug_aranges'. But in this case Archer needs to read-in type information - it has no associated address range. In the case of this testcase it could be fixed by reading in also the indexing section `.debug_pubnames'. Still it does not solve `static' names which are not contained in `.debug_pubnames' - GCC should produce also (currently not present in the DWARF standard) `.debug_privnames' suggested by Tom Tromey on before for this purpose. Assuming (did not measure it so far) this patch will nullify any performance effect of this archer-tromey-delayed-symfile branch. * symtab.c (basic_lookup_transparent_type): Call ALL_PSYMTABS_REQUIRED instead of ALL_PSYMTABS. New comment. commit 6a37c2b9962258ecf9299cc34a650e64a06acaa5 Author: Jan Kratochvil Date: Tue Feb 24 23:51:08 2009 +0100 Fix a regression on delayed retrieving of the unwinding debug info. There was a regression on gdb.base/savedregs.exp. quick_addrmap/require_partial_symbols should be used even for the unwind debug info checking as its load has been also delayed by this branch. Disputable is whether the delayed reading of partial symtabs and unwind info should not be split in half and read separately on their specific demand. Assuming their current load together has been decided for the GDB code simplicity and it has no real performance impact. * dwarf2-frame.c: Include addrmap.h. (dwarf2_frame_find_fde): Check quick_addrmap, call require_partial_symbols. commit 25f4478edb6f332ecfb34672f62537b3cd7d97c2 Author: Jan Kratochvil Date: Tue Feb 24 23:42:07 2009 +0100 Fix a testcase regression due to: (no debugging symbols found) FSF GDB code prints `(no debugging symbols found)' when at none of the loaded objfiles has any debug info. Former archer-tromey-delayed-symfile branch did print `(no debugging symbols found)' on each objfile that has no debug info. At least on (modified)kernel-2.6.27.15-170.2.24.fc10.x86_64 with no kernel-debuginfo installed its vDSO is missing the debug info. Thus gdb.base/annota1.exp regressed on it as it does not expect `(no debugging symbols found)'. This change is disputable as patched Archer is not completely compatible with former FSF GDB behavior. * It could be made compatible but it would be more compatible code. * I find the behavior with this patch more meaningful than the FSF GDB one. * It has no regression for the current FSF GDB testsuite. * symfile.c (symbol_file_add_with_addrs_or_offsets): Permit the optional printing of `(no debugging symbols found)' only for MAINLINE. commit 170e8fd8d1b89fe0ceb001b854701d04c5a18513 Author: Jan Kratochvil Date: Tue Feb 24 20:59:16 2009 +0100 Fix a crash on missing `.debug_aranges' section. * dwarf2read.c (dwarf2_create_quick_addrmap): Do nothing if DWARF_ARANGES_SECTION is NULL. commit f43ed418bc28bfbb530ecdc3d8943ce5da2342d9 Merge: 38d8127 2bc2bec Author: Jan Kratochvil Date: Tue Feb 24 20:58:26 2009 +0100 Merge commit 'origin/master' into archer-tromey-delayed-symfile Conflicts: gdb/ChangeLog This merge crashes as is, fixes will follow. gdb/ChangeLog changes were dropped as present in the GIT logs instead. commit 38d812792e4cd8b5cece5ff22e2c18e91f91fc65 Merge: 289465b 7f38f00 Author: Tom Tromey Date: Wed Jan 28 15:55:39 2009 -0700 merge from master commit 289465b302e07e4cfa44857320ddcffb670197b6 Author: Tom Tromey Date: Tue Sep 16 19:30:22 2008 -0600 * symfile.c (has_any_debug_symbols): New function. (symbol_file_add_with_addrs_or_offsets): Use it. Re-enable messages. (reread_symbols): Likewise. (find_separate_debug_file): Uncomment warning. commit 67c0ed1ac379ba55fbcffdf1f1a5a9fb341e02b5 Author: Tom Tromey Date: Tue Sep 16 10:40:04 2008 -0600 * symfile.c (find_separate_debug_file): Comment out warning. commit a8927402e04a7e109d72d527d5b048b1615c7950 Author: Tom Tromey Date: Fri Sep 12 18:58:10 2008 -0600 * dwarf2read.c (finalize_obstack): New function. (dwarf2_create_quick_addrmap): Don't allocate aranges buffer and mutable address map on objfile obstack. (zlib_decompress_section): Add obstack argument. Allocate with xmalloc if requested. (dwarf2_read_section_1): New function. (dwarf2_read_section): Use it. commit a92f91c7caa77f3bcea32fed017dff889f90e017 Author: Tom Tromey Date: Tue Sep 9 15:00:52 2008 -0600 commented OBJF_MAIN commit 437aa273fba8370bf1098be90d9d4af3da78a384 Author: Tom Tromey Date: Tue Sep 9 14:23:38 2008 -0600 * symtab.c (find_pc_sect_psymtab): Use the quick addrmap. (find_main_psymtab): Search OBJF_MAIN objfiles first. * symfile.h: (dwarf2_create_quick_addrmap): Declare. * symfile.c (symbol_file_add_with_addrs_or_offsets): Set OBJF_MAIN flag. * objfiles.h (struct objfile) : New field. (OBJF_MAIN): New define. * elfread.c (elf_symfile_read): Call dwarf2_create_quick_addrmap. * dwarf2read.c (read_comp_unit_head): Forward declare. (dwarf2_has_info): Make idempotent. (dwarf2_locate_sections): Only update sizes when asked. (dwarf2_create_quick_addrmap): New function. commit e1f9b30ed4369cf8782d401529910ad21534b632 Author: Tom Tromey Date: Tue Sep 9 11:45:43 2008 -0600 * symfile.c (symbol_file_add_with_addrs_or_offsets): Reorder condition. * objfiles.c (have_partial_symbols): Add second loop. commit 2a533dc9033adb4d48a35e5d0eeb4782b9d31ce0 Author: Tom Tromey Date: Tue Sep 9 08:46:02 2008 -0600 wrote ChangeLog entry. tidied up and commented commit c8b0bea8dd4962047a857f196ccd6c91dacebc78 Author: Tom Tromey Date: Tue Sep 9 08:29:54 2008 -0600 fixed re-start bug commit 1e50102d7af1d3a717830f421ed849e1884cbf8e Author: Tom Tromey Date: Mon Sep 8 19:12:26 2008 -0600 initial implementation of delayed psymtab reading ----------------------------------------------------------------------- hooks/post-receive -- Repository for Project Archer.