Commit Graph

10 Commits

Author SHA1 Message Date
David Anderson
08efeebcf3 Remove the unneccessary typedef for 'string'
and just use char*.

Ensure the getopt tests still work.

modified:   dwarfdump/dwarfdump.c
modified:   dwarfdump/dwgetopt.c
modified:   dwarfdump/esb.c
modified:   dwarfdump/esb.h
modified:   dwarfdump/getopttest.c
modified:   dwarfdump/globals.h
modified:   dwarfdump/print_die.c
modified:   dwarfdump/print_frames.c
modified:   dwarfdump/print_lines.c
modified:   dwarfdump/print_strings.c
modified:   dwarfdump/tag_attr.c
modified:   dwarfdump/tag_tree.c

Fixing errnumber->string array and arranging
that we test it during build.

modified:   libdwarf/Makefile.in
renamed:    libdwarf/dwarf_error.c -> libdwarf/dwarf_errmsg_list.c
modified:   libdwarf/dwarf_error.c
2016-04-25 13:01:30 -07:00
Carlos Alberto Enciso
78003aa6c7 Printing using the 'esb' module was broken. It seems to work
because the default internal buffer size (240), was big enough
    to receive the resulting output.

    esb.c, esb.h:
        * Missing prefix 'esb' for 'allocate_more'
        * Initial buffer size reduced to 16.
        * New function 'esb_open_null_device': open 'null' device
        * New function 'esb_close_null_device': close 'null' device
        * New function 'esb_allocate_more_if_needed': allocate more
          space if required, leaving the contents unchanged, so the
          caller, does not need to worry about it.
          There are 2 cases:
          Windows: use the 'null' device to get the required space
          UNIX: use a big buffer (512). But if the result is bigger,
          the original problem will be shown.
        * The function 'esb_append_printf_ap', now takes care of
          increasing the buffer if needed.

     dwarfdump.c: In the case of windows, open and close the 'null'
         device, in order to setup the esb module.
2016-04-21 13:44:38 +01:00
David Anderson
9565964f26 Remove ;; where it was just an accident.
Make header reading idempotent with ifndef/define
dwarfdump/dwarfdump.c
dwarfdump/esb.c  (avoid doing append of empty string).
dwarfdump/esb.h
dwarfdump/globals.h
dwarfdump/naming.h
dwarfdump/print_frames.c
dwarfdump/print_lines.c

Ensure declarations first in a block (avoid C99 isms).
libdwarf/dwarf_form.c
libdwarf/dwarf_frame2.c (check for too-short section)
libdwarf/dwarf_loc.c
libdwarf/dwarf_macro5.c
libdwarf/dwarf_query.c
libdwarf/dwarf_util.c
2016-01-19 16:25:30 -08:00
David Anderson
0d603ac5d3 Removed obsolete incorrect SGI address and web site from copyrights
in libdwarf .h files.
2015-01-31 09:20:42 -08:00
David Anderson
68ee12715f use of va_list requires stdarg.h, but that was not
everywhere it needed to be.
By accident, GNU libc hid that omission.
Also removed a couple unused variables and some
trailing whitespace.
2015-01-15 16:15:45 -08:00
David Anderson
71cd071eb2 Now the new dwarfdump checking options work. 2015-01-08 13:09:21 -08:00
Carlos Alberto Enciso
87dd1d943c 1) Allow 'bad_line_input' to receive variable number of arguments
2) Extended the functionality of 'esb_append_printf' to handle a pointer
   to the variable arguments.
2014-09-10 09:45:20 +01: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
7647aaeca8 Everything changed. New indentation. Many new DWARF correctness
tests.  New options.   Error summaries reported by compiler name.
2011-03-29 13:43:05 -07:00
David Anderson
637442ea0b Initial commit. Content is the libdwarf-20110113.tar.gz
last-released-libdwarf and dwarfdump.
2011-03-19 11:38:11 -07:00