1 2017-07-21 Mark Wielaard <mark@klomp.org>
3 * dwarf_line_file.c: New file.
4 * Makefile.am (libdw_a_SOURCES): Add dwarf_line_file.c.
5 * libdw.h (dwarf_line_file): New function declaration.
6 * libdw.map (ELFUTILS_0.170): New. Add dwarf_line_file.
8 2017-02-17 Ulf Hermann <ulf.hermann@qt.io>
10 * Makefile.am: Add libdw_so_LIBS to specify the archives libdw is is
11 made of, libdw_so_DEPS for libraries it depends on (including
12 libeu.a), libdw_so_LDLIBS to specify libraries libdw links against.
13 (libdw.so$(EXEEXT)): Add $(libdw_so_LDLIBS), remove enumeration of
14 library dependencies, use libdw_so_LIBS rather than relying on the
15 order of dependencies specified, add -z,relro.
17 2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
19 * libdw.h: Remove attribute macro declarations and use
20 __noreturn_attribute__ as defined in libelf.h.
22 2017-04-20 Ulf Hermann <ulf.hermann@qt.io>
24 * dwarf_begin_elf.c: Include endian.h.
26 2017-03-30 Mark Wielaard <mjw@redhat.com>
28 * dwarf_peel_type.c (dwarf_peel_type): Call dwarf_attr_integrate on
31 2016-10-22 Mark Wielaard <mjw@redhat.com>
33 * dwarf.h: Correct spelling of DW_LANG_PLI. Add compatibility define.
34 * dwarf_aggregate_size.c (array_size): Use correct spelling of
37 2016-11-02 Mark Wielaard <mjw@redhat.com>
39 * cfi.c (execute_cfi): Add fallthrough comments.
40 * encoded-value.h (encoded_value_size): Add explicit return instead
41 of relying on fallthrough.
42 * dwfl_report_elf.c (__libdwfl_elf_address_range): Add fallthrough
45 2016-10-11 Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
47 * dwarf_getpubnames.c: Remove sys/param.h include, add system.h.
48 * libdw_alloc.c: Likewise.
50 2016-07-08 Mark Wielaard <mjw@redhat.com>
52 * libdw.map (ELFUTILS_0.167): New. Add dwelf_strtab_init,
53 dwelf_strtab_add, dwelf_strtab_add_len, dwelf_strtab_finalize,
54 dwelf_strent_off, dwelf_strent_str and dwelf_strtab_free.
56 2016-02-13 Mark Wielaard <mjw@redhat.com>
58 * dwarf_getsrclines.c (read_srclines): Calculate ndirs first, then
61 2015-12-18 Mark Wielaard <mjw@redhat.com>
63 * libdwP.h (struct Dwarf): Remove sectiondata_gzip_mask.
64 (__libdw_free_zdata): Remove.
65 * dwarf_begin_elf.c (inflate_section): Remove.
66 (check_section): Remove __libdw_free_zdata calls. Use elf_compress
67 and elf_compress_gnu to decompress if necessary.
68 (valid_p): Remove __libdw_free_zdata calls.
69 (scngrp_read): Use elf_compress if section is compressed. Remove
70 __libdw_free_zdata calls.
71 * dwarf_end.c (__libdw_free_zdata): Remove.
72 (dwarf_end): Don't call __libdw_free_zdata.
74 2015-10-28 Mark Wielaard <mjw@redhat.com>
76 * libdw.map (ELFUTILS_0.165): New. Add dwelf_scn_gnu_compressed_size.
78 2015-12-02 Mark Wielaard <mjw@redhat.com>
80 * fde.c (intern_fde): Don't leak duplicate FDEs.
82 2015-12-01 Mark Wielaard <mjw@redhat.com>
84 * fde.c (intern_fde): Don't intern an fde that doesn't cover a
87 2015-12-01 Mark Wielaard <mjw@redhat.com>
89 * dwarf_end.c (dwarf_end): Call cu_free on fake_loc_cu if it exists.
91 2015-10-14 Chih-Hung Hsieh <chh@google.com>
93 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Move recursive
94 functions 'add_bkpt', 'entrypc_bkpt', and 'search_range' to file scope.
96 2015-10-14 Chih-Hung Hsieh <chh@google.com>
98 * libdw_visit_scopes.c (__libdw_visit_scopes): Move recursive nested
99 function 'walk_children' to file scope; inline 'recurse' at its call
102 2015-10-19 Mark Wielaard <mjw@redhat.com>
104 * frame-cache.c (__libdw_destroy_frame_cache): Call ebl_closebackend
107 2015-10-16 Dmitry V. Levin <ldv@altlinux.org>
109 * dwarf_getsrclines.c (read_srclines): Initialize state early.
111 2015-10-13 Chih-Hung Hsieh <chh@google.com>
113 * dwarf_getsrclines.c (read_srclines): Move nested functions
114 'advance_pc' and 'add_new_line' to file scope and keep many
115 local state variables within one structure.
117 2015-10-13 Chih-Hung Hsieh <chh@google.com>
119 * dwarf_getscopevar.c (dwarf_getscopevar): Move nested
120 function 'file_matches' to file scope.
122 2015-10-16 Mark Wielaard <mjw@redhat.com>
124 * Makefile.am (libdw.so): Add -lz.
126 2015-10-14 Chih-Hung Hsieh <chh@google.com>
128 * cfi.c (execute_cfi): Move nested functions 'enough_registers'
129 and 'require_cfa_offset' to file scope.
131 2015-10-09 Josh Stone <jistone@redhat.com>
133 * dwarf_begin.c (dwarf_begin): Replace stat64 and fstat64 with stat
136 2015-10-05 Josh Stone <jistone@redhat.com>
138 * Makefile.am (libdw.so): Add AM_V_CCLD and AM_V_at silencers.
140 2015-09-24 Jose E. Marchesi <jose.marchesi@oracle.com>
142 * Makefile.am (AM_CFLAGS): Use -fPIC instead of -fpic to avoid
143 relocation overflows in some platforms.
145 2015-09-23 Mark Wielaard <mjw@redhat.com>
147 * dwarf_error.c (__libdw_seterrno): Mark as internal_function.
148 * dwarf_formref.c (__libdw_formref): Likewise.
149 * libdw_findcu.c (__libdw_findcu): Likewise.
150 * libdw_visit_scopes.c (__libdw_visit_scopes): Likewise.
152 2015-09-22 Mark Wielaard <mjw@redhat.com>
154 * *.c: Remove old-style function definitions.
156 2015-09-15 Mark Wielaard <mjw@redhat.com>
158 * dwarf_peel_type.c (dwarf_peel_type): Don't reassign result pointer.
160 2015-09-09 Chih-Hung Hsieh <chh@google.com>
162 * dwarf_macro_getsrcfiles.c (dwarf_macro_getsrcfiles): Remove
163 redundant NULL tests on parameters declared with __nonnull_attribute__.
164 * dwarf_siblingof.c (dwarf_siblingof): Likewise.
165 * libdw_visit_scopes.c (__libdw_visit_scopes): Likewise.
167 2015-09-04 Chih-Hung Hsieh <chh@google.com>
168 Mark Wielaard <mjw@redhat.com>
170 * dwarf_getlocation.c (getlocations_addr): Replace K&R function
171 definition with ansi-C definition and add const qualifier to
174 2015-09-04 Chih-Hung Hsieh <chh@google.com>
176 * libdw_findcu.c (__libdw_intern_next_unit): Replace K&R function
177 definition with ansi-C definitions.
178 (__libdw_findcu): Likewise.
180 2015-08-25 Mark Wielaard <mjw@redhat.com>
182 * dwarf.h: Add DW_LANG_Haskell.
184 2015-06-18 Mark Wielaard <mjw@redhat.com>
186 * dwarf_begin_elf.c (dwarf_begin_elf): Assert page size is big enough
189 2015-06-18 Mark Wielaard <mjw@redhat.com>
191 * dwarf_getpubnames.c (get_offsets): Always free mem on error.
193 2015-06-18 Mark Wielaard <mjw@redhat.com>
195 * dwarf_getmacros.c (get_macinfo_table): Return NULL when
196 dwarf_formudata reports an error.
197 (get_table_for_offset): Likewise.
199 2015-06-08 Mark Wielaard <mjw@redhat.com>
201 * dwarf_getsrclines.c (read_srclines): Initialize dirarray early.
203 2015-06-06 Mark Wielaard <mjw@redhat.com>
205 * dwarf_getsrclines.c (read_srclines): Initialize filelist early.
207 2015-05-27 Mark Wielaard <mjw@redhat.com>
209 * encoded-value.h (read_encoded_value): Check data d_size contains
210 at least enough data to hold a pointer for DW_EH_PE_indirect.
212 2015-05-22 Mark Wielaard <mjw@redhat.com>
214 * dwarf_getsrclines.c (read_srclines): Limit stack usage of lines
215 with MAX_STACK_LINES, files with MAX_STACK_LINES and dirs with
216 MAX_STACK_DIRS. Calculate number of dirs needed first, then
217 create dirarray directly, without needing the next field. Free
218 not stack allocated lines and files at the end.
220 2015-05-19 Mark Wielaard <mjw@redhat.com>
222 * dwarf_getlocation.c (__libdw_intern_expression): Create a stack
223 allocated array to hold locs. Allocate locs bigger than the array
224 with malloc and free them when done.
226 2015-05-11 Jonathan Lebon <jlebon@redhat.com>
228 * libdwP.h (DWARF_E_COMPRESSED_ERROR): New enumerator.
229 * dwarf_error.c (errmsgs): Add DWARF_E_COMPRESSED_ERROR message.
230 * dwarf_begin_elf.c (inflate_section): New static function, lifted
232 (check_section): ... here. Call inflate_section, set libdw errno to
233 DWARF_E_COMPRESSED_ERROR if .debug_info section couldn't be inflated.
235 2015-05-11 Jonathan Lebon <jlebon@redhat.com>
237 * dwarf_begin_elf.c (check_section): Add compressed flag. Always
238 check for .zdebug sections. Only wrap decompression in #if USE_ZLIB.
240 2015-05-06 Mark Wielaard <mjw@redhat.com>
242 * dwarf_getsrclines.c (read_srclines): Use an int64_t to store and
243 check the line number.
245 2015-05-05 Mark Wielaard <mjw@redhat.com>
247 * dwarf_getaranges.c (dwarf_getaranges): Check there is enough data
248 left before reading values.
250 2015-05-04 Anthony G. Basile <blueness@gentoo.org>
252 * Makefile.am (libdw_so_SOURCES): Append $(argp_LDADD) to link
255 2015-04-22 Mark Wielaard <mjw@redhat.com>
257 * memory-access.h (__libdw_max_len_leb128): Take type_len as argument.
258 (__libdw_max_len_uleb128): New function.
259 (__libdw_max_len_sleb128): Likewise.
260 (__libdw_get_uleb128): Use __libdw_max_len_uleb128.
261 (__libdw_get_sleb128): Use __libdw_max_len_sleb128.
263 2015-04-21 Mark Wielaard <mjw@redhat.com>
265 * dwarf_getmacros.c (read_macros): Allocate attributes dynamically
266 when there are more than 8.
268 2015-04-01 Petr Machata <pmachata@redhat.com>
270 * libdwP.h (DWARF_E_NOT_CUDIE): New enumerator.
271 (is_cudie): New function.
272 * dwarf_error.c (errmsgs): Add message for DWARF_E_NOT_CUDIE.
273 * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Call is_cudie instead
274 of white-listing valid tags.
275 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
277 2015-03-18 Petr Machata <pmachata@redhat.com>
279 * Makefile.am (pkginclude_HEADERS): Add known-dwarf.h.
280 (EXTRA_DIST): Remove known-dwarf.h.
282 2015-02-09 Mark Wielaard <mjw@redhat.com>
284 * dwarf.h: Add DW_LANG_Fortran03 and DW_LANG_Fortran08.
285 * dwarf_aggregate_size.c (array_size): Recognize array lower bound
286 for new Fortran language codes is 1.
288 2015-02-09 Mark Wielaard <mjw@redhat.com>
290 * dwarf.h: Add DW_TAG_atomic_type.
291 * libdw.h (dwarf_peel_type): Document DW_TAG_atomic_type.
292 * dwarf_peel_type.c (dwarf_peel_type): Handle DW_TAG_atomic_type.
294 2015-02-11 Josh Stone <jistone@redhat.com>
296 * encoded-value.h (read_encoded_value): Initialize value.
298 2015-02-11 Petr Machata <pmachata@redhat.com>
300 * dwarf_ranges.c (dwarf_ranges): Do not bail out when neither
301 DW_AT_entry_pc nor DW_AT_low_pc are available. Instead remember
302 the fact in *BASEP and bail out later if it hasn't been updated by
303 __libdw_read_begin_end_pair_inc.
305 2014-12-24 Mark Wielaard <mjw@redhat.com>
307 * dwarf_getsrc_die.c (dwarf_getsrc_die): Return the last line record
308 smaller than or equal to addr, rather than returning immediately on
311 2015-01-07 Mark Wielaard <mjw@redhat.com>
313 * cfi.h (struct Dwarf_CFI_s): Add search_table_len.
314 * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Check there is enough
315 room in the search table for all entries. Store search_table_len.
316 (getcfi_scn_eh_frame): Likewise.
317 * encoded-value.h (encoded_value_size): Don't abort, return zero.
318 (__libdw_cfi_read_address_inc): Check there is enough room to read
319 values. Pass other byte order to read functions.
320 (read_encoded_value): Check encoded_value_size. Don't abort, but
321 set libdw errno and report failure. Check there is enough room to
323 * fde.c (binary_search_fde): Check encoded value size. Add hdr
324 data buf and size to dummy_cfi.
326 2015-01-04 Mark Wielaard <mjw@redhat.com>
328 * dwarf_siblingof.c (dwarf_siblingof): Check sibling attribute
329 is after current DIE.
331 2015-01-04 Mark Wielaard <mjw@redhat.com>
333 * cfi.c (enough_registers): Check reg < INT32_MAX / sizeof
334 (dwarf_frame_register).
336 2015-01-02 Mark Wielaard <mjw@redhat.com>
338 * dwarf_getcfi_elf.c (parse_eh_frame_hdr): Add size check.
339 (getcfi_gnu_eh_frame): Remove size check. Check d_buf is not NULL.
340 (getcfi_scn_eh_frame): Check d_buf is not NULL.
342 2015-01-02 Mark Wielaard <mjw@redhat.com>
344 * dwarf_getlocation.c (__libdw_intern_expression): Check dbg is not
345 NULL for DW_OP_call_ref and DW_OP_GNU_implicit_pointer. For
346 DW_OP_addr if dbg is NULL then read argument directly.
348 2015-01-14 Jason P. Leasure <jpleasu@super.org>
350 * dwarf_formref_die.c (dwarf_formref_die): Offset is cu->type_offset
353 2014-12-27 Mark Wielaard <mjw@redhat.com>
355 * dwarf_siblingof.c (dwarf_siblingof): Check sibling attribute offset
356 still falls inside CU data.
358 2015-01-11 Mark Wielaard <mjw@redhat.com>
360 * dwarf_func_inline.c (dwarf_func_inline_instances): Call
361 __libdw_visit_scopes with NULL imports.
362 * dwarf_getfuncs.c (dwarf_getfuncs): Likewise.
363 * dwarf_getscopes.c (pc_record): Likewise.
364 (dwarf_getscopes): Likewise.
365 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
366 * libdwP.h (__libdw_visit_scopes): Add imports argument.
367 * libdw_visit_scopes.c (__libdw_visit_scopes): Likewise. Add new
368 function imports_contains. Push and pop imports around walk_children
369 when processing DW_TAG_imported_unit.
371 2014-12-18 Ulrich Drepper <drepper@gmail.com>
373 * Makefile.am: Suppress output of textrel_check command.
375 2014-12-16 Mark Wielaard <mjw@redhat.com>
377 * dwarf_getsrclines.c (read_srclines): Check diridx is valid under
380 2014-12-16 Mark Wielaard <mjw@redhat.com>
382 * dwarf_getpubnames.c (dwarf_getpubnames): Make sure there is enough
383 space to read die offset.
385 2014-12-16 Mark Wielaard <mjw@redhat.com>
387 * dwarf_getsrclines.c (read_srclines): Correct overflow check for
390 2014-12-15 Mark Wielaard <mjw@redhat.com>
392 * dwarf_getpubnames.c (get_offsets): Make sure whole unit fall inside
393 section data. Set error to DWARF_E_NO_ENTRY if cnt is zero.
394 (dwarf_getpubnames): Make sure section data contains string zero
397 2014-12-16 Mark Wielaard <mjw@redhat.com>
399 * memory-access.h (__libdw_get_sleb128): Unroll the first step to help
400 the compiler optimize for the common single-byte case.
402 2014-12-15 Josh Stone <jistone@redhat.com>
404 * memory-access.h (__libdw_max_len_leb128): New.
405 (__libdw_get_uleb128): Use __libdw_max_len_leb128.
406 (__libdw_get_sleb128): Likewise.
408 2014-12-14 Mark Wielaard <mjw@redhat.com>
410 * cfi.c (execute_cfi): Add program bounds checks.
411 * dwarf_child.c (__libdw_find_attr): Add attrp bounds checks.
412 * dwarf_formblock.c (dwarf_formblock): Call get_uleb128 with endp.
413 * dwarf_formref.c (__libdw_formref): Add datap bounds checks.
414 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
415 * dwarf_formudata.c (dwarf_formudata): Likewise.
416 * dwarf_frame_register.c (dwarf_frame_register): Call get_uleb128
417 with end of data buf.
418 * dwarf_getabbrev.c (__libdw_getabbrev): Add abbrevp bounds checks.
419 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Assume get_uleb128
420 call gets enough data.
421 * dwarf_getattrs,c (dwarf_getattrs): Call get_uleb128 with endp.
422 * dwarf_getlocation.c (store_implicit_value): Call get_uleb128
424 (__libdw_intern_expression): Call get_uleb128/get_sleb128 with
426 * dwarf_getmacros.c (get_table_for_offset): Add nforms bounds check.
427 * dwarf_getsrclines.c (read_srclines): Bounds check linep and call
428 get_uleb128 with lineendp.
429 * dwarf_hasattr.c (dwarf_hasattr): Bounds check attrp and call
430 get_uleb128 with endp.
431 * dwarf_next_cfi.c (dwarf_next_cfi): Bounds check bytes and call
432 get_uleb128/get_sleb128 with limit.
433 * encoded-value.h (read_encoded_value): Assume get_uleb128 and
434 get_sleb128 get called with enough data.
435 * fde.c (intern_fde): Call get_uleb128 with instructions_end.
436 * libdwP.h (__libdw_dieabbrev): Call get_uleb128 with die->cu->endp.
437 * libdw_form.c (__libdw_form_val_compute_len): Call get_uleb128 with
439 * memory-access.h (__libdw_get_uleb128): Take an extra endp.
440 Don't call get_uleb128_step if out of data.
441 (__libdw_get_sleb128): Likewise for get_sleb128_step.
443 2014-12-12 Mark Wielaard <mjw@redhat.com>
445 * libdwP.h (struct Dwarf): Add fake_loc_cu.
447 (DIE_OFFSET_FROM_CU_OFFSET): Don't use cu_data, use cu_sec_idx.
448 (__libdw_form_val_compute_len): Drop dbg and endp arguments.
449 (__libdw_form_val_len): Likewise.
450 * libdw_form.c (__libdw_form_val_compute_len): Likewise.
451 * libdw_findcu.c (__libdw_intern_next_unit): Don't use cu_data, use
452 the already found data buffer directly.
453 * dwarf_begin_elf.c (valid_p): Setup fake_loc_cu.
454 * dwarf_end.c (dwarf_end): Free fake_loc_cu.
455 * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len with
457 * dwarf_getattrs.c (dwarf_getattrs): Likewise.
458 * dwarf_formblock.c (dwarf_formblock): Add bounds checking.
459 * dwarf_getlocation_attr.c (attr_form_cu): New function.
460 (dwarf_getlocation_attr): Use attr_form_cu to set result->cu.
461 (getlocation): Handle empty blocks immediately.
462 * dwarf_getlocation_implicit_pointer.c (empty_cu): New static var.
463 (__libdw_empty_loc_attr): Drop cu argument, use empty_cu.
464 (dwarf_getlocation_implicit_pointer): Call __libdw_empty_loc_attr with
466 * dwarf_getmacros.c (read_macros): Also setup startp and endp for
467 fake_cu. Call __libdw_form_val_len with just fake_cu.
468 * dwarf_formref_die.c (dwarf_formref_die): Don't use cu_data, get
469 datap and size directly from cu startp and endp.
471 2014-12-11 Mark Wielaard <mjw@redhat.com>
473 * libdw_findcu.c (__libdw_intern_next_unit): Sanity check offset.
475 2014-12-13 Mark Wielaard <mjw@redhat.com>
477 * dwarf_getaranges.c (compare_aranges): Make sure Dwarf_Addr
478 difference doesn't wrap around before returning as int.
480 2014-12-11 Josh Stone <jistone@redhat.com>
482 * dwarf_getsrclines.c (struct linelist): Add sequence.
483 (compare_lines): Take linelists, and break ties by sequence.
484 (read_srclines): Use linelists for sorting.
485 (read_srclines::add_new_line): Set sequence.
487 2014-12-10 Josh Stone <jistone@redhat.com>
489 * libdwP.h (Dwarf_CU): Add startp and endp boundaries.
490 * libdw_findcu.c (__libdw_intern_next_unit): Set startp and endp.
491 * dwarf_child.c (dwarf_child): Use cu->endp.
492 * dwarf_cuoffset.c (dwarf_cuoffset): Use cu->startp.
493 * dwarf_dieoffset.c (dwarf_dieoffset): Use cu->startp.
494 * dwarf_siblingof.c (dwarf_siblingof): Use both.
496 2014-12-10 Josh Stone <jistone@redhat.com>
498 * dwarf_hasattr.c (dwarf_hasattr): Just walk abbrev for presence.
500 2014-12-10 Josh Stone <jistone@redhat.com>
502 * libdwP.h (__libdw_dieabbrev): New die->abbrev lookup function.
503 * dwarf_child.c (__libdw_find_attr, dwarf_child): Use it.
504 * dwarf_getattrs.c (dwarf_getattrs): Likewise.
505 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
506 * dwarf_tag.c (dwarf_tag): Likewise.
508 2014-12-04 Mark Wielaard <mjw@redhat.com>
510 * libdwP.h (__libdw_form_val_compute_len): Add endp argument.
511 (__libdw_form_val_len): Likewise and check len doesn't overflow.
512 * libdw_form.c (__libdw_form_val_compute_len): Likewise.
513 * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len
515 * dwarf_getattrs.c (dwarf_getattrs): Likewise.
516 * dwarf_getmacros.c (read_macros): Likewise and check for errors.
518 2014-12-02 Petr Machata <pmachata@redhat.com>
520 * dwarf_getmacros.c (token_from_offset, offset_from_token): New
522 (do_dwarf_getmacros_die): Merge into dwarf_getmacros.
523 * libdw.h (DWARF_GETMACROS_START): New macro.
525 2014-11-27 Mark Wielaard <mjw@redhat.com>
527 * Makefile.am (libdw.so): Use textrel_check.
529 2014-11-27 Mark Wielaard <mjw@redhat.com>
531 * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Initialize
532 search_table_entries and search_table_encoding.
534 2014-11-24 Mark Wielaard <mjw@redhat.com>
536 * dwarf_getsrclines.c (read_srclines): Check line_range is not zero
539 2014-11-23 Mark Wielaard <mjw@redhat.com>
541 * dwarf_attr.c (dwarf_attr): Check __libdw_find_attr return value.
542 * dwarf_hasattr.c (dwarf_hasattr): Likewise.
543 * dwarf_siblingof.c (dwarf_siblingof): Likewise.
545 2014-11-23 Mark Wielaard <mjw@redhat.com>
547 * dwarf_getabbrev.c (__libdw_getabbrev): Don't assert on bad DWARF.
548 Set libdw errno and return NULL.
550 2014-11-24 Mark Wielaard <mjw@redhat.com>
552 * dwarf.h (DW_LANG_C_plus_plus_11): Added.
553 (DW_LANG_C11): Likewise.
554 (DW_LANG_C_plus_plus_14): Likewise.
555 * dwarf_aggregate_size.c (array_size): Handle DW_LANG_C11,
556 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14 and DW_LANG_Go
558 * dwarf_getfuncs.c (dwarf_getfuncs): Set c_cu to true for
561 2014-11-26 Mark Wielaard <mjw@redhat.com>
563 * dwarf.h (DW_AT_noreturn): Added.
565 2014-11-11 Mark Wielaard <mjw@redhat.com>
567 * dwarf_getsrclines.c (read_srclines): Do address_size comparison
568 explicitly as uint8_t.
569 (__libdw_getsrclines): Add internal_function to declaration.
571 2014-09-10 Petr Machata <pmachata@redhat.com>
573 * dwarf_macro_getparamcnt.c: New file.
574 * dwarf_macro_param.c: New file.
575 * dwarf_macro_getsrcfiles.c: New file.
576 * Makefile.am (libdw_a_SOURCES): Add the new files.
577 * libdwP.h (struct files_lines_s): New structure.
578 (DWARF_E_INVALID_OPCODE): New enumerator.
579 (struct Dwarf): New fields macro_ops, files_lines.
580 (Dwarf_Macro_Op_Proto, Dwarf_Macro_Op_Table): New structures for
581 keeping macro opcode prototypes in.
582 (Dwarf_Macro_s): Redefine from scratch.
583 (__libdw_getsrclines, __libdw_getcompdir, libdw_macro_nforms): New
585 * dwarf_error.c (errmsgs): Add a message for
586 DWARF_E_INVALID_OPCODE.
587 * dwarf_end.c (dwarf_end): Destroy struct Dwarf.macro_ops and
589 * libdw.h (dwarf_getmacros_off, dwarf_macro_getparamcnt)
590 (dwarf_macro_getsrcfiles, dwarf_macro_param): New public
592 * dwarf_getmacros.c (dwarf_getmacros_off): New function,
593 (get_offset_from, macro_op_compare, build_table)
594 (init_macinfo_table, get_macinfo_table, get_table_for_offset)
595 (cache_op_table, read_macros, gnu_macros_getmacros_off)
596 (macro_info_getmacros_off, do_dwarf_getmacros_die): New helper
598 (dwarf_getmacros): Adjust to dispatch to the new interfaces.
599 * dwarf_getsrclines.c (read_srclines): New function with guts
600 taken from dwarf_getsrclines.
601 (__libdw_getsrclines): Likewise.
602 (__libdw_getcompdir, files_lines_compare): New functions.
603 (dwarf_getsrclines): Make it dispatch to the new interfaces.
604 * dwarf_macro_param1.c (dwarf_macro_param1): Adjust to dispatch to
606 * dwarf_macro_param2.c (dwarf_macro_param2): Likewise.
607 * libdw.map (ELFUTILS_0.161): New. Add dwarf_getmacros_off,
608 dwarf_macro_getsrcfiles, dwarf_macro_getparamcnt, dwarf_macro_param.
610 2014-10-06 Mark Wielaard <mjw@redhat.com>
612 * Makefile.am (libdw_a_SOURCES): Add dwarf_peel_type.c.
613 * dwarf_aggregate_size.c (get_type): Use dwarf_peel_type.
614 (aggregate_size): Likewise. Add old and new version.
615 * dwarf_peel_type.c: New file.
616 * libdw.h (dwarf_peel_type): New function declaration.
617 * libdwP.h (dwarf_peel_type): New internal declaration.
618 * libdw.map (ELFUTILS_0.161): New section.
620 2014-10-15 Petr Machata <pmachata@redhat.com>
622 * libdwP.h (struct Dwarf_Files_s.cu): Drop field.
623 * dwarf_getsrclines.c (dwarf_getsrclines): Don't set it.
625 2014-10-05 Mark Wielaard <mjw@redhat.com>
627 * dwarf.h: Add DW_AT_GNU_deleted.
629 2014-10-02 Mark Wielaard <mjw@redhat.com>
631 * dwarf_aggregate_size.c (aggregate_size): Return CU address_size
632 for sizeless DW_TAG_pointer_type, DW_TAG_reference_type or
633 DW_TAG_rvalue_reference_type.
635 2014-09-12 Petr Machata <pmachata@redhat.com>
637 * memory-access.h (read_ubyte_unaligned_inc): Allow only 4- and
638 8-byte quantities. Consequently, rename to...
639 (read_addr_unaligned_inc): ... this.
640 (read_sbyte_unaligned_inc, read_ubyte_unaligned): Drop.
641 (read_sbyte_unaligned): Drop.
643 2014-09-10 Petr Machata <pmachata@redhat.com>
645 * dwarf_getlocation.c (attr_ok): Also accept
646 DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value,
647 DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered.
649 2014-08-15 Mark Wielaard <mjw@redhat.com>
651 * dwarf_cu_die.c: New file.
652 * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_die.c.
653 * libdw.h (dwarf_cu_die): New function declaration.
654 * libdw.map (ELFUTILS_0.160): Add dwarf_cu_die.
656 2014-08-15 Mark Wielaard <mjw@redhat.com>
658 * dwarf_cu_getdwarf.c: New file.
659 * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_getdwarf.c.
660 * libdw.h (Dwarf_CU): New typedef.
661 (dwarf_cu_getdwarf): New function declaration.
662 * libdw.map (ELFUTILS_0.160): New. Add dwarf_cu_getdwarf.
664 2014-06-18 Mark Wielaard <mjw@redhat.com>
666 * dwarf.h: Remove DW_TAG_mutable_type.
668 2014-05-02 Mark Wielaard <mjw@redhat.com>
670 * libdwP.h (__check_build_id): Removed now unused.
672 2014-05-01 Mark Wielaard <mjw@redhat.com>
674 * libdwP.h (struct Dwarf): Remove free_alt.
675 * dwarf_end.c (dwarf_end): Don't check free_alt, don't end alt_dwarf.
676 * dwarf_setalt.c (dwarf_setalt): Don't check or set free_alt.
678 2014-04-30 Mark Wielaard <mjw@redhat.com>
680 * libdw.map (ELFUTILS_0.159): Add dwelf_elf_gnu_build_id.
682 2014-04-15 Florian Weimer <fweimer@redhat.com>
684 * dwarf_begin_elf.c (__check_build_id, try_debugaltlink)
685 (open_debugaltlink): Move to libdwfl.
686 (check_section): Do not locate alternate debuginfo.
688 2014-04-24 Florian Weimer <fweimer@redhat.com>
690 * libdw.map (ELFUTILS_0.159): Export dwelf_dwarf_gnu_debugaltlink.
692 2014-04-22 Florian Weimer <fweimer@redhat.com>
694 * dwarf_getalt.c, dwarf_setalt.c: New files.
695 * Makefile.am (libdw_a_SOURCES): Add them.
696 * libdw.h (dwarf_getalt, dwarf_setalt): Add function declarations.
697 * libdwP.h (dwarf_getalt, dwarf_setalt): Add internal function
699 * libdw.map (ELFUTILS_0.159): Export the two new functions.
701 2014-04-15 Florian Weimer <fweimer@redhat.com>
703 * libdwP.h (enum IDX_gnu_debugaltlink): New.
704 * dwarf_begin_elf.c (dwarf_scnnames): Increase string size and add
706 (check_section): Obtain .gnu_debugaltlink section from the
709 2014-04-11 Mark Wielaard <mjw@redhat.com>
711 * libdw.map (ELFUTILS_0.159): New. Add dwelf_elf_gnu_debuglink.
712 * Makefile.am (libdw.so): Depend on libdwelf_pic.a.
713 (libdwelf_objects): New variable.
714 (libdw_a_LIBADD): Add libdwelf objects.
716 2014-04-22 Mark Wielaard <mjw@redhat.com>
718 * memory-access.h (get_sleb128_step): Remove undefined behavior
719 of left shifting a signed value. Replace it with a multiplication.
721 2014-04-13 Mark Wielaard <mjw@redhat.com>
723 * Makefile.am: Remove !MUDFLAP conditions.
725 2014-04-09 Mark Wielaard <mjw@redhat.com>
727 * dwarf_begin_elf.c (check_section): Check for unsigned overflow
728 before calling malloc to uncompress data.
730 2014-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
732 Fix abort() on missing section headers.
733 * dwarf_begin_elf.c (check_section): Replace abort call by goto err.
734 New label err to return NULL.
736 2014-02-05 Josh Stone <jistone@redhat.com>
738 * dwarf_decl_file.c (dwarf_decl_file): Read the idx as unsigned.
739 * dwarf_decl_line.c (__libdw_attr_intval): Read the line/column as
740 unsigned. Change the range assert to DWARF_E_INVALID_DWARF.
742 2013-12-30 Mark Wielaard <mjw@redhat.com>
744 * libdw.map (ELFUTILS_0.158): Add dwfl_core_file_attach and
745 dwfl_linux_proc_attach.
747 2013-12-20 Mark Wielaard <mjw@redhat.com>
749 * libdw.map (ELFUTILS_0.158): Add dwfl_getthread_frames.
751 2013-12-18 Mark Wielaard <mjw@redhat.com>
753 * libdw.map (ELFUTILS_0.158): Remove dwfl_module_addrsym_elf and
754 dwfl_module_getsym_elf. Add dwfl_module_addrinfo and
755 dwfl_module_getsym_info.
757 2013-12-16 Mark Wielaard <mjw@redhat.com>
759 * libdw.map (ELFUTILS_0.158): Add dwfl_module_getsymtab_first_global.
761 2013-12-10 Josh Stone <jistone@redhat.com>
763 * memory-access.h (get_uleb128_rest_return): Removed.
764 (get_sleb128_rest_return): Removed.
765 (get_uleb128_step): Make this a self-contained block.
766 (get_sleb128_step): Ditto, and use a bitfield to extend signs.
767 (get_uleb128): Make this wholly implemented by __libdw_get_uleb128.
768 (get_sleb128): Make this wholly implemented by __libdw_get_sleb128.
769 (__libdw_get_uleb128): Simplify and inline for all callers.
770 (__libdw_get_sleb128): Ditto.
771 * dwarf_getlocation.c (store_implicit_value): Void the unused uleb128.
772 * memory-access.c: Delete file.
773 * Makefile.am (libdw_a_SOURCES): Remove it.
774 (DEFS): Remove the now unused -DIS_LIBDW.
776 2013-12-09 Josh Stone <jistone@redhat.com>
778 * libdw_form.c (__libdw_form_val_compute_len): Renamed function from
779 __libdw_form_val_len, now handling only non-constant form lengths.
780 * libdwP.h (__libdw_form_val_len): New inlined function.
782 2013-12-09 Mark Wielaard <mjw@redhat.com>
784 * dwarf_getlocation.c (__libdw_intern_expression): Handle empty
785 location expressions.
786 * dwarf_getlocation_attr.c (dwarf_getlocation_attr): When no
787 location found, return empty location expression.
788 * dwarf_getlocation_implicit_pointer.c
789 (dwarf_getlocation_implicit_pointer): Likewise.
790 (__libdw_empty_loc_attr): New internal function.
791 * libdwP.h (__libdw_empty_loc_attr): Define.
793 2013-11-27 Mark Wielaard <mjw@redhat.com>
795 * libdw.map (ELFUTILS_0.158): Add dwfl_module_addrsym_elf and
796 dwfl_module_getsym_elf.
798 2013-11-26 Mark Wielaard <mjw@redhat.com>
800 * libdw.map (ELFUTILS_0.156): Move dwfl_attach_state, dwfl_pid,
801 dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
802 dwfl_thread_state_registers, dwfl_thread_state_register_pc,
803 dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc to ...
804 (ELFUTILS_0.158): ... here.
806 2013-11-09 Mark Wielaard <mjw@redhat.com>
808 * dwarf_getaranges.c (dwarf_getaranges): Read segment_size and
809 check that it is zero.
811 2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
813 * cfi.h (struct Dwarf_Frame_s): Make the comment more specific.
814 * libdw.map (ELFUTILS_0.156): Add dwfl_attach_state, dwfl_pid,
815 dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
816 dwfl_thread_state_registers, dwfl_thread_state_register_pc,
817 dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc.
819 2013-11-01 Michael Forney <mforney@mforney.org>
821 * Makefile.am (libdwfl_objects): New definition.
822 (libdw_a_LIBADD): Use libdwfl_objects.
824 2013-11-01 Michael Forney <mforney@mforney.org>
826 * Makefile.am: Use READELF.
828 2013-10-30 Jan Kratochvil <jan.kratochvil@redhat.com>
830 * libdw.map (ELFUTILS_0.158): New.
832 2013-10-10 Mark Wielaard <mjw@redhat.com>
834 * dwarf_getfuncs.c (struct visitor_info): Rename start_offset to
835 start_addr and rename last_offset to last_addr. Now both void *.
836 (tree_visitor): Use start_add and die_addr instead of start_offset
838 (dwarf_getfuncs): Use last_addr instead of last_offset.
840 2013-10-06 Mark Wielaard <mjw@redhat.com>
842 * cfi.c (execute_cfi): Make sure DW_CFA_expression and
843 DW_CFA_val_expression are not used with abi_cfi.
845 2013-10-03 Josh Stone <jistone@redhat.com>
847 * dwarf_formref_die.c (dwarf_formref_die): Don't hash the sig8 here.
848 * libdw_findcu.c (__libdw_intern_next_unit): Since this never revisits
849 a unit, make sure to always hash the sig8 here, so none are missed.
851 2013-09-29 Mark Wielaard <mjw@redhat.com>
853 * dwarf_getlocation.c (store_implicit_value): Cast op->number2 to
854 uintptr_t before casting to char *.
855 (__libdw_intern_expression): Cast data to uintptr_t before casting
857 * dwarf_getlocation_attr.c (dwarf_getlocation_attr): Cast
858 op->number2 to uintptr_t before casting to char *.
860 2013-09-24 Josh Stone <jistone@redhat.com>
862 * libdw_visit_scopes.c (classify_die): Removed.
863 (may_have_scopes): New function to replace classify_die. There's no
864 need for full classification; just find tags that may contain scopes.
865 (__libdw_visit_scopes): Use a direct tag comparison for imported
866 units, and use may_have_scopes to test if recursion is needed.
868 2013-09-20 Mark Wielaard <mjw@redhat.com>
870 * dwarf_getfuncs.c (visitor_info): New struct.
871 (tree_visitor): New function.
872 (dwarf_getfuncs): Use __libdw_visit_scopes with tree_visitor.
873 * libdw.h (dwarf_getfuncs): Expand function documentation.
875 2013-09-12 Mark Wielaard <mjw@redhat.com>
877 * fde.c (intern_fde): Free fde and set libdw errno when start
878 or end could not be read.
880 2013-08-24 Mark Wielaard <mjw@redhat.com>
882 * dwarf_getlocation.c (store_implicit_value): Don't take data
883 as argument, get block data from op number2. Return false when
884 block data length and op number don't match up.
885 (__libdw_intern_expression): Store start of block for
886 DW_OP_implicit_value and DW_OP_GNU_entry_value instead of
887 relative data offset. Also store block start (including length)
888 for DW_OP_GNU_const_type. Don't pass data to store_implicit_value.
889 * dwarf_getlocation_attr.c: New file.
890 * dwarf_getlocation_die.c: Likewise.
891 * libdw.h (dwarf_getlocation_die): New function definition.
892 (dwarf_getlocation_attr): Likewise.
893 * libdwP.h: Declare internal dwarf_getlocation_die.
894 * libdw.map (ELFUTILS_0.157): Add dwarf_getlocation_die and
895 dwarf_getlocation_attr.
896 * Makefile.am (libdw_a_SOURCES): Add dwarf_getlocation_die.c and
897 dwarf_getlocation_attr.c.
899 2013-08-23 Mark Wielaard <mjw@redhat.com>
901 * dwarf_getlocation.c (attr_ok): Also accept DW_AT_segment.
902 (attr_base_address): New function.
903 (initial_offset_base): New function.
904 (getlocations_addr): New function. Taken from...
905 (dwarf_getlocation_addr): here. Use new initial_offset_base and
907 (dwarf_getlocations): New function.
908 * libdw.h (dwarf_getlocations): New function definition.
909 * libdw.map (ELFUTILS_0.157): New.
911 2013-07-02 Mark Wielaard <mjw@redhat.com>
913 * dwarf_getsrclines.c (dwarf_getsrclines): Add new stack allocation
914 limit MAX_STACK_ALLOC. After MAX_STACK_ALLOC lines use malloc in
915 NEW_LINE macro. Free malloced line records if any at the end.
917 2013-07-02 Mark Wielaard <mjw@redhat.com>
919 * dwarf_getcfi_elf.c (getcfi_shdr): Check sh_type == SHT_PROGBITS.
921 2013-06-26 Mark Wielaard <mjw@redhat.com>
923 * libdw_visit_scopes.c (__libdw_visit_scopes): Don't reject root
924 DIEs without children. Return an error whenever dwarf_child or
925 dwarf_siblingof return an error. Don't call recurse and increase
926 the depth for an imported unit. Walk the children of an imported
927 unit as if they are logical children of the parent root DIE.
929 2013-05-03 Mark Wielaard <mjw@redhat.com>
931 * dwarf_getsrclines.c (dwarf_getsrclines): Only set end_sequence
934 2013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
936 * libdw.map (ELFUTILS_0.156): New.
938 2013-04-24 Mark Wielaard <mjw@redhat.com>
940 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
942 2013-04-10 Mark Wielaard <mjw@redhat.com>
944 * dwarf_formref_die.c (dwarf_formref_die): Reference size is only
945 equal to address size when we have a DW_FORM_ref_addr for DWARF
948 2013-03-25 Mark Wielaard <mjw@redhat.com>
950 * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as
953 2013-03-12 Mark Wielaard <mjw@redhat.com>
955 * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit.
956 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
958 2013-02-15 Mark Wielaard <mjw@redhat.com>
960 * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata,
961 not dbg->sectiondata.
963 2013-01-07 Roland McGrath <roland@hack.frob.com>
966 [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro.
967 [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function.
969 2012-12-18 Mark Wielaard <mjw@redhat.com>
971 * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid.
972 (check_section): Likewise on error.
973 (scngrp_read): Likewise.
974 (dwarf_begin_elf): Likewise.
976 2012-10-09 Petr Machata <pmachata@redhat.com>
978 * dwarf_getlocation.c (__libdw_intern_expression): Handle
979 DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret,
980 DW_OP_GNU_regval_type, DW_OP_GNU_entry_value,
981 DW_OP_GNU_deref_type, DW_OP_GNU_const_type.
983 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
985 * cfi.c: New include system.h.
986 (execute_cfi) (enough_registers): Clear new memory after realloc.
988 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
990 * fde.c (__libdw_find_fde): Change <fde != NULL> to likely. Return
991 DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for
994 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
996 * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new
997 loclist element DW_OP_call_frame_cfa before decoding the opcodes.
998 Remove the later DW_OP_call_frame_cfa push to RESULT.
1000 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1003 * fde.c (binary_search_fde): Remove always true <address >= start>
1004 conditional. Move L initialization upwards.
1006 2012-08-24 Mark Wielaard <mjw@redhat.com>
1008 * dwarf_begin_elf.c (check_section): Only probe for dwz multi files
1009 when ENABLE_DWZ is defined.
1010 * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is
1013 2012-08-16 Mark Wielaard <mjw@redhat.com>
1015 * Makefile.am (EXTRA_DIST): Add known-dwarf.h.
1016 * dwarf.h (DW_LANG_Go): Update comment.
1017 (DW_LANG_Mips_Assembler): Likewise.
1019 2012-06-27 Mark Wielaard <mjw@redhat.com>
1021 * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
1022 * dwarf_begin.c (dwarf_begin): Add INTDEF.
1023 * dwarf_begin_elf.c (__check_build_id): New internal_function.
1024 (try_debugaltlink): New function.
1025 (open_debugaltlink): Likewise.
1026 (check_section): Try open_debugaltlink for .gnu_debugaltlink.
1027 * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if
1029 * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK.
1030 * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt
1032 * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt.
1033 * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt.
1034 * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset
1036 * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call.
1037 * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK.
1038 (struct Dwarf): Add alt_dwarf and free_alt fields.
1039 (__libdw_read_offset): Add dbg_ret argument, use to check with
1040 __libdw_offset_in_section.
1041 (__check_build_id): New function declaration.
1042 (dwarf_begin): Define as INTDECL.
1043 * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt
1044 and DW_FORM_GNU_strp_alt.
1046 2012-07-19 Mark Wielaard <mjw@redhat.com>
1048 * dwarf.h: Add DW_OP_GNU_parameter_ref.
1050 2012-07-24 Mark Wielaard <mjw@redhat.com>
1052 * dwarf.h: Correct spelling of DW_LANG_ObjC.
1053 * dwarf_aggregate_size.c (array_size): Use correct spelling of
1056 2012-07-24 Mark Wielaard <mjw@redhat.com>
1058 * dwarf.h: Add DW_ATE_UTF.
1060 2012-06-27 Mark Wielaard <mjw@redhat.com>
1062 * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
1064 2012-06-26 Mark Wielaard <mjw@redhat.com>
1066 * libdwP.h: Add IDX_debug_macro.
1067 * dwarf.h: Add DW_AT_GNU_macros.
1068 * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro.
1069 * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros.
1071 2012-04-27 Mark Wielaard <mjw@redhat.com>
1073 * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being
1074 a constant offset from DW_AT_low_pc.
1076 2012-03-19 Tom Tromey <tromey@redhat.com>
1078 * libdw_findcu.c (findcu_cb): Move earlier.
1079 (__libdw_intern_next_unit): Add new CU to search tree here...
1080 (__libdw_findcu): ... not here.
1082 2012-01-31 Mark Wielaard <mjw@redhat.com>
1084 * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset.
1086 2011-11-31 Mark Wielaard <mjw@redhat.com>
1088 * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
1090 2011-07-14 Mark Wielaard <mjw@redhat.com>
1092 * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
1094 2011-05-16 Jakub Jelinek <jakub@redhat.com>
1096 * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1097 DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
1100 2011-04-26 Mark Wielaard <mjw@redhat.com>
1102 * dwarf_child (dwarf_child): Sanity check end of section against
1103 cu_data () of die->cu.
1105 2011-03-22 Mark Wielaard <mjw@redhat.com>
1107 * dwarf.h: Add DW_TAG_GNU_call_site,
1108 DW_TAG_GNU_call_site_parameter,
1109 DW_AT_GNU_call_site_value,
1110 DW_AT_GNU_call_site_data_value,
1111 DW_AT_GNU_call_site_target,
1112 DW_AT_GNU_call_site_target_clobbered,
1113 DW_AT_GNU_tail_call,
1114 DW_AT_GNU_all_tail_call_sites,
1115 DW_AT_GNU_all_call_sites,
1116 DW_AT_GNU_all_source_call_sites,
1117 and DW_OP_GNU_entry_value.
1119 2011-03-10 Petr Machata <pmachata@redhat.com>
1121 * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
1122 abbreviation with code 0.
1124 2011-03-09 Petr Machata <pmachata@redhat.com>
1126 * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
1128 2011-02-23 Roland McGrath <roland@redhat.com>
1130 * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
1131 Declare __libdw_free_zdata.
1132 * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
1133 (dwarf_end): Call it.
1135 * dwarf_begin_elf.c (valid_p): Likewise.
1136 (check_section, scngrp_read): Likewise.
1137 (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
1139 2010-10-13 Roland McGrath <roland@redhat.com>
1141 * dwarf.h: Add DW_LANG_Go.
1143 2010-10-05 Roland McGrath <roland@redhat.com>
1145 * dwarf_getaranges.c: Use malloc rather than alloca,
1146 since the total number of elements can be quite huge.
1148 2010-07-26 Roland McGrath <roland@redhat.com>
1150 * dwarf_getlocation_implicit_pointer.c: New file.
1151 * Makefile.am (libdw_a_SOURCES): Add it.
1152 * libdw.map (ELFUTILS_0.149): New set.
1153 Add dwarf_getlocation_implicit_pointer.
1154 * libdw.h: Declare it.
1156 * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
1157 (dwarf_offdie, dwarf_offdie_types): Update callers.
1158 * libdwP.h: Declare it.
1160 * dwarf.h: Add DW_OP_GNU_implicit_pointer.
1161 * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
1163 2010-08-24 Roland McGrath <roland@redhat.com>
1165 * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
1167 2010-07-27 Roland McGrath <roland@redhat.com>
1169 * dwarf_formref_die.c: Fix sig8 hash insertion.
1171 2010-06-23 Roland McGrath <roland@redhat.com>
1173 * cfi.c (dwarf_cfi_validate_fde): Function removed.
1174 * libdw.h: Remove it.
1175 * libdw.map: Likewise.
1177 2010-06-22 Roland McGrath <roland@redhat.com>
1179 * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
1181 * dwarf_getsrclines.c: Fix signed comparison warning in extended
1184 2010-06-21 Roland McGrath <roland@redhat.com>
1186 * dwarf.h: Add DW_TAG_GNU_* constants.
1188 * memory-access.h (get_sleb128_rest_return): Fix sign extension for
1191 2010-06-20 Roland McGrath <roland@redhat.com>
1193 * libdw_findcu.c (__libdw_findcu): Take new flag argument,
1194 to search TUs instead of CUs.
1195 * libdwP.h: Update decl.
1196 (struct Dwarf): New member tu_tree.
1197 * dwarf_end.c (dwarf_end): Clean up tu_tree.
1198 * dwarf_offdie.c (do_offdie): New function, broken out of ...
1199 (dwarf_offdie): ... here.
1200 (dwarf_offdie_types): New function.
1201 * libdw.h: Declare it.
1202 * libdw.map (ELFUTILS_0.148): Add it.
1204 * libdwP.h (CUDIE): Use cu_data.
1205 * dwarf_formblock.c: Likewise.
1206 * dwarf_formref_die.c: Likewise.
1207 * dwarf_diecu.c: Use CUDIE macro.
1208 * dwarf_formaddr.c: Use cu_sec_idx.
1210 2010-06-16 Roland McGrath <roland@redhat.com>
1212 * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
1213 we don't repeat a CU lookup we've already done. Handle
1214 DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
1216 * libdw_findcu.c (__libdw_intern_next_unit): New function,
1218 (__libdw_findcu): ... here. Call it.
1219 * libdwP.h: Declare it.
1220 (struct Dwarf): New member next_tu_offset.
1222 * dwarf_sig8_hash.c: New file.
1223 * dwarf_sig8_hash.h: New file.
1224 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
1225 * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
1227 * libdwP.h (struct Dwarf): New member sig8_hash.
1228 * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
1229 * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
1231 * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
1232 (dwarf_nextcu): ... here. Call it.
1233 * libdw.h: Declare it.
1234 * libdwP.h: Add INTDECL.
1235 * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
1236 * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
1238 * libdwP.h (cu_sec_idx, cu_data): New functions.
1239 Use .debug_types when CU is a TU.
1240 * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
1241 * dwarf_siblingof.c: Likewise.
1242 * dwarf_formstring.c: Likewise.
1243 * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
1244 * dwarf_getlocation.c (dwarf_getlocation): Likewise.
1245 (dwarf_getlocation_addr): Likewise.
1247 * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
1248 (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
1249 .debug_types header size instead of .debug_info header size.
1251 * dwarf_diecu.c: Update caller.
1252 * dwarf_getaranges.c: Likewise.
1253 * dwarf_nextcu.c: Likewise.
1254 * libdw_findcu.c (__libdw_findcu): Initialize new members.
1256 * fde.c (fde_by_offset): Renamed to ...
1257 (__libdw_fde_by_offset): ... this, made global and internal_function.
1258 Don't take ADDRESS argument.
1259 (__libdw_find_fde): Update caller. Do address sanity check here.
1260 * cfi.h: Declare __libdw_fde_by_offset.
1261 * cfi.c (dwarf_cfi_validate_fde): New function.
1262 * libdw.h: Declare it.
1263 * libdw.map (ELFUTILS_0.148): Add it.
1265 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
1266 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
1268 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
1269 Don't assume DW_EH_PE_aligned refers to native address size.
1271 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
1274 2010-06-17 Roland McGrath <roland@redhat.com>
1276 * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
1278 * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
1279 into an inner inline function. Set new fields. Check all fields for
1280 overflow when setting.
1281 * dwarf_lineisa.c: New file.
1282 * dwarf_linediscriminator.c: New file.
1283 * dwarf_lineop_index.c: New file.
1284 * Makefile.am (libdw_a_SOURCES): Add them.
1285 * libdw.map (ELFUTILS_0.148): Add them.
1286 * libdw.h: Declare them.
1288 2010-06-16 Roland McGrath <roland@redhat.com>
1290 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
1292 * fde.c (fde_by_offset): Renamed to ...
1293 (__libdw_fde_by_offset): ... this, made global and internal_function.
1294 Don't take ADDRESS argument.
1295 (__libdw_find_fde): Update caller. Do address sanity check here.
1296 * cfi.h: Declare __libdw_fde_by_offset.
1297 * cfi.c (dwarf_cfi_validate_fde): New function.
1298 * libdw.h: Declare it.
1299 * libdw.map (ELFUTILS_0.148): Add it.
1301 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
1302 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
1304 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
1305 Don't assume DW_EH_PE_aligned refers to native address size.
1307 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
1310 2010-06-15 Roland McGrath <roland@redhat.com>
1312 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
1314 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
1315 here, since we don't support it yet.
1317 * dwarf_next_cfi.c: Handle version 4 format.
1319 * dwarf_getsrclines.c: Handle version 4 format.
1321 2010-06-01 Roland McGrath <roland@redhat.com>
1323 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
1324 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
1326 * libdwP.h (CIE_VERSION): Remove unused macro.
1328 * dwarf_getsrclines.c: Fix version field test.
1329 * libdwP.h (DWARF_VERSION): Remove useless macro.
1331 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
1333 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
1335 * libdw_findcu.c (__libdw_findcu): Accept version 4.
1337 2010-05-31 Mark Wielaard <mjw@redhat.com>
1339 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
1340 * libdw.h (dwarf_cfi_cie_p): ... here.
1342 2010-05-31 Mark Wielaard <mjw@redhat.com>
1344 * dwarf.h: Fix DW_LANG_Python constant.
1346 2010-05-28 Eduardo Santiago <santiago@redhat.com>
1348 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
1351 2010-05-27 Roland McGrath <roland@redhat.com>
1353 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
1354 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
1356 2010-05-08 Roland McGrath <roland@redhat.com>
1358 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
1359 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
1360 (getlocation): Update caller.
1361 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
1362 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
1363 * libdwP.h: Update decl.
1365 2010-04-26 Roland McGrath <roland@redhat.com>
1367 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
1368 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
1369 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
1370 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
1372 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
1373 Prepend DW_OP_call_frame_cfa if true.
1374 (getlocation): Update caller.
1375 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
1376 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
1377 * libdwP.h: Update decl.
1379 2010-04-22 Roland McGrath <roland@redhat.com>
1381 * cfi.c (execute_cfi): Never return without cleanup.
1383 (cie_cache_initial_state): Adjust caller to expect that free.
1384 (__libdw_frame_at_address): Likewise.
1386 2010-03-10 Roland McGrath <roland@redhat.com>
1388 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
1390 2010-02-15 Roland McGrath <roland@redhat.com>
1392 * Makefile.am: Use config/eu.am for common stuff.
1394 2010-02-02 Mark Wielaard <mjw@redhat.com>
1396 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
1398 2010-01-07 Roland McGrath <roland@redhat.com>
1400 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
1402 2010-01-05 Roland McGrath <roland@redhat.com>
1404 * dwarf_aggregate_size.c: New file.
1405 * Makefile.am (libdw_a_SOURCES): Add it.
1406 * libdw.h: Declare it.
1407 * libdwP.h: Add INTDECL.
1408 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
1410 * dwarf_srclang.c: Add INTDEF.
1411 * libdwP.h: Add INTDECL.
1413 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
1415 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
1417 2009-11-21 Roland McGrath <roland@redhat.com>
1419 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
1422 2009-10-15 Roland McGrath <roland@redhat.com>
1424 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
1425 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
1427 2009-09-17 Roland McGrath <roland@redhat.com>
1429 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
1430 argument a pointer to const.
1431 * libdw.h: Update decl.
1433 2009-09-10 Roland McGrath <roland@redhat.com>
1435 * dwarf_getlocation.c (store_implicit_value): New function.
1436 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
1437 (dwarf_getlocation_implicit_value): New function.
1438 * libdw.h: Declare it.
1439 * libdw.map (ELFUTILS_0.143): Add it.
1441 2009-09-09 Mark Wielaard <mjw@redhat.com>
1443 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
1445 2009-08-21 Josh Stone <jistone@redhat.com>
1447 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
1449 2009-08-10 Roland McGrath <roland@redhat.com>
1451 * dwarf_getscopevar.c: Use dwarf_diename.
1453 2009-08-09 Roland McGrath <roland@redhat.com>
1455 * libdw.map (ELFUTILS_0.143): New version set,
1456 inherits from ELFUTILS_0.142.
1457 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
1458 alias in the ELFUTILS_0.122 version set and the default in the new set.
1459 * dwarf_srclang.c: Likewise.
1460 * dwarf_decl_file.c: Likewise.
1461 * dwarf_decl_line.c: Likewise.
1462 * dwarf_decl_column.c: Likewise.
1463 * dwarf_bytesize.c: Likewise.
1464 * dwarf_bitsize.c: Likewise.
1465 * dwarf_bitoffset.c: Likewise.
1467 2009-08-07 Roland McGrath <roland@redhat.com>
1469 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
1470 * dwarf_srclang.c: Likewise.
1471 * dwarf_decl_file.c: Likewise.
1472 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
1473 * dwarf_bytesize.c: Likewise.
1474 * dwarf_bitsize.c: Likewise.
1475 * dwarf_bitoffset.c: Likewise.
1477 2009-07-22 Roland McGrath <roland@redhat.com>
1479 * dwarf_frame_cfa.c: Change calling convention.
1480 * libdw.h: Update decl.
1482 * dwarf_frame_register.c: Change calling/return-value convention for
1483 value-only results and undefined/same_value.
1484 * libdw.h: Update decl.
1486 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
1487 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
1488 return that value instead.
1489 (getlocation): Update caller.
1490 * dwarf_frame_cfa.c: Likewise.
1491 * libdwP.h: Update decl.
1493 2009-07-21 Roland McGrath <roland@redhat.com>
1495 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
1496 Fix loop iteration after skipping a bogus or useless CU.
1498 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
1499 absence, not DWARF_E_NO_DEBUG_LINE.
1501 2009-07-20 Roland McGrath <roland@redhat.com>
1503 * dwarf_getlocation.c (__libdw_intern_expression):
1504 Handle DW_OP_stack_value.
1506 2009-07-16 Roland McGrath <roland@redhat.com>
1508 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
1509 reject others when CU's version > 3.
1511 * dwarf_formflag.c: Handle DW_FORM_flag_present.
1513 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
1514 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
1515 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
1516 and DW_AT_const_expr.
1517 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
1518 and DW_FORM_ref_sig8.
1520 2009-07-15 Roland McGrath <roland@redhat.com>
1522 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
1523 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
1525 2009-07-13 Roland McGrath <roland@redhat.com>
1527 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
1529 2009-07-08 Roland McGrath <roland@redhat.com>
1531 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
1534 * libdwP.h (struct Dwarf): Add member `cfi'.
1535 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
1536 * dwarf_getcfi.c: New file.
1537 * dwarf_getcfi_elf.c: New file.
1538 * dwarf_cfi_end.c: New file.
1539 * dwarf_cfi_addrframe.c: New file.
1540 * dwarf_frame_cfa.c: New file.
1541 * dwarf_frame_register.c: New file.
1542 * dwarf_frame_return_address_register.c: New file.
1543 * Makefile.am (libdw_a_SOURCES): Add them.
1544 * unwind.h: Declare those functions.
1545 * libdw.map (ELFUTILS_0.142): Export them.
1547 * dwarf_getlocation.c (__libdw_intern_expression): New function,
1549 (getlocation): ... here, call it.
1550 * libdwP.h: Declare it.
1554 * frame-cache.c: New file.
1557 * encoded-value.h: New file.
1558 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
1559 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
1560 * dwarf_error.c (errmsgs): Add element for it.
1562 * dwarf_next_cfi.c: New file.
1563 * Makefile.am (libdw_a_SOURCES): Add it.
1564 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
1565 Declare dwarf_next_cfi.
1566 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
1569 * memory-access.h [! ALLOW_UNALIGNED]
1570 (read_2ubyte_unaligned): Renamed to ...
1571 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
1572 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
1573 (read_2sbyte_unaligned): Likewise.
1574 (read_4ubyte_unaligned): Likewise.
1575 (read_4sbyte_unaligned): Likewise.
1576 (read_8ubyte_unaligned): Likewise.
1577 (read_8sbyte_unaligned): Likewise.
1579 * libdwP.h (IDX_eh_frame): Remove it.
1580 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
1582 2009-07-08 Roland McGrath <roland@redhat.com>
1584 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
1586 * dwarf_getlocation.c (check_constant_offset): New function.
1587 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
1588 handle DW_AT_data_member_location of data[48] as constant offset.
1590 2009-06-18 Roland McGrath <roland@redhat.com>
1592 * libdwP.h (__libdw_read_address_inc): Constify.
1593 (__libdw_read_offset_inc): Likewise.
1594 * dwarf_getaranges.c: Likewise.
1595 * dwarf_getlocation.c: Likewise.
1596 * dwarf_getsrclines.c: Likewise.
1597 * dwarf_nextcu.c: Likewise.
1599 2009-05-05 Petr Machata <pmachata@redhat.com>
1601 * libdwP.h (__libdw_formptr): Declare new function.
1602 * dwarf_formudata.c: Implement it here.
1603 * dwarf_getlocation.c (dwarf_getlocation_addr):
1604 Call it instead of hand-rolled offset handling code.
1605 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1606 * dwarf_ranges.c (dwarf_ranges): Likewise.
1608 2009-05-04 Petr Machata <pmachata@redhat.com>
1610 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
1611 * dwarf_ranges.c: Implement it here.
1612 (dwarf_ranges): Call it.
1613 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
1615 2009-04-23 Petr Machata <pmachata@redhat.com>
1617 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
1618 of read_*ubyte_unaligned.
1619 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
1620 * dwarf_formstring.c (dwarf_formstring): Likewise.
1621 * dwarf_formudate.c (dwarf_formudata): Likewise.
1622 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
1623 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
1624 * dwarf_getpubnames.c (get_offsets): Likewise.
1625 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
1627 2009-04-23 Petr Machata <pmachata@redhat.com>
1629 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
1630 __libdw_read_addr, __libdw_read_off): Add four new internal
1633 2009-05-07 Roland McGrath <roland@redhat.com>
1635 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
1636 return value and OFFSET argument, not CU-relative. Only fetch the
1637 attribute data when called with OFFSET of 0.
1639 2009-05-07 Petr Machata <pmachata@redhat.com>
1641 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
1642 DW_AT_macro_info attribute of CU DIE.
1644 2009-04-15 Roland McGrath <roland@redhat.com>
1646 * dwarf.h (DW_CIE_ID): Removed.
1647 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
1649 2009-04-01 Roland McGrath <roland@redhat.com>
1651 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
1653 2009-01-28 Roland McGrath <roland@redhat.com>
1655 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
1656 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
1658 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
1660 2009-01-26 Roland McGrath <roland@redhat.com>
1662 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
1664 2009-01-25 Roland McGrath <roland@redhat.com>
1666 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
1668 2009-01-23 Roland McGrath <roland@redhat.com>
1670 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
1671 Put these rules under if MAINTAINER_MODE.
1673 2009-01-22 Roland McGrath <roland@redhat.com>
1675 * dwarf.h: Add DW_OP_GNU_encoded_addr.
1677 2009-01-21 Roland McGrath <roland@redhat.com>
1679 * Makefile.am (CLEANFILES): Renamed to ...
1680 (MOSTLYCLEANFILES): ... here.
1681 (CLEANFILES): New variable, add known-dwarf.h.
1683 2009-01-17 Roland McGrath <roland@redhat.com>
1685 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
1686 Make it unconditional.
1687 (BUILT_SOURCES): Updated.
1689 * dwarf.h: Add description comments for DW_LANG_* values.
1691 * Makefile.am [MAINTAINER_MODE]
1692 ($(srcdir)/known-dwarf.h): New target.
1693 (BUILT_SOURCES): Add it.
1695 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
1697 2009-01-10 Ulrich Drepper <drepper@redhat.com>
1699 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
1701 2009-01-08 Roland McGrath <roland@redhat.com>
1703 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
1705 2008-01-06 Roland McGrath <roland@redhat.com>
1707 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
1709 * dwarf_haschildren.c: Return -1 for error case, not 0.
1711 * Makefile.am (libdw.so): Link in $(zip_LIBS).
1713 2009-01-06 Ulrich Drepper <drepper@redhat.com>
1715 * dwarf.h: Add definition for unwind and call frame information.
1717 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
1718 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
1720 2008-08-15 Roland McGrath <roland@redhat.com>
1722 * libdw.map (ELFUTILS_0.136): New version set, inherits from
1723 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
1725 2008-01-21 Ulrich Drepper <drepper@redhat.com>
1727 * dwarf_child.c: Minor optimizations.
1728 * dwarf_getattrs.c: Likewise.
1729 * dwarf_getpubnames.c: Likewise.
1730 * dwarf_siblingof.c: Likewise.
1731 * dwarf_tag.c: Likewise.
1733 2008-01-18 Ulrich Drepper <drepper@redhat.com>
1735 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
1736 of DWARF_VERSION comparison, just fail if the file's version is newer.
1738 2008-01-17 Nick Clifton <nickc@redhat.com>
1740 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
1741 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
1742 (DWARF3_LENGTH_64_BIT): New define.
1743 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
1744 * dwarf_getpubnames: Include dwarf.h.
1745 (get_offsets): Use the new definitions.
1746 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
1747 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
1748 (dwarf_nextcu): Use the new definitions.
1750 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
1751 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
1752 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
1753 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
1755 * dwarf_getpubnames (get_offsets): Replace assertion with test and
1758 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
1760 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
1761 Set the address in the return structure to the address of the next
1762 non-sibling die, if there is no sibling and the return pointer is
1763 not the same as the die pointer.
1764 * libdw.h: Expand the description of the dwarf_siblingof prototype.
1766 * dwarf_child.c: Fix typo in comment.
1768 * libdwP.h (DWARF_VERSION): Change to 3.
1770 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
1771 not have a initialised valp pointer.
1773 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
1774 the end of the attributes is reached. When the callback fails,
1775 return the address of the failing attribute, not the address of
1777 * libdw.h: Expand the description of the dwarf_getattrs prototype.
1779 * dwarf_child.c (__libdw_find_attr): Use the new definition.
1780 (dwarf_child): Likewise.
1781 * dwarf_tag.c (__libdw_findabbrev): Likewise.
1782 (dwarf_tag): Likewise.
1784 2008-01-08 Roland McGrath <roland@redhat.com>
1786 * Makefile.am (euinclude): Variable removed.
1787 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
1788 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
1790 2007-10-17 Roland McGrath <roland@redhat.com>
1792 * libdw.h (__deprecated_attribute__): New macro.
1793 (dwarf_formref): Mark it deprecated.
1794 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
1795 (dwarf_formref): ... here. Call it. Remove INTDEF.
1796 * libdwP.h: Remove INTDECL.
1797 Declare __libdw_formref.
1798 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
1799 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
1801 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
1802 needs to check CU->version.
1804 * libdwP.h (struct Dwarf_CU): New member `version'.
1805 * libdw_findcu.c (__libdw_findcu): Initialize it.
1807 * dwarf_child.c: Return 1 for null entry as first child.
1809 2007-10-05 Roland McGrath <roland@redhat.com>
1811 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
1813 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
1814 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
1816 2007-10-03 Roland McGrath <roland@redhat.com>
1818 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
1819 and dwfl_build_id_find_debuginfo.
1821 * libdw.map (ELFUTILS_0.130): New version set, inherits from
1822 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
1824 2007-10-02 Roland McGrath <roland@redhat.com>
1826 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
1829 2007-08-07 Roland McGrath <roland@redhat.com>
1831 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
1832 error code is DWARF_E_NOERROR (0).
1834 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
1835 Fix typo in __libdw_visit_scopes argument.
1837 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
1838 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
1840 2007-07-03 Roland McGrath <roland@redhat.com>
1842 * libdw.h (__extern_inline): New macro.
1843 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
1845 2007-04-16 Roland McGrath <roland@redhat.com>
1847 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
1849 2007-04-05 Roland McGrath <roland@redhat.com>
1851 * dwarf_getsrcdirs.c: New file.
1852 * Makefile.am (libdw_a_SOURCES): Add it.
1853 * libdw.h: Declare dwarf_getsrcdirs.
1854 * libdw.map (ELFUTILS_0.127): Add it.
1856 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
1857 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
1858 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
1859 Save DIRARRAY in the Dwarf_Files.
1861 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
1862 address to check for all-ones base address entry. Check directly.
1863 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
1865 2007-03-25 Roland McGrath <roland@redhat.com>
1867 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
1868 Return NULL when freeing RESULT on error.
1869 (global_read, scngrp_read): Check return value from check_section,
1870 break out of loop after it has freed RESULT.
1871 (valid_p): Handle null argument.
1873 2007-03-12 Roland McGrath <roland@redhat.com>
1875 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
1877 2007-03-04 Roland McGrath <roland@redhat.com>
1879 * libdw.map (ELFUTILS_0.127): New version set, inherits from
1880 ELFUTILS_0.126. Add dwfl_module_addrsym.
1882 2007-02-10 Roland McGrath <roland@redhat.com>
1884 * dwarf.h (DW_OP_fbreg): Comment fix.
1886 2007-02-03 Roland McGrath <roland@redhat.com>
1888 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
1889 * libdw.map (ELFUTILS_0.126): New version set, inherits from
1890 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
1891 exported in the past.
1893 2006-12-17 Roland McGrath <roland@redhat.com>
1895 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
1896 address when the CU is missing attributes due to buggy GCC.
1898 2006-08-29 Roland McGrath <roland@redhat.com>
1900 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
1902 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
1903 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
1905 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
1906 result is aligned. Adjust NEWP->remaining here for this allocation.
1907 * libdwP.h: Update decl.
1908 (libdw_alloc): Update caller.
1910 2006-07-12 Ulrich Drepper <drepper@redhat.com>
1912 * dwarf_child.c: Adjust for internal_function_def removal.
1913 * dwarf_getabbrev.c: Likewise.
1914 * dwarf_tag.c: Likewise.
1915 * libdw_form.c: Likewise.
1916 * memory-access.c: Likewise.
1918 2006-06-28 Roland McGrath <roland@redhat.com>
1920 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
1922 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
1925 2006-05-27 Ulrich Drepper <drepper@redhat.com>
1927 * libdw.h: Add extern "C".
1929 2006-05-22 Ulrich Drepper <drepper@redhat.com>
1931 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
1932 aranges information.
1934 2006-05-21 Ulrich Drepper <drepper@redhat.com>
1936 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
1939 2006-02-28 Roland McGrath <roland@redhat.com>
1941 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
1942 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
1943 values from DWARF 3.0.
1945 2006-02-22 Roland McGrath <roland@redhat.com>
1947 * libdw.map: Bump to 0.120; export dwfl_version.
1949 2005-12-22 Roland McGrath <roland@redhat.com>
1951 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
1953 2005-12-12 Roland McGrath <roland@redhat.com>
1955 * dwarf_ranges.c: Copy CU base address-finding code from
1958 2005-12-09 Roland McGrath <roland@redhat.com>
1960 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
1961 Delay CU base lookup until it's needed.
1962 If CU base lookup fails with no error, flag invalid DWARF.
1964 2005-11-25 Roland McGrath <roland@redhat.com>
1966 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
1968 2005-11-15 Roland McGrath <roland@redhat.com>
1970 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
1972 2005-11-13 Roland McGrath <roland@redhat.com>
1974 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
1976 2005-10-27 Roland McGrath <roland@redhat.com>
1978 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
1979 don't match end_sequence markers.
1981 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
1982 before normal records at the same address.
1983 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
1986 2005-10-26 Roland McGrath <roland@redhat.com>
1988 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
1989 * dwarf_func_file.c: Renamed to ...
1990 * dwarf_decl_file.c: ... here.
1991 * dwarf_func_col.c: Renamed to ...
1992 * dwarf_decl_column.c: ... here.
1993 * dwarf_func_line.c: Renamed to ...
1994 * dwarf_decl_line.c: ... here.
1995 (dwarf_func_line): Renamed to ...
1996 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
1997 (__libdw_func_intval): Renamed __libdw_attr_intval.
1998 * dwarf_func_name.c: File removed.
1999 * dwarf_func_lowpc.c: File removed.
2000 * dwarf_func_highpc.c: File removed.
2001 * dwarf_func_entrypc.c: File removed.
2002 * dwarf_func_die.c: File removed.
2003 * Makefile.am (libdw_a_SOURCES): Updated.
2004 * libdw.h: Update decls.
2005 (Dwarf_Func): Type removed.
2006 * libdwP.h: Update decls.
2007 (struct Dwarf_Func_s): Type removed.
2008 * libdw.map: Updated.
2010 * libdwP.h (CUDIE): New macro.
2011 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
2012 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
2013 * dwarf_ranges.c (dwarf_ranges): Likewise.
2015 * dwarf_getloclist.c: Renamed to ...
2016 * dwarf_getlocation.c: ... here.
2017 (getloclist): Renamed to getlocation.
2018 (dwarf_getloclist): Renamed to dwarf_getlocation.
2019 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
2020 * Makefile.am (libdw_a_SOURCES): Updated.
2021 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
2022 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
2023 (Dwarf_Loc): Renamed Dwarf_Op.
2024 * libdwP.h (struct loc_s): Update use.
2025 * libdw.map: Update map.
2027 * dwarf_entry_breakpoints.c: Use the second line record within the
2028 function, regardless of its source location data.
2030 2005-10-25 Roland McGrath <roland@redhat.com>
2032 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
2034 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
2036 2005-10-14 Roland McGrath <roland@redhat.com>
2038 * dwarf_diecu.c (dwarf_diecu): New file.
2039 * Makefile.am (libdw_a_SOURCES): Add it.
2040 * libdw.h: Declare dwarf_diecu.
2041 * libdw.map: Export it.
2043 * libdw.map: Bump to 0.116; export dwarf_ranges.
2045 2005-09-20 Roland McGrath <roland@redhat.com>
2047 * dwarf_haspc.c: Use dwarf_ranges.
2048 * dwarf_entry_breakpoints.c: Likewise.
2050 * dwarf_ranges.c: New file.
2051 * Makefile.am (libdw_a_SOURCES): Add it.
2052 * libdw.h: Declare dwarf_ranges.
2053 * libdwP.h: Add INTDECL.
2055 2005-09-14 Roland McGrath <roland@redhat.com>
2057 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
2058 prologue_end marker scanning loop.
2060 2005-09-11 Roland McGrath <roland@redhat.com>
2062 * dwarf.h: Comment typo fix.
2064 2005-09-07 Roland McGrath <roland@redhat.com>
2066 * dwarf_entry_breakpoints.c: New file.
2067 * Makefile.am (libdw_a_SOURCES): Add it.
2068 * libdw.h: Declare dwarf_entry_breakpoints.
2070 * dwarf_entrypc.c: New file.
2071 * Makefile.am (libdw_a_SOURCES): Add it.
2072 * libdw.h: Declare dwarf_entrypc.
2073 * libdwP.h: Add INTDECL.
2075 2005-08-28 Ulrich Drepper <drepper@redhat.com>
2077 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
2078 (%.os): Use COMPILE.os.
2079 (COMPILE.os): Filter out gconv options.
2081 2005-08-27 Roland McGrath <roland@redhat.com>
2083 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
2084 __libdw_visit_scopes.
2086 * dwarf_getscopes_die.c: New file.
2087 * Makefile.am (libdw_a_SOURCES): Add it.
2088 * libdw.h: Declare dwarf_getscopes_die.
2089 * libdw.map: Bump to 0.115 and add it.
2091 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
2092 containing a DIE and its parent pointer, instead of just Dwarf_Die.
2093 Take two functions for both preorder and postorder visitors.
2094 * libdwP.h: Update decl.
2095 (struct Dwarf_Die_Chain): New type.
2096 * dwarf_func_inline.c: Update uses.
2098 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
2100 * libdwP.h: Add INTDECL.
2101 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
2103 2005-08-23 Roland McGrath <roland@redhat.com>
2105 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
2106 DW_AT_specification the same as DW_AT_abstract_origin.
2108 2005-08-20 Roland McGrath <roland@redhat.com>
2110 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
2111 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
2112 and dwfl_report_offline.
2114 2005-08-19 Roland McGrath <roland@redhat.com>
2116 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
2117 Add dwfl_module_relocate_address, dwfl_module_relocations,
2118 dwfl_module_relocation_info.
2120 2005-08-18 Roland McGrath <roland@redhat.com>
2122 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
2123 outermost scope in the results.
2125 2005-08-15 Roland McGrath <roland@redhat.com>
2127 * dwarf_func_inline.c: New file.
2128 * Makefile.am (libdw_a_SOURCES): Add it.
2129 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
2130 * libdw.map: Add them.
2132 * dwarf_func_die.c: New file.
2133 * Makefile.am (libdw_a_SOURCES): Add it.
2134 * libdw.h: Declare dwarf_func_die.
2135 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
2137 2005-08-10 Ulrich Drepper <drepper@redhat.com>
2139 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
2140 of DW_LNS_set_epilog_begin.
2142 2005-08-09 Roland McGrath <roland@redhat.com>
2144 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
2146 * dwarf_end.c: Add INTDEF.
2147 * dwarf_error.c (dwarf_errmsg): Likewise.
2148 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
2150 2005-08-01 Roland McGrath <roland@redhat.com>
2152 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
2153 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
2155 2005-07-28 Ulrich Drepper <drepper@redhat.com>
2157 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
2158 (libdw_a_LIBADD): Add all files from libdwfl.a.
2160 2005-07-27 Roland McGrath <roland@redhat.com>
2162 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
2163 along with ../libebl/libebl.a and ../lib/libeu.a;
2164 depend on ../libelf/libelf.so.
2165 (libdw_so_LDADD): New variable.
2166 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
2168 * libdw.map: Define an empty base version and move all symbols to
2169 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
2171 2005-07-23 Ulrich Drepper <drepper@redhat.com>
2173 * dwarf_error.c: Add internal alias for dwarf_errno.
2174 * libdwP.h: Declare __dwarf_errno_internal.
2175 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
2177 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
2180 2005-06-01 Roland McGrath <roland@redhat.com>
2182 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
2183 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
2185 2005-06-08 Roland McGrath <roland@redhat.com>
2187 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
2188 (get_sleb128_step, get_sleb128): Likewise.
2189 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
2190 * dwarf_getloclist.c (getloclist): Likewise.
2191 * dwarf_formblock.c (dwarf_formblock): Likewise.
2192 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
2193 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
2194 * dwarf_formref.c (dwarf_formref): Likewise.
2195 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
2196 * dwarf_formudata.c (dwarf_formudata): Likewise.
2197 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
2198 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
2199 * dwarf_tag.c (dwarf_tag): Likewise.
2200 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
2201 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
2202 * libdw_form.c (__libdw_form_val_len): Likewise.
2203 * libdwP.h: Update decl.
2205 2005-06-04 Roland McGrath <roland@redhat.com>
2207 * memory-access.h (get_uleb128_rest_return): New macro.
2208 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
2209 (get_sleb128_rest_return): New macro.
2210 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
2211 * memory-access.c: New file.
2212 * Makefile.am (libdw_a_SOURCES): Add it.
2213 (DEFS): Add -DIS_LIBDW.
2215 2005-05-31 Roland McGrath <roland@redhat.com>
2217 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
2220 2005-05-30 Roland McGrath <roland@redhat.com>
2222 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
2223 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
2225 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
2226 BEGIN value. Instead, match base address entries separately for
2229 2005-05-28 Roland McGrath <roland@redhat.com>
2231 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
2232 past location expression contents.
2234 2005-05-23 Roland McGrath <roland@redhat.com>
2236 * dwarf_getsrclines.c: Comment typo fix.
2238 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
2239 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
2241 2005-05-22 Ulrich Drepper <drepper@redhat.com>
2243 * libdwP.h: Only use INTDECL for alias prototypes.
2245 2005-05-19 Roland McGrath <roland@redhat.com>
2247 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
2249 * dwarf_getscopevar.c: New file.
2250 * Makefile.am (libdw_a_SOURCES): Add it.
2251 * libdw.h: Declare dwarf_getscopevar.
2253 * dwarf_getsrcfiles.c: Add INTDEF.
2254 * dwarf_haschildren.c: Likewise.
2255 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
2257 * dwarf_getscopes.c: New file.
2258 * Makefile.am (libdw_a_SOURCES): Add it.
2259 * libdw.h: Declare dwarf_getscopes.
2260 * libdw.map: Add it.
2262 2005-05-18 Roland McGrath <roland@redhat.com>
2264 * libdwP.h (IDX_debug_ranges): New enum constant.
2265 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
2266 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
2267 * dwarf_error.c (errmsgs): Add it.
2268 * dwarf_haspc.c: New file.
2269 * libdw.h: Declare dwarf_haspc.
2270 * libdw.map: Add it.
2271 * libdwP.h: Add INTDECL.
2273 * dwarf_attr_integrate.c: New file.
2274 * dwarf_hasattr_integrate.c: New file.
2275 * Makefile.am (libdw_a_SOURCES): Add them.
2276 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
2277 * libdw.map: Add them.
2279 * dwarf_hasattr.c: Add INTDEF.
2280 * libdwP.h: Add INTDECL for it.
2282 * dwarf_formref_die.c: New file.
2283 * Makefile.am (libdw_a_SOURCES): Add it.
2284 * libdw.h (dwarf_formref_die): Declare it.
2285 * libdwP.h (dwarf_formref_die): Add INTDECL.
2286 * libdw.map: Add it.
2288 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
2290 (dwarf_getloclist): ... here. Call them.
2291 (dwarf_addrloclists): New function.
2292 * libdw.h: Declare it.
2293 * libdw.map: Add it.
2295 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
2296 DW_MACINFO_end_file. Recognize type 0 as terminator.
2298 2005-05-05 Roland McGrath <roland@redhat.com>
2300 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
2302 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
2303 the line program does not produce all entries in ascending order.
2305 2005-04-25 Ulrich Drepper <drepper@redhat.com>
2307 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
2308 occurences (e.g., inlines) better.
2310 2005-04-24 Ulrich Drepper <drepper@redhat.com>
2312 * libdw.h (DWARF_END_ABBREV): Define.
2313 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
2315 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
2317 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
2318 as error of __libdw_getabbrev.
2320 2005-04-04 Ulrich Drepper <drepper@redhat.com>
2322 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
2324 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
2325 results back to caller.
2327 2005-04-04 Roland McGrath <roland@redhat.com>
2329 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
2331 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
2334 2005-04-04 Ulrich Drepper <drepper@redhat.com>
2336 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
2338 * dwarf_getsrc_file.c: New file.
2339 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
2340 * libdw.h: Declare dwarf_getsrc_file.
2341 * libdw.map: Add dwarf_getsrc_file.
2343 2005-04-02 Ulrich Drepper <drepper@redhat.com>
2345 * dwarf_func_entrypc.c: New file.
2346 * dwarf_func_col.c: New file.
2347 * dwarf_func_line.c: New file.
2348 * dwarf_func_file.c: New file.
2349 * libdw.h: Add prototypes for new functions.
2350 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
2352 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
2353 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
2354 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
2355 Declare __libdw_func_intval and __dwarf_formsdata_internal.
2356 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
2357 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
2359 * dwarf.h: Add some DWARF3 definitions.
2361 2005-04-01 Ulrich Drepper <drepper@redhat.com>
2363 * dwarf_getfuncs.c: New file.
2364 * dwarf_func_highpc.c: New file.
2365 * dwarf_func_lowpc.c: New file.
2366 * dwarf_func_name.c: New file.
2367 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
2368 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
2369 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
2370 and dwarf_func_name.
2371 * libdw.h: Add prototypes for new functions.
2372 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
2373 * dwarf_siblingof.c: Likewise.
2374 * dwarf_dieoffset.c: Likewise.
2375 * dwarf_highpc.c: Likewise.
2376 * dwarf_lowpc.c: Likewise.
2377 * libdwP.h: Add prototypes for internal functions.
2378 Define Dwarf_Func_s structure.
2380 2005-03-29 Ulrich Drepper <drepper@redhat.com>
2382 * libdw.h: Add padding in Dwarf_die.
2384 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
2385 * dwarf_attr.c: Likewise.
2386 * dwarf_begin.c: Likewise.
2387 * dwarf_begin_elf.c: Likewise.
2388 * dwarf_bitoffset.c: Likewise.
2389 * dwarf_bitsize.c: Likewise.
2390 * dwarf_bytesize.c: Likewise.
2391 * dwarf_diename.c: Likewise.
2392 * dwarf_formaddr.c: Likewise.
2393 * dwarf_formblock.c: Likewise.
2394 * dwarf_formref.c: Likewise.
2395 * dwarf_formstring.c: Likewise.
2396 * dwarf_formudata.c: Likewise.
2397 * dwarf_getarange_addr.c: Likewise.
2398 * dwarf_getarangeinfo.c: Likewise.
2399 * dwarf_getaranges.c: Likewise.
2400 * dwarf_getloclist.c: Likewise.
2401 * dwarf_getmacros.c: Likewise.
2402 * dwarf_getsrc_die.c: Likewise.
2403 * dwarf_getsrcfiles.c: Likewise.
2404 * dwarf_getsrclines.c: Likewise.
2405 * dwarf_highpc.c: Likewise.
2406 * dwarf_lowpc.c: Likewise.
2407 * dwarf_nextcu.c: Likewise.
2408 * dwarf_offdie.c: Likewise.
2409 * dwarf_siblingof.c: Likewise.
2410 * dwarf_srclang.c: Likewise.
2411 * dwarf_tag.c: Likewise.
2412 * libdw_findcu.c: Likewise.
2413 * libdwP.h: Add prototypes for internal functions.
2415 * dwarf_addrdie.c: New file.
2416 * dwarf_macro_opcode.c: New file.
2417 * dwarf_macro_param1.c: New file.
2418 * dwarf_macro_param2.c: New file.
2419 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
2420 * libdwP.h: Remove Dwarf_Macro definition.
2421 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
2422 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
2423 * libdw.map: Add entries for new functions.
2425 2005-03-21 Ulrich Drepper <drepper@redhat.com>
2427 * libdw.h: Handle broken gcc < 4.
2429 2005-02-15 Ulrich Drepper <drepper@redhat.com>
2431 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
2433 * dwarf_begin_elf.c: Fix warnings.
2434 * dwarf_dieoffset.c: Likewise.
2435 * dwarf_end.c: Likewise.
2436 * dwarf_error.c: Likewise.
2437 * dwarf_getpubnames.c: Likewise.
2439 * libdwP.h: Add new error values.
2440 * dwarf_error.c: Support new error values.
2441 * dwarf_getpubnames.c: Check parameter value.
2443 2005-02-05 Ulrich Drepper <drepper@redhat.com>
2445 * Makefile.am: Check for text relocations in constructed DSO.
2447 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
2449 2005-02-04 Ulrich Drepper <drepper@redhat.com>
2451 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
2452 checks to not read over buffer boundaries for ill-formed DWARF data.
2454 2004-09-25 Ulrich Drepper <drepper@redhat.com>
2456 * dwarf_child.c: Make compile with gcc 4.0.
2457 * dwarf_error.c: Likewise.
2458 * dwarf_formblock.c: Likewise.
2459 * dwarf_getabbrev.c: Likewise.
2460 * dwarf_getattrs.c: Likewise.
2461 * dwarf_getsrclines.c: Likewise.
2462 * dwarf_tag.c: Likewise.
2463 * libdw_form.c: Likewise.
2465 2004-01-20 Ulrich Drepper <drepper@redhat.com>
2467 * Makefile.am: Support building with mudflap.
2469 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
2470 * dwarf_getsrclines.c: Likewise.
2471 * dwarf_memory-access.h: Likewise.
2473 2004-01-19 Ulrich Drepper <drepper@redhat.com>
2475 * dwarf_getsrcfiles.c: Third parameter can be NULL.
2477 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
2478 Third parameter of dwarf_getsrcfiles can be NULL.
2480 * libdw.map: Add dwarf_getmacros.
2481 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
2482 * dwarf_getmacros.c: New file.
2484 2004-01-18 Ulrich Drepper <drepper@redhat.com>
2486 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
2488 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
2490 * dwarf_getsrclines.c:
2491 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
2493 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
2495 * libdwP.h (_): Use elfutils domain.
2497 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
2499 * dwarf_getsrclines.c: Fix typo in comment.
2501 2004-01-17 Ulrich Drepper <drepper@redhat.com>
2503 * Makefile.am: Support building with mudflap.
2505 2004-01-16 Ulrich Drepper <drepper@redhat.com>
2507 * memory-access.h: Add lots of const in case a pointer passed is const.
2509 * dwarf_formflag.c: New file.
2510 * dwarf_getattrs.c: New file.
2511 * dwarf_error.c: Add new error value.
2512 * libdw.h: Add prototypes for new functions. Adjust prototype for
2514 * libdw.map: Add new functions.
2515 * dwarf_getpubnames.c: Change type of return value and fourth parameter
2517 * libdwP.h: Add new error value.
2518 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
2521 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
2523 2004-01-12 Ulrich Drepper <drepper@redhat.com>
2525 * dwarf_getarange_addr.c: New file
2526 * dwarf_getarangeinfo.c: New file.
2527 * dwarf_getaranges.c: New file.
2528 * dwarf_onerange.c: New file.
2529 * libdw.h: Declare new functions. Define Dwarf_Arange and
2531 * libdw.map: Add new functions.
2532 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
2533 Define Dwarf_Aranges_s and Dwarf_Arange_s.
2534 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
2535 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
2536 * dwarf_error.c: Add new message.
2538 2004-01-11 Ulrich Drepper <drepper@redhat.com>
2540 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
2541 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
2542 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
2543 * dwarf_error.c: Add another message.
2544 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
2546 * dwarf_filesrc.c: Likewise.
2547 * dwarf_getsrcfiles.c: Likewise.
2548 * dwarf_getsrclines.c: Likewise.
2549 * dwarf_lineaddr.c: New file.
2550 * dwarf_linebeginstatement.c: New file.
2551 * dwarf_lineblock.c: New file.
2552 * dwarf_linecol.c: New file.
2553 * dwarf_lineendsequence.c: New file.
2554 * dwarf_lineepiloguebegin.c: New file.
2555 * dwarf_lineno.c: New file.
2556 * dwarf_lineprologueend.c: New file.
2557 * dwarf_onesrcline.c: New file.
2558 * dwarf_lineno.c: Change interface to store result in object pointed
2559 to by second parameter.
2560 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
2561 prototype. Define Dwarf_Files and Dwarf_Lines.
2562 * libdw.map: Add new functions.
2563 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
2564 * libdw_findcu.c: Don't initialize nlines field.
2566 * dwarf_siblingof: Little optimization.
2568 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
2569 * dwarf_end.c: Close ELF descriptor if free_elf is set.
2570 * libdwP.h (struct Dwarf): Add free_elf field.
2572 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
2574 * dwarf_getstring.c: New file.
2575 * dwarf_offabbrev.c: New file.
2576 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
2577 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
2578 parameters. Don't allocate memory if not necessary and don't lookup
2579 previous results if no CU given.
2580 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
2581 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
2582 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
2583 * libdwP.h: Change prototype for __libdw_getabbrev.
2585 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
2586 returning if this is wanted.
2588 2004-01-09 Ulrich Drepper <drepper@redhat.com>
2590 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
2591 with offset_size value.
2592 * libdw.h: Adjust dwarf_nextcu prototype.
2593 * libdwP.h (struct Dwarf_CU): Add offset_size member.
2594 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
2595 member of new CU struct.
2596 * dwarf_formstring.c: Depend on offset_size not address_size for
2597 DW_FORM_strp handling.
2598 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
2600 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
2602 (dwarf_tag): Correctly recognize failed lookup.
2604 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
2606 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
2607 * dwarf_formblock.c: New file.
2608 * dwarf_getloclist.c: Rewrite to handle a single block.
2609 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
2610 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
2611 dwarf_getloclistent declaration.
2612 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
2613 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
2614 Add locs member to struct Dwarf_CU.
2615 * libdw_fundcu.c: Initialize locs member of new CU.
2616 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
2617 Remove dwarf_getloclistent.c.
2619 2004-01-07 Ulrich Drepper <drepper@redhat.com>
2621 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
2622 * libdwP.h: Likewise.
2624 * dwarf_getloclist.c: New file.
2625 * dwarf_getloclistent.c: New file.
2626 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
2627 Declare dwarf_getloclistent and dwarf_getloclist.
2628 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
2629 * libdwP.h: Define DWARF_E_NO_LOCLIST.
2630 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
2633 * dwarf_error.c: More error messages.
2635 2004-01-06 Ulrich Drepper <drepper@redhat.com>
2637 * dwarf_getsrclines.c: Remove debugging support.
2639 * dwarf_getsrcfiles.c: New file.
2640 * dwarf_filesrc.c: New file.
2641 * libdw.h: Declare these functions. Define Dwarf_File.
2642 * libdwP.c: Adjust Dwarf_File_s definition.
2643 * libdw.map: Add these functions.
2644 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
2646 * dwarf_getsrclines.c: Initialize cu->files.
2648 2004-01-05 Ulrich Drepper <drepper@redhat.com>
2650 * libdw.h: Add more nonnull function attributes.
2652 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
2653 * dwarf_end.c (cu_free): New function.
2654 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
2655 * dwarf_error.c (errmsgs): Add new messages.
2656 * dwarf_getsrc_die.c: New file.
2657 * dwarf_getsrclines.c: New file.
2658 * dwarf_lineno.c: New file.
2659 * dwarf_linesrc.c: New file.
2660 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
2661 instead of the *_inc-less variants.
2662 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
2663 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
2664 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
2666 * libdwP.h: Add more error codes.
2667 (struct Dwarf): Remove mem_tail.next member.
2668 (Dwarf_File): Define type.
2669 (struct Dwarf_Line_s): Define type.
2670 (struct Dwarf_CU): Add lines and nlines members.
2671 (libdw_alloc): Define local variable _tail and use it.
2672 Add some function attributes.
2673 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
2674 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
2675 * memory-access.h: Add unlikely for the endian conversion paths.
2676 * Makefile.am (AM_CFLAGS): Add -std parameter.
2677 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
2678 dwarf_lineno, and dwarf_linesrc.
2680 2003-08-11 Ulrich Drepper <drepper@redhat.com>
2682 * Moved to CVS archive.