summaryrefslogtreecommitdiffstats
path: root/libdw
Commit message (Collapse)AuthorAgeFilesLines
* Add dwarf_endianity_string and dwarf_decimal_sign_string.upstream/mjw/dwarfstringsMark Wielaard2012-08-166-1/+127
| | | | | | | dwarf_endianity_string for DW_END codes used with DW_AT_endianity. dwarf_decimal_sign_string for DW_DS codes used with DW_AT_decimal_sign. Signed-off-by: Mark Wielaard <[email protected]>
* libdw: Add dwarfstrings functions.Mark Wielaard2012-08-1620-2/+964
| | | | | | | | | | | | | | Introduce dwarf_access_string, dwarf_attr_string, dwarf_calling_convention_string, dwarf_discr_list_string, dwarf_encoding_string, dwarf_form_string, dwarf_identifier_case_string, dwarf_inline_string, dwarf_lang_string, dwarf_line_extended_opcode_string, dwarf_line_standard_opcode_string, dwarf_locexpr_opcode_string, dwarf_ordering_string, dwarf_tag_string, dwarf_virtuality_string, dwarf_visibility_string from dwarf branch. Remove similar functions from readelf and tests. Signed-off-by: Mark Wielaard <[email protected]>
* Rewrite DWARF string functions using known-dwarf macros.Mark Wielaard2012-08-163-4/+10
| | | | | | | | readelf and tests were using hard coded string tables to produce DWARF string constants. Use the known-dwarf macros to redefine these and reduce code. Technique comes from dwarf branch dwarfstrings.c. Signed-off-by: Mark Wielaard <[email protected]>
* libdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.Mark Wielaard2012-08-0913-12/+210
| | | | | | | | | | | | | | | DWZ multifile forms http://www.dwarfstd.org/ShowIssue.php?issue=120604.1 DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt reference an alternative debuginfo file. dwarf_begin and dwarf_begin_elf will try to use this automatically. There are no user visible changes to the libdw interface. dwarf_formref_die, dwarf_formstring and dwarf_formudata can now return a Dwarf_Die which comes from a CU in the alternative Dwarf descriptor. __libdw_read_offset was adjusted to take an alternative Dwarf descriptor into account. Signed-off-by: Mark Wielaard <[email protected]>
* Add DW_OP_GNU_parameter_ref to dwarf.h and handle it in readelf.Mark Wielaard2012-07-262-0/+5
| | | | | | | DW_OP_GNU_parameter_ref takes as operand a 4 byte CU relative reference to the abstract optimized away DW_TAG_formal_parameter. Signed-off-by: Mark Wielaard <[email protected]>
* Correct spelling of DW_LANG_ObjC in dwarf.h.Mark Wielaard2012-07-263-2/+8
| | | | | | Fix usage in dwarf_aggregate_size. Signed-off-by: Mark Wielaard <[email protected]>
* libdw: Add DWARF4 DW_ATE_UTF.Mark Wielaard2012-07-262-0/+5
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.Mark Wielaard2012-06-272-0/+19
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Add low-level support for .debug_macro.Mark Wielaard2012-06-275-1/+19
| | | | Signed-off-by: Mark Wielaard <[email protected]>
* Update name, license and contributor policy.Mark Wielaard2012-06-05118-4694/+2242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change name from "Red Hat elfutils" to "elfutils". * Update license of standalone tools and test from GPLv2 to GPLv3+. * Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+. * Add Developer Certificate of Origin based contributor policy. top-level: - COPYING: Upgraded from GPLv2 to GPLv3. - CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files. - NEWS: Added note about new contribution and license policy. - Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST. - configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'. backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf: - All files updated to GPLv2/LGPLv3+. Except some very small files (<5 lines) which didn't have any headers at all before, the linker .maps files and the libcpu/defs files which only contain data and libelf/elf.h which comes from glibc and is under LGPLv2+. config: - elfutils.spec.in: Add new License: headers and new %doc files. - Update all license headers to GPLv2/LGPLv3+ for files used by libs. src, tests: - All files updated to GPLv3+. Except for the test bz2 data files, the linker maps and script files and some very small files (<5 lines) that don't have any headers. Signed-off-by: Richard Fontana <[email protected]> Signed-off-by: Mark Wielaard <[email protected]>
* Remove .mtn-ignore and .cvsignore files.Mark Wielaard2012-06-051-1/+0
| | | | We use .gitignore these days.
* dwarf_highpc: Handle DW_AT_high_pc being a constant offset from DW_AT_low_pc.Mark Wielaard2012-04-282-5/+29
|
* Fix bug using dwarf_next_unit to iterate over .debug_typesTom Tromey2012-03-212-35/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | * libdw_findcu.c (findcu_cb): Move earlier. (__libdw_intern_next_unit): Add new CU to search tree here... (__libdw_findcu): ... not here. * typeiter.c: New file. * run-typeiter.sh: New file. * testfile59.bz2: New file. * Makefile.am (noinst_PROGRAMS): Add typeiter. (TESTS): Add run-typeiter.sh. (EXTRA_DIST): Add run-typeiter.sh, testfile59.bz2. (typeiter_LDADD): New variable. If you call dwarf_next_unit to iterate over .debug_types, then call dwarf_offdie_types, you can see a failure if some earlier call happened to call __libdw_intern_next_unit via dwarf_formref_die. What happens is that __libdw_intern_next_unit updates the Dwarf's next_tu_offset, but does not add the TU to the TU search tree. So, the call to dwarf_offdie_types does not find the TU in the tree, and will not search any more, causing a failure. This fix changes __libdw_intern_next_unit to add the TU to the search tree, rather than relying on __libdw_findcu to do it.
* Handle DW_FORM_sec_offset in dwarf_formudata.Mark Wielaard2012-01-312-6/+82
|
* Run gawk on config/known-dwarf.awk.Mark Wielaard2011-10-312-1/+5
|
* * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.Mark Wielaard2011-07-142-1/+5
|
* Add DW_OP_GNU_const_type/regval_type/deref_type/convert/reinterpret.Jakub Jelinek2011-05-172-1/+12
|
* libdw: Sanity check end of section against cu_data () of die->cu.Mark Wielaard2011-04-262-2/+7
| | | | | | A Dwarf_CU can come from either the debug_info compile unit or a debug_type type unit section. Use the correct one for sanity checking whether we have a truncated section.
* Merge branch 'pmachata/rerequest-tag'Petr Machata2011-03-241-0/+5
|\
| * Handle repeated requests for invalid abbreviationPetr Machata2011-03-161-0/+5
| |
* | Add support for call_site and entry_value to dwarf.h and readelf.Mark Wielaard2011-03-232-0/+25
|/ | | | | | | | | | New tags DW_TAG_GNU_call_site and DW_TAG_GNU_call_site_parameter. New attributes DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call, DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites, and DW_AT_GNU_all_source_call_sites. New operation DW_OP_GNU_entry_value.
* Reject requests for abbreviation with code 0Petr Machata2011-03-102-1/+10
|
* Check for truncated section in dwarf_child.Petr Machata2011-03-092-6/+19
|
* Support reading .zdebug_* DWARF sections compressed via zlib.Roland McGrath2011-02-234-3/+128
|
* DWARF people changed their mind about the value.Roland McGrath2010-10-141-1/+1
|
* dwarf.h: Add DW_LANG_Go.Roland McGrath2010-10-132-0/+5
|
* dwarf_getaranges: Avoid alloca to cope with huge .debug_aranges sections.Roland McGrath2010-10-052-17/+40
|
* Handle DW_OP_GNU_implicit_pointer.Roland McGrath2010-08-309-5/+134
|
* Add dwfl_dwarf_line, addr2line -F to print out more line info bits.Roland McGrath2010-08-242-0/+9
|
* Fix dwarf_formref_die DW_FORM_ref_sig8 hash table insertion.Roland McGrath2010-07-272-1/+5
|
* Back out dwarf_cfi_validate_fde.Roland McGrath2010-06-234-55/+6
|
* Fix check_constant_offset braino.Roland McGrath2010-06-222-7/+4
|
* Fix signed comparison warning in extended opcode parsing.Roland McGrath2010-06-222-3/+8
|
* Add some missing DWARF constants and readelf support for them.Roland McGrath2010-06-222-0/+9
|
* Fix readelf for large SLEB128 values.Roland McGrath2010-06-212-7/+16
|
* Finish .debug_types support in libdw and readelf.Roland McGrath2010-06-208-23/+65
|
* Fix up some holes in .debug_types support.Roland McGrath2010-06-207-19/+19
|
* Merge branch 'roland/debug_types'Roland McGrath2010-06-2020-102/+429
|\ | | | | | | | | | | Conflicts: libdw/ChangeLog libdw/libdw.map
| * Handle reading .debug_types section.Roland McGrath2010-06-1620-102/+408
| |
* | Record new line table fields, export APIs to fetch them.Roland McGrath2010-06-189-38/+289
| |
* | dwarf_next_cfi.c: Fix version 4 return_address_register decoding.Roland McGrath2010-06-162-1/+3
|/
* Add new dwarf_cfi_validate_fde call.Roland McGrath2010-06-166-8/+85
|
* Canonicalize CIE fde_encoding at interning.Roland McGrath2010-06-162-1/+28
|
* Fix some corners of DW_EH_PE_* handling.Roland McGrath2010-06-162-9/+26
|
* Check for CIE initial instructions that bogusly change the PC.Roland McGrath2010-06-163-2/+8
|
* Fix error diagnosis for dwarf_formref on DW_FORM_ref_sig8.Roland McGrath2010-06-153-2/+25
|
* Handle DWARF4 .debug_frame format.Roland McGrath2010-06-152-6/+31
|
* Handle DWARF4 .debug_line format.Roland McGrath2010-06-152-38/+87
|
* Clean up IDX_debug_* list.Roland McGrath2010-06-143-9/+6
|
* Remove unused CIE_VERSION macro.Roland McGrath2010-06-012-4/+2
|