Blame dwarfdump/ChangeLog2016

Packit cdaae3
2016-11-24 David Anderson
Packit cdaae3
    * common.c,dwarfdump.c,tag_attr.c,tag_tree.c:
Packit cdaae3
      Update version strings.
Packit cdaae3
2016-11-24 David Anderson
Packit cdaae3
    * Makefile.in: Clean *~
Packit cdaae3
2016-11-22  David Anderson
Packit cdaae3
    * print_abbrevs.c: Some -k abbrev warnings did not make it clear that
Packit cdaae3
      they were checking against a heuristic sanity-check value
Packit cdaae3
      for the maximum number of attributes, not a genuine
Packit cdaae3
      maximum.
Packit cdaae3
2016-11-22  David Anderson
Packit cdaae3
    * tag_attr.c: Remove bogus blank line with trailing spaces.
Packit cdaae3
2016-11-11  David Anderson
Packit cdaae3
    * print_frames.c: Apply fix to local_dwarf_decode_s_leb128_chk so
Packit cdaae3
      it matches libdwarf dwarf_leb.c.  A fix for certain bit
Packit cdaae3
      pattern provoking undefined behavior in C..
Packit cdaae3
2016-11-01  David Anderson
Packit cdaae3
    * tag_attr.c,tag_common.h,tag_attr_ext.list: Adding 
Packit cdaae3
      Ada GNAT gcc attributes DW_AT_GNU_numerator,
Packit cdaae3
      DW_AT_GNU_denominator, DW_AT_GNU_bias in the extended
Packit cdaae3
      table for checking.
Packit cdaae3
2016-10-21  David Anderson
Packit cdaae3
    * common.c,dwarfdump.c,tag_attr.c,tag_tree.c: Update
Packit cdaae3
      version strings.
Packit cdaae3
2016-09-30  David Anderson
Packit cdaae3
    * configure.in: Add additional -fsanitize tests to
Packit cdaae3
      --enable-sanitize option.
Packit cdaae3
    * configure: Regenerated.
Packit cdaae3
    * print_die.c: Ensure << applied to unsigned
Packit cdaae3
      to avoid undefined operation. We were getting
Packit cdaae3
      officially undefined behavior.
Packit cdaae3
    * tag_attr_ext.list: Removed trailing whitespace from 
Packit cdaae3
      two lines.
Packit cdaae3
2016-09-30  David Anderson
Packit cdaae3
    * makename.c: The unused static function value_hashfunc()
Packit cdaae3
      has been removed.
Packit cdaae3
    * tag_attr.c, tag_tree.c: Changed (1<
Packit cdaae3
      (((unsigned)1)<
Packit cdaae3
      (during dwardump build) about the left shift.
Packit cdaae3
2016-09-27  David Anderson
Packit cdaae3
    * esb.c: Deleted file-static variable that was only
Packit cdaae3
      used for a test. No longer needed.
Packit cdaae3
2016-09-27  David Anderson
Packit cdaae3
    * print_die.c: Changed the name of experimental
Packit cdaae3
      loclist operators from LLE to LLEX
Packit cdaae3
      as these are in use for certain DWARF4 loclist
Packit cdaae3
      providers.  The DWARF5 LLE don't use the same
Packit cdaae3
      numberic values as the experimental ones.
Packit cdaae3
2016-09-23  David Anderson
Packit cdaae3
    * Makefile.in: A mistake here meant every compile
Packit cdaae3
      rebuilds all of dwarfdump even with a trivial change.
Packit cdaae3
      Fixed so now trivial changes just rebuild a minimum.
Packit cdaae3
      The dependencies here remain incomplete: if you change
Packit cdaae3
      a data structure you must 'make clean' and recompile
Packit cdaae3
      everything in dwarfdump.
Packit cdaae3
2016-09-22  David Anderson
Packit cdaae3
    * dwarfdump.c,print_die.c,print_frames.c,print_gdbindex.c:
Packit cdaae3
      In case of error, dwarf_dealloc the error once it
Packit cdaae3
      has been printed. Avoiding a small memory leak.
Packit cdaae3
2016-09-21  David Anderson
Packit cdaae3
    * configure.in: Supports --enable-sanitize which
Packit cdaae3
      sets dwfsanitize so build uses -fsanitize=address .
Packit cdaae3
    * configure: Regenerated.
Packit cdaae3
    * Makefile.in: Now uses dwfsanitize (when set)
Packit cdaae3
      during builds. Added dwarf_tsearchbal.c to the makename
Packit cdaae3
      build so dwarf_tsearchbal.o is available for tag_tree_build
Packit cdaae3
      and tag_attr _buildprograms at build time.
Packit cdaae3
    * dwarfdump.c: Moved all static struct esb_s variables
Packit cdaae3
      to the top level and ensure they are destructed on
Packit cdaae3
      normal exit. Destruct all static makename strings, abbrev
Packit cdaae3
      data, sanitized strings, and ranges strings.
Packit cdaae3
      Now all allocated memory is freed before a normal exit.
Packit cdaae3
    * esb.c: Added {} and commentary for clarity. 
Packit cdaae3
      esb_destructor now a bit more careful (redundantly but
Packit cdaae3
      helpful for a reader).
Packit cdaae3
    * globals.h: Declared destructors allowing access to
Packit cdaae3
      static data allocated in certain source files.
Packit cdaae3
      Fixed the selftest code.
Packit cdaae3
    * macrocheck.c: Correct selftest code.
Packit cdaae3
    * makename.c: Now uses dwarf_tsearch to keep a record of
Packit cdaae3
      strings it allocates and avoids duplicating strings.
Packit cdaae3
      A destructor gives a way to free the allocated memory.
Packit cdaae3
    * makename.h: Added declaration of makename_destructor().
Packit cdaae3
    * print_abbrevs.c: Implemented destruct_abbrev_array() to
Packit cdaae3
      clean up a static array.
Packit cdaae3
    * print_die.c: Tidied up declaration/constructor pairs
Packit cdaae3
      so it's easier to see that all declarations have a constructor
Packit cdaae3
      call.
Packit cdaae3
    * print_lines.c: Tidied up declaration/constructor pair
Packit cdaae3
      so it's easier to see that the constructor is called.
Packit cdaae3
    * print_locs.c: Tidied up declaration/constructor pair
Packit cdaae3
      so it's easier to see that the constructor is called.
Packit cdaae3
    * print_ranges.c: Implemented ranges_esb_string_destructor()
Packit cdaae3
      to destruct local static esb string at normal dwarfdump exit.
Packit cdaae3
    * sanitized.c: Implemented sanitized_string_destructor()
Packit cdaae3
      to destruct local static esb string at normal dwarfdump exit.
Packit cdaae3
    * strstrnocase.c: Code could do *ct past end of string.
Packit cdaae3
      Fixed to avoid that.
Packit cdaae3
2016-09-15  David Anderson
Packit cdaae3
    * configure.in: Added check for unistd.h.
Packit cdaae3
    * configure: regenerated.
Packit cdaae3
    * dwarfdump.c,tag_attr.c,tag_tree.c:  Add #ifdef HAVE_UNISTD_H
Packit cdaae3
      for unistd.h include.
Packit cdaae3
2016-09-15  David Anderson
Packit cdaae3
    * tag_tree.c: Two local variables had no initializer.
Packit cdaae3
      Though adding the initializers is logically unnecessary
Packit cdaae3
      it is the standard way to code in libdwarf/dwarfdump.
Packit cdaae3
2016-09-13  David Anderson
Packit cdaae3
    * print_die.c: Shortened the printing of DW_AT_discr_list
Packit cdaae3
      to improve readability.
Packit cdaae3
2016-09-09  David Anderson
Packit cdaae3
    * tag_attr.c,tag_tree.c: Further improvements to ensure we do not run
Packit cdaae3
      off the ends of rows or columns.
Packit cdaae3
      New commentary on array contents of generated arrays.
Packit cdaae3
    * tag_tree.c: Further improvements to ensure we do not run
Packit cdaae3
      off the ends of rows or columns.
Packit cdaae3
    * tag_attr_ext.list: Removed accidental extra characters.
Packit cdaae3
      Added DW_AT_GNU_dwo_id to dW_TAG_compile_unit.
Packit cdaae3
    * tag_common.c: The static declaration of the internal tables
Packit cdaae3
      used to build table source code was not checked so there
Packit cdaae3
      were some array entries stepped on. fixed.
Packit cdaae3
    * tag_common.h: Added commentary.  Made the build-time-only
Packit cdaae3
      static array declaration size macros more explicit.
Packit cdaae3
2016-09-09  David Anderson
Packit cdaae3
    * print_die.c: Fixed compiler warnings introduced
Packit cdaae3
      in previous commit.
Packit cdaae3
2016-09-08  David Anderson
Packit cdaae3
    * print_die.c:  Now we use the new dwarf_discr_list()
Packit cdaae3
      to read DW_AT_discr_list correctly and print it.
Packit cdaae3
    * tag_attr.c,tag_tree.c: Now we check for too-small and too-large
Packit cdaae3
      array sizes and stop the build in case of error.
Packit cdaae3
    * tag_common.h: Now the static array sizes match
Packit cdaae3
      the lists.
Packit cdaae3
2016-06-13  David Anderson
Packit cdaae3
    * sanitized.c: Added static keyword to declaration of
Packit cdaae3
      no_questionable_chars().
Packit cdaae3
    * print_frames.c: Added a warning about a useless
Packit cdaae3
      frame operator (if such appears, only checkedwith -f -vvv).
Packit cdaae3
      Ensure we print rows generated even if a pointless last row
Packit cdaae3
      (a break becomes continue).
Packit cdaae3
    * common.c,dwarfdump.c,tag_attr.c,tag_tree.c,gennames.c:
Packit cdaae3
      Update version string.
Packit cdaae3
2016-06-12  David Anderson
Packit cdaae3
    * common.c,dwarfdump.c,tag_attr.c,tag_tree.c,gennames.c:
Packit cdaae3
      Update version string.
Packit cdaae3
2016-06-12  David Anderson
Packit cdaae3
    * print_frames.c: Using a new frame interface to reduce
Packit cdaae3
      dwarfdump runtime on frame printing by 10 percent.
Packit cdaae3
2016-06-10  David Anderson
Packit cdaae3
    * print_frames.c: Added commentary as the previous comment
Packit cdaae3
      about printing CFA and other registers having a 'duplicate row'
Packit cdaae3
      was a bit terse.
Packit cdaae3
2016-06-08  David Anderson
Packit cdaae3
    * sanitized.c: Remove trailing whitespace.
Packit cdaae3
2016-06-08  David Anderson
Packit cdaae3
    * common.c,dwarfdump.c,tag_attr.c,tag_tree.c: 
Packit cdaae3
      Update version string.
Packit cdaae3
    * sanitized.c: Only fix strings that have bad
Packit cdaae3
      characters in them. This improves dwarfdump performance.
Packit cdaae3
2016-06-01  David Anderson
Packit cdaae3
    * dwarfdump.c, common.c: Update version string.
Packit cdaae3
      Use DW_VERSION_DATE_STR instead of DWARFDUMP_VERSION
Packit cdaae3
    * tag_attr.c, tag_tree.c: Use DW_VERSION_DATE_STR instead
Packit cdaae3
      of __DATE__ __TIME__
Packit cdaae3
    * Makefile.in: Tweaked for debian build compatibility.
Packit cdaae3
2016-05-22  David Anderson
Packit cdaae3
    * dwarfdump.c, common.c: Update version string.
Packit cdaae3
2016-05-20  David Anderson
Packit cdaae3
    * print_frames.c: One test for erroneous length was
Packit cdaae3
      incorrectly coded, leading to possible crash when encountering
Packit cdaae3
      erroneous frame information.
Packit cdaae3
2016-05-19  David Anderson
Packit cdaae3
    * configure.in: Does a better job reporting configure actions.
Packit cdaae3
    * configure: Regenerated
Packit cdaae3
    * dwarfdump.1: Fixed spelling errors and moved ./dwarfdump.conf
Packit cdaae3
      right one space to get the dot off column 1.
Packit cdaae3
2016-05-18  David Anderson
Packit cdaae3
    * print_die.c: Fix typo in error message.
Packit cdaae3
    * print_frames.c: Do additional checks for incorrect data
Packit cdaae3
      when printing frame instructions to avoid dwarfdump crash..
Packit cdaae3
2016-05-12  David Anderson
Packit cdaae3
    * print_abbrevs.c,print_aranges.c,print_frames.c,print_sections.c:
Packit cdaae3
      Removed trailing whitespace. Fixed indentation.
Packit cdaae3
    * tag_attr.c,tag_tree.c: Ensure calls to libdwarf interfaces
Packit cdaae3
      in these build-time tools check the status returned.
Packit cdaae3
2016-05-10  David Anderson
Packit cdaae3
    * print_aranges.c: Minor commentary change and
Packit cdaae3
      rearranging lines for clarity.
Packit cdaae3
    * print_die.c: formwith->form with
Packit cdaae3
      in an error message. 
Packit cdaae3
    * print_frames.c: Now checks for bogus expression block 
Packit cdaae3
      lengths and bogus LEB values. LEB reading functions
Packit cdaae3
      now here and static functions.
Packit cdaae3
    * print_sections.c: Moved leb reading functions to print_frames.c
Packit cdaae3
2016-05-07  David Anderson
Packit cdaae3
    * dwarfdump.c, common.c: Update version string.
Packit cdaae3
    * print_frames.c: For local variable added
Packit cdaae3
      initialization-at-definition.
Packit cdaae3
2016-05-06  David Anderson
Packit cdaae3
    * sanitized.c: Fixed trailing whitespace and
Packit cdaae3
      added 'static' to local function definition.
Packit cdaae3
2016-05-05  David Anderson
Packit cdaae3
    * Makefile.in: Added sanitized.o to objects to build.
Packit cdaae3
    * dwarfdump.1: Document '-x nosanitizestrings'.
Packit cdaae3
    * dwarfdump.c: Set internal flag based on '-x nosanitizestrings'.
Packit cdaae3
    * globals.h: add extern for the flag no_sanitize_string_garbage
Packit cdaae3
      and the sanitized() interface.
Packit cdaae3
    * print_die.c,print_frames.c,print_lines.c,
Packit cdaae3
      print_macro.c, print_macros.c : Call sanitized() on some strings.
Packit cdaae3
    * sanitized.c: Changes control characters int output to %xx
Packit cdaae3
      uri-style (by default). See '-x nosanitizestrings'.
Packit cdaae3
2016-05-03  David Anderson
Packit cdaae3
    * dwarfdump.c: revise print_error_maybe_continue() to
Packit cdaae3
      print additional useful data.
Packit cdaae3
    * print_die.c: If dwarf_srcfiles() gets DW_DLV_NO_ENTRY
Packit cdaae3
      do not print a warning. Normal to have no DW_AT_stmt_list.
Packit cdaae3
    * print_lines.c: Fix column header 'row' changed to 'lno'.
Packit cdaae3
      Refine a CHECK message to say a DW_LNE_end_sequence
Packit cdaae3
      does not exactly match function high address. It is not
Packit cdaae3
      an error, just something about how the code was emitted.
Packit cdaae3
2016-04-30  David Anderson
Packit cdaae3
    * dwarfdump.c, common.c: Update version string.
Packit cdaae3
2016-04-27  David Anderson
Packit cdaae3
    * dwarfdump.c, common.c: Update version string.
Packit cdaae3
2016-04-27  David Anderson
Packit cdaae3
    * dwarfdump.c: Update version string.
Packit cdaae3
      Remove a field from printf on error as that duplicates
Packit cdaae3
      the error number in the error string.
Packit cdaae3
2016-04-25  David Anderson
Packit cdaae3
    * esb.c, dwarfdump.c: Fix a couple indent mistakes.
Packit cdaae3
2016-04-25  David Anderson
Packit cdaae3
    * esb.h, esb.c: The typedef for 'string' is now gone, it
Packit cdaae3
      was never helpful..
Packit cdaae3
    * dwarfdump.c: Remove 'string' use.
Packit cdaae3
    * dwgetopt.c: Moved test-only function to getopttest.c.
Packit cdaae3
      Added (void) argument to a the functions with no arguments.
Packit cdaae3
    * getopttest.c: Repaired failures to to renaming
Packit cdaae3
      to dwoptind etc and added the test-only
Packit cdaae3
      function from dwgetopt.c
Packit cdaae3
    * globals.h: Removed 'string' typedef.
Packit cdaae3
    * print_die.c,print_frames.c, print_lines.c, print_strings.c,
Packit cdaae3
      tag_attr.c, tag_tree.c: Removed use of 'string' type, use
Packit cdaae3
      plain old char*.
Packit cdaae3
2016-04-21  Carlos Alberto Enciso
Packit cdaae3
    Printing using the 'esb' module was broken. It seems to work
Packit cdaae3
    because the default internal buffer size (240), was big enough
Packit cdaae3
    to receive the resulting output.
Packit cdaae3
Packit cdaae3
    * esb.c, esb.h: Missing prefix 'esb' for 'allocate_more'.
Packit cdaae3
      Initial buffer size reduced to 16.
Packit cdaae3
      New function 'esb_open_null_device': open 'null' device.
Packit cdaae3
      New function 'esb_close_null_device': close 'null' device.
Packit cdaae3
      New function 'esb_allocate_more_if_needed': allocate more
Packit cdaae3
      space if required, leaving the contents unchanged, so the
Packit cdaae3
      caller, does not need to worry about it.
Packit cdaae3
      There are 2 cases:
Packit cdaae3
        Windows: use the 'null' device to get the required space
Packit cdaae3
        UNIX: use a big buffer (512). But if the result is bigger,
Packit cdaae3
        the original problem will be shown.
Packit cdaae3
      The function 'esb_append_printf_ap', now takes care of
Packit cdaae3
      increasing the buffer if needed.
Packit cdaae3
Packit cdaae3
    * dwarfdump.c: In the case of windows, open and close the 'null'
Packit cdaae3
      device, in order to setup the esb module.
Packit cdaae3
2016-04-21  Carlos Alberto Enciso
Packit cdaae3
    * globals.h: Do not define 'string' for a C++ build; it clashes with
Packit cdaae3
      the 'std::string'.
Packit cdaae3
    * print_die.c: Minor typo error. 
Packit cdaae3
2016-04-21  Carlos Alberto Enciso
Packit cdaae3
    * For a WINDOWS version, display the 32/64 bits configuration.
Packit cdaae3
2016-04-21  Carlos Alberto Enciso
Packit cdaae3
    * Use the _WIN32 macro to identify a WINDOWS specific code.
Packit cdaae3
2016-03-17  David Anderson
Packit cdaae3
    * print_die.c(print_one_die_section): One dieprint_cu_goffset
Packit cdaae3
      Dwarf_Unsigned->Dwarf_Off. 
Packit cdaae3
2016-03-12  David Anderson
Packit cdaae3
    * print_abbrevs.c(print_abbrevs): Printed output of an abbrev with code
Packit cdaae3
      and tag but no attributes was simply wrong. Now fixed.
Packit cdaae3
      Now avoids printing children flag on a null abbrev (a NUL byte
Packit cdaae3
      meaning no abbrev is there at all, ending a list of abbrevs).
Packit cdaae3
    * print_die.c: it was difficult, even with -G -v, to identify
Packit cdaae3
      the actual offset (in .debug_abbrev) of the abbreviations.
Packit cdaae3
      Now -i -G -v gives a bit more data on abbreviations.
Packit cdaae3
2016-03-09  David Anderson
Packit cdaae3
    * dwarfdump.c,globals.h,print_aranges.c,print_die.c,print_frames.c,
Packit cdaae3
      print_lines.c,print_macro.c,print_pubnames.c:
Packit cdaae3
      Remove the global dieprint_cu_offset, use local vars and pass around instead.
Packit cdaae3
      Ensure the traverse() logic when checking type references do not evaluate
Packit cdaae3
      references to other sections. Many argument lists got an additional argument or two.
Packit cdaae3
2016-03-07  David Anderson
Packit cdaae3
    * dwarfdump.c: Update version string. Added CU_low_address so
Packit cdaae3
      CU_base_address is properly used only for the DWARF 
Packit cdaae3
      CU 'base address' notion. Print CU_low_address in PRINT_CU_INFO().
Packit cdaae3
    * common.c: Update version string
Packit cdaae3
    * globals.h: New macro DROP_ERROR_INSTANCE(d,r,e) improves consistency
Packit cdaae3
      where we need to drop a Dwarf_Error instance.
Packit cdaae3
    * print_die.c: Support for CU_low_address. Use DROP_ERROR_INSTANCE
Packit cdaae3
      where appropriate.
Packit cdaae3
    * print_frames.c: Use DROP_ERROR_INSTANCE
Packit cdaae3
      where appropriate.
Packit cdaae3
2016-03-03  Carlos Alberto-Enciso
Packit cdaae3
    * dwarfdump.c: Missing '_' just for consistency.
Packit cdaae3
      Print any harmless errors only the required in command line
Packit cdaae3
    * globals.h: Unused declaration.
Packit cdaae3
    * print_die.c: When displaying a DW_AT_type offset error, uses the standard
Packit cdaae3
      0xdddddddd format.  Wrap to 80 columns, a long line.
Packit cdaae3
2016-02-17  Carlos Alberto-Enciso
Packit cdaae3
    * dwarfdump/tag_attr_ext.list,dwarfdump/tag_common.h,
Packit cdaae3
      dwarfdump/tag_tree_ext.list: Tighten up the list limits
Packit cdaae3
      and add commentary about the list limits.
Packit cdaae3
2016-02-14  DavidAnderson
Packit cdaae3
    * dwarfdump.c,common.c: Updated version strings.
Packit cdaae3
    * print_die.c,print_strings.c: fixed indent errors.
Packit cdaae3
2016-02-14  Carlos Alberto-Enciso
Packit cdaae3
    * tag_attr_ext.list, tag_tree_ext.list: Adding
Packit cdaae3
      DW_TAG_GNU_template_parameter_pack,DW_TAG_GNU_formal_parameter_pack.
Packit cdaae3
    * tag_tree.c: Printed wrong name from tag-tree table in 
Packit cdaae3
      a comment.
Packit cdaae3
    * tag_common.h: Ext tag table rows count was higher than needed.
Packit cdaae3
      Ext attr table rows increased to 11.
Packit cdaae3
2016-02-13  David Anderson
Packit cdaae3
    * dwarfdump.c,globals.h,print_aranges.c,print_die.c,
Packit cdaae3
      print_frames.c,print_lines.c,print_locs.c,print_macro.c,
Packit cdaae3
      print_pubnames.c,print_reloc.ckprint_static_funcs.c,
Packit cdaae3
      print_static_vars.c,print_strings.c,print_types.c,
Packit cdaae3
      print_weaknames.c: Removed global Dwarf_Error err
Packit cdaae3
      and provided local Dwarf_Error as needed.
Packit cdaae3
2016-02-13  David Anderson
Packit cdaae3
     * configure.in: Add -Wshadow to --enable-shared. Add else and
Packit cdaae3
       cross-compile [] to the AC_TRY_RUN
Packit cdaae3
     * configure: Regenerate.
Packit cdaae3
     * dwarf_tsearchbal.c: Delete shadowed variable p, we use
Packit cdaae3
       the original instead.
Packit cdaae3
     * dwarfdump.c: Rename variables to avoid confusing
Packit cdaae3
       duplicated names (found by -Wshadow). #if 0 the
Packit cdaae3
       unused function old_get_cu_name(), which should get deleted.
Packit cdaae3
     * globals.h: Fixed prototypes, #if 0 prototype of
Packit cdaae3
       the unused function old_get_cu_name().
Packit cdaae3
     * print_abbrevs.c, print_aranges.c,print_debugfission.c,
Packit cdaae3
       print_die.c,print_frames.c, print_gdbindex.c, print_lines.c,
Packit cdaae3
       print_pubnames.c, print_ranges.c, print_sections.c,
Packit cdaae3
       tag_attr.c, tag_tree.c: Add local Dwarf_Error and 
Packit cdaae3
       rename variables to avoid shadowing confusion.
Packit cdaae3
2016-02-10  David Anderson
Packit cdaae3
     * globals.h: Change enum val from std to singledw5.
Packit cdaae3
       Some compilation environments reserve 'std'.
Packit cdaae3
     * dwarfdump.c,print_lines.c: Use the new spelling.
Packit cdaae3
2016-02-10  David Anderson
Packit cdaae3
     * common.c,dwarfdump.c: Update version string.
Packit cdaae3
2016-02-07  David Anderson
Packit cdaae3
     * common.c,dwarfdump.c: Update version string.
Packit cdaae3
2016-02-06  David Anderson
Packit cdaae3
     * print_die.c,tag_attr.c,tag_tree.c: Remove trailing whitespace.
Packit cdaae3
2016-02-06  David Anderson
Packit cdaae3
     * warningcontrol.h: Defines UNUSEDARG macro as needed.
Packit cdaae3
     * common.c,dwarf_tsearchbal.c,dwarfdump.c,globals.h,
Packit cdaae3
       macrocheck.c: Now use UNUSEDARG macro so known-unused
Packit cdaae3
       args do not cause spurious warnings.
Packit cdaae3
     * configure.in: Sets HAVE_UNUSED_ATTRIBUTE if the compiler
Packit cdaae3
       in use supports __attribute ((unused)). So we can have
Packit cdaae3
       lots of warnings turned on without seeing the warnings
Packit cdaae3
       we wish to ignore for now.
Packit cdaae3
     * configure,config.h.in: Regenerated.
Packit cdaae3
2016-02-06  David Anderson
Packit cdaae3
     * print_frames.c: Was printing cie index, not fde index,
Packit cdaae3
       in the fde output. Now prints more sensibly.
Packit cdaae3
       Now tests do_print_dwarf, the flag it should have been using,
Packit cdaae3
       to decide whether to print.
Packit cdaae3
2016-02-02  David Anderson
Packit cdaae3
     * dwarfdump.c:  Get section sizes so we can do a better
Packit cdaae3
       sanity check on ofsets (ie, call  dwarf_get_section_max_offsets_c()).
Packit cdaae3
       Check DWARF2 macros for sanity just as we do DWARF5
Packit cdaae3
       macros.  Read DWARF2 macros per-cu, not as a standalone
Packit cdaae3
       section. Add global data section_high_offsets_global,
Packit cdaae3
       a struct with all known section sizes.
Packit cdaae3
     * macrocheck.c: New section size argument for more complete
Packit cdaae3
       size analysis.
Packit cdaae3
     * globals.h: Declarations for  section_high_offsets_global.
Packit cdaae3
     * macrocheck.h: Update prototype of print_macro_statistics().
Packit cdaae3
     * print_die.c: Drop section-as-a-whole macro reporting for
Packit cdaae3
       macinfo in favor of reporting per CU.
Packit cdaae3
     * print_macros.c: Allow for print and check runs (not both
Packit cdaae3
       at once).
Packit cdaae3
2016-01-28  David Anderson
Packit cdaae3
     * dwarfdump.c,common.c: Update version string.
Packit cdaae3
     * print_die.c: Changed the most frequent global die
Packit cdaae3
       offset values to print as GOFF=0x...
Packit cdaae3
       for uniformity with -G and space saving from the 
Packit cdaae3
       string 'global die offset'.
Packit cdaae3
2016-01-27  David Anderson
Packit cdaae3
     * print_die.c: Added a helpertree find call on typedieoffset
Packit cdaae3
       which is really a better check for known signed/unsigned.
Packit cdaae3
2016-01-26  David Anderson
Packit cdaae3
     * dwarfdump.c,common.c: Update version string.
Packit cdaae3
2016-01-26  David Anderson
Packit cdaae3
     * Makefile.in: Added helpertree.h, and .c.
Packit cdaae3
     * dwarfdump.c: Added include helpertree.h
Packit cdaae3
     * print_die.c: Now attempts (harder) to
Packit cdaae3
       figure out if a constant is really signed or insigned
Packit cdaae3
       when printing it. Fixes annoyance with printing attributes
Packit cdaae3
       longer than 27 characters.
Packit cdaae3
       Unifies a number of printf-style calls into functions, reducing
Packit cdaae3
       the number of statically visible calls to sprintf.
Packit cdaae3
       Attempts to remember whether some things are explicitly
Packit cdaae3
       typed as signed or unsigned.
Packit cdaae3
     * helpertree.h, helpertree.c: New. Simple use of tsearch
Packit cdaae3
       to memo-ize signedness.
Packit cdaae3
2016-01-20
Packit cdaae3
     * configure.in: Added more compiler optiosn to --enable-wall
Packit cdaae3
     * configure: Regenerated
Packit cdaae3
     * dwarf_tsearchbal.c: Fixed warnings.
Packit cdaae3
     * dwarfdump.c: Fixed warnings.
Packit cdaae3
     * dwconf.c: Fixed warnings.
Packit cdaae3
     * dwconf.h: Fixed warnings.
Packit cdaae3
     * esb.c: Fixed warnings.
Packit cdaae3
     * globals.h: Fixed warnings.
Packit cdaae3
     * print_debugfission.c: Fixed warnings.
Packit cdaae3
     * print_die.c: Fixed warnings.
Packit cdaae3
     * print_frames.c: Fixed warnings.
Packit cdaae3
     * print_sections.c: Fixed warnings.
Packit cdaae3
2016-01-20
Packit cdaae3
     * macrocheck.c: Remove trailing whitespace.
Packit cdaae3
     * print_lines.c: Only print line context record
Packit cdaae3
       if we do_print_dwarf is non-zero. The directory index
Packit cdaae3
       was printing as 0 in the line_context record. Was a typo
Packit cdaae3
       in the printf, now fixed.
Packit cdaae3
2016-01-20
Packit cdaae3
     * configure.in: Now --enable-wall adds -Wdeclaration-after-statement
Packit cdaae3
       etc.
Packit cdaae3
     * configure: Regenerated.
Packit cdaae3
     * dwarfdump.c: Now all functions have visible prototypes, no ().
Packit cdaae3
     * dwconf.c: Now local func declared static.
Packit cdaae3
     * dwgetopt.c: Added include dwgetopt.h. Unused function
Packit cdaae3
       #if 0 so invisible.
Packit cdaae3
     * globals.h: Now all functions have prototypes, no ().
Packit cdaae3
     * macrocheck.c: Removed unused locals. Fixed a
Packit cdaae3
       dwarf_twalk call to *tree (not just tree).
Packit cdaae3
     * naming.c: Added include naming.h.
Packit cdaae3
     * print_gdbindex.c: Made local function static.
Packit cdaae3
     * tag_attr.c,tag_common.c: Made local function static.
Packit cdaae3
2016-01-19  David Anderson
Packit cdaae3
     * dwarf_tsearchbal.c: Deleted the  unused function rotatex().
Packit cdaae3
     * dwarfdump.c: Remove duplicate trailing ;
Packit cdaae3
     * esb.c(esb_append): Straighten out the logic
Packit cdaae3
       and avoid doing append if the to-be-appended
Packit cdaae3
       string is empty.
Packit cdaae3
     * globals.h Add ifdef __cplusplus for extern "C".
Packit cdaae3
     * esb.h,naming.h: Idempotent #ifndef and __cplusplus extern "C" added.
Packit cdaae3
     * print_frames.c: Ensure local var starts at zero.
Packit cdaae3
       Move statement to below declarations.
Packit cdaae3
     * print_lines.c: Ensure declarations before executable statements.
Packit cdaae3
2016-01-19  David Anderson
Packit cdaae3
     * print_frames.c: Fix trailing whitespace and indentation.
Packit cdaae3
2016-01-19  David Anderson
Packit cdaae3
     * print_die.c,tag_tree.c: Change statement ;; by removing
Packit cdaae3
       second semicolon.
Packit cdaae3
2016-01-17  David Anderson
Packit cdaae3
     * common.c: Update version string
Packit cdaae3
     * dwarfdump.c: Made reset_overall_CU_error_data() a global.
Packit cdaae3
       We now try to show CU name etc on case there is an error
Packit cdaae3
       reading frame data. Update version strin.
Packit cdaae3
       Added DEBUG_FRAME DEBUG_FRAME_EH to the PRINT_CU_INFO() tests. 
Packit cdaae3
       New function: load_CU_error_data().
Packit cdaae3
     * print_frames.c: Now uses a local Dwarf_Error
Packit cdaae3
       in a few places (CU names for frames) instead
Packit cdaae3
       of the global 'err' so we do not get the errors
Packit cdaae3
       mixed up.
Packit cdaae3
       We now try to show CU name etc on case there is an error
Packit cdaae3
       reading frame data.
Packit cdaae3
2016-01-14  David Anderson
Packit cdaae3
     * common.c: Update version string.
Packit cdaae3
     * dwarfdump.c: Update version string. Include macrocheck.h.
Packit cdaae3
       Delete one accidental blank line.
Packit cdaae3
     * dwarf_tsearchbal.c: Added comment about compiler warning.
Packit cdaae3
     * dwarf_macrocheck.c: Added missing return statement.
Packit cdaae3
       Removed trailing whitespace. Fixed broken qsort_compare()
Packit cdaae3
     * macrocheck.h: Fixed trailing whitespace.  
Packit cdaae3
     * print_abbrevs.c: Generalized an attribute count warning
Packit cdaae3
       a bit (see GENERAL_MAX_ATTRIB_COUNT). Fixed the code
Packit cdaae3
       handling the abbrev_array to be correct and a bit simpler.
Packit cdaae3
       Added new abbreviations tests.
Packit cdaae3
     * print_die.c: Include macrocheck.h. Fix trailing whitespace.
Packit cdaae3
2016-01-12  David Anderson
Packit cdaae3
     * common.c: Update version string.
Packit cdaae3
     * dwarfdump.c: Update version string.
Packit cdaae3
     * print_abbrevs.c: If an abbreviation number is a bit
Packit cdaae3
       goofy, accomodate it so we do not write to
Packit cdaae3
       memory we did not allocate.  It will
Packit cdaae3
       be caught a bit later in the run as an invalid DIE 
Packit cdaae3
       or abbreviation.
Packit cdaae3
     * print_die.c: When we switch sections inside a DIE print
Packit cdaae3
       save and restore current_section_id to get the best 
Packit cdaae3
       reporting on errors/checks.
Packit cdaae3
2016-01-12  David Anderson
Packit cdaae3
     * common.c,dwarfdump.c: Update version string.
Packit cdaae3
2016-01-12  David Anderson
Packit cdaae3
     * Makefile.in: Adding macrocheck.h, and .c.  Adding
Packit cdaae3
       selftest of macrocheck.c.
Packit cdaae3
     * dwarfdump.c: Now handles imported DWARF5 macros
Packit cdaae3
       and adds support for -kw for macro section checking.
Packit cdaae3
     * globals.h: Adding check_macros flag and macro_check_tree declaration
Packit cdaae3
       and print_macros_5style_this_cu() declaration..
Packit cdaae3
     * print_die.c: Now prints imported macros using
Packit cdaae3
       print_macros_5style_this_cu().
Packit cdaae3
     * print_macro.c: Now deals with imported macro units using
Packit cdaae3
       macrocheck.c and .h.  Fixed bug for DW_MACRO_define/undef
Packit cdaae3
       where we did improper string validity check.
Packit cdaae3