Commit Graph

18 Commits

Author SHA1 Message Date
David Anderson
8f0690dae1 Improve the output with respect to things tested.
More like other configure setups.
dwarfdump/configure.in

Regenerate.
dwarfdump/configure

Fix spelling mistakes, and an erroneous . in column 1.
dwarfdump/dwarfdump.1

CFLAGS is no on HOST_CFLAGS.
libdwarf/Makefile.in

Improve the output with respect to things tested.
More like other configure setups.
libdwarf/configure.in

Regenerate.
libdwarf/configure
2016-05-19 13:47:52 -07:00
David Anderson
eb1472afac New bugr reports.
bugxml/data.txt

Now prints strings so that
control characters do not
cause problems. Easier to read too.
dwarfdump/Makefile.in
dwarfdump/NEWS
dwarfdump/dwarfdump.1
dwarfdump/dwarfdump.c
dwarfdump/globals.h
dwarfdump/print_die.c
dwarfdump/print_frames.c
dwarfdump/print_lines.c
dwarfdump/print_macro.c
dwarfdump/print_macros.c
dwarfdump/sanitized.c

Removed trailing whitespace.
dwarfexample/simplereader.c

New checking for corrupt input.
libdwarf/dwarf_errmsg_list.c
libdwarf/dwarf_form.c
libdwarf/dwarf_line.c
libdwarf/dwarf_opaque.h
libdwarf/dwarf_query.c
libdwarf/dwarf_util.h
libdwarf/libdwarf.h.in
2016-05-06 08:26:36 -07:00
David Anderson
9bd64020d5 Mention the effec of zdebug on offsets
shown by dwarfdump.
dwarfdump/dwarfdump.1

Now we get the real section names from
libdwarf.
dwarfdump/print_aranges.c
dwarfdump/print_die.c
dwarfdump/print_lines.c
dwarfdump/print_ranges.c
dwarfdump/print_strings.c

Add functions to get the true
section names.
libdwarf/dwarf_die_deliv.c
libdwarf/dwarf_line.c
libdwarf/libdwarf.h.in

Document the new functions. Version 2.35
libdwarf/libdwarf2.1.mm

Regenerate.
libdwarf/libdwarf2.1.pdf
2015-11-27 15:44:13 -08:00
David Anderson
8b2ac2b95a * dwarfdump.1: Documented -x line5=.
* dwarfdump.c: Revised -g so it no longer turns on -i.
       Revised the meaning of -g to mean use old loclist interfaces
       (for testing the older interfaces with dwarfdump).
     * print_die.c(get_small_encoding_integer_and_name): a dwarf_dealloc
       referenced err whereas *err was correct.
       Revised loclist output making it look a bit like DWARF5
       even for DWARF2,3,4 output. Reads better, I think.
     * print_locs.c: -l gets a 'no longer supported' message

dwarfdump/dwarfdump.1
dwarfdump/dwarfdump.c
dwarfdump/print_die.c
dwarfdump/print_locs.c

     * dwarf_alloc.c: Added new checks so  user mixing up
       tied dbg with regular dbg won't lead to crashes
       when calling dwarf_dealloc or dwarf_finish().
       Zeroed out some fields to recognize space deallocated.
     * dwarf_die_deliv.c: Added support of split dwarf
       DW_AT_[GNU_]ranges_base
     * dwarf_form.c: Load string from tieddbg when appropriate.
     * dwarf_harmless.c: On free() zero out a field to show that was done.
     * dwarf_loc.c: Correct the handling of split dwarf loclist.
     * dwarf_opaque.h: Add cc_ranges_base_present for split dwarf.
       Add _dwarf_get_ranges_base_attr_from_tied() for split dwarf.
     * dwarf_query.c: Get and remember skeleton compilaton unit
       DW_AT_[GNU_]ranges_base from tied objects for split dwarf.
     * dwarf_ranges.c: If a tied object present, look for ranges
       there, not in split dwarf object.
     * dwarf_util.c: Housekeeping zeros out fields to ensure not
       used after dealloc.

libdwarf/dwarf_alloc.c
libdwarf/dwarf_die_deliv.c
libdwarf/dwarf_form.c
libdwarf/dwarf_harmless.c
libdwarf/dwarf_loc.c
libdwarf/dwarf_loc2.c
libdwarf/dwarf_opaque.h
libdwarf/dwarf_original_elf_init.c
libdwarf/dwarf_query.c
libdwarf/dwarf_ranges.c
libdwarf/dwarf_util.c
2015-11-07 14:42:52 -08:00
David Anderson
c5ab119f8c Adding -x tied=<path> option to dwarfdump and added
code in libdwarf to go to the other, the tied, object
and retrieve .debug_addr data.
dwarfdump/ChangeLog
dwarfdump/dwarfdump.1
dwarfdump/dwarfdump.c
dwarfdump/print_die.c
libdwarf/ChangeLog
libdwarf/Makefile.in
libdwarf/dwarf_alloc.c
libdwarf/dwarf_die_deliv.c
libdwarf/dwarf_error.c
libdwarf/dwarf_form.c
libdwarf/dwarf_opaque.h
libdwarf/dwarf_original_elf_init.c
libdwarf/dwarf_query.c
dwarf_tied.c
libdwarf/libdwarf.h.in
2015-09-11 09:04:05 -07:00
David Anderson
934529a0b7 Update NEWS for libdwarf and dwarfdump.
Added the new -ku -kuf -kD -kG -O file=<path>
options to dwarfdump.1
2015-01-08 17:34:04 -08:00
David Anderson
6caed6d274 Here we fix some warnings and get gdbindex
to print better.  And get some section names to
come out exactly right (but not all, yet).
dwarfdump/dwarfdump.1
dwarfdump/dwarfdump.c
dwarfdump/print_gdbindex.c
dwarfdump2/dwarfdump.1
dwarfdump2/dwarfdump.cc
dwarfdump2/print_debugfission.cc
dwarfdump2/print_die.cc
dwarfdump2/print_gdbindex.cc

Here we fix some warnings.
libdwarf/dwarf_alloc.c
libdwarf/dwarf_alloc.h
libdwarf/dwarf_gdbindex.c
libdwarf/dwarf_loc.c
libdwarf/dwarf_query.c
libdwarf/dwarf_sort_line.c

Here we fix some warnings.
libdwarf/dwarf_tsearchhash.c
tsearch/dwarf_tsearchhash.c

Here we fix some warnings
libdwarf/dwarf_util.c
libdwarf/libdwarf.h.in
libdwarf/pro_alloc.c
libdwarf/pro_arange.c
libdwarf/pro_forms.c
libdwarf/pro_reloc.c
libdwarf/pro_types.c
2014-08-04 13:48:31 -07:00
David Anderson
b37e94d0a7 Adds printing of the .gdb_index section header
and the -I dwarfdump option to select that section.
2014-06-29 11:55:51 -07:00
David Anderson
c86efe7f0b Refined the dwarfdump.1 man pages to describe the new -kE
option more clearly.
2012-11-15 07:33:12 -08:00
David Anderson
a406a94877 Merge branch 'carlos_enciso' of ssh://git.code.sf.net/p/libdwarf/code into carlos_enciso
C

dwarfdump/ChangeLog2012
dwarfdump/dwarfdump.1 : tweaks to match what Linux does for new E and Sv.
dwarfdump/dwarfdump.c : Commentary enhancement.
dwarfdump2/checkutil.cc : Make it work properly, as in dwarfdump.
dwarfdump2/checkutil.h : Make it work like dwarfdump version.
dwarfdump2/dwarfdump.1 : tweaks to match what Linux does for E and Sv
dwarfdump2/dwarfdump.cc : To match dwarfdump output.
dwarfdump2/print_die.cc : To match dwarfdump output.
dwarfdump2/print_reloc.cc : To match dwarfdump output.
dwarfdump2/print_reloc.h : now present as in dwarfdump
libdwarf/dwarf.h : fix copyright date
libdwarf/dwarf_reloc_arm.h : fix copyright date
libdwarf/dwarf_reloc_mips.h : fix copyright date
libdwarf/dwarf_reloc_ppc.h : fix copyright date
libdwarf/dwarf_reloc_ppc64.h : fix copyright date
libdwarf/dwarf_reloc_x86_64.h : fix copyright date
libdwarf/libdwarf.h : fix uncommented argument names to be comments.
2012-11-14 16:19:01 -08:00
Carlos Alberto Enciso
649a4bb434 Update man pages for dwarfdump and dwarfdump2 with new options.
Minor typo error is usage strings.
2012-11-12 10:34:38 +00:00
David Anderson
857c560c6f Clarifying in dwarfdump.1 where URI style input is expected on the command line. 2011-10-24 08:34:31 -07:00
David Anderson
5a2d823fa7 Now we do uri-to-text translation on command options and strings.
Fixed some indent issues.
Fixed some constness issues.
Updated the dwarfdump.1 man page to be complete and more readable
than before.
2011-10-23 13:51:27 -07:00
David Anderson
4920a0d8b6 Now dwarfdump.1 is complete and correct documentation.
Now .debug_ranges is no longer printed by default, DWARF does not
guarantee that can work as reading the section itself.
Updated version strings.
2011-10-23 08:03:03 -07:00
David Anderson
2871177bc5 dwarfdump
DavidAnderson <davea42@earthlink.net>
      * checkutil.c (ProcessBucketGroup): Deleted unused
        local variables.
      * common.c: Updated version string.
      * dwarfdump.1: Made the -k discussion more complete and accurate.
        Most option details are in the dwarfdump help/usage message, not
        in dwarfdump.1, to keep the man page small.
      * dwarfdump.c: Updated version string. Made more variables static
        in recognition they are only touched in this file.  Added {} on
        some if statements to make the body clear. Parenthesized a
        complex test with && || to clarify intent.  Added sanity testing
        of the 'current compiler' count and its use.
      * globals.h: Added safe_strcpy() prototype as it is used by multiple
        source files so we need a visible prototype.
      * print_aranges.c: Add 'arange end' printing (it is a real DWARF
        record type, so should be printed). Add a test to avoid duplicated
        die printing and error-counting when it is not requested.
      * print_die.c: An = in an if corrected to ==.  Parenthesized a
        complex test with && || to clarify intent.  Deleted an unused
        local variable.
      * print_lines.c: Deleted unused local variables. Added {} for each
        struct in an array so the initialization gets done right.
      * tag_attr.c: Deleted an unused local variable.
      * tag_tree.c: Deleted an unused local variable.

dwarfdump2
2010-06-04  DavidAnderson <davea42@earthlink.net>
      * dwarfdump.cc: Updated DWARF_VERSION string.
2011-06-04 14:22:26 -07:00
David Anderson
7647aaeca8 Everything changed. New indentation. Many new DWARF correctness
tests.  New options.   Error summaries reported by compiler name.
2011-03-29 13:43:05 -07:00
David Anderson
052474a336 These are small changes for DWARF4 and for Makefile cleanup
lines in 'clean' and 'distclean' .  And to match the newest
line formats (uri format) for file names from the line section.
2011-03-19 12:00:52 -07:00
David Anderson
637442ea0b Initial commit. Content is the libdwarf-20110113.tar.gz
last-released-libdwarf and dwarfdump.
2011-03-19 11:38:11 -07:00