libdw: Add DW_LANG_Haskell.
[platform/upstream/elfutils.git] / libdw / ChangeLog
1 2015-08-25  Mark Wielaard  <mjw@redhat.com>
2
3         * dwarf.h: Add DW_LANG_Haskell.
4
5 2015-06-18  Mark Wielaard  <mjw@redhat.com>
6
7         * dwarf_begin_elf.c (dwarf_begin_elf): Assert page size is big enough
8         to hold a Dwarf.
9
10 2015-06-18  Mark Wielaard  <mjw@redhat.com>
11
12         * dwarf_getpubnames.c (get_offsets): Always free mem on error.
13
14 2015-06-18  Mark Wielaard  <mjw@redhat.com>
15
16         * dwarf_getmacros.c (get_macinfo_table): Return NULL when
17         dwarf_formudata reports an error.
18         (get_table_for_offset): Likewise.
19
20 2015-06-08  Mark Wielaard  <mjw@redhat.com>
21
22         * dwarf_getsrclines.c (read_srclines): Initialize dirarray early.
23
24 2015-06-06  Mark Wielaard  <mjw@redhat.com>
25
26         * dwarf_getsrclines.c (read_srclines): Initialize filelist early.
27
28 2015-05-27  Mark Wielaard  <mjw@redhat.com>
29
30         * encoded-value.h (read_encoded_value): Check data d_size contains
31         at least enough data to hold a pointer for DW_EH_PE_indirect.
32
33 2015-05-22  Mark Wielaard  <mjw@redhat.com>
34
35         * dwarf_getsrclines.c (read_srclines): Limit stack usage of lines
36         with MAX_STACK_LINES, files with MAX_STACK_LINES and dirs with
37         MAX_STACK_DIRS. Calculate number of dirs needed first, then
38         create dirarray directly, without needing the next field. Free
39         not stack allocated lines and files at the end.
40
41 2015-05-19  Mark Wielaard <mjw@redhat.com>
42
43         * dwarf_getlocation.c (__libdw_intern_expression): Create a stack
44         allocated array to hold locs. Allocate locs bigger than the array
45         with malloc and free them when done.
46
47 2015-05-11  Jonathan Lebon  <jlebon@redhat.com>
48
49         * libdwP.h (DWARF_E_COMPRESSED_ERROR): New enumerator.
50         * dwarf_error.c (errmsgs): Add DWARF_E_COMPRESSED_ERROR message.
51         * dwarf_begin_elf.c (inflate_section): New static function, lifted
52         from...
53         (check_section): ... here. Call inflate_section, set libdw errno to
54         DWARF_E_COMPRESSED_ERROR if .debug_info section couldn't be inflated.
55
56 2015-05-11  Jonathan Lebon  <jlebon@redhat.com>
57
58         * dwarf_begin_elf.c (check_section): Add compressed flag. Always
59         check for .zdebug sections. Only wrap decompression in #if USE_ZLIB.
60
61 2015-05-06  Mark Wielaard  <mjw@redhat.com>
62
63         * dwarf_getsrclines.c (read_srclines): Use an int64_t to store and
64         check the line number.
65
66 2015-05-05  Mark Wielaard  <mjw@redhat.com>
67
68         * dwarf_getaranges.c (dwarf_getaranges): Check there is enough data
69         left before reading values.
70
71 2015-05-04  Anthony G. Basile  <blueness@gentoo.org>
72
73         * Makefile.am (libdw_so_SOURCES): Append $(argp_LDADD) to link
74         command.
75
76 2015-04-22  Mark Wielaard  <mjw@redhat.com>
77
78         * memory-access.h (__libdw_max_len_leb128): Take type_len as argument.
79         (__libdw_max_len_uleb128): New function.
80         (__libdw_max_len_sleb128): Likewise.
81         (__libdw_get_uleb128): Use __libdw_max_len_uleb128.
82         (__libdw_get_sleb128): Use __libdw_max_len_sleb128.
83
84 2015-04-21  Mark Wielaard  <mjw@redhat.com>
85
86         * dwarf_getmacros.c (read_macros): Allocate attributes dynamically
87         when there are more than 8.
88
89 2015-04-01  Petr Machata  <pmachata@redhat.com>
90
91         * libdwP.h (DWARF_E_NOT_CUDIE): New enumerator.
92         (is_cudie): New function.
93         * dwarf_error.c (errmsgs): Add message for DWARF_E_NOT_CUDIE.
94         * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Call is_cudie instead
95         of white-listing valid tags.
96         * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
97
98 2015-03-18  Petr Machata  <pmachata@redhat.com>
99
100         * Makefile.am (pkginclude_HEADERS): Add known-dwarf.h.
101         (EXTRA_DIST): Remove known-dwarf.h.
102
103 2015-02-09  Mark Wielaard  <mjw@redhat.com>
104
105         * dwarf.h: Add DW_LANG_Fortran03 and DW_LANG_Fortran08.
106         * dwarf_aggregate_size.c (array_size): Recognize array lower bound
107         for new Fortran language codes is 1.
108
109 2015-02-09  Mark Wielaard  <mjw@redhat.com>
110
111         * dwarf.h: Add DW_TAG_atomic_type.
112         * libdw.h (dwarf_peel_type): Document DW_TAG_atomic_type.
113         * dwarf_peel_type.c (dwarf_peel_type): Handle DW_TAG_atomic_type.
114
115 2015-02-11  Josh Stone  <jistone@redhat.com>
116
117         * encoded-value.h (read_encoded_value): Initialize value.
118
119 2015-02-11  Petr Machata  <pmachata@redhat.com>
120
121         * dwarf_ranges.c (dwarf_ranges): Do not bail out when neither
122         DW_AT_entry_pc nor DW_AT_low_pc are available.  Instead remember
123         the fact in *BASEP and bail out later if it hasn't been updated by
124         __libdw_read_begin_end_pair_inc.
125
126 2014-12-24  Mark Wielaard  <mjw@redhat.com>
127
128         * dwarf_getsrc_die.c (dwarf_getsrc_die): Return the last line record
129         smaller than or equal to addr, rather than returning immediately on
130         a match.
131
132 2015-01-07  Mark Wielaard  <mjw@redhat.com>
133
134         * cfi.h (struct Dwarf_CFI_s): Add search_table_len.
135         * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Check there is enough
136         room in the search table for all entries. Store search_table_len.
137         (getcfi_scn_eh_frame): Likewise.
138         * encoded-value.h (encoded_value_size): Don't abort, return zero.
139         (__libdw_cfi_read_address_inc): Check there is enough room to read
140         values. Pass other byte order to read functions.
141         (read_encoded_value): Check encoded_value_size. Don't abort, but
142         set libdw errno and report failure. Check there is enough room to
143         read values.
144         * fde.c (binary_search_fde): Check encoded value size. Add hdr
145         data buf and size to dummy_cfi.
146
147 2015-01-04  Mark Wielaard  <mjw@redhat.com>
148
149         * dwarf_siblingof.c (dwarf_siblingof): Check sibling attribute
150         is after current DIE.
151
152 2015-01-04  Mark Wielaard  <mjw@redhat.com>
153
154         * cfi.c (enough_registers): Check reg < INT32_MAX / sizeof
155         (dwarf_frame_register).
156
157 2015-01-02  Mark Wielaard  <mjw@redhat.com>
158
159         * dwarf_getcfi_elf.c (parse_eh_frame_hdr): Add size check.
160         (getcfi_gnu_eh_frame): Remove size check. Check d_buf is not NULL.
161         (getcfi_scn_eh_frame): Check d_buf is not NULL.
162
163 2015-01-02  Mark Wielaard  <mjw@redhat.com>
164
165         * dwarf_getlocation.c (__libdw_intern_expression): Check dbg is not
166         NULL for DW_OP_call_ref and DW_OP_GNU_implicit_pointer. For
167         DW_OP_addr if dbg is NULL then read argument directly.
168
169 2015-01-14  Jason P. Leasure <jpleasu@super.org>
170
171         * dwarf_formref_die.c (dwarf_formref_die): Offset is cu->type_offset
172         plus cu->start.
173
174 2014-12-27  Mark Wielaard  <mjw@redhat.com>
175
176         * dwarf_siblingof.c (dwarf_siblingof): Check sibling attribute offset
177         still falls inside CU data.
178
179 2015-01-11  Mark Wielaard  <mjw@redhat.com>
180
181         * dwarf_func_inline.c (dwarf_func_inline_instances): Call
182         __libdw_visit_scopes with NULL imports.
183         * dwarf_getfuncs.c (dwarf_getfuncs): Likewise.
184         * dwarf_getscopes.c (pc_record): Likewise.
185         (dwarf_getscopes): Likewise.
186         * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
187         * libdwP.h (__libdw_visit_scopes): Add imports argument.
188         * libdw_visit_scopes.c (__libdw_visit_scopes): Likewise. Add new
189         function imports_contains. Push and pop imports around walk_children
190         when processing DW_TAG_imported_unit.
191
192 2014-12-18  Ulrich Drepper  <drepper@gmail.com>
193
194         * Makefile.am: Suppress output of textrel_check command.
195
196 2014-12-16  Mark Wielaard  <mjw@redhat.com>
197
198         * dwarf_getsrclines.c (read_srclines): Check diridx is valid under
199         DW_LNE_define_file.
200
201 2014-12-16  Mark Wielaard  <mjw@redhat.com>
202
203         * dwarf_getpubnames.c (dwarf_getpubnames): Make sure there is enough
204         space to read die offset.
205
206 2014-12-16  Mark Wielaard  <mjw@redhat.com>
207
208         * dwarf_getsrclines.c (read_srclines): Correct overflow check for
209         unit_length.
210
211 2014-12-15  Mark Wielaard  <mjw@redhat.com>
212
213         * dwarf_getpubnames.c (get_offsets): Make sure whole unit fall inside
214         section data. Set error to DWARF_E_NO_ENTRY if cnt is zero.
215         (dwarf_getpubnames): Make sure section data contains string zero
216         terminator.
217
218 2014-12-16  Mark Wielaard  <mjw@redhat.com>
219
220         * memory-access.h (__libdw_get_sleb128): Unroll the first step to help
221         the compiler optimize for the common single-byte case.
222
223 2014-12-15  Josh Stone  <jistone@redhat.com>
224
225         * memory-access.h (__libdw_max_len_leb128): New.
226         (__libdw_get_uleb128): Use __libdw_max_len_leb128.
227         (__libdw_get_sleb128): Likewise.
228
229 2014-12-14  Mark Wielaard  <mjw@redhat.com>
230
231         * cfi.c (execute_cfi): Add program bounds checks.
232         * dwarf_child.c (__libdw_find_attr): Add attrp bounds checks.
233         * dwarf_formblock.c (dwarf_formblock): Call get_uleb128 with endp.
234         * dwarf_formref.c (__libdw_formref): Add datap bounds checks.
235         * dwarf_formsdata.c (dwarf_formsdata): Likewise.
236         * dwarf_formudata.c (dwarf_formudata): Likewise.
237         * dwarf_frame_register.c (dwarf_frame_register): Call get_uleb128
238         with end of data buf.
239         * dwarf_getabbrev.c (__libdw_getabbrev): Add abbrevp bounds checks.
240         * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Assume get_uleb128
241         call gets enough data.
242         * dwarf_getattrs,c (dwarf_getattrs): Call get_uleb128 with endp.
243         * dwarf_getlocation.c (store_implicit_value): Call get_uleb128
244         with enough data.
245         (__libdw_intern_expression): Call get_uleb128/get_sleb128 with
246         end_data.
247         * dwarf_getmacros.c (get_table_for_offset): Add nforms bounds check.
248         * dwarf_getsrclines.c (read_srclines): Bounds check linep and call
249         get_uleb128 with lineendp.
250         * dwarf_hasattr.c (dwarf_hasattr): Bounds check attrp and call
251         get_uleb128 with endp.
252         * dwarf_next_cfi.c (dwarf_next_cfi): Bounds check bytes and call
253         get_uleb128/get_sleb128 with limit.
254         * encoded-value.h (read_encoded_value): Assume get_uleb128 and
255         get_sleb128 get called with enough data.
256         * fde.c (intern_fde): Call get_uleb128 with instructions_end.
257         * libdwP.h (__libdw_dieabbrev): Call get_uleb128 with die->cu->endp.
258         * libdw_form.c (__libdw_form_val_compute_len): Call get_uleb128 with
259         endp.
260         * memory-access.h (__libdw_get_uleb128): Take an extra endp.
261         Don't call get_uleb128_step if out of data.
262         (__libdw_get_sleb128): Likewise for get_sleb128_step.
263
264 2014-12-12  Mark Wielaard  <mjw@redhat.com>
265
266         * libdwP.h (struct Dwarf): Add fake_loc_cu.
267         (cu_data): Removed.
268         (DIE_OFFSET_FROM_CU_OFFSET): Don't use cu_data, use cu_sec_idx.
269         (__libdw_form_val_compute_len): Drop dbg and endp arguments.
270         (__libdw_form_val_len): Likewise.
271         * libdw_form.c (__libdw_form_val_compute_len): Likewise.
272         * libdw_findcu.c (__libdw_intern_next_unit): Don't use cu_data, use
273         the already found data buffer directly.
274         * dwarf_begin_elf.c (valid_p): Setup fake_loc_cu.
275         * dwarf_end.c (dwarf_end): Free fake_loc_cu.
276         * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len with
277         just cu.
278         * dwarf_getattrs.c (dwarf_getattrs): Likewise.
279         * dwarf_formblock.c (dwarf_formblock): Add bounds checking.
280         * dwarf_getlocation_attr.c (attr_form_cu): New function.
281         (dwarf_getlocation_attr): Use attr_form_cu to set result->cu.
282         (getlocation): Handle empty blocks immediately.
283         * dwarf_getlocation_implicit_pointer.c (empty_cu): New static var.
284         (__libdw_empty_loc_attr): Drop cu argument, use empty_cu.
285         (dwarf_getlocation_implicit_pointer): Call __libdw_empty_loc_attr with
286         one argument.
287         * dwarf_getmacros.c (read_macros): Also setup startp and endp for
288         fake_cu. Call __libdw_form_val_len with just fake_cu.
289         * dwarf_formref_die.c (dwarf_formref_die): Don't use cu_data, get
290         datap and size directly from cu startp and endp.
291
292 2014-12-11  Mark Wielaard  <mjw@redhat.com>
293
294         * libdw_findcu.c (__libdw_intern_next_unit): Sanity check offset.
295
296 2014-12-13  Mark Wielaard  <mjw@redhat.com>
297
298         * dwarf_getaranges.c (compare_aranges): Make sure Dwarf_Addr
299         difference doesn't wrap around before returning as int.
300
301 2014-12-11  Josh Stone  <jistone@redhat.com>
302
303         * dwarf_getsrclines.c (struct linelist): Add sequence.
304         (compare_lines): Take linelists, and break ties by sequence.
305         (read_srclines): Use linelists for sorting.
306         (read_srclines::add_new_line): Set sequence.
307
308 2014-12-10  Josh Stone  <jistone@redhat.com>
309
310         * libdwP.h (Dwarf_CU): Add startp and endp boundaries.
311         * libdw_findcu.c (__libdw_intern_next_unit): Set startp and endp.
312         * dwarf_child.c (dwarf_child): Use cu->endp.
313         * dwarf_cuoffset.c (dwarf_cuoffset): Use cu->startp.
314         * dwarf_dieoffset.c (dwarf_dieoffset): Use cu->startp.
315         * dwarf_siblingof.c (dwarf_siblingof): Use both.
316
317 2014-12-10  Josh Stone  <jistone@redhat.com>
318
319         * dwarf_hasattr.c (dwarf_hasattr): Just walk abbrev for presence.
320
321 2014-12-10  Josh Stone  <jistone@redhat.com>
322
323         * libdwP.h (__libdw_dieabbrev): New die->abbrev lookup function.
324         * dwarf_child.c (__libdw_find_attr, dwarf_child): Use it.
325         * dwarf_getattrs.c (dwarf_getattrs): Likewise.
326         * dwarf_haschildren.c (dwarf_haschildren): Likewise.
327         * dwarf_tag.c (dwarf_tag): Likewise.
328
329 2014-12-04  Mark Wielaard  <mjw@redhat.com>
330
331         * libdwP.h (__libdw_form_val_compute_len): Add endp argument.
332         (__libdw_form_val_len): Likewise and check len doesn't overflow.
333         * libdw_form.c (__libdw_form_val_compute_len): Likewise.
334         * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len
335         with endp.
336         * dwarf_getattrs.c (dwarf_getattrs): Likewise.
337         * dwarf_getmacros.c (read_macros): Likewise and check for errors.
338
339 2014-12-02  Petr Machata  <pmachata@redhat.com>
340
341         * dwarf_getmacros.c (token_from_offset, offset_from_token): New
342         helper functions.
343         (do_dwarf_getmacros_die): Merge into dwarf_getmacros.
344         * libdw.h (DWARF_GETMACROS_START): New macro.
345
346 2014-11-27  Mark Wielaard  <mjw@redhat.com>
347
348         * Makefile.am (libdw.so): Use textrel_check.
349
350 2014-11-27  Mark Wielaard  <mjw@redhat.com>
351
352         * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Initialize
353         search_table_entries and search_table_encoding.
354
355 2014-11-24  Mark Wielaard  <mjw@redhat.com>
356
357         * dwarf_getsrclines.c (read_srclines): Check line_range is not zero
358         before usage.
359
360 2014-11-23  Mark Wielaard  <mjw@redhat.com>
361
362         * dwarf_attr.c (dwarf_attr): Check __libdw_find_attr return value.
363         * dwarf_hasattr.c (dwarf_hasattr): Likewise.
364         * dwarf_siblingof.c (dwarf_siblingof): Likewise.
365
366 2014-11-23  Mark Wielaard  <mjw@redhat.com>
367
368         * dwarf_getabbrev.c (__libdw_getabbrev): Don't assert on bad DWARF.
369         Set libdw errno and return NULL.
370
371 2014-11-24  Mark Wielaard  <mjw@redhat.com>
372
373         * dwarf.h (DW_LANG_C_plus_plus_11): Added.
374         (DW_LANG_C11): Likewise.
375         (DW_LANG_C_plus_plus_14): Likewise.
376         * dwarf_aggregate_size.c (array_size): Handle DW_LANG_C11,
377         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14 and DW_LANG_Go
378         lower bound.
379         * dwarf_getfuncs.c (dwarf_getfuncs): Set c_cu to true for
380         DW_LANG_C11.
381
382 2014-11-26  Mark Wielaard  <mjw@redhat.com>
383
384         * dwarf.h (DW_AT_noreturn): Added.
385
386 2014-11-11  Mark Wielaard  <mjw@redhat.com>
387
388         * dwarf_getsrclines.c (read_srclines): Do address_size comparison
389         explicitly as uint8_t.
390         (__libdw_getsrclines): Add internal_function to declaration.
391
392 2014-09-10  Petr Machata  <pmachata@redhat.com>
393
394         * dwarf_macro_getparamcnt.c: New file.
395         * dwarf_macro_param.c: New file.
396         * dwarf_macro_getsrcfiles.c: New file.
397         * Makefile.am (libdw_a_SOURCES): Add the new files.
398         * libdwP.h (struct files_lines_s): New structure.
399         (DWARF_E_INVALID_OPCODE): New enumerator.
400         (struct Dwarf): New fields macro_ops, files_lines.
401         (Dwarf_Macro_Op_Proto, Dwarf_Macro_Op_Table): New structures for
402         keeping macro opcode prototypes in.
403         (Dwarf_Macro_s): Redefine from scratch.
404         (__libdw_getsrclines, __libdw_getcompdir, libdw_macro_nforms): New
405         internal interfaces.
406         * dwarf_error.c (errmsgs): Add a message for
407         DWARF_E_INVALID_OPCODE.
408         * dwarf_end.c (dwarf_end): Destroy struct Dwarf.macro_ops and
409         files_lines.
410         * libdw.h (dwarf_getmacros_off, dwarf_macro_getparamcnt)
411         (dwarf_macro_getsrcfiles, dwarf_macro_param): New public
412         interfaces.
413         * dwarf_getmacros.c (dwarf_getmacros_off): New function,
414         (get_offset_from, macro_op_compare, build_table)
415         (init_macinfo_table, get_macinfo_table, get_table_for_offset)
416         (cache_op_table, read_macros, gnu_macros_getmacros_off)
417         (macro_info_getmacros_off, do_dwarf_getmacros_die): New helper
418         functions.
419         (dwarf_getmacros): Adjust to dispatch to the new interfaces.
420         * dwarf_getsrclines.c (read_srclines): New function with guts
421         taken from dwarf_getsrclines.
422         (__libdw_getsrclines): Likewise.
423         (__libdw_getcompdir, files_lines_compare): New functions.
424         (dwarf_getsrclines): Make it dispatch to the new interfaces.
425         * dwarf_macro_param1.c (dwarf_macro_param1): Adjust to dispatch to
426         the new interfaces.
427         * dwarf_macro_param2.c (dwarf_macro_param2): Likewise.
428         * libdw.map (ELFUTILS_0.161): New. Add dwarf_getmacros_off,
429         dwarf_macro_getsrcfiles, dwarf_macro_getparamcnt, dwarf_macro_param.
430
431 2014-10-06  Mark Wielaard  <mjw@redhat.com>
432
433         * Makefile.am (libdw_a_SOURCES): Add dwarf_peel_type.c.
434         * dwarf_aggregate_size.c (get_type): Use dwarf_peel_type.
435         (aggregate_size): Likewise. Add old and new version.
436         * dwarf_peel_type.c: New file.
437         * libdw.h (dwarf_peel_type): New function declaration.
438         * libdwP.h (dwarf_peel_type): New internal declaration.
439         * libdw.map (ELFUTILS_0.161): New section.
440
441 2014-10-15  Petr Machata  <pmachata@redhat.com>
442
443         * libdwP.h (struct Dwarf_Files_s.cu): Drop field.
444         * dwarf_getsrclines.c (dwarf_getsrclines): Don't set it.
445
446 2014-10-05  Mark Wielaard  <mjw@redhat.com>
447
448         * dwarf.h: Add DW_AT_GNU_deleted.
449
450 2014-10-02  Mark Wielaard  <mjw@redhat.com>
451
452         * dwarf_aggregate_size.c (aggregate_size): Return CU address_size
453         for sizeless DW_TAG_pointer_type, DW_TAG_reference_type or
454         DW_TAG_rvalue_reference_type.
455
456 2014-09-12  Petr Machata  <pmachata@redhat.com>
457
458         * memory-access.h (read_ubyte_unaligned_inc): Allow only 4- and
459         8-byte quantities.  Consequently, rename to...
460         (read_addr_unaligned_inc): ... this.
461         (read_sbyte_unaligned_inc, read_ubyte_unaligned): Drop.
462         (read_sbyte_unaligned): Drop.
463
464 2014-09-10  Petr Machata  <pmachata@redhat.com>
465
466         * dwarf_getlocation.c (attr_ok): Also accept
467         DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value,
468         DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered.
469
470 2014-08-15  Mark Wielaard  <mjw@redhat.com>
471
472         * dwarf_cu_die.c: New file.
473         * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_die.c.
474         * libdw.h (dwarf_cu_die): New function declaration.
475         * libdw.map (ELFUTILS_0.160): Add dwarf_cu_die.
476
477 2014-08-15  Mark Wielaard  <mjw@redhat.com>
478
479         * dwarf_cu_getdwarf.c: New file.
480         * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_getdwarf.c.
481         * libdw.h (Dwarf_CU): New typedef.
482         (dwarf_cu_getdwarf): New function declaration.
483         * libdw.map (ELFUTILS_0.160): New. Add dwarf_cu_getdwarf.
484
485 2014-06-18  Mark Wielaard  <mjw@redhat.com>
486
487         * dwarf.h: Remove DW_TAG_mutable_type.
488
489 2014-05-02  Mark Wielaard  <mjw@redhat.com>
490
491         * libdwP.h (__check_build_id): Removed now unused.
492
493 2014-05-01  Mark Wielaard  <mjw@redhat.com>
494
495         * libdwP.h (struct Dwarf): Remove free_alt.
496         * dwarf_end.c (dwarf_end): Don't check free_alt, don't end alt_dwarf.
497         * dwarf_setalt.c (dwarf_setalt): Don't check or set free_alt.
498
499 2014-04-30  Mark Wielaard  <mjw@redhat.com>
500
501         * libdw.map (ELFUTILS_0.159): Add dwelf_elf_gnu_build_id.
502
503 2014-04-15  Florian Weimer  <fweimer@redhat.com>
504
505         * dwarf_begin_elf.c (__check_build_id, try_debugaltlink)
506         (open_debugaltlink): Move to libdwfl.
507         (check_section): Do not locate alternate debuginfo.
508
509 2014-04-24  Florian Weimer  <fweimer@redhat.com>
510
511         * libdw.map (ELFUTILS_0.159): Export dwelf_dwarf_gnu_debugaltlink.
512
513 2014-04-22  Florian Weimer  <fweimer@redhat.com>
514
515         * dwarf_getalt.c, dwarf_setalt.c: New files.
516         * Makefile.am (libdw_a_SOURCES): Add them.
517         * libdw.h (dwarf_getalt, dwarf_setalt): Add function declarations.
518         * libdwP.h (dwarf_getalt, dwarf_setalt): Add internal function
519         declarations.
520         * libdw.map (ELFUTILS_0.159): Export the two new functions.
521
522 2014-04-15  Florian Weimer  <fweimer@redhat.com>
523
524         * libdwP.h (enum IDX_gnu_debugaltlink): New.
525         * dwarf_begin_elf.c (dwarf_scnnames): Increase string size and add
526         .gnu_debugaltlink.
527         (check_section): Obtain .gnu_debugaltlink section from the
528         setiondata array.
529
530 2014-04-11  Mark Wielaard  <mjw@redhat.com>
531
532         * libdw.map (ELFUTILS_0.159): New. Add dwelf_elf_gnu_debuglink.
533         * Makefile.am (libdw.so): Depend on libdwelf_pic.a.
534         (libdwelf_objects): New variable.
535         (libdw_a_LIBADD): Add libdwelf objects.
536
537 2014-04-22  Mark Wielaard  <mjw@redhat.com>
538
539         * memory-access.h (get_sleb128_step): Remove undefined behavior
540         of left shifting a signed value. Replace it with a multiplication.
541
542 2014-04-13  Mark Wielaard  <mjw@redhat.com>
543
544         * Makefile.am: Remove !MUDFLAP conditions.
545
546 2014-04-09  Mark Wielaard  <mjw@redhat.com>
547
548         * dwarf_begin_elf.c (check_section): Check for unsigned overflow
549         before calling malloc to uncompress data.
550
551 2014-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
552
553         Fix abort() on missing section headers.
554         * dwarf_begin_elf.c (check_section): Replace abort call by goto err.
555         New label err to return NULL.
556
557 2014-02-05  Josh Stone  <jistone@redhat.com>
558
559         * dwarf_decl_file.c (dwarf_decl_file): Read the idx as unsigned.
560         * dwarf_decl_line.c (__libdw_attr_intval): Read the line/column as
561         unsigned.  Change the range assert to DWARF_E_INVALID_DWARF.
562
563 2013-12-30  Mark Wielaard  <mjw@redhat.com>
564
565         * libdw.map (ELFUTILS_0.158): Add dwfl_core_file_attach and
566         dwfl_linux_proc_attach.
567
568 2013-12-20  Mark Wielaard  <mjw@redhat.com>
569
570         * libdw.map (ELFUTILS_0.158): Add dwfl_getthread_frames.
571
572 2013-12-18  Mark Wielaard  <mjw@redhat.com>
573
574         * libdw.map (ELFUTILS_0.158): Remove dwfl_module_addrsym_elf and
575         dwfl_module_getsym_elf. Add dwfl_module_addrinfo and
576         dwfl_module_getsym_info.
577
578 2013-12-16  Mark Wielaard  <mjw@redhat.com>
579
580         * libdw.map (ELFUTILS_0.158): Add dwfl_module_getsymtab_first_global.
581
582 2013-12-10  Josh Stone  <jistone@redhat.com>
583
584         * memory-access.h (get_uleb128_rest_return): Removed.
585         (get_sleb128_rest_return): Removed.
586         (get_uleb128_step): Make this a self-contained block.
587         (get_sleb128_step): Ditto, and use a bitfield to extend signs.
588         (get_uleb128): Make this wholly implemented by __libdw_get_uleb128.
589         (get_sleb128): Make this wholly implemented by __libdw_get_sleb128.
590         (__libdw_get_uleb128): Simplify and inline for all callers.
591         (__libdw_get_sleb128): Ditto.
592         * dwarf_getlocation.c (store_implicit_value): Void the unused uleb128.
593         * memory-access.c: Delete file.
594         * Makefile.am (libdw_a_SOURCES): Remove it.
595         (DEFS): Remove the now unused -DIS_LIBDW.
596
597 2013-12-09  Josh Stone  <jistone@redhat.com>
598
599         * libdw_form.c (__libdw_form_val_compute_len): Renamed function from
600         __libdw_form_val_len, now handling only non-constant form lengths.
601         * libdwP.h (__libdw_form_val_len): New inlined function.
602
603 2013-12-09  Mark Wielaard  <mjw@redhat.com>
604
605         * dwarf_getlocation.c (__libdw_intern_expression): Handle empty
606         location expressions.
607         * dwarf_getlocation_attr.c (dwarf_getlocation_attr): When no
608         location found, return empty location expression.
609         * dwarf_getlocation_implicit_pointer.c
610         (dwarf_getlocation_implicit_pointer): Likewise.
611         (__libdw_empty_loc_attr): New internal function.
612         * libdwP.h (__libdw_empty_loc_attr): Define.
613
614 2013-11-27  Mark Wielaard  <mjw@redhat.com>
615
616         * libdw.map (ELFUTILS_0.158): Add dwfl_module_addrsym_elf and
617         dwfl_module_getsym_elf.
618
619 2013-11-26  Mark Wielaard  <mjw@redhat.com>
620
621         * libdw.map (ELFUTILS_0.156): Move dwfl_attach_state, dwfl_pid,
622         dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
623         dwfl_thread_state_registers, dwfl_thread_state_register_pc,
624         dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc to ...
625         (ELFUTILS_0.158): ... here.
626
627 2013-11-09  Mark Wielaard  <mjw@redhat.com>
628
629         * dwarf_getaranges.c (dwarf_getaranges): Read segment_size and
630         check that it is zero.
631
632 2013-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
633
634         * cfi.h (struct Dwarf_Frame_s): Make the comment more specific.
635         * libdw.map (ELFUTILS_0.156): Add dwfl_attach_state, dwfl_pid,
636         dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
637         dwfl_thread_state_registers, dwfl_thread_state_register_pc,
638         dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc.
639
640 2013-11-01  Michael Forney  <mforney@mforney.org>
641
642         * Makefile.am (libdwfl_objects): New definition.
643         (libdw_a_LIBADD): Use libdwfl_objects.
644
645 2013-11-01  Michael Forney  <mforney@mforney.org>
646
647         * Makefile.am: Use READELF.
648
649 2013-10-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
650
651         * libdw.map (ELFUTILS_0.158): New.
652
653 2013-10-10  Mark Wielaard  <mjw@redhat.com>
654
655         * dwarf_getfuncs.c (struct visitor_info): Rename start_offset to
656         start_addr and rename last_offset to last_addr. Now both void *.
657         (tree_visitor): Use start_add and die_addr instead of start_offset
658         and die_offset.
659         (dwarf_getfuncs): Use last_addr instead of last_offset.
660
661 2013-10-06  Mark Wielaard  <mjw@redhat.com>
662
663         * cfi.c (execute_cfi): Make sure DW_CFA_expression and
664         DW_CFA_val_expression are not used with abi_cfi.
665
666 2013-10-03  Josh Stone  <jistone@redhat.com>
667
668         * dwarf_formref_die.c (dwarf_formref_die): Don't hash the sig8 here.
669         * libdw_findcu.c (__libdw_intern_next_unit): Since this never revisits
670         a unit, make sure to always hash the sig8 here, so none are missed.
671
672 2013-09-29  Mark Wielaard  <mjw@redhat.com>
673
674         * dwarf_getlocation.c (store_implicit_value): Cast op->number2 to
675         uintptr_t before casting to char *.
676         (__libdw_intern_expression): Cast data to uintptr_t before casting
677         to Dwarf_Word.
678         * dwarf_getlocation_attr.c (dwarf_getlocation_attr): Cast
679         op->number2 to uintptr_t before casting to char *.
680
681 2013-09-24  Josh Stone  <jistone@redhat.com>
682
683         * libdw_visit_scopes.c (classify_die): Removed.
684         (may_have_scopes): New function to replace classify_die.  There's no
685         need for full classification; just find tags that may contain scopes.
686         (__libdw_visit_scopes): Use a direct tag comparison for imported
687         units, and use may_have_scopes to test if recursion is needed.
688
689 2013-09-20  Mark Wielaard  <mjw@redhat.com>
690
691         * dwarf_getfuncs.c (visitor_info): New struct.
692         (tree_visitor): New function.
693         (dwarf_getfuncs): Use __libdw_visit_scopes with tree_visitor.
694         * libdw.h (dwarf_getfuncs): Expand function documentation.
695
696 2013-09-12  Mark Wielaard  <mjw@redhat.com>
697
698         * fde.c (intern_fde): Free fde and set libdw errno when start
699         or end could not be read.
700
701 2013-08-24  Mark Wielaard  <mjw@redhat.com>
702
703         * dwarf_getlocation.c (store_implicit_value): Don't take data
704         as argument, get block data from op number2. Return false when
705         block data length and op number don't match up.
706         (__libdw_intern_expression): Store start of block for
707         DW_OP_implicit_value and DW_OP_GNU_entry_value instead of
708         relative data offset. Also store block start (including length)
709         for DW_OP_GNU_const_type. Don't pass data to store_implicit_value.
710         * dwarf_getlocation_attr.c: New file.
711         * dwarf_getlocation_die.c: Likewise.
712         * libdw.h (dwarf_getlocation_die): New function definition.
713         (dwarf_getlocation_attr): Likewise.
714         * libdwP.h: Declare internal dwarf_getlocation_die.
715         * libdw.map (ELFUTILS_0.157): Add dwarf_getlocation_die and
716         dwarf_getlocation_attr.
717         * Makefile.am (libdw_a_SOURCES): Add dwarf_getlocation_die.c and
718         dwarf_getlocation_attr.c.
719
720 2013-08-23  Mark Wielaard  <mjw@redhat.com>
721
722         * dwarf_getlocation.c (attr_ok): Also accept DW_AT_segment.
723         (attr_base_address): New function.
724         (initial_offset_base): New function.
725         (getlocations_addr): New function. Taken from...
726         (dwarf_getlocation_addr): here. Use new initial_offset_base and
727         getlocations_addr.
728         (dwarf_getlocations): New function.
729         * libdw.h (dwarf_getlocations): New function definition.
730         * libdw.map (ELFUTILS_0.157): New.
731
732 2013-07-02  Mark Wielaard  <mjw@redhat.com>
733
734         * dwarf_getsrclines.c (dwarf_getsrclines): Add new stack allocation
735         limit MAX_STACK_ALLOC.  After MAX_STACK_ALLOC lines use malloc in
736         NEW_LINE macro.  Free malloced line records if any at the end.
737
738 2013-07-02  Mark Wielaard  <mjw@redhat.com>
739
740         * dwarf_getcfi_elf.c (getcfi_shdr): Check sh_type == SHT_PROGBITS.
741
742 2013-06-26  Mark Wielaard  <mjw@redhat.com>
743
744         * libdw_visit_scopes.c (__libdw_visit_scopes): Don't reject root
745         DIEs without children. Return an error whenever dwarf_child or
746         dwarf_siblingof return an error. Don't call recurse and increase
747         the depth for an imported unit. Walk the children of an imported
748         unit as if they are logical children of the parent root DIE.
749
750 2013-05-03  Mark Wielaard  <mjw@redhat.com>
751
752         * dwarf_getsrclines.c (dwarf_getsrclines): Only set end_sequence
753         when nlinelist > 0.
754
755 2013-04-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
756
757         * libdw.map (ELFUTILS_0.156): New.
758
759 2013-04-24  Mark Wielaard  <mjw@redhat.com>
760
761         * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
762
763 2013-04-10  Mark Wielaard  <mjw@redhat.com>
764
765         * dwarf_formref_die.c (dwarf_formref_die): Reference size is only
766         equal to address size when we have a DW_FORM_ref_addr for DWARF
767         version 2.
768
769 2013-03-25  Mark Wielaard  <mjw@redhat.com>
770
771         * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as
772         end_sequence.
773
774 2013-03-12  Mark Wielaard  <mjw@redhat.com>
775
776         * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit.
777         * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
778
779 2013-02-15  Mark Wielaard  <mjw@redhat.com>
780
781         * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata,
782         not dbg->sectiondata.
783
784 2013-01-07  Roland McGrath  <roland@hack.frob.com>
785
786         * memory-access.h
787         [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro.
788         [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function.
789
790 2012-12-18  Mark Wielaard  <mjw@redhat.com>
791
792         * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid.
793         (check_section): Likewise on error.
794         (scngrp_read): Likewise.
795         (dwarf_begin_elf): Likewise.
796
797 2012-10-09  Petr Machata  <pmachata@redhat.com>
798
799         * dwarf_getlocation.c (__libdw_intern_expression): Handle
800         DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret,
801         DW_OP_GNU_regval_type, DW_OP_GNU_entry_value,
802         DW_OP_GNU_deref_type, DW_OP_GNU_const_type.
803
804 2012-10-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
805
806         * cfi.c: New include system.h.
807         (execute_cfi) (enough_registers): Clear new memory after realloc.
808
809 2012-10-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
810
811         * fde.c (__libdw_find_fde): Change <fde != NULL> to likely.  Return
812         DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for
813         searched PC.
814
815 2012-10-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
816
817         * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new
818         loclist element DW_OP_call_frame_cfa before decoding the opcodes.
819         Remove the later DW_OP_call_frame_cfa push to RESULT.
820
821 2012-10-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
822
823         Code cleanup.
824         * fde.c (binary_search_fde): Remove always true <address >= start>
825         conditional.  Move L initialization upwards.
826
827 2012-08-24  Mark Wielaard  <mjw@redhat.com>
828
829         * dwarf_begin_elf.c (check_section): Only probe for dwz multi files
830         when ENABLE_DWZ is defined.
831         * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is
832         defined.
833
834 2012-08-16  Mark Wielaard  <mjw@redhat.com>
835
836         * Makefile.am (EXTRA_DIST): Add known-dwarf.h.
837         * dwarf.h (DW_LANG_Go): Update comment.
838         (DW_LANG_Mips_Assembler): Likewise.
839
840 2012-06-27  Mark Wielaard  <mjw@redhat.com>
841
842         * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
843         * dwarf_begin.c (dwarf_begin): Add INTDEF.
844         * dwarf_begin_elf.c (__check_build_id): New internal_function.
845         (try_debugaltlink): New function.
846         (open_debugaltlink): Likewise.
847         (check_section): Try open_debugaltlink for .gnu_debugaltlink.
848         * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if
849         necessary.
850         * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK.
851         * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt
852         is an error here.
853         * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt.
854         * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt.
855         * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset
856         calls.
857         * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call.
858         * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK.
859         (struct Dwarf): Add alt_dwarf and free_alt fields.
860         (__libdw_read_offset): Add dbg_ret argument, use to check with
861         __libdw_offset_in_section.
862         (__check_build_id): New function declaration.
863         (dwarf_begin): Define as INTDECL.
864         * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt
865         and DW_FORM_GNU_strp_alt.
866
867 2012-07-19  Mark Wielaard  <mjw@redhat.com>
868
869         * dwarf.h: Add DW_OP_GNU_parameter_ref.
870
871 2012-07-24  Mark Wielaard  <mjw@redhat.com>
872
873         * dwarf.h: Correct spelling of DW_LANG_ObjC.
874         * dwarf_aggregate_size.c (array_size): Use correct spelling of
875         DW_LANG_ObjC.
876
877 2012-07-24  Mark Wielaard  <mjw@redhat.com>
878
879         * dwarf.h: Add DW_ATE_UTF.
880
881 2012-06-27  Mark Wielaard  <mjw@redhat.com>
882
883         * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
884
885 2012-06-26  Mark Wielaard  <mjw@redhat.com>
886
887         * libdwP.h: Add IDX_debug_macro.
888         * dwarf.h: Add DW_AT_GNU_macros.
889         * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro.
890         * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros.
891
892 2012-04-27  Mark Wielaard  <mjw@redhat.com>
893
894         * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being
895         a constant offset from DW_AT_low_pc.
896
897 2012-03-19  Tom Tromey  <tromey@redhat.com>
898
899         * libdw_findcu.c (findcu_cb): Move earlier.
900         (__libdw_intern_next_unit): Add new CU to search tree here...
901         (__libdw_findcu): ... not here.
902
903 2012-01-31  Mark Wielaard  <mjw@redhat.com>
904
905         * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset.
906
907 2011-11-31  Mark Wielaard  <mjw@redhat.com>
908
909         * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
910
911 2011-07-14  Mark Wielaard  <mjw@redhat.com>
912
913         * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
914
915 2011-05-16  Jakub Jelinek  <jakub@redhat.com>
916
917         * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
918         DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
919         New.
920
921 2011-04-26  Mark Wielaard  <mjw@redhat.com>
922
923         * dwarf_child (dwarf_child): Sanity check end of section against
924         cu_data () of die->cu.
925
926 2011-03-22  Mark Wielaard  <mjw@redhat.com>
927
928         * dwarf.h: Add DW_TAG_GNU_call_site,
929         DW_TAG_GNU_call_site_parameter,
930         DW_AT_GNU_call_site_value,
931         DW_AT_GNU_call_site_data_value,
932         DW_AT_GNU_call_site_target,
933         DW_AT_GNU_call_site_target_clobbered,
934         DW_AT_GNU_tail_call,
935         DW_AT_GNU_all_tail_call_sites,
936         DW_AT_GNU_all_call_sites,
937         DW_AT_GNU_all_source_call_sites,
938         and DW_OP_GNU_entry_value.
939
940 2011-03-10  Petr Machata  <pmachata@redhat.com>
941
942         * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
943         abbreviation with code 0.
944
945 2011-03-09  Petr Machata  <pmachata@redhat.com>
946
947         * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
948
949 2011-02-23  Roland McGrath  <roland@redhat.com>
950
951         * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
952         Declare __libdw_free_zdata.
953         * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
954         (dwarf_end): Call it.
955
956         * dwarf_begin_elf.c (valid_p): Likewise.
957         (check_section, scngrp_read): Likewise.
958         (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
959
960 2010-10-13  Roland McGrath  <roland@redhat.com>
961
962         * dwarf.h: Add DW_LANG_Go.
963
964 2010-10-05  Roland McGrath  <roland@redhat.com>
965
966         * dwarf_getaranges.c: Use malloc rather than alloca,
967         since the total number of elements can be quite huge.
968
969 2010-07-26  Roland McGrath  <roland@redhat.com>
970
971         * dwarf_getlocation_implicit_pointer.c: New file.
972         * Makefile.am (libdw_a_SOURCES): Add it.
973         * libdw.map (ELFUTILS_0.149): New set.
974         Add dwarf_getlocation_implicit_pointer.
975         * libdw.h: Declare it.
976
977         * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
978         (dwarf_offdie, dwarf_offdie_types): Update callers.
979         * libdwP.h: Declare it.
980
981         * dwarf.h: Add DW_OP_GNU_implicit_pointer.
982         * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
983
984 2010-08-24  Roland McGrath  <roland@redhat.com>
985
986         * libdw.map (ELFUTILS_0.149): New set.  Add dwfl_dwarf_line.
987
988 2010-07-27  Roland McGrath  <roland@redhat.com>
989
990         * dwarf_formref_die.c: Fix sig8 hash insertion.
991
992 2010-06-23  Roland McGrath  <roland@redhat.com>
993
994         * cfi.c (dwarf_cfi_validate_fde): Function removed.
995         * libdw.h: Remove it.
996         * libdw.map: Likewise.
997
998 2010-06-22  Roland McGrath  <roland@redhat.com>
999
1000         * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
1001
1002         * dwarf_getsrclines.c: Fix signed comparison warning in extended
1003         opcode parsing.
1004
1005 2010-06-21  Roland McGrath  <roland@redhat.com>
1006
1007         * dwarf.h: Add DW_TAG_GNU_* constants.
1008
1009         * memory-access.h (get_sleb128_rest_return): Fix sign extension for
1010         10-byte case.
1011
1012 2010-06-20  Roland McGrath  <roland@redhat.com>
1013
1014         * libdw_findcu.c (__libdw_findcu): Take new flag argument,
1015         to search TUs instead of CUs.
1016         * libdwP.h: Update decl.
1017         (struct Dwarf): New member tu_tree.
1018         * dwarf_end.c (dwarf_end): Clean up tu_tree.
1019         * dwarf_offdie.c (do_offdie): New function, broken out of ...
1020         (dwarf_offdie): ... here.
1021         (dwarf_offdie_types): New function.
1022         * libdw.h: Declare it.
1023         * libdw.map (ELFUTILS_0.148): Add it.
1024
1025         * libdwP.h (CUDIE): Use cu_data.
1026         * dwarf_formblock.c: Likewise.
1027         * dwarf_formref_die.c: Likewise.
1028         * dwarf_diecu.c: Use CUDIE macro.
1029         * dwarf_formaddr.c: Use cu_sec_idx.
1030
1031 2010-06-16  Roland McGrath  <roland@redhat.com>
1032
1033         * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
1034         we don't repeat a CU lookup we've already done.  Handle
1035         DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
1036
1037         * libdw_findcu.c (__libdw_intern_next_unit): New function,
1038         broken out of ...
1039         (__libdw_findcu): ... here.  Call it.
1040         * libdwP.h: Declare it.
1041         (struct Dwarf): New member next_tu_offset.
1042
1043         * dwarf_sig8_hash.c: New file.
1044         * dwarf_sig8_hash.h: New file.
1045         * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
1046         * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
1047         defining NO_UNDEF.
1048         * libdwP.h (struct Dwarf): New member sig8_hash.
1049         * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
1050         * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
1051
1052         * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
1053         (dwarf_nextcu): ... here.  Call it.
1054         * libdw.h: Declare it.
1055         * libdwP.h: Add INTDECL.
1056         * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
1057         * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
1058
1059         * libdwP.h (cu_sec_idx, cu_data): New functions.
1060         Use .debug_types when CU is a TU.
1061         * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
1062         * dwarf_siblingof.c: Likewise.
1063         * dwarf_formstring.c: Likewise.
1064         * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
1065         * dwarf_getlocation.c (dwarf_getlocation): Likewise.
1066         (dwarf_getlocation_addr): Likewise.
1067
1068         * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
1069         (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
1070         .debug_types header size instead of .debug_info header size.
1071         (CUDIE): Use it.
1072         * dwarf_diecu.c: Update caller.
1073         * dwarf_getaranges.c: Likewise.
1074         * dwarf_nextcu.c: Likewise.
1075         * libdw_findcu.c (__libdw_findcu): Initialize new members.
1076
1077         * fde.c (fde_by_offset): Renamed to ...
1078         (__libdw_fde_by_offset): ... this, made global and internal_function.
1079         Don't take ADDRESS argument.
1080         (__libdw_find_fde): Update caller.  Do address sanity check here.
1081         * cfi.h: Declare __libdw_fde_by_offset.
1082         * cfi.c (dwarf_cfi_validate_fde): New function.
1083         * libdw.h: Declare it.
1084         * libdw.map (ELFUTILS_0.148): Add it.
1085
1086         * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
1087         either DW_EH_PE_udata8 or DW_EH_PE_udata4.
1088
1089         * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
1090         Don't assume DW_EH_PE_aligned refers to native address size.
1091
1092         * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
1093         address.
1094
1095 2010-06-17  Roland McGrath  <roland@redhat.com>
1096
1097         * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
1098         op_index.
1099         * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
1100         into an inner inline function.  Set new fields.  Check all fields for
1101         overflow when setting.
1102         * dwarf_lineisa.c: New file.
1103         * dwarf_linediscriminator.c: New file.
1104         * dwarf_lineop_index.c: New file.
1105         * Makefile.am (libdw_a_SOURCES): Add them.
1106         * libdw.map (ELFUTILS_0.148): Add them.
1107         * libdw.h: Declare them.
1108
1109 2010-06-16  Roland McGrath  <roland@redhat.com>
1110
1111         * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
1112
1113         * fde.c (fde_by_offset): Renamed to ...
1114         (__libdw_fde_by_offset): ... this, made global and internal_function.
1115         Don't take ADDRESS argument.
1116         (__libdw_find_fde): Update caller.  Do address sanity check here.
1117         * cfi.h: Declare __libdw_fde_by_offset.
1118         * cfi.c (dwarf_cfi_validate_fde): New function.
1119         * libdw.h: Declare it.
1120         * libdw.map (ELFUTILS_0.148): Add it.
1121
1122         * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
1123         either DW_EH_PE_udata8 or DW_EH_PE_udata4.
1124
1125         * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
1126         Don't assume DW_EH_PE_aligned refers to native address size.
1127
1128         * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
1129         address.
1130
1131 2010-06-15  Roland McGrath  <roland@redhat.com>
1132
1133         * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
1134         DW_FORM_ref_addr.
1135         * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
1136         here, since we don't support it yet.
1137
1138         * dwarf_next_cfi.c: Handle version 4 format.
1139
1140         * dwarf_getsrclines.c: Handle version 4 format.
1141
1142 2010-06-01  Roland McGrath  <roland@redhat.com>
1143
1144         * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
1145         * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
1146
1147         * libdwP.h (CIE_VERSION): Remove unused macro.
1148
1149         * dwarf_getsrclines.c: Fix version field test.
1150         * libdwP.h (DWARF_VERSION): Remove useless macro.
1151
1152         * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
1153
1154         * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
1155
1156         * libdw_findcu.c (__libdw_findcu): Accept version 4.
1157
1158 2010-05-31  Mark Wielaard  <mjw@redhat.com>
1159
1160         * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
1161         * libdw.h (dwarf_cfi_cie_p): ... here.
1162
1163 2010-05-31  Mark Wielaard  <mjw@redhat.com>
1164
1165         * dwarf.h: Fix DW_LANG_Python constant.
1166
1167 2010-05-28  Eduardo Santiago  <santiago@redhat.com>
1168
1169         * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
1170         thing.
1171
1172 2010-05-27  Roland McGrath  <roland@redhat.com>
1173
1174         * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
1175         DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
1176
1177 2010-05-08  Roland McGrath  <roland@redhat.com>
1178
1179         * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
1180         REF_SIZE.  Use that to handle DW_OP_call_ref correctly.
1181         (getlocation): Update caller.
1182         * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
1183         * dwarf_frame_register.c (dwarf_frame_register): Likewise.
1184         * libdwP.h: Update decl.
1185
1186 2010-04-26  Roland McGrath  <roland@redhat.com>
1187
1188         * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
1189         * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
1190         DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
1191         * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
1192
1193         * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
1194         Prepend DW_OP_call_frame_cfa if true.
1195         (getlocation): Update caller.
1196         * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
1197         * dwarf_frame_register.c (dwarf_frame_register): Likewise.
1198         * libdwP.h: Update decl.
1199
1200 2010-04-22  Roland McGrath  <roland@redhat.com>
1201
1202         * cfi.c (execute_cfi): Never return without cleanup.
1203         Free FS on failure.
1204         (cie_cache_initial_state): Adjust caller to expect that free.
1205         (__libdw_frame_at_address): Likewise.
1206
1207 2010-03-10  Roland McGrath  <roland@redhat.com>
1208
1209         * libdw.map (ELFUTILS_0.146): New set.  Add dwfl_core_file_report.
1210
1211 2010-02-15  Roland McGrath  <roland@redhat.com>
1212
1213         * Makefile.am: Use config/eu.am for common stuff.
1214
1215 2010-02-02  Mark Wielaard  <mjw@redhat.com>
1216
1217         * fde.c (intern_fde): Fix length check for sized_augmentation_data.
1218
1219 2010-01-07  Roland McGrath  <roland@redhat.com>
1220
1221         * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
1222
1223 2010-01-05  Roland McGrath  <roland@redhat.com>
1224
1225         * dwarf_aggregate_size.c: New file.
1226         * Makefile.am (libdw_a_SOURCES): Add it.
1227         * libdw.h: Declare it.
1228         * libdwP.h: Add INTDECL.
1229         * libdw.map (ELFUTILS_0.144): New set.  Add dwarf_aggregate_size.
1230
1231         * dwarf_srclang.c: Add INTDEF.
1232         * libdwP.h: Add INTDECL.
1233
1234         * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
1235
1236         * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
1237
1238 2009-11-21  Roland McGrath  <roland@redhat.com>
1239
1240         * dwarf_getlocation.c (check_constant_offset): Return 1 for all
1241         non-constant forms.
1242
1243 2009-10-15  Roland McGrath  <roland@redhat.com>
1244
1245         * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
1246         DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
1247
1248 2009-09-17  Roland McGrath  <roland@redhat.com>
1249
1250         * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
1251         argument a pointer to const.
1252         * libdw.h: Update decl.
1253
1254 2009-09-10  Roland McGrath  <roland@redhat.com>
1255
1256         * dwarf_getlocation.c (store_implicit_value): New function.
1257         (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
1258         (dwarf_getlocation_implicit_value): New function.
1259         * libdw.h: Declare it.
1260         * libdw.map (ELFUTILS_0.143): Add it.
1261
1262 2009-09-09  Mark Wielaard  <mjw@redhat.com>
1263
1264         * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
1265
1266 2009-08-21  Josh Stone  <jistone@redhat.com>
1267
1268         * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
1269
1270 2009-08-10  Roland McGrath  <roland@redhat.com>
1271
1272         * dwarf_getscopevar.c: Use dwarf_diename.
1273
1274 2009-08-09  Roland McGrath  <roland@redhat.com>
1275
1276         * libdw.map (ELFUTILS_0.143): New version set,
1277         inherits from ELFUTILS_0.142.
1278         * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
1279         alias in the ELFUTILS_0.122 version set and the default in the new set.
1280         * dwarf_srclang.c: Likewise.
1281         * dwarf_decl_file.c: Likewise.
1282         * dwarf_decl_line.c: Likewise.
1283         * dwarf_decl_column.c: Likewise.
1284         * dwarf_bytesize.c: Likewise.
1285         * dwarf_bitsize.c: Likewise.
1286         * dwarf_bitoffset.c: Likewise.
1287
1288 2009-08-07  Roland McGrath  <roland@redhat.com>
1289
1290         * dwarf_arrayorder.c: Use dwarf_attr_integrate.
1291         * dwarf_srclang.c: Likewise.
1292         * dwarf_decl_file.c: Likewise.
1293         * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
1294         * dwarf_bytesize.c: Likewise.
1295         * dwarf_bitsize.c: Likewise.
1296         * dwarf_bitoffset.c: Likewise.
1297
1298 2009-07-22  Roland McGrath  <roland@redhat.com>
1299
1300         * dwarf_frame_cfa.c: Change calling convention.
1301         * libdw.h: Update decl.
1302
1303         * dwarf_frame_register.c: Change calling/return-value convention for
1304         value-only results and undefined/same_value.
1305         * libdw.h: Update decl.
1306
1307         * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
1308         argument, append DW_OP_stack_value if set.  Don't take NOPS argument,
1309         return that value instead.
1310         (getlocation): Update caller.
1311         * dwarf_frame_cfa.c: Likewise.
1312         * libdwP.h: Update decl.
1313
1314 2009-07-21  Roland McGrath  <roland@redhat.com>
1315
1316         * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
1317         Fix loop iteration after skipping a bogus or useless CU.
1318
1319         * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
1320         absence, not DWARF_E_NO_DEBUG_LINE.
1321
1322 2009-07-20  Roland McGrath  <roland@redhat.com>
1323
1324         * dwarf_getlocation.c (__libdw_intern_expression):
1325         Handle DW_OP_stack_value.
1326
1327 2009-07-16  Roland McGrath  <roland@redhat.com>
1328
1329         * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
1330         reject others when CU's version > 3.
1331
1332         * dwarf_formflag.c: Handle DW_FORM_flag_present.
1333
1334         * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
1335         Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
1336         Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
1337         and DW_AT_const_expr.
1338         Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
1339         and DW_FORM_ref_sig8.
1340
1341 2009-07-15  Roland McGrath  <roland@redhat.com>
1342
1343         * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
1344         DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
1345
1346 2009-07-13  Roland McGrath  <roland@redhat.com>
1347
1348         * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
1349
1350 2009-07-08  Roland McGrath  <roland@redhat.com>
1351
1352         * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
1353         dwfl_module_eh_cfi.
1354
1355         * libdwP.h (struct Dwarf): Add member `cfi'.
1356         * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
1357         * dwarf_getcfi.c: New file.
1358         * dwarf_getcfi_elf.c: New file.
1359         * dwarf_cfi_end.c: New file.
1360         * dwarf_cfi_addrframe.c: New file.
1361         * dwarf_frame_cfa.c: New file.
1362         * dwarf_frame_register.c: New file.
1363         * dwarf_frame_return_address_register.c: New file.
1364         * Makefile.am (libdw_a_SOURCES): Add them.
1365         * unwind.h: Declare those functions.
1366         * libdw.map (ELFUTILS_0.142): Export them.
1367
1368         * dwarf_getlocation.c (__libdw_intern_expression): New function,
1369         broken out of ...
1370         (getlocation): ... here, call it.
1371         * libdwP.h: Declare it.
1372
1373         * cie.c: New file.
1374         * fde.c: New file.
1375         * frame-cache.c: New file.
1376         * cfi.c: New file.
1377         * cfi.h: New file.
1378         * encoded-value.h: New file.
1379         * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
1380         * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
1381         * dwarf_error.c (errmsgs): Add element for it.
1382
1383         * dwarf_next_cfi.c: New file.
1384         * Makefile.am (libdw_a_SOURCES): Add it.
1385         * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
1386         Declare dwarf_next_cfi.
1387         * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
1388         Add dwarf_next_cfi.
1389
1390         * memory-access.h [! ALLOW_UNALIGNED]
1391         (read_2ubyte_unaligned): Renamed to ...
1392         (read_2ubyte_unaligned_1): ... this.  Take bool rather than Dwarf *.
1393         (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
1394         (read_2sbyte_unaligned): Likewise.
1395         (read_4ubyte_unaligned): Likewise.
1396         (read_4sbyte_unaligned): Likewise.
1397         (read_8ubyte_unaligned): Likewise.
1398         (read_8sbyte_unaligned): Likewise.
1399
1400         * libdwP.h (IDX_eh_frame): Remove it.
1401         * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
1402
1403 2009-07-08  Roland McGrath  <roland@redhat.com>
1404
1405         * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
1406
1407         * dwarf_getlocation.c (check_constant_offset): New function.
1408         (dwarf_getlocation, dwarf_getlocation_addr): Call it to
1409         handle DW_AT_data_member_location of data[48] as constant offset.
1410
1411 2009-06-18  Roland McGrath  <roland@redhat.com>
1412
1413         * libdwP.h (__libdw_read_address_inc): Constify.
1414         (__libdw_read_offset_inc): Likewise.
1415         * dwarf_getaranges.c: Likewise.
1416         * dwarf_getlocation.c: Likewise.
1417         * dwarf_getsrclines.c: Likewise.
1418         * dwarf_nextcu.c: Likewise.
1419
1420 2009-05-05  Petr Machata  <pmachata@redhat.com>
1421
1422         * libdwP.h (__libdw_formptr): Declare new function.
1423         * dwarf_formudata.c: Implement it here.
1424         * dwarf_getlocation.c (dwarf_getlocation_addr):
1425         Call it instead of hand-rolled offset handling code.
1426         * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1427         * dwarf_ranges.c (dwarf_ranges): Likewise.
1428
1429 2009-05-04  Petr Machata  <pmachata@redhat.com>
1430
1431         * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
1432         * dwarf_ranges.c: Implement it here.
1433         (dwarf_ranges): Call it.
1434         * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
1435
1436 2009-04-23  Petr Machata  <pmachata@redhat.com>
1437
1438         * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
1439         of read_*ubyte_unaligned.
1440         * dwarf_formref_die.c (dwarf_formref_die): Likewise.
1441         * dwarf_formstring.c (dwarf_formstring): Likewise.
1442         * dwarf_formudate.c (dwarf_formudata): Likewise.
1443         * dwarf_getaranges.c (dwarf_getaranges): Likewise.
1444         * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
1445         * dwarf_getpubnames.c (get_offsets): Likewise.
1446         * dwarf_nextcu.c (dwarf_nextcu): Likewise.
1447
1448 2009-04-23  Petr Machata  <pmachata@redhat.com>
1449
1450         * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
1451         __libdw_read_addr, __libdw_read_off): Add four new internal
1452         functions.
1453
1454 2009-05-07  Roland McGrath  <roland@redhat.com>
1455
1456         * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
1457         return value and OFFSET argument, not CU-relative.  Only fetch the
1458         attribute data when called with OFFSET of 0.
1459
1460 2009-05-07  Petr Machata  <pmachata@redhat.com>
1461
1462         * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
1463         DW_AT_macro_info attribute of CU DIE.
1464
1465 2009-04-15  Roland McGrath  <roland@redhat.com>
1466
1467         * dwarf.h (DW_CIE_ID): Removed.
1468         (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
1469
1470 2009-04-01  Roland McGrath  <roland@redhat.com>
1471
1472         * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
1473
1474 2009-01-28  Roland McGrath  <roland@redhat.com>
1475
1476         * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
1477         defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
1478
1479         * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
1480
1481 2009-01-26  Roland McGrath  <roland@redhat.com>
1482
1483         * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
1484
1485 2009-01-25  Roland McGrath  <roland@redhat.com>
1486
1487         * dwarf_getattrs.c: Correctly skip attribute values when restarting.
1488
1489 2009-01-23  Roland McGrath  <roland@redhat.com>
1490
1491         * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
1492         Put these rules under if MAINTAINER_MODE.
1493
1494 2009-01-22  Roland McGrath  <roland@redhat.com>
1495
1496         * dwarf.h: Add DW_OP_GNU_encoded_addr.
1497
1498 2009-01-21  Roland McGrath  <roland@redhat.com>
1499
1500         * Makefile.am (CLEANFILES): Renamed to ...
1501         (MOSTLYCLEANFILES): ... here.
1502         (CLEANFILES): New variable, add known-dwarf.h.
1503
1504 2009-01-17  Roland McGrath  <roland@redhat.com>
1505
1506         * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
1507         Make it unconditional.
1508         (BUILT_SOURCES): Updated.
1509
1510         * dwarf.h: Add description comments for DW_LANG_* values.
1511
1512         * Makefile.am [MAINTAINER_MODE]
1513         ($(srcdir)/known-dwarf.h): New target.
1514         (BUILT_SOURCES): Add it.
1515
1516         * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
1517
1518 2009-01-10  Ulrich Drepper  <drepper@redhat.com>
1519
1520         * dwarf_error.c: Always use __thread.  Remove all !USE_TLS code.
1521
1522 2009-01-08  Roland McGrath  <roland@redhat.com>
1523
1524         * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
1525
1526 2008-01-06  Roland McGrath  <roland@redhat.com>
1527
1528         * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
1529         Reorder members.
1530         * dwarf_haschildren.c: Return -1 for error case, not 0.
1531
1532         * Makefile.am (libdw.so): Link in $(zip_LIBS).
1533
1534 2009-01-06  Ulrich Drepper  <drepper@redhat.com>
1535
1536         * dwarf.h: Add definition for unwind and call frame information.
1537
1538         * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
1539         read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
1540
1541 2008-08-15  Roland McGrath  <roland@redhat.com>
1542
1543         * libdw.map (ELFUTILS_0.136): New version set, inherits from
1544         ELFUTILS_0.130.  Add dwfl_addrsegment, dwfl_report_segment.
1545
1546 2008-01-21  Ulrich Drepper  <drepper@redhat.com>
1547
1548         * dwarf_child.c: Minor optimizations.
1549         * dwarf_getattrs.c: Likewise.
1550         * dwarf_getpubnames.c: Likewise.
1551         * dwarf_siblingof.c: Likewise.
1552         * dwarf_tag.c: Likewise.
1553
1554 2008-01-18  Ulrich Drepper  <drepper@redhat.com>
1555
1556         * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
1557         of DWARF_VERSION comparison, just fail if the file's version is newer.
1558
1559 2008-01-17  Nick Clifton  <nickc@redhat.com>
1560
1561         * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
1562         (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
1563         (DWARF3_LENGTH_64_BIT): New define.
1564         * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
1565         * dwarf_getpubnames: Include dwarf.h.
1566         (get_offsets): Use the new definitions.
1567         * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
1568         * dwarf_nextcu.c: Include dwarf.h.  Correct comment.
1569         (dwarf_nextcu): Use the new definitions.
1570
1571         * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
1572         * dwarf_diecu.c (dwarf_diecu): Use the new macro.
1573         * dwarf_getaranges (dwarf_getaranges): Use the new macro.
1574         * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
1575
1576         * dwarf_getpubnames (get_offsets): Replace assertion with test and
1577         error return.
1578
1579         * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
1580
1581         * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
1582         Set the address in the return structure to the address of the next
1583         non-sibling die, if there is no sibling and the return pointer is
1584         not the same as the die pointer.
1585         * libdw.h: Expand the description of the dwarf_siblingof prototype.
1586
1587         * dwarf_child.c: Fix typo in comment.
1588
1589         * libdwP.h (DWARF_VERSION): Change to 3.
1590
1591         * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
1592         not have a initialised valp pointer.
1593
1594         * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
1595         the end of the attributes is reached.  When the callback fails,
1596         return the address of the failing attribute, not the address of
1597         its successor.
1598         * libdw.h: Expand the description of the dwarf_getattrs prototype.
1599
1600         * dwarf_child.c (__libdw_find_attr): Use the new definition.
1601         (dwarf_child): Likewise.
1602         * dwarf_tag.c (__libdw_findabbrev): Likewise.
1603         (dwarf_tag): Likewise.
1604
1605 2008-01-08  Roland McGrath  <roland@redhat.com>
1606
1607         * Makefile.am (euinclude): Variable removed.
1608         (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
1609         (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
1610
1611 2007-10-17  Roland McGrath  <roland@redhat.com>
1612
1613         * libdw.h (__deprecated_attribute__): New macro.
1614         (dwarf_formref): Mark it deprecated.
1615         * dwarf_formref.c (__libdw_formref): New function, broken out of ...
1616         (dwarf_formref): ... here.  Call it.  Remove INTDEF.
1617         * libdwP.h: Remove INTDECL.
1618         Declare __libdw_formref.
1619         * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
1620         * dwarf_formref_die.c: Likewise.  Handle DW_FORM_ref_addr here.
1621
1622         * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
1623         needs to check CU->version.
1624
1625         * libdwP.h (struct Dwarf_CU): New member `version'.
1626         * libdw_findcu.c (__libdw_findcu): Initialize it.
1627
1628         * dwarf_child.c: Return 1 for null entry as first child.
1629
1630 2007-10-05  Roland McGrath  <roland@redhat.com>
1631
1632         * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
1633
1634         * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
1635         [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
1636
1637 2007-10-03  Roland McGrath  <roland@redhat.com>
1638
1639         * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
1640         and dwfl_build_id_find_debuginfo.
1641
1642         * libdw.map (ELFUTILS_0.130): New version set, inherits from
1643         ELFUTILS_0.127.  Add dwfl_module_build_id, dwfl_module_report_build_id.
1644
1645 2007-10-02  Roland McGrath  <roland@redhat.com>
1646
1647         * libdw_visit_scopes.c (classify_die): Return walk for class_type and
1648         structure_type.
1649
1650 2007-08-07  Roland McGrath  <roland@redhat.com>
1651
1652         * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
1653         error code is DWARF_E_NOERROR (0).
1654
1655         * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
1656         Fix typo in __libdw_visit_scopes argument.
1657
1658         * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
1659         swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
1660
1661 2007-07-03  Roland McGrath  <roland@redhat.com>
1662
1663         * libdw.h (__extern_inline): New macro.
1664         [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
1665
1666 2007-04-16  Roland McGrath  <roland@redhat.com>
1667
1668         * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
1669
1670 2007-04-05  Roland McGrath  <roland@redhat.com>
1671
1672         * dwarf_getsrcdirs.c: New file.
1673         * Makefile.am (libdw_a_SOURCES): Add it.
1674         * libdw.h: Declare dwarf_getsrcdirs.
1675         * libdw.map (ELFUTILS_0.127): Add it.
1676
1677         * libdwP.h (struct Dwarf_Files_s): New member ndirs.
1678         * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
1679         zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
1680         Save DIRARRAY in the Dwarf_Files.
1681
1682         * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
1683         address to check for all-ones base address entry.  Check directly.
1684         Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
1685
1686 2007-03-25  Roland McGrath  <roland@redhat.com>
1687
1688         * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
1689         Return NULL when freeing RESULT on error.
1690         (global_read, scngrp_read): Check return value from check_section,
1691         break out of loop after it has freed RESULT.
1692         (valid_p): Handle null argument.
1693
1694 2007-03-12  Roland McGrath  <roland@redhat.com>
1695
1696         * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
1697
1698 2007-03-04  Roland McGrath  <roland@redhat.com>
1699
1700         * libdw.map (ELFUTILS_0.127): New version set, inherits from
1701         ELFUTILS_0.126.  Add dwfl_module_addrsym.
1702
1703 2007-02-10  Roland McGrath  <roland@redhat.com>
1704
1705         * dwarf.h (DW_OP_fbreg): Comment fix.
1706
1707 2007-02-03  Roland McGrath  <roland@redhat.com>
1708
1709         * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
1710         * libdw.map (ELFUTILS_0.126): New version set, inherits from
1711         ELFUTILS_0.122.  Move dwarf_getelf there; it was never truly
1712         exported in the past.
1713
1714 2006-12-17  Roland McGrath  <roland@redhat.com>
1715
1716         * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
1717         address when the CU is missing attributes due to buggy GCC.
1718
1719 2006-08-29  Roland McGrath  <roland@redhat.com>
1720
1721         * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
1722
1723         * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
1724         (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
1725
1726         * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
1727         result is aligned.  Adjust NEWP->remaining here for this allocation.
1728         * libdwP.h: Update decl.
1729         (libdw_alloc): Update caller.
1730
1731 2006-07-12  Ulrich Drepper  <drepper@redhat.com>
1732
1733         * dwarf_child.c: Adjust for internal_function_def removal.
1734         * dwarf_getabbrev.c: Likewise.
1735         * dwarf_tag.c: Likewise.
1736         * libdw_form.c: Likewise.
1737         * memory-access.c: Likewise.
1738
1739 2006-06-28  Roland McGrath  <roland@redhat.com>
1740
1741         * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
1742
1743         * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
1744         dwfl_module_getsym.
1745
1746 2006-05-27  Ulrich Drepper  <drepper@redhat.com>
1747
1748         * libdw.h: Add extern "C".
1749
1750 2006-05-22  Ulrich Drepper  <drepper@redhat.com>
1751
1752         * dwarf_getaranges.c (dwarf_getaranges): Handle files without
1753         aranges information.
1754
1755 2006-05-21  Ulrich Drepper  <drepper@redhat.com>
1756
1757         * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
1758         dwarf_haschildren.
1759
1760 2006-02-28  Roland McGrath  <roland@redhat.com>
1761
1762         * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
1763         DW_OP_* values, to match DWARF 3.0.  Add new DW_DS_*, DW_END_*
1764         values from DWARF 3.0.
1765
1766 2006-02-22  Roland McGrath  <roland@redhat.com>
1767
1768         * libdw.map: Bump to 0.120; export dwfl_version.
1769
1770 2005-12-22  Roland McGrath  <roland@redhat.com>
1771
1772         * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
1773
1774 2005-12-12  Roland McGrath  <roland@redhat.com>
1775
1776         * dwarf_ranges.c: Copy CU base address-finding code from
1777         dwarf_getlocation.
1778
1779 2005-12-09  Roland McGrath  <roland@redhat.com>
1780
1781         * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
1782         Delay CU base lookup until it's needed.
1783         If CU base lookup fails with no error, flag invalid DWARF.
1784
1785 2005-11-25  Roland McGrath  <roland@redhat.com>
1786
1787         * libdw.map: Bump to 0.118; export dwfl_module_register_names.
1788
1789 2005-11-15  Roland McGrath  <roland@redhat.com>
1790
1791         * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
1792
1793 2005-11-13  Roland McGrath  <roland@redhat.com>
1794
1795         * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
1796
1797 2005-10-27  Roland McGrath  <roland@redhat.com>
1798
1799         * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
1800         don't match end_sequence markers.
1801
1802         * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
1803         before normal records at the same address.
1804         * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
1805         marker.
1806
1807 2005-10-26  Roland McGrath  <roland@redhat.com>
1808
1809         * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
1810         * dwarf_func_file.c: Renamed to ...
1811         * dwarf_decl_file.c: ... here.
1812         * dwarf_func_col.c: Renamed to ...
1813         * dwarf_decl_column.c: ... here.
1814         * dwarf_func_line.c: Renamed to ...
1815         * dwarf_decl_line.c: ... here.
1816         (dwarf_func_line): Renamed to ...
1817         (dwarf_decl_line): ... this.  Take a Dwarf_Die * argument.
1818         (__libdw_func_intval): Renamed __libdw_attr_intval.
1819         * dwarf_func_name.c: File removed.
1820         * dwarf_func_lowpc.c: File removed.
1821         * dwarf_func_highpc.c: File removed.
1822         * dwarf_func_entrypc.c: File removed.
1823         * dwarf_func_die.c: File removed.
1824         * Makefile.am (libdw_a_SOURCES): Updated.
1825         * libdw.h: Update decls.
1826         (Dwarf_Func): Type removed.
1827         * libdwP.h: Update decls.
1828         (struct Dwarf_Func_s): Type removed.
1829         * libdw.map: Updated.
1830
1831         * libdwP.h (CUDIE): New macro.
1832         * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
1833         * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
1834         * dwarf_ranges.c (dwarf_ranges): Likewise.
1835
1836         * dwarf_getloclist.c: Renamed to ...
1837         * dwarf_getlocation.c: ... here.
1838         (getloclist): Renamed to getlocation.
1839         (dwarf_getloclist): Renamed to dwarf_getlocation.
1840         (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
1841         * Makefile.am (libdw_a_SOURCES): Updated.
1842         * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
1843         (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
1844         (Dwarf_Loc): Renamed Dwarf_Op.
1845         * libdwP.h (struct loc_s): Update use.
1846         * libdw.map: Update map.
1847
1848         * dwarf_entry_breakpoints.c: Use the second line record within the
1849         function, regardless of its source location data.
1850
1851 2005-10-25  Roland McGrath  <roland@redhat.com>
1852
1853         * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
1854
1855         * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
1856
1857 2005-10-14  Roland McGrath  <roland@redhat.com>
1858
1859         * dwarf_diecu.c (dwarf_diecu): New file.
1860         * Makefile.am (libdw_a_SOURCES): Add it.
1861         * libdw.h: Declare dwarf_diecu.
1862         * libdw.map: Export it.
1863
1864         * libdw.map: Bump to 0.116; export dwarf_ranges.
1865
1866 2005-09-20  Roland McGrath  <roland@redhat.com>
1867
1868         * dwarf_haspc.c: Use dwarf_ranges.
1869         * dwarf_entry_breakpoints.c: Likewise.
1870
1871         * dwarf_ranges.c: New file.
1872         * Makefile.am (libdw_a_SOURCES): Add it.
1873         * libdw.h: Declare dwarf_ranges.
1874         * libdwP.h: Add INTDECL.
1875
1876 2005-09-14  Roland McGrath  <roland@redhat.com>
1877
1878         * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
1879         prologue_end marker scanning loop.
1880
1881 2005-09-11  Roland McGrath  <roland@redhat.com>
1882
1883         * dwarf.h: Comment typo fix.
1884
1885 2005-09-07  Roland McGrath  <roland@redhat.com>
1886
1887         * dwarf_entry_breakpoints.c: New file.
1888         * Makefile.am (libdw_a_SOURCES): Add it.
1889         * libdw.h: Declare dwarf_entry_breakpoints.
1890
1891         * dwarf_entrypc.c: New file.
1892         * Makefile.am (libdw_a_SOURCES): Add it.
1893         * libdw.h: Declare dwarf_entrypc.
1894         * libdwP.h: Add INTDECL.
1895
1896 2005-08-28  Ulrich Drepper  <drepper@redhat.com>
1897
1898         * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
1899         (%.os): Use COMPILE.os.
1900         (COMPILE.os): Filter out gconv options.
1901
1902 2005-08-27  Roland McGrath  <roland@redhat.com>
1903
1904         * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
1905         __libdw_visit_scopes.
1906
1907         * dwarf_getscopes_die.c: New file.
1908         * Makefile.am (libdw_a_SOURCES): Add it.
1909         * libdw.h: Declare dwarf_getscopes_die.
1910         * libdw.map: Bump to 0.115 and add it.
1911
1912         * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
1913         containing a DIE and its parent pointer, instead of just Dwarf_Die.
1914         Take two functions for both preorder and postorder visitors.
1915         * libdwP.h: Update decl.
1916         (struct Dwarf_Die_Chain): New type.
1917         * dwarf_func_inline.c: Update uses.
1918
1919         * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
1920         Add INTDEF.
1921         * libdwP.h: Add INTDECL.
1922         * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
1923
1924 2005-08-23  Roland McGrath  <roland@redhat.com>
1925
1926         * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
1927         DW_AT_specification the same as DW_AT_abstract_origin.
1928
1929 2005-08-20  Roland McGrath  <roland@redhat.com>
1930
1931         * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
1932         Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
1933         and dwfl_report_offline.
1934
1935 2005-08-19  Roland McGrath  <roland@redhat.com>
1936
1937         * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
1938         Add dwfl_module_relocate_address, dwfl_module_relocations,
1939         dwfl_module_relocation_info.
1940
1941 2005-08-18  Roland McGrath  <roland@redhat.com>
1942
1943         * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
1944         outermost scope in the results.
1945
1946 2005-08-15  Roland McGrath  <roland@redhat.com>
1947
1948         * dwarf_func_inline.c: New file.
1949         * Makefile.am (libdw_a_SOURCES): Add it.
1950         * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
1951         * libdw.map: Add them.
1952
1953         * dwarf_func_die.c: New file.
1954         * Makefile.am (libdw_a_SOURCES): Add it.
1955         * libdw.h: Declare dwarf_func_die.
1956         * libdw.map: Add it.  Bump version to ELFUTILS_0.114.
1957
1958 2005-08-10  Ulrich Drepper  <drepper@redhat.com>
1959
1960         * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
1961         of DW_LNS_set_epilog_begin.
1962
1963 2005-08-09  Roland McGrath  <roland@redhat.com>
1964
1965         * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
1966
1967         * dwarf_end.c: Add INTDEF.
1968         * dwarf_error.c (dwarf_errmsg): Likewise.
1969         * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
1970
1971 2005-08-01  Roland McGrath  <roland@redhat.com>
1972
1973         * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
1974         * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1975
1976 2005-07-28  Ulrich Drepper  <drepper@redhat.com>
1977
1978         * Makefile.am (libdw.so): No need to link with libeu.a anymore.
1979         (libdw_a_LIBADD): Add all files from libdwfl.a.
1980
1981 2005-07-27  Roland McGrath  <roland@redhat.com>
1982
1983         * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
1984         along with ../libebl/libebl.a and ../lib/libeu.a;
1985         depend on ../libelf/libelf.so.
1986         (libdw_so_LDADD): New variable.
1987         * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
1988
1989         * libdw.map: Define an empty base version and move all symbols to
1990         version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
1991
1992 2005-07-23  Ulrich Drepper  <drepper@redhat.com>
1993
1994         * dwarf_error.c: Add internal alias for dwarf_errno.
1995         * libdwP.h: Declare __dwarf_errno_internal.
1996         * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
1997
1998         * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
1999         global_error.
2000
2001 2005-06-01  Roland McGrath  <roland@redhat.com>
2002
2003         * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
2004         * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
2005
2006 2005-06-08  Roland McGrath  <roland@redhat.com>
2007
2008         * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
2009         (get_sleb128_step, get_sleb128): Likewise.
2010         * dwarf_getattrs.c (dwarf_getattrs): Add consts.
2011         * dwarf_getloclist.c (getloclist): Likewise.
2012         * dwarf_formblock.c (dwarf_formblock): Likewise.
2013         * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
2014         * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
2015         * dwarf_formref.c (dwarf_formref): Likewise.
2016         * dwarf_formsdata.c (dwarf_formsdata): Likewise.
2017         * dwarf_formudata.c (dwarf_formudata): Likewise.
2018         * dwarf_haschildren.c (dwarf_haschildren): Likewise.
2019         * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
2020         * dwarf_tag.c (dwarf_tag): Likewise.
2021         * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
2022         * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
2023         * libdw_form.c (__libdw_form_val_len): Likewise.
2024         * libdwP.h: Update decl.
2025
2026 2005-06-04  Roland McGrath  <roland@redhat.com>
2027
2028         * memory-access.h (get_uleb128_rest_return): New macro.
2029         [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
2030         (get_sleb128_rest_return): New macro.
2031         [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
2032         * memory-access.c: New file.
2033         * Makefile.am (libdw_a_SOURCES): Add it.
2034         (DEFS): Add -DIS_LIBDW.
2035
2036 2005-05-31  Roland McGrath  <roland@redhat.com>
2037
2038         * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
2039         formref offset.
2040
2041 2005-05-30  Roland McGrath  <roland@redhat.com>
2042
2043         * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
2044         address if DW_AT_low_pc is missing.  Not to spec, but GCC generates it.
2045
2046         * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
2047         BEGIN value.  Instead, match base address entries separately for
2048         32/64 size cases.
2049
2050 2005-05-28  Roland McGrath  <roland@redhat.com>
2051
2052         * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
2053         past location expression contents.
2054
2055 2005-05-23  Roland McGrath  <roland@redhat.com>
2056
2057         * dwarf_getsrclines.c: Comment typo fix.
2058
2059         * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
2060         * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
2061
2062 2005-05-22  Ulrich Drepper  <drepper@redhat.com>
2063
2064         * libdwP.h: Only use INTDECL for alias prototypes.
2065
2066 2005-05-19  Roland McGrath  <roland@redhat.com>
2067
2068         * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
2069
2070         * dwarf_getscopevar.c: New file.
2071         * Makefile.am (libdw_a_SOURCES): Add it.
2072         * libdw.h: Declare dwarf_getscopevar.
2073
2074         * dwarf_getsrcfiles.c: Add INTDEF.
2075         * dwarf_haschildren.c: Likewise.
2076         * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
2077
2078         * dwarf_getscopes.c: New file.
2079         * Makefile.am (libdw_a_SOURCES): Add it.
2080         * libdw.h: Declare dwarf_getscopes.
2081         * libdw.map: Add it.
2082
2083 2005-05-18  Roland McGrath  <roland@redhat.com>
2084
2085         * libdwP.h (IDX_debug_ranges): New enum constant.
2086         * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
2087         * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
2088         * dwarf_error.c (errmsgs): Add it.
2089         * dwarf_haspc.c: New file.
2090         * libdw.h: Declare dwarf_haspc.
2091         * libdw.map: Add it.
2092         * libdwP.h: Add INTDECL.
2093
2094         * dwarf_attr_integrate.c: New file.
2095         * dwarf_hasattr_integrate.c: New file.
2096         * Makefile.am (libdw_a_SOURCES): Add them.
2097         * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
2098         * libdw.map: Add them.
2099
2100         * dwarf_hasattr.c: Add INTDEF.
2101         * libdwP.h: Add INTDECL for it.
2102
2103         * dwarf_formref_die.c: New file.
2104         * Makefile.am (libdw_a_SOURCES): Add it.
2105         * libdw.h (dwarf_formref_die): Declare it.
2106         * libdwP.h (dwarf_formref_die): Add INTDECL.
2107         * libdw.map: Add it.
2108
2109         * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
2110         of ...
2111         (dwarf_getloclist): ... here.  Call them.
2112         (dwarf_addrloclists): New function.
2113         * libdw.h: Declare it.
2114         * libdw.map: Add it.
2115
2116         * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
2117         DW_MACINFO_end_file.  Recognize type 0 as terminator.
2118
2119 2005-05-05  Roland McGrath  <roland@redhat.com>
2120
2121         * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
2122
2123         * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
2124         the line program does not produce all entries in ascending order.
2125
2126 2005-04-25  Ulrich Drepper  <drepper@redhat.com>
2127
2128         * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
2129         occurences (e.g., inlines) better.
2130
2131 2005-04-24  Ulrich Drepper  <drepper@redhat.com>
2132
2133         * libdw.h (DWARF_END_ABBREV): Define.
2134         * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
2135         end is reached.
2136         * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
2137         of records reached.
2138         * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
2139         as error of __libdw_getabbrev.
2140
2141 2005-04-04  Ulrich Drepper  <drepper@redhat.com>
2142
2143         * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
2144
2145         * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
2146         results back to caller.
2147
2148 2005-04-04  Roland McGrath  <roland@redhat.com>
2149
2150         * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
2151
2152         * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
2153         defn.
2154
2155 2005-04-04  Ulrich Drepper  <drepper@redhat.com>
2156
2157         * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
2158
2159         * dwarf_getsrc_file.c: New file.
2160         * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
2161         * libdw.h: Declare dwarf_getsrc_file.
2162         * libdw.map: Add dwarf_getsrc_file.
2163
2164 2005-04-02  Ulrich Drepper  <drepper@redhat.com>
2165
2166         * dwarf_func_entrypc.c: New file.
2167         * dwarf_func_col.c: New file.
2168         * dwarf_func_line.c: New file.
2169         * dwarf_func_file.c: New file.
2170         * libdw.h: Add prototypes for new functions.
2171         * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
2172         dwarf_func_file.
2173         * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
2174         dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
2175         * libdwP.h (struct Dwarf_Func_s): Add cudie element.
2176         Declare __libdw_func_intval and __dwarf_formsdata_internal.
2177         * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
2178         * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
2179
2180         * dwarf.h: Add some DWARF3 definitions.
2181
2182 2005-04-01  Ulrich Drepper  <drepper@redhat.com>
2183
2184         * dwarf_getfuncs.c: New file.
2185         * dwarf_func_highpc.c: New file.
2186         * dwarf_func_lowpc.c: New file.
2187         * dwarf_func_name.c: New file.
2188         * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
2189         dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
2190         * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
2191         and dwarf_func_name.
2192         * libdw.h: Add prototypes for new functions.
2193         * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
2194         * dwarf_siblingof.c: Likewise.
2195         * dwarf_dieoffset.c: Likewise.
2196         * dwarf_highpc.c: Likewise.
2197         * dwarf_lowpc.c: Likewise.
2198         * libdwP.h: Add prototypes for internal functions.
2199         Define Dwarf_Func_s structure.
2200
2201 2005-03-29  Ulrich Drepper  <drepper@redhat.com>
2202
2203         * libdw.h: Add padding in Dwarf_die.
2204
2205         * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
2206         * dwarf_attr.c: Likewise.
2207         * dwarf_begin.c: Likewise.
2208         * dwarf_begin_elf.c: Likewise.
2209         * dwarf_bitoffset.c: Likewise.
2210         * dwarf_bitsize.c: Likewise.
2211         * dwarf_bytesize.c: Likewise.
2212         * dwarf_diename.c: Likewise.
2213         * dwarf_formaddr.c: Likewise.
2214         * dwarf_formblock.c: Likewise.
2215         * dwarf_formref.c: Likewise.
2216         * dwarf_formstring.c: Likewise.
2217         * dwarf_formudata.c: Likewise.
2218         * dwarf_getarange_addr.c: Likewise.
2219         * dwarf_getarangeinfo.c: Likewise.
2220         * dwarf_getaranges.c: Likewise.
2221         * dwarf_getloclist.c: Likewise.
2222         * dwarf_getmacros.c: Likewise.
2223         * dwarf_getsrc_die.c: Likewise.
2224         * dwarf_getsrcfiles.c: Likewise.
2225         * dwarf_getsrclines.c: Likewise.
2226         * dwarf_highpc.c: Likewise.
2227         * dwarf_lowpc.c: Likewise.
2228         * dwarf_nextcu.c: Likewise.
2229         * dwarf_offdie.c: Likewise.
2230         * dwarf_siblingof.c: Likewise.
2231         * dwarf_srclang.c: Likewise.
2232         * dwarf_tag.c: Likewise.
2233         * libdw_findcu.c: Likewise.
2234         * libdwP.h: Add prototypes for internal functions.
2235
2236         * dwarf_addrdie.c: New file.
2237         * dwarf_macro_opcode.c: New file.
2238         * dwarf_macro_param1.c: New file.
2239         * dwarf_macro_param2.c: New file.
2240         * libdw.h: Add declarations.  Move Dwarf_Macro definition to libdwP.h.
2241         * libdwP.h: Remove Dwarf_Macro definition.
2242         * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
2243         dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
2244         * libdw.map: Add entries for new functions.
2245
2246 2005-03-21  Ulrich Drepper  <drepper@redhat.com>
2247
2248         * libdw.h: Handle broken gcc < 4.
2249
2250 2005-02-15  Ulrich Drepper  <drepper@redhat.com>
2251
2252         * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
2253
2254         * dwarf_begin_elf.c: Fix warnings.
2255         * dwarf_dieoffset.c: Likewise.
2256         * dwarf_end.c: Likewise.
2257         * dwarf_error.c: Likewise.
2258         * dwarf_getpubnames.c: Likewise.
2259
2260         * libdwP.h: Add new error values.
2261         * dwarf_error.c: Support new error values.
2262         * dwarf_getpubnames.c: Check parameter value.
2263
2264 2005-02-05  Ulrich Drepper  <drepper@redhat.com>
2265
2266         * Makefile.am: Check for text relocations in constructed DSO.
2267
2268         * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
2269
2270 2005-02-04  Ulrich Drepper  <drepper@redhat.com>
2271
2272         * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
2273         checks to not read over buffer boundaries for ill-formed DWARF data.
2274
2275 2004-09-25  Ulrich Drepper  <drepper@redhat.com>
2276
2277         * dwarf_child.c: Make compile with gcc 4.0.
2278         * dwarf_error.c: Likewise.
2279         * dwarf_formblock.c: Likewise.
2280         * dwarf_getabbrev.c: Likewise.
2281         * dwarf_getattrs.c: Likewise.
2282         * dwarf_getsrclines.c: Likewise.
2283         * dwarf_tag.c: Likewise.
2284         * libdw_form.c: Likewise.
2285
2286 2004-01-20  Ulrich Drepper  <drepper@redhat.com>
2287
2288         * Makefile.am: Support building with mudflap.
2289
2290         * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
2291         * dwarf_getsrclines.c: Likewise.
2292         * dwarf_memory-access.h: Likewise.
2293
2294 2004-01-19  Ulrich Drepper  <drepper@redhat.com>
2295
2296         * dwarf_getsrcfiles.c: Third parameter can be NULL.
2297
2298         * libdw.h: Define Dwarf_macro.  Declare dwarf_getmacros.
2299         Third parameter of dwarf_getsrcfiles can be NULL.
2300
2301         * libdw.map: Add dwarf_getmacros.
2302         * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
2303         * dwarf_getmacros.c: New file.
2304
2305 2004-01-18  Ulrich Drepper  <drepper@redhat.com>
2306
2307         * libdw.h: Second parameter of dwarf_getaranges can be NULL.
2308
2309         * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
2310
2311         * dwarf_getsrclines.c:
2312         Use read_2ubyte_unaligned_inc instead of _inc-less variant.
2313
2314         * dwarf_getaranges.c: Allow naranges parameter to be NULL.
2315
2316         * libdwP.h (_): Use elfutils domain.
2317
2318         * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
2319
2320         * dwarf_getsrclines.c: Fix typo in comment.
2321
2322 2004-01-17  Ulrich Drepper  <drepper@redhat.com>
2323
2324         * Makefile.am: Support building with mudflap.
2325
2326 2004-01-16  Ulrich Drepper  <drepper@redhat.com>
2327
2328         * memory-access.h: Add lots of const in case a pointer passed is const.
2329
2330         * dwarf_formflag.c: New file.
2331         * dwarf_getattrs.c: New file.
2332         * dwarf_error.c: Add new error value.
2333         * libdw.h: Add prototypes for new functions.  Adjust prototype for
2334         dwarf_getpubnames.
2335         * libdw.map: Add new functions.
2336         * dwarf_getpubnames.c: Change type of return value and fourth parameter
2337         to ptrdiff_t.
2338         * libdwP.h: Add new error value.
2339         * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
2340         dwarf_formflag.c.
2341
2342         * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
2343
2344 2004-01-12  Ulrich Drepper  <drepper@redhat.com>
2345
2346         * dwarf_getarange_addr.c: New file
2347         * dwarf_getarangeinfo.c: New file.
2348         * dwarf_getaranges.c: New file.
2349         * dwarf_onerange.c: New file.
2350         * libdw.h: Declare new functions.  Define Dwarf_Arange and
2351         Dwarf_Aranges.
2352         * libdw.map: Add new functions.
2353         * libdwP.h: Add new errors.  Add aranges member to struct Dwarf.
2354         Define Dwarf_Aranges_s and Dwarf_Arange_s.
2355         * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
2356         dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
2357         * dwarf_error.c: Add new message.
2358
2359 2004-01-11  Ulrich Drepper  <drepper@redhat.com>
2360
2361         * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
2362         dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
2363         dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
2364         * dwarf_error.c: Add another message.
2365         * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
2366         introduction.
2367         * dwarf_filesrc.c: Likewise.
2368         * dwarf_getsrcfiles.c: Likewise.
2369         * dwarf_getsrclines.c: Likewise.
2370         * dwarf_lineaddr.c: New file.
2371         * dwarf_linebeginstatement.c: New file.
2372         * dwarf_lineblock.c: New file.
2373         * dwarf_linecol.c: New file.
2374         * dwarf_lineendsequence.c: New file.
2375         * dwarf_lineepiloguebegin.c: New file.
2376         * dwarf_lineno.c: New file.
2377         * dwarf_lineprologueend.c: New file.
2378         * dwarf_onesrcline.c: New file.
2379         * dwarf_lineno.c: Change interface to store result in object pointed
2380         to by second parameter.
2381         * libdw.h: Add prototypes for new functions.  Change dwarf_lineno
2382         prototype.  Define Dwarf_Files and Dwarf_Lines.
2383         * libdw.map: Add new functions.
2384         * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
2385         * libdw_findcu.c: Don't initialize nlines field.
2386
2387         * dwarf_siblingof: Little optimization.
2388
2389         * dwarf_begin.c: Remember that the ELF descriptor must be closed.
2390         * dwarf_end.c: Close ELF descriptor if free_elf is set.
2391         * libdwP.h (struct Dwarf): Add free_elf field.
2392
2393         * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
2394         dwarf_offabbrev.c.
2395         * dwarf_getstring.c: New file.
2396         * dwarf_offabbrev.c: New file.
2397         * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
2398         * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
2399         parameters.  Don't allocate memory if not necessary and don't lookup
2400         previous results if no CU given.
2401         (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
2402         * dwarf_tag.c: Adjust call to __libdw_getabbrev.
2403         * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
2404         * libdwP.h: Change prototype for __libdw_getabbrev.
2405
2406         * dwarf_getabbrevattr.c: Add offsetp parameter.  Fill in before
2407         returning if this is wanted.
2408
2409 2004-01-09  Ulrich Drepper  <drepper@redhat.com>
2410
2411         * dwarf_nextcu.c: Add new parameter offset_sizep.  Initialize it
2412         with offset_size value.
2413         * libdw.h: Adjust dwarf_nextcu prototype.
2414         * libdwP.h (struct Dwarf_CU): Add offset_size member.
2415         * libdw_findcu.c: Adjust dwarf_nextcu call.  Initialize offset_size
2416         member of new CU struct.
2417         * dwarf_formstring.c: Depend on offset_size not address_size for
2418         DW_FORM_strp handling.
2419         * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
2420
2421         * dwarf_tag.c (__libdw_findabbrev): Return correct value for
2422         failing lookup.
2423         (dwarf_tag): Correctly recognize failed lookup.
2424
2425         * dwarf_end.c (cu_free):  Call tdestroy for locs member.  Use new
2426         function noop_free.
2427         * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
2428         * dwarf_formblock.c: New file.
2429         * dwarf_getloclist.c: Rewrite to handle a single block.
2430         * libdw.h: Define Dwarf_Block.  Rename Dwarf_Loc members.  Remove
2431         Dwarf_Locdesc definition.  Declare dwarf_formblock.  Remove
2432         dwarf_getloclistent declaration.
2433         * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
2434         * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
2435         Add locs member to struct Dwarf_CU.
2436         * libdw_fundcu.c: Initialize locs member of new CU.
2437         * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
2438         Remove dwarf_getloclistent.c.
2439
2440 2004-01-07  Ulrich Drepper  <drepper@redhat.com>
2441
2442         * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
2443         * libdwP.h: Likewise.
2444
2445         * dwarf_getloclist.c: New file.
2446         * dwarf_getloclistent.c: New file.
2447         * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
2448         Declare dwarf_getloclistent and dwarf_getloclist.
2449         * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
2450         * libdwP.h: Define DWARF_E_NO_LOCLIST.
2451         * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
2452         dwarf_getloclist.c.
2453
2454         * dwarf_error.c: More error messages.
2455
2456 2004-01-06  Ulrich Drepper  <drepper@redhat.com>
2457
2458         * dwarf_getsrclines.c: Remove debugging support.
2459
2460         * dwarf_getsrcfiles.c: New file.
2461         * dwarf_filesrc.c: New file.
2462         * libdw.h: Declare these functions.  Define Dwarf_File.
2463         * libdwP.c: Adjust Dwarf_File_s definition.
2464         * libdw.map: Add these functions.
2465         * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
2466         dwarf_filesrc.c.
2467         * dwarf_getsrclines.c: Initialize cu->files.
2468
2469 2004-01-05  Ulrich Drepper  <drepper@redhat.com>
2470
2471         * libdw.h: Add more nonnull function attributes.
2472
2473         * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
2474         * dwarf_end.c (cu_free): New function.
2475         (dwarf_end): Also free CU tree.  Correct freeing of memory blocks.
2476         * dwarf_error.c (errmsgs): Add new messages.
2477         * dwarf_getsrc_die.c: New file.
2478         * dwarf_getsrclines.c: New file.
2479         * dwarf_lineno.c: New file.
2480         * dwarf_linesrc.c: New file.
2481         * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
2482         instead of the *_inc-less variants.
2483         * libdw.h: Define Dwarf_Line.  Add some function attributes.  Declare
2484         dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
2485         * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
2486         and dwarf_linesrc.
2487         * libdwP.h: Add more error codes.
2488         (struct Dwarf): Remove mem_tail.next member.
2489         (Dwarf_File): Define type.
2490         (struct Dwarf_Line_s): Define type.
2491         (struct Dwarf_CU): Add lines and nlines members.
2492         (libdw_alloc): Define local variable _tail and use it.
2493         Add some function attributes.
2494         * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
2495         * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
2496         * memory-access.h: Add unlikely for the endian conversion paths.
2497         * Makefile.am (AM_CFLAGS): Add -std parameter.
2498         (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
2499         dwarf_lineno, and dwarf_linesrc.
2500
2501 2003-08-11  Ulrich Drepper  <drepper@redhat.com>
2502
2503         * Moved to CVS archive.