blob: cfc5c894eee48d75521bb86b7944354d6e6143e9 [file] [log] [blame]
Mark Wielaard387998b2011-10-31 15:01:50 +010012011-11-31 Mark Wielaard <mjw@redhat.com>
2
3 * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
4
Mark Wielaard0b72b652011-07-14 12:59:26 +020052011-07-14 Mark Wielaard <mjw@redhat.com>
6
7 * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
8
Jakub Jelinek03124242011-05-17 17:00:14 +020092011-05-16 Jakub Jelinek <jakub@redhat.com>
10
11 * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
12 DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
13 New.
14
Mark Wielaardf4c39c72011-04-26 17:15:28 +0200152011-04-26 Mark Wielaard <mjw@redhat.com>
16
17 * dwarf_child (dwarf_child): Sanity check end of section against
18 cu_data () of die->cu.
19
Mark Wielaarde3368c52011-03-22 23:03:31 +0100202011-03-22 Mark Wielaard <mjw@redhat.com>
21
22 * dwarf.h: Add DW_TAG_GNU_call_site,
23 DW_TAG_GNU_call_site_parameter,
24 DW_AT_GNU_call_site_value,
25 DW_AT_GNU_call_site_data_value,
26 DW_AT_GNU_call_site_target,
27 DW_AT_GNU_call_site_target_clobbered,
28 DW_AT_GNU_tail_call,
29 DW_AT_GNU_all_tail_call_sites,
30 DW_AT_GNU_all_call_sites,
31 DW_AT_GNU_all_source_call_sites,
32 and DW_OP_GNU_entry_value.
33
Petr Machata02c56192011-03-10 01:50:32 +0100342011-03-10 Petr Machata <pmachata@redhat.com>
35
36 * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
37 abbreviation with code 0.
38
Petr Machata35870872011-03-09 10:01:29 -0800392011-03-09 Petr Machata <pmachata@redhat.com>
40
41 * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
42
Roland McGrath725aad52011-02-23 19:52:46 -0800432011-02-23 Roland McGrath <roland@redhat.com>
44
45 * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
46 Declare __libdw_free_zdata.
47 * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
48 (dwarf_end): Call it.
49
50 * dwarf_begin_elf.c (valid_p): Likewise.
51 (check_section, scngrp_read): Likewise.
52 (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
53
Roland McGrath8c0a3822010-10-13 11:21:17 -0700542010-10-13 Roland McGrath <roland@redhat.com>
55
56 * dwarf.h: Add DW_LANG_Go.
57
Roland McGrath5f95e2b2010-10-05 00:56:30 -0700582010-10-05 Roland McGrath <roland@redhat.com>
59
60 * dwarf_getaranges.c: Use malloc rather than alloca,
61 since the total number of elements can be quite huge.
62
Roland McGrath932585d2010-05-08 04:01:14 -0700632010-07-26 Roland McGrath <roland@redhat.com>
64
65 * dwarf_getlocation_implicit_pointer.c: New file.
66 * Makefile.am (libdw_a_SOURCES): Add it.
67 * libdw.map (ELFUTILS_0.149): New set.
68 Add dwarf_getlocation_implicit_pointer.
69 * libdw.h: Declare it.
70
71 * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
72 (dwarf_offdie, dwarf_offdie_types): Update callers.
73 * libdwP.h: Declare it.
74
75 * dwarf.h: Add DW_OP_GNU_implicit_pointer.
76 * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
77
Roland McGrathde44f132010-08-24 15:38:42 -0700782010-08-24 Roland McGrath <roland@redhat.com>
79
80 * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
81
Roland McGrath00aca7f2010-07-27 04:40:23 -0700822010-07-27 Roland McGrath <roland@redhat.com>
83
84 * dwarf_formref_die.c: Fix sig8 hash insertion.
85
Roland McGrath9616b852010-06-23 03:17:28 -0700862010-06-23 Roland McGrath <roland@redhat.com>
87
88 * cfi.c (dwarf_cfi_validate_fde): Function removed.
89 * libdw.h: Remove it.
90 * libdw.map: Likewise.
91
Roland McGrath499b8ff2010-06-22 13:13:53 -0700922010-06-22 Roland McGrath <roland@redhat.com>
93
Roland McGrathc16966a2010-06-22 17:08:43 -070094 * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
95
Roland McGrath499b8ff2010-06-22 13:13:53 -070096 * dwarf_getsrclines.c: Fix signed comparison warning in extended
97 opcode parsing.
98
Roland McGrath0c5638c2010-06-21 23:00:35 -0700992010-06-21 Roland McGrath <roland@redhat.com>
100
Roland McGrath474cb482010-06-22 00:10:54 -0700101 * dwarf.h: Add DW_TAG_GNU_* constants.
102
Roland McGrath0c5638c2010-06-21 23:00:35 -0700103 * memory-access.h (get_sleb128_rest_return): Fix sign extension for
104 10-byte case.
105
Roland McGrath5cc030d2010-06-20 17:25:35 -07001062010-06-20 Roland McGrath <roland@redhat.com>
107
Roland McGrath2b1f0952010-06-20 17:55:50 -0700108 * libdw_findcu.c (__libdw_findcu): Take new flag argument,
109 to search TUs instead of CUs.
110 * libdwP.h: Update decl.
111 (struct Dwarf): New member tu_tree.
112 * dwarf_end.c (dwarf_end): Clean up tu_tree.
113 * dwarf_offdie.c (do_offdie): New function, broken out of ...
114 (dwarf_offdie): ... here.
115 (dwarf_offdie_types): New function.
116 * libdw.h: Declare it.
117 * libdw.map (ELFUTILS_0.148): Add it.
118
Roland McGrath5cc030d2010-06-20 17:25:35 -0700119 * libdwP.h (CUDIE): Use cu_data.
120 * dwarf_formblock.c: Likewise.
121 * dwarf_formref_die.c: Likewise.
122 * dwarf_diecu.c: Use CUDIE macro.
123 * dwarf_formaddr.c: Use cu_sec_idx.
124
Roland McGrathc70ebc02010-06-16 02:21:26 -07001252010-06-16 Roland McGrath <roland@redhat.com>
126
Roland McGrath3e0f7d12010-06-15 23:10:35 -0700127 * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
128 we don't repeat a CU lookup we've already done. Handle
129 DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
130
131 * libdw_findcu.c (__libdw_intern_next_unit): New function,
132 broken out of ...
133 (__libdw_findcu): ... here. Call it.
134 * libdwP.h: Declare it.
135 (struct Dwarf): New member next_tu_offset.
136
137 * dwarf_sig8_hash.c: New file.
138 * dwarf_sig8_hash.h: New file.
139 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
140 * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
141 defining NO_UNDEF.
142 * libdwP.h (struct Dwarf): New member sig8_hash.
143 * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
144 * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
145
146 * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
147 (dwarf_nextcu): ... here. Call it.
148 * libdw.h: Declare it.
149 * libdwP.h: Add INTDECL.
150 * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
151 * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
152
153 * libdwP.h (cu_sec_idx, cu_data): New functions.
154 Use .debug_types when CU is a TU.
155 * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
156 * dwarf_siblingof.c: Likewise.
157 * dwarf_formstring.c: Likewise.
158 * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
159 * dwarf_getlocation.c (dwarf_getlocation): Likewise.
160 (dwarf_getlocation_addr): Likewise.
161
162 * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
163 (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
164 .debug_types header size instead of .debug_info header size.
165 (CUDIE): Use it.
166 * dwarf_diecu.c: Update caller.
167 * dwarf_getaranges.c: Likewise.
168 * dwarf_nextcu.c: Likewise.
169 * libdw_findcu.c (__libdw_findcu): Initialize new members.
170
Roland McGrath3e4b5bb2010-06-16 03:40:56 -0700171 * fde.c (fde_by_offset): Renamed to ...
172 (__libdw_fde_by_offset): ... this, made global and internal_function.
173 Don't take ADDRESS argument.
174 (__libdw_find_fde): Update caller. Do address sanity check here.
175 * cfi.h: Declare __libdw_fde_by_offset.
176 * cfi.c (dwarf_cfi_validate_fde): New function.
177 * libdw.h: Declare it.
178 * libdw.map (ELFUTILS_0.148): Add it.
179
Roland McGrath5f4b5082010-06-16 03:11:57 -0700180 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
181 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
182
Roland McGrath7934ded2010-06-16 03:04:09 -0700183 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
184 Don't assume DW_EH_PE_aligned refers to native address size.
185
Roland McGrathc70ebc02010-06-16 02:21:26 -0700186 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
187 address.
188
Roland McGrathc70cf4e2010-06-18 17:01:05 -07001892010-06-17 Roland McGrath <roland@redhat.com>
190
191 * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
192 op_index.
193 * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
194 into an inner inline function. Set new fields. Check all fields for
195 overflow when setting.
196 * dwarf_lineisa.c: New file.
197 * dwarf_linediscriminator.c: New file.
198 * dwarf_lineop_index.c: New file.
199 * Makefile.am (libdw_a_SOURCES): Add them.
200 * libdw.map (ELFUTILS_0.148): Add them.
201 * libdw.h: Declare them.
202
Roland McGrath3f633072010-06-15 22:17:04 -07002032010-06-16 Roland McGrath <roland@redhat.com>
204
Roland McGrath4a87dfa2010-06-16 16:35:10 -0700205 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
206
Roland McGrathb75f4442010-06-15 22:24:19 -0700207 * fde.c (fde_by_offset): Renamed to ...
208 (__libdw_fde_by_offset): ... this, made global and internal_function.
209 Don't take ADDRESS argument.
210 (__libdw_find_fde): Update caller. Do address sanity check here.
211 * cfi.h: Declare __libdw_fde_by_offset.
Roland McGrath9bcd2652010-06-15 22:17:20 -0700212 * cfi.c (dwarf_cfi_validate_fde): New function.
213 * libdw.h: Declare it.
Roland McGrath3f633072010-06-15 22:17:04 -0700214 * libdw.map (ELFUTILS_0.148): Add it.
215
Roland McGrath0b3363e2010-06-01 15:42:14 -0700216 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
217 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
Roland McGrath827d4d12010-06-01 20:17:36 -0700218
219 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
220 Don't assume DW_EH_PE_aligned refers to native address size.
Roland McGrath1a030b32010-06-01 20:11:40 -0700221
222 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
Roland McGrath675229b2010-06-01 20:10:19 -0700223 address.
224
2252010-06-15 Roland McGrath <roland@redhat.com>
Roland McGrath52123962010-06-01 19:05:08 -0700226
227 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
Roland McGrath7fac1ce2010-06-01 15:56:58 -0700228 DW_FORM_ref_addr.
229 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
Roland McGrath0b3363e2010-06-01 15:42:14 -0700230 here, since we don't support it yet.
231
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200232 * dwarf_next_cfi.c: Handle version 4 format.
233
Mark Wielaard08e71db2010-05-31 15:39:15 +0200234 * dwarf_getsrclines.c: Handle version 4 format.
235
2362010-06-01 Roland McGrath <roland@redhat.com>
237
238 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200239 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
240
Eduardo Santiagod2240bc2010-05-28 14:26:52 -0700241 * libdwP.h (CIE_VERSION): Remove unused macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700242
Ulrich Drepper49fe7142010-05-28 20:32:37 -0700243 * dwarf_getsrclines.c: Fix version field test.
244 * libdwP.h (DWARF_VERSION): Remove useless macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700245
Roland McGrathcfa5da22010-05-27 13:49:25 -0700246 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
247
248 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
249
250 * libdw_findcu.c (__libdw_findcu): Accept version 4.
Roland McGrath688f7fc2010-05-08 03:22:59 -0700251
2522010-05-31 Mark Wielaard <mjw@redhat.com>
253
254 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
255 * libdw.h (dwarf_cfi_cie_p): ... here.
256
2572010-05-31 Mark Wielaard <mjw@redhat.com>
258
259 * dwarf.h: Fix DW_LANG_Python constant.
Roland McGrath0ab97832010-04-26 11:50:27 -0700260
2612010-05-28 Eduardo Santiago <santiago@redhat.com>
Roland McGrath3b10ac02010-04-26 18:45:36 -0700262
263 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
264 thing.
265
2662010-05-27 Roland McGrath <roland@redhat.com>
Roland McGrath0ab97832010-04-26 11:50:27 -0700267
268 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
269 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
270
2712010-05-08 Roland McGrath <roland@redhat.com>
272
273 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
Roland McGrath3f9d9552010-04-22 20:51:07 -0700274 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
275 (getlocation): Update caller.
276 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
277 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
278 * libdwP.h: Update decl.
279
2802010-04-26 Roland McGrath <roland@redhat.com>
Roland McGrath8068e062010-03-10 23:49:13 -0800281
282 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
283 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
284 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
Roland McGrath22359e22010-02-15 15:57:03 -0800285 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
286
287 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
288 Prepend DW_OP_call_frame_cfa if true.
Mark Wielaardee29a312010-02-02 20:44:53 +0100289 (getlocation): Update caller.
290 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
291 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
292 * libdwP.h: Update decl.
Roland McGrathf95760a2010-01-07 20:24:34 -0800293
2942010-04-22 Roland McGrath <roland@redhat.com>
295
296 * cfi.c (execute_cfi): Never return without cleanup.
Roland McGrath019d9fb2010-01-05 13:36:07 -0800297 Free FS on failure.
298 (cie_cache_initial_state): Adjust caller to expect that free.
Roland McGrathebc5c882010-01-05 22:53:31 -0800299 (__libdw_frame_at_address): Likewise.
300
3012010-03-10 Roland McGrath <roland@redhat.com>
302
303 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
304
3052010-02-15 Roland McGrath <roland@redhat.com>
306
307 * Makefile.am: Use config/eu.am for common stuff.
Roland McGrath0cb19832010-01-05 13:38:15 -0800308
3092010-02-02 Mark Wielaard <mjw@redhat.com>
Roland McGrath019d9fb2010-01-05 13:36:07 -0800310
311 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
Roland McGrath888381b2009-11-21 17:03:34 -0800312
3132010-01-07 Roland McGrath <roland@redhat.com>
314
315 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
316
Roland McGrath9ca7bc42009-10-15 12:26:49 -07003172010-01-05 Roland McGrath <roland@redhat.com>
318
319 * dwarf_aggregate_size.c: New file.
320 * Makefile.am (libdw_a_SOURCES): Add it.
321 * libdw.h: Declare it.
Roland McGrath7e0aecd2009-09-17 15:02:34 -0700322 * libdwP.h: Add INTDECL.
323 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
324
325 * dwarf_srclang.c: Add INTDEF.
326 * libdwP.h: Add INTDECL.
327
Roland McGrathf0371042009-09-10 12:39:09 -0700328 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
329
330 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
331
3322009-11-21 Roland McGrath <roland@redhat.com>
333
334 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
335 non-constant forms.
Mark Wielaard418ae4c2009-09-09 20:59:26 +0200336
3372009-10-15 Roland McGrath <roland@redhat.com>
338
339 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
Josh Stonecc93cc42009-08-21 18:04:44 -0700340 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
341
3422009-09-17 Roland McGrath <roland@redhat.com>
343
Roland McGrath08277ba2009-08-10 15:08:08 -0700344 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
345 argument a pointer to const.
346 * libdw.h: Update decl.
347
Roland McGrathebfb6482009-08-09 15:40:52 -07003482009-09-10 Roland McGrath <roland@redhat.com>
349
350 * dwarf_getlocation.c (store_implicit_value): New function.
351 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
352 (dwarf_getlocation_implicit_value): New function.
353 * libdw.h: Declare it.
354 * libdw.map (ELFUTILS_0.143): Add it.
355
3562009-09-09 Mark Wielaard <mjw@redhat.com>
357
358 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
359
3602009-08-21 Josh Stone <jistone@redhat.com>
361
Roland McGrathde69d522009-08-07 18:26:19 -0700362 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
363
3642009-08-10 Roland McGrath <roland@redhat.com>
365
366 * dwarf_getscopevar.c: Use dwarf_diename.
367
3682009-08-09 Roland McGrath <roland@redhat.com>
369
370 * libdw.map (ELFUTILS_0.143): New version set,
371 inherits from ELFUTILS_0.142.
Roland McGrathaf800142009-07-22 13:55:50 -0700372 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
373 alias in the ELFUTILS_0.122 version set and the default in the new set.
374 * dwarf_srclang.c: Likewise.
375 * dwarf_decl_file.c: Likewise.
376 * dwarf_decl_line.c: Likewise.
377 * dwarf_decl_column.c: Likewise.
378 * dwarf_bytesize.c: Likewise.
379 * dwarf_bitsize.c: Likewise.
380 * dwarf_bitoffset.c: Likewise.
381
3822009-08-07 Roland McGrath <roland@redhat.com>
383
384 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
385 * dwarf_srclang.c: Likewise.
386 * dwarf_decl_file.c: Likewise.
387 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
Roland McGrathe23e9e72009-07-21 18:14:52 -0700388 * dwarf_bytesize.c: Likewise.
389 * dwarf_bitsize.c: Likewise.
390 * dwarf_bitoffset.c: Likewise.
391
3922009-07-22 Roland McGrath <roland@redhat.com>
393
394 * dwarf_frame_cfa.c: Change calling convention.
395 * libdw.h: Update decl.
Roland McGrath96349ff2009-07-20 11:51:41 -0700396
397 * dwarf_frame_register.c: Change calling/return-value convention for
398 value-only results and undefined/same_value.
399 * libdw.h: Update decl.
400
Roland McGratha6abdfd2009-07-16 17:40:19 -0700401 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
402 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
Roland McGrathe160cc92009-07-16 17:48:27 -0700403 return that value instead.
404 (getlocation): Update caller.
405 * dwarf_frame_cfa.c: Likewise.
406 * libdwP.h: Update decl.
407
Roland McGratha6abdfd2009-07-16 17:40:19 -07004082009-07-21 Roland McGrath <roland@redhat.com>
409
410 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
411 Fix loop iteration after skipping a bogus or useless CU.
412
413 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
414 absence, not DWARF_E_NO_DEBUG_LINE.
Roland McGrath7dd94642009-07-15 11:14:23 -0700415
4162009-07-20 Roland McGrath <roland@redhat.com>
417
418 * dwarf_getlocation.c (__libdw_intern_expression):
419 Handle DW_OP_stack_value.
Roland McGrath80893432009-07-13 12:08:55 -0700420
4212009-07-16 Roland McGrath <roland@redhat.com>
422
423 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700424 reject others when CU's version > 3.
425
Roland McGrath3c84db32009-06-24 17:41:40 -0700426 * dwarf_formflag.c: Handle DW_FORM_flag_present.
427
428 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
429 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
430 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
431 and DW_AT_const_expr.
432 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
433 and DW_FORM_ref_sig8.
434
4352009-07-15 Roland McGrath <roland@redhat.com>
436
437 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
438 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
439
4402009-07-13 Roland McGrath <roland@redhat.com>
441
442 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
443
4442009-07-08 Roland McGrath <roland@redhat.com>
445
446 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
447 dwfl_module_eh_cfi.
448
449 * libdwP.h (struct Dwarf): Add member `cfi'.
450 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
451 * dwarf_getcfi.c: New file.
452 * dwarf_getcfi_elf.c: New file.
453 * dwarf_cfi_end.c: New file.
454 * dwarf_cfi_addrframe.c: New file.
455 * dwarf_frame_cfa.c: New file.
456 * dwarf_frame_register.c: New file.
457 * dwarf_frame_return_address_register.c: New file.
458 * Makefile.am (libdw_a_SOURCES): Add them.
459 * unwind.h: Declare those functions.
460 * libdw.map (ELFUTILS_0.142): Export them.
461
462 * dwarf_getlocation.c (__libdw_intern_expression): New function,
463 broken out of ...
464 (getlocation): ... here, call it.
465 * libdwP.h: Declare it.
466
467 * cie.c: New file.
468 * fde.c: New file.
469 * frame-cache.c: New file.
470 * cfi.c: New file.
471 * cfi.h: New file.
472 * encoded-value.h: New file.
473 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
474 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
475 * dwarf_error.c (errmsgs): Add element for it.
476
477 * dwarf_next_cfi.c: New file.
478 * Makefile.am (libdw_a_SOURCES): Add it.
Roland McGrath6e1f4652009-07-08 14:48:34 -0700479 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
480 Declare dwarf_next_cfi.
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700481 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
482 Add dwarf_next_cfi.
483
484 * memory-access.h [! ALLOW_UNALIGNED]
Roland McGrath05c4e042009-06-18 13:56:02 -0700485 (read_2ubyte_unaligned): Renamed to ...
486 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
487 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
488 (read_2sbyte_unaligned): Likewise.
489 (read_4ubyte_unaligned): Likewise.
490 (read_4sbyte_unaligned): Likewise.
491 (read_8ubyte_unaligned): Likewise.
492 (read_8sbyte_unaligned): Likewise.
493
Ulrich Drepper99d23722009-06-14 20:19:45 -0700494 * libdwP.h (IDX_eh_frame): Remove it.
495 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
496
4972009-07-08 Roland McGrath <roland@redhat.com>
498
499 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
500
501 * dwarf_getlocation.c (check_constant_offset): New function.
502 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
503 handle DW_AT_data_member_location of data[48] as constant offset.
504
5052009-06-18 Roland McGrath <roland@redhat.com>
506
507 * libdwP.h (__libdw_read_address_inc): Constify.
508 (__libdw_read_offset_inc): Likewise.
509 * dwarf_getaranges.c: Likewise.
510 * dwarf_getlocation.c: Likewise.
511 * dwarf_getsrclines.c: Likewise.
512 * dwarf_nextcu.c: Likewise.
513
5142009-05-05 Petr Machata <pmachata@redhat.com>
515
516 * libdwP.h (__libdw_formptr): Declare new function.
517 * dwarf_formudata.c: Implement it here.
518 * dwarf_getlocation.c (dwarf_getlocation_addr):
519 Call it instead of hand-rolled offset handling code.
520 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
521 * dwarf_ranges.c (dwarf_ranges): Likewise.
522
5232009-05-04 Petr Machata <pmachata@redhat.com>
524
525 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
526 * dwarf_ranges.c: Implement it here.
527 (dwarf_ranges): Call it.
Roland McGrathe2eabd82009-05-07 18:54:52 -0700528 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
529
5302009-04-23 Petr Machata <pmachata@redhat.com>
531
532 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
533 of read_*ubyte_unaligned.
Petr Machataf3df61f2009-05-07 21:02:33 +0200534 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
535 * dwarf_formstring.c (dwarf_formstring): Likewise.
536 * dwarf_formudate.c (dwarf_formudata): Likewise.
537 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
538 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
Roland McGrath2fb90512009-04-15 14:47:13 -0700539 * dwarf_getpubnames.c (get_offsets): Likewise.
540 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
541
5422009-04-23 Petr Machata <pmachata@redhat.com>
543
Roland McGrath6a4bdd92009-04-01 14:25:29 -0700544 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
545 __libdw_read_addr, __libdw_read_off): Add four new internal
546 functions.
547
Roland McGrathc5acb302009-01-28 18:28:52 -08005482009-05-07 Roland McGrath <roland@redhat.com>
549
Roland McGrath03288f02009-01-28 22:00:54 -0800550 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
551 return value and OFFSET argument, not CU-relative. Only fetch the
552 attribute data when called with OFFSET of 0.
Roland McGrathc5acb302009-01-28 18:28:52 -0800553
5542009-05-07 Petr Machata <pmachata@redhat.com>
Roland McGrathf46272a2009-01-26 18:36:16 -0800555
556 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
557 DW_AT_macro_info attribute of CU DIE.
558
Roland McGrathd31505f2009-01-25 19:37:33 -08005592009-04-15 Roland McGrath <roland@redhat.com>
560
561 * dwarf.h (DW_CIE_ID): Removed.
562 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
Roland McGrath3bf7a092009-01-23 16:34:07 -0800563
5642009-04-01 Roland McGrath <roland@redhat.com>
565
566 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
567
Roland McGrathafdd51e2009-01-22 02:26:24 -08005682009-01-28 Roland McGrath <roland@redhat.com>
569
570 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
571 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
Roland McGrath1ea4fdc2009-01-21 19:14:37 -0800572
573 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
574
5752009-01-26 Roland McGrath <roland@redhat.com>
576
577 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
Roland McGrath24b03302009-01-17 14:34:13 -0800578
5792009-01-25 Roland McGrath <roland@redhat.com>
Roland McGrath54456d82009-01-17 14:39:35 -0800580
581 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
582
Roland McGrath5513e642009-01-11 01:35:11 -08005832009-01-23 Roland McGrath <roland@redhat.com>
584
585 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
586 Put these rules under if MAINTAINER_MODE.
587
5882009-01-22 Roland McGrath <roland@redhat.com>
589
Roland McGrath24b03302009-01-17 14:34:13 -0800590 * dwarf.h: Add DW_OP_GNU_encoded_addr.
591
Ulrich Drepper7e678fa2009-01-10 18:02:05 -08005922009-01-21 Roland McGrath <roland@redhat.com>
593
594 * Makefile.am (CLEANFILES): Renamed to ...
595 (MOSTLYCLEANFILES): ... here.
Roland McGrathe06762c2009-01-08 13:39:08 -0800596 (CLEANFILES): New variable, add known-dwarf.h.
597
5982009-01-17 Roland McGrath <roland@redhat.com>
599
Roland McGrath7e827f22009-01-06 02:09:50 -0800600 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
Roland McGrath1f6d2012008-12-31 00:21:04 -0800601 Make it unconditional.
602 (BUILT_SOURCES): Updated.
603
604 * dwarf.h: Add description comments for DW_LANG_* values.
Roland McGrathbca43152009-01-05 23:59:32 -0800605
606 * Makefile.am [MAINTAINER_MODE]
607 ($(srcdir)/known-dwarf.h): New target.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800608 (BUILT_SOURCES): Add it.
609
Roland McGrathc462c632009-01-06 01:04:31 -0800610 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800611
6122009-01-10 Ulrich Drepper <drepper@redhat.com>
613
614 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
Roland McGrathb4d6f0f2008-08-25 22:55:17 +0000615
6162009-01-08 Roland McGrath <roland@redhat.com>
617
618 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
619
Ulrich Drepper8d358d92008-01-22 06:34:31 +00006202008-01-06 Roland McGrath <roland@redhat.com>
621
622 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
623 Reorder members.
624 * dwarf_haschildren.c: Return -1 for error case, not 0.
625
626 * Makefile.am (libdw.so): Link in $(zip_LIBS).
627
Ulrich Drepperb27ce002008-01-18 20:08:54 +00006282009-01-06 Ulrich Drepper <drepper@redhat.com>
629
630 * dwarf.h: Add definition for unwind and call frame information.
631
632 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000633 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
634
6352008-08-15 Roland McGrath <roland@redhat.com>
636
637 * libdw.map (ELFUTILS_0.136): New version set, inherits from
638 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
639
6402008-01-21 Ulrich Drepper <drepper@redhat.com>
641
642 * dwarf_child.c: Minor optimizations.
643 * dwarf_getattrs.c: Likewise.
644 * dwarf_getpubnames.c: Likewise.
645 * dwarf_siblingof.c: Likewise.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +0000646 * dwarf_tag.c: Likewise.
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000647
6482008-01-18 Ulrich Drepper <drepper@redhat.com>
649
650 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
651 of DWARF_VERSION comparison, just fail if the file's version is newer.
652
6532008-01-17 Nick Clifton <nickc@redhat.com>
654
655 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
656 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
657 (DWARF3_LENGTH_64_BIT): New define.
658 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
659 * dwarf_getpubnames: Include dwarf.h.
660 (get_offsets): Use the new definitions.
661 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
662 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
663 (dwarf_nextcu): Use the new definitions.
664
665 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
666 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
667 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
668 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
669
670 * dwarf_getpubnames (get_offsets): Replace assertion with test and
671 error return.
672
673 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
674
675 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
676 Set the address in the return structure to the address of the next
677 non-sibling die, if there is no sibling and the return pointer is
678 not the same as the die pointer.
Ulrich Dreppere219f1c2008-01-09 05:49:49 +0000679 * libdw.h: Expand the description of the dwarf_siblingof prototype.
680
681 * dwarf_child.c: Fix typo in comment.
682
683 * libdwP.h (DWARF_VERSION): Change to 3.
684
Roland McGrathe4c22ea2007-10-23 13:07:39 +0000685 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
686 not have a initialised valp pointer.
687
688 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
689 the end of the attributes is reached. When the callback fails,
690 return the address of the failing attribute, not the address of
691 its successor.
692 * libdw.h: Expand the description of the dwarf_getattrs prototype.
693
694 * dwarf_child.c (__libdw_find_attr): Use the new definition.
695 (dwarf_child): Likewise.
696 * dwarf_tag.c (__libdw_findabbrev): Likewise.
697 (dwarf_tag): Likewise.
698
6992008-01-08 Roland McGrath <roland@redhat.com>
700
701 * Makefile.am (euinclude): Variable removed.
702 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
703 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
Ulrich Drepperb597dfa2007-10-16 05:21:27 +0000704
7052007-10-17 Roland McGrath <roland@redhat.com>
706
707 * libdw.h (__deprecated_attribute__): New macro.
708 (dwarf_formref): Mark it deprecated.
709 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
710 (dwarf_formref): ... here. Call it. Remove INTDEF.
Roland McGrath59ea7f32007-10-04 08:50:09 +0000711 * libdwP.h: Remove INTDECL.
712 Declare __libdw_formref.
713 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
714 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
715
716 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
717 needs to check CU->version.
718
Roland McGrath057ec6b2007-10-02 20:55:05 +0000719 * libdwP.h (struct Dwarf_CU): New member `version'.
720 * libdw_findcu.c (__libdw_findcu): Initialize it.
721
722 * dwarf_child.c: Return 1 for null entry as first child.
723
Roland McGrathd1a48172007-08-07 19:51:01 +00007242007-10-05 Roland McGrath <roland@redhat.com>
725
726 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
727
728 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
729 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
730
7312007-10-03 Roland McGrath <roland@redhat.com>
732
733 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
734 and dwfl_build_id_find_debuginfo.
Roland McGrath87d47802007-07-16 22:23:37 +0000735
736 * libdw.map (ELFUTILS_0.130): New version set, inherits from
737 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
738
7392007-10-02 Roland McGrath <roland@redhat.com>
Roland McGrath43da9892007-04-16 23:13:37 +0000740
741 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
742 structure_type.
743
Roland McGrathbf2ee482007-04-05 09:27:36 +00007442007-08-07 Roland McGrath <roland@redhat.com>
745
Roland McGrath43da9892007-04-16 23:13:37 +0000746 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
747 error code is DWARF_E_NOERROR (0).
748
749 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
750 Fix typo in __libdw_visit_scopes argument.
751
752 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
753 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
754
7552007-07-03 Roland McGrath <roland@redhat.com>
Roland McGrathbf2ee482007-04-05 09:27:36 +0000756
757 * libdw.h (__extern_inline): New macro.
758 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
759
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00007602007-04-16 Roland McGrath <roland@redhat.com>
761
762 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
763
7642007-04-05 Roland McGrath <roland@redhat.com>
765
766 * dwarf_getsrcdirs.c: New file.
767 * Makefile.am (libdw_a_SOURCES): Add it.
Ulrich Drepper6258e742007-03-13 06:22:40 +0000768 * libdw.h: Declare dwarf_getsrcdirs.
769 * libdw.map (ELFUTILS_0.127): Add it.
770
771 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
772 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
773 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
774 Save DIRARRAY in the Dwarf_Files.
775
776 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
Ulrich Drepper903c1162007-02-15 19:40:37 +0000777 address to check for all-ones base address entry. Check directly.
778 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
779
7802007-03-25 Roland McGrath <roland@redhat.com>
Ulrich Drepperaa915fd2007-02-05 07:25:33 +0000781
782 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
783 Return NULL when freeing RESULT on error.
784 (global_read, scngrp_read): Check return value from check_section,
785 break out of loop after it has freed RESULT.
786 (valid_p): Handle null argument.
787
Roland McGrath8190db62006-12-17 23:56:51 +00007882007-03-12 Roland McGrath <roland@redhat.com>
789
790 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
791
7922007-03-04 Roland McGrath <roland@redhat.com>
Roland McGrathc373d852006-10-10 00:25:21 +0000793
794 * libdw.map (ELFUTILS_0.127): New version set, inherits from
795 ELFUTILS_0.126. Add dwfl_module_addrsym.
796
7972007-02-10 Roland McGrath <roland@redhat.com>
798
799 * dwarf.h (DW_OP_fbreg): Comment fix.
800
8012007-02-03 Roland McGrath <roland@redhat.com>
802
803 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
804 * libdw.map (ELFUTILS_0.126): New version set, inherits from
Ulrich Drepper077c65f2006-07-12 19:54:51 +0000805 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
806 exported in the past.
807
8082006-12-17 Roland McGrath <roland@redhat.com>
809
810 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
811 address when the CU is missing attributes due to buggy GCC.
812
Ulrich Dreppere1812e12006-07-12 07:46:03 +00008132006-08-29 Roland McGrath <roland@redhat.com>
814
815 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
816
817 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
818 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
819
Ulrich Drepper3be74472006-05-27 18:15:40 +0000820 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
821 result is aligned. Adjust NEWP->remaining here for this allocation.
822 * libdwP.h: Update decl.
823 (libdw_alloc): Update caller.
Ulrich Dreppere7a73172006-05-22 18:16:45 +0000824
8252006-07-12 Ulrich Drepper <drepper@redhat.com>
826
827 * dwarf_child.c: Adjust for internal_function_def removal.
828 * dwarf_getabbrev.c: Likewise.
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +0000829 * dwarf_tag.c: Likewise.
830 * libdw_form.c: Likewise.
831 * memory-access.c: Likewise.
832
8332006-06-28 Roland McGrath <roland@redhat.com>
Roland McGrath2dade662006-02-28 22:13:20 +0000834
835 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
836
837 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
838 dwfl_module_getsym.
839
Roland McGrath08333122006-02-27 04:54:26 +00008402006-05-27 Ulrich Drepper <drepper@redhat.com>
841
842 * libdw.h: Add extern "C".
843
Roland McGrath50ffcbf2005-12-23 01:51:43 +00008442006-05-22 Ulrich Drepper <drepper@redhat.com>
845
846 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
847 aranges information.
Roland McGrathdec3a242005-12-12 08:35:55 +0000848
8492006-05-21 Ulrich Drepper <drepper@redhat.com>
850
851 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
852 dwarf_haschildren.
Roland McGrathf64a4422005-12-09 23:40:30 +0000853
8542006-02-28 Roland McGrath <roland@redhat.com>
855
856 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
857 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
858 values from DWARF 3.0.
Roland McGrath994b4892005-12-05 22:46:21 +0000859
8602006-02-22 Roland McGrath <roland@redhat.com>
861
862 * libdw.map: Bump to 0.120; export dwfl_version.
Roland McGrathe47ab762005-11-17 03:16:00 +0000863
8642005-12-22 Roland McGrath <roland@redhat.com>
865
866 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
867
8682005-12-12 Roland McGrath <roland@redhat.com>
869
870 * dwarf_ranges.c: Copy CU base address-finding code from
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000871 dwarf_getlocation.
872
8732005-12-09 Roland McGrath <roland@redhat.com>
874
875 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
876 Delay CU base lookup until it's needed.
877 If CU base lookup fails with no error, flag invalid DWARF.
878
8792005-11-25 Roland McGrath <roland@redhat.com>
880
881 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
882
Roland McGrath6724c902005-10-28 07:07:19 +00008832005-11-15 Roland McGrath <roland@redhat.com>
884
885 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
886
8872005-11-13 Roland McGrath <roland@redhat.com>
888
889 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
890
8912005-10-27 Roland McGrath <roland@redhat.com>
892
893 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
894 don't match end_sequence markers.
895
896 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
897 before normal records at the same address.
898 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
899 marker.
900
9012005-10-26 Roland McGrath <roland@redhat.com>
902
903 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
904 * dwarf_func_file.c: Renamed to ...
905 * dwarf_decl_file.c: ... here.
906 * dwarf_func_col.c: Renamed to ...
907 * dwarf_decl_column.c: ... here.
908 * dwarf_func_line.c: Renamed to ...
909 * dwarf_decl_line.c: ... here.
910 (dwarf_func_line): Renamed to ...
911 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
912 (__libdw_func_intval): Renamed __libdw_attr_intval.
913 * dwarf_func_name.c: File removed.
914 * dwarf_func_lowpc.c: File removed.
915 * dwarf_func_highpc.c: File removed.
916 * dwarf_func_entrypc.c: File removed.
917 * dwarf_func_die.c: File removed.
918 * Makefile.am (libdw_a_SOURCES): Updated.
919 * libdw.h: Update decls.
920 (Dwarf_Func): Type removed.
921 * libdwP.h: Update decls.
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000922 (struct Dwarf_Func_s): Type removed.
923 * libdw.map: Updated.
924
925 * libdwP.h (CUDIE): New macro.
926 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
927 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
928 * dwarf_ranges.c (dwarf_ranges): Likewise.
929
930 * dwarf_getloclist.c: Renamed to ...
931 * dwarf_getlocation.c: ... here.
932 (getloclist): Renamed to getlocation.
933 (dwarf_getloclist): Renamed to dwarf_getlocation.
934 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
935 * Makefile.am (libdw_a_SOURCES): Updated.
936 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
937 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
938 (Dwarf_Loc): Renamed Dwarf_Op.
939 * libdwP.h (struct loc_s): Update use.
940 * libdw.map: Update map.
941
942 * dwarf_entry_breakpoints.c: Use the second line record within the
943 function, regardless of its source location data.
944
9452005-10-25 Roland McGrath <roland@redhat.com>
946
947 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
948
949 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
950
9512005-10-14 Roland McGrath <roland@redhat.com>
952
953 * dwarf_diecu.c (dwarf_diecu): New file.
954 * Makefile.am (libdw_a_SOURCES): Add it.
955 * libdw.h: Declare dwarf_diecu.
956 * libdw.map: Export it.
957
958 * libdw.map: Bump to 0.116; export dwarf_ranges.
959
9602005-09-20 Roland McGrath <roland@redhat.com>
961
962 * dwarf_haspc.c: Use dwarf_ranges.
963 * dwarf_entry_breakpoints.c: Likewise.
964
965 * dwarf_ranges.c: New file.
966 * Makefile.am (libdw_a_SOURCES): Add it.
967 * libdw.h: Declare dwarf_ranges.
968 * libdwP.h: Add INTDECL.
969
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00009702005-09-14 Roland McGrath <roland@redhat.com>
971
972 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
973 prologue_end marker scanning loop.
974
9752005-09-11 Roland McGrath <roland@redhat.com>
Roland McGrath71e15a02005-08-27 10:33:26 +0000976
977 * dwarf.h: Comment typo fix.
978
9792005-09-07 Roland McGrath <roland@redhat.com>
980
981 * dwarf_entry_breakpoints.c: New file.
982 * Makefile.am (libdw_a_SOURCES): Add it.
983 * libdw.h: Declare dwarf_entry_breakpoints.
984
985 * dwarf_entrypc.c: New file.
986 * Makefile.am (libdw_a_SOURCES): Add it.
987 * libdw.h: Declare dwarf_entrypc.
988 * libdwP.h: Add INTDECL.
989
9902005-08-28 Ulrich Drepper <drepper@redhat.com>
991
992 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
993 (%.os): Use COMPILE.os.
994 (COMPILE.os): Filter out gconv options.
995
9962005-08-27 Roland McGrath <roland@redhat.com>
997
Roland McGrathd17fac72005-08-23 08:20:21 +0000998 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
999 __libdw_visit_scopes.
1000
1001 * dwarf_getscopes_die.c: New file.
1002 * Makefile.am (libdw_a_SOURCES): Add it.
1003 * libdw.h: Declare dwarf_getscopes_die.
1004 * libdw.map: Bump to 0.115 and add it.
1005
1006 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
1007 containing a DIE and its parent pointer, instead of just Dwarf_Die.
1008 Take two functions for both preorder and postorder visitors.
1009 * libdwP.h: Update decl.
1010 (struct Dwarf_Die_Chain): New type.
1011 * dwarf_func_inline.c: Update uses.
1012
1013 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
1014 Add INTDEF.
Roland McGrathf5fda7d2005-08-18 22:01:57 +00001015 * libdwP.h: Add INTDECL.
1016 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
1017
10182005-08-23 Roland McGrath <roland@redhat.com>
1019
Roland McGrath1ecb6062005-08-15 09:53:04 +00001020 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
1021 DW_AT_specification the same as DW_AT_abstract_origin.
1022
10232005-08-20 Roland McGrath <roland@redhat.com>
1024
1025 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
1026 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
1027 and dwfl_report_offline.
1028
10292005-08-19 Roland McGrath <roland@redhat.com>
1030
1031 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001032 Add dwfl_module_relocate_address, dwfl_module_relocations,
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001033 dwfl_module_relocation_info.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001034
10352005-08-18 Roland McGrath <roland@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001036
Roland McGrath4959bf82005-08-09 10:31:08 +00001037 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
1038 outermost scope in the results.
Roland McGrathb6312e12005-08-09 10:36:01 +00001039
10402005-08-15 Roland McGrath <roland@redhat.com>
Roland McGrath4959bf82005-08-09 10:31:08 +00001041
1042 * dwarf_func_inline.c: New file.
1043 * Makefile.am (libdw_a_SOURCES): Add it.
1044 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
Roland McGratha5a89682005-08-02 01:24:01 +00001045 * libdw.map: Add them.
1046
1047 * dwarf_func_die.c: New file.
1048 * Makefile.am (libdw_a_SOURCES): Add it.
1049 * libdw.h: Declare dwarf_func_die.
Ulrich Drepper18618fd2005-07-28 21:29:22 +00001050 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
1051
10522005-08-10 Ulrich Drepper <drepper@redhat.com>
1053
1054 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
Roland McGrath366784a2005-07-28 06:20:53 +00001055 of DW_LNS_set_epilog_begin.
1056
Roland McGrath18385902005-07-28 07:12:38 +000010572005-08-09 Roland McGrath <roland@redhat.com>
1058
1059 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
1060
1061 * dwarf_end.c: Add INTDEF.
1062 * dwarf_error.c (dwarf_errmsg): Likewise.
Roland McGrath366784a2005-07-28 06:20:53 +00001063 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
1064
10652005-08-01 Roland McGrath <roland@redhat.com>
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001066
1067 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
1068 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1069
10702005-07-28 Ulrich Drepper <drepper@redhat.com>
1071
1072 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
1073 (libdw_a_LIBADD): Add all files from libdwfl.a.
1074
10752005-07-27 Roland McGrath <roland@redhat.com>
1076
1077 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
1078 along with ../libebl/libebl.a and ../lib/libeu.a;
1079 depend on ../libelf/libelf.so.
1080 (libdw_so_LDADD): New variable.
1081 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
1082
1083 * libdw.map: Define an empty base version and move all symbols to
1084 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
1085
10862005-07-23 Ulrich Drepper <drepper@redhat.com>
1087
1088 * dwarf_error.c: Add internal alias for dwarf_errno.
1089 * libdwP.h: Declare __dwarf_errno_internal.
1090 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
1091
1092 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
1093 global_error.
1094
10952005-06-01 Roland McGrath <roland@redhat.com>
1096
1097 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
1098 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
1099
11002005-06-08 Roland McGrath <roland@redhat.com>
1101
1102 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
1103 (get_sleb128_step, get_sleb128): Likewise.
1104 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
1105 * dwarf_getloclist.c (getloclist): Likewise.
1106 * dwarf_formblock.c (dwarf_formblock): Likewise.
1107 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1108 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
1109 * dwarf_formref.c (dwarf_formref): Likewise.
1110 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
1111 * dwarf_formudata.c (dwarf_formudata): Likewise.
1112 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
1113 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
1114 * dwarf_tag.c (dwarf_tag): Likewise.
1115 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1116 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
1117 * libdw_form.c (__libdw_form_val_len): Likewise.
1118 * libdwP.h: Update decl.
1119
11202005-06-04 Roland McGrath <roland@redhat.com>
1121
1122 * memory-access.h (get_uleb128_rest_return): New macro.
1123 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
1124 (get_sleb128_rest_return): New macro.
1125 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
1126 * memory-access.c: New file.
1127 * Makefile.am (libdw_a_SOURCES): Add it.
1128 (DEFS): Add -DIS_LIBDW.
1129
11302005-05-31 Roland McGrath <roland@redhat.com>
1131
1132 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
1133 formref offset.
1134
11352005-05-30 Roland McGrath <roland@redhat.com>
1136
1137 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
1138 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
1139
1140 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
1141 BEGIN value. Instead, match base address entries separately for
1142 32/64 size cases.
1143
11442005-05-28 Roland McGrath <roland@redhat.com>
1145
1146 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
1147 past location expression contents.
1148
11492005-05-23 Roland McGrath <roland@redhat.com>
1150
1151 * dwarf_getsrclines.c: Comment typo fix.
1152
1153 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
1154 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
1155
11562005-05-22 Ulrich Drepper <drepper@redhat.com>
1157
1158 * libdwP.h: Only use INTDECL for alias prototypes.
1159
11602005-05-19 Roland McGrath <roland@redhat.com>
1161
1162 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
1163
1164 * dwarf_getscopevar.c: New file.
1165 * Makefile.am (libdw_a_SOURCES): Add it.
1166 * libdw.h: Declare dwarf_getscopevar.
1167
1168 * dwarf_getsrcfiles.c: Add INTDEF.
1169 * dwarf_haschildren.c: Likewise.
1170 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
1171
1172 * dwarf_getscopes.c: New file.
1173 * Makefile.am (libdw_a_SOURCES): Add it.
1174 * libdw.h: Declare dwarf_getscopes.
1175 * libdw.map: Add it.
1176
11772005-05-18 Roland McGrath <roland@redhat.com>
1178
1179 * libdwP.h (IDX_debug_ranges): New enum constant.
1180 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
1181 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
1182 * dwarf_error.c (errmsgs): Add it.
1183 * dwarf_haspc.c: New file.
1184 * libdw.h: Declare dwarf_haspc.
1185 * libdw.map: Add it.
1186 * libdwP.h: Add INTDECL.
1187
1188 * dwarf_attr_integrate.c: New file.
1189 * dwarf_hasattr_integrate.c: New file.
1190 * Makefile.am (libdw_a_SOURCES): Add them.
1191 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
1192 * libdw.map: Add them.
1193
1194 * dwarf_hasattr.c: Add INTDEF.
1195 * libdwP.h: Add INTDECL for it.
1196
1197 * dwarf_formref_die.c: New file.
1198 * Makefile.am (libdw_a_SOURCES): Add it.
1199 * libdw.h (dwarf_formref_die): Declare it.
1200 * libdwP.h (dwarf_formref_die): Add INTDECL.
1201 * libdw.map: Add it.
1202
1203 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
1204 of ...
1205 (dwarf_getloclist): ... here. Call them.
1206 (dwarf_addrloclists): New function.
1207 * libdw.h: Declare it.
1208 * libdw.map: Add it.
1209
1210 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
1211 DW_MACINFO_end_file. Recognize type 0 as terminator.
1212
12132005-05-05 Roland McGrath <roland@redhat.com>
1214
1215 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
1216
1217 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
1218 the line program does not produce all entries in ascending order.
1219
12202005-04-25 Ulrich Drepper <drepper@redhat.com>
1221
1222 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
1223 occurences (e.g., inlines) better.
1224
12252005-04-24 Ulrich Drepper <drepper@redhat.com>
1226
1227 * libdw.h (DWARF_END_ABBREV): Define.
1228 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
1229 end is reached.
1230 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
1231 of records reached.
1232 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
1233 as error of __libdw_getabbrev.
1234
12352005-04-04 Ulrich Drepper <drepper@redhat.com>
1236
1237 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
1238
1239 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
1240 results back to caller.
1241
12422005-04-04 Roland McGrath <roland@redhat.com>
1243
1244 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
1245
1246 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
1247 defn.
1248
12492005-04-04 Ulrich Drepper <drepper@redhat.com>
1250
1251 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
1252
1253 * dwarf_getsrc_file.c: New file.
1254 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
1255 * libdw.h: Declare dwarf_getsrc_file.
1256 * libdw.map: Add dwarf_getsrc_file.
1257
12582005-04-02 Ulrich Drepper <drepper@redhat.com>
1259
1260 * dwarf_func_entrypc.c: New file.
1261 * dwarf_func_col.c: New file.
1262 * dwarf_func_line.c: New file.
1263 * dwarf_func_file.c: New file.
1264 * libdw.h: Add prototypes for new functions.
1265 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
1266 dwarf_func_file.
1267 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
1268 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
1269 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
1270 Declare __libdw_func_intval and __dwarf_formsdata_internal.
1271 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
1272 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
1273
1274 * dwarf.h: Add some DWARF3 definitions.
1275
12762005-04-01 Ulrich Drepper <drepper@redhat.com>
1277
1278 * dwarf_getfuncs.c: New file.
1279 * dwarf_func_highpc.c: New file.
1280 * dwarf_func_lowpc.c: New file.
1281 * dwarf_func_name.c: New file.
1282 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
1283 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
1284 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
1285 and dwarf_func_name.
1286 * libdw.h: Add prototypes for new functions.
1287 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
1288 * dwarf_siblingof.c: Likewise.
1289 * dwarf_dieoffset.c: Likewise.
1290 * dwarf_highpc.c: Likewise.
1291 * dwarf_lowpc.c: Likewise.
1292 * libdwP.h: Add prototypes for internal functions.
1293 Define Dwarf_Func_s structure.
1294
12952005-03-29 Ulrich Drepper <drepper@redhat.com>
1296
1297 * libdw.h: Add padding in Dwarf_die.
1298
1299 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
1300 * dwarf_attr.c: Likewise.
1301 * dwarf_begin.c: Likewise.
1302 * dwarf_begin_elf.c: Likewise.
1303 * dwarf_bitoffset.c: Likewise.
1304 * dwarf_bitsize.c: Likewise.
1305 * dwarf_bytesize.c: Likewise.
1306 * dwarf_diename.c: Likewise.
1307 * dwarf_formaddr.c: Likewise.
1308 * dwarf_formblock.c: Likewise.
1309 * dwarf_formref.c: Likewise.
1310 * dwarf_formstring.c: Likewise.
1311 * dwarf_formudata.c: Likewise.
1312 * dwarf_getarange_addr.c: Likewise.
1313 * dwarf_getarangeinfo.c: Likewise.
1314 * dwarf_getaranges.c: Likewise.
1315 * dwarf_getloclist.c: Likewise.
1316 * dwarf_getmacros.c: Likewise.
1317 * dwarf_getsrc_die.c: Likewise.
1318 * dwarf_getsrcfiles.c: Likewise.
1319 * dwarf_getsrclines.c: Likewise.
1320 * dwarf_highpc.c: Likewise.
1321 * dwarf_lowpc.c: Likewise.
1322 * dwarf_nextcu.c: Likewise.
1323 * dwarf_offdie.c: Likewise.
1324 * dwarf_siblingof.c: Likewise.
1325 * dwarf_srclang.c: Likewise.
1326 * dwarf_tag.c: Likewise.
1327 * libdw_findcu.c: Likewise.
1328 * libdwP.h: Add prototypes for internal functions.
1329
1330 * dwarf_addrdie.c: New file.
1331 * dwarf_macro_opcode.c: New file.
1332 * dwarf_macro_param1.c: New file.
1333 * dwarf_macro_param2.c: New file.
1334 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
1335 * libdwP.h: Remove Dwarf_Macro definition.
1336 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
1337 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
1338 * libdw.map: Add entries for new functions.
1339
13402005-03-21 Ulrich Drepper <drepper@redhat.com>
1341
1342 * libdw.h: Handle broken gcc < 4.
1343
13442005-02-15 Ulrich Drepper <drepper@redhat.com>
1345
1346 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
1347
1348 * dwarf_begin_elf.c: Fix warnings.
1349 * dwarf_dieoffset.c: Likewise.
1350 * dwarf_end.c: Likewise.
1351 * dwarf_error.c: Likewise.
1352 * dwarf_getpubnames.c: Likewise.
1353
1354 * libdwP.h: Add new error values.
1355 * dwarf_error.c: Support new error values.
1356 * dwarf_getpubnames.c: Check parameter value.
1357
13582005-02-05 Ulrich Drepper <drepper@redhat.com>
1359
1360 * Makefile.am: Check for text relocations in constructed DSO.
1361
1362 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
1363
13642005-02-04 Ulrich Drepper <drepper@redhat.com>
1365
1366 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
1367 checks to not read over buffer boundaries for ill-formed DWARF data.
1368
13692004-09-25 Ulrich Drepper <drepper@redhat.com>
1370
1371 * dwarf_child.c: Make compile with gcc 4.0.
1372 * dwarf_error.c: Likewise.
1373 * dwarf_formblock.c: Likewise.
1374 * dwarf_getabbrev.c: Likewise.
1375 * dwarf_getattrs.c: Likewise.
1376 * dwarf_getsrclines.c: Likewise.
1377 * dwarf_tag.c: Likewise.
1378 * libdw_form.c: Likewise.
1379
13802004-01-20 Ulrich Drepper <drepper@redhat.com>
1381
1382 * Makefile.am: Support building with mudflap.
1383
1384 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
1385 * dwarf_getsrclines.c: Likewise.
1386 * dwarf_memory-access.h: Likewise.
1387
13882004-01-19 Ulrich Drepper <drepper@redhat.com>
1389
1390 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1391
1392 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1393 Third parameter of dwarf_getsrcfiles can be NULL.
1394
1395 * libdw.map: Add dwarf_getmacros.
1396 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1397 * dwarf_getmacros.c: New file.
1398
13992004-01-18 Ulrich Drepper <drepper@redhat.com>
1400
1401 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1402
1403 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1404
1405 * dwarf_getsrclines.c:
1406 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1407
1408 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1409
1410 * libdwP.h (_): Use elfutils domain.
1411
1412 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1413
1414 * dwarf_getsrclines.c: Fix typo in comment.
1415
14162004-01-17 Ulrich Drepper <drepper@redhat.com>
1417
1418 * Makefile.am: Support building with mudflap.
1419
14202004-01-16 Ulrich Drepper <drepper@redhat.com>
1421
1422 * memory-access.h: Add lots of const in case a pointer passed is const.
1423
1424 * dwarf_formflag.c: New file.
1425 * dwarf_getattrs.c: New file.
1426 * dwarf_error.c: Add new error value.
1427 * libdw.h: Add prototypes for new functions. Adjust prototype for
1428 dwarf_getpubnames.
1429 * libdw.map: Add new functions.
1430 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1431 to ptrdiff_t.
1432 * libdwP.h: Add new error value.
1433 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1434 dwarf_formflag.c.
1435
1436 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1437
14382004-01-12 Ulrich Drepper <drepper@redhat.com>
1439
1440 * dwarf_getarange_addr.c: New file
1441 * dwarf_getarangeinfo.c: New file.
1442 * dwarf_getaranges.c: New file.
1443 * dwarf_onerange.c: New file.
1444 * libdw.h: Declare new functions. Define Dwarf_Arange and
1445 Dwarf_Aranges.
1446 * libdw.map: Add new functions.
1447 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1448 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1449 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1450 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1451 * dwarf_error.c: Add new message.
1452
14532004-01-11 Ulrich Drepper <drepper@redhat.com>
1454
1455 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1456 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1457 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1458 * dwarf_error.c: Add another message.
1459 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1460 introduction.
1461 * dwarf_filesrc.c: Likewise.
1462 * dwarf_getsrcfiles.c: Likewise.
1463 * dwarf_getsrclines.c: Likewise.
1464 * dwarf_lineaddr.c: New file.
1465 * dwarf_linebeginstatement.c: New file.
1466 * dwarf_lineblock.c: New file.
1467 * dwarf_linecol.c: New file.
1468 * dwarf_lineendsequence.c: New file.
1469 * dwarf_lineepiloguebegin.c: New file.
1470 * dwarf_lineno.c: New file.
1471 * dwarf_lineprologueend.c: New file.
1472 * dwarf_onesrcline.c: New file.
1473 * dwarf_lineno.c: Change interface to store result in object pointed
1474 to by second parameter.
1475 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1476 prototype. Define Dwarf_Files and Dwarf_Lines.
1477 * libdw.map: Add new functions.
1478 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1479 * libdw_findcu.c: Don't initialize nlines field.
1480
1481 * dwarf_siblingof: Little optimization.
1482
1483 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1484 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1485 * libdwP.h (struct Dwarf): Add free_elf field.
1486
1487 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1488 dwarf_offabbrev.c.
1489 * dwarf_getstring.c: New file.
1490 * dwarf_offabbrev.c: New file.
1491 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1492 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1493 parameters. Don't allocate memory if not necessary and don't lookup
1494 previous results if no CU given.
1495 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1496 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1497 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1498 * libdwP.h: Change prototype for __libdw_getabbrev.
1499
1500 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1501 returning if this is wanted.
1502
15032004-01-09 Ulrich Drepper <drepper@redhat.com>
1504
1505 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1506 with offset_size value.
1507 * libdw.h: Adjust dwarf_nextcu prototype.
1508 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1509 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1510 member of new CU struct.
1511 * dwarf_formstring.c: Depend on offset_size not address_size for
1512 DW_FORM_strp handling.
1513 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1514
1515 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1516 failing lookup.
1517 (dwarf_tag): Correctly recognize failed lookup.
1518
1519 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1520 function noop_free.
1521 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1522 * dwarf_formblock.c: New file.
1523 * dwarf_getloclist.c: Rewrite to handle a single block.
1524 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1525 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1526 dwarf_getloclistent declaration.
1527 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1528 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1529 Add locs member to struct Dwarf_CU.
1530 * libdw_fundcu.c: Initialize locs member of new CU.
1531 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1532 Remove dwarf_getloclistent.c.
1533
15342004-01-07 Ulrich Drepper <drepper@redhat.com>
1535
1536 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1537 * libdwP.h: Likewise.
1538
1539 * dwarf_getloclist.c: New file.
1540 * dwarf_getloclistent.c: New file.
1541 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1542 Declare dwarf_getloclistent and dwarf_getloclist.
1543 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1544 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1545 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1546 dwarf_getloclist.c.
1547
1548 * dwarf_error.c: More error messages.
1549
15502004-01-06 Ulrich Drepper <drepper@redhat.com>
1551
1552 * dwarf_getsrclines.c: Remove debugging support.
1553
1554 * dwarf_getsrcfiles.c: New file.
1555 * dwarf_filesrc.c: New file.
1556 * libdw.h: Declare these functions. Define Dwarf_File.
1557 * libdwP.c: Adjust Dwarf_File_s definition.
1558 * libdw.map: Add these functions.
1559 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1560 dwarf_filesrc.c.
1561 * dwarf_getsrclines.c: Initialize cu->files.
1562
15632004-01-05 Ulrich Drepper <drepper@redhat.com>
1564
1565 * libdw.h: Add more nonnull function attributes.
1566
1567 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1568 * dwarf_end.c (cu_free): New function.
1569 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1570 * dwarf_error.c (errmsgs): Add new messages.
1571 * dwarf_getsrc_die.c: New file.
1572 * dwarf_getsrclines.c: New file.
1573 * dwarf_lineno.c: New file.
1574 * dwarf_linesrc.c: New file.
1575 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1576 instead of the *_inc-less variants.
Ulrich Drepper6fb34512010-05-28 20:28:04 -07001577 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001578 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1579 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1580 and dwarf_linesrc.
1581 * libdwP.h: Add more error codes.
1582 (struct Dwarf): Remove mem_tail.next member.
1583 (Dwarf_File): Define type.
1584 (struct Dwarf_Line_s): Define type.
1585 (struct Dwarf_CU): Add lines and nlines members.
1586 (libdw_alloc): Define local variable _tail and use it.
1587 Add some function attributes.
1588 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1589 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1590 * memory-access.h: Add unlikely for the endian conversion paths.
1591 * Makefile.am (AM_CFLAGS): Add -std parameter.
1592 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1593 dwarf_lineno, and dwarf_linesrc.
1594
15952003-08-11 Ulrich Drepper <drepper@redhat.com>
1596
1597 * Moved to CVS archive.