]>
git.ipfire.org Git - thirdparty/elfutils.git/log
Mark Wielaard [Mon, 14 Feb 2011 13:36:28 +0000 (14:36 +0100)]
Calculate local_hash only on finalizing entry, store in die_info.
Mark Wielaard [Tue, 1 Feb 2011 10:10:09 +0000 (11:10 +0100)]
Remove unused try-catch-throw blocks.
There isn't any "recatcher" of these throws, so the only thing the
cleanup does is hide the original exception in case of error, making
debugging the root cause harder.
Mark Wielaard [Fri, 21 Jan 2011 21:44:15 +0000 (22:44 +0100)]
Add local hash for children_types.
Mark Wielaard [Fri, 21 Jan 2011 09:37:08 +0000 (10:37 +0100)]
Add local_hash to attributes_type and use it for die hash.
Skips values of reference attributes.
Mark Wielaard [Thu, 20 Jan 2011 15:23:48 +0000 (16:23 +0100)]
Turn copier::entry into a value_reference so what_space works on it.
copier::entry is used as a value_reference when an attr_value has a
dangling reference to a DIE not yet built in the output. So make sure
its type matches that usage.
Mark Wielaard [Thu, 20 Jan 2011 14:28:59 +0000 (15:28 +0100)]
Introduce local_hash for dwarf_output debug_info_die.
Very simplistic local_hash implementation. Just takes tag name,
attributes and children sizes into account. But is good enough to
make all the dwarf_edit_output tests pass. Some dwarfcmp-test-self
tests fail though. it also generates a significant number of
collissions for the dwarf_output_collector attr_sets.
Mark Wielaard [Thu, 13 Jan 2011 12:09:31 +0000 (13:09 +0100)]
Remove unused output-shape from dwarf_output collector.
Roland McGrath [Tue, 31 Aug 2010 08:28:03 +0000 (01:28 -0700)]
debugging hacks, not to be merged
Roland McGrath [Thu, 13 Jan 2011 00:19:19 +0000 (16:19 -0800)]
Merge commit 'elfutils-0.151' into dwarf
Conflicts:
tests/Makefile.am
Ulrich Drepper [Wed, 12 Jan 2011 23:07:24 +0000 (18:07 -0500)]
Prepare 0.151 release.
Roland McGrath [Wed, 12 Jan 2011 18:49:40 +0000 (10:49 -0800)]
Undo last change for data-only tests, so we test PT_DYNAMIC digging too.
Roland McGrath [Wed, 12 Jan 2011 18:43:32 +0000 (10:43 -0800)]
run-prelink-addr-test.sh: Make symlinks to find .debug files corresponding to noshdrs files.
Josh Stone [Wed, 12 Jan 2011 03:16:59 +0000 (19:16 -0800)]
Add data-only prelink tests
Josh Stone [Wed, 12 Jan 2011 03:16:58 +0000 (19:16 -0800)]
Expand testfile53 for 32/64-bit
Josh Stone [Wed, 12 Jan 2011 03:16:57 +0000 (19:16 -0800)]
Expand testfile52 for 32/64-bit and stripped headers
Roland McGrath [Tue, 11 Jan 2011 18:33:32 +0000 (10:33 -0800)]
NEWS items for 0.151
Roland McGrath [Tue, 11 Jan 2011 18:17:01 +0000 (10:17 -0800)]
libdwfl: Rejigger address synchronization using .gnu.prelink_undo information.
Josh Stone [Tue, 11 Jan 2011 05:28:46 +0000 (21:28 -0800)]
Test cases for libdwfl vs prelink.
elsupergomez [Mon, 10 Jan 2011 18:18:12 +0000 (18:18 +0000)]
l10n: Updates to Spanish (Castilian) (es) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
raven [Sat, 8 Jan 2011 07:50:15 +0000 (07:50 +0000)]
l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
yurchor [Sat, 8 Jan 2011 07:48:03 +0000 (07:48 +0000)]
l10n: Updates to Ukrainian (uk) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
Roland McGrath [Thu, 6 Jan 2011 20:14:43 +0000 (12:14 -0800)]
strip: Remove all excess for --strip-sections.
Roland McGrath [Wed, 5 Jan 2011 03:29:53 +0000 (19:29 -0800)]
libdwfl: Enhance address_sync calculation to handle more prelink permutations.
Roland McGrath [Wed, 5 Jan 2011 03:29:24 +0000 (19:29 -0800)]
strip: Add --strip-sections option.
Jan Kratochvil [Wed, 5 Jan 2011 09:06:21 +0000 (10:06 +0100)]
Fix off64_t overflow when MAXIMUM_SIZE == ~0.
Mark Wielaard [Thu, 9 Dec 2010 12:03:56 +0000 (13:03 +0100)]
Fix up run-dwarf-attributes.sh test after removal dwarf::directory_table.
Commit b0a30d removed directory_table as distinct item from line_info_table.
Petr Machata [Tue, 7 Dec 2010 12:12:19 +0000 (13:12 +0100)]
Turn on the sharing_stack
Petr Machata [Mon, 6 Dec 2010 20:37:02 +0000 (21:37 +0100)]
Plug a leak in sharing_stack
Mark Wielaard [Wed, 1 Dec 2010 09:42:35 +0000 (10:42 +0100)]
Nitpick, don't use = initializers for class objects in dwarf_edit.
Roland McGrath [Wed, 1 Dec 2010 01:39:55 +0000 (17:39 -0800)]
dwfl_module_relocations: Remove over-eager assert.
Roland McGrath [Wed, 1 Dec 2010 01:35:02 +0000 (17:35 -0800)]
Fix copyright years syntax.
Roland McGrath [Wed, 1 Dec 2010 01:16:09 +0000 (17:16 -0800)]
Remove directory_table/include_directories as distinct item from line_info_table.
Mark Wielaard [Wed, 24 Nov 2010 15:32:40 +0000 (16:32 +0100)]
Define struct die_info inside class dwarf_output.
g++ 4.5 corrected arg-dep lookup to include template args in the list of
associated classes. This prevented some usage of the die_info_pair
typedef std::pair<const debug_info_entry, die_info>. Because struct die_info
was declared outside the dwarf_output class. Declaring it inside the class
dwarf_output itself makes it visible for the lookup again.
Mark Wielaard [Wed, 24 Nov 2010 13:03:20 +0000 (14:03 +0100)]
Rename check struct to check_die_attr because it shadowed a member of 'this'.
Mark Wielaard [Wed, 24 Nov 2010 10:55:35 +0000 (11:55 +0100)]
Use local, not temporary, when using swap ().
g++ 4.5 now detects that swap wants a reference as argument. You cannot
use a temporary, which is an lvalue and so cannot be used as reference.
The lifetime of the temporary cannot be guaranteed, and so because it isn't
const, g++ refuses to use it as reference.
Mark Wielaard [Thu, 25 Nov 2010 13:02:44 +0000 (14:02 +0100)]
Don't call c++ constructors directly by name.
g++ 4.5 doesn't like to call constructors by name directly.
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#147
Mark Wielaard [Thu, 25 Nov 2010 12:34:46 +0000 (13:34 +0100)]
Rename class [raw_]compile_units to [raw_]compile_units_type.
We have both functions and classes named compile_units. This can be
confusing to (newer) g++ compilers. Keep the function names the same,
but rename the the classes to compile_units_type.
Roland McGrath [Tue, 23 Nov 2010 22:11:29 +0000 (14:11 -0800)]
Merge commit 'elfutils-0.150' into dwarf
Ulrich Drepper [Tue, 23 Nov 2010 03:15:35 +0000 (22:15 -0500)]
elfutils 0.150 release preparation
Roland McGrath [Tue, 23 Nov 2010 01:35:56 +0000 (17:35 -0800)]
0.150 NEWS items
Roland McGrath [Mon, 15 Nov 2010 23:38:02 +0000 (15:38 -0800)]
Version bump for 0.150 development.
Roland McGrath [Sat, 13 Nov 2010 00:46:47 +0000 (16:46 -0800)]
libdwfl: Revamp bias bookkeeping, account correctly for prelink REL->RELA segment inflation.
Roland McGrath [Thu, 11 Nov 2010 17:52:58 +0000 (09:52 -0800)]
findtextrel: Optimize last change.
Roland McGrath [Thu, 11 Nov 2010 03:47:31 +0000 (19:47 -0800)]
findtextrel: Don't assume order of sections.
Roland McGrath [Mon, 8 Nov 2010 18:43:59 +0000 (10:43 -0800)]
backends: i386 integer return value typo fix, reported by Thorsten Glaser <tg@mirbsd.de>.
Petr Machata [Mon, 1 Nov 2010 11:36:07 +0000 (12:36 +0100)]
Merge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf
Mark Wielaard [Tue, 26 Oct 2010 22:38:55 +0000 (00:38 +0200)]
Add smaller example of dwarf_edit_output circular struct issue.
raven [Mon, 25 Oct 2010 12:09:10 +0000 (12:09 +0000)]
l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
raven [Sat, 23 Oct 2010 15:45:32 +0000 (15:45 +0000)]
l10n: Updates to Polish (pl) translation
Transmitted-via: Transifex (translate.fedoraproject.org)
Mark Wielaard [Fri, 22 Oct 2010 22:12:02 +0000 (00:12 +0200)]
Add checking of CUs dwarf_comparator and dwarf_output to dwarf_edit_output.cc.
Petr Machata [Fri, 22 Oct 2010 14:25:18 +0000 (16:25 +0200)]
dwarflint: Fix how --check handles low-level checks
Petr Machata [Fri, 22 Oct 2010 14:02:21 +0000 (16:02 +0200)]
dwarflint: Move the testing code of wrap.cc to tests/test-wrap.cc
Petr Machata [Fri, 22 Oct 2010 13:55:36 +0000 (15:55 +0200)]
dwarflint: Move test-coverage.cc to tests subdir
Mark Wielaard [Thu, 21 Oct 2010 21:25:11 +0000 (23:25 +0200)]
Add dwarf_output die offset checking to detect sharing in dwarf_edit_output.
Mark Wielaard [Wed, 20 Oct 2010 22:36:27 +0000 (00:36 +0200)]
Add dwarf_comparator checks for DIEs to dwarf_edit_output.cc test.
Mark Wielaard [Tue, 19 Oct 2010 13:52:01 +0000 (15:52 +0200)]
Allow passing through options to dwarf_edit_output test like --offsets.
Mark Wielaard [Mon, 18 Oct 2010 21:35:04 +0000 (23:35 +0200)]
Expand dwarf_edit_output.cc testcases.
Petr Machata [Mon, 18 Oct 2010 21:10:51 +0000 (23:10 +0200)]
dwarflint: Tolerate unknown attribute names
Petr Machata [Mon, 18 Oct 2010 17:59:36 +0000 (19:59 +0200)]
dwarflint: Update TODO
Petr Machata [Mon, 18 Oct 2010 17:57:11 +0000 (19:57 +0200)]
dwarflint: A test case for the early bailout and the GNU extension
Petr Machata [Mon, 18 Oct 2010 17:56:42 +0000 (19:56 +0200)]
dwarflint: Add --nognu option for not using the GNU extension to DWARF
Petr Machata [Mon, 18 Oct 2010 17:56:06 +0000 (19:56 +0200)]
dwarflint: Finish checking .debug_abbrev before bailing out
Petr Machata [Mon, 18 Oct 2010 16:29:05 +0000 (18:29 +0200)]
dwarflint: Add a GNU extension
Petr Machata [Mon, 18 Oct 2010 12:32:53 +0000 (14:32 +0200)]
dwarflint: Pacify -D_GLIBCXX_DEBUG
Petr Machata [Mon, 18 Oct 2010 10:26:39 +0000 (12:26 +0200)]
Merge remote branch 'origin/dwarf' into dwarf
Mark Wielaard [Fri, 15 Oct 2010 15:20:26 +0000 (17:20 +0200)]
Add more circular variants to tests/dwarf_edit_output.cc.
Mark Wielaard [Fri, 15 Oct 2010 11:27:01 +0000 (13:27 +0200)]
Allow turning on/off dwarf_output debug spew in one place.
Roland McGrath [Thu, 14 Oct 2010 22:32:24 +0000 (15:32 -0700)]
DWARF people changed their mind about the value.
Mark Wielaard [Thu, 14 Oct 2010 14:58:56 +0000 (16:58 +0200)]
Add new test setup for dwarf_edit, dwarf_output transforms.
Roland McGrath [Wed, 13 Oct 2010 18:21:17 +0000 (11:21 -0700)]
dwarf.h: Add DW_LANG_Go.
Petr Machata [Wed, 13 Oct 2010 12:02:43 +0000 (14:02 +0200)]
dwarflint: More test cases
Petr Machata [Wed, 13 Oct 2010 11:35:56 +0000 (13:35 +0200)]
dwarflint: Fix is_overlap for zero-length ranges
Petr Machata [Wed, 13 Oct 2010 11:26:10 +0000 (13:26 +0200)]
dwarflint: Support zero-length ranges
Petr Machata [Tue, 12 Oct 2010 22:58:00 +0000 (00:58 +0200)]
dwarflint: C++-ify coverage
- and add a unit test for that
Petr Machata [Tue, 12 Oct 2010 11:37:53 +0000 (13:37 +0200)]
dwarflint: Add a test case for no aranges table associated with CU
- for CU that has a zero address range
Petr Machata [Tue, 12 Oct 2010 11:24:20 +0000 (13:24 +0200)]
dwarflint: Move all the low_pc/high_pc processing after the attribute loop
- no point adding the low_pc/high_pc range once more for each attribute
after the second in the DW_AT_{high,low}_pc pair
Petr Machata [Tue, 12 Oct 2010 11:22:20 +0000 (13:22 +0200)]
dwarflint: Nits
Petr Machata [Mon, 11 Oct 2010 22:34:56 +0000 (00:34 +0200)]
Merge branch 'pmachata/dwarflint-smartforms' into dwarf
Petr Machata [Mon, 11 Oct 2010 21:52:42 +0000 (23:52 +0200)]
dwarflint: Drop read_ctx_read_form in favor of read_generic_value
Petr Machata [Mon, 11 Oct 2010 21:41:06 +0000 (23:41 +0200)]
dwarflint: Fix a typo
Petr Machata [Mon, 11 Oct 2010 21:39:43 +0000 (23:39 +0200)]
dwarflint: Introduce read_generic_value into checked_read
- the hope being several reading operations can be expressed in terms of
read_generic_value
Petr Machata [Mon, 11 Oct 2010 21:33:19 +0000 (23:33 +0200)]
dwarflint: move read_sc_value to checked_read module
Petr Machata [Mon, 11 Oct 2010 21:10:13 +0000 (23:10 +0200)]
dwarflint: checked_read takes const where
Mark Wielaard [Mon, 11 Oct 2010 15:26:43 +0000 (17:26 +0200)]
Use std:tr1::hash<std::string> where possible.
* c++/subr.hh (string_hash_combine): Removed.
(hash<std::string>): Extend std::tr1::hash<std::string>.
* c++/dwarf_data (value_string): typedef std::tr1::hash<std::string>
hasher.
Petr Machata [Sat, 9 Oct 2010 19:35:02 +0000 (21:35 +0200)]
dwarflint: Update TODO
Petr Machata [Sat, 9 Oct 2010 19:34:56 +0000 (21:34 +0200)]
dwarflint: Change reloc_target signature
- leave the body as is for the time being
Petr Machata [Sat, 9 Oct 2010 18:45:04 +0000 (20:45 +0200)]
dwarflint: Streamlining code
- Extract checks common to direct and indirect forms to
check_debug_abbrev::check_form.
- Reading of indirect form is now done via a new function read_sc_value
in check_debug_info.cc. That function is also called for reading
normal values of classes sc_value and sc_block
Petr Machata [Sat, 9 Oct 2010 17:29:50 +0000 (19:29 +0200)]
dwarflint: Use a cl_indirect test instead of testing DW_FORM_indirect
Petr Machata [Sat, 9 Oct 2010 17:21:43 +0000 (19:21 +0200)]
dwarflint: Remove duplicate testing for allowed forms in check_debug_abbrev
Petr Machata [Sat, 9 Oct 2010 17:20:56 +0000 (19:20 +0200)]
dwarflint: Add DW_FORM_indirect to DWARF 2
- add cl_indirect to facilitate the indirect form. Make this the implicit
class of all attributes.
Petr Machata [Sat, 9 Oct 2010 14:37:15 +0000 (16:37 +0200)]
dwarflint: Retrofit cl_lineptr and cl_macptr to DWARF 2
- which fixes the failing test case
Petr Machata [Fri, 8 Oct 2010 23:28:52 +0000 (01:28 +0200)]
dwarflint: Retrofit proper marking of exprloc and loclistptr to earlier DWARFs
- as a consequence, is_location_attrib is gone
- in check_debug_abbrev, we now check for appropriateness all form/attribute
pairs, not just those that are location attribs
- too-wide references are now checked in one place for all reference types
- pointer checking now actually looks sane--the maze of DW_FORM_/DW_AT_
switches was replaced by a straighforward switch on ver->form_class
- this introduces a testcase failure
- and similar work needs to be done for other cl_*ref classes
Petr Machata [Fri, 8 Oct 2010 23:18:53 +0000 (01:18 +0200)]
dwarflist: Fix dwarf_version::form_class
Petr Machata [Fri, 8 Oct 2010 17:47:37 +0000 (19:47 +0200)]
dwarflint: Nits
Petr Machata [Fri, 8 Oct 2010 16:52:05 +0000 (18:52 +0200)]
dwarflint: Fix classes for DW_AT_accessibility, _abstract_origin in DWARF2
Petr Machata [Fri, 8 Oct 2010 16:43:52 +0000 (18:43 +0200)]
dwarflint: Support MIPS extensions
- and unconditionally return it in request to dwarf_version::get
Petr Machata [Thu, 7 Oct 2010 16:09:53 +0000 (18:09 +0200)]
dwarflint: Remove part of the loclist switching
- use the new articulated forms/attributes instead
- the goal is to make most of the code like this
Petr Machata [Thu, 7 Oct 2010 15:46:58 +0000 (17:46 +0200)]
dwarflint: Add dwarf_version::form_class, ~::ambiguous_class, drop form::cls
- And use that in dwarf_3 to properly support DW_AT_data_member_location
Petr Machata [Thu, 7 Oct 2010 13:16:44 +0000 (15:16 +0200)]
dwarflint: Add form::cls to get the class of form in context of given attribute
Petr Machata [Thu, 7 Oct 2010 09:52:59 +0000 (11:52 +0200)]
dwarflint: Rename variable