Debian Codegraph @

src/lib/libdwarf/ChangeLog2016

raw
1 2016-12-25 David Anderson
2 * dwarf.h: DWARF5 changed DW_FORM_ref_sup to DW_FORM_ref_sup4
3 and added DW_FORM_ref_sup8.
4 2016-12-20 David Anderson
5 * libdwarfdefs.h: Removed definition of SHF_COMPRESSED.
6 There was no reason to define it early in a local header file.
7 * dwarf_init_finish.c: Added definition of SHF_COMPRESSED.
8 Making it a late definition avoids a conflict with Centos-7.3.
9 2016-12-06 David Anderson
10 * dwarf.h: Comments mention certain values unused in
11 DWARF2 and later as being from DWARF1.
12 2016-11-24 David Anderson
13 * libdwarf/gennames.c: Update version string.
14 2016-11-24 David Anderson
15 * Makefile.in: Clean *~
16 2016-11-16 David Anderson
17 * dwarf_die_deliv.c(dwarf_child): Added a check for 'at end of DIEs',
18 removed pointless parens in returns, and added {} to make an if()
19 follow normal form.
20 * dwarf_query.c: Removed pointless parens in return.
21 * dwarf_util.c(_dwarf_get_size_of_val): Changed return 0
22 to return DW_DLV_OK so it reads as is supposed to.
23 For DW_FORM_block1 check a pointer for validity before
24 dereferencing. In _dwarf_check_string_valid() added
25 comments clarifying the intent of the function.
26 2016-11-11 David Anderson
27 * dwarf_init_finish.c: Remove a few bytes of trailing whitespace.
28 * dwarf_leb.c(_dwarf_decode_s_leb128_chk): Now we avoid
29 using code with undefined behavior. And add new test cases
30 in the #ifdef TESTING code that shows the problem is fixed.
31 2016-11-04 David Anderson
32 * libdwarf.h.in: Removed trailing whitespace, three places.
33 Added DW_DLE_ZLIB_UNCOMPRESS_ERROR.
34 * dwarf_arange.c(dwarf_get_aranges_list): Add checks for the sanity
35 of aranges headers and values to catch corrupted dwarf..
36 * dwarf_errmsg_list.c: Add DW_DLE_ZLIB_UNCOMPRESS_ERROR to
37 identify impossible zlib compression.
38 * dwarf_form.c:(dwarf_formblock): Check for overrun of
39 a section-end. Return witw DW_DLE_FORM_BLOCK_LENGTH_ERROR as
40 the error when such corrupt dwarf is encountered.
41 * dwarf_init_finish.c(do_decompress_zlib): Check for corrupted
42 zlib compression information and set DW_DLE_ZLIB_UNCOMPRESS_ERROR
43 when a corrupted expanded-length is found.
44 * dwarf_macro5.c(_dwarf_skim_forms): For DW_FORM_STRING call
45 _dwarf_check_string_valid() to ensure a string does not
46 run off the end of a malloc block.
47 * dwarf_util.c(_dwarf_check_string_valid): Remove and add
48 a blank line to get the usual way functions begin with
49 declarations, a blank line, then code. No change in logic.
50 2016-11-01 David Anderson
51 * dwarf.h: Adding Ada GNAT gcc attributes DW_AT_GNU_numerator,
52 DW_AT_GNU_denominator, DW_AT_GNU_bias.
53 2016-10-21 David Anderson
54 * gennames.c: Update version string.
55 2016-10-15 David Anderson
56 * libdwarf.h.in: Added DWARF5 values
57 to enum Dwarf_Form_Class.
58 * dwarf_query.c(dwarf_get_form_class): Added DWARF5 support.
59 2016-10-11 David Anderson
60 * pro_forms.c, pro_section.c: Restoring DW_AT_MIPS_linkage_name
61 and DW_AT_MIPS_abstract_name (lost by accident in July 2007)
62 and adding DW_AT_linkage_name (DWARF5, but usable in
63 earlier DWARF versions if you wish to use it).
64 2016-10-07 David Anderson
65 * libdwarf2p.1.mm: Improved the documentation of
66 dwarf_pro_set_default_string_form().
67 * libdwarf2p.1.pdf: Version 1.46. Regenerated.
68 * pro_die.c: Now the code allows modification
69 of the start of real strings in .debug_str easily.
70 Was a bit brittle before, allowed offset of 1 to work
71 but not zero.
72 * pro_opaque.h: Add dse_has_table_offset member to
73 eliminate brittleness in the logic for .debug_str.
74 * pro_init.c: Use dse_has_table_offset member to
75 eliminate brittleness in the logic for .debug_str.
76 2016-10-04 David Anderson
77 * dwarf_elf_access.c: Remove trailing whitespace.
78 * dwarf_form.c: Fix an indent.
79 * dwarf_init_finish.c: Comment the #if 0 so it is clear
80 these are for debugging only.
81 * dwarf_leb.c: Remove trailing whitespace.
82 * dwarf_line.c: Remove unused #if 0/#endif code.
83 * dwarf_macro5.c: Remove some obsolete #if 0 code.
84 Comment the remaining #if 0 so it is clear
85 these are for debugging only.
86 Remove trailing whitespace.
87 * dwarf_util.h: Delete obsolete #if 0 macro.
88 * dwgetopt.c: Comment the #if 0 so it is clear
89 these are for debugging only.
90 * pro_frame.h: Delete never-used #if 0 macro.
91 2016-10-04 David Anderson
92 * dwarf_util.c(_dwarf_check_string_valid):
93 removed accidental test code.
94 2016-10-04 David Anderson
95 * dwarf_leb.c: The 'make tests' test code had some
96 warnings, which are now fixed.
97 * libdwarf.h.in: Adding error codes.
98 * dwarf_util.c(_dwarf_check_string_valid): Uses passed-in error
99 code in case pointer out of bounds.
100 _dwarf_get_size_of_val now calls _dwarf_check_string_valid()
101 on a DW_FORM_string.
102 * dwarf_util.h: _dwarf_check_string_valid() interface changed.
103 * dwarf_errmsg_list.c: Adding error codes.
104 * dwarf_form.c, dwarf_frame2.c, dwarf_global.c,
105 dwarf_line.c, dwarf_line_table_reader_common.c,
106 dwarf_macro.c, dwarf_macro5.c, dwarf_string.c:
107 Using the new _dwarf_check_string_valid interface and
108 new error codes.
109 * dwarf_elf_access.c: Added commentary about a libelf call
110 and possible outcomes.
111 2016-10-03 David Anderson
112 * Makefile.in: Now run tests at build time to ensure DW_DLE macros correct.
113 * dwarf_errmsg_list.c: Add new error code and add test code to verify
114 DW_DLE_ macros specified correctly.
115 * dwarf_sort_line.c: While this file is not used, for consistency
116 it uses the checking macros so deleting the non-checking ones
117 would not look odd.
118 * dwarf_util.c: Add a check for running off end of abbreviation data
119 at a spot that was missed till now.
120 * dwarf_util.h: Delete unused non-checking DECODE_LEB128_UWORD and
121 DECODE_LEB128_SWORD and SKIP_LEB128_WORD macros.
122 * libdwarf.h.in: Add DW_DLE_ABBREV_OFF_END and correct
123 the numbering (again). Now critical parts
124 are checked at build time.
125 2016-09-30 David Anderson
126 * dwarf_leb.c: One comparison was accidentally
127 signed vs unsigned. Now both unsigned.
128 2016-09-30 David Anderson
129 * Makefile.in: Ensure test executable removed by make clean.
130 2016-09-30 David Anderson
131 * dwarf_leb.c: Fix decode and encode leb to avoid
132 runtime warning from left-shift signed value,
133 we got into undefined behavior.
134 Add test code used by 'make tests'.
135 * Makefile.in: Add leb testing to 'make tests'
136 * configure.in: Add additional -fsanitize tests.
137 * configure: Regenerated.
138 2016-09-28 David Anderson
139 * dwarf_opaque.h: New interface for
140 _dwarf_extract_string_offset_via_str_offsets().
141 Remove duplicate declaration of the function.
142 * dwarf_form.c(_dwarf_extract_string_offset_via_str_offsets):
143 Had a test for end of section
144 on what was sometimes the wrong section.
145 Now section end passed in and correct.
146 Depending on circumstances such
147 as where elf data was in memory, the
148 result was a single regression test would
149 get a DW_DLE_LEB_IMPROPER
150 error ... or not get it.
151 * dwarf_macro5.c: A test for DW_DLV_OK was testing the
152 wrong local variable.
153 2016-09-28 David Anderson
154 * dwarf_errmsg_list.c: Added error codes for
155 duplicated DWARF5 .debug_loclists and .debug_rnglists
156 sections.
157 * dwarf_init_finish.c: Adds incomplete support for
158 DWARF5 .debug_names.c, .debug_loclists, and .debug_rnglists
159 Adds dwarf_get_section_max_offsets_d() to return all the possible
160 DWARF section sizes across all DWARF2..5
161 * dwarf_line_table_reader_common.c: DW_LNCT renamed as
162 DW_LNCT_GNU as the DWARF5 standard has some differences
163 from the experimental version (no named)DW_LNCT_GNU.
164 * dwarf_loc2.c: Renames DW_LLE to DW_LLEX as these are
165 the non-standard experimental version (not the same
166 as the DWARF5 standard).
167 * dwarf_opaque.h: Updated version number comments.
168 Added new section support data in Dwarf_Debug_s.
169 * dwarf_ranges.c(dwarf_get_ranges_a): deleted unused local variable.
170 * libdwarf.h.in: New error codes. Declaration for
171 dwarf_get_section_max_offsets_d() added.
172 Now has all the DWARF5 dwarf_get_*_name() function declarations too.
173 * dwarf_error.h: Deleted two unwanted blank lines.
174 2016-09-28 David Anderson
175 * gennames.c: Now the comparison function to qsort
176 guarantees a stable sort by also referencing the
177 original array location (a new data item
178 in the struct). Needed for consistent
179 output.
180 2016-09-28 David Anderson
181 * dwarf_alloc.c: Special function
182 _dwarf_special_no_dbg_error_malloc() was failing
183 to return a value. Serious bug. Now it returns
184 a value.
185 2016-09-27 David Anderson
186 * dwarf.h: The previous experimental DW_LLE_
187 non-standard names are renamed as DW_LLEX_
188 temporarily. Do not use the LLEX names.
189 2016-09-27 David Anderson
190 * dwarf.h: Added commentary about DW_children_yes[no] which
191 are non-standard. Use DW_CHILDREN_yes[no] instead.
192 2016-09-27 David Anderson
193 * dwarf.h: Update with the probably-final DWARF5
194 tags, attributes, etc.
195 2016-09-26 David Anderson
196 * dwarf_query.c: Removed four lines of code associated with
197 DWARF5 DW_MACRO_define_strx that
198 should not have existed.
199 There are as yet no testcases using strx, though
200 one fuzzed testcase (liu/NULLdereference0519.elf)
201 made it appear such was in use.
202 2016-09-25 David Anderson
203 * dwarf_opaque.h: Accidentally had a function pointer
204 definition _dwarf_get_elf_flags_func_ptr but now has a
205 typedef of _dwarf_get_elf_flags_func_ptr_type instead.
206 * dwarf_init_finish.c: Add definition of _dwarf_get_elf_flags_func.
207 2016-09-23 David Anderson
208 * gennames.c: gennames -t generated incorrect tables.
209 gcc -fsanitize=address noticed out of bounds references
210 in the generated code. The code has been wrong for quite a while.
211 It's likely no one was using the table form, gennames -s
212 is generally better to use anyway.
213 * pro_frame.c: Was using strdup() and now uses _dwarf_p_get_alloc()
214 and strcpy() so we do not leak a string.
215 2016-09-22 David Anderson
216 * dwarf_abbrev.c: Was calling _dwarf_error() with NULL dbg
217 when a real dbg was available. fixed.
218 * dwarf_alloc.c: Was testing for the static DW_DLA_ERROR
219 too late in dwarf_dealloc(). So the address sanitizer reported the
220 erroneous address calculation that resulted.
221 * dwarf_error.c,dwarf_error.h: Now DE_STANDARD,DE_STATIC,DE_MALLOC
222 let dwarf_dealloc free up Dwarf_Error resources properly.
223 2016-09-22 David Anderson
224 * dwarf_ranges.c: dwarf_get_ranges_a() was allocating at the wrong
225 place and not freeing all it should.
226 2016-09-21 David Anderson
227 * dwarf_errmsg_list.c,libdwarf.h.in: Added DW_DLE_LINE_TABLE_BAD.
228 * dwarf_line_table_reader_common.c: Added tests to prevent running
229 off end of line table. Second commit is fix 3 line indent error.
230 2016-09-21 David Anderson
231 * configure.in: Support --enable-sanitize
232 * configure: Regenerated.
233 * dwarf_alloc.c: Rearrange DW_DLA_STRING check to avoid
234 calculating and using an address that may not exist.
235 And check earlier for a NULL dbg.
236 * dwarf_die_deliv.c: Add offset and length checks to catch
237 corrupt dwarf.
238 * dwarf_errmsg_list.c: Add DW_DLE_LOCLIST_OFFSET_BAD error code.
239 * dwarf_form.c: Delete three completely blank lines for
240 consistency in formatting..
241 * dwarf_loc.c: Add offset and length checks to catch
242 corrupt dwarf. Correct the initialization of loc_section_end
243 in _dwarf_read_loc_section().
244 * dwarf_ranges.c: Add free() in two places to avoid
245 memory leak.
246 * dwarf_util.c: Add length error checks for DW_FORM_block* .
247 Correct initialization of end_abbrev_ptr in
248 _dwarf_get_abbrev_for_code().
249 * libdwarf.h.in: Add DW_DLE_LOCLIST_OFFSET_BAD.
250 2016-09-17 David Anderson
251 * libdwarf.h.in: Added error code DW_DLE_SIBLING_LIST_IMPROPER.
252 * dwarf_errmsg_list.c: Added DW_DLE_SIBLING_LIST_IMPROPER.
253 * dwarf_die_deliv.c: Vulnerability DW201609-001.
254 Added a check to catch invalid DWARF instead of
255 reading a byte inappropriately (that might not even
256 be addressable).
257 The error code generated is DW_DLE_SIBLING_LIST_IMPROPER.
258 2016-09-15 David Anderson
259 * configure.in: Add check for unistd.h .
260 * configure: Regenerated.
261 * gennames.c: Add HAVE_UNISTD_H check for the include
262 of unistd.h.
263 2016-09-15 David Anderson
264 * dwarf_elf_access.c: Depends on libelf.h, so if libelf.h
265 is missing (as shown in the generated config.h)
266 the compile stops with an error.
267 2016-09-15 David Anderson
268 * libdwarf.h.in: New interface functions
269 dwarf_producer_finish_a() and
270 dwarf_add_die_to_debug_a()
271 declared, providing libdwarf-standard
272 int return value.
273 * libdwarf2p.1.mm: Document dwarf_producer_finish_a()
274 and dwarf_add_die_to_debug_a().
275 * libdwarf2p.1.pdf: Regenerated. Rev 1.45.
276 * pro_init.c: Remove use of C99 type uint32_t
277 and use DW_TSHASHTYPE instead.
278 * pro_finish.c: Implement dwarf_producer_finish_a().
279 * pro_die.c: Implement dwarf_add_die_to_debug_a().
280 2016-09-14 David Anderson
281 * dwarf_dsc.h: Removed accidental typedef redeclaration
282 of Dwarf_Dsc_Head: it is already in libdwarf.h and
283 FreeBSD compiler complained.
284 * pro_section.c: Removed trailing whitespace from three lines.
285 Fixed indentation on one line.
286 2016-09-13 David Anderson
287 * pro_section.c: new interface dwarf_get_section_bytes_a().
288 * libdwarf.h.in: Declaration for dwarf_get_section_bytes_a() added.
289 * libdwarf2p.1.mm: Document dwarf_get_section_bytes_a().
290 * libdwarf2p.1.pdf: Regenerated. Rev 1.44.
291 2016-09-12 David Anderson
292 * libdwarf.h.in: Declaring dwarf_new_die_a()
293 and dwarf_die_link_a().
294 Renamed yesterday's new function dwarf_transform_to_disk_form_b() to
295 dwarf_transform_to_disk_form_a() for consistency
296 with the new dwarf_new_die_a().
297 * pro_die.c: Implementing dwarf_new_die_a()
298 and dwarf_die_link_a() with easier to use
299 error handling than dwarf_new_die()
300 and dwarf_die_link().
301 * libdwarf2p.1.mm: Document the new and renamed *_a() functions.
302 * libdwarf2p.1.pdf: Regenerated. Rev 1.43.
303 2016-09-11 David Anderson
304 * dwarf_errmsg_list.c: Adding DW_DLE_LEB_OUT_ERROR.
305 * libdwarf.h.in: Adding DW_DLE_LEB_OUT_ERROR
306 and dwarf_transform_to_disk_form_b(), first steps
307 to making type-safe producer functions.
308 * libdwarf2p.1.mm: Document dwarf_transform_to_disk_form_b().
309 * libdwarf2p.1.pdf: Rev 1.42.
310 * pro_arange.c: Altered internal interface to _dwarf_transform_arange_to_disk().
311 * pro_die.c: Altered internal error return to use DW_DLV_ERROR.
312 * pro_macinfo.c,pro_macinfo.h: Altered internal interface to
313 _dwarf_pro_transform_macro_info_to_disk().
314 * pro_section.c: Implemented dwarf_transform_to_disk_form_b() and
315 changed internals to use DW_DLV_OK/DW_DLV_ERROR.
316 Many places where errors were ignored now have checks for error.
317 * pro_section.h: Added GET_CHUNK_ERR to return DW_DLV_ERROR
318 on error. Altered internal function _dwarf_transform_arange_to_disk()
319 and _dwarf_transform_simplename_to_disk()
320 to the newer interface.
321 * pro_types.h: Internal declaration of _dwarf_transform_simplename_to_disk()
322 now uses the new interface.
323 2016-09-11 David Anderson
324 * dwarf_dsc.c: Set the internal flag so we do not redo the
325 leb decoding over and over.
326 2016-09-08 David Anderson
327 * Makefile.in: Add dwarf_dsc.c to the build to access
328 DW_AT_discr_list attributes.
329 * dwarf.h: Added comment that DW_AT_discr_list is DWARF2.
330 * dwarf_alloc.c, dwarf_alloc.h: Added DW_DLA_DSC_HEAD support.
331 * dwarf_dsc.c: Implement the new discriminant list
332 functions.
333 * dwarf_dsc.h: Internal discriminant types.
334 * libdwarf.h.in: A new opaque type and new functions
335 dwarf_discr_list etc.
336 * dwarf_errmsg_list.c: New error code for
337 discriminants: DW_DLE_DISCR_ARRAY_ERROR.
338 * checkexample.c: Added a new example. for dwarf_descr_list().
339 2016-09-01 David Anderson
340 * libdwarf2.1.mm: Improved the wording for dwarf_diename()
341 and dwarf_die_text().
342 * libdwarf2.1.pdf: Regenerated as Version 2.51.
343 2016-08-28 David Anderson
344 * libdwarf.h.in: Added dwarf_pro_get_string_stats() for producer
345 library users to know how libdwarf handled DW_AT_name etc.
346 * pro_die.c: Corrected the tsearch-related compare/hash functions
347 to work correctly.
348 * pro_finish.c: Implements dwarf_pro_get_string_stats().
349 * pro_init.c: Hash function for tsearch implemented correctly now.
350 * pro_opaque.h: Changed the hash data structure so it can work
351 correctly. Added the statistics struct to the Dwarf_P_Debug
352 structure.
353 * libdwarf2p.1.mm: Documents dwarf_pro_get_string_stats().
354 * libdwarf2p.1.pdf: Revision 1.41. Regenerated.
355 2016-08-27 David Anderson
356 * pro_section.c, pro_reloc_stream.c: In a couple of places names were
357 shadowing other names. Fixed. No change in functionality.
358 2016-08-25 David Anderson
359 * libdwarf.h.in: Added new error code relating to DW_FORM_strp
360 relocations.
361 * dwarf_errmsg_list.c: Added DW_DLE_DEBUGSTR_UNEXPECTED_REL string.
362 * pro_die.c: Added a comment related to DW_FORM_strp.
363 * pro_opaque.h: Added/modified commentary.
364 * pro_section.c: Now sets the correct section symbol for
365 relocations for strings in .debug_str.
366 * pro_reloc.c: Added commentary, deleted blank lines.
367 * pro_reloc_stream.c: Moved declarations to inner
368 contexts where possible. Refined looping for clarity.
369 2016-08-23 David Anderson
370 * libdwarf2p.1.mm: Document dwarf_pro_set_default_string_form.
371 * libdwarf2p.1.pdf: Regenerated. Rev 1.40.
372 2016-08-23 David Anderson
373 * dwarf_alloc.c,dwarf_frame.c: Remove trailing whitespace.
374 * dwarf_errmsg_list.c: Has four new error codes to deal
375 with emitting .debug_str from the producer.
376 * gennames.c: Added 'static' to a static function to
377 avoid compiler warnings.
378 * libdwarf.h.in: Four new error codes.
379 A new producer function: dwarf_pro_set_default_string_form() which
380 causes debug_info strings to be emitted in .debug_str where
381 that seems like it might save space.
382 * pro_alloc.c: A new debug_str producer string
383 hashtab free helper function to clean up the .debug_str
384 hash table..
385 * pro_die.c: Now calls a single function to emit strings and
386 can emit in either .debug_info or .debug_str.
387 * pro_die.h: Declares _dwarf_pro_set_string_attr() now.
388 * pro_forms.c: Some local variables are always initialized now
389 at declaration point. Now uses common code to set up strings.
390 * pro_init.c: Initializes debug_str hash table for strings
391 And sets up the section properly. Defines the hashfunc.
392 * pro_opaque.h: Fixes some spacing awkwardness. Adds
393 .debug_str hash data and eliminates unused data.
394 * pro_section.c: Now emits .debug_str when such is
395 wanted.
396 2016-06-13 David Anderson
397 * dwarf_alloc.c: Dwarf_Fde_s now has a destructor.
398 * dwarf_frame.c,dwarf_frame.h: Now dwarf_get_fde_info_for_reg3 memoizes
399 frame data making one pattern of use (from dwarfdump)
400 much much faster.
401 2016-06-13 David Anderson
402 * dwarf_frame.c: Revised some local assignments so
403 we are sure the same value used as intended.
404 Added some {} on if for consistency with libdwarf use.
405 * gennames.c: Update version string.
406 2016-06-12 David Anderson
407 * libdwarf/gennames.c: Update version string.
408 2016-06-12 David Anderson
409 * dwarf_frame.c: Adding dwarf_get_fde_info_for_cfa_reg3_b()
410 which lets dwarfdump print frame data a bit more quickly.
411 It is unclear whether other applications will find this
412 new interface to be of value.
413 * dwarf_frame.h,dwarf_frame3.c: Internal interfaces changed slightly
414 to allow the new function to work.
415 * libdwarf.h.in: Added dwarf_get_fde_info_for_cfa_reg3_b()
416 declaration.
417 * libdwarf2.1.mm: Documents dwarf_get_fde_info_for_cfa_reg3_b().
418 Rev.2.50
419 * libdwarf2.1.pdf: Regenerated.
420 2016-06-08 David Anderson
421 * dwarf_init_finish.c, dwarf_line_table_reader_common.c: Remove
422 trailing whitespace. Fix one indent.
423 2016-06-08 David Anderson
424 * gennames.c: Update version string.
425 2016-06-07 David Anderson
426 * Makefile.in: Use $(SONAME) rather than libdwarf.so.1 whereever
427 possible.
428 2016-06-01 David Anderson
429 * Makefile.in: Tweaks for debian build compatibility.
430 * gennames.c: Use DW_VERSION_DATE_STR instead of __DATE__ __TIME__
431 2016-05-23 David Anderson
432 * dwarf_errmsg_list.c, libdwarf.h.in: Added
433 DW_DLE_COMPRESSED_EMPTY_SECTION.
434 * dwarf_init_finish.c: If load_section gets
435 DW_DLV_NO_ENTRY just return that.
436 If requres-decompress but has no data call it
437 a corrupt Elf section (given what sections
438 libdwarf is interested in).
439 * dwarf_line_table_reader_common.c: Only
440 deal with line table format entries if the
441 count is > 0.
442 2016-05-23 David Anderson
443 * Makefile.in: add SONAME libdwarf.so.1 to dynamic section when
444 building shared libdwarf.so
445 We have not made an incompatible interface change since
446 May 19, 2014 (and that was to the producer code not to
447 what DWARF readers use).
448 2016-05-22 David Anderson
449 * libdwarf.h.in, dwarf_errmsg_list.c: Adding
450 DW_DLE_DIRECTORY_FORMAT_COUNT_VS_DIRECTORIES_MISMATCH error code.
451 Fixed unsigned/signed comparison warning in the table test code.
452 * dwarf_line.c: If we find a null pointer from include directores
453 we substitute "<erroneous NULL include dir pointer>" for the
454 reader.
455 * dwarf_line_table_reader_common.c: Detect a corrupted DWARF5
456 directory count vs directory format count problem and return
457 an error.
458 2016-05-20 David Anderson
459 * dwarf_macro5.c: Was failing to initialize
460 mc_cu_context leading to coredump.
461 If dwarf_srcfiles() returned zero as the count
462 of source files an erroneous calloc() would result in an
463 objection from valgrind: an erroneous calloc of zero bytes
464 of srcfiles pointers would never be freed.
465 2016-05-19 David Anderson
466 * Makefile.in: HOST_CFLAGS now references CFLAGS
467 at the request of the Debian project.
468 * configure.in: Now defaults to -fPIC always
469 (though in a nonshared build one could reasonably
470 turn it off with --disable-fpic)
471 Adds several messages reporting configure actions.
472 * configure: Regenerated.
473 2016-05-18 David Anderson
474 * dwarf_form.c: Directly check expression length against
475 section length in case expression length very very large.
476 * dwarf_query.c: _dwarf_calculate_info_section_*() routines
477 made clearer and the *_start_ptr() instance also now returns
478 the length (via a pointer arg).
479 * dwarf_xu_index.c: Check data read from the section so
480 a wildly large columns count or slots count will be caught
481 and an error returned.
482 2016-05-16 David Anderson
483 * dwarf_elf_access.c: Check more thoroughly for corrupt
484 relocation records and return an error if such found.
485 * dwarf_macro5.c: Remove trailing whitespace.
486 2016-05-10 David Anderson
487 * dwarf_arange.c,dwarf_die_deliv.c: All read operations check for overrun.
488 * dwarf_errmsg_list.c: DW_DLE_HEADER_LEN_BIGGER_THAN_SECSIZE,
489 DW_DLE_LOCEXPR_OFF_SECTION_END, and DW_DLE_POINTER_SECTION_UNKNOWN
490 added to error values.
491 * dwarf_form.c,dwarf_frame.c,dwarf_frame2.c,dwarf_global.c,dwarf_line.c,
492 dwarf_line_table_reader_common.c,dwarf_loc.c,dwarf_loc2.c,
493 dwarf_macro5.c,dwarf_print_lines.c,dwarf_query.c,
494 dwarf_ranges.c,dwarf_util.c, dwarf_xu_index.c: All read
495 operations check for overrun.
496 * dwarf_opaque.h: Put the 4 SGI-only section data
497 items next to each other to make it clear they
498 are such.
499 * dwarf_util.h: Added some checks to READ_AREA_LENGTH_CK
500 * libdwarf.h.in: Defined the new error names.
501 2016-05-07-b David Anderson
502 * libdwarf2.1.mm,libdwarf2p.1.mm: Fixed spelling errors.
503 * libdwarf2.1.pdf,libdwarf2p.1.pdf: Regenerated.
504 2016-05-07 David Anderson
505 * libdwarf.h.in, dwarf_errmsg_list.c: New error codes for
506 stopping due to corrupted frame data.
507 * dwarf_frame.c,dwarf_frame.h,dwarf_frame2.c,dwarf_line.c:
508 Notice frame area overrun and generate error.
509 2016-05-06 David Anderson
510 * dwarf_errmsg_list.c: Added DW_DLE_ZLIB_SECTION_SHORT.
511 * dwarf_form.c: Now checking for section overrun.
512 * dwarf_init_finish.c: Now checking zlib reading
513 for section overrun.
514 * dwarf_macro5.c: Now checking for section overrun and
515 also fixing double delete caused by having
516 _dwarf_get_alloc() space pointing at other _dwarf_get_alloc()
517 space. Because in case of error the order of free
518 of such is unpredictable!
519 * dwarf_macro5.h: Added comment on mc_srcfiles member.
520 * libdwarf.h.in: Added DW_DLE_ZLIB_SECTION_SHORT.
521 2016-05-05 David Anderson
522 * dwarf_form.c: Add a test so that a really large form_block length
523 will not be considered safe (due to unsigned arithmetic
524 overflow).
525 Fixed the new check-code reading string offsets section
526 so the endpoint in the check is that section, not debug_info.
527 * dwarf_query.c: New function _dwarf_calculate_info_section_start_ptr()
528 helps in some checking.
529 * dwarf_util.h: Add a test so arithmetic overflow will not show
530 a bogus value as being ok.
531 * libdwarf.h.in,dwarf_errmsg_list.c: Add error code
532 DW_DLE_FORM_BLOCK_LENGTH_ERROR so we have a specific
533 error for this case.
534 * dwarf_line.c: %lld switched to "%" DW_PR_DSd
535 * dwarf_opaque.h: Added function declaration for
536 _dwarf_calculate_info_section_start_ptr().
537 2016-05-04 David Anderson
538 * dwarf_macro5.c(construct_at_path_from_parts): Move 3 lines
539 of code up to test for NULL pointer. So we do not
540 dereference the pointer.
541 2016-05-03 David Anderson
542 * dwarf_die_deliv.c: Add checks for overrun of end of section
543 due to corrupted DWARF.
544 * dwarf_arange.c,dwarf_util.c: first use of READ_UNALIGNED_CK.
545 * dwarf_errmsg_list.c, libdwarf.h.in: DW_DLE_READ_LITTLEENDIAN_ERROR
546 and DW_DLE_READ_BIGENDIAN_ERROR are errors possible
547 in READ_UNALIGNED_CK. DW_DLE_LINE_OFFSET_WRONG_FORM gives
548 a more meaningful description of a particular corruption
549 problem (not a new test, just a new error name).
550 * dwarf_elf_access.c: Add a check on relocations to ensure
551 we do not write off the end of the section.
552 * dwarf_query.c: Using local variables for shorter lines.
553 * dwarf_util.h: Implement READ_UNALIGNED_CK macros.
554 * dwarf_leb.c: Improve a couple comments.
555 * dwarf_line.c: Now use DW_DLE_LINE_OFFSET_WRONG_FORM.
556 Add operandmismatch() to get better debug information
557 in case of corrupted dwarf. Revise the code for
558 clarity.
559 * dwarf_macro5.c: Duplicate free() could result if
560 dwarf_finish() was used to clean up from a dwarf macro
561 context. Two functions are really static so
562 the function type set properly now.
563 2016-04-30 David Anderson
564 * dwarf_frame.c, dwarf_line_table_reader_common.c,
565 dwarf_loc2.c: switch to using DECODE_LEB*_CK.
566 * dwarf_frame.c: Delete unused local variables.
567 Use DECODE_LEB*_CK for better error checking.
568 * dwarf_frame2.c, dwarf_frame.h: Internal functions get new
569 arguments to support DECODE_LEB*_CK.
570 * dwarf_arange.c: Using UNUSEDARG to suppress warning.
571 * dwarf_line_table_reader_common.c: Use DECODE_LEB*_CK
572 for better error checking.
573 * dwarf_loc2.c: Use DECODE_LEB*_CK
574 for better error checking.
575 2016-04-30 David Anderson
576 * dwarf_die_deliv.c: Deleted unused local variable.
577 * dwarf_form.c,dwarf_macro.c, dwarf_macro5.c: Now uses
578 DCODE_LEB128*_CK nearly everywhere
579 for better checking for corrupted data.
580 * dwarf_opaque.h:New argument to _dwarf_get_addr_index_itself()
581 for better data checks..
582 * dwarf_query.c: Uses revised _dwarf_get_addr_index_itself()
583 interface.
584 * dwarf_util.c: Fixed formatting errors.
585 2016-04-29 David Anderson
586 * dwarf_line_table_reader_common.c, dwarf_macro.c,
587 dwarf_macro5.c, dwarf_util.c, dwarf_util.h:
588 Now use DECODE_LEB128_*CK macros simplifying
589 the code while catching errors/corruption in DWARF
590 data.
591 2016-04-28 David Anderson
592 * dwarf_die_deliv.c: Now _dwarf_next_die_info_ptr() has
593 a section length argument.
594 * dwarf_query.c, dwarf_util.c: Now uses the checked version
595 of leb reading.
596 * dwarf_util.h: Now _dwarf_get_size_of_val() has
597 section_end_ptr argument for checking leb values
598 do not overrun end of section.
599 2016-04-27 David Anderson
600 * dwarf_frame2.c: Now notices a frame-length field
601 which is too large to be meaningful and returns
602 an error..
603 2016-04-27 David Anderson
604 * Makefile.in: Now dwarf_error.o dependency on
605 dwarf_errmsg_list.c is explicit.
606 * dwarf_errmsg_list.c: New error strings.
607 * libdwarf.h.in: New error values for when running off
608 end of section and line range and address size where
609 zero leads to trouble..
610 * dwarf_abbrev.c,dwarf_die_deliv.c, dwarf_frame.c,
611 dwarf_frame.h, dwarf_frame2.c,dwarf_frame3.c,dwarf_leb.c,
612 dwarf_line.c, dwarf_line.h, dwarf_line_table_reader_common.c,
613 dwarf_query.c,dwarf_util.c,dwarf_util.h:
614 Add checks for running off end of section.
615 2016-04-26 David Anderson
616 * Makefile.in: The new errmsg_check dependency
617 line was a bit wrong. libdwarf.h should not have $(srcdir)
618 2016-04-25 David Anderson
619 * dwarf_errmsg_list.c: When -DTESTING ensure all the
620 error messages have a value in () so we can check
621 that value.
622 2016-04-25 David Anderson
623 * dwarf_tied.c: A C11-ism crept in. Fixed.
624 Added 'static' to local function declaration.
625 Removed unused local variable.
626 * dwarf_errmsg_list.c: Now checks that the number in ()
627 matches the index (and still checks that the array size
628 is the declared size) when compiled -DTESTING.
629 2016-04-25 David Anderson
630 * dwarf_errmsg_list.c: Fixed indent mistakes.
631 * dwarf_leb.c: Fixed places were leb128_length
632 was assumed non-null (dwarf_form.c passes NULL!).
633 2016-04-25 David Anderson
634 * Makefile.in: Added testing of the _dwarf_errmsgs array.
635 * dwarf_error.c: Moved _dwarf_errmsgs out of dwarf_error.c into
636 dwarf_errmsg_list.c
637 * dwarf_errmsg_list.c: Now has error strings and test code.
638 2016-04-25 David Anderson
639 * dwarf_error.c: The error description
640 "DW_DLE_GDB_INDEX_INDEX_ERROR(264)" was missing the
641 comma so following errors were reporting the wrong string.
642 2016-04-21 Carlos Alberto Enciso
643 * Use the _WIN32 macro to identify a WINDOWS specific code.
644 2016-03-14 David Anderson
645 * dwarf_util.c: Changed 'byte' to 'byte pair'
646 in a comment. Where we read abbreviation AT/FORM lists.
647 2016-03-14 David Anderson
648 * dwarf_error.c(_dwarf_errno): Now prints to stdout and
649 does abort(1) when it has to give up. Instead of
650 using stderr and abort().
651 It is not a good idea for applications to fail to provide
652 error handling, so no one should notice this change.
653 * libdwarf2.1.mm: Documents behavior in case there is no error
654 handling provided by our caller.
655 * libdwarf2.1.pdf: Regenerated. Rev 2.48.
656 2016-03-14 David Anderson
657 * libdwarf2.1.mm: Documents Dwarf_Handler error handler function.
658 * libdwarf2.1.pdf: Regenerated. Rev 2.47.
659 2016-03-13 David Anderson
660 * dwarf_query.c: Use dwarf_formstring to read string
661 attributes as it handles all the string types already.
662 Now dwarf_diename() and dwarf_die_text() call dwarf_formstring()
663 so DW_FORM_strp_sup and DW_FORM_GNU_strp_alt are
664 properly handled(along with all the other string FORMs).
665 * dwarf_form.c: Handle an error in dwarf_formstring()
666 (for tied files, or the lack thereof)
667 differently so it all works properly even if the incoming
668 error argument is null.
669 2016-03-12 David Anderson
670 * dwarf_abbrev.c: Uses renamed fields abbrev internal struct.
671 Removes some gratuitous (). Adds clarifying {}
672 * dwarf_abbrev.h: renames Dwarf_Abbrev_s struct fields
673 from ab_tag to dab_tag, etc.
674 Adds global section offset to the fields.
675 * dwarf_die_deliv.c: Uses renamed Abbrev_List fields.
676 Adds dwarf_die_abbrev_global_offset() function so
677 clients can properly identify where an abbrev entry is
678 in .debug_abbrev.
679 * dwarf_die_deliv.h: renames Dwarf_Abbrev_List
680 struct fields from ab_tag to abl_tag etc.
681 Adds abl_goffset, abl_count.
682 * dwarf_query.c,dwarf_util.c: Uses renamed Dwarf_Abbrev_List
683 fields.
684 * libdwarf.h.in: Adds function dwarf_die_abbrev_global_offset().
685 * libdwarf2.1.mm: Documents dwarf_die_abbrev_global_offset().
686 * libdwarf2.1.pdf: Regenerated. Rev 2.46.
687 2016-03-11 David Anderson
688 * dwarf_die_deliv.c: Fixed issues with handling NULL
689 Dwarf_Error* and with mistakes treating DW_DLV_NO_ENTRY
690 as if it were DW_DLV_ERROR.
691 * dwarf_form.c: Only do dwarf_errno(*error) when error is non-null.
692 * dwarf_macro5.c, dwarf_query.c, dwarf_ranges.c: Avoid the
693 possibility of
694 doing dwarf_errno(*error) when error is null.
695 * dwarf_util.c(_dwarf_error_mv_s_to_t): Added code to
696 ensure that nothing crash-worthy happens
697 even if a future internal caller calls it with one or more NULL
698 arguments.
699 * libdwarf2.1.mm: Added a few words about Error Handling in general
700 to clarify earlier wording (earlier wording was not as explicit
701 as it should have been).
702 * libdwarf2.1.pdf: Regenerated. Version 2.45
703 * dwarf_sort_line.c: Though no longer built or used, added
704 an initializer to a local variable for correctness.
705 * dwarf_addr_finder.c: Though no longer compiled or used (is IRIX only),
706 cleaned up local variable declarations that were not
707 up to the current standard usage in libdwarf.
708 2016-03-11 David Anderson
709 * Makefile.in: Added a comment about pr and pdf-building.
710 2016-03-09 David Anderson
711 * libdwarf2.1.mm: Slightly altered the dwarf_offsets_list() documentation.
712 * libdwarf2.1.pdf: Rev 2.44. Regenerated.
713 2016-03-09 David Anderson
714 * dwarf_form.c: Correct and amplify a comment.
715 2016-03-01 David Anderson
716 * libdwarf2.1.mm: Documented dwarf_dietype() and
717 dwarf_offset_list().
718 * libdwarf2.1.pdf: Regenerated. Rev 2.43
719 * checkexamples.c: Added example for dwarf_offset_list().
720 2016-02-19 Carlos Alberto Enciso
721 * dwarf_alloc.h, dwarf_alloc.c, dwarf_base_types.h, dwarf_opaque.h:
722 New allocator type (DW_DLA_CHAIN_2), to allow a list of addressed
723 types (address, offset).
724 There was Memory corruption due to incorrect usage of
725 memory allocator type.
726 * dwarf_query.c: Use the new allocator type.
727 2016-02-14 David Anderson
728 * libdwarf2.1.mm: dwarf_exprloc -> dwarf_formexprloc.
729 The spelling error was introduced in version 2.41.
730 * libdwarf2.1.pdf: Regenerated. Version 2.42
731 2016-02-13 David Anderson
732 * libdwarf2.1.mm: Added dwarf_lineoff_b() documentation.
733 Fixed a typo in dwarf_formexprloc() documentation.
734 * libdwarf2.1.pdf: Regenerated. Version 2.41
735 * Makefile.in: Add HOSTCFLAGS HOSTLDFLAGS HOSTCC to make
736 it easier to cross-compile. Remove common.c, common.h
737 (a few lines of code moved to gennames.c).
738 * README: document use of HOSTCC
739 * common.c,common.h: Delete. A few lines of code moved to gennames.c.
740 * configure.in: for AC_TRY_RUN add [],[] for else and for
741 cross-compile cases.
742 * configure: Regenerated.
743 * dwarf_die_deliv.c, dwarf_frame2.c, dwarf_line.c,
744 dwarf_macro5.c, dwarf_print_lines.c, dwarf_ranges.c:
745 Renamed to avoid shadowing variables with same name.
746 For clarity.
747 * gennames.c: Incorporates a few lines from common.c
748 so common.c, common.h can be deleted.
749 2016-02-10 David Anderson
750 * README: Improved a comment about Dwarf_Obj_Access_Methods.
751 * dwarf_elf_access.c: New function _dwarf_get_elf_flags_func()
752 extracts the sh_flags field from Elf sections. In an odd way
753 so we preserve binary and source compatibility.+
754 * dwarf_error.c,libdwarf.h.in: New error DW_DLE_ELF_FLAGS_NOT_AVAILABLE.
755 * dwarf_init_finish.c: Use new (global) function pointer
756 _dwarf_get_elf_flags_func_ptr
757 to access extra Elf data without breaking compatibility.
758 Add additional way (SHF_COMPRESSED) to detect zlib
759 compression and expand the compressed data.
760 2016-02-08 David Anderson
761 * dwarf_alloc.c: Drop VALTYPE, use DW_TSHASHTYPE instead.
762 Use DW_TSHASHTYPE in the hash functions.
763 * dwarf_tied.c: Use DW_TSHASHTYPE in the hash function.
764 * dwarf_tsearchhash.c: Add back the UNUSEDARG to avoid
765 unused argument warnings.
766 2016-02-07 David Anderson
767 * dwarf_init_finish.c: Fix indents. remove a trailing space.
768 * dwarf_tsearch.h,dwarf_tsearchhash.c: Now DW_TSHASHTYPE (if not defined
769 otherwise) defines the type returned by the hash function
770 used in tsearchhash.
771 * pro_alloc.c: Removed trailing whitespace.
772 2016-02-07 David Anderson
773 * README: Mention
774 https://github.com/jrfonseca/drmingw/tree/master/src/mgwhelp
775 * dwarf_init_finish.c: If SHT_RELA not defined define it as 4
776 in hopes that will not cause trouble for mingw. For Elf
777 objects 4 is the correct value and is defined in elf.h
778 2016-02-06 David Anderson
779 * dwarf_elf_access.c,dwarf_original_elf_init.c,dwarf_tsearchhash.c,
780 libdwarfdefs.h: Remove trailing whitespace.
781 2016-02-06 David Anderson
782 * configure.in: defines HAVE_UNUSED_ATTRIBUTE
783 if the gcc '__attribute__ ((unused))' compiles ok.
784 * config.h.in, configure: Regenerated.
785 * libdwarfdefs.h: Test HAVE_UNUSED_ATTRIBUTE and define
786 UNUSEDARG appropriately.
787 * dwarf_alloc.c,dwarf_elf_access.c,dwarf_form.c,dwarf_frame2.c,
788 dwarf_gdbindex.c,dwarf_global.c,dwarf_init_finish.c,dwarf_line.c,
789 dwarf_line_table_reader_common.c,dwarf_macro5.c,
790 dwarf_original_elf_init.c,dwarf_print_lines.c,dwarf_ranges.c,
791 dwarf_tsearchhash.c,dwarf_util.c,dwarf_xu_index.c,
792 pro_alloc.c,pro_frame.c,pro_init.c,pro_reloc.c,
793 pro_reloc_stream.c,pro_section.c: Use UNUSEDARG to suppress
794 meaningless unused-parameter warnings from gcc.
795 2016-02-06 David Anderson
796 * dwarf_tsearchhash.c: The original default
797 hash table size (a prime number) was very small. Now its
798 closer to 100.
799 2016-02-06 David Anderson
800 * dwarf_frame.h: Added fde_fd_eh_table_value.
801 Added fde->fd_gnu_eh_aug_present so presence/absence
802 is unambiguous.
803 * dwarf_frame.c: Added code to set fd_eh_table_value when
804 appropriate, though there is no interface for dwarfdump to
805 get the value yet.
806 * dwarf_frame2.c: Update the new fields appropriately.
807 Corrected some comments about the eh_frame cie_id field.
808 2016-02-05 David Anderson
809 * dwarf_frame2.c: Comments in get_cieptr_given_offset()
810 were slightly incorrect and one calculation was pointlessly
811 full of casts. Fixed commentary about the CIE_pointer
812 (CIE id or FDE id) field in a frame header.
813 * dwarf_loc2.c: Fixed compiler warning on signed/unsigned
814 comparison by changing local variable int->Dwarf_Unsigned..
815 * pro_init.c: Removed extraneous semicolon to avoid
816 warning for C90.
817 2016-01-26 David Anderson
818 * dwarf_abbrev.c: Remove useless blank line.
819 * dwarf_macro5.c: Add check for macro_import offset correctness.
820 2016-01-21 David Anderson
821 * libdwarf.h.in: Typo, */* fixed to be * /*
822 * configure.in: Added new gcc compiler options to --enable-wall.
823 * configure: regenerated.
824 * dwarf_die_deliv.c dwarf_frame.c,dwarf_frame2.c,dwarf_gdbindex.c,
825 dwarf_gdbindex.h,dwarf_line.c,dwarf_line.h,
826 dwarf_line_table_reader_common.c,dwarf_macro5.c,dwarf_query.c,
827 dwarf_tsearchhash.c: Eliminated use of int/Dwarf_Signed
828 in favor of unsigned types where
829 signed served no purpose. Added ommitted return DW_DLV_NO_ERROR
830 in dwarf_frame2.c. Other than 'unused parameter' fixed
831 the warnings from gcc.
832 No interfaces changed though. To keep binary compatibility.
833 2016-01-20 David Anderson
834 * dwarf_query.c: New function dwarf_die_text() is a general way
835 to get strings from various attributes in a DIE.
836 * libdwarf.h.in: Add prototype for dwarf_die_text().
837 * libdwarf2.1.mm: Document dwarf_die_text().
838 * libdwarf2.1.pdf: Regenerated. Version 2.40.
839
840 2016-01-19 David Anderson
841 * Makefile.in: Remove dwarf_stubs.o.
842 * configure.in: Add various gcc opts to --enable-wall
843 to get appropriate coverage.
844 * configure: regenerated.
845 * dwarf_macro5.c: File-local functions now declared static.
846 * dwarf_query.c: File-local functions now declared static.
847 * dwarf_stubs.c: No longer this function. It never had a prototype
848 declaration and never had more than return DW_DLV_ERROR as
849 an implementation.
850 * dwarf_util.c: Remove trailing whitespace.
851 * dwarf_original_elf_init.c(dwarf_set_tied_dbg): Added
852 check for null dbg.
853 * dwgetopt.c: Add include of dwgetopt.h. #if 0 a testing-only function.
854 All functions prototyped, no ().
855 * libdwarf.h.in: Comment out argument names for safety.
856 Added dwarf_get_tied_dbg(), dwarf_dietype_offset(),
857 dwarf_pubtype_type_die_offset() declarations.
858 Sorted the dwarf_get_TAG_name() etc function names.
859 * pro_alloc.c: Documented and commented a useless function,
860 dwarf_p_dealloc(). .
861 * pro_alloc.h: Prototyped both the useful and useless
862 global-to-libdwarf producer
863 functions _dwarf_p_dealloc and dwarf_p_dealloc.
864 * libdwarf2.1.mm: Documented dwarf_get_tied_dbg(),
865 dwarf_fde_section_offset(), and dwarf_cie_section_offset()
866 * libdwarf2.1.pdf: Regenerated. Rev 2.39
867 2016-01-19 David Anderson
868 * dwarf_form.c,dwarf_macro5.c: Ensure declarations
869 before executable statements
870 * dwarf_loc.c: Cast pointer to Dwarf_Small* so pointer arithmetic
871 works (standard conformance).
872 Ensure declarations before executable statements
873 * dwarf_macro5.c: Ensure declarations before executable statements.
874 * dwarf_query.c: Ensure declarations before executable statements.
875 Add dwarf_dietype_offset() convenience function.
876 * dwarf_util.c: Use a local name that does not conflict
877 with standards. use mydw_errno, not errno.
878 * dwarf_frame2.c(dwarf_read_cie_fde_prefix): Add tests
879 to ensure we do not access past end of a section.
880 2016-01-19 David Anderson
881 * dwarf_form.c, dwarf_frame2.c,: Fix indentation and trailing whitespace.
882 2016-01-19 David Anderson
883 * dwarf_line.c, dwarf_line_table_reader_common.c,
884 dwarf_loc.c, dwarf_macro5.c, dwarf_query.c, pro_die.c:
885 Remove silly second ; from ;; where appropriate.
886 2016-01-19 David Anderson
887 * libdwarf.h.in, dwarf_error.c: New error numbers.
888 DW_DLE_LINE_STRP_OFFSET_BAD, DW_DLE_STRING_FORM_IMPROPER.
889 * dwarf_form.c: Added suport for DW_FORM_line_strp into
890 dwarf_form_string().
891 2016-01-17 David Anderson
892 * dwarf_frame2.c: Added additional checks for
893 bad frame section. Looking for premature end of frame data.
894 2016-01-16 David Anderson
895 * libdwarf2.1.mm: Documented DWARF5 macro operations.
896 Version 2.38
897 * libdwarf2.1.pdf: Regenerated.
898 * libdwarf2p.1.pdf: Regenerated following a trivial
899 clarification on cie production made a couple days ago.
900 2016-01-15 David Anderson
901 * pro_frame.h, pro_frame.c: The code adding a CIE for output
902 (dwarf_add_frame_cie())
903 was simply assuming that the augmentation string passed in was
904 in stable storage. Now it uses strdup() to guarantee there
905 no surprises.
906 2016-01-14 David Anderson
907 * dwarf_query.c(dwarf_die_offsets): 'res ==' corrected to 'res ='.
908 2016-01-12 David Anderson
909 * dwarf_macro5.c: Fixed DW_MACRO_define/undef
910 calls of _dwarf_check_string_valid().
911 Arranged to get the macro unit offset out
912 when creating context.
913 * libdwarf.h.in: Fixed declaration of dwarf_get_macro_context()
914 to get the macro unit offset out of it
915 so it can work properly in all contexts.
916
917