cmp as on many systems multiple differences affecting
many tests will be painfully slow. Affects
tests generating text over 30MB (some individual
tests generate 3GB to 5GB of text)..
modified: scripts/run-all-tests.sh
modified: scripts/buildandreleasetest.sh
Now stops early on fail.
modified: scripts/run-all-tests.sh
New baselines due to output of Refers to:
by dwarfdump.
modified: test/testobjLE32PE.base
modified: test/testuriLE64ELf.base
used).
modified: scripts/buildandreleasetest.sh
Fixed the check for errors on running regression tests:
some time ago the final count emitted
by libdwarf-regressiontests was changed from
FAIL 0
to
FAIL count: 0
and run-all-tests.sh was not adjusted to match.
Now these match.
modified: scripts/run-all-tests.sh
and several report-formatting issues.
dwarfdump
* checkutil.c: Removed trailing whitespace.
* command_options.c:
* dwarfdump.1: Making the -C option intent
clearer.
* dwarfdump.c: Fixed trailing whitespace and indents.
* naming.c: Fixed trailing whitespace.
* print_die.c: Removed dead code. Corrected printing
if rnglists, ranges, loclists locations. Corrected
handling of the output with -k detected an error.
Ensured a couple esb_s variables get destructed
in case of error. Added explanation how the
print_attribute() code actually works.
* print_frames.c: Corrected handling location operations
when checking (-k options).
* print_llex_codes.c,print_loclists_codes.c,
print_origloclist_codes.c: Corrected handling
location data when checking (-k options).
* tag_attr_ext_list.c: Added DW_AT_MIPS_linkage_name
as a common extension on a couple TAGs.
libdwarf
* dwarf_loc.c: Corrected indents.
* dwarf_loclists.c: Corrected indents, removed
trailing whitespace.
* dwarf_peread.c: Removed trailing whitespace.
* dwarf_rnglists.c: Removed trailing whitespace.
* libdwarf2.1.mm: Rev 2.98. Added documentation
on the .debug_names section printing functions.
These intended for debugging .debug_names
(that is, by dwarfdump),
not things user code are likely to want to use.
Documented the new function
dwarf_get_rnglists_entry_fields_a() as the original
dwarf_get_rnglists_entry_fields()
(which is still there and works as well as before)
left off a field important to callers.
* libdwarf2.1.pdf: Rev 2.98. Regenerated.
modified: README
Tiny change to the script to clean up cases that
the readelfobj project data has a leftover
build in the source tree.
modified: scripts/run-all-tests.sh
* dwarf_line_table_reader_common.h: Now with dwarfstring
containers in local scopes and easily evaluated
as to lifetime and correctness.
modified: scripts/run-all-tests.sh
* run-all-tests.sh: Added echo statments to make
it clearer were we are in the run
`
modified: configure.ac Version 20191108
* Makefile.am: Added debuglink example.
Added a small executable. Added test code.
* Makefile.in: Regenerated.
* debuglink.base: Baseline output of getdebuglink.
* dummyexecutable.c: A tiny C source to create
an executable via "cc -g dummyexecutable.c"
* dummyexecutable: The output of the compile.
This is included in the distribution as a binary
testcase for getdebuglink.
* getdebuglink.c: A new example showing how one
can use libdwarf to find the external gnu
DWARF object.
* runtests.sh: Use 'make ch
modified: dwarfexample/Makefile.am
modified: dwarfexample/Makefile.in
new file: dwarfexample/debuglink.base
new file: dwarfexample/dummyexecutable
new file: dwarfexample/dummyexecutable.c
new file: dwarfexample/getdebuglink.c
new file: dwarfexample/runtests.sh
* dwarf_debuglink.c: Now if paths_returned is
a null pointer the code skips the phase of
generating a list of paths (assuming the caller
will generate a list itself).
* dwarf_errmsg_list.h: New error DW_DLE_DWARF_INIT_DBG_NULL.
* dwarf_generic_init.c,dwarf_original_elf_init: Now check
for a null pointer-to-dbg
and return error DW_DLE_DWARF_INIT_DBG_NULL
instead of segfaulting.
* libdwarf.h.in,generated_libdwarf.h.in: Add the new
error code.
* libdwarf2.1.mm: Version 2.83. Documents the allowance
of a null passed in to dwarf_gnu_debuglink instead
of a valid pointer.
* libdwarf2.1.pdf: Regenerated 2.83.
modified: libdwarf/dwarf_debuglink.c
modified: libdwarf/dwarf_errmsg_list.h
modified: libdwarf/dwarf_generic_init.c
modified: libdwarf/dwarf_original_elf_init.c
modified: libdwarf/generated_libdwarf.h.in
modified: libdwarf/libdwarf.h.in
modified: libdwarf/libdwarf2.1.mm
modified: libdwarf/libdwarf2.1.pdf
Add PASS/FAIL echo statements as final summary.
modified: scripts/run-all-tests.sh
* configure.ac: Version 20191106. separating
cxx_compiler flags from c_compiler_flags
as C does not understand -Wno-unused-private-field
and we have -Werror set at times.
* configure: Regenerated
modified: dwarfdump/Makefile.am
modified: dwarfdump/Makefile.in
modified: dwarfdump/makename.c
modified: dwarfdump/makename_test.c
modified: dwarfdump/runtests.sh
* Makefile.am: Now set env vars so make check can
get the compiler options.
* Makefile.in: Regenerated.
* makename.c,makename_test.c: Refine the ifdef around the pragma
so it only appears with windows and when
the compile is not using gcc or clang to compile.
* runtests.sh: New the new env var to get the configure time
compiler options into the tests compilations.
modified: dwarfexample/simplereader.c
* simplereader.c: It was using %llx for printf
(wrong) and is now using the DW_PR_DUx macros
as it should. Avoiding errors
when --enable-nonstandardprintf is needed.
modified: scripts/buildandreleasetest.sh
modified: scripts/run-all-tests.sh
* run-all-tests.sh,buildandreleasetest.sh: Now handle
--enable-nonstandardprintf
though that's not sufficient to let these work everywhere.
* Makefile.in: Regenerated.
* configure.ac: Removed dist-xz frm AM_INIT_AUTOMAKE
as we don't use it and MacOS command line tools
do not have xz.
* configure: Regenerated.
modified: dwarfdump/Makefile.am
* Makefile.am: Fixed a trailing blank after a backslash.
modified: scripts/buildandreleasetest.sh
modified: scripts/run-all-tests.sh
* buildandreleasetest.sh: Now handles --disable-libelf
so we can run this test successfully in more environments.
A few fixes to silly indentations.
If cmake is not available skip the cmake test.
* run-all-tests.sh: Now handles --disable-libelf
and when libelf missing avoids checks that could
not possibly pass.
* Makefile.am: A couple test files got left out of
the list of critical files, so doing dist
and then testing the result would fail 'make check'
* Makefile.in: Regenerated.
* runtests.sh: Small tweaks so 'make check'
from outside the source tree works now.
scripts
* buildandreleasetest.sh: The cmake test had misspellings
in the cmake command options.
* run-all-tests.sh: Renamed from run-bld-tests-readelfobj.sh
and with small corrections. It now works in one environment!
So all available tests run with a single command.
It requires 'standard' naming of the three sets of git files:
code, regressiontests, readelfobj and those must be
attached to the same directory (any directory).