commit 09dc2de3f1de72197b76373fe09a15769972a6f0 Author: David Anderson Date: Fri Dec 31 07:18:36 2021 -0800 Turned off sorting, want the ordering to be as in libdwarf.h modified: doc/Doxyfile Now with doxygen comments initiated. modified: src/lib/libdwarf/libdwarf.h commit 8d60a7e39406733bbed28cb4511cb6cef579118f Author: David Anderson Date: Sun Dec 26 14:54:06 2021 -0800 Small changes. modified: ../src/lib/libdwarf/libdwarf.h commit b7864fc2b51a655863a0a59c5b70128e7b4145bb Author: David Anderson Date: Sun Dec 26 14:18:27 2021 -0800 This is just a start with doxygen. new file: Doxyfile Found some typedefs and a struct here that are no longer used anywere, so removed from libdwarf.h Plus adding doxygen commands. modified: ../src/lib/libdwarf/libdwarf.h 2021-12-29: David Anderson commit 907225d2f3d1785db07e254aeb7389fc36f54ae1 offset = offset; appeared at around lines 1146 and 1205 and recent clang warns about them. Lines deleted. modified: src/bin/dwarfdump/print_frames.c 2021-12-26: David Anderson commit 130db599f5b4843a110527b72db0c6cab917f9bc Removed the 'if 0' code that was once necessary. We do not include dd_dwconf.[ch] in test_canonical.c modified: test/test_canonical.c 2021-12-26: David Anderson commit f7dfb630603ca4baf1e3c3b0b9e10566c306b795 Updated by 'make rebuild' to get the new version: 0.3.3 modified: ../src/bin/dwarfdump/dwarf_names.c modified: ../src/bin/dwarfdump/dwarfdump-af-table.h modified: ../src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: ../src/bin/dwarfdump/dwarfdump-ta-table.h modified: ../src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: ../src/bin/dwarfdump/dwarfdump-tt-table.h modified: ../src/lib/libdwarf/dwarf_names.c 2021-12-26: David Anderson commit fbcdc9ec5b3a88d30e29c25d1c219cf6c8d73741 Now with version 0.3.3 modified: libdwarf.pdf modified: libdwarfp.pdf 2021-12-26: David Anderson commit 194c1e882260a18900c95acb1738a67c2d2c2e7a Updated version to 0.3.3 modified: CMakeLists.txt modified: configure.ac modified: doc/libdwarf.mm modified: doc/libdwarfp.mm modified: src/lib/libdwarf/libdwarf.h 2021-12-26: David Anderson commit 9d13137e5ebc96e2e06de82e32752db4173fb845 Now reference the new dd_canonical_append.[ch] modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am Separated _dwarf_canonical_append from dd_dwconf.[ch] into dd_canonical_append.[ch] new file: src/bin/dwarfdump/dd_canonical_append.c new file: src/bin/dwarfdump/dd_canonical_append.h Removed _dwarf_canonical_append modified: src/bin/dwarfdump/dd_dwconf.c modified: src/bin/dwarfdump/dd_dwconf.h Now uses dd_canonical_append.c,.h, not dd_dwconf.c,.h modified: test/CMakeLists.txt modified: test/test_canonical.c 2021-12-26: David Anderson commit b7848e06bc4f84a90bbb0377aa320f956afc2d52 Reformatted with black, a python reformatter modified: updatesemanticversion.py 2021-12-24: David Anderson commit f5477b747cd1c650ca933d2d1f17d623cc0cf3fc Trivial typo corrections. modified: libdwarf.mm 2021-12-22: David Anderson commit 89966beb45ef36bc393e184162470db58f8ddcb3 Up todate with git log modified: ChangeLog 2021-12-22: David Anderson A placeholder to start 2022 ChangeLog commit 3ce7a354202027e9403c3fc9681a16982eb47074 2021-12-22: David Anderson commit 3ce7a354202027e9403c3fc9681a16982eb47074 Updated and improved consistency between these two. modified: codingstyle.md modified: src/bin/dwarfdump/CODINGSTYLE 2021-12-22: David Anderson commit c8477173ad85bd58e3d5712d9f33e188aafb1bcb Now all the text tables used to generate .h and .c files are with the C code generating .c and .h. Moved out of the dwarfdump directory. modified: src/bin/attr_form/Makefile.am renamed: src/bin/dwarfdump/attr_formclass.list -> src/bin/attr_form/attr_formclass.list renamed: src/bin/dwarfdump/attr_formclass_ext.list -> src/bin/attr_form/attr_formclass_ext.list modified: src/bin/dwarfdump/Makefile.am modified: src/bin/tag_attr/Makefile.am renamed: src/bin/dwarfdump/tag_attr.list -> src/bin/tag_attr/tag_attr.list renamed: src/bin/dwarfdump/tag_attr_ext.list -> src/bin/tag_attr/tag_attr_ext.list modified: src/bin/tag_tree/Makefile.am renamed: src/bin/dwarfdump/dd_tag_common.c -> src/bin/tag_tree/tag_common.c renamed: src/bin/dwarfdump/tag_tree.list -> src/bin/tag_tree/tag_tree.list renamed: src/bin/dwarfdump/tag_tree_ext.list -> src/bin/tag_tree/tag_tree_ext.list 2021-12-22: David Anderson commit 2c542eaf7d13899d62afed57ec6d0cf88492aebf This is kep in the regressiontests content, we have no need for it here in code. deleted: src/bin/dwarfdump/testdwarfdump.conf 2021-12-21: David Anderson commit e7b9082f29b4edefbb4a2d2853a348b525791973 ChangeLog now brought up to date with source file renaming in dwarfdump. modified: ChangeLog 2021-12-21: David Anderson commit 67ca2c685feddf4c200bb03cfb9292c6d1518b00 This completes, for now, the dwarfdump source file renaming. No function names were changed (aside from tsearch, using #define in dd_tsearch.h) And there is no logic change. modified: Makefile.am modified: configure.ac modified: src/bin/attr_form/Makefile.am modified: src/bin/attr_form/attr_form_build.c new file: src/bin/builduritable/Makefile.am renamed: src/bin/dwarfdump/dd_uritablebuild.c -> src/bin/builduritable/uritablebuild.c renamed: src/bin/dwarfdump/glflags.c -> src/bin/dwarfdump/dd_glflags.c renamed: src/bin/dwarfdump/glflags.h -> src/bin/dwarfdump/dd_glflags.h renamed: src/bin/dwarfdump/globals.h -> src/bin/dwarfdump/dd_globals.h modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/dd_addrmap.c modified: src/bin/dwarfdump/dd_attr_form.c modified: src/bin/dwarfdump/dd_checkutil.c modified: src/bin/dwarfdump/dd_command_options.c modified: src/bin/dwarfdump/dd_compiler_info.c modified: src/bin/dwarfdump/dd_dwconf.c modified: src/bin/dwarfdump/dd_helpertree.c modified: src/bin/dwarfdump/dd_macrocheck.c modified: src/bin/dwarfdump/dd_makename.c modified: src/bin/dwarfdump/dd_naming.c modified: src/bin/dwarfdump/dd_sanitized.c modified: src/bin/dwarfdump/dd_section_bitmaps.c modified: src/bin/dwarfdump/dd_strstrnocase.c modified: src/bin/dwarfdump/dd_tag_common.c modified: src/bin/dwarfdump/dd_true_section_name.c modified: src/bin/dwarfdump/dd_uri.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_abbrevs.c modified: src/bin/dwarfdump/print_aranges.c modified: src/bin/dwarfdump/print_debug_gnu.c modified: src/bin/dwarfdump/print_debug_names.c modified: src/bin/dwarfdump/print_debug_sup.c modified: src/bin/dwarfdump/print_debugfission.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_gdbindex.c modified: src/bin/dwarfdump/print_hipc_lopc_attr.c modified: src/bin/dwarfdump/print_lines.c modified: src/bin/dwarfdump/print_llex_codes.c modified: src/bin/dwarfdump/print_loclists.c modified: src/bin/dwarfdump/print_loclists_codes.c modified: src/bin/dwarfdump/print_macinfo.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfdump/print_origloclist_codes.c modified: src/bin/dwarfdump/print_pubnames.c modified: src/bin/dwarfdump/print_ranges.c modified: src/bin/dwarfdump/print_rnglists.c modified: src/bin/dwarfdump/print_section_groups.c modified: src/bin/dwarfdump/print_sections.c modified: src/bin/dwarfdump/print_static_funcs.c modified: src/bin/dwarfdump/print_static_vars.c modified: src/bin/dwarfdump/print_str_offsets.c modified: src/bin/dwarfdump/print_strings.c modified: src/bin/dwarfdump/print_tag_attributes_usage.c modified: src/bin/dwarfdump/print_types.c modified: src/bin/dwarfdump/print_weaknames.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/Makefile.am modified: src/bin/tag_tree/tag_tree.c modified: test/helpertree_test.c modified: test/makename_test.c modified: test/section_bitmaps_test.c 2021-12-21: David Anderson commit 8ba6d77c77bfcb5646b7d97035c29e93e2e17e96 Renaming for name consistency in dwarfdump. renamed: src/bin/dwarfdump/helpertree.c -> src/bin/dwarfdump/dd_helpertree.c renamed: src/bin/dwarfdump/helpertree.h -> src/bin/dwarfdump/dd_helpertree.h renamed: src/bin/dwarfdump/macrocheck.c -> src/bin/dwarfdump/dd_macrocheck.c renamed: src/bin/dwarfdump/macrocheck.h -> src/bin/dwarfdump/dd_macrocheck.h renamed: src/bin/dwarfdump/opscounttab.c -> src/bin/dwarfdump/dd_opscounttab.c renamed: src/bin/dwarfdump/opscounttab.h -> src/bin/dwarfdump/dd_opscounttab.h Minor changes required as a result: modified: src/bin/buildopstab/Makefile.am modified: src/bin/buildopstab/buildopscounttab.c modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_hipc_lopc_attr.c modified: src/bin/dwarfdump/print_llex_codes.c modified: src/bin/dwarfdump/print_loclists_codes.c modified: src/bin/dwarfdump/print_macinfo.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfdump/print_origloclist_codes.c modified: src/bin/dwarfdump/print_tag_attributes_usage.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/helpertree_test.c 2021-12-21: David Anderson commit bafcb2da90236352f9303dfbc1ffc9bed72f60fe Renamings forcing the other changes . renamed: src/bin/dwarfdump/section_bitmaps.c -> src/bin/dwarfdump/dd_section_bitmaps.c renamed: src/bin/dwarfdump/section_bitmaps.h -> src/bin/dwarfdump/dd_section_bitmaps.h renamed: src/bin/dwarfdump/strstrnocase.c -> src/bin/dwarfdump/dd_strstrnocase.c renamed: src/bin/dwarfdump/tag_common.c -> src/bin/dwarfdump/dd_tag_common.c renamed: src/bin/dwarfdump/tag_common.h -> src/bin/dwarfdump/dd_tag_common.h renamed: src/bin/dwarfdump/true_section_name.c -> src/bin/dwarfdump/dd_true_section_name.c renamed: src/bin/dwarfdump/uritablebuild.c -> src/bin/dwarfdump/dd_uritablebuild.c modified: src/bin/attr_form/Makefile.am modified: src/bin/attr_form/attr_form_build.c modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/dd_command_options.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_hipc_lopc_attr.c modified: src/bin/dwarfdump/print_llex_codes.c modified: src/bin/dwarfdump/print_loclists_codes.c modified: src/bin/dwarfdump/print_origloclist_codes.c modified: src/bin/dwarfdump/print_tag_attributes_usage.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/Makefile.am modified: src/bin/tag_tree/tag_tree.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/section_bitmaps_test.c 2021-12-21: David Anderson commit f31940c5ad21d9c58a390fb36f9679a9595bb11a File Renaming for naming consistency and clarity. renamed: src/bin/dwarfdump/dwarf_getopt.c -> src/bin/dwarfdump/dd_getopt.c renamed: src/bin/dwarfdump/dwarf_getopt.h -> src/bin/dwarfdump/dd_getopt.h modified: src/bin/dwarfdump/dd_makename.c renamed: src/bin/dwarfdump/dwarf_tsearch.h -> src/bin/dwarfdump/dd_tsearch.h renamed: src/bin/dwarfdump/dwarf_tsearchbal.c -> src/bin/dwarfdump/dd_tsearchbal.c renamed: src/bin/dwarfgen/dwarf_getopt.c -> src/bin/dwarfgen/dg_getopt.c renamed: src/bin/dwarfgen/dwarf_getopt.h -> src/bin/dwarfgen/dg_getopt.h These next two do not belong in libdwarf. deleted: src/lib/libdwarf/dwarf_getopt.c deleted: src/lib/libdwarf/dwarf_getopt.h Renaming things leads to lots of places that need a tiny modification. modified: src/bin/attr_form/Makefile.am modified: src/bin/attr_form/attr_form_build.c modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/attr_formclass_ext.list modified: src/bin/dwarfdump/dd_addrmap.c modified: src/bin/dwarfdump/dd_attr_form.c modified: src/bin/dwarfdump/dd_command_options.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/helpertree.c modified: src/bin/dwarfdump/macrocheck.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfgen/CMakeLists.txt modified: src/bin/dwarfgen/Makefile.am modified: src/bin/dwarfgen/dwarfgen.cc modified: src/bin/gennames/Makefile.am modified: src/bin/gennames/gennames.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/Makefile.am modified: src/bin/tag_tree/tag_tree.c modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/dwarf_tsearch.h modified: src/lib/libdwarf/dwarf_tsearchhash.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/dwarfdumpLinux.sh modified: test/dwarfdumpMacos.sh modified: test/dwarfdumpPE.sh modified: test/dwarfdumpsetup.sh modified: test/getopttest.c 2021-12-20: David Anderson commit 4e030c5f159849348acfd8328ccdfc69b539c020 modified: src/bin/attr_form/Makefile.am modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/dd_attr_form.c modified: src/bin/dwarfdump/dd_command_options.c modified: src/bin/dwarfdump/dd_compiler_info.c modified: src/bin/dwarfdump/dd_dwconf.c More renaming and altering use names. renamed: src/bin/dwarfdump/makename.c -> src/bin/dwarfdump/dd_makename.c renamed: src/bin/dwarfdump/makename.h -> src/bin/dwarfdump/dd_makename.h renamed: src/bin/dwarfdump/naming.c -> src/bin/dwarfdump/dd_naming.c renamed: src/bin/dwarfdump/naming.h -> src/bin/dwarfdump/dd_naming.h modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_abbrevs.c modified: src/bin/dwarfdump/print_aranges.c modified: src/bin/dwarfdump/print_debug_gnu.c modified: src/bin/dwarfdump/print_debug_names.c modified: src/bin/dwarfdump/print_debug_sup.c modified: src/bin/dwarfdump/print_debugfission.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_gdbindex.c modified: src/bin/dwarfdump/print_hipc_lopc_attr.c modified: src/bin/dwarfdump/print_lines.c modified: src/bin/dwarfdump/print_llex_codes.c modified: src/bin/dwarfdump/print_loclists_codes.c modified: src/bin/dwarfdump/print_macinfo.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfdump/print_origloclist_codes.c modified: src/bin/dwarfdump/print_pubnames.c modified: src/bin/dwarfdump/print_section_groups.c modified: src/bin/dwarfdump/print_sections.c modified: src/bin/dwarfdump/print_static_funcs.c modified: src/bin/dwarfdump/print_static_vars.c modified: src/bin/dwarfdump/print_str_offsets.c modified: src/bin/dwarfdump/print_strings.c modified: src/bin/dwarfdump/print_tag_attributes_usage.c modified: src/bin/dwarfdump/print_types.c modified: src/bin/dwarfdump/print_weaknames.c modified: src/bin/dwarfdump/tag_common.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_tree/Makefile.am modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/makename_test.c 2021-12-20: David Anderson commit 61c5addad4eda58cad5cd5d7100f01f62b25305e A fix because make dist was broken by renaming. modified: src/bin/dwarfdump/Makefile.am 2021-12-20: David Anderson commit d080afc3f86cb254d39b4efd694359b14a0480f6 modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/dd_command_options.c modified: src/bin/dwarfdump/dd_common.c Another set of file names prefixed with dd_ renamed: src/bin/dwarfdump/defined_types.h -> src/bin/dwarfdump/dd_defined_types.h renamed: src/bin/dwarfdump/dwconf.c -> src/bin/dwarfdump/dd_dwconf.c renamed: src/bin/dwarfdump/dwconf.h -> src/bin/dwarfdump/dd_dwconf.h renamed: src/bin/dwarfdump/dwconf_using_functions.h -> src/bin/dwarfdump/dd_dwconf_using_functions.h modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/glflags.c modified: src/bin/dwarfdump/globals.h modified: src/bin/dwarfdump/print_frames.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/test_canonical.c 2021-12-20: David Anderson commit 1fb7c5ac8c433af0768a644797786918717d26fe modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am File renaming for consistency forces the changes. renamed: src/bin/dwarfdump/command_options.c -> src/bin/dwarfdump/dd_command_options.c renamed: src/bin/dwarfdump/command_options.h -> src/bin/dwarfdump/dd_command_options.h renamed: src/bin/dwarfdump/compiler_info.c -> src/bin/dwarfdump/dd_compiler_info.c renamed: src/bin/dwarfdump/compiler_info.h -> src/bin/dwarfdump/dd_compiler_info.h modified: src/bin/dwarfdump/dwarfdump.c 2021-12-20: David Anderson commit 09df54da594e7d7922826c1681c4204c5670cf5e modified: src/bin/attr_form/Makefile.am modified: src/bin/attr_form/attr_form_build.c modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am The renaming for consistency forces the other changes renamed: src/bin/dwarfdump/addrmap.c -> src/bin/dwarfdump/dd_addrmap.c renamed: src/bin/dwarfdump/addrmap.h -> src/bin/dwarfdump/dd_addrmap.h renamed: src/bin/dwarfdump/attr_form.c -> src/bin/dwarfdump/dd_attr_form.c renamed: src/bin/dwarfdump/attr_form.h -> src/bin/dwarfdump/dd_attr_form.h modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_tag_attributes_usage.c 2021-12-20: David Anderson commit d5dd38fac03ae74422893228d0ec11f6db6cea87 Beginning wholesale renaming of dwarfdump source file] names to begin with dd_ modified: src/bin/attr_form/Makefile.am modified: src/bin/attr_form/attr_form_build.c modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/command_options.c The renaming forces many changes. renamed: src/bin/dwarfdump/checkutil.c -> src/bin/dwarfdump/dd_checkutil.c renamed: src/bin/dwarfdump/checkutil.h -> src/bin/dwarfdump/dd_checkutil.h renamed: src/bin/dwarfdump/common.c -> src/bin/dwarfdump/dd_common.c renamed: src/bin/dwarfdump/common.h -> src/bin/dwarfdump/dd_common.h renamed: src/bin/dwarfdump/esb.c -> src/bin/dwarfdump/dd_esb.c renamed: src/bin/dwarfdump/esb.h -> src/bin/dwarfdump/dd_esb.h renamed: src/bin/dwarfdump/esb_using_functions.h -> src/bin/dwarfdump/dd_esb_using_functions.h modified: src/bin/dwarfdump/dd_sanitized.c modified: src/bin/dwarfdump/dd_uri.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/dwconf.c modified: src/bin/dwarfdump/glflags.c modified: src/bin/dwarfdump/globals.h modified: src/bin/dwarfdump/macrocheck.c modified: src/bin/dwarfdump/naming.c modified: src/bin/dwarfdump/print_abbrevs.c modified: src/bin/dwarfdump/print_aranges.c modified: src/bin/dwarfdump/print_debug_gnu.c modified: src/bin/dwarfdump/print_debug_names.c modified: src/bin/dwarfdump/print_debug_sup.c modified: src/bin/dwarfdump/print_debugfission.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_gdbindex.c modified: src/bin/dwarfdump/print_hipc_lopc_attr.c modified: src/bin/dwarfdump/print_lines.c modified: src/bin/dwarfdump/print_llex_codes.c modified: src/bin/dwarfdump/print_loclists.c modified: src/bin/dwarfdump/print_loclists_codes.c modified: src/bin/dwarfdump/print_macinfo.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfdump/print_origloclist_codes.c modified: src/bin/dwarfdump/print_pubnames.c modified: src/bin/dwarfdump/print_ranges.c modified: src/bin/dwarfdump/print_rnglists.c modified: src/bin/dwarfdump/print_sections.c modified: src/bin/dwarfdump/print_static_funcs.c modified: src/bin/dwarfdump/print_static_vars.c modified: src/bin/dwarfdump/print_str_offsets.c modified: src/bin/dwarfdump/print_strings.c modified: src/bin/dwarfdump/print_tag_attributes_usage.c modified: src/bin/dwarfdump/print_types.c modified: src/bin/dwarfdump/print_weaknames.c modified: src/bin/dwarfdump/true_section_name.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/Makefile.am modified: src/bin/tag_tree/tag_tree.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/testesb.c 2021-12-20: David Anderson commit 31467f0faa0ac37d2b84609fc4e29b8fcb7d73ba copyright year to 2021. modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_util.c 2021-12-20: David Anderson commit 9e59de10790ba8b449eadcf4c8effdfbfed31976 Regenerated with new LLVM content modified: src/bin/dwarfdump/dwarf_names.c modified: src/lib/libdwarf/dwarf_names.c Some new LANG codes. Minor formatting improvements. modified: src/lib/libdwarf/dwarf.h Now handling DW_FORM_LLVM_addrx_offset. modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_util.c 2021-12-19: David Anderson commit 9cd3621d9250ede5ba259695adb336ab1f252029 Corrected commentary on DW_TAG_template* defines. modified: dwarf.h 2021-12-18: David Anderson commit a281874a55a149fd678194348492af5b8d3a13c5 Cobra noticed some possible issues, so here we simplify the logic and add the default: case to switches. modified: src/bin/buildopstab/buildopscounttab.c modified: src/bin/dwarfexample/dwdebuglink.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/jitreader.c modified: src/bin/dwarfexample/simplereader.c Removed some if 0 dead code from here. modified: src/bin/dwarfexample/findfuncbypc.c 2021-12-18: David Anderson commit 448e9fbcde0a504324cfdc712036e17b7d309aa7 Removing trailing whitespace and eliminating duplicated blank lines. modified: src/lib/libdwarfp/dwarf_pro_frame.h modified: src/lib/libdwarfp/dwarf_pro_line.h modified: src/lib/libdwarfp/dwarf_pro_opaque.h modified: src/lib/libdwarfp/libdwarfp.h 2021-12-18: David Anderson commit b8efa9f750d381c456de97bd976324da1c0e469c Eliminating an strncpy, initializing local variable. modified: src/bin/dwarfdump/dd_regex.c Moved error handling up a few lines, clarifying the logic, but not changing the logic. modified: src/bin/dwarfdump/print_die.c 2021-12-18: David Anderson commit fb277879ee4cf6155d0776a106cab76948d2f834 latest git log entries now in ChangeLog modified: ChangeLog 2021-12-18: David Anderson commit 7b702f45602b4b7a8513c0f421af5476e54c7448 Minor changes based on observations Cobra made about the source. No change in what libdwarf does. modified: dwarf_debugnames.c modified: dwarf_form.c modified: dwarf_frame.c modified: dwarf_macro.c modified: dwarf_object_detector.c modified: dwarf_peread.c Here, also noticed a pointless local variable and memcpy into and then out of to the real target. Removed the unneeded lines. modified: dwarf_xu_index.c 2021-12-18: David Anderson commit 57ad9b599e4d0f662ca262f0c0804fbc3d325357 More information now. modified: codingstyle.md 2021-12-18: David Anderson commit 8081ae04e0d437c80c8720f6c59ab60813fbb2ad Added commentary. modified: src/lib/libdwarf/dwarf_leb.c Now tests more corner cases where more bits presented than fit in 64bits. Signed and unsigned. modified: test/dwarf_leb_test.c 2021-12-17: David Anderson commit f180f6003164b67613369765a2eaba04b0d83f5a Fixed reference to tsearch directory for the other tsearch versions available. It's now in a separate project. modified: codingstyle.md 2021-12-17: David Anderson commit b1b95f91ab6dc9503401dd9a8272c5459ec2d92d Accidental leftover of a term removed. modified: codingstyle.md 2021-12-17: David Anderson commit 3286355c73ccdfa2ff726b1097a0f3a3ef443ea9 Refined the text to make it look better. modified: codingstyle.md 2021-12-17: David Anderson commit 297cc6c1ee35268f3cf395a116816a78fa9a1cf5 Changed a debug message to just be informative. modified: dwarfgen/CMakeLists.txt Removed leftover debug printf lines. modified: ../lib/libdwarf/dwarf_leb.c 2021-12-17: David Anderson commit 6949228a8f3e7072969135ae7264e08ef06189c3 Now with the dwarf_safe_strcpy.c and dd_safestrcpy.c files listed. modified: src/bin/dwarfdump/CMakeLists.txt modified: src/lib/libdwarf/CMakeLists.txt New test for safe_strcpy to match the configure test set. modified: test/CMakeLists.txt 2021-12-17: David Anderson commit 15b7443b40164e2fcb2d127ed4b28b1060906364 Fixed typos in the test program. modified: test/test_safe_strcpy.c 2021-12-17: David Anderson commit bf7a17372b6f6d1bcf39e290dd14979cd6f2bdce Added new tests that showed errors in decoding leb or sleb with padding. modified: test/dwarf_leb_test.c Corrected leb sleb decoding modified: src/lib/libdwarf/dwarf_leb.c 2021-12-17: David Anderson commit 54eec9c3cf737c644a4b4431e68ccdca38509b42 codingstyle.txt renamed and revised as codingstyle.md modified: Makefile.am 2021-12-17: David Anderson commit 270a178cf523690f77b6221136074b1d84d4939c Now we do not need this. See the codingstyle.md deleted: codingstyle.txt 2021-12-17: David Anderson commit b0202c0c688a4babe8ceb24668a4660625fbf7d5 Moving to md for the comments new file: codingstyle.md 2021-12-15: David Anderson commit 6375d89a48c22c7a9525fecb48bd90b19427ba93 Bringing ChangeLog to have latest git log data. modified: ChangeLog 2021-12-15: David Anderson commit 2161cbe6b3d775dbb51f3a2b1c55000b8c961d34 Now this one correct using _dwarf_safe_strcpy instead of strcat. modified: gennames.c 2021-12-15: David Anderson commit 248f171fa5420deb60e03f3a7623c9596e79f899 Removing all dwarfdump and tests of strcpy and strncpy in favor of dd_safe_strcpy. DO NOT USE THIS COMMIT. modified: src/bin/attr_form/Makefile.am modified: src/bin/attr_form/attr_form_build.c modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/command_options.c modified: src/bin/dwarfdump/compiler_info.c modified: src/bin/dwarfdump/dd_regex.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/dwconf.c modified: src/bin/dwarfdump/glflags.c modified: src/bin/dwarfdump/globals.h modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/gennames/Makefile.am modified: src/bin/gennames/gennames.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/Makefile.am modified: src/bin/tag_tree/tag_tree.c modified: test/Makefile.am 2021-12-15: David Anderson commit ed0be6942d79def1b7466369b4ae199346e946a2 Now with dwarf_safe_strcpy.[ch] modified: src/lib/libdwarf/Makefile.am All uses of strcpy and strncpy replaced with calls to _dwarf_safe_strcpy(). Much better fit with what we do in libdwarf. modified: src/lib/libdwarf/dwarf_debuglink.c modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_harmless.c modified: src/lib/libdwarf/dwarf_line.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_macro5.c modified: src/lib/libdwarf/dwarf_object_read_common.c modified: src/lib/libdwarf/dwarf_opaque.h modified: src/lib/libdwarf/dwarf_peread.c 2021-12-15: David Anderson commit 0456103f5dbe5255b564bdf6d1562ac0ef686bf5 Working version, safely replacing strcpy and strncpy. modified: src/lib/libdwarf/dwarf_safe_strcpy.c modified: src/lib/libdwarf/dwarf_safe_strcpy.h Added access to dwarf_safe_strcpy.[ch] for test_safe_strcpy.c modified: test/Makefile.am Added access to dwarf_safe_strcpy.[h] modified: test/test_errmsglist.c modified: test/test_linkedtopath.c New test for _dwarf_safe_strcpy function new file: test/test_safe_strcpy.c 2021-12-15: David Anderson commit 489fde55cc5a081b3b2229569e1a37d19a582ed1 Not used yet. Soon to be used. new file: dwarf_safe_strcpy.c new file: dwarf_safe_strcpy.h 2021-12-15: David Anderson commit 544971b70a3daf87c313489e3bb69aef4639a8db Refined the comments. modified: dd_safe_strcpy.c 2021-12-15: David Anderson commit a5f8a1d8d9d5367d41c76b423afe733df38653ea Replacing the old safe_strcpy shortly. This is not yet in use. new file: dd_safe_strcpy.c new file: dd_safe_strcpy.h 2021-12-14: David Anderson commit 52c8d9f512abb5c5b5d0b3314eb5b61a64cb67a3 ChangeLog updated from git log modified: ChangeLog 2021-12-14: David Anderson commit 7f84ab9a1df3d70e3e3b400bd697439d5ef0ff13 All instances of strcpy calls have been replaced by _safe_strcpy modified: src/bin/dwarfdump/print_frames.c All instances of strcpy calls have been replaced by _dwarf_safe_strcpy modified: src/lib/libdwarf/dwarf_debuglink.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_global.h modified: src/lib/libdwarf/dwarf_line.c modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_macro5.c modified: src/lib/libdwarf/dwarf_object_read_common.c modified: src/lib/libdwarf/dwarf_opaque.h 2021-12-14: David Anderson commit b1f5486b54093afe31fb221ad20c9c431a9ec05e Now with TRIVIAL_NAMES flag set it uses the latest safe_strcpy() source from dwarfdump No more strcpy here at all. modified: src/bin/dwarfdump/glflags.c 2021-12-14: David Anderson commit fb762a7089906f75ca3201021cbaca86268d5765 Removing trailing whitespace in everything below. Fixing a small number of indentation errors. Removing all use of strcpy() from dwarfdump modified: src/bin/dwarfdump/attr_form.c modified: src/bin/dwarfdump/checkutil.c modified: src/bin/dwarfdump/command_options.c modified: src/bin/dwarfdump/compiler_info.c modified: src/bin/dwarfdump/dd_regex.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/glflags.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfdump/print_static_vars.c modified: src/bin/dwarfdump/true_section_name.c Just the whitespace/indent fixes modified: src/lib/libdwarf/dwarf.h modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_global.h modified: src/lib/libdwarf/dwarf_harmless.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_line.c modified: src/lib/libdwarf/dwarf_line_table_reader_common.h modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_object_read_common.h modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_print_lines.c modified: src/lib/libdwarf/dwarf_query.c modified: src/lib/libdwarf/dwarf_ranges.c modified: src/lib/libdwarf/dwarf_string.c modified: src/lib/libdwarf/dwarf_tied.c modified: src/lib/libdwarf/libdwarf.h 2021-12-14: David Anderson commit a3daaaf0de40c03ba4bdefbe8e76ddc4b9fd665e Ensuring macro definitions using their args put () arount each use. Add default:break where appropriate. Simplify checks for DW_DLV_ERROR/NO_ENTRY where appropriate. modified: ../../bin/dwarfdump/compiler_info.c modified: ../../bin/dwarfdump/dd_regex.c modified: ../../bin/dwarfdump/dwarfdump.c modified: ../../bin/dwarfdump/print_abbrevs.c modified: ../../bin/dwarfdump/print_die.c modified: ../../bin/dwarfdump/print_hipc_lopc_attr.c modified: ../../bin/dwarfdump/print_static_vars.c modified: ../../bin/dwarfdump/true_section_name.c 2021-12-14: David Anderson commit f1fb333b4329cccd73ae12bbe359f99ac577a8c1 Small changes to harden the code as recommended by cobra. No change in logic, just improving readability. modified: src/bin/dwarfdump/attr_form.c modified: src/bin/dwarfdump/checkutil.c modified: src/bin/dwarfdump/dwarfdump.c 2021-12-14: David Anderson commit 21b156df60a96c1a7a70f279791669b9d5967695 Now updates dwarf_names in both dwarfdump and libdwarf directories. Was a bug not to do that. modified: src/bin/gennames/Makefile.am Regenerated. modified: src/bin/dwarfdump/dwarf_names.c 2021-12-14: David Anderson commit 0ac94309cce195b3bf4810aedf35b572d3874369 Bringing ChangeLog up to date with git log. modified: ChangeLog 2021-12-14: David Anderson commit 1b15d2766506a28e47b59d882086f939cd7ab3d0 Using () around uses of the arguments inside macros with arguments. Fixing cobra complaints with missing else clause where that makes sense. modified: ../../lib/libdwarf/dwarf_elfstructs.h modified: ../../lib/libdwarf/dwarf_global.h modified: ../../lib/libdwarf/dwarf_line.h modified: ../../lib/libdwarf/dwarf_line_table_reader_common.h modified: ../../lib/libdwarf/dwarf_macho_loader.h modified: ../../lib/libdwarf/dwarf_opaque.h modified: ../../lib/libdwarf/dwarf_pe_descr.h modified: ../../lib/libdwarf/dwarf_tied_decls.h modified: ../../lib/libdwarf/dwarf_util.h modified: ../../lib/libdwarf/libdwarf_private.h 2021-12-14: David Anderson commit 4d5566123c687e1f962af0f6ad14c45fc198c48a Correcting macros so arguments have () around argument use inside the macro definition. Added default: break; to switch statements for clarity to the reader. Slight modifications of some DW_DLV_ERROR tests for greater clarity. This eliminates all the .c warnings cobra emits that I think should be eliminated. modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_form_class_names.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/dwarf_harmless.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_line.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarf/dwarf_loclists.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_macro5.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_peread.c 2021-12-14: David Anderson commit 6881dc7f9a6bf89ef4a0a1484a6b4193642045f8 Regenerated with the default: break; in each switch(). modified: src/lib/libdwarf/dwarf_names.c 2021-12-14: David Anderson commit ae61bd5195410f00ccc5a9d3828d18144f95a4b5 In all the switch() statements we generate here add a default: break; to avoid cobra warnings and clarify for the reader that the code is intentional as written.. modified: src/bin/gennames/gennames.c 2021-12-13: David Anderson commit 1ff4e2d7c0e79ad0579e73fe7cdec716c9fcf80d Clearing up some things cobra noted. Simplifying by unnesting if where nesting was silly (Involving DW_DLV_ERROR DW_DLV_NO_ENTRY). Ensuring macros have use of the arguments in () Adding default: break; in switch statements without a default. Putting for loop control variable updates in the third part of the for rather than in the body. modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_print_lines.c modified: src/lib/libdwarf/dwarf_query.c modified: src/lib/libdwarf/dwarf_ranges.c modified: src/lib/libdwarf/dwarf_str_offsets.c modified: src/lib/libdwarf/dwarf_string.c modified: src/lib/libdwarf/dwarf_tied.c The above plus noted the dereference of extension_size was preceded by testing offset_size in internal_load_rnglists_contexts(). Fixed. modified: src/lib/libdwarf/dwarf_rnglists.c 2021-12-13: David Anderson commit d8595aebd4255189c56299aa1571e71b0eebd798 Minor changes for clarity in the tests for DW_DLV_ERROR, DW_DLV_NO_ENTRY. modified: dwarf_form.c Macros now () around each use of names in the macro argument list modified: dwarf_gdbindex.c 2021-12-13: David Anderson commit 3d6feccf7ca772268495d9dd18d3496ed92898ca Now in the interals of macros we refer to the incoming name in () as is best practice. However, when a macro here calls *another* macro here those references must not have a () wrapper. modified: dwarf_util.h 2021-12-13: David Anderson commit 801575b4b7d7ece387a8294e59c4458254f4f2de Alter the macro definitions so that the arguments have () at the point of use in the macro. A well known best-practice. modified: libdwarf_private.h 2021-12-13: David Anderson commit f44fb8eba6472223d6a7973e8ce9fa1949bc0333 Deleted macro ASNAR definitions, they are not used in this file. modified: src/bin/dwarfdump/print_frames.c 2021-12-12: David Anderson commit c5956804b41f3d54a0980f0959d04b0db5160606 Clarify update to 12 December date and regenerate. modified: libdwarf.mm modified: libdwarf.pdf There is no logic change here. Just changes to avoid common errors. Add empty else {} to clarify intent. modified: src/lib/libdwarf/dwarf_debuglink.c Add default: break; to clarify entent where there was no default specified in a switch() modified: src/lib/libdwarf/dwarf_die_deliv.c Add empty else {} to clarify intent. modified: src/lib/libdwarf/dwarf_dsc.c Add default: break; to clarify entent where there was no default specified in a switch() modified: src/lib/libdwarf/dwarf_elf_rel_detector.c Add () where macro arguments used in the macro go guarantee no surprises. modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_error.h Clarify functions that never return DW_DLV_NO_ENTRY. modified: src/lib/libdwarf/dwarf_form.c Add () where macro arguments used in the macro modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_reading.h modified: src/lib/libdwarf/dwarf_string.c Add default: break; to clarify entent where there was no default specified in a switch() modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_line.c modified: src/lib/libdwarf/dwarf_line_table_reader_common.h Renamed static dump_bytes.Is #if 0, so not important. modified: src/lib/libdwarf/dwarf_macro5.c Moved the loop initializer out to before loop to clarify intent. modified: src/lib/libdwarf/dwarf_util.c 2021-12-12: David Anderson commit 5538965c68fdf0a4a7f383dceeb6c3670cf0e3f1 Clarify return values of some functions. modified: doc/libdwarf.mm 2021-12-06: David Anderson commit 9f63003df053dacbaa72f799a9690d4047de52ef Bringing up to date from git log modified: ChangeLog Regenerated (with new release id 0.3.2) modified: doc/libdwarf.pdf modified: doc/libdwarfp.pdf Fixed a typo in usage message. modified: doc/pdfbld.sh 2021-12-05: David Anderson commit a1707f52c49b42723c14e6dc222d9d7b43f54a62 Removing reference to a no-longer-present directory. modified: COPYING 2021-12-05: David Anderson commit 919f5bb5d1fc74112ea7131c63cb39e71f2934db Updated, adding Vincent Torri modified: AUTHORS 2021-12-05: David Anderson commit fe4f0b56d60f7602cf691936ac5c8cfed1d600cd Now the comments mention the release in the post 0.3.1 source, that is, 0.3.2. modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c 2021-12-05: David Anderson commit 62ea8b2e4df05287ce2908ab490904edd0074f6e Fixed some out of date comments to mention latest release, 0.3.1 modified: README modified: README.md 2021-12-05: David Anderson commit 93941b990628af67318d0ad1eb315f2bba6968b0 When an object file is severely corrupt the library would sometimes emit a strange final error DW_DLE_Error (0) following a more normal looking error. Now the strange one is suppressed. modified: src/lib/libdwarf/dwarf_init_finish.c 2021-12-05: David Anderson commit de95d35f8b9c582fc481cb8f0abce413e4b7d58a Update version 0.3.1 -> 0.3.2 modified: CMakeLists.txt modified: configure.ac modified: doc/libdwarf.mm modified: doc/libdwarfp.mm modified: src/lib/libdwarf/libdwarf.h 2021-12-04: David Anderson commit af059043c3c475362072c70b385fce1306eb05dd Now these have identical content and an updated target version 0.3.1. modified: README modified: README.md Removing a comment line. modified: autogen.sh 2021-11-24: David Anderson commit 5ac807035df091290279097ad6a81c154106ce7e Git log for recent updates prepended. modified: ChangeLog 2021-11-24: David Anderson commit 29a39c12bb818c552b1575b28ebef1a8c4089b04 Now builds a new opscounttab which has the change in the size of the expression stack for each DW_OP. To enable the print_die.c changes. modified: src/bin/buildopstab/buildopscounttab.c modified: src/bin/dwarfdump/opscounttab.c (regenerated) modified: src/bin/dwarfdump/opscounttab.h (new field added) Unless the expression is trivial printing expressions (DW_OP_swap etc) -v -i now adds a line like DW_OPs= 13 maxstackdepth= 4 endingstackdepth= 3 at the end of the list of DW_OP expression operations as a shorthand for the instructions and their use of an expression stack. If there are expression loops It adds loopcount= to the end of the line (counting the instances of a DW_OP_bra or DW_OP_skip in a negative direction). modified: src/bin/dwarfdump/print_die.c The old names of these functions were a bit misleading. They are for all expressions. dwarfdump_print_location_operations -> dwarfdump_print_expression_operations print_location_operations -> print_expression_operations modified: src/bin/dwarfdump/esb_using_functions.h modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_frames.h modified: src/bin/dwarfdump/print_hipc_lopc_attr.c modified: src/bin/dwarfdump/print_tag_attributes_usage.c 2021-11-23: David Anderson commit f3e04e9414fb7ffa10265e2dbca56d2ecb9ada29 Minor tweaks to the vulerabilitie from 2020 modified: bugxml/data.txt 2021-11-22: David Anderson commit 145d3f6af7314dfb6642cd08eb6b0e0ab0bb0524 Now with oss.chromium.org references shown where appropriate. modified: data.txt 2021-11-21: David Anderson commit 9e31d015a40fa1363f9dbf5de1eba8210b72b171 Up to date with git log. modified: ChangeLog 2021-11-21: David Anderson commit 874f6ba514e10ae3df72dfb6b7b549509208d054 Now with gitfixid for ossfuzz41240. modified: bugxml/data.txt 2021-11-21: David Anderson commit a120c808234060c3c9b1872ab9a059aa1ac70b1d This is a fix for the fuzz attack oss-fuzz-41240. Declaring an ERROR if the VirtualSize field value is >= the object file size. modified: src/lib/libdwarf/dwarf_errmsg_list.h modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/libdwarf.h 2021-11-20: David Anderson commit 6aff30a67168cf1d89ddc58eb13dc9c70fa2301e Corrected the dates to all be iso extended form (example: 2020-01-02) modified: data.txt 2021-11-20: David Anderson commit 4efcd47f599233e8254736f66d4fbe05c2435d88 version: 4.18 20 November 2021 0.3.1 This adds some introductory material on Error Handling. modified: doc/libdwarf.mm regenerated modified: doc/libdwarf.pdf 2021-11-20: David Anderson commit 259cb5fa805f2854a507fe6c33453d187fd6b917 oss-fuzz 40802 is now fixed and the fix commit id and fix date are filled in. modified: bugxml/data.txt 2021-11-19: David Anderson commit 6a6567a7c439cbd5fe97001e129ee84c1ac9903d Previous commit...not good. This repairs the damage while keeping the dwarf_object_init_b code in the clearer style. modified: src/lib/libdwarf/dwarf_init_finish.c 2021-11-19: David Anderson commit 19f0864f40b8a3155b2920014e32f40017da7013 Now reflects latest change for oss-fuzz-40802 testcase. modified: ChangeLog 2021-11-19: David Anderson commit adf4dae25b39039f1821b095688c00f3010e1d37 This is intended to fix oss-fuzz-40802 though one cannot be sure till its tested using clang 14.0 to build libdwarf. Heavily revised dwarf_object_init_b() for greater clarity and precision. modified: dwarf_init_finish.c 2021-11-15: David Anderson commit b4ef1850a66940b70596e3db6ca3cbf7da47cd6a The emergency printf (which usually means bad behavior by libdwarf callers) now reports the name and number of the detected error instead of just the error number. On stderr. Except in one emergency case the library returns errors. But sometimes it has no way to do so. modified: dwarf_error.c 2021-11-12: David Anderson commit 9c1d59c8ece7174e63475de65c7bdbe07089569d Adding gitfixid: to oss-fuzz-40801 oss-fuzz-40799 reports. modified: data.txt 2021-11-12: David Anderson commit 1bb2cae0ed9c9dbbb88b84dd5e0506b34a007dc1 Updated from git log modified: ChangeLog Documented git version with fixes to oss-fuzz-40895 oss-fuzz-40896 modified: bugxml/data.txt 2021-11-12: David Anderson commit b7a119dc07c502c1334bcbf8dd04ca0e4d5f6ab6 Start of new bug entries. oss-fuzz-40895 oss-fuzz-40896 modified: ../../../bugxml/data.txt Fixes oss-fuzz-40896 oss-fuzz-40895, which involved corrupted Elf object files. modified: dwarf_die_deliv.c modified: dwarf_elf_load_headers.c modified: dwarf_errmsg_list.h modified: libdwarf.h 2021-11-10: David Anderson commit 00c21b50764440a20545aa89da0f73c5ad365245 Fixed indents, trailing whitespace and other things in the libdwarf codingstyle.txt document. No change in logic or message content. modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/esb.c modified: src/bin/dwarfdump/print_aranges.c modified: src/bin/dwarfdump/print_debug_sup.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_static_vars.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/simplereader.c modified: src/bin/dwarfgen/createirepformfrombinary.cc modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/bin/dwarfgen/dwarf_getopt.c modified: src/bin/dwarfgen/dwarfgen.cc modified: src/bin/dwarfgen/irepattrtodbg.cc modified: src/bin/dwarfgen/ireptodbg.cc modified: src/bin/gennames/gennames.c modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/tag_tree.c modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_locationop_read.c modified: src/lib/libdwarfp/dwarf_pro_alloc.c modified: src/lib/libdwarfp/dwarf_pro_arange.c modified: src/lib/libdwarfp/dwarf_pro_die.c modified: src/lib/libdwarfp/dwarf_pro_dnames.c modified: src/lib/libdwarfp/dwarf_pro_error.c modified: src/lib/libdwarfp/dwarf_pro_forms.c modified: src/lib/libdwarfp/dwarf_pro_frame.c modified: src/lib/libdwarfp/dwarf_pro_init.c modified: src/lib/libdwarfp/dwarf_pro_line.c modified: src/lib/libdwarfp/dwarf_pro_log_extra_flag_strings.c modified: src/lib/libdwarfp/dwarf_pro_macinfo.c modified: src/lib/libdwarfp/dwarf_pro_reloc.c modified: src/lib/libdwarfp/dwarf_pro_reloc_stream.c modified: src/lib/libdwarfp/dwarf_pro_reloc_symbolic.c modified: src/lib/libdwarfp/dwarf_pro_section.c modified: src/lib/libdwarfp/dwarf_pro_types.c 2021-11-10: David Anderson commit 50f94dac7c890c8f7504c407e746585caa522b94 Now in html it counts the records (N) and shows the number (1-N) in each record title. modified: bugrecord.py modified: readbugs.py 2021-11-09: David Anderson commit c361a7eb576dbaad2b5d826d3651433c66f10d3c a duplicated DW20....id and one now is a later id.. modified: data.txt 2021-11-09: David Anderson commit b5d43716e20d54b5308a7aacff846346dee3389a All know data on CVE has been incorporated. modified: data.txt 2021-11-09: David Anderson commit 834c4557ce37074d71ca38494f8ba7952e000fbe More CVE updates from the past. modified: data.txt 2021-11-09: David Anderson commit c4a3315025b3e1e86aed10195be9957adf1e2218 Working through CVE list, adding data here. modified: data.txt 2021-11-08: David Anderson commit 9770b2cc4812857022a8e147bdfe1f102adba382 Polishing the records on oss-fuzz tests. modified: bugxml/data.txt Copyright accidentally slighly mangled. Fixed. modified: src/lib/libdwarf/dwarf_machoread.c 2021-11-08: David Anderson commit cd021a1311572d4f9bb37b0b808685a5ed84bcc3 Working toward complete reporting of the oss-fuzz reports. modified: bugxml/data.txt Corrected a test for a section group section-reference so it catches a section number just one too big. modified: src/lib/libdwarf/dwarf_elf_load_headers.c 2021-11-07: David Anderson commit 732c3509ffaa4b1aa70458c2ad568f55c6ae8e32 Updating info on oss-fuzz-40731. modified: bugxml/data.txt 2021-11-07: David Anderson commit eeec32b6f674efa8eacc72c656fc9a2f44f8e482 Logging fix to oss-fuzz-40729 modified: data.txt 2021-11-07: David Anderson commit 94dece3ce0f030d06da442a103bd6a5301410b25 oss-fuzz 40729. The test object is MachO 64 and corrupted header records were not being detected. Two new error codes added so the error values more meaningful: DW_DLE_MACHO_CORRUPT_COMMAND DW_DLE_MACHO_CORRUPT_SECTIONDETAILS modified: dwarf_errmsg_list.h modified: dwarf_machoread.c modified: libdwarf.h 2021-11-07: David Anderson commit 477aedeebeb0d694dfc44d6bbf20fd58a5facb69 All new git log contents prepended here. modified: ChangeLog 2021-11-07: David Anderson commit 5e636b1e9e20fadd034ed96475833d44c18c5749 Now version 4.17 All example code is now presented in the same formatting style and all examples are allocated figure names and numbers. modified: libdwarf.mm regenerated. modified: libdwarf.pdf 2021-11-06: David Anderson commit 30132d513f7566097bf3a9ccd2e093e3fe076f86 Removed a mistaken new entry. modified: data.txt 2021-11-06: David Anderson commit a8c5534343ba861bcb8416927d49c177f50b7017 Now with a new document section titled "Private vs Public Functions". modified: libdwarf.mm modified: libdwarf.pdf 2021-11-06: David Anderson commit f23c74a0820a65add86256c985561aac11c28852 Refinded the wording on the ret_dbg argument to dwarf_init_path() etc. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Made calls to dwarf_init_path() etc safer by removing an accidental trap for folks passing in a non-null dbg pointer through ret_dbg argument. modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_init_finish.c 2021-11-06: David Anderson commit 65b3214e5c11f7af11482d6874284f1831c0fd00 Fixing an issue with xml generation. modified: bugxml/bugrecord.py Minor updates modified: bugxml/data.txt 2021-11-06: David Anderson commit f69bd9d47836e670d725d789dd361d33e78ce716 Now Rev 4.16 6 November 2021. Added a new document section "Private vs Public Functions" to make it clear only functions beginning with "dwarf_" are public and callable. If libdwarf built as an archive it is up to callers to not violate this rule. If libdwarf built as a shared object (.so or .dll) the build arranges that only the public functions can be called (using gcc/clang -fvisibility where applicable). modified: doc/libdwarf.mm Regenerated. modified: doc/libdwarf.pdf 2021-11-05: David Anderson commit 98bd6d99d52a0895daf353f6fd25061bc5a1a5a9 Added DW202111-002 modified: data.txt 2021-11-04: David Anderson commit 09ded6dd0c70e9db859529be1a4635e316693ef0 Now finds the semantic version in the .mm files and updates it modified: tools/updatesemanticversion.py Now both have the semantic version. modified: doc/libdwarf.mm modified: doc/libdwarfp.mm Regenerated modified: doc/libdwarf.pdf modified: doc/libdwarfp.pdf 2021-11-04: David Anderson commit 9e3c6a8ec7127a116a19473bf8e30cc0a55ac604 Updated ChangeLog with git data. Completed updating the web bugxml data. modified: ChangeLog modified: bugxml/data.txt 2021-11-04: David Anderson commit b40f7e291216e771185f62292dd6304b5a662926 Enhanced the check for corrupt object file for ossfuzz40663 modified: src/lib/libdwarf/dwarf_machoread.c 2021-11-04: David Anderson commit 3c8151acf0ff408c11d2b4680e73dd5085ba3cdd Adding field fuzzer: to record the id the fuzzer assigned. modified: bugxml/bugrecord.py modified: bugxml/data.template modified: bugxml/data.txt modified: bugxml/readbugs.py 2021-11-04: David Anderson commit 8ac5923bcce9a8b57a4aa8d5820024064b4f9e41 Fixing ClusterFuzz issue 40663 Adding a new error code DW_DLE_MACHO_CORRUPT_HEADER modified: src/lib/libdwarf/dwarf_errmsg_list.h modified: src/lib/libdwarf/libdwarf.h Ensure the errcode from dwarf_init_path_dl gets turned into a Dwarf_Error modified: src/lib/libdwarf/dwarf_generic_init.c Now checks the command count and sizeofcmds for basic sanity, catching badly corrupt objects.. modified: src/lib/libdwarf/dwarf_machoread.c 2021-11-04: David Anderson commit eb6a3535595fcb3529b8690aa5725bafe1293230 Now reports a correct error if in process_one_file() detects an error, cleans up the error, and returns DW_DLV_NO_ENTRY a corrupt mach-o object file was previously not properly reported. modified: dwarfdump.c 2021-11-04: David Anderson commit 71764671216985fe7df2546a73d67566f11e5209 Now emphasizes that dwarf_get_frame_instruction() is fine unless you want frame details for a Heterogenous Debugging object file (and in that case you know you need it). modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Corrected the handling of the new frame instruction DW_CFA_LLVM_def_aspace_cfa_sf. modified: src/bin/dwarfdump/print_frames.c modified: src/lib/libdwarf/dwarf_frame.c 2021-11-03: David Anderson commit 6910ffb1bc3f79f944ec6da14f17ac7377340043 Trivial changes attempting to eliminate groff complaints building the pdf. It reads better, but the complaints are not fixed. modified: libdwarf.mm modified: libdwarf.pdf 2021-11-03: David Anderson commit ec885f887ad2a805630141b2f0c682af26f0e470 Document the new function dwarf_get_frame_instruction_a() (identical to dwarf_get_frame_instruction() except adding one new argument). modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Now with support for DW_CFA_LLVM_def_aspace_cfa[_sf] modified: src/bin/dwarfdump/print_frames.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/libdwarf.h 2021-11-03: David Anderson commit 3ea3c44ee1b815e0d7558a57b8d218a78f568882 Regenerated with version 0.3.1 as LLVM adds DW_CFA_LLVM_def_aspace_cfa[_sf] which requires the existence of a new function to get the third value (all previous CFA operators had a maxmum of 2 values). modified: CMakeLists.txt modified: configure.ac modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h 2021-11-03: David Anderson commit 79d6e012d7c4655b05a1670f1392780778e5f633 Now returns the string representing the new DW_CFA_LLVM, though dwarfdump cannot get all three values yet, as the new third value is not visible to dwarfdump. modified: dwarf_frame.c 2021-11-02: David Anderson commit 719af6996fdcf7de8bd2274692cd7582c0c87bec New LLVM DW_OP_LLVM and DW_CFA_LLVM names. modified: dwarf.h Implement the new CFA names. modified: dwarf_frame.c modified: dwarf_frame.h Regeneratd with the new names. modified: dwarf_names.c 2021-11-02: David Anderson commit 90777138b0113693fe1692bea368d7f8b0c81ba8 Now creates opscounttab.c with the new fields modified: src/bin/buildopstab/buildopscounttab.c Regenerated modified: src/bin/dwarfdump/opscounttab.c Added new DW_OP_LLVM ops. modified: src/lib/libdwarf/dwarf.h Handle the new ops. modified: src/lib/libdwarf/dwarf_locationop_read.c Regenerated modified: src/lib/libdwarf/dwarf_names.c 2021-10-23: David Anderson commit 10e2df5169e57624c53eb2e319e24462c5d61471 Adding in latest git log entries. modified: ChangeLog 2021-10-22: David Anderson commit d307e3417041ca9498be6df6d9bbc98fc94fd759 When in .debug_ranges the beginning == ending address, print "(empty range)" at the end of the range line to remind the reader this is not a range, but is a placeholder for a range that was deleted by the compiler or linker when the object was created. See DWARF4 standard page 39, non-normative text. modified: src/bin/dwarfdump/print_die.c 2021-10-18: David Anderson commit ab88ad8cb76ab4e6ab21f30b50771bcbb7ed14e0 If uintptr_t is defined in stdint.h at configure time we need to include stdint.h here for uintptr_t, which was done correctly everywhere else for uintptr_t. modified: dwarf_pro_dnames.c 2021-10-12: David Anderson commit 9e7fce0d22910b6374bea89a2937faa670368c3f Added words about libdwarf.h macros DW_LIBDWARF_VERSION etc in the documentation of dwarf_package_version(). modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-10-12: David Anderson commit 02863428a46d75a098a2b40e47aaeb46db889e89 Simplified the code. Easier to understand. modified: tools/updatesemanticversion.py 2021-10-12: David Anderson commit c2055a025bfdd6568c24a030d8aeef6021ebcae0 Adding in new gitlog entry modified: ChangeLog 2021-10-12: David Anderson commit 15de42b79eba2797cbf283419a537e2727a1adf9 Correcting spelling mistake DW_LIBDWARF_VERSION_MAJOR (not _MACRO) modified: src/lib/libdwarf/libdwarf.h modified: tools/updatesemanticversion.py 2021-10-12: David Anderson commit 15f563a466e83518839f77da3ea3c991f60db40c Now recent updates shown in ChangeLog modified: ChangeLog 2021-10-12: David Anderson commit ed67c88518bc7dc3374d7bd2e8c49c68b8935709 new file: tools/README Now a working update that ensures the various places with semantic versions are all set equivalently. modified: tools/updatesemanticversion.py 2021-10-11: David Anderson commit 957442d1059130b96713b255d3b29ddd90e1a512 Now, for the first time, DW_LIBDWARF_VERSION_MACRO DW_LIBDWARF_VERSION_MINOR DW_LIBDWARF_VERSION_MICRO and DW_LIBDWARF_VERSION are #defined. These have the Semantic version number. At present Macro is 0 minor is 3 Micro is 0 DW_LIBDWARF_VERSION is defined as "0.3.0" These are the version defined in libdwarf.h when one includes it. No earlier libdwarf.h defined any of these. The function dwarf_package_version(), on the other hand, returns a string with the PACKAGE_VERSION visible in configure.ac and CMakeLists.txt at the time the library was compiled modified: src/lib/libdwarf/libdwarf.h 2021-10-11: David Anderson commit 7635c57217080bf38e71216b9aa8491a7afce3be A tool in tools directory to make updating semantic version numbers simple ... for the various places they go. new file: updatesemanticversion.py 2021-10-09: David Anderson commit 536b25173574787f2336ee120c7e3c92a610cbe6 Now shows the original date format (such has "20210528") returned by dwarf_package_version() as well as the semantic-version date format (such as "0.3.0") Still document version 4.12 modified: ../../../doc/libdwarf.mm modified: ../../../doc/libdwarf.pdf 2021-10-09: David Anderson commit fef16930a3de105f25f2370e3fae652934071f99 Now the get_package_version() function documentation shows both semantic-version and date-based (a form used before September 2021) version strings that may be returned. modified: src/lib/libdwarf/libdwarf.h 2021-10-09: David Anderson commit 68084419107ca2c9b6cb062bcce9fbd8b4165067 Clarified and puts more emphasis on the way in which libdwarf tries to restrict the initial letters of public names to a small set. modified: src/lib/libdwarf/CODINGSTYLE 2021-10-09: David Anderson commit 433f3bd86f3b00809767c08fb64d52ccbdc425d5 functions in .debug_names that are not yet implemented have been removed. Now version 4.12. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-10-03: David Anderson commit 98927ddcaf31387f9df2ad9e747dc2310bfb32a4 trivial updates to match libdwarf.h renamings of the last day or so. Sorry this was not done yesterday. modified: doc/checkexamples.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_ranges.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/lib/libdwarf/dwarf_alloc.c modified: src/lib/libdwarf/dwarf_debuglink.c modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_find_sigref.c modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_getopt.c modified: src/lib/libdwarf/dwarf_gnu_index.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_loclists.c modified: src/lib/libdwarf/dwarf_macro5.c modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_query.c modified: src/lib/libdwarf/dwarf_rnglists.c modified: src/lib/libdwarf/dwarf_str_offsets.c modified: src/lib/libdwarf/dwarf_string.c modified: src/lib/libdwarf/dwarf_tsearchhash.c modified: src/lib/libdwarf/dwarf_util.c modified: src/lib/libdwarf/dwarf_xu_index.c modified: src/lib/libdwarf/libdwarf.h 2021-10-03: David Anderson commit 2c1432151073120bec37b80716897cd5a55eb934 Updated with new version in comment modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h 2021-10-02: David Anderson commit 019b1906911b41d5639ec8f2192b95e071933e88 Changelog now has latest git log lines. modified: ChangeLog 2021-10-02: David Anderson commit 85b53096a0ba7f5fbe66d6c73b8e6d8bdb1c6743 All functions in libdwarf.h are now documented. modified: libdwarf.mm modified: libdwarf.pdf 2021-10-02: David Anderson commit a4d0f96f8efffaa017cd0bb40800dde6f0e54233 Deleted dwarf_set_frame_rule_inital_value() as that was a spelling error in the 1990's, and the correct spelling is dwarf_set_frame_rule_initial_value( modified: src/lib/libdwarf/dwarf_frame.c Declarations: Deleted dwarf_get_rnglist_raw_entry_detail() and dwarf_get_loclists_entry_fields() as those functions never existed. modified: src/lib/libdwarf/libdwarf.h 2021-10-02: David Anderson commit d4d333467e6552316f2949377b5088ba1ed2cbb7 Nearly all functions documented. Four left undoc. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-10-02: David Anderson commit f16252cc9aab96da0687e86aaa0e49dcfd3207bb Several functions documented. About 19 left to document. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Improved a comment modified: src/lib/libdwarf/libdwarf.h 2021-10-02: David Anderson commit 70225545c82f613679d147ae2f58b162c3d31bf6 Documented more of the public interfaces. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Now dwarf_formsig8() and dwarf_formsig8_const() return DW_DLV_NO_ENTRY if the data is not the desired FORM. They previously returned DW_DLV_ERROR, which was not helpful. modified: src/lib/libdwarf/dwarf_form.c 2021-10-02: David Anderson commit 8a31576fbceccca6dec16350dbb50bca0931b1bf renaming for dealloc function naming consistency (but various dealloc functions left unchanged) -void dwarf_fde_cie_list_dealloc(Dwarf_Debug /*dbg*/, +void dwarf_dealloc_fde_cie_list(Dwarf_Debug /*dbg*/, -void dwarf_frame_instr_head_dealloc(Dwarf_Frame_Instr_Head); +void dwarf_dealloc_frame_instr_head(Dwarf_Frame_Instr_Head); -void dwarf_ranges_dealloc(Dwarf_Debug /*dbg*/, +void dwarf_dealloc_ranges(Dwarf_Debug /*dbg*/, modified: dwarf_frame.c modified: dwarf_frame2.c modified: dwarf_ranges.c modified: libdwarf.h 2021-10-01: David Anderson commit 8549d4fd75b1feff0a067c72307c8e0ec25ca296 Now the frame instruction example is updated. modified: doc/checkexamples.c Document the frame-related fields and functions. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Corrected comments to reflect current member fields. modified: src/lib/libdwarf/libdwarf.h 2021-10-01: David Anderson commit 14befdaeed1da49f2801487afe624b0ead5ee0df Corrected the text of a comment. modified: src/lib/libdwarf/dwarf_generic_init.c 2021-10-01: David Anderson commit 901b3e923d1e99d4fd218f7de5f634b51ba6ec78 Correcting examples, frame instructions. modified: checkexamples.c 2021-10-01: David Anderson commit d999f35950b2507653dd5687a6e86108566ad83a Basic updates reflecting recent changes. Version 4.11 modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Regenerated. 2021-10-01: David Anderson commit ee4adfd8ad3044fb0dd5b9dd3db30170b9fd0bf3 Changes for doxygen, just trying out a few doxygen comment arrangements. Has no effect on uses of the file. modified: src/lib/libdwarf/libdwarf.h 2021-09-30: David Anderson commit 5b2b4d09ad818ff9fdbf5b098d9b617c237e86c8 Corrected: debugnames -> dnames modified: doc/libdwarf.mm Changed comments. modified: src/lib/libdwarf/libdwarf.h 2021-09-30: David Anderson commit 11ccd0abe2a2dba92d92f585359d2d22b283a2a4 Coverity scan found two problems, a missing return caused both. added: return adres; modified: src/lib/libdwarf/dwarf_frame.c 2021-09-30: David Anderson commit 0b2193c039074ad483618a58a9f7c1d6f5cab75c Commentary about struct Dwarf_Macro_Details_s and struct Dwarf_Ranges_s. These structs apply to DWARF2,3, and 4 only. modified: libdwarf.h 2021-09-29: David Anderson commit 659c74dff7f0d5879cce40ae9aaf340bc8a3d4a1 Up to date with latest git log data. modified: ChangeLog 2021-09-29: David Anderson commit e7db94d38ad26c254b82273c66214dd0b493861b Now version 0.3.0 with API compatibilities in .debug_frame data and new functions. modified: CMakeLists.txt modified: configure.ac 2021-09-29: David Anderson commit d3ba444c4e4891545552590d9d36c2049197678e API change here for frame (and especially for frame instructions) Extensive use of Dwarf_Block where it adds clarity. Removed bit-reading of frame instructions as thats no longer necessary, the new function dwarf_get_frame_instruction() does that for us. modified: src/bin/dwarfdump/print_frames.c One internal pointer changed from Dwarf_Ptr to Dwarf_Small * for easier use and better type checking. modified: src/bin/dwarfdump/print_frames.h frame1.c is now using the revised and new frame interfaces. modified: src/bin/dwarfexample/frame1.c createirepfrombinary.cc is doing so too now. modified: src/bin/dwarfgen/createirepfrombinary.cc Rearranged DW_CFA_nop DW_CFA_extended so the nop version is what is printed, not the artificial DW_CFA_extended (both are 0). modified: src/lib/libdwarf/dwarf.h DW_DLA_FRAME_OP replaced by DW_DLA_FRAME_INSTR_HEAD and DW_DLA_FRAME_BLOCK has been dropped. modified: src/lib/libdwarf/dwarf_alloc.c Fixed a comment and pointless whitespace. modified: src/lib/libdwarf/dwarf_debugnames.c Added DW_DLE_CFA_INSTRUCTION_ERROR(485) modified: src/lib/libdwarf/dwarf_errmsg_list.h Dropped the Dwarf_Frame_Op support. Now with some internal args Dwarf_Unsigned where Dwarf_Signed made no sense. modified: src/lib/libdwarf/dwarf_frame.c Dwarf_Frame_Instr_s and Dwarf_Frame_Op_List_s (not visible to library callers) created. Now with some args Dwarf_Unsigned where Dwarf_Signed made no sense. modified: src/lib/libdwarf/dwarf_frame.h Now with some args Dwarf_Unsigned where Dwarf_Signed made no sense. modified: src/lib/libdwarf/dwarf_frame2.c Removed a useless blank line. modified: src/lib/libdwarf/dwarf_line_table_reader_common.h Fixed indents, trailing whitespace. modified: src/lib/libdwarf/dwarf_loc.c A Dwarf_Block field is no Dwarf_Byte_Ptr, identical to Dwarf_Small * modified: src/lib/libdwarf/dwarf_loc.h Removed #if 0 #endif short sequences. modified: src/lib/libdwarf/dwarf_macro.c 'make rebuild' altered this so DW_CFA_nop can be returned as a cfa name string. modified: src/lib/libdwarf/dwarf_names.c Removed trailing whitespace. modified: src/lib/libdwarf/dwarf_object_detector.c Removed a #if 0 endif declaration of code never written. modified: src/lib/libdwarf/dwarf_opaque.h Removed Dwarf_Frame_Op_s. It only ever worked for DWARF2. New opaque structs Dwarf_Frame_Instr_Head_s and Dwarf_Frame_Instr_s make possible easy and improved access to .debug_frame/.eh_frame DW_CFA instructions. Removed DW_DLA_FRAME_OP and added DW_DLA_FRAME_INSTR_HEAD. Added DW_DLE_CFA_INSTRUCTION_ERROR. dwarf_get_cie_info_b() and dwarf_get_fde_range() and dwarf_get_fde_instr_bytes(() now use Dwarf_Small * instead of Dwarf_Ptr as thats easier to use and slightly safer for type checking.. Effectively unsigned char * instead of void * dwarf_get_fde_info_for_reg3_b() dwarf_get_fde_info_for_cfa_reg3_b() uses Dwarf_Small * and also Dwarf_Signed arguments changed to Dwarf_Unsigned to accurately represent the meaning. Adds a Dwarf_Block replacing a pointer/length pair of arguments, dwarf_expand_frame_instructions() arguments much changed to allow access to frame instructions that handle *all* frame instructions, not just DWARF2 dwarf_get_frame_instruction() dwarf_frame_instr_head_dealloc() are new to enable correct printing of frame instructions without decoding the instruction bits. making the argumente clearer. modified: src/lib/libdwarf/libdwarf.h 2021-09-19: David Anderson commit 1c3cce658c068a165d57afd4954f504592c390dc Corrected spelling error. modified: README.md 2021-09-19: David Anderson commit 6f90b971b5847d4bf543e9c866e12817af136249 Now has the latest git log data. modified: ChangeLog 2021-09-19: David Anderson commit 6b7fd93356a1a58275f4014437508eda9aa0272c The 'namestable' options have no effect any longer, so they have been deleted. modified: CMakeLists.txt modified: configure.ac 2021-09-19: David Anderson commit 876c1edbbc6b29d9cd5e6a00372e65c82939e82c Updated comments in the Changes section. modified: libdwarf.mm Rev 4.10 modified: libdwarf.pdf Regenerated 2021-09-19: David Anderson commit dfd515afe38c8d48764b34d1040a8720a6e9fb8e Revised the documentation. README.md is available on www.prevanders.net/libdwarfreadme.html modified: README modified: README.md 2021-09-18: David Anderson commit 0db97085c7c15d52c811e1fe43fda9f67e5769b8 modified: ChangeLog As of now, coverityscan finds no problems. 2021-09-18: David Anderson commit dc49ecba7486ac33bd161ec4fb8b14b4cc46ad1d With these changes, coverity scan finds no defects in the libdwarf source. modified: src/bin/dwarfdump/print_debug_sup.c modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/lib/libdwarf/dwarf_debug_sup.c modified: src/lib/libdwarf/dwarf_debuglink.c 2021-09-18: David Anderson commit a7ea4f95c665e11068044bbce0f15765dd535e98 Now making this up to date with git log. modified: ChangeLog At this point the two remaining issues coverity scan detects are CID 238474 memory leak on an error, and it is not clear to me where the leak is. coverity reports all the details but.. the source looks correct. CID 206732 coverity determines that a loop cannot possibly result in a count of 0, though such seems possible. One assumes one is just missing something in each case. Continuing to look. 2021-09-18: David Anderson commit b2c32100d6c3a7abaa10614f401c3c4cab1077e7 more fixes for problems coverity scan detected. modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfgen/createirepformfrombinary.cc modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/bin/dwarfgen/irepattrtodbg.cc modified: src/bin/dwarfgen/irepdie.h modified: src/bin/dwarfgen/ireptodbg.cc modified: src/lib/libdwarf/dwarf_init_finish.c 2021-09-17: David Anderson commit 695305f59372312d645e9afd8592dd79a6d0f0d5 Fixes all but a few coverity CIDs. I think. modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_static_vars.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_object_detector.c 2021-09-17: David Anderson commit d39fd532ec3ad2cc0f15e3358fd537148b61bed1 Applied corrections for Coverity CID 140104 238474 238481 238483 238485 238486 238487 238493 238494 238503 238509 238510 modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/dwconf.c modified: src/bin/dwarfdump/print_debug_gnu.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_loclists_codes.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_gnu_index.c modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_object_detector.c 2021-09-16: David Anderson commit 6539d22b58f1b7859989113f8c6e9c6cd62721db Fixes for coverity scan id: 240132, 240130,240131,238512 238473 238474 238475 238476 238513 modified: src/bin/dwarfdump/globals.h modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/lib/libdwarf/dwarf_loclists.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarfp/dwarf_pro_section.c 2021-09-16: David Anderson commit 41c5018988fe818d16025bd21dcb46d263a8ae5b Fix coverity CID 238512 modified: dwarf_rnglists.c 2021-09-16: David Anderson commit 4eb3994fa3b31c8831840736b07278ec630351ca Fix coverity CID 240132 240131 240130 modified: src/bin/dwarfdump/print_macro.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarfp/dwarf_pro_forms.c 2021-09-16: David Anderson commit 4e742546b6584f4688f8db66776cd6351ecd007a Small but important incompatibility: dwarf_finish(Dwarf_Debug dbg); removes the useless and misleading Dwarf_Error, which was the second argument. That argument was not used! modified: src/lib/libdwarf/libdwarf.h Addresses 20+ coverity-scan-detected errors and removes the second argument to dwarf_finish(). modified: doc/libdwarf.mm modified: doc/libdwarf.pdf modified: src/bin/dwarfdump/compiler_info.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_aranges.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfexample/dwdebuglink.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/jitreader.c modified: src/bin/dwarfexample/simplereader.c modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/bin/tag_tree/tag_tree.c modified: src/lib/libdwarf/dwarf_arange.c modified: src/lib/libdwarf/dwarf_debug_sup.c modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_rnglists.c modified: src/lib/libdwarf/dwarf_xu_index.c modified: src/lib/libdwarfp/dwarf_pro_forms.c modified: src/lib/libdwarfp/dwarf_pro_section.c 2021-09-15: David Anderson commit 578b6d75fe1ed07654fdead76963fc871198c7c7 More fixes to things coverity scan detected. modified: src/bin/buildopstab/buildopscounttab.c modified: src/bin/dwarfdump/esb.c modified: src/bin/dwarfdump/print_aranges.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/gennames/gennames.c modified: src/lib/libdwarf/dwarf_abbrev.c modified: src/lib/libdwarf/dwarf_arange.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_gdbindex.c modified: src/lib/libdwarf/dwarf_gnu_index.c modified: src/lib/libdwarf/dwarf_line.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarf/dwarf_loclists.c modified: src/lib/libdwarf/dwarf_rnglists.c 2021-09-15: David Anderson commit 457d18129ee133a463f083d4be75029677c441ab Coverity scan found 18 issues. This should fix all of them. All but one represented a possible memory leak in an error condition. One is a possible duplicate free. A few instances here of removing unneeded blank lines and fixing too-long lines. modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_debugfission.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_gdbindex.c modified: src/bin/dwarfdump/print_lines.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfdump/print_pubnames.c modified: src/bin/dwarfexample/jitreader.c modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_print_lines.c modified: src/lib/libdwarf/dwarf_query.c 2021-09-14: David Anderson commit a78495363a6a16a35df005586eddae60df9b1457 Now with recent git log data. modified: ChangeLog 2021-09-14: David Anderson commit 400cf6d49ce2ade160932a1d35f0c0fd6bd404c7 Fixed indents and removed some blank lines. modified: checkexamples.c 2021-09-14: David Anderson commit bbf84c5d3282d60d08b5e9ae7b80ba733a0a2fa5 Added comments pointing out the future removal of Dwarf_Frame_Op. modified: src/bin/dwarfexample/frame1.c modified: src/lib/libdwarf/libdwarf.h 2021-09-14: David Anderson commit c46ec30d52b82a23356be9c065871574f87aa23e Corrected the examples to match current interfaces. modified: doc/checkexamples.c 2021-09-13: David Anderson commit 9474d46e3f10ef9c073d5d04c11934f5dc61a9d4 Each group of blank lines is now a single line. modified: command_options.h dwarf_getopt.h dwconf.h esb.h esb_using_functions.h globals.h helpertree.h macrocheck.h section_bitmaps.h tag_common.h 2021-09-13: David Anderson commit be6b995a732bb2245a38e2430a90e163fa6044b0 modified: dwarf_abbrev.c dwarf_alloc.c dwarf_arange.c dwarf_crc.c dwarf_crc32.c dwarf_debuglink.c dwarf_debugnames.c dwarf_die_deliv.c dwarf_dsc.c dwarf_elf_load_headers.c dwarf_elf_rel_detector.c dwarf_error.c dwarf_find_sigref.c dwarf_fission_to_cu.c dwarf_form.c dwarf_funcs.c dwarf_gdbindex.c dwarf_generic_init.c dwarf_getopt.c dwarf_global.c dwarf_groups.c dwarf_harmless.c dwarf_init_finish.c dwarf_leb.c dwarf_line.c dwarf_loc.c dwarf_locationop_read.c dwarf_loclists.c dwarf_machoread.c dwarf_macro.c dwarf_macro5.c dwarf_object_detector.c dwarf_peread.c dwarf_print_lines.c dwarf_pubtypes.c dwarf_query.c dwarf_ranges.c dwarf_rnglists.c dwarf_str_offsets.c dwarf_string.c dwarf_tied.c dwarf_tsearchhash.c dwarf_types.c dwarf_util.c dwarf_vars.c dwarf_weaks.c dwarf_xu_index.c 2021-09-13: David Anderson commit 1d8b38f2ec29db066db0a3ef2abf1ef7e77648f1 With a tool, reduced each block of blank lines into a single blank line. modified: dwarf_abbrev.h modified: dwarf_arange.h modified: dwarf_base_types.h modified: dwarf_elf_access.h modified: dwarf_elf_defines.h modified: dwarf_elf_rel_detector.h modified: dwarf_elfread.h modified: dwarf_elfstructs.h modified: dwarf_errmsg_list.h modified: dwarf_funcs.h modified: dwarf_gdbindex.h modified: dwarf_getopt.h modified: dwarf_global.h modified: dwarf_harmless.h modified: dwarf_line.h modified: dwarf_line_table_reader_common.h modified: dwarf_loc.h modified: dwarf_macho_loader.h modified: dwarf_machoread.h modified: dwarf_macro.h modified: dwarf_macro5.h modified: dwarf_object_detector.h modified: dwarf_opaque.h modified: dwarf_pe_descr.h modified: dwarf_peread.h modified: dwarf_reloc_386.h modified: dwarf_reloc_arm.h modified: dwarf_rnglists.h modified: dwarf_str_offsets.h modified: dwarf_string.h modified: dwarf_tied_decls.h modified: dwarf_types.h modified: dwarf_util.h modified: dwarf_xu_index.h 2021-09-13: David Anderson commit fac853118888900786220c20d10776adb99749c4 Using a tool, changed each grouping of blank lines into a single blank line. modified: addrmap.c modified: attr_form.c modified: checkutil.c modified: command_options.c modified: compiler_info.c modified: dd_regex.c modified: dd_sanitized.c modified: dd_uri.c modified: dwarf_getopt.c modified: dwarf_tsearchbal.c modified: dwarfdump.c modified: dwconf.c modified: esb.c modified: helpertree.c modified: macrocheck.c modified: naming.c modified: print_abbrevs.c modified: print_aranges.c modified: print_debug_gnu.c modified: print_debug_sup.c modified: print_die.c modified: print_frames.c modified: print_gdbindex.c modified: print_hipc_lopc_attr.c modified: print_lines.c modified: print_llex_codes.c modified: print_loclists.c modified: print_loclists_codes.c modified: print_macro.c modified: print_origloclist_codes.c modified: print_pubnames.c modified: print_rnglists.c modified: print_section_groups.c modified: print_static_funcs.c modified: print_tag_attributes_usage.c modified: uritablebuild.c 2021-09-13: David Anderson commit 0cba1da28412ca57f7b234ab3545761b0f008861 Now with recent updates. modified: ChangeLog 2021-09-13: David Anderson commit e7cb3d7c880d5ec304646eb29356986b1b7d3447 A small tool now notices instances of multiple blank lines and eliminates all but one of them. Also notices something like } } (with the blank line between) and drops that empty pointless blank line. modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/dwarf_frame.h modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/libdwarf.h 2021-09-13: David Anderson commit 7fc73b9a8bb1a50a003f9ecf1fc31e4ecd6fe813 All the earlier dwarfgen/ChangeLog20xx were left off by 'make dist' and now they apprear properly. modified: src/bin/dwarfgen/Makefile.am 2021-09-13: David Anderson commit 43bdde11b898abcc8c338a48959728d2f38b6162 -" ", +" ", modified: src/bin/dwarfdump/print_die.c 2021-09-13: David Anderson commit 58920809a408eeac18afb1ca14fa5ba545120ae7 A recent update changed things. make dist was now causing test/dummyexecutable to be rebuilt from test/dummyexecutable.c. That was not intended. So renamed dummyexecutable.c so make cannot make the connection or try to rebuild dummyexecutable. This simple change just makes what is going on slightly clearer with respect to the two object sections involved. modified: src/lib/libdwarf/dwarf_debuglink.c This file should not be in libdwarfp, libdwarfp gets the content from libdwarf source. deleted: src/lib/libdwarfp/dwarf_string.c Added an exit 0 so even if run the script does nothing. As intended! It is really documentation and should not be run. modified: test/buildingdummy.sh renamed: test/dummyexecutable.c -> test/dummysourceignore The makefile reflects the name changes so the files get into the make dist output. modified: test/Makefile.am 2021-09-12: David Anderson commit b70c815780a8658592e76ffdcf5c9f8d8284084a Modified libdwarf-internal function names to have a leading _dwarf_ modified: dwarf_frame.c modified: dwarf_frame.h modified: dwarf_frame2.c Deleted dwarf_frame_get_reg_register() and dwarf_frame_get_reg_expression() as they no longer exist and did not work for recent dwarf. modified: libdwarf.h 2021-09-11: David Anderson commit cb86f35166a71eae445715cca9249a18b133745f Updated with files changed due to recent deletion of some blank lines. modified: ChangeLog 2021-09-11: David Anderson commit cccee303f33b8c4dcccaaae236a5922c467eaa77 Each instance of multiple blank lines reduced to a single blank line. modified: buildopstab/buildopscounttab.c modified: gennames/gennames.c modified: tag_attr/tag_attr.c modified: tag_tree/tag_tree.c 2021-09-11: David Anderson commit c55271af36006f2e7ee4bbe4750f3b417b01e0f1 Each instance of multiple blank lines reduced to a single blank line. modified: src/bin/dwarfexample/dwdebuglink.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/jitreader.c modified: src/bin/dwarfexample/simplecrc.c modified: src/bin/dwarfexample/simplereader.c 2021-09-11: David Anderson commit 7a1d69baa69ea4982b6cfc8de55463a57d7a662b Each instance of multiple blank lines reduced to a single blank line. modified: dwarf_leb_test.c modified: dwarf_tied_test.c modified: getnametest.c modified: getopttest.c modified: makename_test.c modified: test_canonical.c modified: test_dwarfstring.c modified: test_errmsglist.c modified: test_extra_flag_strings.c modified: test_linkedtopath.c modified: test_regex.c modified: testesb.c 2021-09-11: David Anderson commit eb499fc7c60aa9e350f311c8df199d22632d7a59 A new script (not part of libdwarf) now turns a sequence of blank lines into a single blank line. Eventually this will be applied everwhere to .c and .h files. modified: src/lib/libdwarf/dwarf.h modified: src/lib/libdwarf/dwarf_die_deliv.h modified: src/lib/libdwarf/dwarf_dsc.h modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/libdwarf.h 2021-09-10: David Anderson commit c91317981ea93a820cc881f12852b770ffc45730 No longer defines DW_OBJ_LSB or DW_OBJ_MSB or the type Dwarf_Endian. No longer defines DW_ENDIAN_BIG DW_ENDIAN_LITTLE Use DW_END_big and DW_END_little from dwarf.h. Using three different name sets was an accident of history. Instead, now using DW_END_big and DW_END_little from dwarf.h (These were introduced in DWARF3.) The ranges of endian fit in a Dwarf_Small. modified: src/lib/libdwarf/libdwarf.h There is no actual compatibility issue for library users as all the uses are in dwarfdump and libdwarf. Plus a single use in jitreader.c The required places updated to use DW_END_big/little: modified: src/bin/dwarfexample/jitreader.c modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_machoread.h modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/libdwarf.h 2021-09-10: David Anderson commit 83438dbbe4991fb333fd0c6f9924513f4744244e Added the recent git log entries. modified: ChangeLog 2021-09-10: David Anderson commit 85134d41493f7a236f8680a09a44ec8b25000885 Shortening lines, fixing indents, and removing trailing whitespace. modified: src/lib/libdwarf/dwarf_errmsg_list.h modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_memcpy_swap.c modified: src/lib/libdwarf/dwarf_opaque.h modified: src/lib/libdwarf/dwarf_util.h modified: src/lib/libdwarf/libdwarf.h 2021-09-10: David Anderson commit 6bf6fd8f88bb445b4682c439ebab10e62c5d9a2e Dropping #define DW_ENDIAN_BIG and DW_ENDIAN_LITTLE as they just duplicate dwarf.h DW_END_big DW_END_little (with the same integer values). modified: src/lib/libdwarf/libdwarf.h Now documents DW_END_big/little instead of DW_ENDIAN* Removed incorrect doc of DW_ENDIAN_SAME/OPPOSITE, those were never meaningful. modified: doc/libdwarf.mm Now version 4.8 Regenerated. modified: doc/libdwarf.pdf Add include "dwarf.h" and use DW_END_big/little from dwarf.h modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_object_detector.c Delete def of DW_ENDIAN*, no longer used. modified: src/lib/libdwarf/dwarf_object_detector.h 2021-09-10: David Anderson commit 990fe5e78150ffa2a7270312403b83d30669ec9d Use DW_OBJECT_LSB, not DW_ENDIAN_LITTLE! Also fixed trailing whitespace and bad indents. modified: jitreader.c 2021-09-09: David Anderson commit ca7afc32c6e625333c26677cd987b0bc86bc0ce4 Updated version to 0.2.0 to match configure.ac. Using a python script now to avoid forgetting update of one or the other place the version is recorded. modified: CMakeLists.txt 2021-09-07: David Anderson commit 12a3f940b23a5ba815acbc04889ca698cef25ad1 Removed spurious line. modified: ChangeLog 2021-09-07: David Anderson commit 5f860e5945578c0af48ccd8321382aeb187efb7b Updates with gitlog data. modified: ChangeLog Minor commentary changes(hoping for clarity). modified: src/bin/dwarfexample/jitreader.c 2021-09-06: David Anderson commit 3ceff448fe685005a97b001f2c637ac6211f87eb More comments on why this matters. modified: jitreader.c 2021-09-06: David Anderson commit fc20d24541507dd12ce5efcace7443c09202d9a7 Version now 0.2.0 to reflect the *Obj_Access* struct changes. modified: configure.ac modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c 2021-09-06: David Anderson commit 2403367525e0de88b611e4281689c43a4d6037cb Squashed commit of the following: commit 4d82551c527eeb827992f0bada2c85dac7f3faa0 Author: David Anderson Date: Mon Sep 6 17:30:31 2021 -0700 In updating the handling of SHF_COMPRESSED one line got accidentally lost. So now restored (very slightly differently). modified: dwarf_init_finish.c commit 1a2ae9024d175a909ea19a4a1e421cf2b3dc9b79 Author: David Anderson Date: Mon Sep 6 16:24:04 2021 -0700 Now cmake sees the new jitreader and runs jitreaderdiff.sh to ensure it works. modified: src/bin/dwarfexample/CMakeLists.txt modified: test/CMakeLists.txt commit c32b8ad6574e071fa02a4d2b5e73c0e740f82adf Author: David Anderson Date: Mon Sep 6 15:35:12 2021 -0700 Now prints something of the CU DIE it reads. modified: src/bin/dwarfexample/jitreader.c Updated baseline. modified: test/jitreader.base commit 33a621fa57d023fea1fb7895f07a49b9cb30b7c3 Author: David Anderson Date: Mon Sep 6 14:12:39 2021 -0700 Now shows ZLIB flags if any needed and present. modified: configure.ac Now builds jitreader.c modified: src/bin/dwarfexample/Makefile.am Now runs jitreader.sh to ensure jitreader is working. modified: test/Makefile.am commit f7c1426b5fc1b8ee67bd405d02710f69b5d6b3af Author: David Anderson Date: Mon Sep 6 14:08:54 2021 -0700 Major incompatible change for a very small and unusual use-case. Ordinary libdwarf use or just Now struct Dwarf_Obj_Access_Interface_a_s struct Dwarf_Obj_Access_Methods_a_s struct Dwarf_Obj_Access_Section_a_s have all the fields they should have had all along, but the member names have appropriate 2-letter prefixes to make it easy to quickly find uses of the members. This only affects those applications reading dwarf from memory (meaning, there is no file existing to read). This is typical for just-in-time (jit) compilers. modified: src/lib/libdwarf/libdwarf.h Now we have a worked out example demonstrating the abilility to use data in memory as DWARF infomation. renamed: jitreader.c -> ../src/bin/dwarfexample/jitreader.c The following were modified to match up with the new names, as libdwarf actually uses, internally, the data in the above-named structs. modified: src/lib/libdwarf/dwarf_elfread.c modified: ./src/lib/libdwarf/dwarf_init_finish.c modified: ./src/lib/libdwarf/dwarf_machoread.c modified: ./src/lib/libdwarf/dwarf_opaque.h modified: ./src/lib/libdwarf/dwarf_peread.c New new file: test/jitreader.base new file: test/jitreaderdiff.sh commit 05b85bc60f0ed9b28088604008a3b5efb1103b6c Author: David Anderson Date: Mon Sep 6 10:53:19 2021 -0700 Renamed the test case to provide a better idea as to what the test shows: accessing all of libdwarf where the DWARF information is not in a file at all, or is in a special file format which is not Elf or PE or MacOS. modified: test/Makefile.am new file: test/jitreader.c deleted: test/objaccess.c commit a10fa8fe5172a2b34bfff163499e48ae7884c761 Author: David Anderson Date: Sat Sep 4 16:47:02 2021 -0700 Added filesize to the access function pointer list, making it possible to correctly deal with file sizes Where it was not previously possible in libdwarf. For callers passing a path or reading via an fd all this is invisible. For people wishing to use dwarf_object_init_b() on DWARF which is in memory (possibly something never on disk) or in a special file format this change makes it possible to have libdwarf work properly and safely. struct Dwarf_Obj_Access_Interface_a_s is similar to the previous struct name, but the members of the struct are ai_object and ai_methods, making it easier to grep for the usage. struct Dwarf_Obj_Access_Methods_a_s is similar to the old struct name but it adds a new method om_get_filesize. And all member names prefixed with om_ so the fields can be found with grep easily. And the order of the values in the struct changed slightly. modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_opaque.h modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/libdwarf.h 2021-09-04: David Anderson commit 5593a44b4182db596fb2da87f563a7992a4f985f buildopscounttab.c and the table it builds, opscounttab.c, had lines longer than the codingstyle calls for. Fixed modified: src/bin/buildopstab/buildopscounttab.c Regenerated. modified: src/bin/dwarfdump/opscounttab.c 2021-09-04: David Anderson commit c316dffb261d411f6fb908951a5bd0f633ffbcd1 Renaming dwarfdump source to have a preceding dd_ which means lots of trivial changes. renamed: src/bin/dwarfdump/sanitized.c -> src/bin/dwarfdump/dd_sanitized.c renamed: src/bin/dwarfdump/sanitized.h -> src/bin/dwarfdump/dd_sanitized.h renamed: src/bin/dwarfdump/uri.c -> src/bin/dwarfdump/dd_uri.c renamed: src/bin/dwarfdump/uri.h -> src/bin/dwarfdump/dd_uri.h modified: src/bin/attr_form/Makefile.am modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_tree/Makefile.am Many files had include of one or the other of the two headers. Fixed the include to have dd_ with a tiny sed script. Not listing all the files here. 2021-09-04: David Anderson commit 6bafd7de063944e69cbeeabf518a6fe59ef6c7d0 Tidying the new source just before 'while (lp >= are)' and ensuring it builds with and without -DDEBUG modified: src/bin/dwarfdump/dd_regex.c The change here has no effect on results, which remain correct. 2021-09-03: David Anderson commit bdf75cf094ed2c6077e89716a1ab3f4c2302fe08 Fixed indents, trailing whitespace. modified: test_regex.c 2021-09-03: David Anderson commit 3d51b25bc52d0091945ad72562e340f438d371ef Remove trailing whitespace. modified: command_options.c Modified to follow the libdwarf coding standard, here meaning all indents are multiple of 4 with no trailing whitespace. modified: dd_regex.c modified: dd_regex.h 2021-09-03: David Anderson commit 4270418b0f6ad3eb201c3953ceeeb17e09d93dcb A small revision to make the code slightly clearer. modified: src/bin/dwarfdump/dd_regex.c 2021-09-03: David Anderson commit ee98aefb1c51e9dc2b654c783217dad765323e2d Now, with --enable-shared the shared library uses gcc -visibility=hidden (if your non-Windows compiler supports it) to reduce the size of the elf .dynsym section. For libdwarf, this reduces the external symbol count from 542 to 373, a 32 percent savings in symbols to be read/relocated in loading libdwarf.so Windows builds already supported Windows facilities with the same effect. modified: configure.ac 2021-09-03: David Anderson commit d1f5ea7a91a8d66e35f1574633bb58fe45d69f83 Renamed all the libdwarfp source file names to start with dwarf_pro_ Not showing the renamings here. Then adjustments were made to get it to build. As listed here. modified: src/lib/libdwarfp/CMakeLists.txt modified: src/lib/libdwarfp/Makefile.am modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/test_extra_flag_strings.c 2021-09-03: David Anderson commit 973fbfdf87fa709fb336d157c4b5aebdb7d26532 dwarfstring.h renamed dwarf_string.h dwarfstring.c renamed dwarf_string.c Now all source files in src/lib/libdwarf have a file name beginning with dwarf_ to make library source recognition easier. modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/dwarf_abbrev.c modified: src/lib/libdwarf/dwarf_alloc.c modified: src/lib/libdwarf/dwarf_arange.c modified: src/lib/libdwarf/dwarf_debug_sup.c modified: src/lib/libdwarf/dwarf_debuglink.c modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_error.c modified: src/lib/libdwarf/dwarf_find_sigref.c modified: src/lib/libdwarf/dwarf_fission_to_cu.c modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/dwarf_gdbindex.c modified: src/lib/libdwarf/dwarf_global.c modified: src/lib/libdwarf/dwarf_gnu_index.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_line.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarf/dwarf_locationop_read.c modified: src/lib/libdwarf/dwarf_loclists.c modified: src/lib/libdwarf/dwarf_macro5.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_print_lines.c modified: src/lib/libdwarf/dwarf_query.c modified: src/lib/libdwarf/dwarf_ranges.c modified: src/lib/libdwarf/dwarf_rnglists.c modified: src/lib/libdwarf/dwarf_str_offsets.c renamed: src/lib/libdwarf/dwarfstring.c -> src/lib/libdwarf/dwarf_string.c renamed: src/lib/libdwarf/dwarfstring.h -> src/lib/libdwarf/dwarf_string.h modified: src/lib/libdwarf/dwarf_util.c modified: src/lib/libdwarf/dwarf_xu_index.c modified: src/lib/libdwarfp/Makefile.am renamed: src/lib/libdwarfp/dwarfstring.c -> src/lib/libdwarfp/dwarf_string.c modified: src/lib/libdwarfp/pro_init.c modified: src/lib/libdwarfp/pro_log_extra_flag_strings.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/test_dwarfstring.c modified: test/test_extra_flag_strings.c modified: test/test_linkedtopath.c 2021-09-03: David Anderson commit 69af3e507e90a6689f04a982482c9e4e2d2cfcbc This is renaming of dwgetopt.[hc] and crc32.c to have dwarf_ prefix for anyone seeing libdwarf in a stack trace. modified: src/bin/attr_form/Makefile.am modified: src/bin/attr_form/attr_form_build.c modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/command_options.c renamed: src/bin/dwarfdump/dwgetopt.c -> src/bin/dwarfdump/dwarf_getopt.c renamed: src/bin/dwarfdump/dwgetopt.h -> src/bin/dwarfdump/dwarf_getopt.h modified: src/bin/dwarfgen/CMakeLists.txt modified: src/bin/dwarfgen/Makefile.am renamed: src/bin/dwarfgen/dwgetopt.c -> src/bin/dwarfgen/dwarf_getopt.c renamed: src/bin/dwarfgen/dwgetopt.h -> src/bin/dwarfgen/dwarf_getopt.h modified: src/bin/dwarfgen/dwarfgen.cc modified: src/bin/gennames/Makefile.am modified: src/bin/gennames/gennames.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/Makefile.am modified: src/bin/tag_tree/tag_tree.c modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am renamed: src/lib/libdwarf/crc32.c -> src/lib/libdwarf/dwarf_crc.c renamed: src/lib/libdwarf/dwgetopt.c -> src/lib/libdwarf/dwarf_getopt.c renamed: src/lib/libdwarf/dwgetopt.h -> src/lib/libdwarf/dwarf_getopt.h modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/getopttest.c 2021-09-02: David Anderson commit ec5f180a27421cc4ef3cc6f22a962eb6ae961ff7 make rebuild added the new LLVM TAG. modified: src/lib/libdwarf/dwarf_names.c 2021-09-02: David Anderson commit 56ef9f8ae5acd2e87fc139e797605f1ab7e2a98f Added new DW_TAG_LLVM_annotation and resorted TAG entries to be in numeric order. modified: src/lib/libdwarf/dwarf.h 2021-09-02: David Anderson commit ef07a37a68a0c9a85ad90d6538e7abaaa2918901 Modified so it works with 3.10 cmake too. modified: test/CMakeLists.txt 2021-09-02: David Anderson commit eebf2237f2696348cb4e897b9f49e98fc441a361 Latest changes from git log incorporated modified: ChangeLog 2021-09-02: David Anderson commit 7c2a53f2854892f891c1872cf64e56a2bcc8b951 A fully functioning regex that does Posix Basic Regular Expression matching is now built into dwarfdump. modified: src/bin/dwarfdump/dd_regex.c modified: src/bin/dwarfdump/dd_regex.h This does a fairly large set of testcases in make check (and for cmake too). modified: test/test_regex.c 2021-08-31: David Anderson commit 8dc87d5b997f529b80884a6e306687ab402b8463 Minor tweak of the incomplete dd_regex.c code. DO NOT USE -Sregex as it does not yet work. and 'make check' fails its regex changes. modified: src/bin/dwarfdump/dd_regex.c 2021-08-31: David Anderson commit 08fa32841bade1ceea9492b1aea05932d1b7559d Merge: b4fd80f4 0a98801c Merge branch 'master' of https://github.com/davea42/libdwarf-code README.md now has improved MarkDown markings. 2021-08-31: David Anderson commit 0a98801c08ed3d2c6a198205fcc40c0ae1711a0f Merge: 6615a59f 50f7563f Merge pull request #47 from vtorri/vtorri_readme Use markdown features for README.md 2021-08-31: David Anderson commit b4fd80f411d81767c83f5544ed01444a25886d81 DO NOT USE THIS COMMIT. Incomplete. Modified the doc of -Sregex modified: doc/dwarfdump.1 New version, writing t. Not from the internet. modified: src/bin/dwarfdump/dd_regex.c Modified declaration. modified: src/bin/dwarfdump/dd_regex.h Added new tests modified: test/test_regex.c 2021-08-27: David Anderson commit c81ad1b4bd924847770c575677eed3134c8b83ae Version 4.7 27 August 2021. The example code for dwarf_get_location_op_value_d() mixed up the arguments opd vs raw which was quite bad as the compiler could not help anyone find the mistake. Fixed in the document. modified: libdwarf.mm modified: libdwarf.pdf 2021-08-27: David Anderson commit 37fa82942e4b9b66de6358410b1335cfa7fa182d DO NOT USE THIS COMMIT. Works better but full of debug lines. modified: src/bin/dwarfdump/dd_regex.c modified: test/test_regex.c 2021-08-26: David Anderson commit 0be9ce8cac5963f30c547404b785c947e0570b02 DO NOT USE THIS COMMIT. Bug not fixed. modified: dd_regex.c 2021-08-26: David Anderson commit c67defd3a9d8eb62bcdef58e7a5afa1b4d4d0494 DO NOT USE THIS COMMIT. A work in progress. modified: src/bin/dwarfdump/dd_regex.c modified: test/test_regex.c 2021-08-26: Vincent Torri commit 50f7563f9553677382486ee1846f3493bed6ccd8 Use markdown features for README.md modified: README.md 2021-08-21: David Anderson commit 06928e93bac0cedc65ffb9028efaaa54bd7d0a02 DO NOT USE THIS COMMIT. the dd_regex.c is only 7-bit char safe. Otherwise it works well. Added a new test for regex in test/ modified: CMakeLists.txt modified: configure.ac modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/command_options.c modified: src/bin/dwarfdump/dd_regex.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/glflags.c modified: src/bin/dwarfdump/glflags.h modified: src/bin/dwarfdump/globals.h modified: src/bin/dwarfdump/print_die.c modified: test/CMakeLists.txt modified: test/test_regex.c 2021-08-21: David Anderson commit e41891bc7ac83f006c32ad7b88b1fc6c12c066a8 Brings a public domain regex into dwarfdump DO NOT USE THIS COMMIT. It only does 7-bit ascii and still used libc regex if present. modified: src/bin/dwarfdump/dd_regex.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/test_regex.c 2021-08-21: David Anderson commit 174ae601217b1f5ebed218acffcf0ab66d9d32ae added hints (comments for coverity scan ) modified: src/lib/libdwarf/dwarf_alloc.c 2021-08-17: David Anderson commit 847264b71dd7a23a9d46629391f23985616596db DO NOT USE THIS COMMIT The source and test are now in the intended form with dwarfdump-like (libdwarf-like) arguments and return values. Basically works, but... corner cases perhaps not working as expected. modified: src/bin/dwarfdump/dd_regex.c modified: src/bin/dwarfdump/dd_regex.h new file: test/test_regex.c 2021-08-17: David Anderson commit 22ff6e700d2bcf8c31ec16c79ba79d1604cb1a0f dwarfdump files now compile with new function declarations. modified: dd_regex.c modified: dd_regex.h 2021-08-17: David Anderson commit 302d672243a0b9a8af8dd1982829d231d18f4a2f DO NOT USE THIS COMMIT. revising interfaces and reformatting lines in progress. modified: dd_regex.c modified: dd_regex.h 2021-08-17: David Anderson commit 931ab9da63a372badda2137fcafc7137ae4a57e3 Initial public domain source of code that does Posix Basic Regular Expressions. So all dwarfdump users have such available for dwarfdump -S (--search-match) options. new file: src/bin/dwarfdump/dd_regex.c new file: src/bin/dwarfdump/dd_regex.h 2021-08-16: David Anderson commit 6615a59f9ce5c5bf6dea7a466887e8cf8de757b3 Merge: 3134aac9 cad88ab6 Merge pull request #46 from vtorri/vtorri_ignore1 ignore libdwarfp.pc and a conf file in test/ 2021-08-15: David Anderson commit 3134aac902ac4e1bedbd7db18808684cc590ef74 Revoking a change I made a few days ago that prevented building shared and non-shared in one run. modified: CMakeLists.txt 2021-08-15: Vincent Torri commit cad88ab653f90dbee9172a3316ca0b107c5935b0 ignore libdwarfp.pc and a conf file in test/ modified: .gitignore 2021-08-15: David Anderson commit 138f2242444eef3a142f9e43b8244d2bed3ff09f Merge: 6ac2df5c d2922d0e Merge pull request #45 from vtorri/vtorri_tsearch3 Revert work about string and tsearch 2021-08-15: Vincent Torri commit d2922d0ecbbc3ebd617c3ce44c3fbc934443c8c0 missing dwarf_tsearch in dwarfdump 2021-08-15: Vincent Torri commit 1e264d34f5f0e94426fc16df9277e28cdc7aa1ef fix paths in tied test 2021-08-15: Vincent Torri commit bd73e7a29a3475c44113a6e78516fbe23a46c32c fix paths in wqtests 2021-08-15: Vincent Torri commit 220e69ff415f316017bb584b197c8f74b20b86da Revert work about string and tsearch modified: Makefile.am modified: configure.ac modified: src/bin/attr_form/Makefile.am modified: src/bin/buildopstab/Makefile.am modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/dwarf_tsearchbal.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_tree/Makefile.am deleted: src/lib/dwarfstring/Makefile.am deleted: src/lib/dwarftsearch/Makefile.am modified: src/lib/libdwarf/Makefile.am renamed: src/lib/dwarftsearch/dwarf_tsearch.h -> src/lib/libdwarf/dwarf_tsearch.h renamed: src/lib/dwarftsearch/dwarf_tsearchhash.c -> src/lib/libdwarf/dwarf_tsearchhash.c renamed: src/lib/dwarfstring/dwarfstring.c -> src/lib/libdwarf/dwarfstring.c renamed: src/lib/dwarfstring/dwarfstring.h -> src/lib/libdwarf/dwarfstring.h modified: src/lib/libdwarfp/Makefile.am 2021-08-15: David Anderson commit 6ac2df5c0ef9fb2f04c3ce66e1fe91a3a1c446b0 Merge: 7b4882ec f4e32822 Merge pull request #42 from vtorri/master Fix undefined references in libdwarfp 2021-08-15: Vincent Torri commit f4e32822338ac65e20d26e3ef4a5db6f315e711f Fix undefined references in libdwarfp deleted: src/lib/libdwarfp/memcpy_swap.h modified: src/lib/libdwarfp/Makefile.am modified: src/lib/libdwarfp/pro_init.c 2021-08-14: David Anderson commit 7b4882ecff8d11bdb2a73f5ebb9f737bd7c66655 Merge: 68ba24f5 de4b7f95 Merge pull request #41 from vtorri/master Move dwarftsearch code to its own static library. 2021-08-14: Vincent Torri commit de4b7f95c3754f733bdf380dd9e713e80abfea5b fix dwarf_tsearchhash.c location in tied test 2021-08-14: Vincent Torri commit 2bd8e9d0a00ed119008bdc454ff3e0245387630a fix include search path for macrocheck test 2021-08-14: Vincent Torri commit 70a98028015cf83a85c4beffc4dd47fc94edc2c4 fix include search path for tagattr 2021-08-14: Vincent Torri commit 6a26e1766712d72a2523d5a147b4c68b77688336 fix include search path for tagtree 2021-08-14: Vincent Torri commit 1e2018835970f22ac79fb6e9968d501f210d17dd Move dwarftsearch code to its own static library. deleted: src/bin/dwarfdump/dwarf_tsearch.h new file: src/lib/dwarftsearch/Makefile.am renamed: src/lib/libdwarf/dwarf_tsearch.h -> src/lib/dwarftsearch/dwarf_tsearch.h renamed: src/lib/libdwarf/dwarf_tsearchhash.c -> src/lib/dwarftsearch/dwarf_tsearchhash.c modified: Makefile.am modified: configure.ac modified: src/bin/attr_form/Makefile.am modified: src/bin/dwarfdump/Makefile.am modified: src/lib/dwarfstring/Makefile.am modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarfp/Makefile.am modified: test/Makefile.am 2021-08-14: David Anderson commit 68ba24f5b70c194fb0ebd4c4a16853498707b5f6 Merge: e60419bc 82691c24 Merge pull request #40 from vtorri/vtorri_dwpapi The API macro in libdwarfp must different from the one in libwarf on Windows 2021-08-14: Vincent Torri commit 82691c24956ba9cc283a63b5e216ca927364c65f libdwarfp: the API macro in libdwarfp must different from the one in libwarf on Windows modified: src/lib/libdwarfp/Makefile.am modified: src/lib/libdwarfp/libdwarfp.h 2021-08-14: David Anderson commit e60419bc12d28154b55a3c9722d3e864bb556ec7 Now the _swap_ small private functions are separated from dwarf_util.c and the includes ref the new name. Linux shared libs not buildable with -fvisibility at this point. But the new dwarf_memcpy_swap.c,h help get to a workable sharedbuild. modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_gdbindex.c modified: src/lib/libdwarf/dwarf_init_finish.c modified: src/lib/libdwarf/dwarf_machoread.c new file: src/lib/libdwarf/dwarf_memcpy_swap.c renamed: src/lib/libdwarf/memcpy_swap.h -> src/lib/libdwarf/dwarf_memcpy_swap.h modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_util.c This now has DW_API so -fvisibility=hidden is possible (but not yet ready). modified: src/lib/libdwarfp/libdwarfp.h 2021-08-14: David Anderson commit 0d11fab68b65097c7d6665cacb8b3b70c7c401ab Merge: a68b92e9 8c0c0119 Merge pull request #38 from vtorri/vtorri_dwarfstring Move dwarfstring code to its own static library. 2021-08-14: Vincent Torri commit 8c0c01198aa80e40b0c87333cbbac00b82b62674 fix missing dwarfstring preprocessor flag 2021-08-14: Vincent Torri commit a546e65fe01c071cb5022cc9838797fe988032d9 fix dwarfstring paths 2021-08-14: Vincent Torri commit e1a9952d68c4d0f4d16c364576eedab483c54810 add missing code in test/ 2021-08-14: Vincent Torri commit 27e0383900d4a58f11d3fd57a57a63a8daa2f970 Move dwarfstring code to its own static library. It is used in libdwwarf and libdwarfp. new file: src/lib/dwarfstring/Makefile.am renamed: src/lib/libdwarf/dwarfstring.c -> src/lib/dwarfstring/dwarfstring.c renamed: src/lib/libdwarf/dwarfstring.h -> src/lib/dwarfstring/dwarfstring.h modified: Makefile.am modified: configure.ac modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarfp/Makefile.am 2021-08-13: David Anderson commit a68b92e9da0862fed9720047b28e93d08ee6f22a removes dwarfdump/dwarf_names.c from the build. Leaving libdwarf/dwarf_names.c (which gets built into libdwarf and is generated from dwarf.h). modified: src/bin/attr_form/Makefile.am modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/gennames/Makefile.am modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_tree/Makefile.am 2021-08-13: David Anderson commit b230199ca75e5864bc95dad34ea0ff4e3c135064 Merge: 97415e4a 80a0f395 Merge pull request #37 from vtorri/vtorri_api Add DW_API to explicitly set public symbols 2021-08-13: Vincent Torri commit 80a0f39597bbcf4d978db05a5f52dc11924f49a5 Add DW_API to explicitly set public symbols This allow less collision symbols, detect errors, optimisations during link, etc.. On Windows, here are some numbers : Libraries both compiled with -O2 without DW_API : 584815 bytes with DW_API : 578671 bytes 1.05% gain (size) after stripping : without DW_API : 453120 bytes 506 symbols with DW_API : 446976 bytes 338 symbols 1.35% gain (size) modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/libdwarf.h 2021-08-12: David Anderson commit 97415e4a681dcd4fc64636ab93073764afd325c6 Merge: fe40a21c 65f71b04 Merge pull request #36 from vtorri/vtorri_README configure.ac: throw an error on Windows if a static library is requested 2021-08-12: David Anderson commit fe40a21c0211f35ed44e30acb58b552932545427 If shared-library build requested no archive library is built (used to build both on request). modified: CMakeLists.txt Alterations to build opscounttab.c properly. modified: src/bin/buildopstab/Makefile.am Now does more checking and adds a useful comment in the output opscounttab.c where we have a DW_OP with two spellings (which are extensions, not standard DW_OP instances). Reads dwarf.h to be sure the fast-access table has all the named DW_OP in dwarf.h present in the generated source.. Now includes config.h. data is static not malloc-d. modified: src/bin/buildopstab/buildopscounttab.c Now with the better messages. modified: src/bin/dwarfdump/opscounttab.c The externally-visible table is now _dwarf_opscounttab as it is not supposed to be visible or used outside the library. modified: src/bin/dwarfdump/opscounttab.h dwarf_opscounttab->_dwarf_opscounttab modified: src/bin/dwarfdump/print_die.c 2021-08-12: David Anderson commit 70439c708101b37f5ba010002152bcee9ed23358 Removed #include "opscounttab.h", it is not necessary. modified: src/bin/dwarfdump/print_tag_attributes_usage.c 2021-08-12: Vincent Torri commit 65f71b0445cda470ae9aab40657abc4361547459 README: update documention for Windows with MSYS2 + mingw-w64 modified: README 2021-08-12: Vincent Torri commit 83c0ae15fb96ab5ce30270fd9d215d4438e70539 configure.ac: throw an error modified: configure.ac 2021-08-11: David Anderson commit be443a7357d100b3d5498f2a71163dc44104140b Merge: 1a0ed719 559edece Merge pull request #34 from vtorri/vtorri_cfg Replace C comments in configure.ac with valid comment 2021-08-10: David Anderson commit 1a0ed71976828c64d29429f70f1cfd6aeeccd506 Added DW_API on the set of function declarations modified: src/bin/gennames/gennames.c replace the existing list dwarf_get_AT_name etc with the one gennames.c generates. Added near the beginning of libdwarf.h modified: src/lib/libdwarf/libdwarf.h 2021-08-11: Vincent Torri commit 559edecea67b5c0fb4977889a265d85b062dab03 Replace C comments in configure.ac with valid comment modified: configure.ac 2021-08-10: David Anderson commit c5143f8e5433bdfcfea694770c7616789daf7abb These are no longer #include-d anywhere. The content is always in libdwarf.h deleted: src/bin/dwarfdump/dwarf_names.h deleted: src/lib/libdwarf/dwarf_names.h Removed all references to dwarf_names.h except in a single CLEANFILES Ensured that the compiler warning options are passed to all the test files (there were typos in that Makefile.am) modified: src/bin/buildopstab/Makefile.am modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/gennames/Makefile.am modified: src/lib/libdwarf/Makefile.am modified: test/Makefile.am modified: src/lib/libdwarf/CMakeLists.txt Removed obsolete options and unused variables. We sort the output function names dwarf_names.h by character compares, where lowercase is elevated to uppercase for the comparison, which achieves a better look in the output. The dwarf_names.h is a candidate to replace the list of these protypes in libdwarf.h modified: src/bin/gennames/gennames.c Removed unused argument. Where Argument required but unused (when faking something in libdwarf so the test program will link) marked as UNUSEDARG to silence warning. modified: test/test_linkedtopath.c 2021-08-10: David Anderson commit 0f8edbd7d7fa00dba2d47af49cbd137ddc9fb242 This source is not part of dwarfdump. Moved to its own directory. Slightly changed so we avoid using dwarf_names.h as we get the same data from libdwarf.h The program generates a fresh opcountstab.c for dwarfdump. Used by 'make rebuild' renamed: src/bin/dwarfdump/buildopscounttab.c -> src/bin/buildopstab/buildopscounttab.c Adding in buildopstab as a target directory modified: Makefile.am modified: configure.ac Builds buildopstab and, with 'make rebuild' it recreates opscounttab.c and moves it to src/bin/dwarfdump. new file: src/bin/buildopstab/Makefile.am Now avoids naming dwarf_names.h and buildopscounttab.c modified: src/bin/dwarfdump/Makefile.am These two will disappear shortly. modified: src/bin/dwarfdump/dwarf_names.h modified: src/lib/libdwarf/dwarf_names.h 2021-08-10: David Anderson commit f69f5e1f4631997f5b10a0aaadfa3f2457f6cf9f Now prints the list of function declarations in the desired order and without the extern keyword. modified: src/bin/gennames/gennames.c 2021-08-10: David Anderson commit 53d4a8d5856f3454ba08e4439ecb9c5a2e662db1 Bring this up to date with git log. modified: ChangeLog 2021-08-10: David Anderson commit 06afce1ad73862c7e73b06583ff7d6ae99b3f86e Correcting indents and trailing whitespace. modified: test/test_errmsglist.c 2021-08-10: David Anderson commit f340ef8b3af2057bb66915f7935f67a915751154 Correct indentation and trailing whitespace. modified: src/lib/libdwarf/libdwarf.h 2021-08-10: David Anderson commit d82fd189a8885362b870540357eebd623bf22134 Restore correct ctest -R self for the errmsglist check. Botched it last night. modified: test/CMakeLists.txt modified: test/test_errmsglist.c 2021-08-09: David Anderson commit 422ad97027aabfcd8ebbb83f392ce4612408b71a Removing unnecessary .am settings and removing an obsolete CLEANUP entry. modified: doc/Makefile.am modified: scripts/CLEANUP modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarfp/Makefile.am 2021-08-09: David Anderson commit d7bbc90cfcf42d993669f30d66b40559245aed25 With the new version 0.1.2 regenerated these source files with 'make rebuild', each has comment lines showing the version. modified: src/bin/dwarfdump/dwarf_names.c modified: src/bin/dwarfdump/dwarf_names.h modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/dwarf_names.h 2021-08-09: David Anderson commit 3009dd2ed7884b15db63d57449837ddeec764bd0 More on the renaming of dwarf_skip_leb128 to _dwarf_skip_leb128; the implementation renamed here. modified: src/lib/libdwarf/dwarf_leb.c 2021-08-09: David Anderson commit 89ed114bd51c53c6e9f60d08448e9c4a98717cc8 In 0.1.1 dwarf_skip_leb128 was made public. That was not necessary. All it does (in libdwarf) is let us avoid compiler warnings about unused variables in a few places. It is removed from libdwarf.h It is renamed _dwarf_skip_leb128 in dwarf_opaque.h modified: src/lib/libdwarf/dwarf_opaque.h modified: src/lib/libdwarf/dwarf_util.h modified: src/lib/libdwarf/libdwarf.h modified: test/dwarf_leb_test.c 2021-08-09: David Anderson commit 79342e6f7ed03581268d3932ec03b39180cc704e The table of nearly 500 error strings is now a simple array, eliminating nearly 500 relocations from DSO startup. It does take 50K space, whereas the real strings are about 24K. But the relocations are a time waster. Shortened a few default error strings that were overly long --- Reducing the string length static dimension by about 13 bytes each entry compared to previous. modified: src/lib/libdwarf/dwarf_errmsg_list.h modified: src/lib/libdwarf/dwarf_error.c Added new checks to determine the wasted space and check that the new message content is set up properly. The short report it prints is for maintainers who change these things. modified: test/test_errmsglist.c 2021-08-09: David Anderson commit ce659d3b8a0c286e1fcd62957daf03cab223dc03 Now version 0.1.2 modified: CMakeLists.txt modified: configure.ac 2021-08-08: David Anderson commit a9057254877a65896cf6dee4c9071a38e6b933c6 Now avoids an annoying warning by checking whether Makefile exists before trying 'make maintainer-clean' modified: scripts/CLEANUP 2021-08-07: David Anderson commit 81512c3f49491208397f926838d6dbacbf780927 Changes in commentary, including a usage hint. modified: scripts/buildandreleasetest.sh 2021-08-05: David Anderson commit 07affda6b0a89376b4f648d81d742f607e974a16 src/bin/dwarfexample Revert last commit. It was incorrect. modified: Makefile.am Fixed to use WORDS_BIGENDIAN properly for the make check test modified: dwdebuglink.c 2021-08-05: David Anderson commit 5b579984b0c17c304f2c8a49001aa6e37e925ca7 This brings DWARF_BIGENDIAN into the build of dwdebuglink so results match a baseline build littleendian on the 32bit crc. modified: src/bin/dwarfexample/Makefile.am modified: src/bin/dwarfexample/dwdebuglink.c 2021-08-05: David Anderson commit 1bdb598a9a2886c82a5d6c9d89f3e4166897fe82 Mention that pkg-config is needed to build libdwarf as of July 2021 modified: README 2021-08-04: David Anderson commit 88f8563c10fea31fcbcc67e50f0d4e24cf365b60 Updated with latest ChangeLog data modified: ChangeLog 2021-08-04: David Anderson commit f03c6132d7eabc2012cba9e7e6ae22554d9c3bc5 Fixed indent and trailing whitespace. A few lines were needlessly long, move characters to following line. modified: src/bin/dwarfdump/command_options.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_pubnames.c 2021-08-04: David Anderson commit 12b9443c595ffe3ded23830bb689c416f774f23f Remove trailing whitespace and a few indent errors. modified: src/lib/libdwarfp/pro_dnames.c 2021-08-04: David Anderson commit 4b87d2c89bc970ac782305465bd3becba8abb736 Fix indents, remove trailing whitespace. Remove one debug printf. modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_global.c modified: src/lib/libdwarf/dwarf_leb.c modified: src/lib/libdwarf/dwarf_query.c 2021-08-04: David Anderson commit b058e47027763a60705892bf0b88e0ca0c602552 These fix warnings about unused variables. DECODE_LEB128_UWORD_LEN_CK->DECODE_LEB128_UWORD_CK as we don't need to have the length, just the value. modified: src/lib/libdwarf/dwarf_dsc.c Here we avoid the need for a local variable we cannot use. Because in some cases we just need to skate by an leb number and update the area pointer, not needing the value in the leb. DECODE_LEB128_UWORD_CK->SKIP_LEB128_CK DECODE_LEB128_SWORD_CK->SKIP_LEB128_CK modified: src/lib/libdwarf/dwarf_abbrev.c modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_macro.c The new SKIP_LEB128_LEN_CK used too. modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/dwarf_util.c New macros SKIP_LEB128_LEN_CK and SKIP_LEB128_CK. And some macros get a more explicit error value via _dwarf_error_string(). modified: src/lib/libdwarf/dwarf_util.h NEW LEB FUNCTION: Declare the new function dwarf_skip_leb128 modified: src/lib/libdwarf/libdwarf.h NEW LEB FUNCTION: Implement the new dwarf_skip_leb128 function. Faster than actually getting the value when we don't need the value. Works for signed and unsigned leb. modified: src/lib/libdwarf/dwarf_leb.c Adds tests of leb skipping lengths modified: test/dwarf_leb_test.c 2021-08-04: David Anderson commit 33b13cdf9168d37ab70672033c490663c383fdd4 Ensure that, when building only shared libdwarf, that ctest -R can find libdwarf.so (via LD_LIBRARY_PATH) This is in one particular test of cmake here. modified: scripts/buildandreleasetest.sh 2021-08-03: David Anderson commit 3ed0a883f8c97b790a6720611fb9ce803936bad6 Remove a silly blank line. modified: src/lib/libdwarf/dwarf_frame2.c Avoid reading a fixed-length blob of bytes when we do not need to read, just to increment the pointer. Avoiding a complaint about a set-not-used variable. One instance in each of the following. modified: src/lib/libdwarf/dwarf_macro.c modified: src/lib/libdwarf/dwarf_macro5.c 2021-08-03: David Anderson commit 2354269ef56dcd351c8f97a394d063d17ec1ea28 Two lines of comment appeared twice in a row. Deleted one set. modified: src/lib/libdwarf/dwarf_util.c 2021-08-03: David Anderson commit 8bb89549baff6ec80c2482a5e89679f0bd2593f6 Moved a variable declaration to where it is needed. The read for an implicit const value is needed (for it all to work) but there is nothing we can do with the value here. modified: src/lib/libdwarf/dwarf_abbrev.c 2021-08-03: David Anderson commit f36570168a65644f43bebbdd74634f0a0431a932 It's here for anyone attempting to read the code that deals with the line table header versions, an overview. The file now marked as public domain. modified: src/lib/libdwarf/dw-linetableheader.txt 2021-08-03: David Anderson commit 690efc97ac26ec01533abf2854bf7b2450f023c4 baseline.ltp is not used anywhere, so is now deleted. modified: src/lib/libdwarf/Makefile.am deleted: src/lib/libdwarf/baseline.ltp deleted: src/lib/libdwarfp/baseline.ltp 2021-08-03: David Anderson commit c77e2afa3f3b293fe1e4b23c37585834bfc42570 ChangeLog Updated with latest commit log data 2021-08-03: David Anderson commit 4a1503eb9853384adba6784db3bb6e040ecf1e3c Now prints the .debug_names header(s). modified: src/bin/dwarfdump/print_debug_names.c Improved comment Now --force-empty-dnames option does something meaningful. modified: src/bin/dwarfgen/dwarfgen.cc Now correctly reads .debug_names header data modified: src/lib/libdwarf/dwarf_debugnames.c Corrected: now has dn_abbrev_table_size modified: src/lib/libdwarf/dwarf_debugnames.h Function prototype for dwarf_dnames_sizes() is now correct. modified: src/lib/libdwarf/libdwarf.h Now has a static setup for creating a real .debug_names section (with fake data). Via the dwarf_force_dnames() function (which is only useful for testing). Not yet possible to create section data via calls. modified: src/lib/libdwarfp/pro_dnames.c Aligned member names in Dwarf_P_Dnames_Head_s. modified: src/lib/libdwarfp/pro_dnames.h 2021-07-30: David Anderson commit 517529a3bce248b2e4d7a8a4aebe2e7536ed1eb5 DO NOT USE (yet). Now the 'force dnames' option actually creates legal but arbitrary .debug_names section content for testing. modified: src/lib/libdwarfp/libdwarfp.h modified: src/lib/libdwarfp/pro_dnames.c modified: src/lib/libdwarfp/pro_dnames.h modified: src/lib/libdwarfp/pro_opaque.h modified: src/lib/libdwarfp/pro_section.c 2021-07-30: David Anderson commit 416652c3e97dfed91a2199212e30da9aac2f2ab3 DO NOT USE (yet). Basic correction of use of a debug_names interface use. modified: src/lib/libdwarf/dwarf_debugnames.c 2021-07-30: David Anderson commit 06d4d25a87c4ebdd1a86c3d222660a96bf6ef889 DO NOT USE THIS (yet) basic creation of a .debug_names section with faked data in libdwarfp. modified: src/bin/dwarfgen/dwarfgen.cc modified: src/bin/dwarfgen/ireptodbg.cc 2021-07-30: David Anderson commit a228fb5eab9ffb663fc34fd3957cb61216e41ccc DO NOT USE (yet). Basic printing of .debug_dnames. modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/print_debug_names.c 2021-07-28: David Anderson commit 8884f32b9f302a0d53f2aa4b5fb9c517d445a297 All these build singly-linked lists for temporary use. This new version uses simpler logic that does not involve if-else. See Steve Maguire, Writing Solid Code, Page 126. modified: dwarf_arange.c modified: dwarf_global.c modified: dwarf_line.c modified: dwarf_loclists.c modified: dwarf_query.c modified: dwarf_rnglists.c 2021-07-28: David Anderson commit fc1b3e910bf98aa728c51bd08342a5e02055ef50 if 0 the glflags.gf_debug_names_flag code as it is not correct yet. modified: src/bin/dwarfdump/dwarfdump.c A beginning of some revisions. Ignore this for now. modified: src/bin/dwarfdump/print_debug_names.c Correcting the use of dwarf_global_formref() where the reference can be DW_AT_type and DW_FORM_ref_sig8 so we understand what section is being targeted by an offset. And can check and report the target die TAG and name (if it has a DW_AT_name). modified: src/bin/dwarfdump/print_die.c Just delete a pointless blank line. modified: src/bin/dwarfdump/print_pubnames.c 2021-07-28: David Anderson commit 0c5199d6a6ced9fa466d6c7632337ddf3519b1e6 These two are not ready to be used. Not yet correct. modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_debugnames.h Cleaned up spacing in find_cu_die_base_fields() Added _dwarf_fill_in_abcom_from_context() and _dwarf_fill_in_context_from_abcom so that abbreviations reading is no longer directly tied to .debug_abbrev but can now also be used for the abbreviations table in .debug_names. modified: src/lib/libdwarf/dwarf_die_deliv.c More complete handlilng of is_info for DWARF4 .debug_info/.debug_types. Now we use DW_FORM_ref_sig8 to refer to .debug_types from .debug_info properly. dwarf_global_formref() and dwarf_global_formref_b() exist as the latter is needed for the offset in .debug_types needs to have the is_info =FALSE to check the reference. Other places needed slightly corrected handling of is_info. modified: src/lib/libdwarf/dwarf_form.c Now with a new field, pubnames_context->pu_pub_entries_end_ptr, to provide a sharper 'end of an entries contribution error check' than simply the end of the section. modified: src/lib/libdwarf/dwarf_global.c Added Dwarf_Byte_Ptr pu_pub_entries_end_ptr; for the improved checking. modified: src/lib/libdwarf/dwarf_global.h Now with _dwarf_fill_in_context_from_abcom() and _dwarf_fill_in_abcom_from_context() to isolate abbreviation reading from any specific section. modified: src/lib/libdwarf/dwarf_opaque.h Using _dwarf_fill_in_context_from_abcom() and _dwarf_fill_in_abcom_from_context() to isolate abbreviation reading from any specific section. modified: src/lib/libdwarf/dwarf_query.c Now using internal struct Dwarf_Abbrev_Common_s to isolate abbreviation reading from any specific section. modified: src/lib/libdwarf/dwarf_util.c Declares a revised struct Dwarf_Abbrev_Common_s. modified: src/lib/libdwarf/dwarf_util.h dwarf_formref now adds a Dwarf_Bool *is_info argument so we can fully treat DWARF4 debug_info/debug_names properly. This is a change to dwarf_formref() argument list. Added dwarf_global_formref_b() to return an is_info flag along with the offset (for DWARF4 section .debug_info or .debug_names that offset applies to) Some dwarf_dnames function prototypes changed, but those are not yet correct, ignore them. modified: src/lib/libdwarf/libdwarf.h 2021-07-28: David Anderson commit 81ee54de5c146282fec67dec9375103c1069d61d Uses dwarf_formref/dwarf_global_formref correctly, recognizing the is_info argment for DWARF4 debug_info/debug_types. shortened a couple too-long lines. modified: src/bin/dwarfgen/createirepformfrombinary.cc 2021-07-23: David Anderson commit bbbca00128b70a25ecb7132c90ee494abad5b692 DO NOT USE THIS COMMIT YET. modified: src/lib/libdwarf/dwarf_form.c 2021-07-23: David Anderson commit ad4aebecce0c6a8d4fe23f8d3c509754fd04937d DO NOT USE THIS COMMIT YET. Preparation for unifying abbreviation reading from .debug_abbrev and .debug_names modified: dwarf_die_deliv.c modified: dwarf_query.c modified: dwarf_util.h 2021-07-23: David Anderson commit 399e023a36da18bd8dbd4f14d9ce2bcc8bd5a6c4 DO NOT USE THIS COMMIT YET. Added comment, no guarantee uint32_t defined. modified: CMakeLists.txt Now ensures uint32_t defined, needed for DWARF5 hash. modified: configure.ac 2021-07-19: David Anderson commit 2e126424e347a66ab9d6d81a9b46692fd93b6c87 DO NOT USE THIS COMMIT. Now part way to a new set of .debug_names interfaces. modified: doc/libdwarf.mm modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_debugnames.h modified: src/lib/libdwarf/dwarf_errmsg_list.h modified: src/lib/libdwarf/libdwarf.h 2021-07-15: David Anderson commit 550725b7e0dc9c112a948e8f4b867d5740563519 Updated with latest git commits modified: ChangeLog 2021-07-15: David Anderson commit c7036121fb9d47539953daf704f7dc29a3aef274 Deleted a few new-ish lines related to version number from autogen.sh. We now use PACKAGE_VERSION from config.h for the version string. So libdwarf_version.h header is deleted. modified: autogen.sh deleted: src/lib/libdwarf/libdwarf_version.h modified: src/lib/libdwarf/Makefile.am The PACKAGE_VERSION string has a couple less blank characters than the date string from libdwarf_version.h so regenerating changed the comment line with the version string. modified: src/bin/dwarfdump/dwarf_names.c modified: src/bin/dwarfdump/dwarf_names.h modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/dwarf_names.h Dropping libdwarf_version.h, using PACKAGE_VERSION from config.h modified: src/bin/attr_form/attr_form_build.c modified: src/bin/dwarfdump/common.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/gennames/gennames.c modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/tag_tree.c 2021-07-15: David Anderson commit 12ef9e68b920c228532e7a386cbaa2115edae1fc At three different stages we verify make doc and make rebuild can be done. Helping verify that make dist gets everything needed. modified: scripts/buildandreleasetest.sh 2021-07-15: David Anderson commit 275553cba2646bed4aeeecf2535a1ab42012e994 Neglected bin/attr_form in one place. Mentioned files that no longer exist (oops) modified: Makefile.am Mentioned files that no longer exist (oops) modified: src/bin/dwarfdump/Makefile.am modified: src/lib/libdwarf/Makefile.am 2021-07-15: David Anderson commit 4d812f3ebb3265a2c3a92978bb0ce69208854f9b Mentions the move to Semantic Versioning now. modified: NEWS 2021-07-15: David Anderson commit 1507c2be60847925d177beda356740dbc5321665 This file is no longer used since make rebuild implemented. deleted: scripts/baseconfig.h 2021-07-15: David Anderson commit f2f5a0acaa6c01200b28e31c4d0ab4b6ba616c4b This script is no longer needed or wanted. autogen.sh updates the libdwarf_version.h with the proper version number string instead of a date. deleted: scripts/UPDATEDWARFDUMPVERSION.sh 2021-07-15: David Anderson commit 154a84c5d4bf045d845ad10bf08b21954686f43b Bringing ChangeLog up to date from git log. As a result of this all ChangeLog entries for the project wind up in the base 'code' directory ChangeLog. modified: ChangeLog 2021-07-15: David Anderson commit 93e89df6c68b910780e28113e78535ea3e787eee Instead of a date string in src/lib/libdwarf/libdwarf_version.h we put the current version number extracted from configure.ac at autogen.sh time. This means the 'Generated' messages reflect what matters: the version number triple. When 'make rebuild' is done next all the necessary generated code gets regenerated. This now modifies src/lib/libdwarf/libdwarf_version.h with the latest version number (currently 0.1.1) as VERSION_DATE_STRING modified: autogen.sh modified: src/lib/libdwarf/libdwarf_version.h Now the generated comments say the Generated source version instead of generated date string. modified: src/bin/attr_form/attr_form_build.c modified: src/bin/gennames/gennames.c modified: src/bin/tag_attr/tag_attr.c modified: src/bin/tag_tree/tag_tree.c In the build tree leave the build-local dwarf_names.c and dwarf_names.h for human inspection until make clean run modified: src/bin/gennames/Makefile.am All these regenerated by make rebuild modified: src/bin/dwarfdump/dwarf_names.c modified: src/bin/dwarfdump/dwarf_names.h modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/dwarf_names.h 2021-07-14: David Anderson commit 76f78f39df252d678232f84f2eb5d910df346c22 These maintainer-only scripts no longer used. Instead use 'make rebuild' deleted: scripts/buildstandardsource.sh deleted: scripts/ddbuild.sh Now all three C source-building programs work. tagattr tagtree and attrform. The have been extracted from dwarfdump and how have their own src/bin/directories. modified: Makefile.am modified: configure.ac new file: src/bin/attr_form/Makefile.am renamed: src/bin/dwarfdump/attr_form_build.c -> src/bin/attr_form/attr_form_build.c modified: src/bin/tag_attr/Makefile.am modified: src/bin/tag_tree/Makefile.am 2021-07-14: David Anderson commit 8a7544bb990cf26588fbd41243e2095e564abd5f DO NOT USE THIS COMMIT. It's a step toward getting 'make rebuild' to work. Thereby eliminating three shell scripts under the scripts directory. This is for maintainers only. Eliminating code from dwarfdump that is not compiled into dwarfdump. modified: Makefile.am modified: configure.ac modified: scripts/ddbuild.sh modified: src/bin/dwarfdump/common.c new file: src/bin/tag_attr/Makefile.am renamed: src/bin/dwarfdump/tag_attr.c -> src/bin/tag_attr/tag_attr.c new file: src/bin/tag_tree/Makefile.am renamed: src/bin/dwarfdump/tag_tree.c -> src/bin/tag_tree/tag_tree.c modified: test/Makefile.am 2021-07-14: David Anderson commit d4f1c293e044f0afac1235f4c3ced0d64852b231 Merge: 6f5ff07e 679f74fb Merge pull request #33 from jgcodes2020/choose-msvcrt Allow choosing MSVC runtime on Windows 2021-07-14: David Anderson commit 6f5ff07e2764200aa488186dc4d3edce89391627 in gennames as general information. new file: README.txt 2021-07-14: David Anderson commit 1a415f05fb7e612892cb433f88488b8bd51dd76c Now builds gennames and dwarf_names.h dwarf_names.c with 'make rebuild' New directory src/bin/gennames modified: Makefile.am modified: configure.ac Remove libbuild.sh, it's gone. modified: scripts/buildstandardsource.sh deleted: scripts/libbuild.sh Now make rebuild does what is needed: regenerates dwarf_names.{c,h} new file: src/bin/gennames/Makefile.am renamed: src/lib/libdwarf/gennames.c -> src/bin/gennames/gennames.c 2021-07-14: jgcodes2020 commit 679f74fb727297a269b2d091532fa45db044b850 Reenable new behaviour 2021-07-14: jgcodes2020 commit 19ff9f1d145e2126b80e83f4bc835deff673d050 Backwards compatibility to CMake 3.3 2021-07-14: David Anderson commit 10173ca5dff04ff09bc94a2edaf7d93727852a67 HAVE_OLD_FRAME_CFA_COL and HAVE_SGIDEFS_H have been removed as now-meaningless. This file is not the normal config.h and is not used in user-builds, so ignore it. modified: scripts/baseconfig.h 2021-07-13: David Anderson commit 11a4f671bc4ec41da75261063a5e96bc08e637a7 All the ENUM_AND_BINARY_SEARCH ifdefs and code removed, none was used by libdwarf. We do not use the enum form of names.n and we use the switch() form in names.c, not binary search. modified: src/lib/libdwarf/gennames.c 2021-07-13: David Anderson commit af45dcc13b2576cf4590546d594e1bdf55769f14 No longer have or generate dwarf_names_enum.h or dwarf_names_new.h these are not needed, all compilers generate reasonable C switch() code, and libdwarf is essentially all #define, not enum. modified: src/lib/libdwarf/Makefile.am dwarf_names_enum.h or dwarf_names_new.h #undef out of the code. modified: src/lib/libdwarf/gennames.c Updated version strings. modified: src/bin/dwarfdump/dwarf_names.c modified: src/bin/dwarfdump/dwarf_names.h modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/dwarf_names.h These two now gone. Not needed. deleted: src/lib/libdwarf/dwarf_names_enum.h deleted: src/lib/libdwarf/dwarf_names_new.h Updated with new version string modified: src/lib/libdwarf/libdwarf_version.h 2021-07-13: David Anderson commit 3a9b3ad12cf3352829e193bb433f40a7db1252d2 Remove trailing whitespace. Fix indents not matching libdwarf standard format. modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarf/dwarf_loclists.c modified: src/lib/libdwarf/dwarf_rnglists.c 2021-07-13: David Anderson commit 62e58186f9a76af183a5feeb5e6d5268c260d7e8 Instances of unsigned x changed to the full type of unsigned int x for consistency and for clarity of intent. modified: libdwarf.h 2021-07-13: David Anderson commit 08f5577c09e6f459ff8c80d4d11cc335748cd8c9 modified: ChangeLog Small modification to clarify: libdwarf never calls abort() as of now. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-07-13: David Anderson commit 95edf93c288433a7d13bfe0d35d0481693e968ca Revised wording in error handling descriptions. When libdwarf is unable to report an error (the user provided no Dwarf_Error argument or errhandler function) the library prints a short message on stderr starting with the word 'libdwarf' and adding the error number it was unable to otherwise report. modified: libdwarf.mm modified: libdwarf.pdf 2021-07-13: David Anderson commit c7389aa2bfa3237d299bef199e00baa6a907ee39 Removing the obsolete function declaration of dwarf_lineoff() modified: libdwarf.h 2021-07-13: David Anderson commit aa82e89aadefc51a4ec160cfe4045378ca5fd083 modified: src/bin/dwarfdump/print_die.c Ensured every error case appropriate does dwarf_loc_head_c_dealloc() now to free resources as soon as possible. modified: src/bin/dwarfdump/print_frames.c Corrected spelling in an error message. modified: src/lib/libdwarf/dwarf_die_deliv.c Added specificity to an error message. modified: src/lib/libdwarf/dwarf_loc.c Removed unused library-internal arguments. Added error checks to publicly visible functions to prevent user calls with null pointers from crashing libdwarf. Added magic numbers so the library can recognize garbage or stale pointers, and on free ensure the magic numbers are zeroed. Moved dwarf_loc_head_c_dealloc to dwarf_loclists.c to be near the other dealloc functions for locations lists. modified: src/lib/libdwarf/dwarf_loc.h Added magic number fields lc_magic, ld_magic, and ll_magic. Defined LOCLISTS_MAGIC. modified: src/lib/libdwarf/dwarf_loclists.c Added additional checks of incoming pointers to avoid crashing in case of user errors. Set and cleared the magic number fields as apprpropriate. Corrected the dealloc/free code so it works properly in all cases. modified: src/lib/libdwarf/dwarf_rnglists.c Deleted #if 0 debug printf lines two places. 2021-07-11: David Anderson commit 1d9d4d16c5af77efbb619d7264873393af25564f Now all the arguments to public functions (and local ones) are all used appropriately. We use 'magic number' RNGLISTS_MAGIC so we can detect instances of using uninialized or stale rnglists pointers (the structs are not them selves visible to library callers) modified: src/bin/dwarfdump/print_die.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarf/dwarf_rnglists.c modified: src/lib/libdwarf/dwarf_rnglists.h modified: src/lib/libdwarf/dwarf_util.c modified: src/lib/libdwarf/dwarf_util.h The declaration of dwarf_dealloc_rnglists_head() as dealloc functions are not supposed to return a value. Fixed. modified: src/lib/libdwarf/libdwarf.h 2021-07-11: David Anderson commit 531151a82b2f7d7037a6bf4bc7e4e4af658bf550 Missing lines about DWARF_LIBS AC_SUBST AC_ARG_VAR modified: configure.ac 2021-07-11: David Anderson commit 46c52c5e42d01bc6963e781e79ead0e1f22830ed Merge: b962165a 95adc788 Merge pull request #32 from vtorri/vtorri_pkgconfig Use pkg-config to detect zlib 2021-07-11: Vincent Torri commit 95adc788ce27b5371ab433821c1e96cbd4677195 Use pkg-config to detect zlib 2021-07-10: David Anderson commit b962165a780ff2185fcc12bd679856e36621a6cb HAVE_SGI_IRIX_OFFSETS HAVE_STRICT_DWARF2_32BIT_OFFSET HAVE_DWARF2_99_EXTENSION are all obsolete and meaningless. Deleted. modified: CMakeLists.txt modified: README.cmake 2021-07-10: David Anderson commit b2c98f61cdaecd3906f7afd4aa3a556806b66a01 Fixed indents and removed trailing whitespace. modified: getnametest.c modified: objaccess.c modified: test_errmsglist.c 2021-07-10: David Anderson commit f32d88fa87ab5e97182fd981e1c7fa359e6feec6 The canonical path function test code removed from dwarfdump/dwconf.c and put into test/test_canonical.c modified: src/bin/dwarfdump/dwconf.c modified: src/bin/dwarfdump/dwconf.h modified: test/CMakeLists.txt modified: test/Makefile.am new file: test/test_canonical.c 2021-07-10: David Anderson commit e79f65a63cb8b912aa66364f703bba6c737f82ba Removed mention of HAVE_ELF_OPEN modified: dwarf_generic_init.c 2021-07-10: David Anderson commit b37934ced44f9ea156876bb60e970f0a33ce0eea Removed mention of HAVE_ELF_OPEN modified: dwarfgen.cc 2021-07-10: David Anderson commit 10c739419153504bbb86c2ab546c827ceb5937e9 Fixed indents and trailing whitespace. modified: attr_form.h modified: dwarf_tsearch.h modified: dwconf.c modified: glflags.h modified: print_aranges.c modified: print_debug_names.c modified: print_die.c modified: print_frames.c modified: print_pubnames.c modified: print_ranges.c 2021-07-10: David Anderson commit 07f73f16cc07abc78d4758bca91f63dfe8faa3dc Removed HAVE_ELF_OPEN macro test. It is not defined anywhere. modified: dwarfdump.c 2021-07-10: David Anderson commit 6885138dedcd65aeabea11946b556d0eb02c47b8 Merge: 6f90bb57 491cdc85 Merge branch 'dn' Merging the rewritten .debug_names handling 2021-07-10: David Anderson commit 491cdc852f99207c5dcf2234b4c31fde58834cc3 The rewrite of .debug_names handling is complete, though the dwarfdump printing is incomplete and none of it has been tested. Needs a test case. modified: src/bin/dwarfdump/print_debug_names.c modified: src/lib/libdwarf/dwarf_alloc.c modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_debugnames.h modified: src/lib/libdwarf/libdwarf.h 2021-07-10: David Anderson commit a6e132626e33883185a03836dfb0d1fa5162f69e DO NOT USE THIS COMMIT. not buildable yet. modified: src/lib/libdwarf/dwarf_debugnames.c modified: src/lib/libdwarf/dwarf_debugnames.h modified: src/lib/libdwarf/libdwarf.h 2021-07-10: David Anderson commit 6f90bb57c3376492eb3d99822a5c3af0835ba30d Merge: ab96206d 62a3f3f4 Merge pull request #31 from vtorri/master dwarfdump: move dwarfdump.comp detection on Windows outside the loop 2021-07-10: Vincent Torri commit 62a3f3f4304f0263df9af4de1c5dc37ff5e4faca dwarfdump: move dwarfdump.comp detection on Windows outside the loop. Fallback to Unix code if still not found 2021-07-08: David Anderson commit ab96206d2ca377651f68a0a529537b1f1abc61ef Merge: fafaacda de9785c7 Merge branch 'master' of https://github.com/davea42/libdwarf-code modified: README 2021-07-08: David Anderson commit de9785c76d56b962983a11366b1d29e5223fa637 Merge: 2c8637ce d2c73d81 Merge pull request #29 from vtorri/vtorri_README update README: 2021-07-08: David Anderson commit fafaacda08185cd267d100edf6a89403f0328028 Elminating mention of DW_DLC_READ (except to say it and the 'access' argument to dwarf_init*() functions have been removed as not-needed. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf modified: src/lib/libdwarf/NEWS modified: src/lib/libdwarf/README modified: src/lib/libdwarf/dwarf_errmsg_list.h 2021-07-08: Vincent Torri commit d2c73d8168a7f3d65ae3c047072be2eb7d5331f4 update README: * remove trailing white spaces * fix configure option when building only shared library * remove comment about deleted DW_DLC_READ macro 2021-07-08: Vincent Torri commit 46bec1a4abe76f60568afdf95ef9255b298f5edf Merge: da58f9fb 2c8637ce merge 2021-07-07: David Anderson commit 2c8637ce1119dde51396fecaa9858f4e2da5a965 Fixing trailing white, indent errors, and if( for( to standard project source format. modified: dwdebuglink.c modified: findfuncbypc.c modified: frame1.c modified: simplecrc.c modified: simplereader.c 2021-07-07: David Anderson commit 46bc82c35c1d0ce129d3d93eb7df83125cf44ad1 Remove trailing whitespace, fix indents modified: libdwarfp.h modified: pro_die.c modified: pro_incl.h modified: pro_section.c 2021-07-07: David Anderson commit 642ebe6352a8545b1b697629e67eed0ffb954e9c Fix indents and eliminate trailing whitespace. modified: dwarf_debugnames.c modified: dwarf_debugnames.h modified: dwarf_die_deliv.c modified: dwarf_errmsg_list.h modified: dwarf_fission_to_cu.c modified: dwarf_form.c modified: dwarf_frame.c modified: dwarf_generic_init.c modified: dwarf_leb.c modified: dwarf_line.c modified: dwarf_loc.c modified: dwarf_object_detector.c modified: dwarf_query.c modified: libdwarf.h modified: libdwarf_private.h 2021-07-07: David Anderson commit 64210ea43a37f4d372a2c5ace337603582bcd1cb Updated copyright year. In 2 places }dw... For consistency changed to } dw... like the other typedefs here. modified: dwarf_elfstructs.h 2021-07-07: David Anderson commit 8eaa1fb5918330bb4119e85ca7b97fcc7f1062c2 Removed macro ASNAR definition from several files, moved to libdwarf_private.h . Along with SIZEOFT16, SIZEOFT32 SIZEOFT64 . Also SIGN_EXTEND, a less used ASNAR renamed ASNARL removed LEN32BIT and use SIZEOFT32 instead. modified: src/lib/libdwarf/dwarf_debuglink.c modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_util.h modified: src/lib/libdwarf/dwarf_xu_index.c modified: src/lib/libdwarf/libdwarf_private.h Delete macro defs SIGN_EXTEND ASNAR, use the ones in libdwarf_private.h modified: src/lib/libdwarfp/pro_forms.c modified: src/lib/libdwarfp/pro_incl.h 2021-07-07: David Anderson commit a6cb694fb0047bfd136e53eab0ab9766c759be80 Removed dw_elfstructs.h from .am modified: src/lib/libdwarf/Makefile.am the content needed is in dwarf_elfstructs..h deleted: src/lib/libdwarf/dw_elfstructs.h 2021-07-07: David Anderson commit 55188d384ba1b9b8d8c921259dd03b48f2f6cb3c Now most C (gcc) warning options are on by default. configure/m4 ensures only options that work for a given compiler will actually be passed to it. modified: configure.ac 2021-07-07: David Anderson commit 144a6878c3d88f5db4f59c5f37db4f030ef61acb Neither libdwarf nor libdwarfp ever abort() now. In case there is no way to report to the caller what the error is (because the caller provided no means to report error messages) libdwarf prints a one-line message to stderr with the error number. For errors libdwarf and libdwarfp always return DW_DLV_ERROR. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf modified: src/lib/libdwarf/NEWS modified: src/lib/libdwarf/dwarf_error.c modified: src/lib/libdwarfp/pro_error.c Sligtly improved the message from simplereader in case of a libdwarf-detected error. modified: src/bin/dwarfexample/simplereader.c 2021-07-07: David Anderson commit c438ede1388ad1ec3af999ad82a7f75523e9062a modified: src/bin/dwarfdump/command_options.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/glflags.h modified: src/bin/dwarfdump/glflags.c Removing OPT_ALLOC_PRINT_SUMS and --print-alloc-sums as they no longer exist. modified: src/lib/libdwarf/dwarf_alloc.c modified: src/lib/libdwarf/dwarf_alloc.h Remove the allocation tracking counts retrieval function (an empty function). modified: src/lib/libdwarf/libdwarf.h Slightly modify a comment relating to alloc tracking function dwarf_set_de_alloc_flag(). 2021-07-07: David Anderson commit 05b8460bf1fe616644a2b4ae236e9adbef47c754 modified: doc/libdwarf.mm modified: doc/libdwarf.pdf (regenerated) Added some explanation of the dwarf_set_de_alloc_flag() function. 2021-07-07: David Anderson commit e6d6c423bd04e2514ead2f92a468973dff7a43e5 Macros that were defined in multiple c source files in libdwarfp are now in this header. For example: ASN_OUT modified: src/lib/libdwarfp/pro_incl.h Removed these macro defines from .c modified: src/lib/libdwarfp/pro_forms.c modified: src/lib/libdwarfp/pro_frame.c modified: src/lib/libdwarfp/pro_reloc_symbolic.c modified: src/lib/libdwarfp/pro_section.c Moved the #include of pro_incl.h to a more appropriate place farther down the include list. modified: test/test_extra_flag_strings.c 2021-07-06: David Anderson commit 316f64a44d61e8808330d0a3f1fdfc84405d3d9d modified: src/lib/libdwarf/libdwarf.h In a few cases of missing comment delimiters, I fixed like this example: - Dwarf_Unsigned * indextable_overall_length, + Dwarf_Unsigned * /*indextable_overall_length*/, 2021-07-06: David Anderson commit aa224a3cae53e30f2c032b85880ad5d288a182b5 Additional explanation of the .debug_names section content and renaming certain arguments (not the types) for clarity. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Using the new, better dwarf_dealloc_debugnames(dnhead) function modified: src/bin/dwarfdump/print_debug_names.c renamed dwarf_debug_names.c,h to dwarf_debugnames.c, modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/dwarf_alloc.c renamed: src/lib/libdwarf/dwarf_debug_names.c -> src/lib/libdwarf/dwarf_debugnames.c renamed: src/lib/libdwarf/dwarf_debug_names.h -> src/lib/libdwarf/dwarf_debugnames.h modified: src/lib/libdwarf/libdwarf.h 2021-07-05: Vincent Torri commit da58f9fb830fce2fa844f90bd3de6de9361d0247 configure.ac: remove useless output and regroup common C flags in a variable 2021-07-04: David Anderson commit e0f6a8209295d952d0437cbdaec71ff9464b991d Now all the functions for getting strings for DW_TAG_subprogram and DW_AT_type etc etc are named properly and concisely. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-07-04: David Anderson commit c67bf916d8fc011b3e30e737c071c20e16132c5a A static function had a name starting with dwarf and now it is renamed starting with _dwarf for consistency with library internal functions. modified: src/lib/libdwarf/dwarf_die_deliv.c 2021-07-04: David Anderson commit 062524d30cb614398c5696714f587605335ef59d Remove descriptions of functions that are not in libdwarf now. modified: doc/libdwarf.mm Rename one argument identifier for clarity. modified: src/lib/libdwarf/libdwarf.h 2021-07-03: David Anderson commit 446bebcaba6623665c80eae4d9376f6185c7827b Added commentary. modified: src/lib/libdwarf/dwarf_query.c Deleted dwarf_get_path_source_type(), there never was an implementation of...whatever this was supposed to do. modified: src/lib/libdwarf/libdwarf.h 2021-07-03: David Anderson commit 3a1d8ca472600fc49c58573cc477bc309b51ddb5 added to the description of dwarf_dietype_offset(). modified: libdwarf.mm modified: libdwarf.pdf 2021-07-03: David Anderson commit 8b011901ca37ffebfe9bd55d4f79388de47e5ac4 Explained the arguments in a bit more detail. modified: ../src/lib/libdwarf/dwarf_crc32.c Deleted a function that has not been used for a long time. modified: ../src/lib/libdwarf/dwarf_init_finish.c 2021-07-03: David Anderson commit 1f879710839f6eabb08b5437dd302fd9ab1dc00c Documented dwar_set_stringcheck(), a function that might help some, but... it turns off some object file correctness checks. Dangerous. modified: libdwarf.mm modified: libdwarf.pdf 2021-07-03: David Anderson commit 639c57bdb5fd8ca0a5a6540921ee8f83db2a77aa Removed obsolete words about code that is now gone. modified: src/bin/dwarfdump/testdwarfdump.conf Repaired dwarf_bitoffset() by adding a new argument so the caller can know if the return is DW_AT_data_bit_offset or DW_AT_bit_offset. modified: src/lib/libdwarf/dwarf_query.c Fixed commentary and updated the dwarf_bitoffset() prototype. modified: src/lib/libdwarf/libdwarf.h 2021-07-03: David Anderson commit 4cdf8b0b6bf56f0f2852f2a6eab64abb427ba05f Removed blocks of obsolete words. Removed many function-name repetitions where the function name was obvious from context. modified: ../../../doc/libdwarf.mm modified: ../../../doc/libdwarf.pdf 2021-07-02: David Anderson commit 5b00e1d96498b2255d71293fa33eb3338184fa04 Deleted a check of the DW_DLE values from libbuild.sh. Now the test done by 'make check'. modified: scripts/libbuild.sh Removed the old checking source, put it in test renamed: src/lib/libdwarf/dwarf_test_errmsg_list.c -> test/test_errmsglist.c remove reference to dwarf_test_errmsg_list.c modified: src/lib/libdwarf/Makefile.am Implemented test runs for test_errmsglist.c Now at make check having 20 tests if all things built. modified: test/CMakeLists.txt modified: test/Makefile.am 2021-07-02: David Anderson commit 16c107a690c5e55100a59239ebf1435a469f662e Delete all the tsearch/* directory stuff, that is now on github as the project davea42 tsearch-code modified: Makefile.am Remove UNUSEDARG and delete an unused libdwarf-internal argument. modified: src/lib/libdwarf/dwarf_fission_to_cu.c Add site-specific text to the error message that is generated when an allocation fails. modified: src/lib/libdwarf/dwarf_gdbindex.c Add include of libdwarf_private.h so it builds again. It is not part of libdwarf, it is a support program for libdwarf. modified: src/lib/libdwarf/gennames.c Correct the references in MAINTAINERCLEANFILES and format part of the table to look nicer. modified: test/Makefile.am 2021-07-01: David Anderson commit 12bd38295872e4a82268498d8bf643870af5d2bb Removed unused arguments from print_gdb_index() and dwarf_gdbindex_cuvector_instance_expand_value() modified: src/bin/dwarfdump/print_gdbindex.c Removed unused argument from dwarf_gdbindex_header() and dwarf_gdbindex_cuvector_instance_expand_value(). Added argument checks to the latter. modified: src/lib/libdwarf/dwarf_gdbindex.c Removed unused argument from dwarf_gdbindex_header() Removed unused argument from dwarf_gdbindex_cuvector_inner_attributes() modified: src/lib/libdwarf/libdwarf.h 2021-07-01: David Anderson commit 7f9442b87b4836e10cd179213e55bf449049818e dwarf_init_path() and dwarf_init_path_dl() had 3 extra arguments which had no purpose. These extras have been removed. modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfexample/dwdebuglink.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/simplereader.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/libdwarf.h 2021-07-01: David Anderson commit c8ce50b008834057604016054603dbbc867566a9 Removing references to HAVE_OLD_FRAME_CFA_COL HAVE_GLOBAL_ALLOC_SUMS as these are not used. modified: cmake/config.h.cmake modified: src/lib/libdwarf/dwarf_alloc.c 2021-07-01: David Anderson commit 1eee95b14f6284d7c9287b40a194ce981f8f67a3 Minor changes to comments for consistency. (use "git push" to publish your local commits) 2021-07-01: David Anderson commit aeb77517b95d3584f9973418f49c8df153d7e8ce Minor fixes. modified: doc/libdwarf.mm 2021-07-01: David Anderson commit cede7a11e42794960967a5b241c00fb0cb7c41b0 Removed obsolete comments. modified: doc/libdwarf.mm Removed a bogus comment and in a couple cases change a 5-space separation to 1-space. modified: src/lib/libdwarf/libdwarf.h 2021-07-01: David Anderson commit 1bd354921414c82791b18de36045c70c85b982c9 Rev 4.6. Removed several duplicated descriptions in the 'globals' section types and now refers back to the globals set for the details. modified: libdwarf.mm modified: libdwarf.pdf Changed a comment. modified: ../src/lib/libdwarf/dwarf_generic_init.c Defined dwarf_get_line_section_name() for a slight added consistency. modified: ../src/lib/libdwarf/dwarf_line.c modified: ../src/lib/libdwarf/libdwarf.h 2021-07-01: David Anderson commit 4d849a60352904817d6c2cd86ec02bc23819f487 Dramatically reduced the text about the various pubnames, pubtypes, weakname, and varnames functions by referring all back to globals detailed documentation. In the library all of these are implemented with a shared group of functions so they all operate similarly. modified: libdwarf.mm Regenerated. modified: libdwarf.pdf 2021-06-30: David Anderson commit 63153717c5016a5dd3074bfdbce70436e41589e9 Various Accelerated Access sections had omissions and errors. modified: doc/libdwarf.mm regenerated. modified: doc/libdwarf.pdf Fixed minor commentary mistakes. modified: src/lib/libdwarf/dwarf_arange.c Deleted dwarf_get_loclist_entry() an obsolete function declaration. The function itself was deleted already. modified: src/lib/libdwarf/libdwarf.h 2021-06-30: David Anderson commit 833b9c15df071fcdbd7b24a55ec1564f0bb136c5 dwarf_uncompress_integer_block() deleted as obsolete. Use dwarf_uncompress_integer_block_a() instead. This is a SunMicrosystems-only block of numbers, may not be in use anywhere. modified: libdwarf.h 2021-06-30: David Anderson commit 87ffaa04df07fa0c0655f22859933510b39b1e74 Rearranged so certain sets of functions now appear next to each other. dwarf_weak* dwarf_func* etc. modified: src/lib/libdwarf/libdwarf.h 2021-06-29: David Anderson commit 8c775946d1a92c674a78bbd010c2e497bcc63aca this included libdwarf things. no longer used. deleted: ../src/lib/libdwarf/dwarf_incl.h Improving the text a little. modified: ../doc/libdwarf.mm modified: ../doc/libdwarf.pdf dwarf_incl.h deleted Now the includes are one-level. modified: ../src/lib/libdwarf/CMakeLists.txt modified: ../src/lib/libdwarf/Makefile.am modified: ../src/lib/libdwarf/dwarf_abbrev.c modified: ../src/lib/libdwarf/dwarf_alloc.c modified: ../src/lib/libdwarf/dwarf_arange.c modified: ../src/lib/libdwarf/dwarf_crc32.c modified: ../src/lib/libdwarf/dwarf_debug_names.c modified: ../src/lib/libdwarf/dwarf_debug_sup.c modified: ../src/lib/libdwarf/dwarf_debuglink.c modified: ../src/lib/libdwarf/dwarf_die_deliv.c modified: ../src/lib/libdwarf/dwarf_dsc.c modified: ../src/lib/libdwarf/dwarf_error.c modified: ../src/lib/libdwarf/dwarf_find_sigref.c modified: ../src/lib/libdwarf/dwarf_fission_to_cu.c modified: ../src/lib/libdwarf/dwarf_form.c modified: ../src/lib/libdwarf/dwarf_frame.c modified: ../src/lib/libdwarf/dwarf_frame2.c modified: ../src/lib/libdwarf/dwarf_funcs.c modified: ../src/lib/libdwarf/dwarf_gdbindex.c modified: ../src/lib/libdwarf/dwarf_generic_init.c modified: ../src/lib/libdwarf/dwarf_global.c modified: ../src/lib/libdwarf/dwarf_gnu_index.c modified: ../src/lib/libdwarf/dwarf_groups.c modified: ../src/lib/libdwarf/dwarf_harmless.c modified: ../src/lib/libdwarf/dwarf_init_finish.c modified: ../src/lib/libdwarf/dwarf_leb.c modified: ../src/lib/libdwarf/dwarf_line.c modified: ../src/lib/libdwarf/dwarf_loc.c modified: ../src/lib/libdwarf/dwarf_locationop_read.c modified: ../src/lib/libdwarf/dwarf_loclists.c modified: ../src/lib/libdwarf/dwarf_macro.c modified: ../src/lib/libdwarf/dwarf_macro5.c modified: ../src/lib/libdwarf/dwarf_print_lines.c modified: ../src/lib/libdwarf/dwarf_pubtypes.c modified: ../src/lib/libdwarf/dwarf_query.c modified: ../src/lib/libdwarf/dwarf_ranges.c modified: ../src/lib/libdwarf/dwarf_rnglists.c modified: ../src/lib/libdwarf/dwarf_str_offsets.c modified: ../src/lib/libdwarf/dwarf_stringsection.c modified: ../src/lib/libdwarf/dwarf_test_errmsg_list.c modified: ../src/lib/libdwarf/dwarf_tied.c modified: ../src/lib/libdwarf/dwarf_types.c modified: ../src/lib/libdwarf/dwarf_util.c modified: ../src/lib/libdwarf/dwarf_vars.c modified: ../src/lib/libdwarf/dwarf_weaks.c modified: ../src/lib/libdwarf/dwarf_xu_index.c modified: dwarf_leb_test.c modified: dwarf_tied_test.c modified: objaccess.c modified: test_linkedtopath.c 2021-06-29: David Anderson commit 244a4773b2556e694209a83523c7ddf134c095cf Removed mention of dwarf_seterrhand() and dwarf_seterrarg() as neither was ever implemented. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-06-29: David Anderson commit 2453359ca6bb156849b8de4400c17a30a49ebf10 modified: configure.ac Delete reference to --enable-oldframecol, HAVE_OLD_FRAME_CFA_COL. Delete reference to --enable-global-alloc-sums, HAVE_GLOBAL_ALLOC_SUMS These are obsolete. modified: src/lib/libdwarf/dwarf_init_finish.c Remove lines dealing with HAVE_OLD_FRAME_CFA_COL. modified: src/lib/libdwarf/libdwarf.h Move dwarf_object_finish() up a few lines to be right next to dwarf_object_init_b() as it should have been all along. Removed dwarf_seterrarg() and dwarf_seterrhand() as they were never implemented. modified: test/Makefile.am and modified: test/CMakeLists.txt Add two new tests test_getnametest and test_objectaccess modified: test/getnametest.c modified: test/objaccess.c These are the source that are the new tests. Self-testing. 2021-06-29: David Anderson commit 895ee2fc7317a9a88d60b79b001314a4c67c834d modified: src/lib/libdwarf/dwarf_util.c Deleted the obsolete function dwarf_add_file_path() Deleted the obsolete function dwarf_srclines_files_count(), use dwarf_srclines_files_indexes() instead. modified: src/lib/libdwarf/dwarf_line.c Delete the obsolete function dwarf_srclines_two_level() Deleted the obsolete function dwarf_srclines_files_count(), use dwarf_srclines_files_indexes() instead. modified: src/lib/libdwarf/libdwarf.h Corrected a comment. Delete the obsolete function dwarf_srclines_two_level() Delete the obsolete function dwarf_add_file_path() Delete the obsolete function dwarf_srclines_files_count(), use dwarf_srclines_files_indexes() instead. modified: test/CMakeLists.txt Added the selftestnames test to get coverage of some functions in libdwarf/names.c modified: test/Makefile.am To get coverage of some functions in libdwarf/names.c new file: test/getnametest.c To get coverage of some functions in libdwarf/names.c 2021-06-28: David Anderson commit 49393fbe647a31290b170cf73fa4953e24e947c4 modified: src/lib/libdwarf/libdwarf.h Update commentary, removing reference to obsolete register/frame interfaces. 2021-06-28: David Anderson commit 91c4bbf0e453db284f5cbea221c860ec53f378cb modified: src/lib/libdwarf/libdwarf.h These two are obsolete, their code is already gone from libdwarf. dwarf_get_location_op_value_c() dwarf_highpc() dwarf_print_memory_stats() is really useless, the implementation is...an empty function. dwarf_get_abbrev_count() was never safe to use. And nobody actually needs to know the count of abbrevs in the entire .debug_abbrev section. modified: src/lib/libdwarf/dwarf_abbrev.c delete the unsafe function dwarf_get_abbrev_count() modified: src/lib/libdwarf/dwarf_alloc.c Delete the useless dwarf_print_memory_stats() function. modified: src/lib/libdwarf/dwarf_loc.c Delete the obsolete dwarf_get_location_op_value_c() modified: src/lib/libdwarf/dwarf_query.c Delete the obsolete function dwarf_highpc() modified: src/bin/dwarfdump/print_frames.c Now leb decode calls go to the public decode functions in libdwarf. The local versions are deleted. modified: src/bin/dwarfexample/simplereader.c drop use of dwarf_highpc() as it is obsolete and just use dwarf_highpc_b(). 2021-06-27: David Anderson commit 9fc91adc32273ca44858d451fcfe0b3d8a6ee7ab malloc_check.{h,c} were useful in 2005 but are no longer needed. modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am deleted: src/lib/libdwarf/malloc_check.c deleted: src/lib/libdwarf/malloc_check.h 2021-06-26: David Anderson commit 3b9cbd2b50773a9e70abd8e66102b641128cd25c Deleted the unused dwarf_dealloc_compressed_block() and the unused argument from _dwarf_p_dealloc. modified: libdwarfp.h modified: pro_alloc.c modified: pro_alloc.h modified: pro_die.c modified: pro_forms.c modified: pro_macinfo.c modified: pro_reloc_stream.c modified: pro_reloc_symbolic.c 2021-06-26: David Anderson commit 083733569ba3fac3b560a312e6ccf91c04f5826b All these changes are removing blank lines that do not aid readability, and turning groups of 2 or more blank lines into 1 blank line. modified: libdwarfp.h Deleted function prototype that was and is unused. modified: pro_alloc.h modified: pro_arange.h modified: pro_die.h modified: pro_dnames.h modified: pro_error.h modified: pro_expr.h modified: pro_frame.h modified: pro_incl.h modified: pro_line.h modified: pro_macinfo.h modified: pro_opaque.h modified: pro_reloc.h modified: pro_reloc_stream.h modified: pro_reloc_symbolic.h modified: pro_section.h modified: pro_types.h modified: pro_util.h 2021-06-26: David Anderson commit 57ff993f5ccc4163d59cdff87e99aefa84579e52 Minor changes. Deleted an unused macro. Changed true/false macros to TRUE/FALSE for consistency with libdwarf usage. Changed CURRENT_VERSION_STAMP to VERSION_STAMP2 as that is what was meant originally. modified: pro_forms.c modified: pro_line.c modified: pro_opaque.h modified: pro_section.c modified: pro_types.c 2021-06-26: David Anderson commit fa033b5b970a341dffb23b29e5d1fa7f8cf501aa Neither of these files are actually used in libdwarfp, so removing them. deleted: crc32.c deleted: dwarf_base_types.h 2021-06-25: David Anderson commit 1455bd31e4d2c7ad9af8908e346d356b96471ecc The tsearch directory is not part of libdwarf so it's been moved to a separate git repository. Soon it should be public on github. deleted: tsearch/ChangeLog deleted: tsearch/ChangeLog2014 deleted: tsearch/ChangeLog2015 deleted: tsearch/ChangeLog2016 deleted: tsearch/ChangeLog2017 deleted: tsearch/ChangeLog2018 deleted: tsearch/ChangeLog2019 deleted: tsearch/ChangeLog2020 deleted: tsearch/ESSAY.txt deleted: tsearch/Makefile deleted: tsearch/README deleted: tsearch/RUNTEST deleted: tsearch/config.h deleted: tsearch/dwarf_incl.h deleted: tsearch/dwarf_tsearch.c deleted: tsearch/dwarf_tsearch.h deleted: tsearch/dwarf_tsearchbal.c deleted: tsearch/dwarf_tsearchbin.c deleted: tsearch/dwarf_tsearchepp.c deleted: tsearch/dwarf_tsearchhash.c deleted: tsearch/dwarf_tsearchred.c deleted: tsearch/scripts/TEST.sh deleted: tsearch/scripts/badsample deleted: tsearch/scripts/comparator.py deleted: tsearch/scripts/comparatorsample deleted: tsearch/scripts/concatlines.py deleted: tsearch/scripts/concatlinesample deleted: tsearch/scripts/secondsample deleted: tsearch/scripts/testin deleted: tsearch/tsearch.c deleted: tsearch/tsearch_tester.c deleted: tsearch/tsearchlibtimes.csv deleted: tsearch/tsearchlibtimes.ods 2021-06-25: David Anderson commit 494a7119d057b4f6068d0df7663eb07692ed26da Now has all 4 public leb source. encode/decode and unsigned/signed. All in this one short source file makes testing of encode/decode really simple modified: src/lib/libdwarf/dwarf_leb.c Use the public decode leb calls. modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_frame2.c modified: src/lib/libdwarf/dwarf_query.c modified: src/lib/libdwarf/dwarf_util.c remove definition of ENCODE_SPACE_NEEDED, move to libdwarfp modified: src/lib/libdwarf/dwarf_util.h Remove reference to libdwarf/dwarf_encode_nm.c and .h as these were deleted. Instead we call the encode functions in libdwarf itself. modified: src/lib/libdwarfp/CMakeLists.txt definition of ENCODE_SPACE_NEEDED here now. modified: src/lib/libdwarfp/pro_opaque.h Simplify selfleb test build. modified: test/CMakeLists.txt modified: test/Makefile.am Use the public leb encode/decode functions now. modified: test/dwarf_leb_test.c 2021-06-24: David Anderson commit 5cd3040bd2003279406db147a9b96bdef6461589 Delete dwarf_encode_nm.c and dwarf_encode_nm.h. That code is now in dwarf_util.c deleted: src/lib/libdwarf/dwarf_encode_nm.c deleted: src/lib/libdwarf/dwarf_encode_nm.h modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am dwarf_encode_leb128 and dwarf_encode_signed_leb128 are now the complete implementations for encoding leb. modified: src/lib/libdwarf/dwarf_util.c Define ENCODE_SPACE_NEEDED for leb encoding. modified: src/lib/libdwarf/dwarf_util.h Remove build of libdwarf/dwarf_encode_nm.c, that file is gone. Rely on libdwarf dwarf_util.c to provide the needed functions modified: src/lib/libdwarfp/Makefile.am Call the public dwarf_encode_signed_leb128 and dwarf_encode_leb128 instead of libdwarfp local versions. modified: src/lib/libdwarfp/pro_expr.c modified: src/lib/libdwarfp/pro_forms.c modified: src/lib/libdwarfp/pro_frame.c modified: src/lib/libdwarfp/pro_line.c modified: src/lib/libdwarfp/pro_macinfo.c modified: src/lib/libdwarfp/pro_section.c 2021-06-23: David Anderson commit f8826f61ca8ac8f3ba5528c0378eb814df621732 The dwarf_init*() functions had an 'access' argument that has meant nothing. For a few hours it was defined as zero. (since the DW_DLC defines in libdwarf have been removed). Now that useless argument has been deleted entirely, reducing the number of arguments to those functions by one. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfexample/dwdebuglink.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/simplereader.c modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/libdwarf.h 2021-06-23: David Anderson commit 760418a6a28f0a4715a825a65647a96a54829b70 Fixed the suggested grep command. modified: checkexamples.c 2021-06-23: David Anderson commit 602cc4276e66cf3beb1d71a7c7e0e0fcd0a2ab11 Now has void examp... to match libdwarf.mm to ease checking. modified: checkexamples.c 2021-06-23: David Anderson commit 1faaeea00ad55d3802749b3512e35d770cca71bf Removed obsolete example. modified: checkexamples.c Fixed obsolete example using checkexamples.c code. modified: libdwarf.mm Regenerated modified: libdwarf.pdf 2021-06-23: David Anderson commit 080a7eb2052b2b9c2414294f1466073604e0dc61 Prevent -c (plain -c with no trailing letters) from doing anything: it really always was problematical. Ensure gf_use_old_dwarf_loclist false. That refers to obsolete API functions. modified: src/bin/dwarfdump/command_options.c Delete the call to print_locs() as it was only usable for DWARF2,3, and could never be guaranteed to work due to the way the standard was written.. modified: src/bin/dwarfdump/dwarfdump.c Remove the only Dwarf_Locdesc struct reference. modified: src/bin/dwarfdump/esb_using_functions.h Remove the prototype of print_locs() modified: src/bin/dwarfdump/globals.h remove Dwarf_Locdesc arguments/variables. delete the lines of code for use with the old loclist representation. All location code now handles DWARF2,3,4,5 and the old DWARF2,3,4-only versions gone. modified: src/bin/dwarfdump/print_die.c Remove a pointer arg related to Dwarf_Locdesc modified: src/bin/dwarfdump/print_frames.c Remove checkexamples from the EXTRA_DIST list modified: src/lib/libdwarf/Makefile.am We no longer want DW_DLA_LOC or DW_DLA_LOCDESC or DW_DLA_LOC_BLOCK so those no longer allocated. modified: src/lib/libdwarf/dwarf_alloc.c Delete dwarf_get_loclist_entry() entirely, it only worked for DWARF2, DWARF3, really. modified: src/lib/libdwarf/dwarf_loc.c Delete struct Dwarf_Loc,Dwarf_Locdesc as with the above changes they are no longer used. modified: src/lib/libdwarf/libdwarf.h 2021-06-23: David Anderson commit 9333fac9bea19c8487d7f86f6b97ac97bf75a3db New file here. modified: doc/Makefile.am checkexamples is examples for libdwarf.mm to verify they are syntactically ok in the .mm renamed: src/lib/libdwarf/checkexamples.c -> doc/checkexamples.c Update for deleted print_locs.c modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am We no longer need this file. No longer in .am or CMakeLists.txt deleted: src/bin/dwarfdump/print_locs.c 2021-06-23: David Anderson commit a154c319029aa977d4fa6aa13b7800810bdd07c1 Delete Dwarf_Loclists_Entry as it is never used anywhere. modified: src/lib/libdwarf/libdwarf.h 2021-06-23: David Anderson commit b56ef5568d1e3d9cea600d9a18dc074d2ae830ff The structs and functions deleted here only worked for DWARF2, were obsolete by DWARF3. delete dwarf_get_fde_info_for_all_regs() delete Dwarf_Regtable_Entry struct delete Dwarf_Regtable struct modified: src/lib/libdwarf/libdwarf.h delete dwarf_get_fde_info_for_all_regs as obsolete. modified: src/lib/libdwarf/dwarf_frame.c 2021-06-23: David Anderson commit 190fed6a846a233ae6582107e310b925f6b29c7d All instances of typedef struct { ... } foo; now show a struct foo_s as the struct name, consistent with the rest of libdwarf. modified: libdwarf.h 2021-06-22: David Anderson commit c1f7d40bcffefef4712699138c61a65faedaf63d Delete dwarf_srclines_dealloc(), obsolete modified: doc/libdwarf.mm Revise description of --file-line5= as we no longer test or use obsolete functions. Ensure that --file-line5= only requests s2l and singldw5 (dwarfdump enum values) so we just call the desired functions. modified: src/bin/dwarfdump/command_options.c Refactor some check code into a new local check_last_line_of_table() to shorten a long function. delete the code for lines enum values org and orig2l. modified: src/bin/dwarfdump/print_lines.c Now use dwarf_srclines_b() and dwarf_srclines_from_linecontext() instead of the old way. modified: src/bin/dwarfgen/createirepfrombinary.cc Delete dwarf_srclines as obsolete. Delete dwarf_srclines_files_data as obsolete. Delete dwarf_srclines_dealloc as obsolete. modified: libdwarf/dwarf_line.c Add struct name instead of having a typedef name for some structs defined in libdwarf.h for easier reading. Delete dwarf_srclines() Delete dwarf_srclines_dealloc() Delete dwarf_srclines_files_data() modified: src/lib/libdwarf/libdwarf.h 2021-06-22: David Anderson commit d87bae362a4f587d13a66f2174bed9b0545eb86c Now uses the correct dwarf_lineoff_b() function. dwarf_offdie_b() is better documented. Deleted dwarf_offdie() from the document. Deleted dwarf_lineoff() from the document. modified: doc/libdwarf.mm Now calls dwarf_get_locdesc_entry_d() instead of _c version. modified: src/bin/dwarfdump/print_frames.c Delete dwarf_lineoff() code as obsolete, use _b version. modified: src/lib/libdwarf/dwarf_line.c: Delete dwarf_get_locdesc_entry_c (use _d version). modified: src/lib/libdwarf/dwarf_loc.c Delete the obsolete dwarf_check_lineheader(),use _b version. modified:src/lib/libdwarf/dwarf_print_lines.c Delete obsolete functions dwarf_offdie dwarf_lineoff dwarf_get_locdesc_entry_c dwarf_check_lineheader modified: src/lib/libdwarf/libdwarf.h 2021-06-22: David Anderson commit 96ee1bfbf1071b0eba4cb4135f1c90d05c3e2ee5 Making protype appearance more regular, with the initial argument next to the return int and the function name. A few arg names were not in /* */ so fixed. modified: libdwarf.h 2021-06-22: David Anderson commit eb9daebb03794bb8033c748ec75c2f0dd27762b8 With the help of configure --version and 'cut' a bunch of python code is now a single line of shell command. modified: scripts/buildandreleasetest.sh 2021-06-22: David Anderson commit 41585bebdd91cf3ba7c3631a5aa2c842bbff33cc Remove all mention of HAVE_CUSTOM_LIBELF as that is not available. We don't use libelf any more! modified: CMakeLists.txt modified: configure.ac modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfexample/dwdebuglink.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/libdwarf.h 2021-06-22: David Anderson commit 88bf7c78814c5a27392a62dab9ab3ce6a949ea01 Now the DEBUG_INFO macros have the same value in glflags.h and pro_opaque.h. It's not essential, but looks better. In pro_opaque.h the values matter as they must match locations in a C array. So we changed the values (and in two cases names) in glflags.h to match. Each set of defines has a nearby comment mentioning the other set. modified: src/bin/dwarfdump/glflags.h modified: src/bin/dwarfdump/print_static_funcs.c modified: src/bin/dwarfdump/print_static_vars.c modified: src/lib/libdwarfp/pro_opaque.h 2021-06-22: David Anderson commit 2707b73a737ec2d3a338898d9332663c3fe93b9e Moved the DWARF_DBG_ERROR macro definition to dwarf_error.h and removed the definitions in the .c files modified: src/lib/libdwarf/dwarf_error.h modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_init_finish.c 2021-06-22: David Anderson commit 5d1f6c7ccdfca0c65760af3651ecdec3656a1cf3 Moved enum Dwarf_Rel_Type struct Dwarf_P_Marker_s struct Dwarf_Relocation_Data_s struct Dwarf_P_String_Attr_s to libdwarfp.h where they belong. Deleted DW_DLC_READ DW_DLC_WRITE DW_DLC_RDWR as useless. Pass 0 instead of DW_DLC_READ as that always worked. modified: libdwarf.h Added the structs taken from libdwarf.h modified: libdwarfp.h Use 0 instead of DW_DLC_READ (DW_DLC_READ was obsolete two decades ago). modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfexample/dwdebuglink.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/simplereader.c modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/bin/dwarfgen/dwarfgen.cc Removed a few lines to libdwarfp/README, added a couple lines mentioning autogen.sh modified: src/lib/libdwarf/README Remove the 'access' argument from internal initialization functions as it is never used. modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_opaque.h modified: src/lib/libdwarf/dwarf_peread.c Now has a useful comment. modified: src/lib/libdwarfp/README Document that one uses 0 instead of DW_DLC_READ when calling dwarf_init functions. modified: doc/libdwarf.mm Rev 4.4 modified: doc/libdwarf.pdf Regenerated 2021-06-21: David Anderson commit 8de094bbf4007cff0d355ee7b786c29725a22fe5 It was using sed and grep -o to extract the v_maj etc to make the complete version number, but -o is not a standard option. It did nothing on FreeBSD 12. Now there is is a python 3 script that does the entire job and we test the exit code so in case of failure it all stops and the python error message (to stderr) can be noticed easily. modified: scripts/buildandreleasetest.sh 2021-06-21: David Anderson commit 3ad2d897fb005ff05f04b3acc39298b1d76df520 Removing an unused variable. modified: bugxml/bugrecord.py 2021-06-20: David Anderson commit d3a9a6325c2172f67c6bd82c59fac32d6dca782f modified: dwarf_frame.h Modified dw_stpcpy to fully check there is no memory corruption, return DW_DLV_OK if successful, and use it rather than strcpy everywhere. modified: dwarf_object_detector.c Remove obsolete comments. Delete _dwarf_print_lines() as unused now. modified: dwarf_print_lines.c Removed: _dwarf_fde_section_offset() _dwarf_cie_section_offset() dwarf_get_ranges() dwarf_object_detector_path() Fixed dwarf_object_detector_path_b() and dwarf_object_detector_path_dSYM() as the arg list here did not have the arg names commented-out. Now commented out to protect against corruption by macros. modified: libdwarf.h 2021-06-20: David Anderson commit e09e89c8b4019b938a1a4daf740d4073ad458f25 Both now call dwarf_object_detector_path_b(). modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfexample/dwdebuglink.c 2021-06-20: David Anderson commit 3cd12cad5b025fce07fea0aafa7e3a6fca2e9786 Adding/correcting the doc of dwarf_object_detecor_path_b() and dwarf_object_detector_dSYM(). modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-06-19: David Anderson commit 06663f3b0b4de01759dbd96f4dd0bb16473f9dce The following obsolete functions have been deleted from the API (meaning from libdwarf.h): -int dwarf_loclist_n(Dwarf_Attribute -int dwarf_loclist(Dwarf_Attribute -int dwarf_loclist_from_expr(Dwarf_D -int dwarf_loclist_from_expr_a(Dwarf_ -int dwarf_loclist_from_expr_b(Dwarf_ -int dwarf_get_cu_die_offset_given_cu -int dwarf_get_abbrev_entry(Dwarf_Ab -int dwarf_get_rnglists_entry_fields( modified: doc/libdwarf.mm modified: doc/libdwarf.pdf modified: src/lib/libdwarf/libdwarf.h These files removed their implementation code for the deleted functions. modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/lib/libdwarf/dwarf_abbrev.c modified: src/lib/libdwarf/dwarf_global.c modified: src/lib/libdwarf/dwarf_loc.c modified: src/lib/libdwarf/dwarf_rnglists.c 2021-06-19: David Anderson commit de214c3debdcb54b19597d2727194fdec2195b21 Removing: -int dwarf_get_cie_info(Dwarf_Cie /*cie*/, -int dwarf_get_fde_info_for_reg(Dwarf_Fde /*fde*/, -int dwarf_get_fde_info_for_reg3(Dwarf_Fde /*fde*/, -int dwarf_get_fde_info_for_cfa_reg3(Dwarf_Fde /*fde*/, -int dwarf_get_arange_info( as these are old versions no one should use. Newer versions end in _a or _b or the like. modified: src/lib/libdwarf/dwarf_arange.c modified: src/lib/libdwarf/dwarf_frame.c modified: src/lib/libdwarf/libdwarf.h 2021-06-19: David Anderson commit d671d25522f10633238f47cc6babe32883743168 Using the correct newer interfaces instead of old deprecated libdwarf functions. modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfgen/createirepfrombinary.cc 2021-06-19: David Anderson commit 6e1e07207040d2d987ec2facaf4ac7acaf5e7097 dwarfdump.conf abi specifications mips-irix mips-irix2 deleted as they just allowed testing of now-deleted libdwarf functions. Using mips instead on mips DWARF. modified: src/bin/dwarfdump/dwarfdump.conf Removing interface category 2, it's obsolete. modified: src/bin/dwarfdump/dwconf.c modified: src/bin/dwarfdump/dwconf.h Using the new interface, should have been using it for a long time. modified: src/bin/dwarfdump/print_frames.c 2021-06-19: David Anderson commit f2551862783957f1ecda5250e542fbf6eab5f5ec Removed obsolete descriptions. -int dwarf_get_cie_info(Dwarf_Cie /*cie*/, -int dwarf_get_fde_info_for_reg(Dwarf_Fde /*fde*/, -int dwarf_get_fde_info_for_reg3(Dwarf_Fde /*fde*/, -int dwarf_get_fde_info_for_cfa_reg3(Dwarf_Fde /*fde*/, -int dwarf_get_arange_info( Current functions end in _a or _b and have been in the library for years. Source code changes in the next commit. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf 2021-06-19: David Anderson commit 6fc426db8b39dc7b2606b65eebab167069f401c7 Removed mention of the obsolete dwarf_init() dwarf_elf_init() dwarf_elf_init_b() functions. They are obsolete and removed. modified: libdwarf.mm modified: libdwarf.pdf 2021-06-18: David Anderson commit 0251c755e5273e5f6351c06d0b6d5b8cc80fd942 These were using obsolete libdwarf interfaces. Updated to match the preferred interfaces. modified: src/bin/dwarfdump/globals.h modified: src/bin/dwarfdump/print_aranges.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_pubnames.c modified: src/bin/dwarfdump/print_ranges.c The following obsolete interfaces deleted: int dwarf_init(int /*fd*/, int dwarf_get_ranges(Dwarf_Debug dbg, int dwarf_get_ranges_a(Dwarf_Debug /*dbg*/, modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_global.c 2021-06-18: David Anderson commit 84a87f237497bb3658df6b9c254930b3d67556db The hard-to-use function dwarf_uncompress_integer_block() has long had dwarf_uncompress_integer_block_a() as the better form. dwarf_uncompress_integer_block() is hereby deleted. It's unclear if anyone is using this Sun Sparc compiler feature from 2007 or so. modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/libdwarf.h 2021-06-18: David Anderson commit f53086d965d970178bbadd90db1b92bcc15c541e Only install libdwarfp.pdf if we have libdwarfp. modified: Makefile.am 2021-06-18: David Anderson commit 9170f91f521d7f9cf8609f2902e43020bd29ad69 Removed documentation of obsoleted functions. modified: doc/libdwarf.mm modified: doc/libdwarf.pdf Update to use the correct libdwarf functions instead of long-obsolete versions. modified: src/bin/dwarfdump/print_ranges.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_ranges.c modified: src/lib/libdwarf/libdwarf.h No longer used. deleted: src/lib/libdwarf/dwarf_original_elf_init.c 2021-06-18: David Anderson commit 3259b469af43dab5c6700e5e482f238e22f22e3d The API functions dwarf_elf_init dwarf_elf_init_b are removed. libdwarf does not use libelf now so these cannot be used. We stop building dwarf_original_elf_init.c as its code (it used struct Elf) is unused. modified: src/bin/dwarfdump/dwarfdump.c modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/libdwarf.h 2021-06-18: David Anderson commit a07223ffb0b4c9aa5e35f42a39d3a21e16192f40 It's embarassing, but these all were calling obsolete old API functions. Now they call the current API functions with the current _x letter pair (varies by function) modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/glflags.h modified: src/bin/dwarfdump/print_frames.c modified: src/bin/dwarfdump/print_sections.c modified: src/bin/dwarfgen/createirepfrombinary.cc 2021-06-18: David Anderson commit a24a1d48c829060ebf1a0567654271203dc82e2c The source for these obsolete API interfaces has now been deleted in favor of newer interfaces that have been in place for 2+ years. int dwarf_object_init(Dwarf_Obj_Access_Interface* /*obj*/, int dwarf_next_cu_header_b(Dwarf_Debug /*dbg*/, int dwarf_next_cu_header_c(Dwarf_Debug /*dbg*/, int dwarf_next_cu_header(Dwarf_Debug /*dbg*/, int dwarf_siblingof(Dwarf_Debug /*dbg*/, int dwarf_get_section_max_offsets(Dwarf_Debug /*dbg*/, int dwarf_get_section_max_offsets_b(Dwarf_Debug /*dbg*/, int dwarf_get_section_max_offsets_c(Dwarf_Debug /*dbg*/, modified: src/lib/libdwarf/dwarf_die_deliv.c modified: src/lib/libdwarf/dwarf_init_finish.c 2021-06-18: David Anderson commit 2e0dcab2575fd3a4c7a7d62293791951e623c0ed We are dropping these old functions from the API. Each has a replacement with a _ (a or whatever is next in each case) in the name, a replacement that has been in place for two years+ (sometimes much longer) as the recommended function to call. int dwarf_object_init(Dwarf_Obj_Access_Interface* /*obj*/, int dwarf_next_cu_header_b(Dwarf_Debug /*dbg*/, int dwarf_next_cu_header_c(Dwarf_Debug /*dbg*/, int dwarf_next_cu_header(Dwarf_Debug /*dbg*/, int dwarf_siblingof(Dwarf_Debug /*dbg*/, int dwarf_get_section_max_offsets(Dwarf_Debug /*dbg*/, int dwarf_get_section_max_offsets_b(Dwarf_Debug /*dbg*/, int dwarf_get_section_max_offsets_c(Dwarf_Debug /*dbg*/, modified: doc/libdwarf.mm modified: src/lib/libdwarf/libdwarf.h 2021-06-17: David Anderson commit d275fcdfd415959fb4ae789c8d3eda90af449b1c Cleaning up Rev 4.2 to catch ends of italicized words and to delete some obsolete wording. modified: libdwarfp.mm modified: libdwarfp.pdf 2021-06-17: David Anderson commit be9f31942a8d3b485cdc4a9831bac570c2456f26 Now at version 4.2 modified: libdwarf.pdf Now at version 4.2, old API functions removed. modified: libdwarfp.pdf 2021-06-17: David Anderson commit 626782318d0a95196192d03040452c114aa6504d Removing obsolete versions of API functions from the API Dwarf_P_Die dwarf_new_die( Dwarf_Unsigned dwarf_add_die_to_debug( Dwarf_Unsigned dwarf_add_die_marker( Dwarf_P_Expr dwarf_new_expr(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_add_expr_gen( Dwarf_Unsigned dwarf_add_expr_addr( Dwarf_Unsigned dwarf_add_expr_addr_b( Dwarf_Unsigned dwarf_expr_current_offset( Dwarf_Addr dwarf_expr_into_block( Dwarf_Unsigned dwarf_add_arange(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_add_arange_b( Dwarf_Unsigned dwarf_add_pubname( Dwarf_Unsigned dwarf_add_pubtype( Dwarf_Unsigned dwarf_add_funcname( Dwarf_Unsigned dwarf_add_typename( Dwarf_Unsigned dwarf_add_varname( Dwarf_Unsigned dwarf_add_weakname( modified: doc/libdwarfp.mm modified: src/lib/libdwarfp/libdwarfp.h modified: src/lib/libdwarfp/pro_arange.c modified: src/lib/libdwarfp/pro_die.c modified: src/lib/libdwarfp/pro_expr.c modified: src/lib/libdwarfp/pro_funcs.c modified: src/lib/libdwarfp/pro_pubnames.c modified: src/lib/libdwarfp/pro_types.c modified: src/lib/libdwarfp/pro_vars.c modified: src/lib/libdwarfp/pro_weaks.c 2021-06-17: David Anderson commit 918d4510151298fdd984db30290585143973873c Was using a couple old libdwarfp.h interfaces, now uses the correct functions. modified: src/bin/dwarfgen/ireptodbg.cc 2021-06-17: David Anderson commit 223449c56847b67a4c83c082f1746e06b72bf22d Removed another set of obsolete versions of producer functions. Dwarf_P_Attribute dwarf_add_AT_const_value_unsignedint( Dwarf_P_Attribute dwarf_add_AT_name(Dwarf_P_Die /*die*/, Dwarf_P_Attribute dwarf_add_AT_with_ref_sig8( Dwarf_Unsigned dwarf_add_directory_decl(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_add_file_decl(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_add_line_entry_b(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_add_line_entry(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_lne_set_address(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_lne_end_sequence(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_add_frame_cie(Dwarf_P_Debug /*dbg*/, Dwarf_Unsigned dwarf_add_frame_fde( Dwarf_Unsigned dwarf_add_frame_fde_b( Dwarf_Unsigned dwarf_add_frame_info_b( Dwarf_Unsigned dwarf_add_frame_info( Dwarf_P_Fde dwarf_add_fde_inst( Dwarf_P_Fde dwarf_new_fde(Dwarf_P_Debug /*dbg*/, Dwarf_P_Fde dwarf_fde_cfa_offset( modified: doc/libdwarfp.mm modified: src/lib/libdwarfp/libdwarfp.h modified: src/lib/libdwarfp/pro_die.c modified: src/lib/libdwarfp/pro_forms.c modified: src/lib/libdwarfp/pro_frame.c modified: src/lib/libdwarfp/pro_line.c 2021-06-17: David Anderson commit 737ccafd3a58479fc7813bf91d71d744abf83666 Rearrange the ifdefs on _WIN32,_MSC_VER, and HAVE_UNISTD_H so they work better on Windows. modified: src/bin/dwarfgen/createirepfrombinary.cc 2021-06-17: David Anderson commit 12e3a5416f8a0e99ba1065ef709d74ec3d6b65bf Rearrange the ifdefs on _WIN32,_MSC_VER, and HAVE_UNISTD_H so they work better on Windows. modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/simplereader.c 2021-06-17: David Anderson commit 648b12e7f38d810d4c6c488d4e86cf0fe228b09b Rearrange the ifdefs on _WIN32,_MSC_VER, and HAVE_UNISTD_H so they work better on Windows. modified: src/lib/libdwarf/dwarf_crc32.c modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_elfread.c modified: src/lib/libdwarf/dwarf_generic_init.c modified: src/lib/libdwarf/dwarf_machoread.c modified: src/lib/libdwarf/dwarf_object_detector.c modified: src/lib/libdwarf/dwarf_object_read_common.c modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_util.c 2021-06-17: David Anderson commit 7d6b98ed0ac95ab7165223dc3fa708d591a7b70e the following obsolete functions have been removed because the returned type was overloaded with a negative integer on error. Ugly casts required to check the return value. Dwarf_P_Attribute dwarf_add_AT_unsigned_const(Dwarf_P_Debug /*dbg*/, Dwarf_P_Attribute dwarf_add_AT_signed_const(Dwarf_P_Debug /*dbg*/, Dwarf_P_Attribute dwarf_add_AT_reference(Dwarf_P_Debug /*dbg*/, Dwarf_P_Attribute dwarf_add_AT_reference_b(Dwarf_P_Debug /*dbg*/, Dwarf_P_Attribute dwarf_add_AT_dataref( Dwarf_P_Attribute dwarf_add_AT_const_value_string( Dwarf_P_Attribute dwarf_add_AT_location_expr(Dwarf_P_Debug /*dbg*/, Dwarf_P_Attribute dwarf_add_AT_string(Dwarf_P_Debug /*dbg*/, Dwarf_P_Attribute dwarf_add_AT_flag(Dwarf_P_Debug /*dbg*/, Dwarf_P_Attribute dwarf_add_AT_producer(Dwarf_P_Die /*ownerdie*/, Dwarf_P_Attribute dwarf_add_AT_any_value_sleb( Dwarf_P_Attribute dwarf_add_AT_const_value_signedint( Dwarf_P_Attribute dwarf_add_AT_any_value_uleb( Dwarf_P_Attribute dwarf_add_AT_comp_dir(Dwarf_P_Die /*ownerdie*/, modified: doc/libdwarfp.mm modified: src/lib/libdwarfp/libdwarfp.h modified: src/lib/libdwarfp/pro_die.c modified: src/lib/libdwarfp/pro_forms.c modified: src/lib/libdwarfp/pro_section.c 2021-06-17: David Anderson commit d8cfb65183f9f7eaa03fb2b10b1353c745cf6cf4 Added a remark about dwarf_formudata() modified: doc/libdwarf.mm 2021-06-17: David Anderson commit be30390462d1a5d7afc03339f37af3494ea59be2 Removed some message() lines that were just for understanding what was going on. modified: src/lib/libdwarfp/CMakeLists.txt 2021-06-17: David Anderson commit 0a821aef2a0b16281640889e204512621ef3c93b More careful to note if a constant is signed by DW_FORM_sdata modified: src/bin/dwarfgen/createirepformfrombinary.cc Added comments related to signed/unsigned FORMs. modified: src/bin/dwarfgen/irepattrtodbg.cc 2021-06-17: David Anderson commit c3b6a9f8cca086c144898f0452bd079a936428de Adding comments with dwarf_formudata() modified: src/lib/libdwarf/dwarf_form.c 2021-06-16: David Anderson commit 4df3e549f21f3e232c50d58dfbe820fb93f252ab Previous change to dwarf_formudata() was really broken. Now fixed. modified: src/lib/libdwarf/dwarf_form.c 2021-06-16: David Anderson commit fe94c50a303e1fd7abbebb84eb751176013046b5 The DW_DLE_NEGATIVE_SIZE define was duplicated. Now just one present. modified: libdwarf.h 2021-06-16: David Anderson commit 457bfb8b2744e855c45f4737373fba7ccd47e6fa Removed doc of the interfaces mentioned below, modified: doc/libdwarfp.mm Was actually using two obsolete API functions. Now using the new ones. modified: src/bin/dwarfgen/dwarfgen.cc Removed the following functions as being obsolete,replaced over the last few years by better interface designs. -Dwarf_Signed dwarf_transform_to_disk_form(Dwarf_P_Debug /*dbg*/, -Dwarf_Ptr dwarf_get_section_bytes(Dwarf_P_Debug /*dbg*/, -Dwarf_Signed dwarf_get_die_markers( -Dwarf_Unsigned dwarf_producer_finish(Dwarf_P_Debug /*dbg*/, -Dwarf_P_Attribute dwarf_add_AT_targ_address(Dwarf_P_Debug /*dbg*/, -Dwarf_P_Attribute dwarf_add_AT_targ_address_b(Dwarf_P_Debug /*dbg*/, -Dwarf_P_Attribute dwarf_add_AT_block(Dwarf_P_Debug /*dbg*/, -Dwarf_P_Attribute dwarf_add_AT_ref_address(Dwarf_P_Debug /*dbg*/, -Dwarf_Unsigned dwarf_get_die_marker( -Dwarf_P_Die dwarf_die_link( . modified: src/lib/libdwarfp/libdwarfp.h modified: src/lib/libdwarfp/pro_die.c modified: src/lib/libdwarfp/pro_finish.c modified: src/lib/libdwarfp/pro_forms.c modified: src/lib/libdwarfp/pro_section.c 2021-06-16: David Anderson commit 4a28729f40d437967adde7d775619b6a7c5e434e added arm64 build modified: .travis.yml 2021-06-16: David Anderson commit 8a8d5b29db0c9a67f3b466820da38271ee2d13eb The renamings of these sources in libdwarf (function and source) remove the pro_ and substitute dwarf_ These are not public functions, but they are called by public encode functions in libdwarf.h renamed: src/lib/libdwarf/pro_encode_nm.c -> src/lib/libdwarf/dwarf_encode_nm.c renamed: src/lib/libdwarf/pro_encode_nm.h -> src/lib/libdwarf/dwarf_encode_nm.h modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/dwarf_util.c modified: src/lib/libdwarfp/CMakeLists.txt modified: src/lib/libdwarfp/Makefile.am modified: src/lib/libdwarfp/pro_debug_sup.c modified: src/lib/libdwarfp/pro_expr.c modified: src/lib/libdwarfp/pro_forms.c modified: src/lib/libdwarfp/pro_frame.c modified: src/lib/libdwarfp/pro_init.c modified: src/lib/libdwarfp/pro_line.c modified: src/lib/libdwarfp/pro_macinfo.c modified: src/lib/libdwarfp/pro_section.c modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/dwarf_leb_test.c 2021-06-16: David Anderson commit d0eecfa928f1abfa4211d64b0ae1d6e55de81299 Adding Requires: libdwarf and removing a -ldwarf modified: libdwarfp.pc.in 2021-06-15: David Anderson commit 8e7c2fbc9ab07b9e96c20b9d45d0eaf4061992f7 Only install libdwarfp.pc if --enable-dwarfgen (which builds libdwarfp) modified: Makefile.am 2021-06-15: David Anderson commit a6d8638c2089c42a6d00e375859b84feea309132 dwarf_formudata() now returns any constant including non-negative signed constant values. Negative signed constant values must be accessed via dwarf_formsdata() as always. modified: src/lib/libdwarf/dwarf_debug_names.c modified: src/lib/libdwarf/dwarf_errmsg_list.h modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/dwarf_opaque.h modified: src/lib/libdwarf/libdwarf.h 2021-06-15: David Anderson commit f7d4c3bb6776a0e731f12002a9721257eb4d5e8a modified: doc/libdwarf.mm ver 4.2 Now dwarf_formudata() returns any non-negative value regardless of form. For actual negative values it is still up to callers to notice the returned error and call dwarf_formsdata(). modified: doc/libdwarf.pdf regenerated modified: doc/libdwarfp.mm ver 4.1 modified: doc/libdwarfp.pdf regenerated 2021-06-15: David Anderson commit 479b985e1f11253a21d5bbfb835b0769234478de Now cmake make and ctest -R self work, and dwarfgen and libdwarfp build. First commit where the producer library is a separate library: libdwarfp.a or libdwarfp-0.1.1.so modified: CMakeLists.txt modified: src/bin/dwarfgen/CMakeLists.txt modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarfp/CMakeLists.txt modified: test/CMakeLists.txt modified: test/test_extra_flag_strings.c 2021-06-15: David Anderson commit 0494e16bbd4f8a177785594779c10d2d6b7da44b Now libdwarf and libdwarfp build properly, a couple issues created earlier before split creating libdwarfp are now resolved so all build and make install and make dist ok when using configure. modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarfp/Makefile.am modified: src/lib/libdwarfp/pro_incl.h 2021-06-14: David Anderson commit cbf7ec55ef1dfa1fab963c8dcc2ab59c8d79de5c Now we can build libdwarfp with dwarfgen successfully. A minor omission means it's not perfect. No cmake support for the separation of libdwarf from libdwarfp yet. modified: Makefile.am modified: README modified: configure.ac new file: libdwarfp.pc.in modified: src/bin/dwarfgen/Makefile.am new file: src/bin/dwarfgen/dwgetopt.c new file: src/bin/dwarfgen/dwgetopt.h modified: src/lib/libdwarf/COPYING modified: src/lib/libdwarf/LIBDWARFCOPYRIGHT deleted: src/lib/libdwarfp/CODINGSTYLE modified: src/lib/libdwarfp/COPYING modified: src/lib/libdwarfp/Makefile.am deleted: src/lib/libdwarfp/cmake/libdwarf-config.cmake new file: src/lib/libdwarfp/cmake/libdwarfp-config.cmake modified: test/Makefile.am 2021-06-13: David Anderson commit 75f639c56c2b286d83947bd57266823afb39c329 Now we can build libdwarf with no producer code. modified: src/lib/libdwarf/Makefile.am renamed: src/lib/libdwarfp/pro_encode_nm.c -> src/lib/libdwarf/pro_encode_nm.c renamed: src/lib/libdwarfp/pro_encode_nm.h -> src/lib/libdwarf/pro_encode_nm.h modified: test/Makefile.am 2021-06-13: David Anderson commit e96b9448450b40ad87efb02d547c11af49aa7efc DO NOT USE THIS COMMIT. It is a first step to building libdwarfp separately. modified: ../../../Makefile.am modified: Makefile.am new file: ../libdwarfp/CMakeLists.txt new file: ../libdwarfp/CODINGSTYLE new file: ../libdwarfp/COPYING new file: ../libdwarfp/ChangeLog new file: ../libdwarfp/Makefile.am new file: ../libdwarfp/NEWS new file: ../libdwarfp/README new file: ../libdwarfp/baseline.ltp new file: ../libdwarfp/cmake/libdwarf-config.cmake new file: ../libdwarfp/crc32.c new file: ../libdwarfp/dwarf_base_types.h new file: ../libdwarfp/dwarfstring.c renamed: libdwarfp.h -> ../libdwarfp/libdwarfp.h new file: ../libdwarfp/memcpy_swap.h renamed: pro_alloc.c -> ../libdwarfp/pro_alloc.c renamed: pro_alloc.h -> ../libdwarfp/pro_alloc.h renamed: pro_arange.c -> ../libdwarfp/pro_arange.c renamed: pro_arange.h -> ../libdwarfp/pro_arange.h renamed: pro_debug_sup.c -> ../libdwarfp/pro_debug_sup.c renamed: pro_die.c -> ../libdwarfp/pro_die.c renamed: pro_die.h -> ../libdwarfp/pro_die.h renamed: pro_dnames.c -> ../libdwarfp/pro_dnames.c renamed: pro_dnames.h -> ../libdwarfp/pro_dnames.h renamed: pro_encode_nm.c -> ../libdwarfp/pro_encode_nm.c renamed: pro_encode_nm.h -> ../libdwarfp/pro_encode_nm.h renamed: pro_error.c -> ../libdwarfp/pro_error.c renamed: pro_error.h -> ../libdwarfp/pro_error.h renamed: pro_expr.c -> ../libdwarfp/pro_expr.c renamed: pro_expr.h -> ../libdwarfp/pro_expr.h renamed: pro_finish.c -> ../libdwarfp/pro_finish.c renamed: pro_forms.c -> ../libdwarfp/pro_forms.c renamed: pro_frame.c -> ../libdwarfp/pro_frame.c renamed: pro_frame.h -> ../libdwarfp/pro_frame.h renamed: pro_funcs.c -> ../libdwarfp/pro_funcs.c renamed: pro_incl.h -> ../libdwarfp/pro_incl.h renamed: pro_init.c -> ../libdwarfp/pro_init.c renamed: pro_line.c -> ../libdwarfp/pro_line.c renamed: pro_line.h -> ../libdwarfp/pro_line.h renamed: pro_log_extra_flag_strings.c -> ../libdwarfp/pro_log_extra_flag_strings.c renamed: pro_macinfo.c -> ../libdwarfp/pro_macinfo.c renamed: pro_macinfo.h -> ../libdwarfp/pro_macinfo.h renamed: pro_opaque.h -> ../libdwarfp/pro_opaque.h renamed: pro_pubnames.c -> ../libdwarfp/pro_pubnames.c renamed: pro_reloc.c -> ../libdwarfp/pro_reloc.c renamed: pro_reloc.h -> ../libdwarfp/pro_reloc.h renamed: pro_reloc_stream.c -> ../libdwarfp/pro_reloc_stream.c renamed: pro_reloc_stream.h -> ../libdwarfp/pro_reloc_stream.h renamed: pro_reloc_symbolic.c -> ../libdwarfp/pro_reloc_symbolic.c renamed: pro_reloc_symbolic.h -> ../libdwarfp/pro_reloc_symbolic.h renamed: pro_section.c -> ../libdwarfp/pro_section.c renamed: pro_section.h -> ../libdwarfp/pro_section.h renamed: pro_types.c -> ../libdwarfp/pro_types.c renamed: pro_types.h -> ../libdwarfp/pro_types.h renamed: pro_util.h -> ../libdwarfp/pro_util.h renamed: pro_vars.c -> ../libdwarfp/pro_vars.c renamed: pro_weaks.c -> ../libdwarfp/pro_weaks.c 2021-06-13: David Anderson commit 1803fc67faa3cb85597a91539943dd0692bbdb0f Now does instead of "libdwarf.h" modified: src/lib/libdwarf/libdwarfp.h 2021-06-13: David Anderson commit 3bfc355d0d4f858d24c74df4514a7c59c99fd831 Now #includes libdwarf.h modified: src/lib/libdwarf/libdwarfp.h These all now include libdwarfp.h and get libdwarf.h automatically. modified: src/lib/libdwarf/pro_alloc.c modified: src/lib/libdwarf/pro_arange.c modified: src/lib/libdwarf/pro_debug_sup.c modified: src/lib/libdwarf/pro_die.c modified: src/lib/libdwarf/pro_dnames.c modified: src/lib/libdwarf/pro_encode_nm.c modified: src/lib/libdwarf/pro_error.c modified: src/lib/libdwarf/pro_expr.c modified: src/lib/libdwarf/pro_finish.c modified: src/lib/libdwarf/pro_forms.c modified: src/lib/libdwarf/pro_frame.c modified: src/lib/libdwarf/pro_funcs.c modified: src/lib/libdwarf/pro_init.c modified: src/lib/libdwarf/pro_line.c modified: src/lib/libdwarf/pro_log_extra_flag_strings.c modified: src/lib/libdwarf/pro_macinfo.c modified: src/lib/libdwarf/pro_pubnames.c modified: src/lib/libdwarf/pro_reloc.c modified: src/lib/libdwarf/pro_reloc_stream.c modified: src/lib/libdwarf/pro_reloc_symbolic.c modified: src/lib/libdwarf/pro_section.c modified: src/lib/libdwarf/pro_types.c modified: src/lib/libdwarf/pro_vars.c modified: src/lib/libdwarf/pro_weaks.c modified: test/test_extra_flag_strings.c 2021-06-13: David Anderson commit 9fe860fcf9518291068e95dc6b769dbaefa55649 Now MAINTAINERCLEANFILES always has Makefile.in modified: Makefile.am modified: doc/Makefile.am modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfexample/Makefile.am modified: src/bin/dwarfgen/Makefile.am modified: src/lib/libdwarf/Makefile.am 2021-06-13: David Anderson commit 9648fc6b2f1497e16edac8dd7a8f2ac8f20a16bf Split libdwarf.h into two. Now all the producer interfaces are in libdwarfp.h libdwarf.h is always included before libdwarfp.h where libdwarfp.h is required. modified: configure.ac modified: src/bin/dwarfgen/createirepformfrombinary.cc modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/bin/dwarfgen/dwarfgen.cc modified: src/bin/dwarfgen/irepattrtodbg.cc modified: src/bin/dwarfgen/ireptodbg.cc modified: src/lib/libdwarf/Makefile.am modified: src/lib/libdwarf/dwarf_form.c modified: src/lib/libdwarf/libdwarf.h new file: src/lib/libdwarf/libdwarfp.h modified: src/lib/libdwarf/pro_alloc.c modified: src/lib/libdwarf/pro_arange.c modified: src/lib/libdwarf/pro_debug_sup.c modified: src/lib/libdwarf/pro_die.c modified: src/lib/libdwarf/pro_dnames.c modified: src/lib/libdwarf/pro_encode_nm.c modified: src/lib/libdwarf/pro_error.c modified: src/lib/libdwarf/pro_expr.c modified: src/lib/libdwarf/pro_finish.c modified: src/lib/libdwarf/pro_forms.c modified: src/lib/libdwarf/pro_frame.c modified: src/lib/libdwarf/pro_funcs.c modified: src/lib/libdwarf/pro_init.c modified: src/lib/libdwarf/pro_line.c modified: src/lib/libdwarf/pro_log_extra_flag_strings.c modified: src/lib/libdwarf/pro_macinfo.c modified: src/lib/libdwarf/pro_pubnames.c modified: src/lib/libdwarf/pro_reloc.c modified: src/lib/libdwarf/pro_reloc_stream.c modified: src/lib/libdwarf/pro_reloc_symbolic.c modified: src/lib/libdwarf/pro_section.c modified: src/lib/libdwarf/pro_types.c modified: src/lib/libdwarf/pro_vars.c modified: src/lib/libdwarf/pro_weaks.c modified: test/test_extra_flag_strings.c 2021-06-13: David Anderson commit 4ec720e371a1658096cba8f4c3f49d7f785bf11d Mention the version of automake reporting spurious warnings. modified: README 2021-06-13: David Anderson commit f65607c30daf993a1a3caed84d6f41d4a12b7542 Corrected the wording to match current behavior. modified: README modified: README.cmake modified: README.md 2021-06-12: David Anderson commit c9d7b3dffabc23ad332f67571b228fd2231c65ff Removing references to libelf. modified: src/lib/libdwarf/libdwarf.h 2021-06-12: David Anderson commit 2fbca3d326d8e4f11e450835d0c66abdd98b9fca Refined the comments. modified: README.md 2021-06-12: David Anderson commit 505cfd1a00e1b5b1b41db5b9c47fd7298907a5f9 Fix to make this work modified: scripts/run-all-tests.sh 2021-06-12: David Anderson commit 8a11ac0afc1fcd7924ff27cd314f563f0fb482c7 Now make dist generates xz instead of gz to save space. modified: configure.ac Removing some incorrect CLEANFILES and related. modified: doc/Makefile.am modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfexample/Makefile.am modified: src/bin/dwarfgen/Makefile.am modified: src/lib/libdwarf/Makefile.am 2021-06-12: David Anderson commit 1ef2ff5bba02fb6f0dfe5700a5cc05f2db57f9c0 Ensure HAVE_ELF64_GETSHDR and HAVE_ELF64_GETEHDR set by configure as dwarfgen needs those (dwarfgen really does use libelf --- to write out a .o). modified: CMakeLists.txt modified: configure.ac 2021-06-11: David Anderson commit 0ac9007f9f80d67f6c7ddfe36bd0cc81bf85f28f Now honor the new locations of source code in the new source directory setup. modified: ../../../scripts/UPDATEDWARFDUMPVERSION.sh modified: ../../../scripts/buildandreleasetest.sh modified: ../../../scripts/buildstandardsource.sh modified: ../../../scripts/ddbuild.sh modified: ../../../scripts/libbuild.sh modified: ../../../scripts/run-all-tests.sh 2021-06-11: David Anderson commit 06c3dc2153df16045edae20594055d8005b2c0b3 Always look for Windows full path initial characters. modified: dwarf_line.c 2021-06-10: David Anderson commit 250a71dad58d18901628ad1fc5c24df3b1b76b65 Make these as similar as possible. modified: test/debuglinktest-a.sh modified: test/debuglinktest-b.sh 2021-06-10: David Anderson commit 52ac57e924156fde903d68605d89db0db4e9b1fb Removed bogus stuff and fixed so the dwarfdump-using commands see a dwarfdump.conf So the tests pass. modified: test/CMakeLists.txt 2021-06-10: David Anderson commit f44f75ecf0252366eef65c522a9b89ebeaa41869 Two words ran together in a message. Now separated by a single space. modified: src/bin/dwarfdump/dwconf.c 2021-06-10: David Anderson commit 546f740ad4d52dd9bf0cdbf66243fcb83fa4896d Remove HAVE_NONSTANDARD_PRINTF_64_FORMAT HAVE_WINDOWS_PATH and --enable-windowspath and --enable-nonstandardprintf modified: CMakeLists.txt modified: README.cmake modified: cmake/config.h.cmake modified: configure.ac modified: scripts/baseconfig.h modified: src/lib/libdwarf/dwarf_debuglink.c _dwarf_file_name_is_full_path() is global private func modified: src/lib/libdwarf/dwarf_line.c Now gets the new version number from configure.ac modified: scripts/buildandreleasetest.sh Delete a comment line modified: src/bin/dwarfdump/CMakeLists.txt Add -I$(top_srcdir)/src/bin/dwarfdump modified: src/bin/dwarfdump/Makefile.am Add default loc /usr/share/dwarfdump/dwarfdump.conf in looking for dwarfdump.conf Eliminate CONFPREFIX test, it is always there. modified: src/bin/dwarfdump/command_options.c Still not right. modified: test/CMakeLists.txt Added an echo to match up with test/debuglinktest-a.sh better. modified: test/debuglinktest-b.sh 2021-06-10: David Anderson commit 8941868ea163b6061c54b5e1f1fd8c6380346da4 Added a period where it had been missed. About line 2531. modified: doc/libdwarf.mm 2021-06-09: David Anderson commit 48bfa237dcf410a4d90aa0094fa6c2f1e723699f Used latest dwarf_init, not older one. modified: src/bin/dwarfexample/simplereader.c 2021-06-09: David Anderson commit 195fa85c42ccd0bc5191b1e9e12f24cd5ceae870 Now configure and cmake run the same 17 tests when testing, all pass. modified: test/CMakeLists.txt modified: test/Makefile.am modified: test/debuglinktest-a.sh modified: test/debuglinktest-b.sh modified: test/test_dwarfstring.c modified: test/test_extra_flag_strings.c 2021-06-09: David Anderson commit 55cf3eeb1bbf46b25f391135e47529ec4d2282f0 Simplifying the doc am files modified: Makefile.am modified: configure.ac modified: doc/Makefile.am 2021-06-09: David Anderson commit 1d520af7b8c7f8a9ac3c289a659c2ee8399be12f typo fixed. modified: ChangesToLibdwarf.odt 2021-06-09: David Anderson commit bb67fa61429774c27baf1d4d711399a2b8354d4c modified: ChangesToLibdwarf.odt updated. modified: ChangesToLibdwarf.pdf libdwarf2.1.(mm ,pdf) -> libdwarf.(mm,pdf) revision 3.27 -> 4.1and libdwarf2p.1{mm,pdf} -> libdwarfp.{mm,pdf} revision 1.53 > 2.1 modified: Makefile.am renamed: libdwarf2.1.mm -> libdwarf.mm new file: libdwarf.pdf deleted: libdwarf2.1.pdf renamed: libdwarf2p.1.mm -> libdwarfp.mm renamed: libdwarf2p.1.pdf -> libdwarfp.pdf modified: pdfbld.sh 2021-06-09: David Anderson commit 5e23cc6959ee58c465c7b51573634c9e37042d65 the last change introduced a nasty typo: left off a */ modified: src/lib/libdwarf/libdwarf.h 2021-06-08: David Anderson commit 6315faaecd5fa9fed1c9ede11752051bba5df00c Corrected doc of dwarf_srclines_b() modified: doc/libdwarf2.1.mm Fixed commentary about dwarf_srclines_b() modified: src/lib/libdwarf/libdwarf.h 2021-06-08: David Anderson commit f5939ed251fe58866330ecadbfe0a18a5b37b416 Just remove one small documentation bug and regenerated. modified: doc/libdwarf2.1.pdf No change, just regenerated. modified: doc/libdwarf2p.1.pdf 2021-06-08: David Anderson commit aec87e963a53ea7ae19eac6d3201288d104ffc55 Now 'make doc' and 'make install' work fully. modified: Makefile.am modified: src/bin/dwarfdump/Makefile.am 2021-06-08: David Anderson commit 9b742d8219bf9ff85c904fd1593d7945ae33fec3 Fix mistake in documentation of dwarf_srclines_dealloc_b() modified: libdwarf2.1.mm 2021-06-08: David Anderson commit fa9ceb8d2efda0afc83bc3afb657ea8c55f7f619 commentary modified: README.cmake Now with doc: target. modified: doc/Makefile.am Now libdwarf.h put where it should with make install modified: src/lib/libdwarf/CMakeLists.txt 2021-06-08: David Anderson commit 88eb1805d05a0a380ffb2e39df0f4f2015a06f25 Minor change modified: doc/ChangesToLibdwarf.odt 2021-06-08: David Anderson commit 4e3edca6c22cbcbd48171fffa976fa3f2ed32ef5 More complete cleanup, though it would be rarely used. modified: scripts/CLEANUP 2021-06-08: David Anderson commit e919fe7a095d318ab74c7ce6b444cd48d52c2fdf Now run cmake tests if -DDO_TESTING=ON modified: CMakeLists.txt modified: test/CMakeLists.txt Fix the test scripts so they work consistently, and fix the one baseline where the wrong dwarfdump options were used before. modified: test/dwarfdumpMacos.sh modified: test/dwarfdumpPE.sh modified: test/dwarfdumpsetup.sh modified: test/test-mach-o-32.base 2021-06-08: David Anderson commit 072e3559d1065dc8e6117045bfa0ce2650610583 Documenting changes (not in full detail) new file: doc/ChangesToLibdwarf.odt new file: doc/ChangesToLibdwarf.pdf Fixing as --elf and --reloc options are gone. modified: doc/dwarfdump.1 2021-06-07: David Anderson commit c446e7e72c6bc9cd5c8dd67c52db2704616cfb96 Most of cmake works, but not ctest modified: README.cmake 2021-06-07: David Anderson commit b72a8c0a2580d63daa9fb76c773cb5f715aa2e9b Just updating README files a little. modified: README modified: README.cmake 2021-06-07: David Anderson commit edc5271694779675626b1a6d6ba06bc761b4fb0b Now if --enable-dwarfgen make install will install dwarfgen.1 and otherwise it will not. modified: configure.ac modified: doc/Makefile.am 2021-06-07: David Anderson commit cf3010079efbd34c6ffb0fe3d4c6aad362a0c585 Now can build the pdfs. The build is ONLY done in a build tree and should never be automatic. Only build if you've changed a .mm . Build by cd doc && make buildconsumerpdf or cd doc && make buildproducerpdf The Makefile copies the pdf built to the source tree. modified: doc/Makefile.am modified: doc/libdwarf2.1.pdf modified: doc/libdwarf2p.1.pdf modified: doc/pdfbld.sh 2021-06-06: David Anderson commit eafe9c0b0ece32cca12482cee1126ddfbe747a11 Move UNUSEDARG to after identifier. modified: dwarf_peread.c modified: dwarf_query.c modified: dwarf_ranges.c modified: dwarf_rnglists.c modified: dwarf_tsearchhash.c 2021-06-06: David Anderson commit fb3fa42ac0def16fdff5fadaf0af92e31dd3ad60 Moved UNUSEDARG to after identifier modified: dwarf_abbrev.c modified: dwarf_alloc.c modified: dwarf_dsc.c modified: dwarf_elf_load_headers.c modified: dwarf_elfread.c modified: dwarf_fission_to_cu.c modified: dwarf_form.c modified: dwarf_frame.c modified: dwarf_frame2.c modified: dwarf_gdbindex.c 2021-06-06: David Anderson commit 81344b9c961b6afaf6635e2b23271672e0a5a9ee eliminating the last AUTOMAKE_OPTIONS modified: Makefile.am 2021-06-06: David Anderson commit b9cb74402ef5bcceec1768b44e4c73372fedb912 In dwarfdump all the UNUSEDARG follow the identifier, as is the most common pracice. modified: src/bin/dwarfdump/attr_form.c modified: src/bin/dwarfdump/common.c modified: src/bin/dwarfdump/dwarf_tsearchbal.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/macrocheck.c modified: src/bin/dwarfdump/print_abbrevs.c modified: src/bin/dwarfdump/print_debug_gnu.c 2021-06-06: David Anderson commit 78cc4edb9245c7ac41b6faff930c83b962d84357 now UNUSEDARG after the identifier instead of before the type. modified: src/bin/dwarfdump/attr_form_build.c modified: src/bin/dwarfdump/print_die.c modified: src/bin/dwarfdump/print_gdbindex.c modified: src/bin/dwarfdump/print_lines.c modified: src/bin/dwarfdump/print_loclists.c modified: src/bin/dwarfdump/print_macinfo.c modified: src/bin/dwarfdump/print_macro.c modified: src/bin/dwarfdump/print_origloclist_codes.c modified: src/bin/dwarfdump/print_ranges.c modified: src/bin/dwarfdump/print_rnglists.c modified: src/bin/dwarfdump/print_section_groups.c modified: src/bin/dwarfdump/tag_attr.c modified: src/bin/dwarfdump/tag_tree.c 2021-06-06: David Anderson commit c39c97fc38ae84e2a9eab1f23c706b62b03c869d Now UNUSEDARG defines are from libdwarf_private.h and they areused *after* the identifier (as is usually done). modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfgen/createirepformfrombinary.cc modified: src/bin/dwarfgen/createirepfrombinary.cc modified: src/bin/dwarfgen/dwarfgen.cc modified: src/bin/dwarfgen/irepattrtodbg.cc modified: src/bin/dwarfgen/ireptodbg.cc 2021-06-06: David Anderson commit be4457dff5426df98696102fec55cfd4bff9ee6f Moved UNUSEDARG to the more usual location after the ideentifier modified: dwarf_tied_test.c modified: testesb.c 2021-06-06: David Anderson commit 01e31558057bec25d19fe0845a4716d8a4dd0c18 Remove a commented-out AUTOMAKE_OPTIONS. modified: .gitignore 2021-06-06: David Anderson commit 383fcfb275ce121a7035e2edac150298d307ccf3 Now when make dist done the tar.gz contains all the files it should. Nothing missing. modified: Makefile.am modified: doc/Makefile.am modified: scripts/libbuild.sh modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfexample/Makefile.am modified: src/bin/dwarfgen/Makefile.am modified: src/lib/libdwarf/Makefile.am modified: test/Makefile.am 2021-06-06: David Anderson commit 4f664c92320396f67fb163d653d1cc75756dc350 This was never used or made public. Dropping it. deleted: src/lib/libdwarf/dwarf_stubs.c 2021-06-06: David Anderson commit 3c6e6118b04321fe578e3d6a50ed51a718164d93 This file is no longer used by libdwarf. deleted: dwarf_elf_access.c 2021-06-06: David Anderson commit aa9bee0fb08a171cf332f9293bf37f889bc6d763 These files were intended to be temporary. So deleting. deleted: cuandunit.txt deleted: debug-cu-tu-indexes-layout.odg 2021-06-06: David Anderson commit 1a1c9efad801deabd3a58db6406ed9bdfbbfe5e9 now removes the autotools cache too. modified: scripts/CLEANUP 2021-06-06: David Anderson commit 88a1739031ab80b376ce4922182c4722ca8bc8f7 Removed an errant chkres invocation. modified: test/dwarfdumpMacos.sh 2021-06-06: David Anderson commit 85f3340026ed8caf54dc3655f71b062a8b73831b Was not entirely checking status correctly. modified: test/debuglinktest-a.sh modified: test/debuglinktest-b.sh 2021-06-06: David Anderson commit 0d3b5458e6273fa6304a7e3de4e2827e1a3d2f27 Refs the real tests. The names were not meaningful. Better names now. renamed: test/runtestsexample.sh -> test/debuglinktest-a.sh renamed: test/runtestsexample-b.sh -> test/debuglinktest-b.sh modified: test/Makefile.am This was obsolete, the self-testing program set in test/Makefile.am deleted: test/testdebuglink.sh 2021-06-06: David Anderson commit 661c4b96bde7f0783571fed9ba4d93c1c1aa3f1b Now add back in the dwarfexample build. modified: .travis.yml 2021-06-06: David Anderson commit 328516fbfbc42041aad98324bba359a6964f4b80 showing the actual dwarfdump command now. modified: dwarfdumpLinux.sh modified: dwarfdumpMacos.sh modified: dwarfdumpPE.sh Now ensures the local directory as a dwarfdump.conf (avoiding a warning that messes up the diff) modified: dwarfdumpsetup.sh 2021-06-06: David Anderson commit f4dc8c84e9a01ff6c215e9b20c545ca8a33639b7 Remove TEST= from here, it is in the test directory. modified: src/lib/libdwarf/Makefile.am Supply a dwarfdump.conf to dwarfdump. modified: test/dwarfdumpsetup.sh 2021-06-06: David Anderson commit 9fa2090d626aa7902f5edad6c86c8f2d705a3523 Removed "AUTOMAKE_OPTIONS=" modified: doc/Makefile.am Was not exiting with correct status in all cases. If diff fails now shows actual diff. modified: test/dwarfdumpLinux.sh modified: test/dwarfdumpMacos.sh modified: test/dwarfdumpPE.sh modified: test/dwarfdumpsetup.sh 2021-06-06: David Anderson commit 7a45da78b5dc16476cb8fd0af9b06bbadd8e0df8 Try ignoring warnings abouts subdir-objects. modified: test/Makefile.am 2021-06-06: David Anderson commit 497a7c515181bbcf9ef66577a510366916871938 Removing --enable-dwarfexample as the output with it present is odd on travis. modified: .travis.yml 2021-06-06: David Anderson commit fcaf317462aba4e6187b6391ea2841adf86fa878 AUTOMAKE_OPTIONS = subdir-objects is now in both of these. If leftout of either autoreconf seems to object. modified: Makefile.am modified: test/Makefile.am 2021-06-06: David Anderson commit 08f77a680558d0acb4b2c7b63766f28705ab2854 added blank line to trigger build. I hope. modified: .travis.yml 2021-06-06: David Anderson commit f43a3fc00a39cdd8f46d68bd8790978b25dc17ee now make maintainer-clean cleans up a little bit it was missing. modified: Makefile.am modified: doc/Makefile.am modified: src/lib/libdwarf/Makefile.am modified: test/Makefile.am 2021-06-06: David Anderson commit 3627c6dae4bc6a01436f9b47bb98e0d821d36247 fixing omissions modified: scripts/CLEANUP 2021-06-06: David Anderson commit 6b65227b6891323c517c40f7efd18ff4eb2c08f4 These are to help make travis-ci work. modified: .gitignore modified: .travis.yml modified: test/Makefile.am 2021-06-06: David Anderson commit af91d83ba59392f9e625dd741680c9a124840e32 These all mentioned HAVE_NONSTANDARD_PRINTF_64_FORMAT and they no longer do that. modified: README modified: README.cmake modified: tsearch/dwarf_tsearchbal.c modified: tsearch/dwarf_tsearchbin.c modified: tsearch/dwarf_tsearchepp.c modified: tsearch/dwarf_tsearchhash.c modified: tsearch/dwarf_tsearchred.c 2021-06-05: David Anderson commit fef228d0a838ab9b2a3da9a6250ab74a0a73d054 Added include of libdwarf_private.h modified: dwgetopt.c 2021-06-05: David Anderson commit d7709325384b0f3a89cca71f2ab7517e73ec6a7e This failed. Mistakes crept in. modified: test/dwarfdumpLinux.sh Deleted a variety of useless lines in the scripts, Holdovers from the past. modified: test/dwarfdumpMacos.sh modified: test/dwarfdumpPE.sh modified: test/dwarfdumpsetup.sh modified: test/runtestsexample-b.sh modified: test/runtestsexample.sh 2021-06-05: David Anderson commit 83df3959b59abe44e2420f9640674b0d29e8ac8e An occasional use helper script. modified: scripts/CLEANUP All uses of HAVE_NONSTANDARD_PRINTF_64_FORMAT have been changed to just check _WIN32 modified: src/bin/dwarfdump/dwarf_tsearchbal.c modified: src/bin/dwarfdump/esb.c modified: src/lib/libdwarf/dwarfstring.c modified: src/lib/libdwarf/libdwarf_private.h 2021-06-05: David Anderson commit 331cf30c3456bebb933c0ff575f096045660db40 Deleted lines setting things that are never used here. modified: dwarfdumpsetup.sh 2021-06-05: David Anderson commit cae4ff4be5b1835823595c178c3bfce59af6f19b Removed an obsolete reference to a deleted script. To have 'make dist' work again. modified: test/Makefile.am 2021-06-05: David Anderson commit 8d0214959f337ebd8bd5f546e8deadfc6bb25e94 The ifdef DWARF_WITH_LIBELF code has been removed. Overall I suppose maybe a bit under 300 lines shorter? modified: src/bin/dwarfdump/command_options.c modified: src/bin/dwarfdump/dwarfdump.c modified: src/bin/dwarfdump/globals.h modified: src/lib/libdwarf/dwarf_elfread.c 2021-06-05: David Anderson commit e94407b6e9417e11d35af45767ca3749b4bb1a51 modified: test/Makefile.am Now each test is done seperately. new file: test/dwarfdumpLinux.sh new file: test/dwarfdumpMacos.sh new file: test/dwarfdumpPE.sh This is the common prefix to run the above 3 tests. new file: test/dwarfdumpsetup.sh Gone deleted: test/runtestdd.sh deleted: test/runtests.sh 2021-06-05: David Anderson commit 998e5e079eb44f4eeccbe82cfad93b8fa8e40553 libdwarf: many many files defined TRUE FALSE now only libdwarf_private.h defines these. 2021-06-05: David Anderson commit 0a367212450eaeb9242b391f19b02bac3b32cf93 Two tests in one script are now one test each. modified: Makefile.am new file: runtestsexample-b.sh modified: runtestsexample.sh 2021-06-05: David Anderson commit 5ee336288440ec59840786c0a9521a74b82ae21b Now detects and links against libelf only when it is present AND we are building libgen. DWARF_LIBS will be -lz or empty DWARFGEN_LIBS will be -lelf or empty (and if empty we're not building dwarfgen as we don't want to or else because libelf itself or its headers are missing) modified: configure.ac Adding library of DWARFGEN_LIBS reference for the link. modified: src/bin/dwarfgen/Makefile.am 2021-06-05: David Anderson commit 3d94c71a5c1f9f937e834e2d1a3818a99d526eee Unnecessary, but possibly useful at times: modified: scripts/CLEANUP Correcting (for the new directorysetup) dealing with in-tree make check. modified: test/runtestsexample.sh 2021-06-05: David Anderson commit ac1245256ea3b9c850d77e58ad8cc7c694577bcd Now more correct. modified: .travis.yml 2021-06-05: David Anderson commit ec103b9ef7f371a632d28d09be2b000540555ce1 Modified a comment. We do not test dwarfgen here, and do not intend to test it here. modified: test/Makefile.am 2021-06-05: David Anderson commit 1080fe77500eb842ed6336c4906b1d3aa370eadb modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfexample/Makefile.am modified: src/bin/dwarfgen/Makefile.am Remove subdir-options line, not needed. 2021-06-05: David Anderson commit 2caa22ffa90f1dc93eecfbde58e61103a9e75790 Remove references to missing files and fix issues where files were moved. Now make dist completes and looks fairly complete. modified: Makefile.am modified: README.md modified: doc/Makefile.am modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/globals.h modified: src/lib/libdwarf/Makefile.am modified: test/Makefile.am 2021-06-05: David Anderson commit ea9c81786863a2f0a0c6e2e1eac73eb999309b18 Vincent T helped. modified: .travis.yml These are no longer needed or used. deleted: src/bin/dwarfdump/print_reloc.c deleted: src/bin/dwarfdump/print_reloc.h deleted: src/bin/dwarfdump/print_reloc_decls.h deleted: src/bin/dwarfdump/print_reloc_test.c Belongs in test/ renamed: src/bin/dwarfdump/README.testcases -> test/README.testcases 2021-06-04: David Anderson commit 40481e87063c8f4cb0cbce420ef44f2f73933c34 Typo fixed modified: .travis.yml 2021-06-04: David Anderson commit 62702d5dd1ade413a698c6213f277a76b19577a4 Fix typo modified: .travis.yml 2021-06-04: David Anderson commit 5c03b4df27becf8e7bf127e18c1b5dd1eb92af57 Experimental, probably wrong. travis-ci new file: .travis.yml 2021-06-04: David Anderson commit d0002df8fc98ecc002b60e7476f0ffae44a0e494 Removes repeated #define of UNUSEDARG an removes a suddenly pointless header: warningcontrol.h modified: src/bin/dwarfdump/Makefile.am modified: src/bin/dwarfdump/common.c modified: src/bin/dwarfdump/dwarf_tsearchbal.c modified: src/bin/dwarfdump/globals.h deleted: src/bin/dwarfdump/warningcontrol.h modified: src/lib/libdwarf/dwarf_debuglink.c modified: src/lib/libdwarf/dwarf_elf_load_headers.c modified: src/lib/libdwarf/dwarf_peread.c modified: src/lib/libdwarf/dwarf_tsearchhash.c modified: src/lib/libdwarf/dwarfstring.c modified: test/Makefile.am modified: test/testesb.c 2021-06-04: David Anderson commit 0977bb4ae643558cedfd11e8813b2cb684ad417d Merge: b9785e4d 466eaace Merge pull request #23 from vtorri/vtorri_windows_h Vtorri windows h 2021-06-04: David Anderson commit b9785e4d1e38234e261df9a97482f0aab1c98135 Merge: aafe188d e0dccaeb Merge branch 'master' of https://github.com/davea42/libdwarf-code Merge needed due to my mistake. 2021-06-04: David Anderson commit aafe188d1b8a2d50c4bdd1d8890980f0f5c65f84 asif for windows. modified: configure.ac 2021-06-04: David Anderson commit e0dccaeb2f4b2a068d7801441c95732fc9521ea4 Merge: 5d62dbd1 3b2f73fd Merge pull request #22 from vtorri/vtorri_libtool libtool: do not check DLL libtool method on Windows 2021-06-04: David Anderson commit 5d62dbd1e09afae3ec3ce2c49c28842749a7b38f Now has the few defines from libdwarfdefs.h. modified: src/lib/libdwarf/libdwarf_private.h No longer needed. The includes of libdwarfdefs.h have been changed to include libdwarf_private.h instead. deleted: src/lib/libdwarf/libdwarfdefs.h Many c files in libdwarf. One in test. 2021-06-04: David Anderson commit a190e0ceeb3d1d966f039967818abf128168bca2 A couple botches here. Deleted local getcwd as not used. Fixed the #include nest for windows. modified: test/test_linkedtopath.c 2021-06-04: David Anderson commit fa3bd8f5febce4482f08835803d812513102f42b Fixed so reaches to libdwarf_private.h in libdwarf directory. modified: src/bin/dwarfdump/CMakeLists.txt Not needed now. deleted: src/bin/dwarfdump/libdwarf_private.h deleted: src/bin/dwarfexample/libdwarf_private.h deleted: src/bin/dwarfgen/libdwarf_private.h 2021-06-04: David Anderson commit 362dcbd7d1af02c5928f2b4f39b4917196169a42 Updated comments. modified: README.cmake modified: README.md Now cmake works to build things (the tests not yet ready in cmake) modified: src/bin/dwarfgen/CMakeLists.txt modified: src/lib/libdwarf/CMakeLists.txt 2021-06-04: David Anderson commit c49e3d929c585c99f2707fd2c6a63a21308426bf Now a build works. modified: CMakeLists.txt modified: src/bin/dwarfdump/CMakeLists.txt modified: src/bin/dwarfexample/CMakeLists.txt modified: src/bin/dwarfgen/CMakeLists.txt modified: src/lib/libdwarf/CMakeLists.txt modified: src/lib/libdwarf/dwarf_elf_access.c Testing is not yet connected modified: test/CMakeLists.txt 2021-06-04: David Anderson commit 5a010db2d076e60c23e0b547cc133eccfa40b5f7 Not functional yet. new file: test/CMakeLists.txt 2021-06-04: David Anderson commit c768b0759d26b4966b65f45c08dee99dff43dd69 Updated about current state. modified: README.md 2021-06-04: David Anderson commit 6848816d83520d6e45261cf1f17b5a8634765e08 Revised comments to make it clear these are not to be run by hand. Just run scripts/buildstandardsource.sh which runs these. modified: scripts/ddbuild.sh modified: scripts/libbuild.sh 2021-06-04: David Anderson commit 4c8041dd2d44e093688c8906e07609876d99b8e2 This file is no longer needed. deleted: scripts/fixlibdwarfelf.sh 2021-06-04: David Anderson commit 75bf35e2e3509a0ac57d35eb57845ff734a11243 Now undefs things that the scripts/buildstandardsource.sh has no need for. modified: scripts/baseconfig.h Regenerated with latest version string. modified: src/bin/dwarfdump/dwarf_names.c modified: src/bin/dwarfdump/dwarf_names.h modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/dwarf_names.h modified: src/lib/libdwarf/dwarf_names_enum.h modified: src/lib/libdwarf/dwarf_names_new.h 2021-06-04: David Anderson commit 1d89e2eb09aba68e72f22b083ae75f8d0177c533 New version. For testing scripts. modified: src/lib/libdwarf/libdwarf_version.h 2021-06-04: David Anderson commit 7b1bc661162bc589d385cbe3518eacceece242a4 A file we no longer need. deleted: scripts/FIX-CONFIGURE-TIMES 2021-06-04: David Anderson commit c71eb8b513cf4b970cce53aa72d52598451ce50a scripts/buildstandardsource.sh is now mostly working, and a couple of files we do not want are deleted. deleted: scripts/UPD.awk modified: scripts/UPDATEDWARFDUMPVERSION.sh modified: scripts/buildstandardsource.sh modified: scripts/ddbuild.sh modified: scripts/libbuild.sh modified: src/bin/dwarfdump/dwarf_names.c modified: src/bin/dwarfdump/dwarf_names.h modified: src/bin/dwarfdump/dwarfdump-af-table.h modified: src/bin/dwarfdump/dwarfdump-ta-ext-table.h modified: src/bin/dwarfdump/dwarfdump-ta-table.h modified: src/bin/dwarfdump/dwarfdump-tt-ext-table.h modified: src/bin/dwarfdump/dwarfdump-tt-table.h modified: src/lib/libdwarf/dwarf_names.c modified: src/lib/libdwarf/dwarf_names.h modified: src/lib/libdwarf/dwarf_names_enum.h modified: src/lib/libdwarf/dwarf_names_new.h deleted: src/lib/libdwarf/generated_libdwarf.h.in modified: src/lib/libdwarf/gennames.c modified: src/lib/libdwarf/libdwarf_version.h 2021-06-04: Vincent Torri commit 466eaacef3dd7157fea3e412de11d87d1f159bd5 Windows: remove useless windows.h test 2021-06-04: Vincent Torri commit 3b2f73fd686c5d3548d244eafdaaea2a7faa0a74 libtool: do not check DLL libtool method on Windows 2021-06-03: David Anderson commit ee6ea9b8b7d21412a0ee0eed41e871ad16630279 dwarfgen: dwarfgen.1 is no longer in this directory, so removed from the Makefile. modified: Makefile.am 2021-06-03: David Anderson commit 694590bab1113ec5f85b219a304852dfbdd31694 Fixed typo in trivial local header. modified: src/bin/dwarfdump/libdwarf_private.h modified: src/bin/dwarfexample/libdwarf_private.h modified: src/bin/dwarfgen/libdwarf_private.h modified: src/lib/libdwarf/libdwarf_private.h 2021-06-03: David Anderson commit 12a9371442394a4275d775985e49bdf82a259e33 Just in case dwarfgen wants to use it. new file: dwarfgen/libdwarf_private.h 2021-06-03: David Anderson commit 2ce5c5793a99445f393a563b32b9cf61ab598f36 The trivial handful of trivial lld etc format defines is public domain so anyone can use it. modified: dwarfdump/libdwarf_private.h modified: dwarfexample/libdwarf_private.h modified: ../lib/libdwarf/libdwarf_private.h 2021-06-03: David Anderson commit 38921b9d3b39eb3be8ec3e870207e2d9a4ba7c8f Now we also build dwarfexample modified: src/bin/dwarfexample/Makefile.am Does the tests and now counts each, so PASS: 12 modified: test/Makefile.am These needed #include libdwarf_private.h modified: src/bin/dwarfexample/dwdebuglink.c modified: src/bin/dwarfexample/findfuncbypc.c modified: src/bin/dwarfexample/frame1.c modified: src/bin/dwarfexample/simplereader.c Move all the test data out of dwarfexample and into test. renamed: src/bin/dwarfexample/buildingdummy.sh -> test/buildingdummy.sh renamed: src/bin/dwarfexample/debuglink.base -> test/debuglink.base renamed: src/bin/dwarfexample/debuglink2.base -> test/debuglink2.base renamed: src/bin/dwarfexample/dummyexecutable -> test/dummyexecutable renamed: src/bin/dwarfexample/dummyexecutable.c -> test/dummyexecutable.c renamed: src/bin/dwarfexample/dummyexecutable.debug -> test/dummyexecutable.debug Moved dwarfexample tests and fixed the test scripts. modified: test/runtestdd.sh renamed: src/bin/dwarfexample/runtests.sh -> test/runtestsexample.sh Fix, I hope, windows make check this way. modified: test/test_linkedtopath.c 2021-06-03: David Anderson commit 1d6044be08fde7e73edc03710768a94827c6018e Removed duplicate *dwarf.h installs. modified: src/lib/libdwarf/Makefile.am Removed space after backslash modified: test/Makefile.am 2021-06-03: David Anderson commit 4f3546bb4d3479efc52ca96bac83dc2ce968b454 Ignoring some more configure generated files modified: .gitignore 2021-06-02: David Anderson commit 0bd0793e657d3a0fa67edfe558185175cf35e0c8 Now make check works for dwarfdump and libdwarf sanity checks. modified: test/Makefile.am modified: test/runtestdd.sh modified: test/test_extra_flag_strings.c 2021-06-02: David Anderson commit 3cda50644e3b9dd985c7dcb45196faf69eae6af1 modified: src/bin/dwarfdump/Makefile.am modified: test/Makefile.am All the test code for make check etc, is moved to the test directory. Including the exe dSYM objects. This is much smaller than when in dwarfdump. Most of the checks run individually. The ones in runtestdd are hard to run without a script. renamed: src/bin/dwarfdump/runtests.sh -> test/runtestdd.sh Not used. To be removed. modified: test/runtests.sh 2021-06-02: David Anderson commit e38c53007585625a04ea262230f02b9c22f27dfa Some of the tests moved to test/ modified: Makefile.am modified: src/lib/libdwarf/Makefile.am modified: test/Makefile.am 2021-06-02: David Anderson commit 03899d475bf9aab665ad3201d0dbaffe398f12f8 Now with libdwarf.pc.in modified: configure.ac new file: libdwarf.pc.in modified: src/lib/libdwarf/Makefile.am 2021-06-02: David Anderson commit ad1506430a371bd3572d74dc8b9530cda68cedb2 moving tests from libdwarf to the test dir. 2021-06-02: David Anderson commit cc05b24fdbb08cffd7d70fdd02e2049e3cadcde1 modified: Makefile.am modified: configure.ac and also various Makefile.am to recognize moved source. And restore reading elf.h (not using libelf) which had been....broken, briefly. 2021-06-02: David Anderson commit 0ff16afe1b7083c91769aa7f66f089cbc87ee8b7 Rearranged source tree so it is src/bin/{dwarfgen,dwarfexample,dwarfdump} src/lib/libdwarf 2021-06-01: David Anderson commit d50db523746fdfaafd82a2319163f9baa1e07213 Added MAINTANERCLEANFILES rule modified: test/Makefile.am 2021-06-01: David Anderson commit 4346fd64161f24601bcb50f43b6b65e497b8e88c Forgot to add this. Its not very useful yet. new file: doc/Makefile.am 2021-06-01: David Anderson commit 3d2d1e6c92001ab61359d014dd5e949b3887853a We can build libdwarf an dwarfdump with configure. modified: Makefile.am modified: README modified: README.md deleted: ar-lib modified: configure.ac modified: lib/libdwarf/dwarf_elf_access.c modified: lib/libdwarf/dwarf_elf_defines.h modified: lib/libdwarf/dwarf_generic_init.c modified: lib/libdwarf/dwarf_original_elf_init.c modified: lib/libdwarf/pro_reloc_stream.c deleted: m4/libtool.m4 deleted: m4/ltoptions.m4 deleted: m4/ltsugar.m4 deleted: m4/ltversion.m4 deleted: m4/lt~obsolete.m4 modified: src/dwarfdump/Makefile.am modified: src/dwarfdump/command_options.c modified: src/dwarfdump/dwarfdump.c modified: src/dwarfdump/globals.h modified: src/dwarfdump/print_reloc.c 2021-06-01: David Anderson commit 457b867e8da0c9286eaeb2a93116c1a65c8de9ec Now libdwarf builds (static libdwarf.la) The libelf support in dwarf_original_elf_init.c and dwarf_elf_access.h returns ERROR now. dwarf_incl.h includes libdwarf_private.h modified: Makefile.am modified: dwarf_elf_access.h modified: dwarf_incl.h modified: dwarf_line.c modified: dwarf_original_elf_init.c modified: dwarf_print_lines.c modified: libdwarf_private.h 2021-06-01: David Anderson commit 9fbf7d1f76ba753144d5a6b6445203a2a7850988 Trying to get libdwarf to build. modified: Makefile.am modified: autogen.sh modified: configure.ac modified: lib/libdwarf/Makefile.am autotools expect the name 'test' renamed: tests/Makefile.am -> test/Makefile.am 2021-06-01: David Anderson commit 23580d2c403a384a3e6c91ee6cbcfbb8849b8b89 Now we use libdwarf_private.h for the DW_PR lines. And reference libdwarf.h (no libelf or elf.h, so simpler ) modified: Makefile.am modified: dwarf_line.c modified: dwarf_print_lines.c 2021-06-01: David Anderson commit 1131651913b37a0f94613f3abe92b451fcf72bde More accurate naming. renamed: lib/libdwarf/libdwarf_internal.h -> lib/libdwarf/libdwarf_private.h renamed: src/dwarfdump/libdwarf_internal.h -> src/dwarfdump/libdwarf_private.h renamed: src/dwarfexample/libdwarf_internal.h -> src/dwarfexample/libdwarf_private.h 2021-06-01: David Anderson commit 0e697093db642aff0cc6e93f7ee5c9a1c937e687 A placeholder to run make check new file: tests/Makefile.am 2021-06-01: David Anderson commit 26a5e23aa16d7d37de0041f05cf65a0d97b0c464 Removed the DW_PR stuff from libdwarf and put into libdwarf_internal (which is copied to dwarfdump and dwarfexample) modified: ../../lib/libdwarf/Makefile.am renamed: ../../lib/libdwarf/libdwarf.h.in -> ../../lib/libdwarf/libdwarf.h new file: ../../lib/libdwarf/libdwarf_internal.h new file: ../dwarfdump/libdwarf_internal.h new file: ../dwarfexample/libdwarf_internal.h 2021-06-01: David Anderson commit 1c4e7b94596188ef3b93ee3def39634271e78331 removing autotools-generated files. deleted: lib/libdwarf/Makefile.in deleted: src/dwarfdump/Makefile.in deleted: src/dwarfexample/Makefile.in deleted: src/dwarfgen/Makefile.in 2021-06-01: David Anderson commit 10d4ff81f520b4561a3f0e3ae0a0e2b7be01e405 Move libdwarf to lib/libdwarf 2021-06-01: David Anderson commit 631cf401eabe06f0434292f37da74325df164871 new file: autogen.sh 2021-06-01: David Anderson commit 312206de97cfe6191054d1b51e6d4cc2039b6c06 removed libelf and elf.h elf refs modified: configure.ac dwarfdump now src/dwarfdump dwarfgen now src/dwarfgen dwarfexample now src/dwarfexample 2021-06-01: David Anderson commit c02c1c2430034e639fe180fece008fb433719a58 Another autotools-generated file removed. deleted: aclocal.m4 2021-06-01: David Anderson commit f57115127daffc46b4d98322c75121d9f456f309 Removing the files autotools create and moving files to a better place. deleted: Makefile.in renamed: config.h.in.cmake -> cmake/config.h.cmake deleted: compile deleted: config.guess deleted: config.h.in deleted: config.sub deleted: configure deleted: depcomp renamed: dwarfdump/dwarfdump.1 -> doc/dwarfdump.1 renamed: dwarfgen/dwarfgen.1 -> doc/dwarfgen.1 deleted: install-sh deleted: ltmain.sh deleted: missing deleted: test-driver dadebug ending report 2021-05-31: David Anderson * CMakeLists.txt,configure.ac: version string is 0.1.0 * README mentions the new location of documentation: the doc directory, which we added just now. 2021-05-28: David Anderson * CMakeLists.txt:Version string now 20210528 * Makefile.am: Added scripts ChangeLogs for 2019, 2020. Removed scripts items that were deleted from the source (no longer needed) * Makefile.in: Regenerated. * README.md: Removes reference to deleted script, references 'make dist' instead. * configure.ac: Version 20210528 * configure: regenerated 2021-05-20: David Anderson * CMakeLists.txt, configure.ac: Now version 20210520 * configure: Regenerated. 2021-05-17: David Anderson * CMakeLists.txt: Removed test that has been irrelevant for quite a while (and had a serious misspelling too). * config.h.in.cmake: Added two missing header file checks and the associated cmakedefine lines. Removed cmakedefine NO_MINUS_C_MINUS_O as it only applies to configure (not to cmake). 2021-05-17: David Anderson * README: Removed obsolete reference to libelf source. 2021-05-14: David Anderson * bugxml/bugrecord.py, bugxml/readbugs.py: Reformatted to standard python style. 2021-05-14: David Anderson * CMakeLists.txt: Updateing version to match configure.ac and adding comment to keep these files in sync. * configure.ac: Added comment to keep the version here and in CMakeLists.txt in sync. No other change. 2021-05-12: David Anderson * CMakeLists.txt: Fixing a disastrous error removing creation of libdwarf.h from the build. The mistake was made in a commit 24 November 2020. Now ctest -R passes again, with or without libelf. 2021-03-05: David Anderson * configure.ac: Now version 20210305. * configure: Regenerated. 2021-02-14: David Anderson 2021-02-19: David Anderson * scripts/ddbuild.sh: needed a -DSKIP_AF_CHECK to allow building a helper program that emits C source for dwarfdump. 2021-02-15: David Anderson * configure.ac: Now version 20210214. * configure: Regenerated. 2021-02-14: David Anderson * scripts/ddbuild.sh: Now also builds a table for initializing standard attr/form tables for checking attr/form combinations. 2021-01-19: David Anderson * scripts/conddef.py,scripts/find_pdfpages.py, scripts/funcfinderhdr.py,scripts/funcfindermm.py, scripts/funcfindersrcs.py,scripts/haveinclude.py: All now are fairly close to following the Python PEP 8 style guide.`