Commit Graph

13 Commits

Author SHA1 Message Date
David Anderson
4e8d8c0f10 Add local Dwarf_Error and
rename variables to avoid shadowing confusion.

dwarfdump/configure
dwarfdump/configure.in
dwarfdump/dwarf_tsearchbal.c
dwarfdump/dwarfdump.c
dwarfdump/globals.h
dwarfdump/print_abbrevs.c
dwarfdump/print_aranges.c
dwarfdump/print_debugfission.c
dwarfdump/print_die.c
dwarfdump/print_frames.c
dwarfdump/print_gdbindex.c
dwarfdump/print_lines.c
dwarfdump/print_pubnames.c
dwarfdump/print_ranges.c
dwarfdump/print_sections.c
dwarfdump/tag_attr.c
dwarfdump/tag_tree.c

Add local Dwarf_Error and
rename variables to avoid shadowing confusion.
Make cross-build a littl easier.

libdwarf/Makefile.in
libdwarf/README
libdwarf/common.c
libdwarf/common.h
libdwarf/configure
libdwarf/configure.in
libdwarf/dwarf_die_deliv.c
libdwarf/dwarf_frame2.c
libdwarf/dwarf_line.c
libdwarf/dwarf_line_table_reader_common.c
libdwarf/dwarf_macro5.c
libdwarf/dwarf_print_lines.c
libdwarf/dwarf_ranges.c
libdwarf/gennames.c
2016-02-13 08:37:24 -08:00
David Anderson
d76395da7d Merge branch 'unattr'
Conflicts:
	libdwarf/ChangeLog
2016-02-06 14:28:35 -08:00
David Anderson
ade09dd9fc Removed a pair of global variables in favor of a new global function.
dwarfdump/dwarfdump.c
dwarfdump/globals.h
dwarfdump/print_die.c
dwarfdump/print_lines.c
dwarfdump/print_macro.c
dwarfdump/print_pubnames.c
dwarfdump/print_ranges.c

libdwarf/dwarf_macro5.c Fixed _import handling. Off by one.
libdwarf/dwarf_query.c trailing whitespace removed
2015-12-18 10:09:34 -08: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
99cf6e2d4e Minor updates to dwarfdump.
tag_attr.list (removing incorrect entries)
Updated version string.
2015-03-07 10:41:08 -08:00
Carlos Alberto Enciso
d7e16285dc Changes to support the checking of ranges generated by a compiler
that emits DWARF4. The check failed when:

a) The DW_TAG_compile_unit, does have a DW_AT_low_pc and DW_AT_ranges.
   Dwarfdump is expecting the pair DW_AT_low_pc and DW_AT_high_pc values.

b) The DW_AT_high_pc is an offset from DW_AT_low_pc.
   Dwarfdump is expecting the DW_AT_high_pc to be a relocated address.
2015-03-03 09:48:24 +00:00
David Anderson
ad33389a2c dwarfdump (not libdwarf): removed obsolete postal
address and web address about SGI.
Historical versions still shown in the
DWARFDUMPCOPYRIGHT file.
2015-01-31 09:42:29 -08:00
David Anderson
affafa89fb Removed trailing (and useless) whitespace from all the lines
containing it.  Many many files had such.
2014-01-29 15:02:07 -08:00
David Anderson
22cc16439d Update copyright year on a large number of files.
Everthing touched recently.
2012-11-17 13:31:29 -08:00
Carlos Alberto Enciso
82491fc2c7 Changes requested by David Anderson and described below. Also a general
change to make consistent use of 'if', 'for' and 'while'.

===================
dwarfdump.c lines 73-78  Any time an 'extern foo' appears in a .c or a .cc
file it represents a current or future error that cannot be easily detected
at compile time. Bad.

Instead, put print_attributes_encoding and current_cu_die_for_print_frames
declarations into appropriate .h files (possibly new one or ones?) and
include the header in each .c/.cc where it is needed. That prevents future
spelling errors from causing mysterious runtime failures due to argument
errors: the compiler will catch argument errors.

Now line 56-58 is special in that it refers to some windows thing, not
defined in  dwarfdump. So that one perhaps should or must stay as written.

===================
dwarfdump.c line 549: the variable 'bitmap' should be named something else.
bitmap is just too generic, not helpful to the reader. Easier for a
reviewer to see this sort of issue than the author :-)

Possibly local_section_bitmap? Somehow get 'section' in there in that
function-argument-name?

=======
dwarfdump.c: good catch on the indent errors in qsort_compare_compiler(),
I have no idea how I failed to run dicheck on that.

======
dwarfdump.c line 1043.  The 'Just for the moment' comment is odd. What
does that mean?  Why 'for the moment'? I am not going to try to guess
why you did that, but it has to be somehow wrong?
Either the code or the comment?

========
dwarfdump.c line 1162.  The comment says do not do reloc_flag = TRUE
yet you added exactly that!  Yikes! I don't know what to do about
this, but something has to change. Comment or statement. Can we detect
non-elf somehow? We probably already do, but...

===================
dwarfdump.c line 1630. Oops. Good catch on removing the mistaken extra
break;
2012-11-01 12:35:57 +00:00
David Anderson
7b98449471 Serious revisions to get dwarfdump and dwarfdump2 to work alike.
Mostly changing dwarfdump2.
2011-10-03 11:37:05 -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
637442ea0b Initial commit. Content is the libdwarf-20110113.tar.gz
last-released-libdwarf and dwarfdump.
2011-03-19 11:38:11 -07:00