]> git.ipfire.org Git - thirdparty/elfutils.git/log
thirdparty/elfutils.git
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.

14 years agoAdd prerequisities into descriptors
Petr Machata [Mon, 30 Aug 2010 17:11:58 +0000 (19:11 +0200)] 
Add prerequisities into descriptors
- also move as many descriptors as possible into .cc

14 years agoHandle DW_OP_GNU_implicit_pointer.
Roland McGrath [Sat, 8 May 2010 11:01:14 +0000 (04:01 -0700)] 
Handle DW_OP_GNU_implicit_pointer.

14 years agoreadelf: Fix crash in .debug_loc with garbage data.
Roland McGrath [Mon, 30 Aug 2010 11:04:37 +0000 (04:04 -0700)] 
readelf: Fix crash in .debug_loc with garbage data.

14 years agodwarflint: Add documentation to check_dups_abstract_origin
Petr Machata [Mon, 30 Aug 2010 00:34:30 +0000 (02:34 +0200)] 
dwarflint: Add documentation to check_dups_abstract_origin

14 years agodwarflint: Make checks self-documenting
Petr Machata [Fri, 27 Aug 2010 17:51:37 +0000 (19:51 +0200)] 
dwarflint: Make checks self-documenting

14 years agodwarflint: Change registrar::item::list to registrar::item::descriptor
Petr Machata [Fri, 27 Aug 2010 16:14:36 +0000 (18:14 +0200)] 
dwarflint: Change registrar::item::list to registrar::item::descriptor
- with appropriate change in semantics
- change the way the checks are listed

14 years agodwarflint: Allow sending checkgroup and checkstack into ostream
Petr Machata [Fri, 27 Aug 2010 16:12:59 +0000 (18:12 +0200)] 
dwarflint: Allow sending checkgroup and checkstack into ostream

14 years agodwarflint: Add an ability to list registered checks
Petr Machata [Fri, 27 Aug 2010 15:41:53 +0000 (17:41 +0200)] 
dwarflint: Add an ability to list registered checks
- because the check descriptor is quite simple as of now, the usefulness
  of this is rather limited
- plus unregistered checks are not listed, which means that the user will
  never know about prereqs like .debug_info.  Hard to say whether this is
  a problem or not

14 years agodwarflint: Move checkdescriptor to module of its own
Petr Machata [Fri, 27 Aug 2010 15:39:15 +0000 (17:39 +0200)] 
dwarflint: Move checkdescriptor to module of its own

14 years agodwarflint: Move check registrars to .cc files
Petr Machata [Fri, 27 Aug 2010 15:36:31 +0000 (17:36 +0200)] 
dwarflint: Move check registrars to .cc files

14 years agodwarflint: Add missing copyright notices
Petr Machata [Fri, 27 Aug 2010 14:41:50 +0000 (16:41 +0200)] 
dwarflint: Add missing copyright notices

14 years agodwarflint: Add a check for duplicate DW_TAG_variable entries
Petr Machata [Fri, 27 Aug 2010 14:31:57 +0000 (16:31 +0200)] 
dwarflint: Add a check for duplicate DW_TAG_variable entries
- and a test case

14 years agoReport that the check was entered
Petr Machata [Thu, 26 Aug 2010 12:37:23 +0000 (14:37 +0200)] 
Report that the check was entered

14 years agoReference array in check_debug_loc now uses std::vector
Petr Machata [Thu, 26 Aug 2010 12:36:38 +0000 (14:36 +0200)] 
Reference array in check_debug_loc now uses std::vector
- instead of an alloca-ed array
- this fixes SEGV, and makes the code simpler

14 years agol10n: Updates to Spanish (Castilian) (es) translation
logan [Thu, 26 Aug 2010 12:00:53 +0000 (12:00 +0000)] 
l10n: Updates to Spanish (Castilian) (es) translation

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

14 years agol10n: Updates to Ukrainian (uk) translation
yurchor [Thu, 26 Aug 2010 05:13:57 +0000 (05:13 +0000)] 
l10n: Updates to Ukrainian (uk) translation

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

14 years agoFix SEGV in --verbose mode
Petr Machata [Thu, 26 Aug 2010 00:32:47 +0000 (02:32 +0200)] 
Fix SEGV in --verbose mode

14 years agoEach check now has a name and group membership
Petr Machata [Wed, 25 Aug 2010 17:16:25 +0000 (19:16 +0200)] 
Each check now has a name and group membership

- whether a check is performed can now be configured via a command line
  argument --check
- there's no explicit dependency resolution.  While checks are really
  organized in a dependency graph, only the path from the check under
  investigation to its dependant is known at any given time.  So with
  command line like --check=-X,+Y where Y depends on X, the scheduler
  may first reject X several times, just to perform it anyway when it
  later turns out that requested test Y depends on it.

14 years agoMissing new file for last commit.
Roland McGrath [Wed, 25 Aug 2010 08:15:47 +0000 (01:15 -0700)] 
Missing new file for last commit.

14 years agoAdd dwfl_dwarf_line, addr2line -F to print out more line info bits.
Roland McGrath [Tue, 24 Aug 2010 22:38:42 +0000 (15:38 -0700)] 
Add dwfl_dwarf_line, addr2line -F to print out more line info bits.

14 years agol10n: Updates to Polish (pl) translation
raven [Mon, 23 Aug 2010 16:14:54 +0000 (16:14 +0000)] 
l10n: Updates to Polish (pl) translation

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

14 years agoCleaner way of handling first push_back in directory_table.
Mark Wielaard [Fri, 20 Aug 2010 14:20:46 +0000 (16:20 +0200)] 
Cleaner way of handling first push_back in directory_table.

14 years agoReindent dwarflint/Makefile.am
Petr Machata [Thu, 19 Aug 2010 15:10:12 +0000 (17:10 +0200)] 
Reindent dwarflint/Makefile.am

14 years agodwarflint: Declare template "section" using an enum type
Petr Machata [Thu, 19 Aug 2010 15:08:14 +0000 (17:08 +0200)] 
dwarflint: Declare template "section" using an enum type

* split out enum section_id to separate file to make this possible
* also define section names there

14 years agoRun run-dwarflint-self.sh with new dwarflint/dwarflint location.
Mark Wielaard [Thu, 19 Aug 2010 10:23:42 +0000 (12:23 +0200)] 
Run run-dwarflint-self.sh with new dwarflint/dwarflint location.

14 years agoTreat first entry special in dwarf_data::directory_table, can be NULL/empty.
Mark Wielaard [Thu, 19 Aug 2010 08:44:46 +0000 (10:44 +0200)] 
Treat first entry special in dwarf_data::directory_table, can be NULL/empty.

14 years agoAdd missing size entries for ELF_T_LIB and ELF_T_GNUHASH.
Roland McGrath [Wed, 18 Aug 2010 23:53:43 +0000 (16:53 -0700)] 
Add missing size entries for ELF_T_LIB and ELF_T_GNUHASH.

14 years agoIgnore CU compilation directory in directory table comparison.
Roland McGrath [Wed, 18 Aug 2010 17:56:52 +0000 (10:56 -0700)] 
Ignore CU compilation directory in directory table comparison.

14 years agodwarflint: PRI_DIE is unused in low.c
Petr Machata [Wed, 18 Aug 2010 17:16:30 +0000 (19:16 +0200)] 
dwarflint: PRI_DIE is unused in low.c

14 years agodwarflint: Check all the abbreviation instead of bailing out on first error
Petr Machata [Wed, 18 Aug 2010 17:16:13 +0000 (19:16 +0200)] 
dwarflint: Check all the abbreviation instead of bailing out on first error

14 years agodwarflint: Add test suite
Petr Machata [Wed, 18 Aug 2010 17:14:19 +0000 (19:14 +0200)] 
dwarflint: Add test suite
... the first test being for the bugfix of the previous commit

14 years agodwarflint: detect duplicate attributes in .debug_abbrev
Petr Machata [Wed, 18 Aug 2010 16:01:21 +0000 (18:01 +0200)] 
dwarflint: detect duplicate attributes in .debug_abbrev

14 years agoMove dwarflint to separate directory
Petr Machata [Tue, 17 Aug 2010 17:34:12 +0000 (19:34 +0200)] 
Move dwarflint to separate directory

14 years agoCall read_address_size with file->addr_64 as first argument.
Mark Wielaard [Mon, 19 Jul 2010 08:17:16 +0000 (10:17 +0200)] 
Call read_address_size with file->addr_64 as first argument.

* src/dwarflint/check_debug_info.cc (read_info_headers): Pass file->addr_64
  to read_address_size ().
* src/dwarflint/low.c (check_aranges_structural): Likewise.

14 years agodwarflint: Extract check_range_out_of_scope::recursively_validate
Petr Machata [Thu, 15 Apr 2010 14:49:38 +0000 (16:49 +0200)] 
dwarflint: Extract check_range_out_of_scope::recursively_validate

14 years agodwarflint: Only check for unused files if we managed to load CUs
Petr Machata [Tue, 15 Dec 2009 12:13:58 +0000 (13:13 +0100)] 
dwarflint: Only check for unused files if we managed to load CUs

14 years agodwarflint: Don't accept empty section as present
Petr Machata [Wed, 2 Dec 2009 18:28:45 +0000 (19:28 +0100)] 
dwarflint: Don't accept empty section as present

14 years agodwarflint: Split checks-low.hh/cc into check_debug_aranges.hh/cc and sections.hh...
Petr Machata [Wed, 2 Dec 2009 18:26:17 +0000 (19:26 +0100)] 
dwarflint: Split checks-low.hh/cc into check_debug_aranges.hh/cc and sections.hh/cc/ii

14 years agodwarflint: Recursive check guard
Petr Machata [Mon, 30 Nov 2009 18:20:26 +0000 (19:20 +0100)] 
dwarflint: Recursive check guard

14 years agodwarflint: Fix checking of DW_AT_stmt_list and DW_AT_decl_file
Petr Machata [Mon, 30 Nov 2009 18:19:49 +0000 (19:19 +0100)] 
dwarflint: Fix checking of DW_AT_stmt_list and DW_AT_decl_file

* or rather fix first, implement other

14 years agodwarflint: Extract .debug_pub checks into check_debug_pub.cc
Petr Machata [Mon, 30 Nov 2009 17:06:53 +0000 (18:06 +0100)] 
dwarflint: Extract .debug_pub checks into check_debug_pub.cc

14 years agodwarflint: Hide a couple classes in an anonymous namespace
Petr Machata [Mon, 30 Nov 2009 15:55:28 +0000 (16:55 +0100)] 
dwarflint: Hide a couple classes in an anonymous namespace

14 years agodwarflint: Reindent
Petr Machata [Mon, 30 Nov 2009 15:53:55 +0000 (16:53 +0100)] 
dwarflint: Reindent

14 years agodwarflint: Plug remaining leaks
Petr Machata [Mon, 30 Nov 2009 15:52:57 +0000 (16:52 +0100)] 
dwarflint: Plug remaining leaks

14 years agodwarflint: Const correctness, references in a couple places
Petr Machata [Mon, 30 Nov 2009 15:39:01 +0000 (16:39 +0100)] 
dwarflint: Const correctness, references in a couple places