Commit Graph

374 Commits

Author SHA1 Message Date
David Anderson
ce489a2fab Moves a local variable definition in dwarf_form.c so
the code will compile with c90 (we do not require c99).
2011-09-02 15:15:09 -07:00
David Anderson
6d0eafd1a6 When building shared libdwarf (libdwarf.so) the compile flags
CFLAGS get -fPIC added.
2011-09-02 15:05:26 -07:00
David Anderson
a32a29a3ef Updating libdwarf_dwarf_loc.c by testing for incorrectly-ended
expression block.  Update dwarfdump version strings.
2011-09-02 14:30:57 -07:00
David Anderson
98307d518c libdwarf now implements a new dwarf_producer_init_c() interface
and its callback function.   It is documented in libdwarf/libdwarf2p.1.mm.
Date stamps are updated in both dwarfdumps even though there was no
reader code change.
2011-06-12 17:20:07 -07:00
David Anderson
f08fb9ccca dwarf_form.c: Code getting access to CU context and
dbg was repeated many times. Refactored the common
       code into a file-static subprogram.
2011-06-09 07:50:43 -07:00
David Anderson
077491b98c Updated ChangeLog on libdwarf2.1.mm and .pdf 2011-06-08 16:24:55 -07:00
David Anderson
029412d16f libdwarf2.1.mm libdwarf2.1.pdf (rev 1.96) discuss dwarf_loclist_n()
in the context of DW_AT_data_member_location.
2011-06-08 16:22:01 -07:00
David Anderson
284da77cd2 Compiler warned that a function was not declared.
Forgot to include dwarf_harmless.h in dwarf_init_finish.c
2011-06-08 15:27:08 -07:00
David Anderson
5e44285cbf 2011-06-07 DavidAnderson <davea42@earthlink.net>
* dwarfdump.c: Refactor setting of do_print_dwarf
        and do_check_dwarf into a function. Ensure that one of
        the refactored new functions is called in every case
        an option requires such call. Ensured indents ok.
      * print_lines.c (print_line_numbers_this_cu): When not checking
        added a check to insure we don't try to call a
        checking-related function.
libdwarf
2011-06-07  DavidAnderson <davea42@earthlink.net>
     * dwarf_elf_access.c: Added EM_QUALCOMM_DSP6
       machine so that relocations work on a
       Qualcomm relocatable object in the dwarf regressiontests.
     * dwarf_util.c: Fixed indent problems added in previous
       change.
2011-06-07 18:05:14 -07:00
David Anderson
9dc61e7690 2011-06-07 DavidAnderson <davea42@earthlink.net>
* dwarf_util.c(_dwarf_get_abbrev_for_code): If there is no
       section padding the code could read-from-memory
       one past the end of the section
       which could (in very rare circumstances) coredump
       an application. In addition, earlier in the same funcion
       we did not account for the case where we had already read to
       end of section. Both fixed.
2011-06-07 14:43:22 -07:00
David Anderson
418db867d6 Minot tweak to CODINGSTYLE 2011-06-07 10:12:37 -07:00
David Anderson
70f195c977 Added CODINGSTYLE document. 2011-06-07 10:11:08 -07:00
David Anderson
93d416e4e0 dwarfdump/dwarfdump.c dwarfdump2/dwarfdump.cc
now handle DW_AT_data_member_location instead of erroring off.
Added a new query function into libdwarf.h and dwarf_query.c
and documented the function in libdwarf/libdwarf2.1.mm and regenerated
libdwarf/libdwarf2.1.pdf
2011-06-06 14:45:03 -07:00
David Anderson
db3833f2d5 * NEWS: Mention the non-elf documentation oversight.
* dwarf_arange.c,dwarf_elf_access.c, dwarf_frame3.c,
       dwarf_funcs.c,dwarf_global.c,dwarf_init_finish.c,
       dwarf_line.c,dwarf_loc.c,dwarf_macro.c,dwarf_print_lines.c,
       dwarf_pubtypes.c,dwarf_query.c,dwarf_ranges.c,dwarf_string.c,
       dwarf_types.c,dwarf_vars.c, dwarf_weaks.c: Everything loading
       a section now checks the result for 'empty' and returns
       DW_DLV_NO_ENTRY explicitly.  This makes it easier to
       do nothing safely when there is no data.
2011-06-04 16:03:48 -07:00
David Anderson
4f301a1f49 Previous libdwarf/ChangeLog content was wrong. Fixed. 2011-06-04 14:03:54 -07:00
David Anderson
3f9cd88574 libdwarf/dwarf_line.c (_dwarf_internal_srclines): Created new local functions
to unify some repeated code in into function calls.  One of the
       earlier inline-repetitions was coded wrong.  Added {} to ensure clarity
       on the intended scope a couple places. Added initializers to
       a couple of local variables.
2011-06-04 14:01:39 -07:00
David Anderson
f8c42653e4 Forgot changelog for pro_line.h change,
__x86_64 also now gets MIN_INST_LENGTH 1
2011-06-04 10:49:58 -07:00
David Anderson
20b1f86280 Records the changes in ChangeLog (see previous commit). 2011-06-04 10:42:07 -07:00
David Anderson
02b5816fd1 libdwarf/dwarf_alloc.c dwarf_form.c dwarf_frame.c dwarf_frame2.c
dwarf_line.c dwarf_print_lines.c  all had minor issues
that -Wall found (none of them correctness issues).
2011-06-04 10:39:42 -07:00
David Anderson
877f645b37 Now UPDATEDWARFDUMPVERSION.sh fixes all version strings.
Fixed a tiny bug in libdwarf/pro_error.c (that you probably
never encountered or noticed).  Updated 2 lines in
libdwarf/dwarf_frame.c that were indented badly.
2011-04-23 09:21:08 -07:00
David Anderson
711c78abe1 In libdwarf/pro_line.h
becomes
for the obvious reason: min instruction length is 1 for x86_64 too.
2011-04-23 08:09:38 -07:00
David Anderson
a3eb288589 All the files changed, a massive correction to inconsistent
indentation.  No interfaces changed.  One new and
not very significant (to most people) interface added which
returns a count of abbreviations in an abbreviation section.
Copyrights updated for 2011.
2011-03-29 13:31:47 -07:00
David Anderson
052474a336 These are small changes for DWARF4 and for Makefile cleanup
lines in 'clean' and 'distclean' .  And to match the newest
line formats (uri format) for file names from the line section.
2011-03-19 12:00:52 -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