blob: fc7d6295bae15cc974b73af647b258923cf19320 [file] [log] [blame]
Jakub Jelinek03124242011-05-17 17:00:14 +020012011-05-16 Jakub Jelinek <jakub@redhat.com>
2
3 * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4 DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
5 New.
6
Mark Wielaardf4c39c72011-04-26 17:15:28 +020072011-04-26 Mark Wielaard <mjw@redhat.com>
8
9 * dwarf_child (dwarf_child): Sanity check end of section against
10 cu_data () of die->cu.
11
Mark Wielaarde3368c52011-03-22 23:03:31 +0100122011-03-22 Mark Wielaard <mjw@redhat.com>
13
14 * dwarf.h: Add DW_TAG_GNU_call_site,
15 DW_TAG_GNU_call_site_parameter,
16 DW_AT_GNU_call_site_value,
17 DW_AT_GNU_call_site_data_value,
18 DW_AT_GNU_call_site_target,
19 DW_AT_GNU_call_site_target_clobbered,
20 DW_AT_GNU_tail_call,
21 DW_AT_GNU_all_tail_call_sites,
22 DW_AT_GNU_all_call_sites,
23 DW_AT_GNU_all_source_call_sites,
24 and DW_OP_GNU_entry_value.
25
Petr Machata02c56192011-03-10 01:50:32 +0100262011-03-10 Petr Machata <pmachata@redhat.com>
27
28 * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
29 abbreviation with code 0.
30
Petr Machata35870872011-03-09 10:01:29 -0800312011-03-09 Petr Machata <pmachata@redhat.com>
32
33 * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
34
Roland McGrath725aad52011-02-23 19:52:46 -0800352011-02-23 Roland McGrath <roland@redhat.com>
36
37 * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
38 Declare __libdw_free_zdata.
39 * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
40 (dwarf_end): Call it.
41
42 * dwarf_begin_elf.c (valid_p): Likewise.
43 (check_section, scngrp_read): Likewise.
44 (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
45
Roland McGrath8c0a3822010-10-13 11:21:17 -0700462010-10-13 Roland McGrath <roland@redhat.com>
47
48 * dwarf.h: Add DW_LANG_Go.
49
Roland McGrath5f95e2b2010-10-05 00:56:30 -0700502010-10-05 Roland McGrath <roland@redhat.com>
51
52 * dwarf_getaranges.c: Use malloc rather than alloca,
53 since the total number of elements can be quite huge.
54
Roland McGrath932585d2010-05-08 04:01:14 -0700552010-07-26 Roland McGrath <roland@redhat.com>
56
57 * dwarf_getlocation_implicit_pointer.c: New file.
58 * Makefile.am (libdw_a_SOURCES): Add it.
59 * libdw.map (ELFUTILS_0.149): New set.
60 Add dwarf_getlocation_implicit_pointer.
61 * libdw.h: Declare it.
62
63 * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
64 (dwarf_offdie, dwarf_offdie_types): Update callers.
65 * libdwP.h: Declare it.
66
67 * dwarf.h: Add DW_OP_GNU_implicit_pointer.
68 * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
69
Roland McGrathde44f132010-08-24 15:38:42 -0700702010-08-24 Roland McGrath <roland@redhat.com>
71
72 * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
73
Roland McGrath00aca7f2010-07-27 04:40:23 -0700742010-07-27 Roland McGrath <roland@redhat.com>
75
76 * dwarf_formref_die.c: Fix sig8 hash insertion.
77
Roland McGrath9616b852010-06-23 03:17:28 -0700782010-06-23 Roland McGrath <roland@redhat.com>
79
80 * cfi.c (dwarf_cfi_validate_fde): Function removed.
81 * libdw.h: Remove it.
82 * libdw.map: Likewise.
83
Roland McGrath499b8ff2010-06-22 13:13:53 -0700842010-06-22 Roland McGrath <roland@redhat.com>
85
Roland McGrathc16966a2010-06-22 17:08:43 -070086 * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
87
Roland McGrath499b8ff2010-06-22 13:13:53 -070088 * dwarf_getsrclines.c: Fix signed comparison warning in extended
89 opcode parsing.
90
Roland McGrath0c5638c2010-06-21 23:00:35 -0700912010-06-21 Roland McGrath <roland@redhat.com>
92
Roland McGrath474cb482010-06-22 00:10:54 -070093 * dwarf.h: Add DW_TAG_GNU_* constants.
94
Roland McGrath0c5638c2010-06-21 23:00:35 -070095 * memory-access.h (get_sleb128_rest_return): Fix sign extension for
96 10-byte case.
97
Roland McGrath5cc030d2010-06-20 17:25:35 -0700982010-06-20 Roland McGrath <roland@redhat.com>
99
Roland McGrath2b1f0952010-06-20 17:55:50 -0700100 * libdw_findcu.c (__libdw_findcu): Take new flag argument,
101 to search TUs instead of CUs.
102 * libdwP.h: Update decl.
103 (struct Dwarf): New member tu_tree.
104 * dwarf_end.c (dwarf_end): Clean up tu_tree.
105 * dwarf_offdie.c (do_offdie): New function, broken out of ...
106 (dwarf_offdie): ... here.
107 (dwarf_offdie_types): New function.
108 * libdw.h: Declare it.
109 * libdw.map (ELFUTILS_0.148): Add it.
110
Roland McGrath5cc030d2010-06-20 17:25:35 -0700111 * libdwP.h (CUDIE): Use cu_data.
112 * dwarf_formblock.c: Likewise.
113 * dwarf_formref_die.c: Likewise.
114 * dwarf_diecu.c: Use CUDIE macro.
115 * dwarf_formaddr.c: Use cu_sec_idx.
116
Roland McGrathc70ebc02010-06-16 02:21:26 -07001172010-06-16 Roland McGrath <roland@redhat.com>
118
Roland McGrath3e0f7d12010-06-15 23:10:35 -0700119 * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
120 we don't repeat a CU lookup we've already done. Handle
121 DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
122
123 * libdw_findcu.c (__libdw_intern_next_unit): New function,
124 broken out of ...
125 (__libdw_findcu): ... here. Call it.
126 * libdwP.h: Declare it.
127 (struct Dwarf): New member next_tu_offset.
128
129 * dwarf_sig8_hash.c: New file.
130 * dwarf_sig8_hash.h: New file.
131 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
132 * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
133 defining NO_UNDEF.
134 * libdwP.h (struct Dwarf): New member sig8_hash.
135 * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
136 * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
137
138 * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
139 (dwarf_nextcu): ... here. Call it.
140 * libdw.h: Declare it.
141 * libdwP.h: Add INTDECL.
142 * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
143 * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
144
145 * libdwP.h (cu_sec_idx, cu_data): New functions.
146 Use .debug_types when CU is a TU.
147 * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
148 * dwarf_siblingof.c: Likewise.
149 * dwarf_formstring.c: Likewise.
150 * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
151 * dwarf_getlocation.c (dwarf_getlocation): Likewise.
152 (dwarf_getlocation_addr): Likewise.
153
154 * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
155 (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
156 .debug_types header size instead of .debug_info header size.
157 (CUDIE): Use it.
158 * dwarf_diecu.c: Update caller.
159 * dwarf_getaranges.c: Likewise.
160 * dwarf_nextcu.c: Likewise.
161 * libdw_findcu.c (__libdw_findcu): Initialize new members.
162
Roland McGrath3e4b5bb2010-06-16 03:40:56 -0700163 * fde.c (fde_by_offset): Renamed to ...
164 (__libdw_fde_by_offset): ... this, made global and internal_function.
165 Don't take ADDRESS argument.
166 (__libdw_find_fde): Update caller. Do address sanity check here.
167 * cfi.h: Declare __libdw_fde_by_offset.
168 * cfi.c (dwarf_cfi_validate_fde): New function.
169 * libdw.h: Declare it.
170 * libdw.map (ELFUTILS_0.148): Add it.
171
Roland McGrath5f4b5082010-06-16 03:11:57 -0700172 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
173 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
174
Roland McGrath7934ded2010-06-16 03:04:09 -0700175 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
176 Don't assume DW_EH_PE_aligned refers to native address size.
177
Roland McGrathc70ebc02010-06-16 02:21:26 -0700178 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
179 address.
180
Roland McGrathc70cf4e2010-06-18 17:01:05 -07001812010-06-17 Roland McGrath <roland@redhat.com>
182
183 * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
184 op_index.
185 * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
186 into an inner inline function. Set new fields. Check all fields for
187 overflow when setting.
188 * dwarf_lineisa.c: New file.
189 * dwarf_linediscriminator.c: New file.
190 * dwarf_lineop_index.c: New file.
191 * Makefile.am (libdw_a_SOURCES): Add them.
192 * libdw.map (ELFUTILS_0.148): Add them.
193 * libdw.h: Declare them.
194
Roland McGrath3f633072010-06-15 22:17:04 -07001952010-06-16 Roland McGrath <roland@redhat.com>
196
Roland McGrath4a87dfa2010-06-16 16:35:10 -0700197 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
198
Roland McGrathb75f4442010-06-15 22:24:19 -0700199 * fde.c (fde_by_offset): Renamed to ...
200 (__libdw_fde_by_offset): ... this, made global and internal_function.
201 Don't take ADDRESS argument.
202 (__libdw_find_fde): Update caller. Do address sanity check here.
203 * cfi.h: Declare __libdw_fde_by_offset.
Roland McGrath9bcd2652010-06-15 22:17:20 -0700204 * cfi.c (dwarf_cfi_validate_fde): New function.
205 * libdw.h: Declare it.
Roland McGrath3f633072010-06-15 22:17:04 -0700206 * libdw.map (ELFUTILS_0.148): Add it.
207
Roland McGrath0b3363e2010-06-01 15:42:14 -0700208 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
209 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
Roland McGrath827d4d12010-06-01 20:17:36 -0700210
211 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
212 Don't assume DW_EH_PE_aligned refers to native address size.
Roland McGrath1a030b32010-06-01 20:11:40 -0700213
214 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
Roland McGrath675229b2010-06-01 20:10:19 -0700215 address.
216
2172010-06-15 Roland McGrath <roland@redhat.com>
Roland McGrath52123962010-06-01 19:05:08 -0700218
219 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
Roland McGrath7fac1ce2010-06-01 15:56:58 -0700220 DW_FORM_ref_addr.
221 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
Roland McGrath0b3363e2010-06-01 15:42:14 -0700222 here, since we don't support it yet.
223
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200224 * dwarf_next_cfi.c: Handle version 4 format.
225
Mark Wielaard08e71db2010-05-31 15:39:15 +0200226 * dwarf_getsrclines.c: Handle version 4 format.
227
2282010-06-01 Roland McGrath <roland@redhat.com>
229
230 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200231 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
232
Eduardo Santiagod2240bc2010-05-28 14:26:52 -0700233 * libdwP.h (CIE_VERSION): Remove unused macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700234
Ulrich Drepper49fe7142010-05-28 20:32:37 -0700235 * dwarf_getsrclines.c: Fix version field test.
236 * libdwP.h (DWARF_VERSION): Remove useless macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700237
Roland McGrathcfa5da22010-05-27 13:49:25 -0700238 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
239
240 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
241
242 * libdw_findcu.c (__libdw_findcu): Accept version 4.
Roland McGrath688f7fc2010-05-08 03:22:59 -0700243
2442010-05-31 Mark Wielaard <mjw@redhat.com>
245
246 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
247 * libdw.h (dwarf_cfi_cie_p): ... here.
248
2492010-05-31 Mark Wielaard <mjw@redhat.com>
250
251 * dwarf.h: Fix DW_LANG_Python constant.
Roland McGrath0ab97832010-04-26 11:50:27 -0700252
2532010-05-28 Eduardo Santiago <santiago@redhat.com>
Roland McGrath3b10ac02010-04-26 18:45:36 -0700254
255 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
256 thing.
257
2582010-05-27 Roland McGrath <roland@redhat.com>
Roland McGrath0ab97832010-04-26 11:50:27 -0700259
260 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
261 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
262
2632010-05-08 Roland McGrath <roland@redhat.com>
264
265 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
Roland McGrath3f9d9552010-04-22 20:51:07 -0700266 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
267 (getlocation): Update caller.
268 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
269 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
270 * libdwP.h: Update decl.
271
2722010-04-26 Roland McGrath <roland@redhat.com>
Roland McGrath8068e062010-03-10 23:49:13 -0800273
274 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
275 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
276 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
Roland McGrath22359e22010-02-15 15:57:03 -0800277 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
278
279 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
280 Prepend DW_OP_call_frame_cfa if true.
Mark Wielaardee29a312010-02-02 20:44:53 +0100281 (getlocation): Update caller.
282 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
283 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
284 * libdwP.h: Update decl.
Roland McGrathf95760a2010-01-07 20:24:34 -0800285
2862010-04-22 Roland McGrath <roland@redhat.com>
287
288 * cfi.c (execute_cfi): Never return without cleanup.
Roland McGrath019d9fb2010-01-05 13:36:07 -0800289 Free FS on failure.
290 (cie_cache_initial_state): Adjust caller to expect that free.
Roland McGrathebc5c882010-01-05 22:53:31 -0800291 (__libdw_frame_at_address): Likewise.
292
2932010-03-10 Roland McGrath <roland@redhat.com>
294
295 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
296
2972010-02-15 Roland McGrath <roland@redhat.com>
298
299 * Makefile.am: Use config/eu.am for common stuff.
Roland McGrath0cb19832010-01-05 13:38:15 -0800300
3012010-02-02 Mark Wielaard <mjw@redhat.com>
Roland McGrath019d9fb2010-01-05 13:36:07 -0800302
303 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
Roland McGrath888381b2009-11-21 17:03:34 -0800304
3052010-01-07 Roland McGrath <roland@redhat.com>
306
307 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
308
Roland McGrath9ca7bc42009-10-15 12:26:49 -07003092010-01-05 Roland McGrath <roland@redhat.com>
310
311 * dwarf_aggregate_size.c: New file.
312 * Makefile.am (libdw_a_SOURCES): Add it.
313 * libdw.h: Declare it.
Roland McGrath7e0aecd2009-09-17 15:02:34 -0700314 * libdwP.h: Add INTDECL.
315 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
316
317 * dwarf_srclang.c: Add INTDEF.
318 * libdwP.h: Add INTDECL.
319
Roland McGrathf0371042009-09-10 12:39:09 -0700320 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
321
322 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
323
3242009-11-21 Roland McGrath <roland@redhat.com>
325
326 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
327 non-constant forms.
Mark Wielaard418ae4c2009-09-09 20:59:26 +0200328
3292009-10-15 Roland McGrath <roland@redhat.com>
330
331 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
Josh Stonecc93cc42009-08-21 18:04:44 -0700332 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
333
3342009-09-17 Roland McGrath <roland@redhat.com>
335
Roland McGrath08277ba2009-08-10 15:08:08 -0700336 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
337 argument a pointer to const.
338 * libdw.h: Update decl.
339
Roland McGrathebfb6482009-08-09 15:40:52 -07003402009-09-10 Roland McGrath <roland@redhat.com>
341
342 * dwarf_getlocation.c (store_implicit_value): New function.
343 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
344 (dwarf_getlocation_implicit_value): New function.
345 * libdw.h: Declare it.
346 * libdw.map (ELFUTILS_0.143): Add it.
347
3482009-09-09 Mark Wielaard <mjw@redhat.com>
349
350 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
351
3522009-08-21 Josh Stone <jistone@redhat.com>
353
Roland McGrathde69d522009-08-07 18:26:19 -0700354 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
355
3562009-08-10 Roland McGrath <roland@redhat.com>
357
358 * dwarf_getscopevar.c: Use dwarf_diename.
359
3602009-08-09 Roland McGrath <roland@redhat.com>
361
362 * libdw.map (ELFUTILS_0.143): New version set,
363 inherits from ELFUTILS_0.142.
Roland McGrathaf800142009-07-22 13:55:50 -0700364 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
365 alias in the ELFUTILS_0.122 version set and the default in the new set.
366 * dwarf_srclang.c: Likewise.
367 * dwarf_decl_file.c: Likewise.
368 * dwarf_decl_line.c: Likewise.
369 * dwarf_decl_column.c: Likewise.
370 * dwarf_bytesize.c: Likewise.
371 * dwarf_bitsize.c: Likewise.
372 * dwarf_bitoffset.c: Likewise.
373
3742009-08-07 Roland McGrath <roland@redhat.com>
375
376 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
377 * dwarf_srclang.c: Likewise.
378 * dwarf_decl_file.c: Likewise.
379 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
Roland McGrathe23e9e72009-07-21 18:14:52 -0700380 * dwarf_bytesize.c: Likewise.
381 * dwarf_bitsize.c: Likewise.
382 * dwarf_bitoffset.c: Likewise.
383
3842009-07-22 Roland McGrath <roland@redhat.com>
385
386 * dwarf_frame_cfa.c: Change calling convention.
387 * libdw.h: Update decl.
Roland McGrath96349ff2009-07-20 11:51:41 -0700388
389 * dwarf_frame_register.c: Change calling/return-value convention for
390 value-only results and undefined/same_value.
391 * libdw.h: Update decl.
392
Roland McGratha6abdfd2009-07-16 17:40:19 -0700393 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
394 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
Roland McGrathe160cc92009-07-16 17:48:27 -0700395 return that value instead.
396 (getlocation): Update caller.
397 * dwarf_frame_cfa.c: Likewise.
398 * libdwP.h: Update decl.
399
Roland McGratha6abdfd2009-07-16 17:40:19 -07004002009-07-21 Roland McGrath <roland@redhat.com>
401
402 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
403 Fix loop iteration after skipping a bogus or useless CU.
404
405 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
406 absence, not DWARF_E_NO_DEBUG_LINE.
Roland McGrath7dd94642009-07-15 11:14:23 -0700407
4082009-07-20 Roland McGrath <roland@redhat.com>
409
410 * dwarf_getlocation.c (__libdw_intern_expression):
411 Handle DW_OP_stack_value.
Roland McGrath80893432009-07-13 12:08:55 -0700412
4132009-07-16 Roland McGrath <roland@redhat.com>
414
415 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700416 reject others when CU's version > 3.
417
Roland McGrath3c84db32009-06-24 17:41:40 -0700418 * dwarf_formflag.c: Handle DW_FORM_flag_present.
419
420 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
421 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
422 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
423 and DW_AT_const_expr.
424 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
425 and DW_FORM_ref_sig8.
426
4272009-07-15 Roland McGrath <roland@redhat.com>
428
429 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
430 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
431
4322009-07-13 Roland McGrath <roland@redhat.com>
433
434 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
435
4362009-07-08 Roland McGrath <roland@redhat.com>
437
438 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
439 dwfl_module_eh_cfi.
440
441 * libdwP.h (struct Dwarf): Add member `cfi'.
442 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
443 * dwarf_getcfi.c: New file.
444 * dwarf_getcfi_elf.c: New file.
445 * dwarf_cfi_end.c: New file.
446 * dwarf_cfi_addrframe.c: New file.
447 * dwarf_frame_cfa.c: New file.
448 * dwarf_frame_register.c: New file.
449 * dwarf_frame_return_address_register.c: New file.
450 * Makefile.am (libdw_a_SOURCES): Add them.
451 * unwind.h: Declare those functions.
452 * libdw.map (ELFUTILS_0.142): Export them.
453
454 * dwarf_getlocation.c (__libdw_intern_expression): New function,
455 broken out of ...
456 (getlocation): ... here, call it.
457 * libdwP.h: Declare it.
458
459 * cie.c: New file.
460 * fde.c: New file.
461 * frame-cache.c: New file.
462 * cfi.c: New file.
463 * cfi.h: New file.
464 * encoded-value.h: New file.
465 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
466 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
467 * dwarf_error.c (errmsgs): Add element for it.
468
469 * dwarf_next_cfi.c: New file.
470 * Makefile.am (libdw_a_SOURCES): Add it.
Roland McGrath6e1f4652009-07-08 14:48:34 -0700471 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
472 Declare dwarf_next_cfi.
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700473 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
474 Add dwarf_next_cfi.
475
476 * memory-access.h [! ALLOW_UNALIGNED]
Roland McGrath05c4e042009-06-18 13:56:02 -0700477 (read_2ubyte_unaligned): Renamed to ...
478 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
479 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
480 (read_2sbyte_unaligned): Likewise.
481 (read_4ubyte_unaligned): Likewise.
482 (read_4sbyte_unaligned): Likewise.
483 (read_8ubyte_unaligned): Likewise.
484 (read_8sbyte_unaligned): Likewise.
485
Ulrich Drepper99d23722009-06-14 20:19:45 -0700486 * libdwP.h (IDX_eh_frame): Remove it.
487 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
488
4892009-07-08 Roland McGrath <roland@redhat.com>
490
491 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
492
493 * dwarf_getlocation.c (check_constant_offset): New function.
494 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
495 handle DW_AT_data_member_location of data[48] as constant offset.
496
4972009-06-18 Roland McGrath <roland@redhat.com>
498
499 * libdwP.h (__libdw_read_address_inc): Constify.
500 (__libdw_read_offset_inc): Likewise.
501 * dwarf_getaranges.c: Likewise.
502 * dwarf_getlocation.c: Likewise.
503 * dwarf_getsrclines.c: Likewise.
504 * dwarf_nextcu.c: Likewise.
505
5062009-05-05 Petr Machata <pmachata@redhat.com>
507
508 * libdwP.h (__libdw_formptr): Declare new function.
509 * dwarf_formudata.c: Implement it here.
510 * dwarf_getlocation.c (dwarf_getlocation_addr):
511 Call it instead of hand-rolled offset handling code.
512 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
513 * dwarf_ranges.c (dwarf_ranges): Likewise.
514
5152009-05-04 Petr Machata <pmachata@redhat.com>
516
517 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
518 * dwarf_ranges.c: Implement it here.
519 (dwarf_ranges): Call it.
Roland McGrathe2eabd82009-05-07 18:54:52 -0700520 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
521
5222009-04-23 Petr Machata <pmachata@redhat.com>
523
524 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
525 of read_*ubyte_unaligned.
Petr Machataf3df61f2009-05-07 21:02:33 +0200526 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
527 * dwarf_formstring.c (dwarf_formstring): Likewise.
528 * dwarf_formudate.c (dwarf_formudata): Likewise.
529 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
530 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
Roland McGrath2fb90512009-04-15 14:47:13 -0700531 * dwarf_getpubnames.c (get_offsets): Likewise.
532 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
533
5342009-04-23 Petr Machata <pmachata@redhat.com>
535
Roland McGrath6a4bdd92009-04-01 14:25:29 -0700536 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
537 __libdw_read_addr, __libdw_read_off): Add four new internal
538 functions.
539
Roland McGrathc5acb302009-01-28 18:28:52 -08005402009-05-07 Roland McGrath <roland@redhat.com>
541
Roland McGrath03288f02009-01-28 22:00:54 -0800542 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
543 return value and OFFSET argument, not CU-relative. Only fetch the
544 attribute data when called with OFFSET of 0.
Roland McGrathc5acb302009-01-28 18:28:52 -0800545
5462009-05-07 Petr Machata <pmachata@redhat.com>
Roland McGrathf46272a2009-01-26 18:36:16 -0800547
548 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
549 DW_AT_macro_info attribute of CU DIE.
550
Roland McGrathd31505f2009-01-25 19:37:33 -08005512009-04-15 Roland McGrath <roland@redhat.com>
552
553 * dwarf.h (DW_CIE_ID): Removed.
554 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
Roland McGrath3bf7a092009-01-23 16:34:07 -0800555
5562009-04-01 Roland McGrath <roland@redhat.com>
557
558 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
559
Roland McGrathafdd51e2009-01-22 02:26:24 -08005602009-01-28 Roland McGrath <roland@redhat.com>
561
562 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
563 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
Roland McGrath1ea4fdc2009-01-21 19:14:37 -0800564
565 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
566
5672009-01-26 Roland McGrath <roland@redhat.com>
568
569 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
Roland McGrath24b03302009-01-17 14:34:13 -0800570
5712009-01-25 Roland McGrath <roland@redhat.com>
Roland McGrath54456d82009-01-17 14:39:35 -0800572
573 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
574
Roland McGrath5513e642009-01-11 01:35:11 -08005752009-01-23 Roland McGrath <roland@redhat.com>
576
577 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
578 Put these rules under if MAINTAINER_MODE.
579
5802009-01-22 Roland McGrath <roland@redhat.com>
581
Roland McGrath24b03302009-01-17 14:34:13 -0800582 * dwarf.h: Add DW_OP_GNU_encoded_addr.
583
Ulrich Drepper7e678fa2009-01-10 18:02:05 -08005842009-01-21 Roland McGrath <roland@redhat.com>
585
586 * Makefile.am (CLEANFILES): Renamed to ...
587 (MOSTLYCLEANFILES): ... here.
Roland McGrathe06762c2009-01-08 13:39:08 -0800588 (CLEANFILES): New variable, add known-dwarf.h.
589
5902009-01-17 Roland McGrath <roland@redhat.com>
591
Roland McGrath7e827f22009-01-06 02:09:50 -0800592 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
Roland McGrath1f6d2012008-12-31 00:21:04 -0800593 Make it unconditional.
594 (BUILT_SOURCES): Updated.
595
596 * dwarf.h: Add description comments for DW_LANG_* values.
Roland McGrathbca43152009-01-05 23:59:32 -0800597
598 * Makefile.am [MAINTAINER_MODE]
599 ($(srcdir)/known-dwarf.h): New target.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800600 (BUILT_SOURCES): Add it.
601
Roland McGrathc462c632009-01-06 01:04:31 -0800602 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800603
6042009-01-10 Ulrich Drepper <drepper@redhat.com>
605
606 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
Roland McGrathb4d6f0f2008-08-25 22:55:17 +0000607
6082009-01-08 Roland McGrath <roland@redhat.com>
609
610 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
611
Ulrich Drepper8d358d92008-01-22 06:34:31 +00006122008-01-06 Roland McGrath <roland@redhat.com>
613
614 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
615 Reorder members.
616 * dwarf_haschildren.c: Return -1 for error case, not 0.
617
618 * Makefile.am (libdw.so): Link in $(zip_LIBS).
619
Ulrich Drepperb27ce002008-01-18 20:08:54 +00006202009-01-06 Ulrich Drepper <drepper@redhat.com>
621
622 * dwarf.h: Add definition for unwind and call frame information.
623
624 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000625 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
626
6272008-08-15 Roland McGrath <roland@redhat.com>
628
629 * libdw.map (ELFUTILS_0.136): New version set, inherits from
630 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
631
6322008-01-21 Ulrich Drepper <drepper@redhat.com>
633
634 * dwarf_child.c: Minor optimizations.
635 * dwarf_getattrs.c: Likewise.
636 * dwarf_getpubnames.c: Likewise.
637 * dwarf_siblingof.c: Likewise.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +0000638 * dwarf_tag.c: Likewise.
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000639
6402008-01-18 Ulrich Drepper <drepper@redhat.com>
641
642 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
643 of DWARF_VERSION comparison, just fail if the file's version is newer.
644
6452008-01-17 Nick Clifton <nickc@redhat.com>
646
647 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
648 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
649 (DWARF3_LENGTH_64_BIT): New define.
650 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
651 * dwarf_getpubnames: Include dwarf.h.
652 (get_offsets): Use the new definitions.
653 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
654 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
655 (dwarf_nextcu): Use the new definitions.
656
657 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
658 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
659 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
660 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
661
662 * dwarf_getpubnames (get_offsets): Replace assertion with test and
663 error return.
664
665 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
666
667 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
668 Set the address in the return structure to the address of the next
669 non-sibling die, if there is no sibling and the return pointer is
670 not the same as the die pointer.
Ulrich Dreppere219f1c2008-01-09 05:49:49 +0000671 * libdw.h: Expand the description of the dwarf_siblingof prototype.
672
673 * dwarf_child.c: Fix typo in comment.
674
675 * libdwP.h (DWARF_VERSION): Change to 3.
676
Roland McGrathe4c22ea2007-10-23 13:07:39 +0000677 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
678 not have a initialised valp pointer.
679
680 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
681 the end of the attributes is reached. When the callback fails,
682 return the address of the failing attribute, not the address of
683 its successor.
684 * libdw.h: Expand the description of the dwarf_getattrs prototype.
685
686 * dwarf_child.c (__libdw_find_attr): Use the new definition.
687 (dwarf_child): Likewise.
688 * dwarf_tag.c (__libdw_findabbrev): Likewise.
689 (dwarf_tag): Likewise.
690
6912008-01-08 Roland McGrath <roland@redhat.com>
692
693 * Makefile.am (euinclude): Variable removed.
694 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
695 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
Ulrich Drepperb597dfa2007-10-16 05:21:27 +0000696
6972007-10-17 Roland McGrath <roland@redhat.com>
698
699 * libdw.h (__deprecated_attribute__): New macro.
700 (dwarf_formref): Mark it deprecated.
701 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
702 (dwarf_formref): ... here. Call it. Remove INTDEF.
Roland McGrath59ea7f32007-10-04 08:50:09 +0000703 * libdwP.h: Remove INTDECL.
704 Declare __libdw_formref.
705 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
706 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
707
708 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
709 needs to check CU->version.
710
Roland McGrath057ec6b2007-10-02 20:55:05 +0000711 * libdwP.h (struct Dwarf_CU): New member `version'.
712 * libdw_findcu.c (__libdw_findcu): Initialize it.
713
714 * dwarf_child.c: Return 1 for null entry as first child.
715
Roland McGrathd1a48172007-08-07 19:51:01 +00007162007-10-05 Roland McGrath <roland@redhat.com>
717
718 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
719
720 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
721 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
722
7232007-10-03 Roland McGrath <roland@redhat.com>
724
725 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
726 and dwfl_build_id_find_debuginfo.
Roland McGrath87d47802007-07-16 22:23:37 +0000727
728 * libdw.map (ELFUTILS_0.130): New version set, inherits from
729 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
730
7312007-10-02 Roland McGrath <roland@redhat.com>
Roland McGrath43da9892007-04-16 23:13:37 +0000732
733 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
734 structure_type.
735
Roland McGrathbf2ee482007-04-05 09:27:36 +00007362007-08-07 Roland McGrath <roland@redhat.com>
737
Roland McGrath43da9892007-04-16 23:13:37 +0000738 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
739 error code is DWARF_E_NOERROR (0).
740
741 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
742 Fix typo in __libdw_visit_scopes argument.
743
744 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
745 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
746
7472007-07-03 Roland McGrath <roland@redhat.com>
Roland McGrathbf2ee482007-04-05 09:27:36 +0000748
749 * libdw.h (__extern_inline): New macro.
750 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
751
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00007522007-04-16 Roland McGrath <roland@redhat.com>
753
754 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
755
7562007-04-05 Roland McGrath <roland@redhat.com>
757
758 * dwarf_getsrcdirs.c: New file.
759 * Makefile.am (libdw_a_SOURCES): Add it.
Ulrich Drepper6258e742007-03-13 06:22:40 +0000760 * libdw.h: Declare dwarf_getsrcdirs.
761 * libdw.map (ELFUTILS_0.127): Add it.
762
763 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
764 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
765 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
766 Save DIRARRAY in the Dwarf_Files.
767
768 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
Ulrich Drepper903c1162007-02-15 19:40:37 +0000769 address to check for all-ones base address entry. Check directly.
770 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
771
7722007-03-25 Roland McGrath <roland@redhat.com>
Ulrich Drepperaa915fd2007-02-05 07:25:33 +0000773
774 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
775 Return NULL when freeing RESULT on error.
776 (global_read, scngrp_read): Check return value from check_section,
777 break out of loop after it has freed RESULT.
778 (valid_p): Handle null argument.
779
Roland McGrath8190db62006-12-17 23:56:51 +00007802007-03-12 Roland McGrath <roland@redhat.com>
781
782 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
783
7842007-03-04 Roland McGrath <roland@redhat.com>
Roland McGrathc373d852006-10-10 00:25:21 +0000785
786 * libdw.map (ELFUTILS_0.127): New version set, inherits from
787 ELFUTILS_0.126. Add dwfl_module_addrsym.
788
7892007-02-10 Roland McGrath <roland@redhat.com>
790
791 * dwarf.h (DW_OP_fbreg): Comment fix.
792
7932007-02-03 Roland McGrath <roland@redhat.com>
794
795 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
796 * libdw.map (ELFUTILS_0.126): New version set, inherits from
Ulrich Drepper077c65f2006-07-12 19:54:51 +0000797 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
798 exported in the past.
799
8002006-12-17 Roland McGrath <roland@redhat.com>
801
802 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
803 address when the CU is missing attributes due to buggy GCC.
804
Ulrich Dreppere1812e12006-07-12 07:46:03 +00008052006-08-29 Roland McGrath <roland@redhat.com>
806
807 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
808
809 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
810 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
811
Ulrich Drepper3be74472006-05-27 18:15:40 +0000812 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
813 result is aligned. Adjust NEWP->remaining here for this allocation.
814 * libdwP.h: Update decl.
815 (libdw_alloc): Update caller.
Ulrich Dreppere7a73172006-05-22 18:16:45 +0000816
8172006-07-12 Ulrich Drepper <drepper@redhat.com>
818
819 * dwarf_child.c: Adjust for internal_function_def removal.
820 * dwarf_getabbrev.c: Likewise.
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +0000821 * dwarf_tag.c: Likewise.
822 * libdw_form.c: Likewise.
823 * memory-access.c: Likewise.
824
8252006-06-28 Roland McGrath <roland@redhat.com>
Roland McGrath2dade662006-02-28 22:13:20 +0000826
827 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
828
829 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
830 dwfl_module_getsym.
831
Roland McGrath08333122006-02-27 04:54:26 +00008322006-05-27 Ulrich Drepper <drepper@redhat.com>
833
834 * libdw.h: Add extern "C".
835
Roland McGrath50ffcbf2005-12-23 01:51:43 +00008362006-05-22 Ulrich Drepper <drepper@redhat.com>
837
838 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
839 aranges information.
Roland McGrathdec3a242005-12-12 08:35:55 +0000840
8412006-05-21 Ulrich Drepper <drepper@redhat.com>
842
843 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
844 dwarf_haschildren.
Roland McGrathf64a4422005-12-09 23:40:30 +0000845
8462006-02-28 Roland McGrath <roland@redhat.com>
847
848 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
849 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
850 values from DWARF 3.0.
Roland McGrath994b4892005-12-05 22:46:21 +0000851
8522006-02-22 Roland McGrath <roland@redhat.com>
853
854 * libdw.map: Bump to 0.120; export dwfl_version.
Roland McGrathe47ab762005-11-17 03:16:00 +0000855
8562005-12-22 Roland McGrath <roland@redhat.com>
857
858 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
859
8602005-12-12 Roland McGrath <roland@redhat.com>
861
862 * dwarf_ranges.c: Copy CU base address-finding code from
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000863 dwarf_getlocation.
864
8652005-12-09 Roland McGrath <roland@redhat.com>
866
867 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
868 Delay CU base lookup until it's needed.
869 If CU base lookup fails with no error, flag invalid DWARF.
870
8712005-11-25 Roland McGrath <roland@redhat.com>
872
873 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
874
Roland McGrath6724c902005-10-28 07:07:19 +00008752005-11-15 Roland McGrath <roland@redhat.com>
876
877 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
878
8792005-11-13 Roland McGrath <roland@redhat.com>
880
881 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
882
8832005-10-27 Roland McGrath <roland@redhat.com>
884
885 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
886 don't match end_sequence markers.
887
888 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
889 before normal records at the same address.
890 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
891 marker.
892
8932005-10-26 Roland McGrath <roland@redhat.com>
894
895 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
896 * dwarf_func_file.c: Renamed to ...
897 * dwarf_decl_file.c: ... here.
898 * dwarf_func_col.c: Renamed to ...
899 * dwarf_decl_column.c: ... here.
900 * dwarf_func_line.c: Renamed to ...
901 * dwarf_decl_line.c: ... here.
902 (dwarf_func_line): Renamed to ...
903 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
904 (__libdw_func_intval): Renamed __libdw_attr_intval.
905 * dwarf_func_name.c: File removed.
906 * dwarf_func_lowpc.c: File removed.
907 * dwarf_func_highpc.c: File removed.
908 * dwarf_func_entrypc.c: File removed.
909 * dwarf_func_die.c: File removed.
910 * Makefile.am (libdw_a_SOURCES): Updated.
911 * libdw.h: Update decls.
912 (Dwarf_Func): Type removed.
913 * libdwP.h: Update decls.
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000914 (struct Dwarf_Func_s): Type removed.
915 * libdw.map: Updated.
916
917 * libdwP.h (CUDIE): New macro.
918 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
919 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
920 * dwarf_ranges.c (dwarf_ranges): Likewise.
921
922 * dwarf_getloclist.c: Renamed to ...
923 * dwarf_getlocation.c: ... here.
924 (getloclist): Renamed to getlocation.
925 (dwarf_getloclist): Renamed to dwarf_getlocation.
926 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
927 * Makefile.am (libdw_a_SOURCES): Updated.
928 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
929 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
930 (Dwarf_Loc): Renamed Dwarf_Op.
931 * libdwP.h (struct loc_s): Update use.
932 * libdw.map: Update map.
933
934 * dwarf_entry_breakpoints.c: Use the second line record within the
935 function, regardless of its source location data.
936
9372005-10-25 Roland McGrath <roland@redhat.com>
938
939 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
940
941 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
942
9432005-10-14 Roland McGrath <roland@redhat.com>
944
945 * dwarf_diecu.c (dwarf_diecu): New file.
946 * Makefile.am (libdw_a_SOURCES): Add it.
947 * libdw.h: Declare dwarf_diecu.
948 * libdw.map: Export it.
949
950 * libdw.map: Bump to 0.116; export dwarf_ranges.
951
9522005-09-20 Roland McGrath <roland@redhat.com>
953
954 * dwarf_haspc.c: Use dwarf_ranges.
955 * dwarf_entry_breakpoints.c: Likewise.
956
957 * dwarf_ranges.c: New file.
958 * Makefile.am (libdw_a_SOURCES): Add it.
959 * libdw.h: Declare dwarf_ranges.
960 * libdwP.h: Add INTDECL.
961
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00009622005-09-14 Roland McGrath <roland@redhat.com>
963
964 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
965 prologue_end marker scanning loop.
966
9672005-09-11 Roland McGrath <roland@redhat.com>
Roland McGrath71e15a02005-08-27 10:33:26 +0000968
969 * dwarf.h: Comment typo fix.
970
9712005-09-07 Roland McGrath <roland@redhat.com>
972
973 * dwarf_entry_breakpoints.c: New file.
974 * Makefile.am (libdw_a_SOURCES): Add it.
975 * libdw.h: Declare dwarf_entry_breakpoints.
976
977 * dwarf_entrypc.c: New file.
978 * Makefile.am (libdw_a_SOURCES): Add it.
979 * libdw.h: Declare dwarf_entrypc.
980 * libdwP.h: Add INTDECL.
981
9822005-08-28 Ulrich Drepper <drepper@redhat.com>
983
984 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
985 (%.os): Use COMPILE.os.
986 (COMPILE.os): Filter out gconv options.
987
9882005-08-27 Roland McGrath <roland@redhat.com>
989
Roland McGrathd17fac72005-08-23 08:20:21 +0000990 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
991 __libdw_visit_scopes.
992
993 * dwarf_getscopes_die.c: New file.
994 * Makefile.am (libdw_a_SOURCES): Add it.
995 * libdw.h: Declare dwarf_getscopes_die.
996 * libdw.map: Bump to 0.115 and add it.
997
998 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
999 containing a DIE and its parent pointer, instead of just Dwarf_Die.
1000 Take two functions for both preorder and postorder visitors.
1001 * libdwP.h: Update decl.
1002 (struct Dwarf_Die_Chain): New type.
1003 * dwarf_func_inline.c: Update uses.
1004
1005 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
1006 Add INTDEF.
Roland McGrathf5fda7d2005-08-18 22:01:57 +00001007 * libdwP.h: Add INTDECL.
1008 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
1009
10102005-08-23 Roland McGrath <roland@redhat.com>
1011
Roland McGrath1ecb6062005-08-15 09:53:04 +00001012 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
1013 DW_AT_specification the same as DW_AT_abstract_origin.
1014
10152005-08-20 Roland McGrath <roland@redhat.com>
1016
1017 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
1018 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
1019 and dwfl_report_offline.
1020
10212005-08-19 Roland McGrath <roland@redhat.com>
1022
1023 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001024 Add dwfl_module_relocate_address, dwfl_module_relocations,
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001025 dwfl_module_relocation_info.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001026
10272005-08-18 Roland McGrath <roland@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001028
Roland McGrath4959bf82005-08-09 10:31:08 +00001029 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
1030 outermost scope in the results.
Roland McGrathb6312e12005-08-09 10:36:01 +00001031
10322005-08-15 Roland McGrath <roland@redhat.com>
Roland McGrath4959bf82005-08-09 10:31:08 +00001033
1034 * dwarf_func_inline.c: New file.
1035 * Makefile.am (libdw_a_SOURCES): Add it.
1036 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
Roland McGratha5a89682005-08-02 01:24:01 +00001037 * libdw.map: Add them.
1038
1039 * dwarf_func_die.c: New file.
1040 * Makefile.am (libdw_a_SOURCES): Add it.
1041 * libdw.h: Declare dwarf_func_die.
Ulrich Drepper18618fd2005-07-28 21:29:22 +00001042 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
1043
10442005-08-10 Ulrich Drepper <drepper@redhat.com>
1045
1046 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
Roland McGrath366784a2005-07-28 06:20:53 +00001047 of DW_LNS_set_epilog_begin.
1048
Roland McGrath18385902005-07-28 07:12:38 +000010492005-08-09 Roland McGrath <roland@redhat.com>
1050
1051 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
1052
1053 * dwarf_end.c: Add INTDEF.
1054 * dwarf_error.c (dwarf_errmsg): Likewise.
Roland McGrath366784a2005-07-28 06:20:53 +00001055 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
1056
10572005-08-01 Roland McGrath <roland@redhat.com>
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001058
1059 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
1060 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1061
10622005-07-28 Ulrich Drepper <drepper@redhat.com>
1063
1064 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
1065 (libdw_a_LIBADD): Add all files from libdwfl.a.
1066
10672005-07-27 Roland McGrath <roland@redhat.com>
1068
1069 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
1070 along with ../libebl/libebl.a and ../lib/libeu.a;
1071 depend on ../libelf/libelf.so.
1072 (libdw_so_LDADD): New variable.
1073 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
1074
1075 * libdw.map: Define an empty base version and move all symbols to
1076 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
1077
10782005-07-23 Ulrich Drepper <drepper@redhat.com>
1079
1080 * dwarf_error.c: Add internal alias for dwarf_errno.
1081 * libdwP.h: Declare __dwarf_errno_internal.
1082 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
1083
1084 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
1085 global_error.
1086
10872005-06-01 Roland McGrath <roland@redhat.com>
1088
1089 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
1090 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
1091
10922005-06-08 Roland McGrath <roland@redhat.com>
1093
1094 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
1095 (get_sleb128_step, get_sleb128): Likewise.
1096 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
1097 * dwarf_getloclist.c (getloclist): Likewise.
1098 * dwarf_formblock.c (dwarf_formblock): Likewise.
1099 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1100 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
1101 * dwarf_formref.c (dwarf_formref): Likewise.
1102 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
1103 * dwarf_formudata.c (dwarf_formudata): Likewise.
1104 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
1105 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
1106 * dwarf_tag.c (dwarf_tag): Likewise.
1107 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1108 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
1109 * libdw_form.c (__libdw_form_val_len): Likewise.
1110 * libdwP.h: Update decl.
1111
11122005-06-04 Roland McGrath <roland@redhat.com>
1113
1114 * memory-access.h (get_uleb128_rest_return): New macro.
1115 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
1116 (get_sleb128_rest_return): New macro.
1117 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
1118 * memory-access.c: New file.
1119 * Makefile.am (libdw_a_SOURCES): Add it.
1120 (DEFS): Add -DIS_LIBDW.
1121
11222005-05-31 Roland McGrath <roland@redhat.com>
1123
1124 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
1125 formref offset.
1126
11272005-05-30 Roland McGrath <roland@redhat.com>
1128
1129 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
1130 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
1131
1132 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
1133 BEGIN value. Instead, match base address entries separately for
1134 32/64 size cases.
1135
11362005-05-28 Roland McGrath <roland@redhat.com>
1137
1138 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
1139 past location expression contents.
1140
11412005-05-23 Roland McGrath <roland@redhat.com>
1142
1143 * dwarf_getsrclines.c: Comment typo fix.
1144
1145 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
1146 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
1147
11482005-05-22 Ulrich Drepper <drepper@redhat.com>
1149
1150 * libdwP.h: Only use INTDECL for alias prototypes.
1151
11522005-05-19 Roland McGrath <roland@redhat.com>
1153
1154 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
1155
1156 * dwarf_getscopevar.c: New file.
1157 * Makefile.am (libdw_a_SOURCES): Add it.
1158 * libdw.h: Declare dwarf_getscopevar.
1159
1160 * dwarf_getsrcfiles.c: Add INTDEF.
1161 * dwarf_haschildren.c: Likewise.
1162 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
1163
1164 * dwarf_getscopes.c: New file.
1165 * Makefile.am (libdw_a_SOURCES): Add it.
1166 * libdw.h: Declare dwarf_getscopes.
1167 * libdw.map: Add it.
1168
11692005-05-18 Roland McGrath <roland@redhat.com>
1170
1171 * libdwP.h (IDX_debug_ranges): New enum constant.
1172 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
1173 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
1174 * dwarf_error.c (errmsgs): Add it.
1175 * dwarf_haspc.c: New file.
1176 * libdw.h: Declare dwarf_haspc.
1177 * libdw.map: Add it.
1178 * libdwP.h: Add INTDECL.
1179
1180 * dwarf_attr_integrate.c: New file.
1181 * dwarf_hasattr_integrate.c: New file.
1182 * Makefile.am (libdw_a_SOURCES): Add them.
1183 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
1184 * libdw.map: Add them.
1185
1186 * dwarf_hasattr.c: Add INTDEF.
1187 * libdwP.h: Add INTDECL for it.
1188
1189 * dwarf_formref_die.c: New file.
1190 * Makefile.am (libdw_a_SOURCES): Add it.
1191 * libdw.h (dwarf_formref_die): Declare it.
1192 * libdwP.h (dwarf_formref_die): Add INTDECL.
1193 * libdw.map: Add it.
1194
1195 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
1196 of ...
1197 (dwarf_getloclist): ... here. Call them.
1198 (dwarf_addrloclists): New function.
1199 * libdw.h: Declare it.
1200 * libdw.map: Add it.
1201
1202 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
1203 DW_MACINFO_end_file. Recognize type 0 as terminator.
1204
12052005-05-05 Roland McGrath <roland@redhat.com>
1206
1207 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
1208
1209 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
1210 the line program does not produce all entries in ascending order.
1211
12122005-04-25 Ulrich Drepper <drepper@redhat.com>
1213
1214 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
1215 occurences (e.g., inlines) better.
1216
12172005-04-24 Ulrich Drepper <drepper@redhat.com>
1218
1219 * libdw.h (DWARF_END_ABBREV): Define.
1220 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
1221 end is reached.
1222 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
1223 of records reached.
1224 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
1225 as error of __libdw_getabbrev.
1226
12272005-04-04 Ulrich Drepper <drepper@redhat.com>
1228
1229 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
1230
1231 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
1232 results back to caller.
1233
12342005-04-04 Roland McGrath <roland@redhat.com>
1235
1236 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
1237
1238 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
1239 defn.
1240
12412005-04-04 Ulrich Drepper <drepper@redhat.com>
1242
1243 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
1244
1245 * dwarf_getsrc_file.c: New file.
1246 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
1247 * libdw.h: Declare dwarf_getsrc_file.
1248 * libdw.map: Add dwarf_getsrc_file.
1249
12502005-04-02 Ulrich Drepper <drepper@redhat.com>
1251
1252 * dwarf_func_entrypc.c: New file.
1253 * dwarf_func_col.c: New file.
1254 * dwarf_func_line.c: New file.
1255 * dwarf_func_file.c: New file.
1256 * libdw.h: Add prototypes for new functions.
1257 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
1258 dwarf_func_file.
1259 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
1260 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
1261 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
1262 Declare __libdw_func_intval and __dwarf_formsdata_internal.
1263 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
1264 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
1265
1266 * dwarf.h: Add some DWARF3 definitions.
1267
12682005-04-01 Ulrich Drepper <drepper@redhat.com>
1269
1270 * dwarf_getfuncs.c: New file.
1271 * dwarf_func_highpc.c: New file.
1272 * dwarf_func_lowpc.c: New file.
1273 * dwarf_func_name.c: New file.
1274 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
1275 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
1276 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
1277 and dwarf_func_name.
1278 * libdw.h: Add prototypes for new functions.
1279 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
1280 * dwarf_siblingof.c: Likewise.
1281 * dwarf_dieoffset.c: Likewise.
1282 * dwarf_highpc.c: Likewise.
1283 * dwarf_lowpc.c: Likewise.
1284 * libdwP.h: Add prototypes for internal functions.
1285 Define Dwarf_Func_s structure.
1286
12872005-03-29 Ulrich Drepper <drepper@redhat.com>
1288
1289 * libdw.h: Add padding in Dwarf_die.
1290
1291 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
1292 * dwarf_attr.c: Likewise.
1293 * dwarf_begin.c: Likewise.
1294 * dwarf_begin_elf.c: Likewise.
1295 * dwarf_bitoffset.c: Likewise.
1296 * dwarf_bitsize.c: Likewise.
1297 * dwarf_bytesize.c: Likewise.
1298 * dwarf_diename.c: Likewise.
1299 * dwarf_formaddr.c: Likewise.
1300 * dwarf_formblock.c: Likewise.
1301 * dwarf_formref.c: Likewise.
1302 * dwarf_formstring.c: Likewise.
1303 * dwarf_formudata.c: Likewise.
1304 * dwarf_getarange_addr.c: Likewise.
1305 * dwarf_getarangeinfo.c: Likewise.
1306 * dwarf_getaranges.c: Likewise.
1307 * dwarf_getloclist.c: Likewise.
1308 * dwarf_getmacros.c: Likewise.
1309 * dwarf_getsrc_die.c: Likewise.
1310 * dwarf_getsrcfiles.c: Likewise.
1311 * dwarf_getsrclines.c: Likewise.
1312 * dwarf_highpc.c: Likewise.
1313 * dwarf_lowpc.c: Likewise.
1314 * dwarf_nextcu.c: Likewise.
1315 * dwarf_offdie.c: Likewise.
1316 * dwarf_siblingof.c: Likewise.
1317 * dwarf_srclang.c: Likewise.
1318 * dwarf_tag.c: Likewise.
1319 * libdw_findcu.c: Likewise.
1320 * libdwP.h: Add prototypes for internal functions.
1321
1322 * dwarf_addrdie.c: New file.
1323 * dwarf_macro_opcode.c: New file.
1324 * dwarf_macro_param1.c: New file.
1325 * dwarf_macro_param2.c: New file.
1326 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
1327 * libdwP.h: Remove Dwarf_Macro definition.
1328 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
1329 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
1330 * libdw.map: Add entries for new functions.
1331
13322005-03-21 Ulrich Drepper <drepper@redhat.com>
1333
1334 * libdw.h: Handle broken gcc < 4.
1335
13362005-02-15 Ulrich Drepper <drepper@redhat.com>
1337
1338 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
1339
1340 * dwarf_begin_elf.c: Fix warnings.
1341 * dwarf_dieoffset.c: Likewise.
1342 * dwarf_end.c: Likewise.
1343 * dwarf_error.c: Likewise.
1344 * dwarf_getpubnames.c: Likewise.
1345
1346 * libdwP.h: Add new error values.
1347 * dwarf_error.c: Support new error values.
1348 * dwarf_getpubnames.c: Check parameter value.
1349
13502005-02-05 Ulrich Drepper <drepper@redhat.com>
1351
1352 * Makefile.am: Check for text relocations in constructed DSO.
1353
1354 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
1355
13562005-02-04 Ulrich Drepper <drepper@redhat.com>
1357
1358 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
1359 checks to not read over buffer boundaries for ill-formed DWARF data.
1360
13612004-09-25 Ulrich Drepper <drepper@redhat.com>
1362
1363 * dwarf_child.c: Make compile with gcc 4.0.
1364 * dwarf_error.c: Likewise.
1365 * dwarf_formblock.c: Likewise.
1366 * dwarf_getabbrev.c: Likewise.
1367 * dwarf_getattrs.c: Likewise.
1368 * dwarf_getsrclines.c: Likewise.
1369 * dwarf_tag.c: Likewise.
1370 * libdw_form.c: Likewise.
1371
13722004-01-20 Ulrich Drepper <drepper@redhat.com>
1373
1374 * Makefile.am: Support building with mudflap.
1375
1376 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
1377 * dwarf_getsrclines.c: Likewise.
1378 * dwarf_memory-access.h: Likewise.
1379
13802004-01-19 Ulrich Drepper <drepper@redhat.com>
1381
1382 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1383
1384 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1385 Third parameter of dwarf_getsrcfiles can be NULL.
1386
1387 * libdw.map: Add dwarf_getmacros.
1388 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1389 * dwarf_getmacros.c: New file.
1390
13912004-01-18 Ulrich Drepper <drepper@redhat.com>
1392
1393 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1394
1395 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1396
1397 * dwarf_getsrclines.c:
1398 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1399
1400 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1401
1402 * libdwP.h (_): Use elfutils domain.
1403
1404 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1405
1406 * dwarf_getsrclines.c: Fix typo in comment.
1407
14082004-01-17 Ulrich Drepper <drepper@redhat.com>
1409
1410 * Makefile.am: Support building with mudflap.
1411
14122004-01-16 Ulrich Drepper <drepper@redhat.com>
1413
1414 * memory-access.h: Add lots of const in case a pointer passed is const.
1415
1416 * dwarf_formflag.c: New file.
1417 * dwarf_getattrs.c: New file.
1418 * dwarf_error.c: Add new error value.
1419 * libdw.h: Add prototypes for new functions. Adjust prototype for
1420 dwarf_getpubnames.
1421 * libdw.map: Add new functions.
1422 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1423 to ptrdiff_t.
1424 * libdwP.h: Add new error value.
1425 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1426 dwarf_formflag.c.
1427
1428 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1429
14302004-01-12 Ulrich Drepper <drepper@redhat.com>
1431
1432 * dwarf_getarange_addr.c: New file
1433 * dwarf_getarangeinfo.c: New file.
1434 * dwarf_getaranges.c: New file.
1435 * dwarf_onerange.c: New file.
1436 * libdw.h: Declare new functions. Define Dwarf_Arange and
1437 Dwarf_Aranges.
1438 * libdw.map: Add new functions.
1439 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1440 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1441 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1442 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1443 * dwarf_error.c: Add new message.
1444
14452004-01-11 Ulrich Drepper <drepper@redhat.com>
1446
1447 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1448 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1449 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1450 * dwarf_error.c: Add another message.
1451 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1452 introduction.
1453 * dwarf_filesrc.c: Likewise.
1454 * dwarf_getsrcfiles.c: Likewise.
1455 * dwarf_getsrclines.c: Likewise.
1456 * dwarf_lineaddr.c: New file.
1457 * dwarf_linebeginstatement.c: New file.
1458 * dwarf_lineblock.c: New file.
1459 * dwarf_linecol.c: New file.
1460 * dwarf_lineendsequence.c: New file.
1461 * dwarf_lineepiloguebegin.c: New file.
1462 * dwarf_lineno.c: New file.
1463 * dwarf_lineprologueend.c: New file.
1464 * dwarf_onesrcline.c: New file.
1465 * dwarf_lineno.c: Change interface to store result in object pointed
1466 to by second parameter.
1467 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1468 prototype. Define Dwarf_Files and Dwarf_Lines.
1469 * libdw.map: Add new functions.
1470 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1471 * libdw_findcu.c: Don't initialize nlines field.
1472
1473 * dwarf_siblingof: Little optimization.
1474
1475 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1476 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1477 * libdwP.h (struct Dwarf): Add free_elf field.
1478
1479 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1480 dwarf_offabbrev.c.
1481 * dwarf_getstring.c: New file.
1482 * dwarf_offabbrev.c: New file.
1483 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1484 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1485 parameters. Don't allocate memory if not necessary and don't lookup
1486 previous results if no CU given.
1487 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1488 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1489 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1490 * libdwP.h: Change prototype for __libdw_getabbrev.
1491
1492 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1493 returning if this is wanted.
1494
14952004-01-09 Ulrich Drepper <drepper@redhat.com>
1496
1497 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1498 with offset_size value.
1499 * libdw.h: Adjust dwarf_nextcu prototype.
1500 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1501 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1502 member of new CU struct.
1503 * dwarf_formstring.c: Depend on offset_size not address_size for
1504 DW_FORM_strp handling.
1505 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1506
1507 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1508 failing lookup.
1509 (dwarf_tag): Correctly recognize failed lookup.
1510
1511 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1512 function noop_free.
1513 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1514 * dwarf_formblock.c: New file.
1515 * dwarf_getloclist.c: Rewrite to handle a single block.
1516 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1517 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1518 dwarf_getloclistent declaration.
1519 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1520 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1521 Add locs member to struct Dwarf_CU.
1522 * libdw_fundcu.c: Initialize locs member of new CU.
1523 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1524 Remove dwarf_getloclistent.c.
1525
15262004-01-07 Ulrich Drepper <drepper@redhat.com>
1527
1528 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1529 * libdwP.h: Likewise.
1530
1531 * dwarf_getloclist.c: New file.
1532 * dwarf_getloclistent.c: New file.
1533 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1534 Declare dwarf_getloclistent and dwarf_getloclist.
1535 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1536 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1537 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1538 dwarf_getloclist.c.
1539
1540 * dwarf_error.c: More error messages.
1541
15422004-01-06 Ulrich Drepper <drepper@redhat.com>
1543
1544 * dwarf_getsrclines.c: Remove debugging support.
1545
1546 * dwarf_getsrcfiles.c: New file.
1547 * dwarf_filesrc.c: New file.
1548 * libdw.h: Declare these functions. Define Dwarf_File.
1549 * libdwP.c: Adjust Dwarf_File_s definition.
1550 * libdw.map: Add these functions.
1551 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1552 dwarf_filesrc.c.
1553 * dwarf_getsrclines.c: Initialize cu->files.
1554
15552004-01-05 Ulrich Drepper <drepper@redhat.com>
1556
1557 * libdw.h: Add more nonnull function attributes.
1558
1559 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1560 * dwarf_end.c (cu_free): New function.
1561 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1562 * dwarf_error.c (errmsgs): Add new messages.
1563 * dwarf_getsrc_die.c: New file.
1564 * dwarf_getsrclines.c: New file.
1565 * dwarf_lineno.c: New file.
1566 * dwarf_linesrc.c: New file.
1567 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1568 instead of the *_inc-less variants.
Ulrich Drepper6fb34512010-05-28 20:28:04 -07001569 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001570 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1571 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1572 and dwarf_linesrc.
1573 * libdwP.h: Add more error codes.
1574 (struct Dwarf): Remove mem_tail.next member.
1575 (Dwarf_File): Define type.
1576 (struct Dwarf_Line_s): Define type.
1577 (struct Dwarf_CU): Add lines and nlines members.
1578 (libdw_alloc): Define local variable _tail and use it.
1579 Add some function attributes.
1580 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1581 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1582 * memory-access.h: Add unlikely for the endian conversion paths.
1583 * Makefile.am (AM_CFLAGS): Add -std parameter.
1584 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1585 dwarf_lineno, and dwarf_linesrc.
1586
15872003-08-11 Ulrich Drepper <drepper@redhat.com>
1588
1589 * Moved to CVS archive.