blob: 21cc4854b23553e06823cf2a208e74102f4bcbaf [file] [log] [blame]
Josh Stonef06c8582013-09-24 15:52:05 -070012013-09-24 Josh Stone <jistone@redhat.com>
2
3 * libdw_visit_scopes.c (classify_die): Removed.
4 (may_have_scopes): New function to replace classify_die. There's no
5 need for full classification; just find tags that may contain scopes.
6 (__libdw_visit_scopes): Use a direct tag comparison for imported
7 units, and use may_have_scopes to test if recursion is needed.
8
Mark Wielaard1b734df2013-09-20 09:50:42 -040092013-09-20 Mark Wielaard <mjw@redhat.com>
10
11 * dwarf_getfuncs.c (visitor_info): New struct.
12 (tree_visitor): New function.
13 (dwarf_getfuncs): Use __libdw_visit_scopes with tree_visitor.
14 * libdw.h (dwarf_getfuncs): Expand function documentation.
15
Mark Wielaard18b2c672013-09-12 15:49:47 +0200162013-09-12 Mark Wielaard <mjw@redhat.com>
17
18 * fde.c (intern_fde): Free fde and set libdw errno when start
19 or end could not be read.
20
Mark Wielaardb2535b62013-08-30 23:55:12 +0200212013-08-24 Mark Wielaard <mjw@redhat.com>
22
23 * dwarf_getlocation.c (store_implicit_value): Don't take data
24 as argument, get block data from op number2. Return false when
25 block data length and op number don't match up.
26 (__libdw_intern_expression): Store start of block for
27 DW_OP_implicit_value and DW_OP_GNU_entry_value instead of
28 relative data offset. Also store block start (including length)
29 for DW_OP_GNU_const_type. Don't pass data to store_implicit_value.
30 * dwarf_getlocation_attr.c: New file.
31 * dwarf_getlocation_die.c: Likewise.
32 * libdw.h (dwarf_getlocation_die): New function definition.
33 (dwarf_getlocation_attr): Likewise.
34 * libdwP.h: Declare internal dwarf_getlocation_die.
35 * libdw.map (ELFUTILS_0.157): Add dwarf_getlocation_die and
36 dwarf_getlocation_attr.
37 * Makefile.am (libdw_a_SOURCES): Add dwarf_getlocation_die.c and
38 dwarf_getlocation_attr.c.
39
Mark Wielaard66eaae92013-08-23 16:12:37 +0200402013-08-23 Mark Wielaard <mjw@redhat.com>
41
42 * dwarf_getlocation.c (attr_ok): Also accept DW_AT_segment.
43 (attr_base_address): New function.
44 (initial_offset_base): New function.
45 (getlocations_addr): New function. Taken from...
46 (dwarf_getlocation_addr): here. Use new initial_offset_base and
47 getlocations_addr.
48 (dwarf_getlocations): New function.
49 * libdw.h (dwarf_getlocations): New function definition.
50 * libdw.map (ELFUTILS_0.157): New.
51
Mark Wielaard5704c8c2013-07-02 11:22:35 +0200522013-07-02 Mark Wielaard <mjw@redhat.com>
53
Mark Wielaard4aacfc12013-07-02 16:36:16 +020054 * dwarf_getsrclines.c (dwarf_getsrclines): Add new stack allocation
55 limit MAX_STACK_ALLOC. After MAX_STACK_ALLOC lines use malloc in
56 NEW_LINE macro. Free malloced line records if any at the end.
57
582013-07-02 Mark Wielaard <mjw@redhat.com>
59
Mark Wielaard5704c8c2013-07-02 11:22:35 +020060 * dwarf_getcfi_elf.c (getcfi_shdr): Check sh_type == SHT_PROGBITS.
61
Mark Wielaard79277072013-06-26 11:42:52 -0400622013-06-26 Mark Wielaard <mjw@redhat.com>
63
64 * libdw_visit_scopes.c (__libdw_visit_scopes): Don't reject root
65 DIEs without children. Return an error whenever dwarf_child or
66 dwarf_siblingof return an error. Don't call recurse and increase
67 the depth for an imported unit. Walk the children of an imported
68 unit as if they are logical children of the parent root DIE.
69
Mark Wielaard9affad32013-05-03 11:28:49 +0200702013-05-03 Mark Wielaard <mjw@redhat.com>
71
72 * dwarf_getsrclines.c (dwarf_getsrclines): Only set end_sequence
73 when nlinelist > 0.
74
Jan Kratochvil904aec22013-04-30 14:27:16 +0200752013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
76
77 * libdw.map (ELFUTILS_0.156): New.
78
Mark Wielaardcdaaf212013-04-25 16:50:11 -0400792013-04-24 Mark Wielaard <mjw@redhat.com>
80
81 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
82
Mark Wielaardd4744a72013-04-10 15:52:57 +0200832013-04-10 Mark Wielaard <mjw@redhat.com>
84
85 * dwarf_formref_die.c (dwarf_formref_die): Reference size is only
86 equal to address size when we have a DW_FORM_ref_addr for DWARF
87 version 2.
88
Mark Wielaard60ef9ab2013-03-25 17:07:21 +0100892013-03-25 Mark Wielaard <mjw@redhat.com>
90
91 * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as
92 end_sequence.
93
Mark Wielaardf1b06b52013-03-12 12:02:51 +0100942013-03-12 Mark Wielaard <mjw@redhat.com>
95
96 * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit.
97 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
98
Mark Wielaard443304e2013-02-15 22:45:22 +0100992013-02-15 Mark Wielaard <mjw@redhat.com>
100
101 * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata,
102 not dbg->sectiondata.
103
Roland McGrath3999ce12013-01-07 14:53:37 -08001042013-01-07 Roland McGrath <roland@hack.frob.com>
105
106 * memory-access.h
107 [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro.
108 [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function.
109
Mark Wielaard59254422012-12-18 14:14:22 +01001102012-12-18 Mark Wielaard <mjw@redhat.com>
111
112 * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid.
113 (check_section): Likewise on error.
114 (scngrp_read): Likewise.
115 (dwarf_begin_elf): Likewise.
116
Petr Machatab5c0b032012-10-09 02:11:29 +02001172012-10-09 Petr Machata <pmachata@redhat.com>
118
119 * dwarf_getlocation.c (__libdw_intern_expression): Handle
120 DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret,
121 DW_OP_GNU_regval_type, DW_OP_GNU_entry_value,
122 DW_OP_GNU_deref_type, DW_OP_GNU_const_type.
123
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +02001242012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
125
Jan Kratochvil1d67c0c2012-10-08 23:51:31 +0200126 * cfi.c: New include system.h.
127 (execute_cfi) (enough_registers): Clear new memory after realloc.
128
1292012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
130
Jan Kratochvil07f35072012-10-08 23:34:35 +0200131 * fde.c (__libdw_find_fde): Change <fde != NULL> to likely. Return
132 DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for
133 searched PC.
134
1352012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
136
Jan Kratochvil96a9fc62012-10-08 23:08:01 +0200137 * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new
138 loclist element DW_OP_call_frame_cfa before decoding the opcodes.
139 Remove the later DW_OP_call_frame_cfa push to RESULT.
140
1412012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
142
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +0200143 Code cleanup.
144 * fde.c (binary_search_fde): Remove always true <address >= start>
145 conditional. Move L initialization upwards.
146
Mark Wielaardf5519fc2012-08-24 13:54:52 +02001472012-08-24 Mark Wielaard <mjw@redhat.com>
148
149 * dwarf_begin_elf.c (check_section): Only probe for dwz multi files
150 when ENABLE_DWZ is defined.
151 * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is
152 defined.
153
Mark Wielaardf31c4412012-08-17 00:35:03 +02001542012-08-16 Mark Wielaard <mjw@redhat.com>
155
156 * Makefile.am (EXTRA_DIST): Add known-dwarf.h.
157 * dwarf.h (DW_LANG_Go): Update comment.
158 (DW_LANG_Mips_Assembler): Likewise.
159
Mark Wielaard775375e2012-06-22 12:02:45 +02001602012-06-27 Mark Wielaard <mjw@redhat.com>
161
162 * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
163 * dwarf_begin.c (dwarf_begin): Add INTDEF.
164 * dwarf_begin_elf.c (__check_build_id): New internal_function.
165 (try_debugaltlink): New function.
166 (open_debugaltlink): Likewise.
167 (check_section): Try open_debugaltlink for .gnu_debugaltlink.
168 * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if
169 necessary.
170 * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK.
171 * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt
172 is an error here.
173 * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt.
174 * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt.
175 * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset
176 calls.
177 * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call.
178 * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK.
179 (struct Dwarf): Add alt_dwarf and free_alt fields.
180 (__libdw_read_offset): Add dbg_ret argument, use to check with
181 __libdw_offset_in_section.
182 (__check_build_id): New function declaration.
183 (dwarf_begin): Define as INTDECL.
184 * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt
185 and DW_FORM_GNU_strp_alt.
186
Mark Wielaard515fba92012-07-20 00:09:56 +02001872012-07-19 Mark Wielaard <mjw@redhat.com>
188
189 * dwarf.h: Add DW_OP_GNU_parameter_ref.
190
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +02001912012-07-24 Mark Wielaard <mjw@redhat.com>
192
Mark Wielaardc4010b82012-07-24 13:20:41 +0200193 * dwarf.h: Correct spelling of DW_LANG_ObjC.
194 * dwarf_aggregate_size.c (array_size): Use correct spelling of
195 DW_LANG_ObjC.
196
1972012-07-24 Mark Wielaard <mjw@redhat.com>
198
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +0200199 * dwarf.h: Add DW_ATE_UTF.
200
Mark Wielaardef5688e2012-06-27 10:15:27 +02002012012-06-27 Mark Wielaard <mjw@redhat.com>
202
203 * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
204
Mark Wielaarda0172d72012-06-25 17:18:53 +02002052012-06-26 Mark Wielaard <mjw@redhat.com>
206
207 * libdwP.h: Add IDX_debug_macro.
208 * dwarf.h: Add DW_AT_GNU_macros.
209 * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro.
210 * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros.
211
Mark Wielaard54797252012-04-27 13:00:50 +02002122012-04-27 Mark Wielaard <mjw@redhat.com>
213
214 * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being
215 a constant offset from DW_AT_low_pc.
216
Tom Tromey581c3f62012-03-21 08:54:32 -06002172012-03-19 Tom Tromey <tromey@redhat.com>
218
219 * libdw_findcu.c (findcu_cb): Move earlier.
220 (__libdw_intern_next_unit): Add new CU to search tree here...
221 (__libdw_findcu): ... not here.
222
Mark Wielaardcb643d62012-01-31 19:22:03 +01002232012-01-31 Mark Wielaard <mjw@redhat.com>
224
225 * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset.
226
Mark Wielaard387998b2011-10-31 15:01:50 +01002272011-11-31 Mark Wielaard <mjw@redhat.com>
228
229 * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
230
Mark Wielaard0b72b652011-07-14 12:59:26 +02002312011-07-14 Mark Wielaard <mjw@redhat.com>
232
233 * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
234
Jakub Jelinek03124242011-05-17 17:00:14 +02002352011-05-16 Jakub Jelinek <jakub@redhat.com>
236
237 * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
238 DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
239 New.
240
Mark Wielaardf4c39c72011-04-26 17:15:28 +02002412011-04-26 Mark Wielaard <mjw@redhat.com>
242
243 * dwarf_child (dwarf_child): Sanity check end of section against
244 cu_data () of die->cu.
245
Mark Wielaarde3368c52011-03-22 23:03:31 +01002462011-03-22 Mark Wielaard <mjw@redhat.com>
247
248 * dwarf.h: Add DW_TAG_GNU_call_site,
249 DW_TAG_GNU_call_site_parameter,
250 DW_AT_GNU_call_site_value,
251 DW_AT_GNU_call_site_data_value,
252 DW_AT_GNU_call_site_target,
253 DW_AT_GNU_call_site_target_clobbered,
254 DW_AT_GNU_tail_call,
255 DW_AT_GNU_all_tail_call_sites,
256 DW_AT_GNU_all_call_sites,
257 DW_AT_GNU_all_source_call_sites,
258 and DW_OP_GNU_entry_value.
259
Petr Machata02c56192011-03-10 01:50:32 +01002602011-03-10 Petr Machata <pmachata@redhat.com>
261
262 * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
263 abbreviation with code 0.
264
Petr Machata35870872011-03-09 10:01:29 -08002652011-03-09 Petr Machata <pmachata@redhat.com>
266
267 * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
268
Roland McGrath725aad52011-02-23 19:52:46 -08002692011-02-23 Roland McGrath <roland@redhat.com>
270
271 * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
272 Declare __libdw_free_zdata.
273 * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
274 (dwarf_end): Call it.
275
276 * dwarf_begin_elf.c (valid_p): Likewise.
277 (check_section, scngrp_read): Likewise.
278 (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
279
Roland McGrath8c0a3822010-10-13 11:21:17 -07002802010-10-13 Roland McGrath <roland@redhat.com>
281
282 * dwarf.h: Add DW_LANG_Go.
283
Roland McGrath5f95e2b2010-10-05 00:56:30 -07002842010-10-05 Roland McGrath <roland@redhat.com>
285
286 * dwarf_getaranges.c: Use malloc rather than alloca,
287 since the total number of elements can be quite huge.
288
Roland McGrath932585d2010-05-08 04:01:14 -07002892010-07-26 Roland McGrath <roland@redhat.com>
290
291 * dwarf_getlocation_implicit_pointer.c: New file.
292 * Makefile.am (libdw_a_SOURCES): Add it.
293 * libdw.map (ELFUTILS_0.149): New set.
294 Add dwarf_getlocation_implicit_pointer.
295 * libdw.h: Declare it.
296
297 * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
298 (dwarf_offdie, dwarf_offdie_types): Update callers.
299 * libdwP.h: Declare it.
300
301 * dwarf.h: Add DW_OP_GNU_implicit_pointer.
302 * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
303
Roland McGrathde44f132010-08-24 15:38:42 -07003042010-08-24 Roland McGrath <roland@redhat.com>
305
306 * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
307
Roland McGrath00aca7f2010-07-27 04:40:23 -07003082010-07-27 Roland McGrath <roland@redhat.com>
309
310 * dwarf_formref_die.c: Fix sig8 hash insertion.
311
Roland McGrath9616b852010-06-23 03:17:28 -07003122010-06-23 Roland McGrath <roland@redhat.com>
313
314 * cfi.c (dwarf_cfi_validate_fde): Function removed.
315 * libdw.h: Remove it.
316 * libdw.map: Likewise.
317
Roland McGrath499b8ff2010-06-22 13:13:53 -07003182010-06-22 Roland McGrath <roland@redhat.com>
319
Roland McGrathc16966a2010-06-22 17:08:43 -0700320 * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
321
Roland McGrath499b8ff2010-06-22 13:13:53 -0700322 * dwarf_getsrclines.c: Fix signed comparison warning in extended
323 opcode parsing.
324
Roland McGrath0c5638c2010-06-21 23:00:35 -07003252010-06-21 Roland McGrath <roland@redhat.com>
326
Roland McGrath474cb482010-06-22 00:10:54 -0700327 * dwarf.h: Add DW_TAG_GNU_* constants.
328
Roland McGrath0c5638c2010-06-21 23:00:35 -0700329 * memory-access.h (get_sleb128_rest_return): Fix sign extension for
330 10-byte case.
331
Roland McGrath5cc030d2010-06-20 17:25:35 -07003322010-06-20 Roland McGrath <roland@redhat.com>
333
Roland McGrath2b1f0952010-06-20 17:55:50 -0700334 * libdw_findcu.c (__libdw_findcu): Take new flag argument,
335 to search TUs instead of CUs.
336 * libdwP.h: Update decl.
337 (struct Dwarf): New member tu_tree.
338 * dwarf_end.c (dwarf_end): Clean up tu_tree.
339 * dwarf_offdie.c (do_offdie): New function, broken out of ...
340 (dwarf_offdie): ... here.
341 (dwarf_offdie_types): New function.
342 * libdw.h: Declare it.
343 * libdw.map (ELFUTILS_0.148): Add it.
344
Roland McGrath5cc030d2010-06-20 17:25:35 -0700345 * libdwP.h (CUDIE): Use cu_data.
346 * dwarf_formblock.c: Likewise.
347 * dwarf_formref_die.c: Likewise.
348 * dwarf_diecu.c: Use CUDIE macro.
349 * dwarf_formaddr.c: Use cu_sec_idx.
350
Roland McGrathc70ebc02010-06-16 02:21:26 -07003512010-06-16 Roland McGrath <roland@redhat.com>
352
Roland McGrath3e0f7d12010-06-15 23:10:35 -0700353 * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
354 we don't repeat a CU lookup we've already done. Handle
355 DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
356
357 * libdw_findcu.c (__libdw_intern_next_unit): New function,
358 broken out of ...
359 (__libdw_findcu): ... here. Call it.
360 * libdwP.h: Declare it.
361 (struct Dwarf): New member next_tu_offset.
362
363 * dwarf_sig8_hash.c: New file.
364 * dwarf_sig8_hash.h: New file.
365 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
366 * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
367 defining NO_UNDEF.
368 * libdwP.h (struct Dwarf): New member sig8_hash.
369 * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
370 * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
371
372 * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
373 (dwarf_nextcu): ... here. Call it.
374 * libdw.h: Declare it.
375 * libdwP.h: Add INTDECL.
376 * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
377 * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
378
379 * libdwP.h (cu_sec_idx, cu_data): New functions.
380 Use .debug_types when CU is a TU.
381 * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
382 * dwarf_siblingof.c: Likewise.
383 * dwarf_formstring.c: Likewise.
384 * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
385 * dwarf_getlocation.c (dwarf_getlocation): Likewise.
386 (dwarf_getlocation_addr): Likewise.
387
388 * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
389 (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
390 .debug_types header size instead of .debug_info header size.
391 (CUDIE): Use it.
392 * dwarf_diecu.c: Update caller.
393 * dwarf_getaranges.c: Likewise.
394 * dwarf_nextcu.c: Likewise.
395 * libdw_findcu.c (__libdw_findcu): Initialize new members.
396
Roland McGrath3e4b5bb2010-06-16 03:40:56 -0700397 * fde.c (fde_by_offset): Renamed to ...
398 (__libdw_fde_by_offset): ... this, made global and internal_function.
399 Don't take ADDRESS argument.
400 (__libdw_find_fde): Update caller. Do address sanity check here.
401 * cfi.h: Declare __libdw_fde_by_offset.
402 * cfi.c (dwarf_cfi_validate_fde): New function.
403 * libdw.h: Declare it.
404 * libdw.map (ELFUTILS_0.148): Add it.
405
Roland McGrath5f4b5082010-06-16 03:11:57 -0700406 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
407 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
408
Roland McGrath7934ded2010-06-16 03:04:09 -0700409 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
410 Don't assume DW_EH_PE_aligned refers to native address size.
411
Roland McGrathc70ebc02010-06-16 02:21:26 -0700412 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
413 address.
414
Roland McGrathc70cf4e2010-06-18 17:01:05 -07004152010-06-17 Roland McGrath <roland@redhat.com>
416
417 * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
418 op_index.
419 * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
420 into an inner inline function. Set new fields. Check all fields for
421 overflow when setting.
422 * dwarf_lineisa.c: New file.
423 * dwarf_linediscriminator.c: New file.
424 * dwarf_lineop_index.c: New file.
425 * Makefile.am (libdw_a_SOURCES): Add them.
426 * libdw.map (ELFUTILS_0.148): Add them.
427 * libdw.h: Declare them.
428
Roland McGrath3f633072010-06-15 22:17:04 -07004292010-06-16 Roland McGrath <roland@redhat.com>
430
Roland McGrath4a87dfa2010-06-16 16:35:10 -0700431 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
432
Roland McGrathb75f4442010-06-15 22:24:19 -0700433 * fde.c (fde_by_offset): Renamed to ...
434 (__libdw_fde_by_offset): ... this, made global and internal_function.
435 Don't take ADDRESS argument.
436 (__libdw_find_fde): Update caller. Do address sanity check here.
437 * cfi.h: Declare __libdw_fde_by_offset.
Roland McGrath9bcd2652010-06-15 22:17:20 -0700438 * cfi.c (dwarf_cfi_validate_fde): New function.
439 * libdw.h: Declare it.
Roland McGrath3f633072010-06-15 22:17:04 -0700440 * libdw.map (ELFUTILS_0.148): Add it.
441
Roland McGrath0b3363e2010-06-01 15:42:14 -0700442 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
443 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
Roland McGrath827d4d12010-06-01 20:17:36 -0700444
445 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
446 Don't assume DW_EH_PE_aligned refers to native address size.
Roland McGrath1a030b32010-06-01 20:11:40 -0700447
448 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
Roland McGrath675229b2010-06-01 20:10:19 -0700449 address.
450
4512010-06-15 Roland McGrath <roland@redhat.com>
Roland McGrath52123962010-06-01 19:05:08 -0700452
453 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
Roland McGrath7fac1ce2010-06-01 15:56:58 -0700454 DW_FORM_ref_addr.
455 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
Roland McGrath0b3363e2010-06-01 15:42:14 -0700456 here, since we don't support it yet.
457
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200458 * dwarf_next_cfi.c: Handle version 4 format.
459
Mark Wielaard08e71db2010-05-31 15:39:15 +0200460 * dwarf_getsrclines.c: Handle version 4 format.
461
4622010-06-01 Roland McGrath <roland@redhat.com>
463
464 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200465 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
466
Eduardo Santiagod2240bc2010-05-28 14:26:52 -0700467 * libdwP.h (CIE_VERSION): Remove unused macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700468
Ulrich Drepper49fe7142010-05-28 20:32:37 -0700469 * dwarf_getsrclines.c: Fix version field test.
470 * libdwP.h (DWARF_VERSION): Remove useless macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700471
Roland McGrathcfa5da22010-05-27 13:49:25 -0700472 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
473
474 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
475
476 * libdw_findcu.c (__libdw_findcu): Accept version 4.
Roland McGrath688f7fc2010-05-08 03:22:59 -0700477
4782010-05-31 Mark Wielaard <mjw@redhat.com>
479
480 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
481 * libdw.h (dwarf_cfi_cie_p): ... here.
482
4832010-05-31 Mark Wielaard <mjw@redhat.com>
484
485 * dwarf.h: Fix DW_LANG_Python constant.
Roland McGrath0ab97832010-04-26 11:50:27 -0700486
4872010-05-28 Eduardo Santiago <santiago@redhat.com>
Roland McGrath3b10ac02010-04-26 18:45:36 -0700488
489 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
490 thing.
491
4922010-05-27 Roland McGrath <roland@redhat.com>
Roland McGrath0ab97832010-04-26 11:50:27 -0700493
494 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
495 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
496
4972010-05-08 Roland McGrath <roland@redhat.com>
498
499 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
Roland McGrath3f9d9552010-04-22 20:51:07 -0700500 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
501 (getlocation): Update caller.
502 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
503 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
504 * libdwP.h: Update decl.
505
5062010-04-26 Roland McGrath <roland@redhat.com>
Roland McGrath8068e062010-03-10 23:49:13 -0800507
508 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
509 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
510 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
Roland McGrath22359e22010-02-15 15:57:03 -0800511 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
512
513 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
514 Prepend DW_OP_call_frame_cfa if true.
Mark Wielaardee29a312010-02-02 20:44:53 +0100515 (getlocation): Update caller.
516 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
517 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
518 * libdwP.h: Update decl.
Roland McGrathf95760a2010-01-07 20:24:34 -0800519
5202010-04-22 Roland McGrath <roland@redhat.com>
521
522 * cfi.c (execute_cfi): Never return without cleanup.
Roland McGrath019d9fb2010-01-05 13:36:07 -0800523 Free FS on failure.
524 (cie_cache_initial_state): Adjust caller to expect that free.
Roland McGrathebc5c882010-01-05 22:53:31 -0800525 (__libdw_frame_at_address): Likewise.
526
5272010-03-10 Roland McGrath <roland@redhat.com>
528
529 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
530
5312010-02-15 Roland McGrath <roland@redhat.com>
532
533 * Makefile.am: Use config/eu.am for common stuff.
Roland McGrath0cb19832010-01-05 13:38:15 -0800534
5352010-02-02 Mark Wielaard <mjw@redhat.com>
Roland McGrath019d9fb2010-01-05 13:36:07 -0800536
537 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
Roland McGrath888381b2009-11-21 17:03:34 -0800538
5392010-01-07 Roland McGrath <roland@redhat.com>
540
541 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
542
Roland McGrath9ca7bc42009-10-15 12:26:49 -07005432010-01-05 Roland McGrath <roland@redhat.com>
544
545 * dwarf_aggregate_size.c: New file.
546 * Makefile.am (libdw_a_SOURCES): Add it.
547 * libdw.h: Declare it.
Roland McGrath7e0aecd2009-09-17 15:02:34 -0700548 * libdwP.h: Add INTDECL.
549 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
550
551 * dwarf_srclang.c: Add INTDEF.
552 * libdwP.h: Add INTDECL.
553
Roland McGrathf0371042009-09-10 12:39:09 -0700554 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
555
556 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
557
5582009-11-21 Roland McGrath <roland@redhat.com>
559
560 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
561 non-constant forms.
Mark Wielaard418ae4c2009-09-09 20:59:26 +0200562
5632009-10-15 Roland McGrath <roland@redhat.com>
564
565 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
Josh Stonecc93cc42009-08-21 18:04:44 -0700566 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
567
5682009-09-17 Roland McGrath <roland@redhat.com>
569
Roland McGrath08277ba2009-08-10 15:08:08 -0700570 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
571 argument a pointer to const.
572 * libdw.h: Update decl.
573
Roland McGrathebfb6482009-08-09 15:40:52 -07005742009-09-10 Roland McGrath <roland@redhat.com>
575
576 * dwarf_getlocation.c (store_implicit_value): New function.
577 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
578 (dwarf_getlocation_implicit_value): New function.
579 * libdw.h: Declare it.
580 * libdw.map (ELFUTILS_0.143): Add it.
581
5822009-09-09 Mark Wielaard <mjw@redhat.com>
583
584 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
585
5862009-08-21 Josh Stone <jistone@redhat.com>
587
Roland McGrathde69d522009-08-07 18:26:19 -0700588 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
589
5902009-08-10 Roland McGrath <roland@redhat.com>
591
592 * dwarf_getscopevar.c: Use dwarf_diename.
593
5942009-08-09 Roland McGrath <roland@redhat.com>
595
596 * libdw.map (ELFUTILS_0.143): New version set,
597 inherits from ELFUTILS_0.142.
Roland McGrathaf800142009-07-22 13:55:50 -0700598 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
599 alias in the ELFUTILS_0.122 version set and the default in the new set.
600 * dwarf_srclang.c: Likewise.
601 * dwarf_decl_file.c: Likewise.
602 * dwarf_decl_line.c: Likewise.
603 * dwarf_decl_column.c: Likewise.
604 * dwarf_bytesize.c: Likewise.
605 * dwarf_bitsize.c: Likewise.
606 * dwarf_bitoffset.c: Likewise.
607
6082009-08-07 Roland McGrath <roland@redhat.com>
609
610 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
611 * dwarf_srclang.c: Likewise.
612 * dwarf_decl_file.c: Likewise.
613 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
Roland McGrathe23e9e72009-07-21 18:14:52 -0700614 * dwarf_bytesize.c: Likewise.
615 * dwarf_bitsize.c: Likewise.
616 * dwarf_bitoffset.c: Likewise.
617
6182009-07-22 Roland McGrath <roland@redhat.com>
619
620 * dwarf_frame_cfa.c: Change calling convention.
621 * libdw.h: Update decl.
Roland McGrath96349ff2009-07-20 11:51:41 -0700622
623 * dwarf_frame_register.c: Change calling/return-value convention for
624 value-only results and undefined/same_value.
625 * libdw.h: Update decl.
626
Roland McGratha6abdfd2009-07-16 17:40:19 -0700627 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
628 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
Roland McGrathe160cc92009-07-16 17:48:27 -0700629 return that value instead.
630 (getlocation): Update caller.
631 * dwarf_frame_cfa.c: Likewise.
632 * libdwP.h: Update decl.
633
Roland McGratha6abdfd2009-07-16 17:40:19 -07006342009-07-21 Roland McGrath <roland@redhat.com>
635
636 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
637 Fix loop iteration after skipping a bogus or useless CU.
638
639 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
640 absence, not DWARF_E_NO_DEBUG_LINE.
Roland McGrath7dd94642009-07-15 11:14:23 -0700641
6422009-07-20 Roland McGrath <roland@redhat.com>
643
644 * dwarf_getlocation.c (__libdw_intern_expression):
645 Handle DW_OP_stack_value.
Roland McGrath80893432009-07-13 12:08:55 -0700646
6472009-07-16 Roland McGrath <roland@redhat.com>
648
649 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700650 reject others when CU's version > 3.
651
Roland McGrath3c84db32009-06-24 17:41:40 -0700652 * dwarf_formflag.c: Handle DW_FORM_flag_present.
653
654 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
655 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
656 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
657 and DW_AT_const_expr.
658 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
659 and DW_FORM_ref_sig8.
660
6612009-07-15 Roland McGrath <roland@redhat.com>
662
663 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
664 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
665
6662009-07-13 Roland McGrath <roland@redhat.com>
667
668 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
669
6702009-07-08 Roland McGrath <roland@redhat.com>
671
672 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
673 dwfl_module_eh_cfi.
674
675 * libdwP.h (struct Dwarf): Add member `cfi'.
676 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
677 * dwarf_getcfi.c: New file.
678 * dwarf_getcfi_elf.c: New file.
679 * dwarf_cfi_end.c: New file.
680 * dwarf_cfi_addrframe.c: New file.
681 * dwarf_frame_cfa.c: New file.
682 * dwarf_frame_register.c: New file.
683 * dwarf_frame_return_address_register.c: New file.
684 * Makefile.am (libdw_a_SOURCES): Add them.
685 * unwind.h: Declare those functions.
686 * libdw.map (ELFUTILS_0.142): Export them.
687
688 * dwarf_getlocation.c (__libdw_intern_expression): New function,
689 broken out of ...
690 (getlocation): ... here, call it.
691 * libdwP.h: Declare it.
692
693 * cie.c: New file.
694 * fde.c: New file.
695 * frame-cache.c: New file.
696 * cfi.c: New file.
697 * cfi.h: New file.
698 * encoded-value.h: New file.
699 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
700 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
701 * dwarf_error.c (errmsgs): Add element for it.
702
703 * dwarf_next_cfi.c: New file.
704 * Makefile.am (libdw_a_SOURCES): Add it.
Roland McGrath6e1f4652009-07-08 14:48:34 -0700705 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
706 Declare dwarf_next_cfi.
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700707 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
708 Add dwarf_next_cfi.
709
710 * memory-access.h [! ALLOW_UNALIGNED]
Roland McGrath05c4e042009-06-18 13:56:02 -0700711 (read_2ubyte_unaligned): Renamed to ...
712 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
713 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
714 (read_2sbyte_unaligned): Likewise.
715 (read_4ubyte_unaligned): Likewise.
716 (read_4sbyte_unaligned): Likewise.
717 (read_8ubyte_unaligned): Likewise.
718 (read_8sbyte_unaligned): Likewise.
719
Ulrich Drepper99d23722009-06-14 20:19:45 -0700720 * libdwP.h (IDX_eh_frame): Remove it.
721 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
722
7232009-07-08 Roland McGrath <roland@redhat.com>
724
725 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
726
727 * dwarf_getlocation.c (check_constant_offset): New function.
728 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
729 handle DW_AT_data_member_location of data[48] as constant offset.
730
7312009-06-18 Roland McGrath <roland@redhat.com>
732
733 * libdwP.h (__libdw_read_address_inc): Constify.
734 (__libdw_read_offset_inc): Likewise.
735 * dwarf_getaranges.c: Likewise.
736 * dwarf_getlocation.c: Likewise.
737 * dwarf_getsrclines.c: Likewise.
738 * dwarf_nextcu.c: Likewise.
739
7402009-05-05 Petr Machata <pmachata@redhat.com>
741
742 * libdwP.h (__libdw_formptr): Declare new function.
743 * dwarf_formudata.c: Implement it here.
744 * dwarf_getlocation.c (dwarf_getlocation_addr):
745 Call it instead of hand-rolled offset handling code.
746 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
747 * dwarf_ranges.c (dwarf_ranges): Likewise.
748
7492009-05-04 Petr Machata <pmachata@redhat.com>
750
751 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
752 * dwarf_ranges.c: Implement it here.
753 (dwarf_ranges): Call it.
Roland McGrathe2eabd82009-05-07 18:54:52 -0700754 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
755
7562009-04-23 Petr Machata <pmachata@redhat.com>
757
758 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
759 of read_*ubyte_unaligned.
Petr Machataf3df61f2009-05-07 21:02:33 +0200760 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
761 * dwarf_formstring.c (dwarf_formstring): Likewise.
762 * dwarf_formudate.c (dwarf_formudata): Likewise.
763 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
764 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
Roland McGrath2fb90512009-04-15 14:47:13 -0700765 * dwarf_getpubnames.c (get_offsets): Likewise.
766 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
767
7682009-04-23 Petr Machata <pmachata@redhat.com>
769
Roland McGrath6a4bdd92009-04-01 14:25:29 -0700770 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
771 __libdw_read_addr, __libdw_read_off): Add four new internal
772 functions.
773
Roland McGrathc5acb302009-01-28 18:28:52 -08007742009-05-07 Roland McGrath <roland@redhat.com>
775
Roland McGrath03288f02009-01-28 22:00:54 -0800776 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
777 return value and OFFSET argument, not CU-relative. Only fetch the
778 attribute data when called with OFFSET of 0.
Roland McGrathc5acb302009-01-28 18:28:52 -0800779
7802009-05-07 Petr Machata <pmachata@redhat.com>
Roland McGrathf46272a2009-01-26 18:36:16 -0800781
782 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
783 DW_AT_macro_info attribute of CU DIE.
784
Roland McGrathd31505f2009-01-25 19:37:33 -08007852009-04-15 Roland McGrath <roland@redhat.com>
786
787 * dwarf.h (DW_CIE_ID): Removed.
788 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
Roland McGrath3bf7a092009-01-23 16:34:07 -0800789
7902009-04-01 Roland McGrath <roland@redhat.com>
791
792 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
793
Roland McGrathafdd51e2009-01-22 02:26:24 -08007942009-01-28 Roland McGrath <roland@redhat.com>
795
796 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
797 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
Roland McGrath1ea4fdc2009-01-21 19:14:37 -0800798
799 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
800
8012009-01-26 Roland McGrath <roland@redhat.com>
802
803 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
Roland McGrath24b03302009-01-17 14:34:13 -0800804
8052009-01-25 Roland McGrath <roland@redhat.com>
Roland McGrath54456d82009-01-17 14:39:35 -0800806
807 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
808
Roland McGrath5513e642009-01-11 01:35:11 -08008092009-01-23 Roland McGrath <roland@redhat.com>
810
811 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
812 Put these rules under if MAINTAINER_MODE.
813
8142009-01-22 Roland McGrath <roland@redhat.com>
815
Roland McGrath24b03302009-01-17 14:34:13 -0800816 * dwarf.h: Add DW_OP_GNU_encoded_addr.
817
Ulrich Drepper7e678fa2009-01-10 18:02:05 -08008182009-01-21 Roland McGrath <roland@redhat.com>
819
820 * Makefile.am (CLEANFILES): Renamed to ...
821 (MOSTLYCLEANFILES): ... here.
Roland McGrathe06762c2009-01-08 13:39:08 -0800822 (CLEANFILES): New variable, add known-dwarf.h.
823
8242009-01-17 Roland McGrath <roland@redhat.com>
825
Roland McGrath7e827f22009-01-06 02:09:50 -0800826 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
Roland McGrath1f6d2012008-12-31 00:21:04 -0800827 Make it unconditional.
828 (BUILT_SOURCES): Updated.
829
830 * dwarf.h: Add description comments for DW_LANG_* values.
Roland McGrathbca43152009-01-05 23:59:32 -0800831
832 * Makefile.am [MAINTAINER_MODE]
833 ($(srcdir)/known-dwarf.h): New target.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800834 (BUILT_SOURCES): Add it.
835
Roland McGrathc462c632009-01-06 01:04:31 -0800836 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800837
8382009-01-10 Ulrich Drepper <drepper@redhat.com>
839
840 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
Roland McGrathb4d6f0f2008-08-25 22:55:17 +0000841
8422009-01-08 Roland McGrath <roland@redhat.com>
843
844 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
845
Ulrich Drepper8d358d92008-01-22 06:34:31 +00008462008-01-06 Roland McGrath <roland@redhat.com>
847
848 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
849 Reorder members.
850 * dwarf_haschildren.c: Return -1 for error case, not 0.
851
852 * Makefile.am (libdw.so): Link in $(zip_LIBS).
853
Ulrich Drepperb27ce002008-01-18 20:08:54 +00008542009-01-06 Ulrich Drepper <drepper@redhat.com>
855
856 * dwarf.h: Add definition for unwind and call frame information.
857
858 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000859 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
860
8612008-08-15 Roland McGrath <roland@redhat.com>
862
863 * libdw.map (ELFUTILS_0.136): New version set, inherits from
864 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
865
8662008-01-21 Ulrich Drepper <drepper@redhat.com>
867
868 * dwarf_child.c: Minor optimizations.
869 * dwarf_getattrs.c: Likewise.
870 * dwarf_getpubnames.c: Likewise.
871 * dwarf_siblingof.c: Likewise.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +0000872 * dwarf_tag.c: Likewise.
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000873
8742008-01-18 Ulrich Drepper <drepper@redhat.com>
875
876 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
877 of DWARF_VERSION comparison, just fail if the file's version is newer.
878
8792008-01-17 Nick Clifton <nickc@redhat.com>
880
881 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
882 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
883 (DWARF3_LENGTH_64_BIT): New define.
884 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
885 * dwarf_getpubnames: Include dwarf.h.
886 (get_offsets): Use the new definitions.
887 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
888 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
889 (dwarf_nextcu): Use the new definitions.
890
891 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
892 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
893 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
894 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
895
896 * dwarf_getpubnames (get_offsets): Replace assertion with test and
897 error return.
898
899 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
900
901 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
902 Set the address in the return structure to the address of the next
903 non-sibling die, if there is no sibling and the return pointer is
904 not the same as the die pointer.
Ulrich Dreppere219f1c2008-01-09 05:49:49 +0000905 * libdw.h: Expand the description of the dwarf_siblingof prototype.
906
907 * dwarf_child.c: Fix typo in comment.
908
909 * libdwP.h (DWARF_VERSION): Change to 3.
910
Roland McGrathe4c22ea2007-10-23 13:07:39 +0000911 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
912 not have a initialised valp pointer.
913
914 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
915 the end of the attributes is reached. When the callback fails,
916 return the address of the failing attribute, not the address of
917 its successor.
918 * libdw.h: Expand the description of the dwarf_getattrs prototype.
919
920 * dwarf_child.c (__libdw_find_attr): Use the new definition.
921 (dwarf_child): Likewise.
922 * dwarf_tag.c (__libdw_findabbrev): Likewise.
923 (dwarf_tag): Likewise.
924
9252008-01-08 Roland McGrath <roland@redhat.com>
926
927 * Makefile.am (euinclude): Variable removed.
928 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
929 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
Ulrich Drepperb597dfa2007-10-16 05:21:27 +0000930
9312007-10-17 Roland McGrath <roland@redhat.com>
932
933 * libdw.h (__deprecated_attribute__): New macro.
934 (dwarf_formref): Mark it deprecated.
935 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
936 (dwarf_formref): ... here. Call it. Remove INTDEF.
Roland McGrath59ea7f32007-10-04 08:50:09 +0000937 * libdwP.h: Remove INTDECL.
938 Declare __libdw_formref.
939 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
940 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
941
942 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
943 needs to check CU->version.
944
Roland McGrath057ec6b2007-10-02 20:55:05 +0000945 * libdwP.h (struct Dwarf_CU): New member `version'.
946 * libdw_findcu.c (__libdw_findcu): Initialize it.
947
948 * dwarf_child.c: Return 1 for null entry as first child.
949
Roland McGrathd1a48172007-08-07 19:51:01 +00009502007-10-05 Roland McGrath <roland@redhat.com>
951
952 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
953
954 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
955 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
956
9572007-10-03 Roland McGrath <roland@redhat.com>
958
959 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
960 and dwfl_build_id_find_debuginfo.
Roland McGrath87d47802007-07-16 22:23:37 +0000961
962 * libdw.map (ELFUTILS_0.130): New version set, inherits from
963 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
964
9652007-10-02 Roland McGrath <roland@redhat.com>
Roland McGrath43da9892007-04-16 23:13:37 +0000966
967 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
968 structure_type.
969
Roland McGrathbf2ee482007-04-05 09:27:36 +00009702007-08-07 Roland McGrath <roland@redhat.com>
971
Roland McGrath43da9892007-04-16 23:13:37 +0000972 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
973 error code is DWARF_E_NOERROR (0).
974
975 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
976 Fix typo in __libdw_visit_scopes argument.
977
978 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
979 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
980
9812007-07-03 Roland McGrath <roland@redhat.com>
Roland McGrathbf2ee482007-04-05 09:27:36 +0000982
983 * libdw.h (__extern_inline): New macro.
984 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
985
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00009862007-04-16 Roland McGrath <roland@redhat.com>
987
988 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
989
9902007-04-05 Roland McGrath <roland@redhat.com>
991
992 * dwarf_getsrcdirs.c: New file.
993 * Makefile.am (libdw_a_SOURCES): Add it.
Ulrich Drepper6258e742007-03-13 06:22:40 +0000994 * libdw.h: Declare dwarf_getsrcdirs.
995 * libdw.map (ELFUTILS_0.127): Add it.
996
997 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
998 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
999 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
1000 Save DIRARRAY in the Dwarf_Files.
1001
1002 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
Ulrich Drepper903c1162007-02-15 19:40:37 +00001003 address to check for all-ones base address entry. Check directly.
1004 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
1005
10062007-03-25 Roland McGrath <roland@redhat.com>
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00001007
1008 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
1009 Return NULL when freeing RESULT on error.
1010 (global_read, scngrp_read): Check return value from check_section,
1011 break out of loop after it has freed RESULT.
1012 (valid_p): Handle null argument.
1013
Roland McGrath8190db62006-12-17 23:56:51 +000010142007-03-12 Roland McGrath <roland@redhat.com>
1015
1016 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
1017
10182007-03-04 Roland McGrath <roland@redhat.com>
Roland McGrathc373d852006-10-10 00:25:21 +00001019
1020 * libdw.map (ELFUTILS_0.127): New version set, inherits from
1021 ELFUTILS_0.126. Add dwfl_module_addrsym.
1022
10232007-02-10 Roland McGrath <roland@redhat.com>
1024
1025 * dwarf.h (DW_OP_fbreg): Comment fix.
1026
10272007-02-03 Roland McGrath <roland@redhat.com>
1028
1029 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
1030 * libdw.map (ELFUTILS_0.126): New version set, inherits from
Ulrich Drepper077c65f2006-07-12 19:54:51 +00001031 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
1032 exported in the past.
1033
10342006-12-17 Roland McGrath <roland@redhat.com>
1035
1036 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
1037 address when the CU is missing attributes due to buggy GCC.
1038
Ulrich Dreppere1812e12006-07-12 07:46:03 +000010392006-08-29 Roland McGrath <roland@redhat.com>
1040
1041 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
1042
1043 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
1044 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
1045
Ulrich Drepper3be74472006-05-27 18:15:40 +00001046 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
1047 result is aligned. Adjust NEWP->remaining here for this allocation.
1048 * libdwP.h: Update decl.
1049 (libdw_alloc): Update caller.
Ulrich Dreppere7a73172006-05-22 18:16:45 +00001050
10512006-07-12 Ulrich Drepper <drepper@redhat.com>
1052
1053 * dwarf_child.c: Adjust for internal_function_def removal.
1054 * dwarf_getabbrev.c: Likewise.
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +00001055 * dwarf_tag.c: Likewise.
1056 * libdw_form.c: Likewise.
1057 * memory-access.c: Likewise.
1058
10592006-06-28 Roland McGrath <roland@redhat.com>
Roland McGrath2dade662006-02-28 22:13:20 +00001060
1061 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
1062
1063 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
1064 dwfl_module_getsym.
1065
Roland McGrath08333122006-02-27 04:54:26 +000010662006-05-27 Ulrich Drepper <drepper@redhat.com>
1067
1068 * libdw.h: Add extern "C".
1069
Roland McGrath50ffcbf2005-12-23 01:51:43 +000010702006-05-22 Ulrich Drepper <drepper@redhat.com>
1071
1072 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
1073 aranges information.
Roland McGrathdec3a242005-12-12 08:35:55 +00001074
10752006-05-21 Ulrich Drepper <drepper@redhat.com>
1076
1077 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
1078 dwarf_haschildren.
Roland McGrathf64a4422005-12-09 23:40:30 +00001079
10802006-02-28 Roland McGrath <roland@redhat.com>
1081
1082 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
1083 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
1084 values from DWARF 3.0.
Roland McGrath994b4892005-12-05 22:46:21 +00001085
10862006-02-22 Roland McGrath <roland@redhat.com>
1087
1088 * libdw.map: Bump to 0.120; export dwfl_version.
Roland McGrathe47ab762005-11-17 03:16:00 +00001089
10902005-12-22 Roland McGrath <roland@redhat.com>
1091
1092 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
1093
10942005-12-12 Roland McGrath <roland@redhat.com>
1095
1096 * dwarf_ranges.c: Copy CU base address-finding code from
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001097 dwarf_getlocation.
1098
10992005-12-09 Roland McGrath <roland@redhat.com>
1100
1101 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
1102 Delay CU base lookup until it's needed.
1103 If CU base lookup fails with no error, flag invalid DWARF.
1104
11052005-11-25 Roland McGrath <roland@redhat.com>
1106
1107 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
1108
Roland McGrath6724c902005-10-28 07:07:19 +000011092005-11-15 Roland McGrath <roland@redhat.com>
1110
1111 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
1112
11132005-11-13 Roland McGrath <roland@redhat.com>
1114
1115 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
1116
11172005-10-27 Roland McGrath <roland@redhat.com>
1118
1119 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
1120 don't match end_sequence markers.
1121
1122 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
1123 before normal records at the same address.
1124 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
1125 marker.
1126
11272005-10-26 Roland McGrath <roland@redhat.com>
1128
1129 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
1130 * dwarf_func_file.c: Renamed to ...
1131 * dwarf_decl_file.c: ... here.
1132 * dwarf_func_col.c: Renamed to ...
1133 * dwarf_decl_column.c: ... here.
1134 * dwarf_func_line.c: Renamed to ...
1135 * dwarf_decl_line.c: ... here.
1136 (dwarf_func_line): Renamed to ...
1137 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
1138 (__libdw_func_intval): Renamed __libdw_attr_intval.
1139 * dwarf_func_name.c: File removed.
1140 * dwarf_func_lowpc.c: File removed.
1141 * dwarf_func_highpc.c: File removed.
1142 * dwarf_func_entrypc.c: File removed.
1143 * dwarf_func_die.c: File removed.
1144 * Makefile.am (libdw_a_SOURCES): Updated.
1145 * libdw.h: Update decls.
1146 (Dwarf_Func): Type removed.
1147 * libdwP.h: Update decls.
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001148 (struct Dwarf_Func_s): Type removed.
1149 * libdw.map: Updated.
1150
1151 * libdwP.h (CUDIE): New macro.
1152 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
1153 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
1154 * dwarf_ranges.c (dwarf_ranges): Likewise.
1155
1156 * dwarf_getloclist.c: Renamed to ...
1157 * dwarf_getlocation.c: ... here.
1158 (getloclist): Renamed to getlocation.
1159 (dwarf_getloclist): Renamed to dwarf_getlocation.
1160 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
1161 * Makefile.am (libdw_a_SOURCES): Updated.
1162 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
1163 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
1164 (Dwarf_Loc): Renamed Dwarf_Op.
1165 * libdwP.h (struct loc_s): Update use.
1166 * libdw.map: Update map.
1167
1168 * dwarf_entry_breakpoints.c: Use the second line record within the
1169 function, regardless of its source location data.
1170
11712005-10-25 Roland McGrath <roland@redhat.com>
1172
1173 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
1174
1175 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
1176
11772005-10-14 Roland McGrath <roland@redhat.com>
1178
1179 * dwarf_diecu.c (dwarf_diecu): New file.
1180 * Makefile.am (libdw_a_SOURCES): Add it.
1181 * libdw.h: Declare dwarf_diecu.
1182 * libdw.map: Export it.
1183
1184 * libdw.map: Bump to 0.116; export dwarf_ranges.
1185
11862005-09-20 Roland McGrath <roland@redhat.com>
1187
1188 * dwarf_haspc.c: Use dwarf_ranges.
1189 * dwarf_entry_breakpoints.c: Likewise.
1190
1191 * dwarf_ranges.c: New file.
1192 * Makefile.am (libdw_a_SOURCES): Add it.
1193 * libdw.h: Declare dwarf_ranges.
1194 * libdwP.h: Add INTDECL.
1195
Ulrich Drepperfbe998a2005-08-29 16:27:10 +000011962005-09-14 Roland McGrath <roland@redhat.com>
1197
1198 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
1199 prologue_end marker scanning loop.
1200
12012005-09-11 Roland McGrath <roland@redhat.com>
Roland McGrath71e15a02005-08-27 10:33:26 +00001202
1203 * dwarf.h: Comment typo fix.
1204
12052005-09-07 Roland McGrath <roland@redhat.com>
1206
1207 * dwarf_entry_breakpoints.c: New file.
1208 * Makefile.am (libdw_a_SOURCES): Add it.
1209 * libdw.h: Declare dwarf_entry_breakpoints.
1210
1211 * dwarf_entrypc.c: New file.
1212 * Makefile.am (libdw_a_SOURCES): Add it.
1213 * libdw.h: Declare dwarf_entrypc.
1214 * libdwP.h: Add INTDECL.
1215
12162005-08-28 Ulrich Drepper <drepper@redhat.com>
1217
1218 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
1219 (%.os): Use COMPILE.os.
1220 (COMPILE.os): Filter out gconv options.
1221
12222005-08-27 Roland McGrath <roland@redhat.com>
1223
Roland McGrathd17fac72005-08-23 08:20:21 +00001224 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
1225 __libdw_visit_scopes.
1226
1227 * dwarf_getscopes_die.c: New file.
1228 * Makefile.am (libdw_a_SOURCES): Add it.
1229 * libdw.h: Declare dwarf_getscopes_die.
1230 * libdw.map: Bump to 0.115 and add it.
1231
1232 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
1233 containing a DIE and its parent pointer, instead of just Dwarf_Die.
1234 Take two functions for both preorder and postorder visitors.
1235 * libdwP.h: Update decl.
1236 (struct Dwarf_Die_Chain): New type.
1237 * dwarf_func_inline.c: Update uses.
1238
1239 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
1240 Add INTDEF.
Roland McGrathf5fda7d2005-08-18 22:01:57 +00001241 * libdwP.h: Add INTDECL.
1242 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
1243
12442005-08-23 Roland McGrath <roland@redhat.com>
1245
Roland McGrath1ecb6062005-08-15 09:53:04 +00001246 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
1247 DW_AT_specification the same as DW_AT_abstract_origin.
1248
12492005-08-20 Roland McGrath <roland@redhat.com>
1250
1251 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
1252 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
1253 and dwfl_report_offline.
1254
12552005-08-19 Roland McGrath <roland@redhat.com>
1256
1257 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001258 Add dwfl_module_relocate_address, dwfl_module_relocations,
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001259 dwfl_module_relocation_info.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001260
12612005-08-18 Roland McGrath <roland@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001262
Roland McGrath4959bf82005-08-09 10:31:08 +00001263 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
1264 outermost scope in the results.
Roland McGrathb6312e12005-08-09 10:36:01 +00001265
12662005-08-15 Roland McGrath <roland@redhat.com>
Roland McGrath4959bf82005-08-09 10:31:08 +00001267
1268 * dwarf_func_inline.c: New file.
1269 * Makefile.am (libdw_a_SOURCES): Add it.
1270 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
Roland McGratha5a89682005-08-02 01:24:01 +00001271 * libdw.map: Add them.
1272
1273 * dwarf_func_die.c: New file.
1274 * Makefile.am (libdw_a_SOURCES): Add it.
1275 * libdw.h: Declare dwarf_func_die.
Ulrich Drepper18618fd2005-07-28 21:29:22 +00001276 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
1277
12782005-08-10 Ulrich Drepper <drepper@redhat.com>
1279
1280 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
Roland McGrath366784a2005-07-28 06:20:53 +00001281 of DW_LNS_set_epilog_begin.
1282
Roland McGrath18385902005-07-28 07:12:38 +000012832005-08-09 Roland McGrath <roland@redhat.com>
1284
1285 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
1286
1287 * dwarf_end.c: Add INTDEF.
1288 * dwarf_error.c (dwarf_errmsg): Likewise.
Roland McGrath366784a2005-07-28 06:20:53 +00001289 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
1290
12912005-08-01 Roland McGrath <roland@redhat.com>
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001292
1293 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
1294 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1295
12962005-07-28 Ulrich Drepper <drepper@redhat.com>
1297
1298 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
1299 (libdw_a_LIBADD): Add all files from libdwfl.a.
1300
13012005-07-27 Roland McGrath <roland@redhat.com>
1302
1303 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
1304 along with ../libebl/libebl.a and ../lib/libeu.a;
1305 depend on ../libelf/libelf.so.
1306 (libdw_so_LDADD): New variable.
1307 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
1308
1309 * libdw.map: Define an empty base version and move all symbols to
1310 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
1311
13122005-07-23 Ulrich Drepper <drepper@redhat.com>
1313
1314 * dwarf_error.c: Add internal alias for dwarf_errno.
1315 * libdwP.h: Declare __dwarf_errno_internal.
1316 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
1317
1318 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
1319 global_error.
1320
13212005-06-01 Roland McGrath <roland@redhat.com>
1322
1323 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
1324 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
1325
13262005-06-08 Roland McGrath <roland@redhat.com>
1327
1328 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
1329 (get_sleb128_step, get_sleb128): Likewise.
1330 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
1331 * dwarf_getloclist.c (getloclist): Likewise.
1332 * dwarf_formblock.c (dwarf_formblock): Likewise.
1333 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1334 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
1335 * dwarf_formref.c (dwarf_formref): Likewise.
1336 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
1337 * dwarf_formudata.c (dwarf_formudata): Likewise.
1338 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
1339 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
1340 * dwarf_tag.c (dwarf_tag): Likewise.
1341 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1342 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
1343 * libdw_form.c (__libdw_form_val_len): Likewise.
1344 * libdwP.h: Update decl.
1345
13462005-06-04 Roland McGrath <roland@redhat.com>
1347
1348 * memory-access.h (get_uleb128_rest_return): New macro.
1349 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
1350 (get_sleb128_rest_return): New macro.
1351 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
1352 * memory-access.c: New file.
1353 * Makefile.am (libdw_a_SOURCES): Add it.
1354 (DEFS): Add -DIS_LIBDW.
1355
13562005-05-31 Roland McGrath <roland@redhat.com>
1357
1358 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
1359 formref offset.
1360
13612005-05-30 Roland McGrath <roland@redhat.com>
1362
1363 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
1364 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
1365
1366 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
1367 BEGIN value. Instead, match base address entries separately for
1368 32/64 size cases.
1369
13702005-05-28 Roland McGrath <roland@redhat.com>
1371
1372 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
1373 past location expression contents.
1374
13752005-05-23 Roland McGrath <roland@redhat.com>
1376
1377 * dwarf_getsrclines.c: Comment typo fix.
1378
1379 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
1380 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
1381
13822005-05-22 Ulrich Drepper <drepper@redhat.com>
1383
1384 * libdwP.h: Only use INTDECL for alias prototypes.
1385
13862005-05-19 Roland McGrath <roland@redhat.com>
1387
1388 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
1389
1390 * dwarf_getscopevar.c: New file.
1391 * Makefile.am (libdw_a_SOURCES): Add it.
1392 * libdw.h: Declare dwarf_getscopevar.
1393
1394 * dwarf_getsrcfiles.c: Add INTDEF.
1395 * dwarf_haschildren.c: Likewise.
1396 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
1397
1398 * dwarf_getscopes.c: New file.
1399 * Makefile.am (libdw_a_SOURCES): Add it.
1400 * libdw.h: Declare dwarf_getscopes.
1401 * libdw.map: Add it.
1402
14032005-05-18 Roland McGrath <roland@redhat.com>
1404
1405 * libdwP.h (IDX_debug_ranges): New enum constant.
1406 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
1407 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
1408 * dwarf_error.c (errmsgs): Add it.
1409 * dwarf_haspc.c: New file.
1410 * libdw.h: Declare dwarf_haspc.
1411 * libdw.map: Add it.
1412 * libdwP.h: Add INTDECL.
1413
1414 * dwarf_attr_integrate.c: New file.
1415 * dwarf_hasattr_integrate.c: New file.
1416 * Makefile.am (libdw_a_SOURCES): Add them.
1417 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
1418 * libdw.map: Add them.
1419
1420 * dwarf_hasattr.c: Add INTDEF.
1421 * libdwP.h: Add INTDECL for it.
1422
1423 * dwarf_formref_die.c: New file.
1424 * Makefile.am (libdw_a_SOURCES): Add it.
1425 * libdw.h (dwarf_formref_die): Declare it.
1426 * libdwP.h (dwarf_formref_die): Add INTDECL.
1427 * libdw.map: Add it.
1428
1429 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
1430 of ...
1431 (dwarf_getloclist): ... here. Call them.
1432 (dwarf_addrloclists): New function.
1433 * libdw.h: Declare it.
1434 * libdw.map: Add it.
1435
1436 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
1437 DW_MACINFO_end_file. Recognize type 0 as terminator.
1438
14392005-05-05 Roland McGrath <roland@redhat.com>
1440
1441 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
1442
1443 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
1444 the line program does not produce all entries in ascending order.
1445
14462005-04-25 Ulrich Drepper <drepper@redhat.com>
1447
1448 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
1449 occurences (e.g., inlines) better.
1450
14512005-04-24 Ulrich Drepper <drepper@redhat.com>
1452
1453 * libdw.h (DWARF_END_ABBREV): Define.
1454 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
1455 end is reached.
1456 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
1457 of records reached.
1458 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
1459 as error of __libdw_getabbrev.
1460
14612005-04-04 Ulrich Drepper <drepper@redhat.com>
1462
1463 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
1464
1465 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
1466 results back to caller.
1467
14682005-04-04 Roland McGrath <roland@redhat.com>
1469
1470 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
1471
1472 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
1473 defn.
1474
14752005-04-04 Ulrich Drepper <drepper@redhat.com>
1476
1477 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
1478
1479 * dwarf_getsrc_file.c: New file.
1480 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
1481 * libdw.h: Declare dwarf_getsrc_file.
1482 * libdw.map: Add dwarf_getsrc_file.
1483
14842005-04-02 Ulrich Drepper <drepper@redhat.com>
1485
1486 * dwarf_func_entrypc.c: New file.
1487 * dwarf_func_col.c: New file.
1488 * dwarf_func_line.c: New file.
1489 * dwarf_func_file.c: New file.
1490 * libdw.h: Add prototypes for new functions.
1491 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
1492 dwarf_func_file.
1493 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
1494 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
1495 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
1496 Declare __libdw_func_intval and __dwarf_formsdata_internal.
1497 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
1498 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
1499
1500 * dwarf.h: Add some DWARF3 definitions.
1501
15022005-04-01 Ulrich Drepper <drepper@redhat.com>
1503
1504 * dwarf_getfuncs.c: New file.
1505 * dwarf_func_highpc.c: New file.
1506 * dwarf_func_lowpc.c: New file.
1507 * dwarf_func_name.c: New file.
1508 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
1509 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
1510 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
1511 and dwarf_func_name.
1512 * libdw.h: Add prototypes for new functions.
1513 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
1514 * dwarf_siblingof.c: Likewise.
1515 * dwarf_dieoffset.c: Likewise.
1516 * dwarf_highpc.c: Likewise.
1517 * dwarf_lowpc.c: Likewise.
1518 * libdwP.h: Add prototypes for internal functions.
1519 Define Dwarf_Func_s structure.
1520
15212005-03-29 Ulrich Drepper <drepper@redhat.com>
1522
1523 * libdw.h: Add padding in Dwarf_die.
1524
1525 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
1526 * dwarf_attr.c: Likewise.
1527 * dwarf_begin.c: Likewise.
1528 * dwarf_begin_elf.c: Likewise.
1529 * dwarf_bitoffset.c: Likewise.
1530 * dwarf_bitsize.c: Likewise.
1531 * dwarf_bytesize.c: Likewise.
1532 * dwarf_diename.c: Likewise.
1533 * dwarf_formaddr.c: Likewise.
1534 * dwarf_formblock.c: Likewise.
1535 * dwarf_formref.c: Likewise.
1536 * dwarf_formstring.c: Likewise.
1537 * dwarf_formudata.c: Likewise.
1538 * dwarf_getarange_addr.c: Likewise.
1539 * dwarf_getarangeinfo.c: Likewise.
1540 * dwarf_getaranges.c: Likewise.
1541 * dwarf_getloclist.c: Likewise.
1542 * dwarf_getmacros.c: Likewise.
1543 * dwarf_getsrc_die.c: Likewise.
1544 * dwarf_getsrcfiles.c: Likewise.
1545 * dwarf_getsrclines.c: Likewise.
1546 * dwarf_highpc.c: Likewise.
1547 * dwarf_lowpc.c: Likewise.
1548 * dwarf_nextcu.c: Likewise.
1549 * dwarf_offdie.c: Likewise.
1550 * dwarf_siblingof.c: Likewise.
1551 * dwarf_srclang.c: Likewise.
1552 * dwarf_tag.c: Likewise.
1553 * libdw_findcu.c: Likewise.
1554 * libdwP.h: Add prototypes for internal functions.
1555
1556 * dwarf_addrdie.c: New file.
1557 * dwarf_macro_opcode.c: New file.
1558 * dwarf_macro_param1.c: New file.
1559 * dwarf_macro_param2.c: New file.
1560 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
1561 * libdwP.h: Remove Dwarf_Macro definition.
1562 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
1563 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
1564 * libdw.map: Add entries for new functions.
1565
15662005-03-21 Ulrich Drepper <drepper@redhat.com>
1567
1568 * libdw.h: Handle broken gcc < 4.
1569
15702005-02-15 Ulrich Drepper <drepper@redhat.com>
1571
1572 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
1573
1574 * dwarf_begin_elf.c: Fix warnings.
1575 * dwarf_dieoffset.c: Likewise.
1576 * dwarf_end.c: Likewise.
1577 * dwarf_error.c: Likewise.
1578 * dwarf_getpubnames.c: Likewise.
1579
1580 * libdwP.h: Add new error values.
1581 * dwarf_error.c: Support new error values.
1582 * dwarf_getpubnames.c: Check parameter value.
1583
15842005-02-05 Ulrich Drepper <drepper@redhat.com>
1585
1586 * Makefile.am: Check for text relocations in constructed DSO.
1587
1588 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
1589
15902005-02-04 Ulrich Drepper <drepper@redhat.com>
1591
1592 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
1593 checks to not read over buffer boundaries for ill-formed DWARF data.
1594
15952004-09-25 Ulrich Drepper <drepper@redhat.com>
1596
1597 * dwarf_child.c: Make compile with gcc 4.0.
1598 * dwarf_error.c: Likewise.
1599 * dwarf_formblock.c: Likewise.
1600 * dwarf_getabbrev.c: Likewise.
1601 * dwarf_getattrs.c: Likewise.
1602 * dwarf_getsrclines.c: Likewise.
1603 * dwarf_tag.c: Likewise.
1604 * libdw_form.c: Likewise.
1605
16062004-01-20 Ulrich Drepper <drepper@redhat.com>
1607
1608 * Makefile.am: Support building with mudflap.
1609
1610 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
1611 * dwarf_getsrclines.c: Likewise.
1612 * dwarf_memory-access.h: Likewise.
1613
16142004-01-19 Ulrich Drepper <drepper@redhat.com>
1615
1616 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1617
1618 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1619 Third parameter of dwarf_getsrcfiles can be NULL.
1620
1621 * libdw.map: Add dwarf_getmacros.
1622 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1623 * dwarf_getmacros.c: New file.
1624
16252004-01-18 Ulrich Drepper <drepper@redhat.com>
1626
1627 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1628
1629 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1630
1631 * dwarf_getsrclines.c:
1632 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1633
1634 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1635
1636 * libdwP.h (_): Use elfutils domain.
1637
1638 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1639
1640 * dwarf_getsrclines.c: Fix typo in comment.
1641
16422004-01-17 Ulrich Drepper <drepper@redhat.com>
1643
1644 * Makefile.am: Support building with mudflap.
1645
16462004-01-16 Ulrich Drepper <drepper@redhat.com>
1647
1648 * memory-access.h: Add lots of const in case a pointer passed is const.
1649
1650 * dwarf_formflag.c: New file.
1651 * dwarf_getattrs.c: New file.
1652 * dwarf_error.c: Add new error value.
1653 * libdw.h: Add prototypes for new functions. Adjust prototype for
1654 dwarf_getpubnames.
1655 * libdw.map: Add new functions.
1656 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1657 to ptrdiff_t.
1658 * libdwP.h: Add new error value.
1659 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1660 dwarf_formflag.c.
1661
1662 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1663
16642004-01-12 Ulrich Drepper <drepper@redhat.com>
1665
1666 * dwarf_getarange_addr.c: New file
1667 * dwarf_getarangeinfo.c: New file.
1668 * dwarf_getaranges.c: New file.
1669 * dwarf_onerange.c: New file.
1670 * libdw.h: Declare new functions. Define Dwarf_Arange and
1671 Dwarf_Aranges.
1672 * libdw.map: Add new functions.
1673 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1674 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1675 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1676 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1677 * dwarf_error.c: Add new message.
1678
16792004-01-11 Ulrich Drepper <drepper@redhat.com>
1680
1681 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1682 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1683 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1684 * dwarf_error.c: Add another message.
1685 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1686 introduction.
1687 * dwarf_filesrc.c: Likewise.
1688 * dwarf_getsrcfiles.c: Likewise.
1689 * dwarf_getsrclines.c: Likewise.
1690 * dwarf_lineaddr.c: New file.
1691 * dwarf_linebeginstatement.c: New file.
1692 * dwarf_lineblock.c: New file.
1693 * dwarf_linecol.c: New file.
1694 * dwarf_lineendsequence.c: New file.
1695 * dwarf_lineepiloguebegin.c: New file.
1696 * dwarf_lineno.c: New file.
1697 * dwarf_lineprologueend.c: New file.
1698 * dwarf_onesrcline.c: New file.
1699 * dwarf_lineno.c: Change interface to store result in object pointed
1700 to by second parameter.
1701 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1702 prototype. Define Dwarf_Files and Dwarf_Lines.
1703 * libdw.map: Add new functions.
1704 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1705 * libdw_findcu.c: Don't initialize nlines field.
1706
1707 * dwarf_siblingof: Little optimization.
1708
1709 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1710 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1711 * libdwP.h (struct Dwarf): Add free_elf field.
1712
1713 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1714 dwarf_offabbrev.c.
1715 * dwarf_getstring.c: New file.
1716 * dwarf_offabbrev.c: New file.
1717 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1718 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1719 parameters. Don't allocate memory if not necessary and don't lookup
1720 previous results if no CU given.
1721 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1722 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1723 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1724 * libdwP.h: Change prototype for __libdw_getabbrev.
1725
1726 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1727 returning if this is wanted.
1728
17292004-01-09 Ulrich Drepper <drepper@redhat.com>
1730
1731 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1732 with offset_size value.
1733 * libdw.h: Adjust dwarf_nextcu prototype.
1734 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1735 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1736 member of new CU struct.
1737 * dwarf_formstring.c: Depend on offset_size not address_size for
1738 DW_FORM_strp handling.
1739 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1740
1741 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1742 failing lookup.
1743 (dwarf_tag): Correctly recognize failed lookup.
1744
1745 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1746 function noop_free.
1747 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1748 * dwarf_formblock.c: New file.
1749 * dwarf_getloclist.c: Rewrite to handle a single block.
1750 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1751 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1752 dwarf_getloclistent declaration.
1753 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1754 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1755 Add locs member to struct Dwarf_CU.
1756 * libdw_fundcu.c: Initialize locs member of new CU.
1757 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1758 Remove dwarf_getloclistent.c.
1759
17602004-01-07 Ulrich Drepper <drepper@redhat.com>
1761
1762 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1763 * libdwP.h: Likewise.
1764
1765 * dwarf_getloclist.c: New file.
1766 * dwarf_getloclistent.c: New file.
1767 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1768 Declare dwarf_getloclistent and dwarf_getloclist.
1769 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1770 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1771 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1772 dwarf_getloclist.c.
1773
1774 * dwarf_error.c: More error messages.
1775
17762004-01-06 Ulrich Drepper <drepper@redhat.com>
1777
1778 * dwarf_getsrclines.c: Remove debugging support.
1779
1780 * dwarf_getsrcfiles.c: New file.
1781 * dwarf_filesrc.c: New file.
1782 * libdw.h: Declare these functions. Define Dwarf_File.
1783 * libdwP.c: Adjust Dwarf_File_s definition.
1784 * libdw.map: Add these functions.
1785 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1786 dwarf_filesrc.c.
1787 * dwarf_getsrclines.c: Initialize cu->files.
1788
17892004-01-05 Ulrich Drepper <drepper@redhat.com>
1790
1791 * libdw.h: Add more nonnull function attributes.
1792
1793 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1794 * dwarf_end.c (cu_free): New function.
1795 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1796 * dwarf_error.c (errmsgs): Add new messages.
1797 * dwarf_getsrc_die.c: New file.
1798 * dwarf_getsrclines.c: New file.
1799 * dwarf_lineno.c: New file.
1800 * dwarf_linesrc.c: New file.
1801 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1802 instead of the *_inc-less variants.
Ulrich Drepper6fb34512010-05-28 20:28:04 -07001803 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001804 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1805 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1806 and dwarf_linesrc.
1807 * libdwP.h: Add more error codes.
1808 (struct Dwarf): Remove mem_tail.next member.
1809 (Dwarf_File): Define type.
1810 (struct Dwarf_Line_s): Define type.
1811 (struct Dwarf_CU): Add lines and nlines members.
1812 (libdw_alloc): Define local variable _tail and use it.
1813 Add some function attributes.
1814 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1815 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1816 * memory-access.h: Add unlikely for the endian conversion paths.
1817 * Makefile.am (AM_CFLAGS): Add -std parameter.
1818 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1819 dwarf_lineno, and dwarf_linesrc.
1820
18212003-08-11 Ulrich Drepper <drepper@redhat.com>
1822
1823 * Moved to CVS archive.