Commit Graph

19 Commits

Author SHA1 Message Date
David Anderson
3f7aba30b8 dwarfdump.c,globals.h,print_aranges.c,print_die.c,
print_frames.c,print_lines.c,print_locs.c,print_macro.c,
      print_pubnames.c,print_reloc.ckprint_static_funcs.c,
      print_static_vars.c,print_strings.c,print_types.c,
      print_weaknames.c: Removed global Dwarf_Error err
      and provided local Dwarf_Error as needed.

libdwarf2.1.mm: Added dwarf_lineoff_b() documentation.
Fixed a typo in dwarf_formexprloc() documentation.
libdwarf2.1.pdf: Regenerated. Version 2.41
2016-02-13 12:53:11 -08: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
0ffd1b6cd0 Removed duplicate call to get_scndata() from print_reloc.c 2013-08-08 08:43:42 -07:00
David Anderson
791398ca4d Makes it easier to build under FreeBSD.
Fixes signed/unsigned comparison issues noted by -Wsign-compare
2013-01-16 15:51:41 -08:00
David Anderson
67aea7c780 Updated version strings:
dwarfdump/common.c
dwarfdump/dwarfdump.c
dwarfdump2/common.cc
dwarfdump2/dwarfdump.cc

Thanks to Carlos Alberto Enciso for the following:
Add const to remove compiler warnings.
dwarfdump/print_reloc.c
A couple more places now match our if style, somehow
not noticed earlier.
libdwarf/dwarf_line.h
2012-11-20 10:35:53 -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
David Anderson
62f183b7b3 dwarfdump/checkutil.h: Two functions named here are not actually global, hence not appropriate here.
dwarfdump/dwarfdump.c: #include uri.h so it will compile without error.
dwarfdump/print_reloc.c: Fix printf to be %lx to match argument type.
dwarfdump2/dwarfdump.cc: Using C++ bool here and changing fprintf to cerr.
dwarfdump2/print_die.cc: Obvious trivial changes to get it to compile.
dwarfdump2/print_lines.cc:Obvious trivial changes to get it to comp
ile.
dwarfdump2/tag_tree.cc:#include naming.h
libdwarf/dwarf_elf_access.c: Fix typo in PPC64 #if
libdwarf/dwarf_reloc_arm.h: tweak comments at top.
libdwarf/dwarf_reloc_mips.h: tweak comments at top.
libdwarf/dwarf_reloc_ppc.h: tweak comments at top.
libdwarf/dwarf_reloc_ppc64.h: tweak comments at top.
libdwarf/dwarf_reloc_x86_64.h: tweak comments at top.
2012-11-08 13:52:49 -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
Carlos Alberto Enciso
f57039e07c Isolate the relocations definitions for the Windows version;
also the string names for those values have been moved from Dwarfdump
into Libdwarf and put in separate files: dwarf_reloc_xxx.h, where xxx
is one of: arm, mips, ppc, ppc64 and x86_64.
2012-09-26 09:02:40 +01:00
unknown
2c52668c4c Changes by SN Systems (Carlos Alberto Enciso), that include our modifications. 2012-07-25 16:03:36 +01:00
David Anderson
a08a8549e3 Now we support .debug_types (type unit DIEs) in -i output. 2011-10-29 16:32:34 -07:00
David Anderson
cfee82e8d5 More changes which align the output of dwarfdump with dwarfdump2.
And some improvements in the error handling and output for both.
2011-10-06 12:16:37 -07: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
5900623723 Minor tweaks of dwarfdump (no change in output) and updated
parts of dd2 to match dwarfdump. Mainly in handling relocations,
so dd2 now handles rela printing as dd has done for a while.
2011-09-26 11:43:03 -07:00
David Anderson
4c9b0f1ae8 * dwarfdump.c,print_aranges.c,print_reloc.c: A few indents
did not match the standard multiple-of-4-spaces. Corrected.
2011-06-05 07:37:26 -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
637442ea0b Initial commit. Content is the libdwarf-20110113.tar.gz
last-released-libdwarf and dwarfdump.
2011-03-19 11:38:11 -07:00