Debian Codegraph @

src/lib/libdwarf/ChangeLog2015

raw
1 2015-12-31 David Anderson
2 * configure.in: Now allows --enable-shared and --disable-nonshared
3 * configure: regenerated.
4 2015-12-30 David Anderson
5 * dwarf_elf_access.c(dwarf_elf_object_access_load_section):
6 now test for a NULL data pointer from libelf. Problem caused
7 by DWARF related section being marked SHT_NOBITS.
8 2015-12-29 David Anderson
9 * dwarf_loc2.c: ll_dbg was not set, two places.
10 dwarf_loc_head_c_dealloc() was not iterating
11 through the list of locdescs. Fixed now.
12 2015-12-19 David Anderson
13 * dwarf_macro5.c: specialcat() had a bug. Fixed
14 indent/trailing whitespace.
15 * dwarf_macro5.n: Fixed indent/trailing whitespace.
16 * dwarf_line.c: Fixed indent/trailing whitespace.
17 * dwarf_opaque.h: Fixed indent/trailing whitespace.
18 2015-12-19 David Anderson
19 * dwarf_line.c: Rename a function and make it callable
20 from other files: _dwarf_file_name_is_full_path().
21 Refactor creating _dwarf_internal_get_die_comp_dir().
22 * dwarf_macro5.c: Use _dwarf_internal_get_die_comp_dir() and
23 _dwarf_file_name_is_full_path() for DWARF4/5 macro file names.
24 * dwarf_macro5.h: New fields in macro context for the base
25 file name.
26 * dwarf_opaque.h: New field of comp_dir name on CU Context.
27 * dwarf_util.c: Implement _dwarf_internal_get_die_comp_dir().
28 * dwarf_util.h: Declare _dwarf_internal_get_die_comp_dir().
29 2015-12-18 David Anderson
30 * dwarf_query: One line had trailing whitespace. Fixed.
31 * dwarf_macro5.c: Was not getting import offset right.
32 Off by one error.
33 2015-12-16 David Anderson
34 * dwarf_query.c(dwarf_die_offsets): Added commentary..
35 Revised the code so it's a bit easier to read
36 and reason about.
37 2015-12-15 David Anderson
38 * dwarf_form.c: Refactored to simplify DWARF5 macro code.
39 * dwarf_macro5.c,dwarf_macro5.h,dwarf_opaque.h,libdwarf.h.in:
40 Now support for DWARF5 macros is nearly complete.
41
42 2015-12-13 David Anderson
43 * dwarf_error.c: Add DW_DLE_MACRO_PAST_END
44 * libdwarf.h.in: Add DW_DLE_MACRO_PAST_END
45 and dwarf_get_macro_ops_count() declaration.
46 * dwarf_macro5.c: Implement dwarf_get_macro_ops_count()
47 and refactor a little bit.
48 * dwarf_macro5.h: New fields supporting dwarf_get_macro_ops_count().
49 2015-12-12 David Anderson
50 * dwarf_error.c,libdwarf.h.in: Adding DW_DLE_MACRO_OP_UNHANDLED.
51 * dwarf_macro5.c: Now validates form numbers when there
52 is an extension operator. Fixed indents too.
53 2015-12-11 David Anderson
54 * dwarf_alloc.c: Remove () around simple return value.
55 * dwarf_error.c: Two new error codes for DWARF5 macro section.
56 * dwarf5_macro.c,dwarf5_macro.h: Add functions
57 to let reader read/print
58 .debug_macro section header. Fixed _dwarf_macro_constructor
59 declaration and implementation to return DW_DLV_OK.
60 * libdwarf.h.in: Add functions to let reader read/print
61 .debug_macro section header.
62 2015-12-08 David Anderson
63 * dwarf.h,dwarf_frame.c: Add DW_CFA_METAWARE_info.
64 * dwarf_frame.h: Add aug_metaware to enum.
65 * dwarf_frame2.c: Add aug_metaware handling.
66 * dwarf_util.c: Delete unused local variable.
67 2015-12-08 David Anderson
68 * dwarf_die_deliv.c,dwarf_query.c,dwarf_util.c,libdwarf.h.in:
69 Fix indents, remove trailing whitespace. Remove some useless ()
70 in return statements.
71 2015-12-08 David Anderson
72 * dwarf_init_finish.c: Added a cast to strncmp() call to
73 avoid warning.
74 * dwarf_abbrev.c,dwarf_die_deliv.c,dwarf_error.c,dwarf_opaque.h,
75 dwarf_query.c,dwarf_util.c,dwarf_util.h: Now check for
76 valid forms when reading forms. Return error code
77 as appropriate (now _dwarf_get_abbrev_for_code returns
78 DW_DLV* as appropriate instead of a pointer).
79 Left error placeholders for eventual merge with DWARF5 macro code.
80 * libdwarf.h.in: New error code for FORM problems,DW_DLE_UNKNOWN_FORM.
81 2015-12-03 David Anderson
82 * dwarf_macro5.c, dwarf_macro5.c: sentinal->sentinel.
83 2015-12-02 David Anderson
84 * Makefile.in: Bug building .so. Change $dwfzlib to $(dwfzlib)
85 to fix.
86 2015-11-30 David Anderson
87 * dwarf_alloc.c,dwarf_macro5.c,dwarf_macro5.h,libdwarf.h.in:
88 Remove trailing whitespace.
89 2015-11-30 David Anderson
90 * Makefile.in: Add dwarf_macro5.o to build list.
91 * dwarfdump.c: Add macro_flag flag to signal print
92 of DWARF5 debug_macro data.
93 * dwarf.h: Fix spelling of DWARF5 DW_MACRO fields.
94 * dwarf_alloc.c: Add DW_DLA_MACRO_CONTEXT to alloc list.
95 * dwarf_alloc.h: Add 1 to ALLOC_AREA_INDEX_TABLE_MAX.
96 * dwarf_init_finish.c: New function dwarf_get_section_max_offsets_c
97 returns sizes of all sections, including DWARF5.
98 * dwarf_macro5.c: New,for DWARF5 macro access.
99 Implements dwarf_get_macro_context() etc.
100 * dwarf_macro5.h: Declare new internal macro structs.
101 * libdwarf.h.in: Declare new macro interfaces.
102 2015-11-28 David Anderson
103 * dwarf_frame.c: Added dwarf_get_frame_section_name(),
104 dwarf_get_frame_section_name_eh_gnu() for better section name
105 reporting for clients that care about that.
106 * libdwarf.h.in: Declared the new section name interfaces.
107 * libdwarf2.1.mm: Documented the new functions. Version 2.36.
108 * libdwarf2.1.pdf: Regenerated.
109 2015-11-27 David Anderson
110 * dwarf_die_deliv.c: Added dwarf_get_die_section_name_b().
111 * dwarf_line.c: Added dwarf_get_ranges_section_name()
112 dwarf_get_aranges_section_name(),
113 dwarf_get_line_section_name_from_die(),
114 dwarf_get_string_section_name.
115 * libdwarf.h.in: Added new function names.
116 * libdwarf2.1.mm: Version 2.35. Documented new functions.
117 * libdwarf2.1.pdf: Regenerated.
118 2015-11-26 David Anderson
119 * config.h.in, configure.in, Makefile.in: Deals with
120 zlib when present.
121 * configure: Generated.
122 * libdwarf/dwarf_error.c: New error codes for zlib use.
123 * dwarf_init_finish.c: Supports zlib and .zdebug sections.
124 * dwarf_opaque.h: New fields for zlib support.
125 * libdwarf.h.in: New error codes for zlib use.
126 2015-11-25 David Anderson
127 * dwarf.h: Removed trailing space.
128 * dwarf_elf_access.c: Small preparation for handling .zdebug.
129 * dwarf_init_finish.c: Preparation for handling .zdebug zlib
130 compressed dwarf .debug_ sections. Uses new function
131 and new SET_UP_SECTION macro to shorten code and ensure
132 no unwanted differences present.
133 * dwarf_tied.c: Remove trailing whitespace.
134 * dwarf_opaque.h: New fields in preparation for .zdebug
135 handling.
136 2015-11-24 David Anderson
137 * dwarf_tied.c: Code reading tied CU headers only worked by accident
138 but is fixed. Reads only as far as needed in tied for the signature
139 being referenced.
140 2015-11-15 David Anderson
141 * Makefile.in,configure.in: These now support building in separate clean directory.
142 * configure: Regenerated.
143 2015-11-11 David Anderson
144 * dwarf_opaque.h: Delete two useless blank lines.
145 2015-11-09 David Anderson
146 * libdwarf.h.in: Removed unimplemented function
147 declarationfrom the file.
148 * libdwarf2.1.mm: Updated with new interface functions
149 for DWARF5 and split dwarf. Version2.33
150 * libdwarf2.1.mm: Regenerated.
151 2015-11-08 David Anderson
152 * dwarf_alloc.c: Fixed indents, trailing whitespace.
153 * dwarf_loc2.c: Fixed indents, trailing whitespace.
154 * dwarf_form.c: Made too-long line into 2 lines.
155 * dwarf_loc.h: Removed duplicate Dwarf_Loc_c_s etc declarations.
156 * dwarf_util.c(_dwarf_error_mv_s_to_t),dwarf_util.h: New
157 function to eliminate duplicative code.:
158 * dwarf_query.c): Fix bug in dwarf_get_offset_size().
159 Use new _dwarf_error_mv_s_to_t() to get error on correct dbg.
160 Fixed indents, trailing whitespace.
161 * dwarf_ranges.c: Use new _dwarf_error_mv_s_to_t()
162 to get error on correct dbg.
163 Fixed indents, trailing whitespace.
164 2015-11-07 David Anderson
165 * dwarf_alloc.c: Added new checks so user mixing up
166 tied dbg with regular dbg won't lead to crashes
167 when calling dwarf_dealloc or dwarf_finish().
168 Zeroed out some fields to recognize space deallocated.
169 * dwarf_die_deliv.c: Added support of split dwarf
170 DW_AT_[GNU_]ranges_base
171 * dwarf_form.c: Load string from tieddbg when appropriate.
172 * dwarf_harmless.c: On free() zero out a field to show that was done.
173 * dwarf_loc.c: Correct the handling of split dwarf loclist.
174 * dwarf_opaque.h: Add cc_ranges_base_present for split dwarf.
175 Add _dwarf_get_ranges_base_attr_from_tied() for split dwarf.
176 * dwarf_query.c: Get and remember skeleton compilaton unit
177 DW_AT_[GNU_]ranges_base from tied objects for split dwarf.
178 * dwarf_ranges.c: If a tied object present, look for ranges
179 there, not in split dwarf object.
180 * dwarf_util.c: Housekeeping zeros out fields to ensure not
181 used after dealloc.
182 2015-11-01 David Anderson
183 * configure.in: Added -O0 to --enable-wall.
184 So if a coredump while debugging gdb will work well.
185 * configure: Regenerated.
186 2015-11-01 David Anderson
187 * Makefile.in: Split out dwarf_loc2 to put the DWARF5
188 expression code all in one place.
189 * dwarf_alloc.c,dwarf_alloc.h: Three new opaque
190 structs for DWARF5 expression interfaces.
191 * dwarf_error.c: New error codes for DWARF5 expression interfaces.
192 * dwarf_frame.c: Altered internal interfaces to support
193 DWARF5 expression reading.
194 * dwarf_loc.c: Refactored to support DWARF5 and moved
195 some code into dwarf_loc2.c to segregate the new
196 interfaces for clarity.
197 * dwarf_loc.h: Definitions of new library-internal structs
198 (opaque to callers).
199 * dwarf_loc2.c: Contains the new DWARF5 location expression
200 interface code. It is not separately compiled, it is
201 #included by dwarf_loc.c.
202 * dwarf_opaque.h: Commentary change.
203 * dwarf_query.c: dwarf_get_offset_size() new.
204 Refactored to avoid duplicating code.
205 * libdwarf.h.in: DWARF5 location expression interfaces
206 refined and commentary improved.q
207 2015-10-28 David Anderson
208 * dwarf_loc2.c: New file with the new code for DWARF5
209 location expressions put here. Not separate compile,
210 this is brought into dwarf_loc.c via a #include there
211 2015-10-26 David Anderson
212 * Makefile.in: Handle the configure --enable-wall option.
213 * configure.in: Add --enable-wall so we can easily get
214 gcc's -Wall option for the build.
215 * configure: Regenerated.
216 * dwarf_error.c: Amplify the text for DW_DLE_LOCLIST_INTERFACE_ERROR.
217 * dwarf_loc.c(_dwarf_read_loc_expr_op): Correct a sanity test
218 recently introduced. Ensure the location fields all set.
219 #if 0 some code that will be fixed with the new location
220 interface set.
221 * dwarf_loc.h: Revised the prototypes and commentary for the new
222 location list interfaces.
223 2015-10-25 David Anderson
224 * checkexamples.c: Add commentary to example9.
225 * dwarf_alloc.c: Add DW_DLA_LOC_BLOCK_C and DW_CLA_LOCDESC_C
226 allocation descriptions to array.
227 * dwarf_alloc.h: Increase ALLOC_AREA_INDEX_TABLE_MAX to match.
228 * dwarf_base_types.h: Increase MAX_DW_DLA to match.
229 * dwarf_die_deliv.c: Switch some returns from pointer to
230 the standard int DW_DLV_OK etc and return pointer through
231 an argument. Identify which CUs are dwo by checking name
232 for a .dwo ending. Fix whitespace endings.
233 * dwarf_error.c: Add DW_DLE 309 to 311 errors to descriptions array.
234 * dwarf_form.c: Remove trailing whitespace. Reformat one line
235 so it is not so long.
236 * dwarf_line.c: Add {} on if for clarity.
237 Fix whitespace endings.
238 * dwarf_line_table_reader.c: Fix whitespace endings.
239 * dwarf_loc.c: Refactor loc. expr. reader into a
240 routine that reads one expression, _darf_read_loc_expr_op()..
241 Add DWARF5 operators.
242 Add preliminary dwo expression support (which will change
243 but this is a start). Old expression interface now
244 explicitly supports only DWARF 2,3,4. No DWARF5.
245 Add preliminary loclist_c support (it will change).
246 Add commentary about the old loclist interface.
247 * dwarf_loc.h: First cut of new interfaces (functional, not
248 public structs).
249 * dwarf_opaque.h: Add cc_is_dwo flag to cu context struct.
250 * libdwarf.h.in: Rework some loclist commentary.
251 Add first try at new loclist interfaces for DWARF2,3,4,5.
252 New error codes for new loclist/dwo code.
253 * libdwarf2.1.mm: Rev 2.32. New wording on old loclist
254 interfaces.
255 2015-10-15 David Anderson
256 * dwarf_util.c,dwarf_query.c: Added DW_FORM_strp_sup as
257 same idea as DW_FORM_GNU_strp_alt.
258 2015-10-15 David Anderson
259 * checkexamples.c: Fixed data type in the example code.
260 * dwarf.h: Updated comment about DW_FORM_GNU_strp_alt
261 * dwarf_elf_access.c: Fixed trailing whitespace and
262 removed debug printf that got left in.
263 * dwarf_error.c: Add new TIED file errors.
264 DW_DLE_NO_TIED_FILE_AVAILABLE, DW_DLE_NO_TIED_STRING_AVAILABLE.
265 * dwarf_form.c: Added support for DW_FORM_GNU_strp_alt.
266 * dwarf_init_finish.c: #if 0 routine all_sig8bits_zero().
267 * dwarf_line.c: Now always notice windows-like c: etc
268 as start of a full path. Ensure directories with \ are
269 turned to / in line tables. (for full such transforms
270 configure with --enable-windowspath ) Remove some debug #ifdef
271 lines.
272 Alter the linecontext interface to pass back table count,
273 not linecount.
274 * dwarf_line.h: Add commentary and lc_table_count field.
275 * dwarf_line_table_reader_common.c: Fix indent/trailing whitespace.
276 Now sets lc_table_count;
277 * dwarf_opaque.h: Add _dwarf_get_string_from_tied() interface.
278 * dwarf_print_lines.c: Remove trailing whitespace and some debug printf..
279 * libdwarf.h.in: New error codes. Fix trailing whitespace. Expand
280 commentary.
281 2015-10-13 David Anderson
282 * dwarf_line.c: Refactored so we have only one
283 piece of code creating file paths from line table data.
284 deleted obsolete code that was #if 0.
285 * libdwarf.h.in: Fleshed out linecontext
286 versions of two-level table readng.
287 Revised a new interface (dwarf_srclines_b) to
288 make it possible to do a read of just the line header.
289 * libdwarf2.1.mm: Documented new functions.
290 Fixed the example code so it is actually correct
291 2015-10-06 David Anderson
292 * Makefile.in: Removed source files from the build that
293 are only useful to IRIX and only in the context of building
294 an IRIX runtime system.
295 * dwarf_alloc.c: Added constructor/destructor code to
296 Dwarf_Line_Context allocator.
297 * dwarf_elf_access.c: Added additional #defines so we
298 have the IA64 defines we need to compile certain
299 test cases on freebsd.
300 * dwarf_error.c: Two new error codes for Dwarf_Line_Context
301 checking.
302 * dwarf_line_table_reader_common.c: New file. We can compile
303 the line reading with and without detailed print lines
304 for dwarfdump. Now only one body of line reading code
305 to maintain.
306 * dwarf_line.c: Moved code out to dwarf_line_table_reader_common.c
307 Refactored to support skeleton line tables (DWARF5)
308 Eliminated an internal struct, it is no longer needed.
309 a little better.
310 Supports experimental two-level line tables too.
311 * dwarf_print_lines.c: Uses dwarf_line_table_reader_common.c
312 to do much of its work now.
313 * libdwarf.h.in: New interfaces for nicer access to
314 line table headers.
315 * libdwarf2.1.mm: Partial documentation of the new
316 libdwarf line table interfaces.
317 2015-10-01 David Anderson
318 * dwarf_global.h: Now the last __sgi related macro (else, endif)
319 have /* __sgi */.
320 2015-09-30 David Anderson
321 * dwarf_global.c,dwarf_line.c,dwarf_line.h,dwarf_line2.c,
322 dwarf_line_table_reader_common.c,dwarf_sort_line.c,libdwarf.h.in:
323 The SGI IRIX only fields in dwarf_line.h ifdef __sgi now.
324 And all code referencing them that way too. Balancing
325 #endif has /* __sgi */ now for searchability.
326 Functions only usable on SGI IRIX only compiled in if __sgi
327 macro defined.
328 * libdwarf2.1.mm: Added a comment related to experimental
329 two-level line tables.
330
331 2015-09-29 David Anderson
332 * dwarf_die_deliv.c,dwarf_line.c,dwarf_print_lines.c: Now looks for
333 and adds the extra offset from debug_fission: DW_SECT_LINE.
334 2015-09-29 David Anderson
335 * dwarf_line.c,dwarf_line.h,dwarf_line_table_reader_common.c,
336 dwarf_print_lines.c: Moved the prefix reading subroutine
337 into common so the prefix-printing can have
338 print code added (with ifdef so production does not
339 have it).
340 2015-09-29 David Anderson
341 * dwarf_line.c,dwarf_line_table_reader_common.c,dwarf_print_lines.c,
342 dwarf_line.h,dwarf_line2.c,libdwarf.h.in:
343 Moved some code from dwarf_line_table_reader_common.c to dwarf_line.c.
344 Fixed indent and trailing whitespace. Fixed the 'section offset'
345 code by using the proper value from dss_ptr..
346 2015-09-28 David Anderson
347 * dwarf_line_table_reader_common.c: New file is the line table reader
348 extracted from dwarf_line.c. Now compiled into dwarf_line.c
349 and dwarf_print_lines.c with correct two-level line table
350 calculations. No more coding the table twice.
351 * dwarf_line.c,dwarf_print_lines.c: Now #include
352 dwarf_line_table_reader_common.c
353 * Makefile.in: Reflects new source depedencies.
354 * dwarf_line2.c: An internal function interface changed,
355 so accomodated it here.
356 * libdwarf.h.in, dwarf_error.c: New error code, DW_DLE_BAD_LINE_TABLE_OPERATION.
357 Changes not staged for commit:
358 (use "git add <file>..." to update what will be committed)
359 (use "git checkout -- <file>..." to discard changes in working directory)
360
361 modified: Makefile.in
362 modified: dwarf_error.c
363 modified: dwarf_line.c
364 modified: dwarf_line2.c
365 modified: dwarf_line_table_reader_common.c
366 modified: dwarf_print_lines.c
367 modified: libdwarf.h.in
368
369 2015-09-28 David Anderson
370 * dwarf_line.c,dwarf_line.h,dwarf_print_lines.c: made li_ and lr_
371 line register structs agree on spelling of suffix of each name.
372 Now dwarf_srclines (and two-level) use the
373 line register struct instead of a list of local variables.
374 2015-09-26 David Anderson
375 * dwarf_elf_access.c: Removed some trailing spaces.
376 * dwarf_line.c: Update the li_is_actuals_table (new field)
377 where a new line is emitted. For later safe dealloc.
378 Fixed indents and removed trailing spaces.
379 Fixed the dwarf_srclines_dealloc to work properly on
380 all the line table variations.
381 * dwarf_line.h: Removed trailing spaces.
382 Added li_is_actuals_table so the dealloc can work properly.
383 * dwarf_print_lines.c: Fixed the Logicals and Actuals table
384 formatting, Now prints the subprograms table too.
385 * libdwarf.h.in: Added dwarf_get_LNCT_name() to function list.
386 2015-09-25 David Anderson
387 * dwarf_print_lines.c: A first cut at detailed line tables.
388 Not yet computing state register values for all two-level
389 line tables here.
390 2015-09-25 David Anderson
391 * dwarf_line.h: added a comment.
392 * dwarf_print_lines.c: Now finds actuals and logicals
393 tables and prints them. Incomplete but perhaps useful.
394 2015-09-24 David Anderson
395 * dwarf_line.c: Renamed a local var for clarity. Added commentary
396 for clarity. Fixed a memory leak for skeleton lined tables.
397 Added required free() calls on error to avoid memory leaks.
398 Moved an 'overrun' check into a loop to check on every
399 loop iteration.
400 * dwarf_line.h: Added commentary.
401 2015-09-23 David Anderson
402 * dwarf_abbref.c,dwarf_die_deliv.c,dwarf_init_finish.c,dwarf_query.c: Removed
403 unused local variables.
404 * dwarf_line.c: Corrected bugs in the two-level line table
405 support and improved error checking.
406 Revamped the line table header reading code for clarity.
407 See dw-linetableheader.txt .
408 * dw-linetableheader.txt: The line table headers are a bit
409 complicated (mostly by the experimental two-level
410 line table support) so this file shows the header fields
411 in order by version.
412 * dwarf_form.c: Fixed nested comment, removed unused local variables..
413 * dwarf_loc.c: Cast return from _dwarf_get_alloc() to remove
414 a compile warning.
415 * dwarf_tied.c: Removed unused local variable.
416 * dwarf_xu_index.c: Removed unused local variables.
417 2015-09-22 David Anderson
418 * libdwarf/dwarf.h,dwarf_elf_access.c,dwarf_form.c,dwarf_line.h:
419 Fixed indentation errors.
420 * dwarf_line.c: Fixed indentation and corrected an error
421 introduced a couple days ago.
422 2015-09-19 David Anderson
423 * dwarf.h: Adding commentary. a DW_LNS for two-level line tables
424 looks wrong..
425 * dwarf_die_deliv.c: Adding commentary.
426 * dwarf_line.c: An internal function now has a leading _
427 and a context argument.. Added
428 local names of popular pointers.
429 * dwarf_print_lines.c,dwarf_sort_line.c: An internal
430 function now has a leading _ and a context argument..
431 * dwarf_opaque.h: Added cc_segment_selector_size to contex structure.
432 * libdwarf.h.in: Added commentary on two-level line table functions etc.
433 2015-09-17 David Anderson
434 * dwarf.h, dwarf_alloc.c,dwarf_base_types.h,dwarf_init_finish.c,
435 dwarf_line.c,dwarf_line.h,dwarf_line2.c,dwarf_util.c,libdwarf.h.in:
436 Adding support for experimental 2-level line table.
437 2015-09-15 David Anderson
438 * dwarf_form.c(_dwarf_extract_string_offset_via_str_offsets):
439 Modified comment to reflect the current DWARF5 draft (we need not
440 guess about correctness).
441 2015-09-15 David Anderson
442 * dwarf_query.c, dwarf_form.c: We were failing
443 check for off-end-of debug_str_offsets section correctly
444 and had a dwarf_dealloc where it was not wanted.
445 2015-09-15 David Anderson
446 * dwarf_query.c(_dwarf_extract_address_from_debug_addr): At line 540
447 we were deleting a dwarf_error that might not be there.
448 Now conditional on DW_DLV_ERROR. This and around line 605
449 are the very rare situation we can turn one error code off
450 and possibly or definitely substitute another error.
451 Normally we just return the original error as the
452 'lowest level error.'
453 2015-09-15 David Anderson
454 * dwarf_elf_access.c: Added conditional
455 R_MIPS_64 and R_MIPS_TLS_TPREL64 defines
456 as the headers I have for freebsd 32bit VM
457 do not define those and we need them for
458 testinga couple object files.
459 2015-09-15 Carlos Alberto Enciso
460 * dwarf_elf_access.c: For Windows version,
461 some compilers generate
462 EM_PPC64 elf type, but the generated code is 32 bits.
463 Set the correct
464 value for 'dbg->de_pointer_size'.
465 * dwarf_init_finish.c: For Windows version,
466 remove the incorrect hard
467 code value for 'dbg->de_pointer_size'.
468 * dwgetopt.h: Add the guard 'extern "C"'.
469 2015-09-15 David Anderson and Carlos Alberto Enciso
470 * dwarf_form.c (dwarf_formsig8_const): Was failing to
471 return its return code.
472 * dwarf_xu_index.c (_dwarf_search_fission_for_offset): Was
473 failing to return its return code.
474 2015-09-14 David Anderson
475 * dwarf_form.c,dwarf_global.c,dwarf_line.c,dwarf_macro.c,dwarf_util.c:
476 Fixed indents and removed trailing whitespace.
477 2015-09-14 David Anderson
478 * libdwarf2.1.mm: Revision 2.30. Fixed awkward
479 line in UTF-8 section.
480 * libdwarf2.1.pdf: Regenerated
481 2015-09-14 David Anderson
482 * libdwarf2.1.mm: Revision 2.29. Added text
483 to Items Changed section. Added a top level
484 UTF-8 strings section.
485 * libdwarf2.1.pdf: Regenerated
486 2015-09-14 David Anderson
487 * libdwarf2.1.mm: Revision 2.28. Now describes
488 dwarf_set_tied_dbg().
489 * libdwarf2.1.pdf: Regenerated
490 2015-09-13 David Anderson
491 * libdwarf.h.in,dwarf_error.c: New error code for
492 improved string checking.
493 * dwarf_form.c,dwarf_string.c:Now call the string checker
494 on all strings and do a more thorough check.
495 * dwarf_util.c, dwarf_util.h: Revised the interfaces to the
496 string checker to make it more useful and accurate.
497 2015-09-12 David Anderson
498 * dwarf_die_deliv.c,dwarf_form.c,dwarf_opaque.h,
499 dwarf_original_elf_init.c,dwarf_query.c,dwarf_tied.c:
500 Now we can find addresses in the base from the dwp.
501 2015-09-11 David Anderson
502 * Makefile.in: clean now removes test executable ./dwarftied
503 * dwarf.h: Adding DW_AT_GNU_macros attribute, 0x2119.
504 2015-09-11 David Anderson
505 * dwarf.h: Adding DW_AT_GNU_discriminator attribute, 0x2136.
506 2015-09-11 David Anderson
507 * Makefile.in,dwarf_alloc.c,dwarf_die_deliv.c,dwarf_error.c,dwarf_form.c,
508 dwarf_opaque.h,dwarf_original_elf_init.c,dwarf_query.ckdwarf_tied.c,
509 libdwarf.h.in: Added dwarf_tied.c and -x tied= options. So libdwarf
510 can follow DW_FORM_addrx to get the address from another object.
511 2015-09-05 David Anderson
512 * dwarf.h: Fixed indentation of two lines with the 0x
513 values incorrectly indented.
514 2015-07-12 David Anderson
515 * dwarf_init_finish.c: Added commentary about .rela
516 * dwgetopt.c,dwgetopt.h,dwgetopttest.c: Use dwoptind dwoptarg etc,
517 not optind, optarg, optopt opeerror etc.
518 * gennames.h: use dwoptarg dwoptind, not optarg, optind.
519 2015-05-08 David Anderson
520 * dwarf_die_deliv.c, dwarf_frame2.c, dwarf_frame2.c,
521 dwarf_frame.c: The debugging-only #if 0 now have comments
522 so grep for 'if 0' is not alarming.
523 * dwgetopt.c,pro_forms.c,pro_section.c: Removed unused code
524 bracketed with '#if 0'.
525 2015-05-01 David Anderson
526 * dwarf.h: Added DW_DEFAULTED* and DW_IDX* DWARF5 macros.
527 * dwarf_abbrev.c: Expanded comments about the interface
528 used by dwarfdump -a.
529 It is NOT guaranteed to work on all objects.
530 It continues to work usefully on a plain .o .
531 * dwarf_alloc.h: Added code to clean when there
532 are fission package file sections .debug_cu_index or
533 .debug_tu_index.
534 * dwarf_die_deliv.c: Significant changes to internals to support
535 DWARF5 debug fission dwp package objects.
536 Added dwarf_die_from_hash_signature() which lets one
537 find DWP DIE information from a hash signature.
538 * dwarf_error.c: Fifteen new DW_DLE* error messages added related
539 to new DWARF5 sections and to debug fission package files.
540 * dwarf_form.c: New commentary about offsets rrelated to
541 DWP package files. New interface dwarf_formsig8_const()
542 to read the DW_FORM_data8 a DW_AT_dwo_id uses.
543 * dwarf_global.c: Added commentary about an old interface
544 and DWARF5 (the old interface does not support DWARF5,
545 newer (but not new) interfaces do).
546 * dwarf_incl.h: Add dwarf_xu_index.h include.
547 * dwarf_init_finish.c: Removed a couple dwo-section
548 readers (they were not real) Added new DWARF5
549 section readers and the appropriate .dwo section readers.
550 * dwarf_line.c,dwarf_loc.c: Added support for getting the correct line
551 * dwarf_macro.c: Added comment that .debug_macinfo
552 section not supported in DWP
553 Package File (and .debug_macinfo is not in DWARF5).
554 section offset in a DWP package file.
555 * dwarf_opaque.h: Many New fields for the new sections
556 and DWP Package File support.
557 Various new functions (libdwarf internal) for the
558 new sections.
559 * dwarf_query.c: Added support for DWP Package File offsets.
560 * dwarf_tsearch.h: Added ifndef DWARF_TSEARCH so #include
561 more than once does not lead to difficulty.
562 * dwarf_util.c: Added support for DWP Package File data.
563 * dwarf_xu_index.c: Added support for DWP Package File data
564 so it can all be read properly.
565 * dwarf_xu_index.h: Added ifndef DWARF_XU_INDEX_H so #include
566 more than once does not lead to difficulty.
567 * libdwarf.h.in: Added dwarf_get_IDX_name() and
568 dwarf_get_IDX_name(). Added fifteen new DW_DLE error codes.
569 New function dwarf_die_from_hash_signature().
570 * libdwarf2.1.mm: Rev 2.27. Documented interfaces
571 dwarf_next_cu_header_d(),dwarf_die_from_hash_signature(),
572 dwarf_get_debugfission_for_die(),dwarf_get_debugfission_for_key().
573 * libdwarf2.1.pdf: Regenerated.
574 2015-04-23 David Anderson
575 * dwarf.h: Delete spurious blank lines.
576 * dwarf_base_types.h: New defines. DW_CIE_VERSION* DW_CU_VERSION**
577 DW_ARANGES_VERSION* DW_LINE_VERSION* DW_LOC_VERSION*
578 DW_LINE_STR_VERSION5, DW_MACRO_VERSION5,
579 DW_LINE_LOC, DW_NAMES_VERSION5, DW_PUBNAMES_VERSION*,
580 DW_PUBTYPES_VERSION*, DW_STR_OFFSETS_VERSION5,
581 DW_SUP_VERSION*, DW_CU_INDEX_VERSION5,
582 DW_TU_INDEX_VERSION5, making version comparisons
583 more precise and including DWARF5.
584 * dwarf_arange.c: CURRENT_VERSION_STAMP -> DW_ARANGES_VERSION2
585 * dwarf_die_deliv.c,dwarf_global.c,dwarf_line.c, : Use the new
586 DW_*_VERSION* version names.
587 * dwarf_init_finish.c: Added to 3 comments.
588 * dwarf_loc.c: Use the new DW_*_VERSION* version names.
589 Use a local variable to simpify some comparisons
590 for readability.
591 * dwarf_opaque.h: Update the comments about version numbers.
592 Added new comments foreshadowing changes for DebugFission
593 and DWP. REMOVE CURRENT_VERSION_STAMP* macros as they
594 are no longer used.
595 2015-03-10 David Anderson
596 * dwgetopt.c: Was mishandling options
597 missing their required argument.
598 2015-03-09 David Anderson
599 * dwgetopt.c: Fixed a bug in handling options.
600 See dwarfdump build for testing code
601 and test runs for dwgetopt.c
602 2015-02-22 David Anderson
603 * dwgetopt.h, dwgetopt.c: Copied from dwarfdump so
604 libdwarf can compile without dwarfdump source present.
605 * Makefile.in: Builds dwgetopt.o
606 * gennames.c: Now uses dwgetopt.o
607 2015-02-12 David Anderson
608 * dwarf_original_elf_init.c(dwarf_elf_init_file_ownership):
609 When dwarf_elf_object_access_init() returns DW_DLV_ERROR
610 the Dwarf_Error was not getting set. Now it is set.
611 2015-02-04 David Anderson
612 * dwarf.h: Added new TAGs etc from DWARF5. Since DWARF5 is
613 not a completed standard these new things could change.
614 * dwarf_die_deliv.c: Refactored calculation of end_of CU
615 to ensure uniformity. Added checks to catch attempts
616 to read past end and coredump (can happen when the DWARF is
617 erroneous). Notice when bogus attribute wraps memory
618 so the next DIE would be at an earlier address in memory
619 than the current die (DW_DLE_NEXT_DIE_LOW_ERROR).
620 * dwarf_error.c: DW_DLE_NEXT_DIE_LOW_ERROR error code added.
621 * dwarf_form.c: Added check to ensure we do not run off the
622 end of the string section (.debug_str).
623 * dwarf_opaque.h: Declare new internal
624 function _dwarf_calculate_section_end_ptr().
625 * dwarf_query.c(dwarf_attrlist):
626 A little bit of refactoring/reordering done to catch
627 errors.
628 Created new function _dwarf_calculate_section_end_ptr().
629 * dwarf_xu_index.c: Removed trailing space, one line..
630 * libdwarf.h.in: Added define of DW_DLE_NEXT_DIE_LOW_ERROR.
631 2015-01-31 David Anderson
632 * Makefile.in,common.c,common.h,dwarf_abbrev.c,dwarf_abbrev.h,
633 dwarf_addr_finder.c,dwarf_alloc.c,dwarf_alloc.h,dwarf_arange.c,
634 dwarf_arange.h,dwarf_base_types.h,dwarf_die_deliv.c,dwarf_die_deliv.h,
635 dwarf_elf_access.c,dwarf_elf_access.h,dwarf_error.h,dwarf_form.c,
636 dwarf_frame.c,dwarf_frame.h,dwarf_frame2.c,dwarf_frame3.c,dwarf_funcs.c,
637 dwarf_funcs.h,dwarf_gdbindex.c,dwarf_global.c,dwarf_global.h,
638 dwarf_incl.h,dwarf_leb.c,dwarf_line.c,dwarf_line.h,dwarf_line2.c,
639 dwarf_loc.c,dwarf_loc.h,dwarf_macro.c,dwarf_macro.h,
640 dwarf_opaque.h,dwarf_original_elf_init.c,dwarf_print_lines.c,
641 dwarf_pubtypes.c,dwarf_query.c,dwarf_ranges.c,dwarf_reloc_arm.h:
642 Removed obsolete postal address and oss.sgi.com address
643 from copyright.
644
645 2015-01-30 David Anderson
646 * dwarf_init_finish.c: Now uses Dwarf_Sig8 for .debug_cu_index.
647 * dwarf_opaque.h: Use Dwarf_Sig8 for the dfp_hash field.
648 * libdwarf.h.in: dwarf_get_xu_hash_entry() uses Dwarf_Sig8 now.
649 2015-01-30 David Anderson
650 * dwarf.h: Adding some DWARF5 defines.
651 Use with caution: DWARF5 is not yet final.
652 * gennames.c: Local array needed to be bigger
653 due to a longer attribute list.
654 2015-01-28 David Anderson
655 * libdwarf2.1.mm: Fixed .H 2 to .H 3 on
656 dwarf_get_TAG_name etc.
657 Removed duplication of 3 lines of
658 Global Namespace operations.
659 Added doc of dwarf_dwarf_get_debug_str_index()
660 and fixed a level 2 header (starting the quoted
661 string with a period caused trouble in the
662 output).
663 * libdwarf2.1.pdf. Regenerated. Version 2.25.
664 2015-01-25 David Anderson
665 * dwarf_form.c(dwarf_convert_to_global_offset): Removed
666 yesterday's change. The cu_context offset value
667 already has debugfission offset built in.
668 2015-01-24 David Anderson
669 * dwarf_form.c: dwarf_convert_to_global_offset() was not
670 accounting for debugfission data (dwp).
671 * dwarf_die_deliv.c(dwarf_offdie_b): Was not adding
672 cc_extension_size into cu header offset (cc_extension_size
673 is rarely non-zero, but its omission was a bug here).
674 * dwarf_util.h: Improved a line of commentary.
675 2015-01-21 David Anderson
676 * Makefile.in: Now with separate dwarf_names.h and dwarf_names.c
677 rules so parallel make works properly.
678 * dwarf.h: Improved the comment on DW_SECT_TYPES as that
679 is not actually part of DWARF5 but is reserved.
680 * dwarf_die_deliv.c: Added dwarf_get_debugfission_for_die().
681 Now dwarfdump and other clients can access
682 and print fission data for a specific CU easily.
683 * dwarf_init_finish.c(load_debugfission_tables): Deleted
684 unused local variable.
685 * dwarf_opaque.h: Now uses libdwarf.h DW_FISSION_SECT_COUNT
686 for clarity (libdwarf-only name).
687 * libdwarf.h.in: Add DW_DLE_FISSION_VERSION_ERROR as part
688 of error checking. Add prototype for
689 dwarf_get_debugfission_for_die() and declare its struct argument.
690 2015-01-18 David Anderson
691 * dwarf_abbrev.c: Added comment, debugfission not supported
692 in the non-cu-specific interface.
693 * dwarf_alloc.c, dwarf_base_types.h: Add DW_DLA_FISSION_PERCU support.
694 * dwarf_die_deliv.c: Added _dwarf_get_fission_addition_die()
695 and _dwarf_get_fission_addition() for debugfission support.
696 * dwarf_error.c: Add DW_DLE_FISSION_INDEX_WRONG error string.
697 * dwarf_form.c: Add debugfission support for str_offsets.
698 * dwarf_init_finish.c: Load debugfission tables if such exist
699 in an object.
700 * dwarf_line.c: Add debugfission support for .debug_line.dwo
701 * dwarf_loc.c: Add debugfission support for .debug_loc.dwo
702 * dwarf_macro.c: Add comment that debugfission not supported
703 in the non-CU-specific interface.
704 * dwarf_opaque.h: Add structures for debugfission:
705 Dwarf_Fission_Offsets_s,Dwarf_Fission_Per_CU_s,
706 Dwarf_Fission_Section_Offset_s.
707 declare the new functions in dwarf_die_deliv.c
708 * dwarf_util.c: Remove a few lines of traling whitespace.
709 * dwarf_uxu_index.c: Correct bogus formatting.
710 * libdwarf.h.in: Add DW_DLE_FISSION_INDEX_WRONG .
711 2015-01-12 David Anderson
712 * dwarf_init_finish.c(_dwarf_setup): Move freeresult
713 declaration before statements.
714 * dwarf_util.c: Add comments about va_end().
715 2015-01-11 David Anderson
716 * dwarf_init_finish.c(_dwarf_setup): For all returns
717 in _dwarf_setup() free the sections malloc space.
718 2015-01-08 David Anderson
719 * cmplrs/dwarf_addr_finder.h: Fix a comment and remove a trailing
720 whitespace.
721 * dwarf.h: Blank line added accidentally.
722 * dwarf_alloc.c: Removed trailing whitespace.
723 * dwarf_init_finish.c: Remove trailing whitespace. Fix indent.
724 * dwarf_leb.c: Remove trailing whitespace. Fix indent.
725 * dwarf_line.h: Fix macro backslash location, lining things up.
726 * dwarf_util.c: Remove trailing whitespace.
727 2015-01-06 David Anderson
728 * dwarf_alloc.c, dwarf_base_types.h, dwarf_elf_access.c,
729 dwarf_error.c,dwarf_error.h,dwarf_form.c,dwarf_init_finish.c,
730 dwarf_leb.c,dwarf_query.c,pro_section.c: Fixed indents and
731 removed trailing whitespace.
732 2015-01-06 David Anderson
733 * dwarf_frame.c( _dwarf_get_fde_info_for_a_pc_row): Cast
734 the pointer returned from _dwarf_get_alloc(), somehow
735 this cast was omitted.
736 * dwarf_alloc.c(dwarf_dealloc): Ensure a NULL
737 'space' pointer input is not touched before checking
738 if it is set.
739 * dwarf_init_finish.c(_dwarf_setup): For badly formed Elf
740 ensure we do not use stale pointers.
741 2015-01-05 David Anderson
742 * dwarf_original_elf_init.c(dwarf_finish): If the Dwarf_Debug is
743 not initialized do not use it.
744 2015-01-03 David Anderson
745 * libdwarf2p.1.mm: Somehow dwarf_transform_to_disk_form()
746 was not documented. Now it is.
747 * libdwarf2p.1.pdf: Regenerated, version 1.38.
748 2015-01-03 David Anderson
749 * dwarf_allo.c: Comment the allocation table base
750 more carefully.
751 * dwarf_base_types.h: Making DW_DLA defines more
752 readable, more consistent with other instances.
753 * libdwarf.h.in: Adding producer error codes.
754 The producer library has some places error values
755 are misidentified. Main effect: documentation.
756 * dwarf_error.c: Add the strings for the new error codes.
757 2015-01-01 David Anderson
758 * A new year begins.