]> git.ipfire.org Git - thirdparty/elfutils.git/log
thirdparty/elfutils.git
14 years agodwarflint: Rename tables.* to dwarf_version.*
Petr Machata [Thu, 7 Oct 2010 00:50:16 +0000 (02:50 +0200)] 
dwarflint: Rename tables.* to dwarf_version.*

14 years agodwarflint: Introduce dwarf_version::extend
Petr Machata [Thu, 7 Oct 2010 00:42:38 +0000 (02:42 +0200)] 
dwarflint: Introduce dwarf_version::extend
- Drop support for parental version in std_dwarf, implement the same via
  the extension mechanism
- Drop the huge #if 0 that has been there for about a year or so

14 years agodwarflint: Make DWARF attributes objects, too
Petr Machata [Wed, 6 Oct 2010 19:56:27 +0000 (21:56 +0200)] 
dwarflint: Make DWARF attributes objects, too

14 years agodwarflint: Use form::storage_class and checked_read_leb128 in check_debug_info
Petr Machata [Wed, 6 Oct 2010 18:37:54 +0000 (20:37 +0200)] 
dwarflint: Use form::storage_class and checked_read_leb128 in check_debug_info

14 years agodwarflint: Add form::storage_class
Petr Machata [Wed, 6 Oct 2010 18:37:23 +0000 (20:37 +0200)] 
dwarflint: Add form::storage_class

14 years agodwarflint: Add checked_read_leb128
Petr Machata [Wed, 6 Oct 2010 18:31:14 +0000 (20:31 +0200)] 
dwarflint: Add checked_read_leb128
- this is similar to read_ctx_read_var
- also drop a bunch of C-isms

14 years agodwarflint: Minor adjustments in tables.cc
Petr Machata [Wed, 6 Oct 2010 17:47:53 +0000 (19:47 +0200)] 
dwarflint: Minor adjustments in tables.cc
- After some experimenting with different ways of defining form classes,
  I'm back to the original code.

14 years agodwarflint: Remove dwarf_version::form_width
Petr Machata [Wed, 6 Oct 2010 14:59:53 +0000 (16:59 +0200)] 
dwarflint: Remove dwarf_version::form_width
- and a bunch of changes in dwarf_version internals

14 years agodwarflint: Make a bunch of internal types related to dwarf_version public
Petr Machata [Wed, 6 Oct 2010 13:52:07 +0000 (15:52 +0200)] 
dwarflint: Make a bunch of internal types related to dwarf_version public

14 years agodwarflint: Use dwarf_version::form_width in check_debug_info
Petr Machata [Wed, 6 Oct 2010 12:49:11 +0000 (14:49 +0200)] 
dwarflint: Use dwarf_version::form_width in check_debug_info

14 years agodwarflint: Revamping dwarf tables
Petr Machata [Tue, 5 Oct 2010 18:33:03 +0000 (20:33 +0200)] 
dwarflint: Revamping dwarf tables
- forms are now objects.  The idea being they know how big they are, how
  to relocate them, perhaps they might know how to extract value from
  stream.  The goal here is to concetrate all the form-related knowledge
  to a sigle place.  It now passes the suite, but is not really done yet.

14 years agodwarflint: Fix handling of indirect forms in check_debug_info
Petr Machata [Tue, 5 Oct 2010 16:38:52 +0000 (18:38 +0200)] 
dwarflint: Fix handling of indirect forms in check_debug_info
- and commit a couple other nits

14 years agodwarflint: Use wrapper to print check descriptions
Petr Machata [Fri, 1 Oct 2010 14:51:48 +0000 (16:51 +0200)] 
dwarflint: Use wrapper to print check descriptions
- this should make it easier to write them
- also use argp to print out properly formatted help for each check.  Drop
  a bunch of code that was necessary to do things the old way

14 years agodwarflint: Avoid constructing temporary std::string in line wrapper
Petr Machata [Fri, 1 Oct 2010 14:21:07 +0000 (16:21 +0200)] 
dwarflint: Avoid constructing temporary std::string in line wrapper

14 years agodwarflint: Fix off-by-one in spaces
Petr Machata [Fri, 1 Oct 2010 14:19:00 +0000 (16:19 +0200)] 
dwarflint: Fix off-by-one in spaces

14 years agodwarflint: Add a function to format N spaces
Petr Machata [Fri, 1 Oct 2010 13:55:45 +0000 (15:55 +0200)] 
dwarflint: Add a function to format N spaces

14 years agodwarflint: Fix wrapping long words on indented lines
Petr Machata [Fri, 1 Oct 2010 11:51:08 +0000 (13:51 +0200)] 
dwarflint: Fix wrapping long words on indented lines

14 years agodwarflint: Add line wrapper
Petr Machata [Fri, 1 Oct 2010 01:10:28 +0000 (03:10 +0200)] 
dwarflint: Add line wrapper
- it's not currently used, but we will use this for formatting of check
  documentation and options

14 years agodwarflint: Check coverage of arange vs. CUs as well as the other way around
Petr Machata [Thu, 30 Sep 2010 16:05:54 +0000 (18:05 +0200)] 
dwarflint: Check coverage of arange vs. CUs as well as the other way around

14 years agodwarflint: Test case for aranges that terminate early
Petr Machata [Thu, 30 Sep 2010 15:37:48 +0000 (17:37 +0200)] 
dwarflint: Test case for aranges that terminate early

14 years agodwarflint: Promote duplicate-arange-for-CPU to error
Petr Machata [Thu, 30 Sep 2010 15:01:50 +0000 (17:01 +0200)] 
dwarflint: Promote duplicate-arange-for-CPU to error

14 years agodwarflint: Check for CUs that miss arange table
Petr Machata [Thu, 30 Sep 2010 14:53:47 +0000 (16:53 +0200)] 
dwarflint: Check for CUs that miss arange table
+testcase

14 years agodwarflint: check_range_out_of_scope should run even on absent .debug_loc
Petr Machata [Thu, 30 Sep 2010 12:23:55 +0000 (14:23 +0200)] 
dwarflint: check_range_out_of_scope should run even on absent .debug_loc
- the actual fix is removing the forced lint.check <check_debug_loc>.
  The lowlevel_checks pass takes care of validating any present sections.
  In this case .debug_loc isn't there, yet the check needs to run.
- and add a test case for this.

14 years agodwarflint: --list-checks now lists options associated with check passes
Petr Machata [Fri, 24 Sep 2010 16:41:40 +0000 (18:41 +0200)] 
dwarflint: --list-checks now lists options associated with check passes

14 years agodwarflint: Rename local options to include the check pass prefix
Petr Machata [Fri, 24 Sep 2010 16:11:26 +0000 (18:11 +0200)] 
dwarflint: Rename local options to include the check pass prefix
- The original intention was that this is added automatically, but perhaps
  the better way to handle it is to make it easy to pick whatever name one
  wishes.  Short options will share namespace anyway, so one has to be
  careful with their naming anyway.

14 years agodwarflint: Recognize options local to check
Petr Machata [Fri, 24 Sep 2010 14:00:28 +0000 (16:00 +0200)] 
dwarflint: Recognize options local to check

14 years agodwarflint: Only toplevel option pack should have description
Petr Machata [Thu, 23 Sep 2010 18:00:39 +0000 (20:00 +0200)] 
dwarflint: Only toplevel option pack should have description

14 years agodwarflint: Better description of options in locstats
Petr Machata [Thu, 23 Sep 2010 17:55:57 +0000 (19:55 +0200)] 
dwarflint: Better description of options in locstats

14 years agodwarflint: Show check-local options in --help
Petr Machata [Thu, 23 Sep 2010 17:55:25 +0000 (19:55 +0200)] 
dwarflint: Show check-local options in --help
- They are still not properly recognized
- And name mangling isn't implemented

14 years agodwarflint: Don't assume all options are global
Petr Machata [Thu, 23 Sep 2010 16:00:36 +0000 (18:00 +0200)] 
dwarflint: Don't assume all options are global
- currently this breaks dwarflint, because per-check options are not yet
  processed.  Options that belonged to global group before still work and
  are correctly registered as globals, but e.g. -i or the suite of options
  at locstats aren't recognized.

14 years agodwarflint: Get rid of low.h/low.c
Petr Machata [Wed, 22 Sep 2010 14:48:50 +0000 (16:48 +0200)] 
dwarflint: Get rid of low.h/low.c
- and rename misc.h to misc.hh

14 years agodwarflint: Getting rid of compat C bindings
Petr Machata [Wed, 22 Sep 2010 14:23:39 +0000 (16:23 +0200)] 
dwarflint: Getting rid of compat C bindings

14 years agodwarflint: Move much of the rest of low.h to where it belongs
Petr Machata [Tue, 21 Sep 2010 21:32:43 +0000 (23:32 +0200)] 
dwarflint: Move much of the rest of low.h to where it belongs

14 years agodwarflint: Move abbrev-related data structures to check_debug_abbrev
Petr Machata [Tue, 21 Sep 2010 20:47:34 +0000 (22:47 +0200)] 
dwarflint: Move abbrev-related data structures to check_debug_abbrev

14 years agodwarflint: More moving stuff around
Petr Machata [Tue, 21 Sep 2010 20:29:05 +0000 (22:29 +0200)] 
dwarflint: More moving stuff around

14 years agodwarflint: New module checked_read
Petr Machata [Tue, 21 Sep 2010 20:13:26 +0000 (22:13 +0200)] 
dwarflint: New module checked_read
- a bunch of functions that I couldn't place just right are there

14 years agodwarflint: Drop unused declarations
Petr Machata [Tue, 21 Sep 2010 19:53:45 +0000 (21:53 +0200)] 
dwarflint: Drop unused declarations

14 years agodwarflint: check_range_relocations should rather be in check_debug_loc_range
Petr Machata [Tue, 21 Sep 2010 19:51:22 +0000 (21:51 +0200)] 
dwarflint: check_range_relocations should rather be in check_debug_loc_range

14 years agodwarflint: Move read_rel and check_range_relocations to reloc module
Petr Machata [Tue, 21 Sep 2010 19:19:16 +0000 (21:19 +0200)] 
dwarflint: Move read_rel and check_range_relocations to reloc module

14 years agodwarflint: Move check_aranges_structural to check_debug_aranges
Petr Machata [Tue, 21 Sep 2010 19:02:16 +0000 (21:02 +0200)] 
dwarflint: Move check_aranges_structural to check_debug_aranges

14 years agodwarflint: Move check_zero_padding to read_ctx module
Petr Machata [Tue, 21 Sep 2010 18:30:40 +0000 (20:30 +0200)] 
dwarflint: Move check_zero_padding to read_ctx module
- and promote the reporting part back to callers

14 years agodwarflint: Move read_address_size to read_ctx module
Petr Machata [Tue, 21 Sep 2010 16:41:13 +0000 (18:41 +0200)] 
dwarflint: Move read_address_size to read_ctx module
- and shuffle arguments around so it makes sense

14 years agodwarflint: Move read_size_extra to readctx module
Petr Machata [Tue, 21 Sep 2010 16:09:54 +0000 (18:09 +0200)] 
dwarflint: Move read_size_extra to readctx module

14 years agodwarflint: Add DIE classification categories "mutable" and "immutable"
Petr Machata [Mon, 20 Sep 2010 22:28:20 +0000 (00:28 +0200)] 
dwarflint: Add DIE classification categories "mutable" and "immutable"
- however I guess the better thing to do would be to dump how big part
  of a scope is mutable vs. immutable, or something like that

14 years agodwarflint: Fix classification of no_coverage DIEs
Petr Machata [Mon, 20 Sep 2010 22:26:17 +0000 (00:26 +0200)] 
dwarflint: Fix classification of no_coverage DIEs

14 years agodwarflint: Implement reading DW_FORM_ref_addr forms
Petr Machata [Mon, 20 Sep 2010 19:41:44 +0000 (21:41 +0200)] 
dwarflint: Implement reading DW_FORM_ref_addr forms
- Patch by Jakub Jelinek

14 years agoIn dwarf-opcodes.h, add DW_OP_GNU_implicit_pointer and fix DW_OP_call_ref
Petr Machata [Mon, 20 Sep 2010 19:40:06 +0000 (21:40 +0200)] 
In dwarf-opcodes.h, add DW_OP_GNU_implicit_pointer and fix DW_OP_call_ref
- patch by Jakub Jelinek

14 years agodwarflint: Add a possibility to distinguish sharp 0 coverage to locstats pass
Petr Machata [Mon, 20 Sep 2010 19:35:44 +0000 (21:35 +0200)] 
dwarflint: Add a possibility to distinguish sharp 0 coverage to locstats pass

14 years agodwarflint: Add a description of locstats
Petr Machata [Fri, 17 Sep 2010 16:40:55 +0000 (18:40 +0200)] 
dwarflint: Add a description of locstats

14 years agodwarflint: Add an option to recognize inlined subroutines
Petr Machata [Fri, 17 Sep 2010 16:09:50 +0000 (18:09 +0200)] 
dwarflint: Add an option to recognize inlined subroutines

14 years agodwarflint: Add more options for ignoring and dumping dies to locstat
Petr Machata [Fri, 17 Sep 2010 15:31:54 +0000 (17:31 +0200)] 
dwarflint: Add more options for ignoring and dumping dies to locstat
- these are probably mostly useful for myself as I'm trying to find out
  what's really missing the info and what doesn't need one it the first
  place, but why not allow others to do the tinkering too...

14 years agodwarflint: Exclude any location list entries whose expression is empty
Petr Machata [Fri, 17 Sep 2010 11:53:22 +0000 (13:53 +0200)] 
dwarflint: Exclude any location list entries whose expression is empty

14 years agodwarflint: In all_dies_iterator, replace parent () with stack ()
Petr Machata [Thu, 16 Sep 2010 22:52:14 +0000 (00:52 +0200)] 
dwarflint: In all_dies_iterator, replace parent () with stack ()
- use it in locstats to find the nearest parental DIE with non-empty ranges

14 years agodwarflint: First stab at location/value stats
Petr Machata [Thu, 16 Sep 2010 20:41:51 +0000 (22:41 +0200)] 
dwarflint: First stab at location/value stats
- things will change, some parts of the proposal are not yet implemented

14 years agodwarflint: Publish C dwarf pointer in high-level checks
Petr Machata [Thu, 16 Sep 2010 20:38:16 +0000 (22:38 +0200)] 
dwarflint: Publish C dwarf pointer in high-level checks

14 years agodwarflint: Add the ability to query the die parent in all_dies_iterator
Petr Machata [Wed, 15 Sep 2010 21:31:56 +0000 (23:31 +0200)] 
dwarflint: Add the ability to query the die parent in all_dies_iterator

14 years agodwarflint: Only warn about unused rules if we had a chance to match them
Petr Machata [Wed, 15 Sep 2010 21:31:18 +0000 (23:31 +0200)] 
dwarflint: Only warn about unused rules if we had a chance to match them

14 years agodwarflint: Coding style nits
Petr Machata [Wed, 15 Sep 2010 19:56:26 +0000 (21:56 +0200)] 
dwarflint: Coding style nits

14 years agodwarflint: Warn about --check rules that never match
Petr Machata [Wed, 15 Sep 2010 18:32:23 +0000 (20:32 +0200)] 
dwarflint: Warn about --check rules that never match

14 years agodwarflint: Extract checkrule into module of its own
Petr Machata [Wed, 15 Sep 2010 18:13:43 +0000 (20:13 +0200)] 
dwarflint: Extract checkrule into module of its own

14 years agoMerge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf
Petr Machata [Wed, 15 Sep 2010 13:56:00 +0000 (15:56 +0200)] 
Merge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf

14 years agoOnly run low-level checks in dwarflint self-check
Petr Machata [Wed, 15 Sep 2010 13:55:10 +0000 (15:55 +0200)] 
Only run low-level checks in dwarflint self-check

The reason being that high-level checks do and always have emitted a lot
of output, mainly for big c++ binaries.  The low-level checks should
generally pass, and even if there are nits here and there, they should be
minor and shouldn't flood the terminal.

14 years agoMerge commit 'elfutils-0.149' into dwarf
Roland McGrath [Wed, 15 Sep 2010 01:43:11 +0000 (18:43 -0700)] 
Merge commit 'elfutils-0.149' into dwarf

14 years agodwarflint: Make it possible to define relevant options directly at checks
Petr Machata [Tue, 14 Sep 2010 21:05:58 +0000 (23:05 +0200)] 
dwarflint: Make it possible to define relevant options directly at checks

14 years agodwarflint: And add the description
Petr Machata [Tue, 14 Sep 2010 14:35:03 +0000 (16:35 +0200)] 
dwarflint: And add the description

14 years agodwarflint: Add a test for nodebug check
Petr Machata [Tue, 14 Sep 2010 14:30:14 +0000 (16:30 +0200)] 
dwarflint: Add a test for nodebug check

14 years agodwarflint: Check for missind debuginfo sections separately
Petr Machata [Tue, 14 Sep 2010 14:14:17 +0000 (16:14 +0200)] 
dwarflint: Check for missind debuginfo sections separately

14 years agodwarflint: Fix test case
Petr Machata [Tue, 14 Sep 2010 12:35:25 +0000 (14:35 +0200)] 
dwarflint: Fix test case
- now that we run the low-level checks as prerequisite of high-level ones,
  we also get low-level errors in testsuite passes.  One more reason to
  implement some sensible message filtering command line options.

14 years agodwarflint: Move secinfo_map initiazitaion into ctor, avoid macros
Petr Machata [Tue, 14 Sep 2010 12:34:11 +0000 (14:34 +0200)] 
dwarflint: Move secinfo_map initiazitaion into ctor, avoid macros
- and reindent two statements below where it's instantiated
- and add a documentation to the section_name array

14 years agodwarflint: Always allow scheduling hidden checks
Petr Machata [Tue, 14 Sep 2010 11:44:46 +0000 (13:44 +0200)] 
dwarflint: Always allow scheduling hidden checks
- and mark a couple "servicing" checks as hidden
- this fixes --check again

14 years agoPrepare 0.149 release. elfutils-0.149
Ulrich Drepper [Mon, 13 Sep 2010 18:57:02 +0000 (11:57 -0700)] 
Prepare 0.149 release.

14 years agoUpdate ALL_LINGUAS.
Ulrich Drepper [Mon, 13 Sep 2010 16:43:11 +0000 (09:43 -0700)] 
Update ALL_LINGUAS.

14 years agoNEWS typo
Roland McGrath [Fri, 10 Sep 2010 06:55:32 +0000 (23:55 -0700)] 
NEWS typo

14 years agostrip NEWS item
Roland McGrath [Fri, 10 Sep 2010 06:26:12 +0000 (23:26 -0700)] 
strip NEWS item

14 years agoMerge branch 'roland/implicit-ptr'
Roland McGrath [Fri, 10 Sep 2010 06:16:18 +0000 (23:16 -0700)] 
Merge branch 'roland/implicit-ptr'

14 years agodwarflint: Add a lowlevel_checks pass
Petr Machata [Tue, 7 Sep 2010 21:08:05 +0000 (23:08 +0200)] 
dwarflint: Add a lowlevel_checks pass
- which is where low-level checks are explicitly requested
- and what highlevel checks, also explicitly, depend on

14 years agodwarflint: Drop code from check_debug_line that's now in check_debug_info_refs
Petr Machata [Tue, 7 Sep 2010 13:19:47 +0000 (15:19 +0200)] 
dwarflint: Drop code from check_debug_line that's now in check_debug_info_refs
- and also adjust the documentation

14 years agodwarflint: Check for unresolved references from .debug_info to .debug_line
Petr Machata [Tue, 7 Sep 2010 12:28:24 +0000 (14:28 +0200)] 
dwarflint: Check for unresolved references from .debug_info to .debug_line

- while this check has already been there, it was part of .debug_line.  If
  .debug_line was entirely missing or broken, the check would never be run.
  Now the check is in a separate pass.

14 years agodwarflint: Split check_debug_pub.cc to .hh
Petr Machata [Tue, 7 Sep 2010 12:25:16 +0000 (14:25 +0200)] 
dwarflint: Split check_debug_pub.cc to .hh

14 years agodwarflint: Split check_debug_line.cc to .hh and .ii
Petr Machata [Tue, 7 Sep 2010 12:24:29 +0000 (14:24 +0200)] 
dwarflint: Split check_debug_line.cc to .hh and .ii

14 years agodwarflint: Add a missing include
Petr Machata [Tue, 7 Sep 2010 12:23:10 +0000 (14:23 +0200)] 
dwarflint: Add a missing include

14 years agodwarflint: Formatting nits
Petr Machata [Mon, 6 Sep 2010 18:34:26 +0000 (20:34 +0200)] 
dwarflint: Formatting nits

14 years agodwarflint: Add check_debug_* to the @low group
Petr Machata [Mon, 6 Sep 2010 18:34:14 +0000 (20:34 +0200)] 
dwarflint: Add check_debug_* to the @low group

14 years agodwarflint: Add more TODO items
Petr Machata [Mon, 6 Sep 2010 18:15:44 +0000 (20:15 +0200)] 
dwarflint: Add more TODO items

14 years agodwarflint: Add more TODO items
Petr Machata [Mon, 6 Sep 2010 17:59:23 +0000 (19:59 +0200)] 
dwarflint: Add more TODO items

14 years agodwarflint: Add more TODO items
Petr Machata [Mon, 6 Sep 2010 17:11:28 +0000 (19:11 +0200)] 
dwarflint: Add more TODO items

14 years agodwarflint: Add a test for leaking location
Petr Machata [Mon, 6 Sep 2010 16:57:48 +0000 (18:57 +0200)] 
dwarflint: Add a test for leaking location
- (as documented on the SuspiciousDebuginfoCases wiki page)
- also add the previous test to Makefile.am

14 years agoMerge branch 'pmachata/dwarflint' into dwarf
Petr Machata [Mon, 6 Sep 2010 16:40:13 +0000 (18:40 +0200)] 
Merge branch 'pmachata/dwarflint' into dwarf

14 years agodwarflint: Add a TODO file
Petr Machata [Mon, 6 Sep 2010 16:39:22 +0000 (18:39 +0200)] 
dwarflint: Add a TODO file

14 years agodwarflint: Drop crud
Petr Machata [Mon, 6 Sep 2010 15:46:26 +0000 (17:46 +0200)] 
dwarflint: Drop crud

14 years agodwarflint: Extract cu_coverage to separate check pass
Petr Machata [Mon, 6 Sep 2010 15:44:16 +0000 (17:44 +0200)] 
dwarflint: Extract cu_coverage to separate check pass

- if the data is incomplete or unavailable, the pass fails just like any
  other pass

14 years agodwarflint: Add a description to .debug_abbrev
Petr Machata [Mon, 6 Sep 2010 10:47:55 +0000 (12:47 +0200)] 
dwarflint: Add a description to .debug_abbrev

14 years agodwarflint: Mark dependency of check_debug_abbrev on cu_headers
Petr Machata [Mon, 6 Sep 2010 10:33:40 +0000 (12:33 +0200)] 
dwarflint: Mark dependency of check_debug_abbrev on cu_headers

14 years agodwarflint: Add a description to check_debug_info
Petr Machata [Thu, 2 Sep 2010 21:58:49 +0000 (23:58 +0200)] 
dwarflint: Add a description to check_debug_info

14 years agodwarflint: Add description to check_debug_line
Petr Machata [Thu, 2 Sep 2010 16:30:29 +0000 (18:30 +0200)] 
dwarflint: Add description to check_debug_line

14 years agodwarflint: Add description of check_debug_pub*
Petr Machata [Thu, 2 Sep 2010 15:11:43 +0000 (17:11 +0200)] 
dwarflint: Add description of check_debug_pub*

14 years agodwarflint: More check descriptions
Petr Machata [Thu, 2 Sep 2010 13:55:54 +0000 (15:55 +0200)] 
dwarflint: More check descriptions

14 years agol10n: Updates to Ukrainian (uk) translation
yurchor [Wed, 1 Sep 2010 07:01:35 +0000 (07:01 +0000)] 
l10n: Updates to Ukrainian (uk) translation

Transmitted-via: Transifex (translate.fedoraproject.org)

14 years agol10n: Updates to Ukrainian (uk) translation
yurchor [Tue, 31 Aug 2010 15:26:38 +0000 (15:26 +0000)] 
l10n: Updates to Ukrainian (uk) translation

Transmitted-via: Transifex (translate.fedoraproject.org)

14 years agoreadelf: Print .debug_loc/.debug_ranges with cognizance of actual DIE pointers into...
Roland McGrath [Tue, 31 Aug 2010 02:22:41 +0000 (19:22 -0700)] 
readelf: Print .debug_loc/.debug_ranges with cognizance of actual DIE pointers into them.