Commit Graph

25 Commits

Author SHA1 Message Date
David Anderson
859ed5ce9a Tighten up the checking-tree array sizes and
add comments about setting those sizes.
dwarfdump/tag_attr_ext.list
dwarfdump/tag_common.h
dwarfdump/tag_tree_ext.list

Changes aid in testing.
No change in the tsearch code itself.
tsearch/config.h
tsearch/dwarf_tsearch.c
tsearch/dwarf_tsearch.h
2016-02-17 08:44:47 -08:00
David Anderson
20f65ca324 A single argument was missing its UNUSEDARG.
dwarfdump/dwarf_tsearchbal.c
tsearch/dwarf_tsearchbal.c
2016-02-07 13:42:44 -08:00
David Anderson
cd130546c1 libdwarf:
* dwarf_init_finish.c: Fix indents. remove a trailing space.
    * dwarf_tsearch.h,dwarf_tsearchhash.c: Now DW_TSHASHTYPE (if not defined
      otherwise) defines the type returned by the hash function
      used in tsearchhash.
    * pro_alloc.c: Removed trailing whitespace.

tsearch:
* RUNTEST: the script had a couple of problems (typos). Fixed.
       Added comments about running the tests.
     * dwarf_tsearch.h: Provide a default DW_TSHASHTYPE
       for tsearchhash and use DW_TSHASHTYPE.
     * dwarf_tsearchbal.c,dwarf_tsearchbin.c,dwarf_tsearchepp.c,
       dwarf_tsearchred.c: Use DW_TSHASHTYPE.
     * dwarf_tsearchhash.c: use DW_TSHASHTYPE, add UNUSEDARG use.
       Now the primes list starts at 79, not 5 (the low numbers
       were really only for basic testing). Add UNUSEDARG
       though it is defined as empty here (it is for gcc
       to suppress some warnings).
     * tsearch_tester.c: Use DW_TSHASHTYPE.  Changed one
       error message to help match with input test files.
2016-02-07 13:35:42 -08:00
David Anderson
083a2bfa1e These small changes fix compiler warnings.
tsearch/dwarf_tsearchbal.c
tsearch/dwarf_tsearchhash.c
2016-01-21 15:42:19 -08:00
David Anderson
3e442d6a40 Better compiler checking with --enable-wall..
Now all with prototypes.
Local functions now declared static.
One crucial bug in macrocheck.c in calling dwarf_twalk fixed.
dwarfdump/configure
dwarfdump/configure.in
dwarfdump/dwarf_tsearchbal.c delete unused function
dwarfdump/dwarfdump.c
dwarfdump/dwconf.c
dwarfdump/dwgetopt.c
dwarfdump/globals.h
dwarfdump/macrocheck.c
dwarfdump/naming.c
dwarfdump/print_gdbindex.c
dwarfdump/tag_attr.c
dwarfdump/tag_common.c

Better compiler checking with --enable-wall..
Now all with prototypes.
Local functions now declared static.
Some old and new functions documented in mm.
libdwarf/Makefile.in
libdwarf/configure
libdwarf/configure.in
libdwarf/dwarf_macro5.c
libdwarf/dwarf_original_elf_init.c
libdwarf/dwarf_query.c
libdwarf/dwarf_stubs.c
libdwarf/dwarf_util.c
libdwarf/dwgetopt.c
libdwarf/libdwarf.h.in
libdwarf/libdwarf2.1.mm
libdwarf/libdwarf2.1.pdf Regenerated. V 2.39
libdwarf/pro_alloc.c
libdwarf/pro_alloc.h

delete unused function.
tsearch/dwarf_tsearchbal.c

files:
2016-01-20 10:32:39 -08:00
David Anderson
02e5c1d201 Accidentally lost a pair of casts to unsigned long.
Restored these (which were for debugging, not normal use).
modified:   dwarf_tsearchbal.c
2016-01-14 14:44:04 -08:00
David Anderson
59405849da Fixed date.
ChangeLog
2016-01-14 14:35:51 -08:00
David Anderson
857d942699 New version of ChangeLog for 2016. 2016-01-14 14:35:05 -08:00
David Anderson
695767feab renamed: ChangeLog -> ChangeLog2015
Added a comment.
modified:   dwarf_tsearchbal.c

Fixed some compile warnings.
modified:   tsearch_tester.c
2016-01-14 14:33:52 -08:00
David Anderson
32e5e2998c Fixed indentation and trailing whitespace.
dwarfdump/print_die.c
dwarfdump/print_lines.c
dwarfexample/simplereader.c
tsearch/dwarf_tsearchred.c
2015-09-22 14:06:18 -07:00
David Anderson
2e645452db Update the ChangeLog for the start of 2015. 2015-01-01 11:35:18 -08:00
David Anderson
a7f7586018 Somehow was not matching the
output of dwarfdump/print_gdbindex.c.
dwarfdump2/print_gdbindex.cc

Adds dwarfgen: to messages. adds try-catch to better deal
with out-of-malloc-space.
dwarfgen/dwarfgen.cc

Adds a few instances of setting error code correctly.
libdwarf/dwarf_elf_access.c

Found a place where NULL not tested for.
Now it is, so out-of-malloc-space won't
generate instant coredump, but will
return NULL.

libdwarf/dwarf_tsearchhash.c
tsearch/dwarf_tsearchhash.c
tsearch/dwarf_tsearchred.c
2014-12-10 09:32:13 -08:00
David Anderson
0e99ce4e8e Removing accidental C99-isms.
libdwarf/dwarf_query.c
libdwarf/dwarf_tsearchhash.c
libdwarf/dwarf_util.c
tsearch/dwarf_tsearchhash.c
2014-09-10 09:52:22 -07:00
David Anderson
6caed6d274 Here we fix some warnings and get gdbindex
to print better.  And get some section names to
come out exactly right (but not all, yet).
dwarfdump/dwarfdump.1
dwarfdump/dwarfdump.c
dwarfdump/print_gdbindex.c
dwarfdump2/dwarfdump.1
dwarfdump2/dwarfdump.cc
dwarfdump2/print_debugfission.cc
dwarfdump2/print_die.cc
dwarfdump2/print_gdbindex.cc

Here we fix some warnings.
libdwarf/dwarf_alloc.c
libdwarf/dwarf_alloc.h
libdwarf/dwarf_gdbindex.c
libdwarf/dwarf_loc.c
libdwarf/dwarf_query.c
libdwarf/dwarf_sort_line.c

Here we fix some warnings.
libdwarf/dwarf_tsearchhash.c
tsearch/dwarf_tsearchhash.c

Here we fix some warnings
libdwarf/dwarf_util.c
libdwarf/libdwarf.h.in
libdwarf/pro_alloc.c
libdwarf/pro_arange.c
libdwarf/pro_forms.c
libdwarf/pro_reloc.c
libdwarf/pro_types.c
2014-08-04 13:48:31 -07:00
David Anderson
d048633516 tsearch/ESSAY.txt : Additional detail added to the Further Reading
section.
2014-02-15 09:50:33 -08:00
David Anderson
b67de29633 tsearch/ESSAY.txt : Minor fixes of avl comments. 2014-02-15 09:32:45 -08:00
David Anderson
d16248a954 tsearch/ESSAY.txt : small tweak of comments on libavl build,
which works fine as long as one just builds the C objects and
programs.
2014-02-15 09:28:07 -08:00
David Anderson
bbfe6ffb21 tsearch/ESSAY.txt
Now that I finished my own version I felt
free to look at other tree search codes.
Added comments about other tree search free code
2014-02-15 08:40:59 -08:00
David Anderson
9deb2c80eb Changed a comment in tsearch/RUNTEST
as the test cases have moved into the
libdwarf regression test repository.
2014-02-08 09:36:29 -08:00
David Anderson
3d9657f679 Removing the tsearch testcases from this source
repository, they have been moved to
the libdwarf regressiontests repository.
They are too big to be a good fit here.
2014-02-07 14:32:48 -08:00
David Anderson
9342872170 Added additional wording to tsearch/ESSAY.txt 2014-02-02 11:57:53 -08:00
David Anderson
15d4438edf Adding documentation to the tsearch uses: tsearch/ESSAY.txt 2014-02-02 11:30:12 -08:00
David Anderson
7df57b4727 Switched the tsearch testcase text to gzip to save
space as few will need to use the testcase data.
2014-02-01 08:49:50 -08:00
David Anderson
affafa89fb Removed trailing (and useless) whitespace from all the lines
containing it.  Many many files had such.
2014-01-29 15:02:07 -08:00
David Anderson
545d698072 Now using tsearch style calls with
dwarf_tsearch implementation.
Fixed a small memory curruption in dwarfdump2/print_pubnames.cc
Added tsearch directory with various sorts of tree searches
(all written from scratch, not copied from anywhere).
2014-01-29 11:41:39 -08:00