]> git.ipfire.org Git - thirdparty/elfutils.git/log
thirdparty/elfutils.git
15 years agoDon't emit base address selection entry when it doesn't change base address pmachata/dwarf-writer
Petr Machata [Thu, 1 Oct 2009 16:25:13 +0000 (18:25 +0200)] 
Don't emit base address selection entry when it doesn't change base address

15 years agoDon't skip directory #0 when considering where to put the file
Petr Machata [Thu, 1 Oct 2009 16:24:43 +0000 (18:24 +0200)] 
Don't skip directory #0 when considering where to put the file

15 years agoSelect base address of 0 in .debug_loc lists
Petr Machata [Thu, 1 Oct 2009 13:47:38 +0000 (15:47 +0200)] 
Select base address of 0 in .debug_loc lists

* ... so that we don't have to figure out effective base address of CU
  referencing that list

15 years agoDon't emit the DW_AT_comp_dir directory in .debug_line directory table
Petr Machata [Wed, 30 Sep 2009 17:37:28 +0000 (19:37 +0200)] 
Don't emit the DW_AT_comp_dir directory in .debug_line directory table

15 years agoDissect writer to several files
Petr Machata [Wed, 30 Sep 2009 14:47:45 +0000 (16:47 +0200)] 
Dissect writer to several files

* having everything in output-shape.cc was becoming unwieldy

15 years agoIn .debug_line file table, also include files used by DW_AT_*_file attributes
Petr Machata [Tue, 29 Sep 2009 18:13:47 +0000 (20:13 +0200)] 
In .debug_line file table, also include files used by DW_AT_*_file attributes

15 years ago.debug_line: advance_pc and advance_line both take signed operand
Petr Machata [Tue, 29 Sep 2009 16:49:23 +0000 (18:49 +0200)] 
.debug_line: advance_pc and advance_line both take signed operand

* also adjust some types

15 years agoSave non-list location values as blocks
Petr Machata [Tue, 29 Sep 2009 10:27:27 +0000 (12:27 +0200)] 
Save non-list location values as blocks

15 years agoEmit .debug_lines before .debug_info
Petr Machata [Fri, 25 Sep 2009 17:08:47 +0000 (19:08 +0200)] 
Emit .debug_lines before .debug_info
 * Drop the unnecessary back-patching
 * Implement the book-keeping necessary for correct handling of
   VS_source_file values (and emit it correctly)

15 years agostep_t ctor takes super-step as argument
Petr Machata [Fri, 25 Sep 2009 16:38:53 +0000 (18:38 +0200)] 
step_t ctor takes super-step as argument

15 years agodwarflint: minor coding style nit
Petr Machata [Wed, 23 Sep 2009 20:28:06 +0000 (22:28 +0200)] 
dwarflint: minor coding style nit

15 years agoEmit .debug_loc
Petr Machata [Wed, 23 Sep 2009 20:27:54 +0000 (22:27 +0200)] 
Emit .debug_loc

15 years agoEmit .debug_ranges
Petr Machata [Wed, 23 Sep 2009 11:25:53 +0000 (13:25 +0200)] 
Emit .debug_ranges

15 years agoGaps now have form
Petr Machata [Sat, 19 Sep 2009 16:17:56 +0000 (18:17 +0200)] 
Gaps now have form

 * assert_fits_32 can therefore be called when the gap is patched, for
   relevant forms.

15 years agoA couple fixes for dwarf_64
Petr Machata [Sat, 19 Sep 2009 14:11:07 +0000 (16:11 +0200)] 
A couple fixes for dwarf_64

15 years agoBackpatch references to .debug_line tables
Petr Machata [Fri, 18 Sep 2009 17:00:02 +0000 (19:00 +0200)] 
Backpatch references to .debug_line tables

15 years agoEmit .debug_line
Petr Machata [Tue, 15 Sep 2009 17:26:32 +0000 (19:26 +0200)] 
Emit .debug_line

15 years agoExtract assert_fits_32 to writer
Petr Machata [Tue, 15 Sep 2009 12:31:20 +0000 (14:31 +0200)] 
Extract assert_fits_32 to writer

15 years agoMove some code around to hopefully make things simpler
Petr Machata [Wed, 9 Sep 2009 15:02:59 +0000 (17:02 +0200)] 
Move some code around to hopefully make things simpler

15 years agoSupport standard opcodes, improve the whole setup for emitting line info
Petr Machata [Wed, 9 Sep 2009 13:42:28 +0000 (15:42 +0200)] 
Support standard opcodes, improve the whole setup for emitting line info

15 years agodwarflint: Used wrong formatter for DW_LNS_ opcodes
Petr Machata [Wed, 9 Sep 2009 13:40:23 +0000 (15:40 +0200)] 
dwarflint: Used wrong formatter for DW_LNS_ opcodes

* add the right formatter to dwarfstrings.[ch]

15 years agoFix typos
Petr Machata [Wed, 9 Sep 2009 13:33:24 +0000 (15:33 +0200)] 
Fix typos

15 years agoSome support for emitting .debug_line opcodes
Petr Machata [Tue, 8 Sep 2009 18:45:58 +0000 (20:45 +0200)] 
Some support for emitting .debug_line opcodes

15 years agoEmit .debug_line with empty program for each table
Petr Machata [Tue, 8 Sep 2009 16:02:59 +0000 (18:02 +0200)] 
Emit .debug_line with empty program for each table

15 years agodwarflint: Always emit error about missing DW_LNE_end_sequence
Petr Machata [Tue, 8 Sep 2009 15:44:42 +0000 (17:44 +0200)] 
dwarflint: Always emit error about missing DW_LNE_end_sequence

* ... even if there were no opcodes, because the no-opcodes message can
  be filtered out.

15 years agodwarflint: Check address_size against bit-ness of ELF
Petr Machata [Tue, 8 Sep 2009 12:15:26 +0000 (14:15 +0200)] 
dwarflint: Check address_size against bit-ness of ELF

* and extract the address-size reading and checking code into one function
* and drop the check that all CUs have the same address size, now that
  we check everything against bit-ness of ELF, we don't need it anymore.

15 years agoFix whitespace in Makefile
Petr Machata [Tue, 8 Sep 2009 11:03:33 +0000 (13:03 +0200)] 
Fix whitespace in Makefile

15 years agoexpr_opcodes.h will hold more general information about opcodes
Petr Machata [Tue, 8 Sep 2009 11:03:06 +0000 (13:03 +0200)] 
expr_opcodes.h will hold more general information about opcodes

15 years agoExtract length computation logic to length_field class
Petr Machata [Mon, 7 Sep 2009 20:27:21 +0000 (22:27 +0200)] 
Extract length computation logic to length_field class

15 years agoFixes for dwarf_64
Petr Machata [Mon, 7 Sep 2009 15:43:30 +0000 (17:43 +0200)] 
Fixes for dwarf_64

15 years agoGeneralize DIE tree traversal
Petr Machata [Mon, 7 Sep 2009 14:04:43 +0000 (16:04 +0200)] 
Generalize DIE tree traversal

15 years agoBits
Petr Machata [Thu, 3 Sep 2009 13:54:40 +0000 (15:54 +0200)] 
Bits

15 years agoRework section creation in writer.cc, plug leaks
Petr Machata [Thu, 3 Sep 2009 12:44:26 +0000 (14:44 +0200)] 
Rework section creation in writer.cc, plug leaks

15 years agoMerge branch 'dwarf' into pmachata/dwarf-writer
Petr Machata [Thu, 3 Sep 2009 10:56:22 +0000 (12:56 +0200)] 
Merge branch 'dwarf' into pmachata/dwarf-writer

15 years agoFiddles in subr::sharing_stack.
Roland McGrath [Wed, 2 Sep 2009 18:12:51 +0000 (11:12 -0700)] 
Fiddles in subr::sharing_stack.

15 years agoPrune duplicate abbrevs
Petr Machata [Wed, 2 Sep 2009 16:43:35 +0000 (18:43 +0200)] 
Prune duplicate abbrevs

15 years agoDon't use DIE backpatching mechanism to resolve siblings
Petr Machata [Wed, 2 Sep 2009 15:50:59 +0000 (17:50 +0200)] 
Don't use DIE backpatching mechanism to resolve siblings

15 years agodwarflint: Fix wording of sibling mismatch error message
Petr Machata [Wed, 2 Sep 2009 15:07:25 +0000 (17:07 +0200)] 
dwarflint: Fix wording of sibling mismatch error message

15 years agoforgot to return before the exception is thrown after sdata is written
Petr Machata [Wed, 2 Sep 2009 14:28:30 +0000 (16:28 +0200)] 
forgot to return before the exception is thrown after sdata is written

15 years agodwarflint: Support --dump-offsets
Petr Machata [Wed, 2 Sep 2009 14:27:22 +0000 (16:27 +0200)] 
dwarflint: Support --dump-offsets

... I use it so much that it's probably worth it to have it in the repo,
instead of hacking it in ad-hoc each time I need it.

15 years agodwarflint: Output sibling mismatch with offset of the right DIE
Petr Machata [Wed, 2 Sep 2009 14:26:07 +0000 (16:26 +0200)] 
dwarflint: Output sibling mismatch with offset of the right DIE

15 years agoMerge commit 'origin/dwarf' into pmachata/dwarf-writer
Petr Machata [Wed, 2 Sep 2009 11:07:01 +0000 (13:07 +0200)] 
Merge commit 'origin/dwarf' into pmachata/dwarf-writer

15 years agoDon't emit empty .debug_str
Petr Machata [Wed, 2 Sep 2009 11:06:26 +0000 (13:06 +0200)] 
Don't emit empty .debug_str

(however unlikely that situation is)

15 years agoReduce memory footprint of dwarf_tracker.
Roland McGrath [Tue, 1 Sep 2009 23:20:39 +0000 (16:20 -0700)] 
Reduce memory footprint of dwarf_tracker.

15 years agoReduce memory footprint of dwarf iterators.
Roland McGrath [Tue, 1 Sep 2009 22:37:17 +0000 (15:37 -0700)] 
Reduce memory footprint of dwarf iterators.

15 years agoAdd specialized dynamic_equality_set class for attributes in the collector.
Roland McGrath [Tue, 1 Sep 2009 02:21:08 +0000 (19:21 -0700)] 
Add specialized dynamic_equality_set class for attributes in the collector.

15 years agoPresence of siblings is emitted correctly
Petr Machata [Mon, 31 Aug 2009 13:06:27 +0000 (15:06 +0200)] 
Presence of siblings is emitted correctly

* ... some still have broken offsets

15 years agoMerge nit
Petr Machata [Mon, 31 Aug 2009 13:01:06 +0000 (15:01 +0200)] 
Merge nit

15 years agoMerge branch 'dwarf' into pmachata/dwarf-writer
Petr Machata [Mon, 31 Aug 2009 11:42:15 +0000 (13:42 +0200)] 
Merge branch 'dwarf' into pmachata/dwarf-writer

Conflicts:
libdw/c++/dwarf_output
tests/Makefile.am

15 years agoFiddle stats output.
Roland McGrath [Fri, 28 Aug 2009 22:26:24 +0000 (15:26 -0700)] 
Fiddle stats output.

15 years agoSimplify further
Petr Machata [Fri, 28 Aug 2009 13:22:15 +0000 (15:22 +0200)] 
Simplify further
* ... found an error in generating sibling attributes, not fixed yet.

15 years agoSplit out dwarfcmp -T tests into dwarfcmp-test binary.
Roland McGrath [Fri, 28 Aug 2009 01:30:04 +0000 (18:30 -0700)] 
Split out dwarfcmp -T tests into dwarfcmp-test binary.

15 years agoFiddle dwarf_output constructors.
Roland McGrath [Fri, 28 Aug 2009 01:29:06 +0000 (18:29 -0700)] 
Fiddle dwarf_output constructors.

15 years agodwarf_output::copier fix for circular refs
Roland McGrath [Fri, 28 Aug 2009 00:53:30 +0000 (17:53 -0700)] 
dwarf_output::copier fix for circular refs

15 years agoAdd missing file.
Roland McGrath [Thu, 27 Aug 2009 17:32:58 +0000 (10:32 -0700)] 
Add missing file.

15 years agoMore cleanups
Petr Machata [Thu, 27 Aug 2009 14:33:13 +0000 (16:33 +0200)] 
More cleanups

15 years agoWriter cleanups
Petr Machata [Thu, 27 Aug 2009 12:32:25 +0000 (14:32 +0200)] 
Writer cleanups

15 years agoExtract some stuff to `writer' class
Petr Machata [Wed, 26 Aug 2009 15:28:30 +0000 (17:28 +0200)] 
Extract some stuff to `writer' class

* stuff related directly to writing is gathered here

15 years agoEmit short strings inline
Petr Machata [Wed, 26 Aug 2009 12:30:09 +0000 (14:30 +0200)] 
Emit short strings inline

15 years agoShare print-die compilation among tests.
Roland McGrath [Wed, 26 Aug 2009 06:48:41 +0000 (23:48 -0700)] 
Share print-die compilation among tests.

15 years agoUse some explicit template instantiations.
Roland McGrath [Wed, 26 Aug 2009 06:19:28 +0000 (23:19 -0700)] 
Use some explicit template instantiations.

15 years agoFix tracker circular ref handling for sharing differences. dwarfcmp -l improvements.
Roland McGrath [Wed, 26 Aug 2009 04:14:38 +0000 (21:14 -0700)] 
Fix tracker circular ref handling for sharing differences.  dwarfcmp -l improvements.

15 years agoCosmetic.
Roland McGrath [Mon, 24 Aug 2009 23:59:00 +0000 (16:59 -0700)] 
Cosmetic.

15 years agoAdd --silent option to dwarf-print et al.
Roland McGrath [Sat, 22 Aug 2009 00:41:16 +0000 (17:41 -0700)] 
Add --silent option to dwarf-print et al.

15 years agoc++/subr.hh (hash<std::string>): Use elf_gnu_hash algorithm.
Roland McGrath [Sat, 22 Aug 2009 00:23:59 +0000 (17:23 -0700)] 
c++/subr.hh (hash<std::string>): Use elf_gnu_hash algorithm.

15 years agoWorks again
Petr Machata [Fri, 21 Aug 2009 20:22:21 +0000 (22:22 +0200)] 
Works again

15 years agoFiddle integer hashers.
Roland McGrath [Fri, 21 Aug 2009 20:07:41 +0000 (13:07 -0700)] 
Fiddle integer hashers.

15 years agoMerge commit 'origin/dwarf' into pmachata/dwarf-writer
Petr Machata [Fri, 21 Aug 2009 14:38:19 +0000 (16:38 +0200)] 
Merge commit 'origin/dwarf' into pmachata/dwarf-writer

15 years agoOptimize dwarf_output copying of strings and source_files with a copier cache.
Roland McGrath [Fri, 21 Aug 2009 09:15:30 +0000 (02:15 -0700)] 
Optimize dwarf_output copying of strings and source_files with a copier cache.

15 years agoFix to_string for constant-block case.
Roland McGrath [Fri, 21 Aug 2009 02:42:44 +0000 (19:42 -0700)] 
Fix to_string for constant-block case.

15 years agoFix --enable-gprof for C++.
Roland McGrath [Fri, 21 Aug 2009 02:41:34 +0000 (19:41 -0700)] 
Fix --enable-gprof for C++.

15 years agoIt compiles, but is broken: we never create shapes
Petr Machata [Thu, 20 Aug 2009 15:45:18 +0000 (17:45 +0200)] 
It compiles, but is broken: we never create shapes

* more ways of brokenness to come when the above gets fixed ;)

15 years agoRevert "Hack around invalid iterator problems"
Petr Machata [Thu, 20 Aug 2009 12:58:26 +0000 (14:58 +0200)] 
Revert "Hack around invalid iterator problems"

... in preparation to merge

15 years agoFix emitting some VSs
Petr Machata [Thu, 20 Aug 2009 12:43:50 +0000 (14:43 +0200)] 
Fix emitting some VSs

15 years agoAdd `attr' parameter to form_constaint_t::satisfied
Petr Machata [Thu, 20 Aug 2009 12:03:52 +0000 (14:03 +0200)] 
Add `attr' parameter to form_constaint_t::satisfied

15 years agoAdd dwarfcmp -l to show all differences.
Roland McGrath [Thu, 20 Aug 2009 08:19:17 +0000 (01:19 -0700)] 
Add dwarfcmp -l to show all differences.

15 years agoDiagnose reference mismatches with more detail.
Roland McGrath [Thu, 20 Aug 2009 05:03:58 +0000 (22:03 -0700)] 
Diagnose reference mismatches with more detail.

15 years agoMerge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf
Roland McGrath [Thu, 20 Aug 2009 04:22:35 +0000 (21:22 -0700)] 
Merge branch 'dwarf' of ssh://git.fedorahosted.org/git/elfutils into dwarf

15 years agodwarf_output construction revamp for ref handling.
Roland McGrath [Thu, 20 Aug 2009 04:22:24 +0000 (21:22 -0700)] 
dwarf_output construction revamp for ref handling.

15 years agoWork on abbrev generation
Petr Machata [Wed, 19 Aug 2009 18:45:47 +0000 (20:45 +0200)] 
Work on abbrev generation

15 years agodwarflint: Support DW_FORM_flag_present
Petr Machata [Wed, 19 Aug 2009 18:25:54 +0000 (20:25 +0200)] 
dwarflint: Support DW_FORM_flag_present

15 years agodwarflint: Reorganize data structures
Petr Machata [Wed, 19 Aug 2009 13:47:15 +0000 (15:47 +0200)] 
dwarflint: Reorganize data structures

* ... to elimiate holes where possible
* and get rid of dwarf_64/addr_64, use offset_size/address_size instead
* also DW_FORM_ref_addr now has address_size in dwarf 2

15 years agodwarflint: Allow DW_FORM_sec_offset as a form in rangeptr and lineptr
Petr Machata [Wed, 19 Aug 2009 11:36:50 +0000 (13:36 +0200)] 
dwarflint: Allow DW_FORM_sec_offset as a form in rangeptr and lineptr

15 years agodwarflint: Consolidate checking and relocation of attribute values
Petr Machata [Tue, 18 Aug 2009 18:32:26 +0000 (20:32 +0200)] 
dwarflint: Consolidate checking and relocation of attribute values

* This was done to add DW_FORM_sec_offset, but the structure of the code
  wasn't such that would make this addition easy.  The revamp ended up
  being quite extensive, and I never got around to checking whether the
  support for the new form really works.
* Checked on all elfutils ELF files that old and new dwarflint emit the
  same messages.

15 years agoPlug leaks.
Roland McGrath [Mon, 17 Aug 2009 05:56:53 +0000 (22:56 -0700)] 
Plug leaks.

15 years agoAdd dwarf::debug_info_entry::identity_type typedef, make it uintptr_t instead of...
Roland McGrath [Mon, 17 Aug 2009 05:22:51 +0000 (22:22 -0700)] 
Add dwarf::debug_info_entry::identity_type typedef, make it uintptr_t instead of Dwarf_Off.

15 years agoCosmetic bit
Petr Machata [Thu, 13 Aug 2009 19:15:28 +0000 (21:15 +0200)] 
Cosmetic bit

15 years agoReindent one function
Petr Machata [Tue, 11 Aug 2009 16:58:37 +0000 (18:58 +0200)] 
Reindent one function
- left it unindented in previous commits to make (lack of) changes
  clearly visible

15 years agoSupport gaps that need to output patch value non-verbatim
Petr Machata [Tue, 11 Aug 2009 16:57:36 +0000 (18:57 +0200)] 
Support gaps that need to output patch value non-verbatim
- use that to fix wrong sibling references in multi-CU files
- perhaps will be useful for emitting relocations?

15 years agoSupport DW_FORM_bock VS_constant data
Petr Machata [Tue, 11 Aug 2009 15:19:38 +0000 (17:19 +0200)] 
Support DW_FORM_bock VS_constant data

15 years agoInitialize d_off, some nits
Petr Machata [Tue, 11 Aug 2009 14:45:41 +0000 (16:45 +0200)] 
Initialize d_off, some nits

15 years agoSimplify creation of new sections in writer.cc
Petr Machata [Mon, 10 Aug 2009 14:36:39 +0000 (16:36 +0200)] 
Simplify creation of new sections in writer.cc

15 years agoHandle endians
Petr Machata [Mon, 10 Aug 2009 12:26:05 +0000 (14:26 +0200)] 
Handle endians

15 years agoMerge branch 'dwarf' into pmachata/dwarf-writer
Petr Machata [Fri, 7 Aug 2009 15:46:24 +0000 (17:46 +0200)] 
Merge branch 'dwarf' into pmachata/dwarf-writer

15 years agoEmit siblings
Petr Machata [Fri, 7 Aug 2009 15:45:57 +0000 (17:45 +0200)] 
Emit siblings

15 years agodwarflint: For CU version 2, DW_FORM_ref_addr is addr_64, for 3 it's dwarf_64
Petr Machata [Thu, 6 Aug 2009 15:50:19 +0000 (17:50 +0200)] 
dwarflint: For CU version 2, DW_FORM_ref_addr is addr_64, for 3 it's dwarf_64

15 years agodwarflint: Re-fix check for missing DW_AT_sibling
Petr Machata [Thu, 6 Aug 2009 15:49:00 +0000 (17:49 +0200)] 
dwarflint: Re-fix check for missing DW_AT_sibling

15 years agodwarflint: Use better wording for DW_FORM_strp vs. empty/missing .debug_str
Petr Machata [Thu, 6 Aug 2009 14:58:18 +0000 (16:58 +0200)] 
dwarflint: Use better wording for DW_FORM_strp vs. empty/missing .debug_str

15 years agoEmitting valid .debug_str, backpatching more general now
Petr Machata [Thu, 6 Aug 2009 14:41:16 +0000 (16:41 +0200)] 
Emitting valid .debug_str, backpatching more general now

15 years agoEncapsulate the string table
Petr Machata [Thu, 6 Aug 2009 13:13:44 +0000 (15:13 +0200)] 
Encapsulate the string table