blob: ef9b3acdd8379803f761a23f14ceb6e0a505c881 [file] [log] [blame]
Jan Kratochvil904aec22013-04-30 14:27:16 +020012013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * libdw.map (ELFUTILS_0.156): New.
4
Mark Wielaardcdaaf212013-04-25 16:50:11 -040052013-04-24 Mark Wielaard <mjw@redhat.com>
6
7 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
8
Mark Wielaardd4744a72013-04-10 15:52:57 +020092013-04-10 Mark Wielaard <mjw@redhat.com>
10
11 * dwarf_formref_die.c (dwarf_formref_die): Reference size is only
12 equal to address size when we have a DW_FORM_ref_addr for DWARF
13 version 2.
14
Mark Wielaard60ef9ab2013-03-25 17:07:21 +0100152013-03-25 Mark Wielaard <mjw@redhat.com>
16
17 * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as
18 end_sequence.
19
Mark Wielaardf1b06b52013-03-12 12:02:51 +0100202013-03-12 Mark Wielaard <mjw@redhat.com>
21
22 * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit.
23 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
24
Mark Wielaard443304e2013-02-15 22:45:22 +0100252013-02-15 Mark Wielaard <mjw@redhat.com>
26
27 * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata,
28 not dbg->sectiondata.
29
Roland McGrath3999ce12013-01-07 14:53:37 -0800302013-01-07 Roland McGrath <roland@hack.frob.com>
31
32 * memory-access.h
33 [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro.
34 [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function.
35
Mark Wielaard59254422012-12-18 14:14:22 +0100362012-12-18 Mark Wielaard <mjw@redhat.com>
37
38 * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid.
39 (check_section): Likewise on error.
40 (scngrp_read): Likewise.
41 (dwarf_begin_elf): Likewise.
42
Petr Machatab5c0b032012-10-09 02:11:29 +0200432012-10-09 Petr Machata <pmachata@redhat.com>
44
45 * dwarf_getlocation.c (__libdw_intern_expression): Handle
46 DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret,
47 DW_OP_GNU_regval_type, DW_OP_GNU_entry_value,
48 DW_OP_GNU_deref_type, DW_OP_GNU_const_type.
49
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +0200502012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
51
Jan Kratochvil1d67c0c2012-10-08 23:51:31 +020052 * cfi.c: New include system.h.
53 (execute_cfi) (enough_registers): Clear new memory after realloc.
54
552012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
56
Jan Kratochvil07f35072012-10-08 23:34:35 +020057 * fde.c (__libdw_find_fde): Change <fde != NULL> to likely. Return
58 DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for
59 searched PC.
60
612012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
62
Jan Kratochvil96a9fc62012-10-08 23:08:01 +020063 * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new
64 loclist element DW_OP_call_frame_cfa before decoding the opcodes.
65 Remove the later DW_OP_call_frame_cfa push to RESULT.
66
672012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
68
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +020069 Code cleanup.
70 * fde.c (binary_search_fde): Remove always true <address >= start>
71 conditional. Move L initialization upwards.
72
Mark Wielaardf5519fc2012-08-24 13:54:52 +0200732012-08-24 Mark Wielaard <mjw@redhat.com>
74
75 * dwarf_begin_elf.c (check_section): Only probe for dwz multi files
76 when ENABLE_DWZ is defined.
77 * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is
78 defined.
79
Mark Wielaardf31c4412012-08-17 00:35:03 +0200802012-08-16 Mark Wielaard <mjw@redhat.com>
81
82 * Makefile.am (EXTRA_DIST): Add known-dwarf.h.
83 * dwarf.h (DW_LANG_Go): Update comment.
84 (DW_LANG_Mips_Assembler): Likewise.
85
Mark Wielaard775375e2012-06-22 12:02:45 +0200862012-06-27 Mark Wielaard <mjw@redhat.com>
87
88 * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
89 * dwarf_begin.c (dwarf_begin): Add INTDEF.
90 * dwarf_begin_elf.c (__check_build_id): New internal_function.
91 (try_debugaltlink): New function.
92 (open_debugaltlink): Likewise.
93 (check_section): Try open_debugaltlink for .gnu_debugaltlink.
94 * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if
95 necessary.
96 * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK.
97 * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt
98 is an error here.
99 * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt.
100 * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt.
101 * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset
102 calls.
103 * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call.
104 * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK.
105 (struct Dwarf): Add alt_dwarf and free_alt fields.
106 (__libdw_read_offset): Add dbg_ret argument, use to check with
107 __libdw_offset_in_section.
108 (__check_build_id): New function declaration.
109 (dwarf_begin): Define as INTDECL.
110 * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt
111 and DW_FORM_GNU_strp_alt.
112
Mark Wielaard515fba92012-07-20 00:09:56 +02001132012-07-19 Mark Wielaard <mjw@redhat.com>
114
115 * dwarf.h: Add DW_OP_GNU_parameter_ref.
116
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +02001172012-07-24 Mark Wielaard <mjw@redhat.com>
118
Mark Wielaardc4010b82012-07-24 13:20:41 +0200119 * dwarf.h: Correct spelling of DW_LANG_ObjC.
120 * dwarf_aggregate_size.c (array_size): Use correct spelling of
121 DW_LANG_ObjC.
122
1232012-07-24 Mark Wielaard <mjw@redhat.com>
124
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +0200125 * dwarf.h: Add DW_ATE_UTF.
126
Mark Wielaardef5688e2012-06-27 10:15:27 +02001272012-06-27 Mark Wielaard <mjw@redhat.com>
128
129 * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
130
Mark Wielaarda0172d72012-06-25 17:18:53 +02001312012-06-26 Mark Wielaard <mjw@redhat.com>
132
133 * libdwP.h: Add IDX_debug_macro.
134 * dwarf.h: Add DW_AT_GNU_macros.
135 * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro.
136 * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros.
137
Mark Wielaard54797252012-04-27 13:00:50 +02001382012-04-27 Mark Wielaard <mjw@redhat.com>
139
140 * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being
141 a constant offset from DW_AT_low_pc.
142
Tom Tromey581c3f62012-03-21 08:54:32 -06001432012-03-19 Tom Tromey <tromey@redhat.com>
144
145 * libdw_findcu.c (findcu_cb): Move earlier.
146 (__libdw_intern_next_unit): Add new CU to search tree here...
147 (__libdw_findcu): ... not here.
148
Mark Wielaardcb643d62012-01-31 19:22:03 +01001492012-01-31 Mark Wielaard <mjw@redhat.com>
150
151 * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset.
152
Mark Wielaard387998b2011-10-31 15:01:50 +01001532011-11-31 Mark Wielaard <mjw@redhat.com>
154
155 * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
156
Mark Wielaard0b72b652011-07-14 12:59:26 +02001572011-07-14 Mark Wielaard <mjw@redhat.com>
158
159 * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
160
Jakub Jelinek03124242011-05-17 17:00:14 +02001612011-05-16 Jakub Jelinek <jakub@redhat.com>
162
163 * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
164 DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
165 New.
166
Mark Wielaardf4c39c72011-04-26 17:15:28 +02001672011-04-26 Mark Wielaard <mjw@redhat.com>
168
169 * dwarf_child (dwarf_child): Sanity check end of section against
170 cu_data () of die->cu.
171
Mark Wielaarde3368c52011-03-22 23:03:31 +01001722011-03-22 Mark Wielaard <mjw@redhat.com>
173
174 * dwarf.h: Add DW_TAG_GNU_call_site,
175 DW_TAG_GNU_call_site_parameter,
176 DW_AT_GNU_call_site_value,
177 DW_AT_GNU_call_site_data_value,
178 DW_AT_GNU_call_site_target,
179 DW_AT_GNU_call_site_target_clobbered,
180 DW_AT_GNU_tail_call,
181 DW_AT_GNU_all_tail_call_sites,
182 DW_AT_GNU_all_call_sites,
183 DW_AT_GNU_all_source_call_sites,
184 and DW_OP_GNU_entry_value.
185
Petr Machata02c56192011-03-10 01:50:32 +01001862011-03-10 Petr Machata <pmachata@redhat.com>
187
188 * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
189 abbreviation with code 0.
190
Petr Machata35870872011-03-09 10:01:29 -08001912011-03-09 Petr Machata <pmachata@redhat.com>
192
193 * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
194
Roland McGrath725aad52011-02-23 19:52:46 -08001952011-02-23 Roland McGrath <roland@redhat.com>
196
197 * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
198 Declare __libdw_free_zdata.
199 * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
200 (dwarf_end): Call it.
201
202 * dwarf_begin_elf.c (valid_p): Likewise.
203 (check_section, scngrp_read): Likewise.
204 (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
205
Roland McGrath8c0a3822010-10-13 11:21:17 -07002062010-10-13 Roland McGrath <roland@redhat.com>
207
208 * dwarf.h: Add DW_LANG_Go.
209
Roland McGrath5f95e2b2010-10-05 00:56:30 -07002102010-10-05 Roland McGrath <roland@redhat.com>
211
212 * dwarf_getaranges.c: Use malloc rather than alloca,
213 since the total number of elements can be quite huge.
214
Roland McGrath932585d2010-05-08 04:01:14 -07002152010-07-26 Roland McGrath <roland@redhat.com>
216
217 * dwarf_getlocation_implicit_pointer.c: New file.
218 * Makefile.am (libdw_a_SOURCES): Add it.
219 * libdw.map (ELFUTILS_0.149): New set.
220 Add dwarf_getlocation_implicit_pointer.
221 * libdw.h: Declare it.
222
223 * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
224 (dwarf_offdie, dwarf_offdie_types): Update callers.
225 * libdwP.h: Declare it.
226
227 * dwarf.h: Add DW_OP_GNU_implicit_pointer.
228 * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
229
Roland McGrathde44f132010-08-24 15:38:42 -07002302010-08-24 Roland McGrath <roland@redhat.com>
231
232 * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
233
Roland McGrath00aca7f2010-07-27 04:40:23 -07002342010-07-27 Roland McGrath <roland@redhat.com>
235
236 * dwarf_formref_die.c: Fix sig8 hash insertion.
237
Roland McGrath9616b852010-06-23 03:17:28 -07002382010-06-23 Roland McGrath <roland@redhat.com>
239
240 * cfi.c (dwarf_cfi_validate_fde): Function removed.
241 * libdw.h: Remove it.
242 * libdw.map: Likewise.
243
Roland McGrath499b8ff2010-06-22 13:13:53 -07002442010-06-22 Roland McGrath <roland@redhat.com>
245
Roland McGrathc16966a2010-06-22 17:08:43 -0700246 * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
247
Roland McGrath499b8ff2010-06-22 13:13:53 -0700248 * dwarf_getsrclines.c: Fix signed comparison warning in extended
249 opcode parsing.
250
Roland McGrath0c5638c2010-06-21 23:00:35 -07002512010-06-21 Roland McGrath <roland@redhat.com>
252
Roland McGrath474cb482010-06-22 00:10:54 -0700253 * dwarf.h: Add DW_TAG_GNU_* constants.
254
Roland McGrath0c5638c2010-06-21 23:00:35 -0700255 * memory-access.h (get_sleb128_rest_return): Fix sign extension for
256 10-byte case.
257
Roland McGrath5cc030d2010-06-20 17:25:35 -07002582010-06-20 Roland McGrath <roland@redhat.com>
259
Roland McGrath2b1f0952010-06-20 17:55:50 -0700260 * libdw_findcu.c (__libdw_findcu): Take new flag argument,
261 to search TUs instead of CUs.
262 * libdwP.h: Update decl.
263 (struct Dwarf): New member tu_tree.
264 * dwarf_end.c (dwarf_end): Clean up tu_tree.
265 * dwarf_offdie.c (do_offdie): New function, broken out of ...
266 (dwarf_offdie): ... here.
267 (dwarf_offdie_types): New function.
268 * libdw.h: Declare it.
269 * libdw.map (ELFUTILS_0.148): Add it.
270
Roland McGrath5cc030d2010-06-20 17:25:35 -0700271 * libdwP.h (CUDIE): Use cu_data.
272 * dwarf_formblock.c: Likewise.
273 * dwarf_formref_die.c: Likewise.
274 * dwarf_diecu.c: Use CUDIE macro.
275 * dwarf_formaddr.c: Use cu_sec_idx.
276
Roland McGrathc70ebc02010-06-16 02:21:26 -07002772010-06-16 Roland McGrath <roland@redhat.com>
278
Roland McGrath3e0f7d12010-06-15 23:10:35 -0700279 * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
280 we don't repeat a CU lookup we've already done. Handle
281 DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
282
283 * libdw_findcu.c (__libdw_intern_next_unit): New function,
284 broken out of ...
285 (__libdw_findcu): ... here. Call it.
286 * libdwP.h: Declare it.
287 (struct Dwarf): New member next_tu_offset.
288
289 * dwarf_sig8_hash.c: New file.
290 * dwarf_sig8_hash.h: New file.
291 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
292 * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
293 defining NO_UNDEF.
294 * libdwP.h (struct Dwarf): New member sig8_hash.
295 * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
296 * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
297
298 * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
299 (dwarf_nextcu): ... here. Call it.
300 * libdw.h: Declare it.
301 * libdwP.h: Add INTDECL.
302 * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
303 * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
304
305 * libdwP.h (cu_sec_idx, cu_data): New functions.
306 Use .debug_types when CU is a TU.
307 * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
308 * dwarf_siblingof.c: Likewise.
309 * dwarf_formstring.c: Likewise.
310 * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
311 * dwarf_getlocation.c (dwarf_getlocation): Likewise.
312 (dwarf_getlocation_addr): Likewise.
313
314 * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
315 (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
316 .debug_types header size instead of .debug_info header size.
317 (CUDIE): Use it.
318 * dwarf_diecu.c: Update caller.
319 * dwarf_getaranges.c: Likewise.
320 * dwarf_nextcu.c: Likewise.
321 * libdw_findcu.c (__libdw_findcu): Initialize new members.
322
Roland McGrath3e4b5bb2010-06-16 03:40:56 -0700323 * fde.c (fde_by_offset): Renamed to ...
324 (__libdw_fde_by_offset): ... this, made global and internal_function.
325 Don't take ADDRESS argument.
326 (__libdw_find_fde): Update caller. Do address sanity check here.
327 * cfi.h: Declare __libdw_fde_by_offset.
328 * cfi.c (dwarf_cfi_validate_fde): New function.
329 * libdw.h: Declare it.
330 * libdw.map (ELFUTILS_0.148): Add it.
331
Roland McGrath5f4b5082010-06-16 03:11:57 -0700332 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
333 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
334
Roland McGrath7934ded2010-06-16 03:04:09 -0700335 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
336 Don't assume DW_EH_PE_aligned refers to native address size.
337
Roland McGrathc70ebc02010-06-16 02:21:26 -0700338 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
339 address.
340
Roland McGrathc70cf4e2010-06-18 17:01:05 -07003412010-06-17 Roland McGrath <roland@redhat.com>
342
343 * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
344 op_index.
345 * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
346 into an inner inline function. Set new fields. Check all fields for
347 overflow when setting.
348 * dwarf_lineisa.c: New file.
349 * dwarf_linediscriminator.c: New file.
350 * dwarf_lineop_index.c: New file.
351 * Makefile.am (libdw_a_SOURCES): Add them.
352 * libdw.map (ELFUTILS_0.148): Add them.
353 * libdw.h: Declare them.
354
Roland McGrath3f633072010-06-15 22:17:04 -07003552010-06-16 Roland McGrath <roland@redhat.com>
356
Roland McGrath4a87dfa2010-06-16 16:35:10 -0700357 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
358
Roland McGrathb75f4442010-06-15 22:24:19 -0700359 * fde.c (fde_by_offset): Renamed to ...
360 (__libdw_fde_by_offset): ... this, made global and internal_function.
361 Don't take ADDRESS argument.
362 (__libdw_find_fde): Update caller. Do address sanity check here.
363 * cfi.h: Declare __libdw_fde_by_offset.
Roland McGrath9bcd2652010-06-15 22:17:20 -0700364 * cfi.c (dwarf_cfi_validate_fde): New function.
365 * libdw.h: Declare it.
Roland McGrath3f633072010-06-15 22:17:04 -0700366 * libdw.map (ELFUTILS_0.148): Add it.
367
Roland McGrath0b3363e2010-06-01 15:42:14 -0700368 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
369 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
Roland McGrath827d4d12010-06-01 20:17:36 -0700370
371 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
372 Don't assume DW_EH_PE_aligned refers to native address size.
Roland McGrath1a030b32010-06-01 20:11:40 -0700373
374 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
Roland McGrath675229b2010-06-01 20:10:19 -0700375 address.
376
3772010-06-15 Roland McGrath <roland@redhat.com>
Roland McGrath52123962010-06-01 19:05:08 -0700378
379 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
Roland McGrath7fac1ce2010-06-01 15:56:58 -0700380 DW_FORM_ref_addr.
381 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
Roland McGrath0b3363e2010-06-01 15:42:14 -0700382 here, since we don't support it yet.
383
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200384 * dwarf_next_cfi.c: Handle version 4 format.
385
Mark Wielaard08e71db2010-05-31 15:39:15 +0200386 * dwarf_getsrclines.c: Handle version 4 format.
387
3882010-06-01 Roland McGrath <roland@redhat.com>
389
390 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200391 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
392
Eduardo Santiagod2240bc2010-05-28 14:26:52 -0700393 * libdwP.h (CIE_VERSION): Remove unused macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700394
Ulrich Drepper49fe7142010-05-28 20:32:37 -0700395 * dwarf_getsrclines.c: Fix version field test.
396 * libdwP.h (DWARF_VERSION): Remove useless macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700397
Roland McGrathcfa5da22010-05-27 13:49:25 -0700398 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
399
400 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
401
402 * libdw_findcu.c (__libdw_findcu): Accept version 4.
Roland McGrath688f7fc2010-05-08 03:22:59 -0700403
4042010-05-31 Mark Wielaard <mjw@redhat.com>
405
406 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
407 * libdw.h (dwarf_cfi_cie_p): ... here.
408
4092010-05-31 Mark Wielaard <mjw@redhat.com>
410
411 * dwarf.h: Fix DW_LANG_Python constant.
Roland McGrath0ab97832010-04-26 11:50:27 -0700412
4132010-05-28 Eduardo Santiago <santiago@redhat.com>
Roland McGrath3b10ac02010-04-26 18:45:36 -0700414
415 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
416 thing.
417
4182010-05-27 Roland McGrath <roland@redhat.com>
Roland McGrath0ab97832010-04-26 11:50:27 -0700419
420 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
421 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
422
4232010-05-08 Roland McGrath <roland@redhat.com>
424
425 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
Roland McGrath3f9d9552010-04-22 20:51:07 -0700426 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
427 (getlocation): Update caller.
428 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
429 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
430 * libdwP.h: Update decl.
431
4322010-04-26 Roland McGrath <roland@redhat.com>
Roland McGrath8068e062010-03-10 23:49:13 -0800433
434 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
435 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
436 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
Roland McGrath22359e22010-02-15 15:57:03 -0800437 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
438
439 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
440 Prepend DW_OP_call_frame_cfa if true.
Mark Wielaardee29a312010-02-02 20:44:53 +0100441 (getlocation): Update caller.
442 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
443 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
444 * libdwP.h: Update decl.
Roland McGrathf95760a2010-01-07 20:24:34 -0800445
4462010-04-22 Roland McGrath <roland@redhat.com>
447
448 * cfi.c (execute_cfi): Never return without cleanup.
Roland McGrath019d9fb2010-01-05 13:36:07 -0800449 Free FS on failure.
450 (cie_cache_initial_state): Adjust caller to expect that free.
Roland McGrathebc5c882010-01-05 22:53:31 -0800451 (__libdw_frame_at_address): Likewise.
452
4532010-03-10 Roland McGrath <roland@redhat.com>
454
455 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
456
4572010-02-15 Roland McGrath <roland@redhat.com>
458
459 * Makefile.am: Use config/eu.am for common stuff.
Roland McGrath0cb19832010-01-05 13:38:15 -0800460
4612010-02-02 Mark Wielaard <mjw@redhat.com>
Roland McGrath019d9fb2010-01-05 13:36:07 -0800462
463 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
Roland McGrath888381b2009-11-21 17:03:34 -0800464
4652010-01-07 Roland McGrath <roland@redhat.com>
466
467 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
468
Roland McGrath9ca7bc42009-10-15 12:26:49 -07004692010-01-05 Roland McGrath <roland@redhat.com>
470
471 * dwarf_aggregate_size.c: New file.
472 * Makefile.am (libdw_a_SOURCES): Add it.
473 * libdw.h: Declare it.
Roland McGrath7e0aecd2009-09-17 15:02:34 -0700474 * libdwP.h: Add INTDECL.
475 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
476
477 * dwarf_srclang.c: Add INTDEF.
478 * libdwP.h: Add INTDECL.
479
Roland McGrathf0371042009-09-10 12:39:09 -0700480 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
481
482 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
483
4842009-11-21 Roland McGrath <roland@redhat.com>
485
486 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
487 non-constant forms.
Mark Wielaard418ae4c2009-09-09 20:59:26 +0200488
4892009-10-15 Roland McGrath <roland@redhat.com>
490
491 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
Josh Stonecc93cc42009-08-21 18:04:44 -0700492 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
493
4942009-09-17 Roland McGrath <roland@redhat.com>
495
Roland McGrath08277ba2009-08-10 15:08:08 -0700496 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
497 argument a pointer to const.
498 * libdw.h: Update decl.
499
Roland McGrathebfb6482009-08-09 15:40:52 -07005002009-09-10 Roland McGrath <roland@redhat.com>
501
502 * dwarf_getlocation.c (store_implicit_value): New function.
503 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
504 (dwarf_getlocation_implicit_value): New function.
505 * libdw.h: Declare it.
506 * libdw.map (ELFUTILS_0.143): Add it.
507
5082009-09-09 Mark Wielaard <mjw@redhat.com>
509
510 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
511
5122009-08-21 Josh Stone <jistone@redhat.com>
513
Roland McGrathde69d522009-08-07 18:26:19 -0700514 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
515
5162009-08-10 Roland McGrath <roland@redhat.com>
517
518 * dwarf_getscopevar.c: Use dwarf_diename.
519
5202009-08-09 Roland McGrath <roland@redhat.com>
521
522 * libdw.map (ELFUTILS_0.143): New version set,
523 inherits from ELFUTILS_0.142.
Roland McGrathaf800142009-07-22 13:55:50 -0700524 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
525 alias in the ELFUTILS_0.122 version set and the default in the new set.
526 * dwarf_srclang.c: Likewise.
527 * dwarf_decl_file.c: Likewise.
528 * dwarf_decl_line.c: Likewise.
529 * dwarf_decl_column.c: Likewise.
530 * dwarf_bytesize.c: Likewise.
531 * dwarf_bitsize.c: Likewise.
532 * dwarf_bitoffset.c: Likewise.
533
5342009-08-07 Roland McGrath <roland@redhat.com>
535
536 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
537 * dwarf_srclang.c: Likewise.
538 * dwarf_decl_file.c: Likewise.
539 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
Roland McGrathe23e9e72009-07-21 18:14:52 -0700540 * dwarf_bytesize.c: Likewise.
541 * dwarf_bitsize.c: Likewise.
542 * dwarf_bitoffset.c: Likewise.
543
5442009-07-22 Roland McGrath <roland@redhat.com>
545
546 * dwarf_frame_cfa.c: Change calling convention.
547 * libdw.h: Update decl.
Roland McGrath96349ff2009-07-20 11:51:41 -0700548
549 * dwarf_frame_register.c: Change calling/return-value convention for
550 value-only results and undefined/same_value.
551 * libdw.h: Update decl.
552
Roland McGratha6abdfd2009-07-16 17:40:19 -0700553 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
554 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
Roland McGrathe160cc92009-07-16 17:48:27 -0700555 return that value instead.
556 (getlocation): Update caller.
557 * dwarf_frame_cfa.c: Likewise.
558 * libdwP.h: Update decl.
559
Roland McGratha6abdfd2009-07-16 17:40:19 -07005602009-07-21 Roland McGrath <roland@redhat.com>
561
562 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
563 Fix loop iteration after skipping a bogus or useless CU.
564
565 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
566 absence, not DWARF_E_NO_DEBUG_LINE.
Roland McGrath7dd94642009-07-15 11:14:23 -0700567
5682009-07-20 Roland McGrath <roland@redhat.com>
569
570 * dwarf_getlocation.c (__libdw_intern_expression):
571 Handle DW_OP_stack_value.
Roland McGrath80893432009-07-13 12:08:55 -0700572
5732009-07-16 Roland McGrath <roland@redhat.com>
574
575 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700576 reject others when CU's version > 3.
577
Roland McGrath3c84db32009-06-24 17:41:40 -0700578 * dwarf_formflag.c: Handle DW_FORM_flag_present.
579
580 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
581 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
582 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
583 and DW_AT_const_expr.
584 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
585 and DW_FORM_ref_sig8.
586
5872009-07-15 Roland McGrath <roland@redhat.com>
588
589 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
590 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
591
5922009-07-13 Roland McGrath <roland@redhat.com>
593
594 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
595
5962009-07-08 Roland McGrath <roland@redhat.com>
597
598 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
599 dwfl_module_eh_cfi.
600
601 * libdwP.h (struct Dwarf): Add member `cfi'.
602 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
603 * dwarf_getcfi.c: New file.
604 * dwarf_getcfi_elf.c: New file.
605 * dwarf_cfi_end.c: New file.
606 * dwarf_cfi_addrframe.c: New file.
607 * dwarf_frame_cfa.c: New file.
608 * dwarf_frame_register.c: New file.
609 * dwarf_frame_return_address_register.c: New file.
610 * Makefile.am (libdw_a_SOURCES): Add them.
611 * unwind.h: Declare those functions.
612 * libdw.map (ELFUTILS_0.142): Export them.
613
614 * dwarf_getlocation.c (__libdw_intern_expression): New function,
615 broken out of ...
616 (getlocation): ... here, call it.
617 * libdwP.h: Declare it.
618
619 * cie.c: New file.
620 * fde.c: New file.
621 * frame-cache.c: New file.
622 * cfi.c: New file.
623 * cfi.h: New file.
624 * encoded-value.h: New file.
625 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
626 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
627 * dwarf_error.c (errmsgs): Add element for it.
628
629 * dwarf_next_cfi.c: New file.
630 * Makefile.am (libdw_a_SOURCES): Add it.
Roland McGrath6e1f4652009-07-08 14:48:34 -0700631 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
632 Declare dwarf_next_cfi.
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700633 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
634 Add dwarf_next_cfi.
635
636 * memory-access.h [! ALLOW_UNALIGNED]
Roland McGrath05c4e042009-06-18 13:56:02 -0700637 (read_2ubyte_unaligned): Renamed to ...
638 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
639 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
640 (read_2sbyte_unaligned): Likewise.
641 (read_4ubyte_unaligned): Likewise.
642 (read_4sbyte_unaligned): Likewise.
643 (read_8ubyte_unaligned): Likewise.
644 (read_8sbyte_unaligned): Likewise.
645
Ulrich Drepper99d23722009-06-14 20:19:45 -0700646 * libdwP.h (IDX_eh_frame): Remove it.
647 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
648
6492009-07-08 Roland McGrath <roland@redhat.com>
650
651 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
652
653 * dwarf_getlocation.c (check_constant_offset): New function.
654 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
655 handle DW_AT_data_member_location of data[48] as constant offset.
656
6572009-06-18 Roland McGrath <roland@redhat.com>
658
659 * libdwP.h (__libdw_read_address_inc): Constify.
660 (__libdw_read_offset_inc): Likewise.
661 * dwarf_getaranges.c: Likewise.
662 * dwarf_getlocation.c: Likewise.
663 * dwarf_getsrclines.c: Likewise.
664 * dwarf_nextcu.c: Likewise.
665
6662009-05-05 Petr Machata <pmachata@redhat.com>
667
668 * libdwP.h (__libdw_formptr): Declare new function.
669 * dwarf_formudata.c: Implement it here.
670 * dwarf_getlocation.c (dwarf_getlocation_addr):
671 Call it instead of hand-rolled offset handling code.
672 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
673 * dwarf_ranges.c (dwarf_ranges): Likewise.
674
6752009-05-04 Petr Machata <pmachata@redhat.com>
676
677 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
678 * dwarf_ranges.c: Implement it here.
679 (dwarf_ranges): Call it.
Roland McGrathe2eabd82009-05-07 18:54:52 -0700680 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
681
6822009-04-23 Petr Machata <pmachata@redhat.com>
683
684 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
685 of read_*ubyte_unaligned.
Petr Machataf3df61f2009-05-07 21:02:33 +0200686 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
687 * dwarf_formstring.c (dwarf_formstring): Likewise.
688 * dwarf_formudate.c (dwarf_formudata): Likewise.
689 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
690 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
Roland McGrath2fb90512009-04-15 14:47:13 -0700691 * dwarf_getpubnames.c (get_offsets): Likewise.
692 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
693
6942009-04-23 Petr Machata <pmachata@redhat.com>
695
Roland McGrath6a4bdd92009-04-01 14:25:29 -0700696 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
697 __libdw_read_addr, __libdw_read_off): Add four new internal
698 functions.
699
Roland McGrathc5acb302009-01-28 18:28:52 -08007002009-05-07 Roland McGrath <roland@redhat.com>
701
Roland McGrath03288f02009-01-28 22:00:54 -0800702 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
703 return value and OFFSET argument, not CU-relative. Only fetch the
704 attribute data when called with OFFSET of 0.
Roland McGrathc5acb302009-01-28 18:28:52 -0800705
7062009-05-07 Petr Machata <pmachata@redhat.com>
Roland McGrathf46272a2009-01-26 18:36:16 -0800707
708 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
709 DW_AT_macro_info attribute of CU DIE.
710
Roland McGrathd31505f2009-01-25 19:37:33 -08007112009-04-15 Roland McGrath <roland@redhat.com>
712
713 * dwarf.h (DW_CIE_ID): Removed.
714 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
Roland McGrath3bf7a092009-01-23 16:34:07 -0800715
7162009-04-01 Roland McGrath <roland@redhat.com>
717
718 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
719
Roland McGrathafdd51e2009-01-22 02:26:24 -08007202009-01-28 Roland McGrath <roland@redhat.com>
721
722 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
723 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
Roland McGrath1ea4fdc2009-01-21 19:14:37 -0800724
725 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
726
7272009-01-26 Roland McGrath <roland@redhat.com>
728
729 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
Roland McGrath24b03302009-01-17 14:34:13 -0800730
7312009-01-25 Roland McGrath <roland@redhat.com>
Roland McGrath54456d82009-01-17 14:39:35 -0800732
733 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
734
Roland McGrath5513e642009-01-11 01:35:11 -08007352009-01-23 Roland McGrath <roland@redhat.com>
736
737 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
738 Put these rules under if MAINTAINER_MODE.
739
7402009-01-22 Roland McGrath <roland@redhat.com>
741
Roland McGrath24b03302009-01-17 14:34:13 -0800742 * dwarf.h: Add DW_OP_GNU_encoded_addr.
743
Ulrich Drepper7e678fa2009-01-10 18:02:05 -08007442009-01-21 Roland McGrath <roland@redhat.com>
745
746 * Makefile.am (CLEANFILES): Renamed to ...
747 (MOSTLYCLEANFILES): ... here.
Roland McGrathe06762c2009-01-08 13:39:08 -0800748 (CLEANFILES): New variable, add known-dwarf.h.
749
7502009-01-17 Roland McGrath <roland@redhat.com>
751
Roland McGrath7e827f22009-01-06 02:09:50 -0800752 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
Roland McGrath1f6d2012008-12-31 00:21:04 -0800753 Make it unconditional.
754 (BUILT_SOURCES): Updated.
755
756 * dwarf.h: Add description comments for DW_LANG_* values.
Roland McGrathbca43152009-01-05 23:59:32 -0800757
758 * Makefile.am [MAINTAINER_MODE]
759 ($(srcdir)/known-dwarf.h): New target.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800760 (BUILT_SOURCES): Add it.
761
Roland McGrathc462c632009-01-06 01:04:31 -0800762 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800763
7642009-01-10 Ulrich Drepper <drepper@redhat.com>
765
766 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
Roland McGrathb4d6f0f2008-08-25 22:55:17 +0000767
7682009-01-08 Roland McGrath <roland@redhat.com>
769
770 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
771
Ulrich Drepper8d358d92008-01-22 06:34:31 +00007722008-01-06 Roland McGrath <roland@redhat.com>
773
774 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
775 Reorder members.
776 * dwarf_haschildren.c: Return -1 for error case, not 0.
777
778 * Makefile.am (libdw.so): Link in $(zip_LIBS).
779
Ulrich Drepperb27ce002008-01-18 20:08:54 +00007802009-01-06 Ulrich Drepper <drepper@redhat.com>
781
782 * dwarf.h: Add definition for unwind and call frame information.
783
784 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000785 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
786
7872008-08-15 Roland McGrath <roland@redhat.com>
788
789 * libdw.map (ELFUTILS_0.136): New version set, inherits from
790 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
791
7922008-01-21 Ulrich Drepper <drepper@redhat.com>
793
794 * dwarf_child.c: Minor optimizations.
795 * dwarf_getattrs.c: Likewise.
796 * dwarf_getpubnames.c: Likewise.
797 * dwarf_siblingof.c: Likewise.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +0000798 * dwarf_tag.c: Likewise.
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000799
8002008-01-18 Ulrich Drepper <drepper@redhat.com>
801
802 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
803 of DWARF_VERSION comparison, just fail if the file's version is newer.
804
8052008-01-17 Nick Clifton <nickc@redhat.com>
806
807 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
808 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
809 (DWARF3_LENGTH_64_BIT): New define.
810 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
811 * dwarf_getpubnames: Include dwarf.h.
812 (get_offsets): Use the new definitions.
813 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
814 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
815 (dwarf_nextcu): Use the new definitions.
816
817 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
818 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
819 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
820 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
821
822 * dwarf_getpubnames (get_offsets): Replace assertion with test and
823 error return.
824
825 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
826
827 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
828 Set the address in the return structure to the address of the next
829 non-sibling die, if there is no sibling and the return pointer is
830 not the same as the die pointer.
Ulrich Dreppere219f1c2008-01-09 05:49:49 +0000831 * libdw.h: Expand the description of the dwarf_siblingof prototype.
832
833 * dwarf_child.c: Fix typo in comment.
834
835 * libdwP.h (DWARF_VERSION): Change to 3.
836
Roland McGrathe4c22ea2007-10-23 13:07:39 +0000837 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
838 not have a initialised valp pointer.
839
840 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
841 the end of the attributes is reached. When the callback fails,
842 return the address of the failing attribute, not the address of
843 its successor.
844 * libdw.h: Expand the description of the dwarf_getattrs prototype.
845
846 * dwarf_child.c (__libdw_find_attr): Use the new definition.
847 (dwarf_child): Likewise.
848 * dwarf_tag.c (__libdw_findabbrev): Likewise.
849 (dwarf_tag): Likewise.
850
8512008-01-08 Roland McGrath <roland@redhat.com>
852
853 * Makefile.am (euinclude): Variable removed.
854 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
855 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
Ulrich Drepperb597dfa2007-10-16 05:21:27 +0000856
8572007-10-17 Roland McGrath <roland@redhat.com>
858
859 * libdw.h (__deprecated_attribute__): New macro.
860 (dwarf_formref): Mark it deprecated.
861 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
862 (dwarf_formref): ... here. Call it. Remove INTDEF.
Roland McGrath59ea7f32007-10-04 08:50:09 +0000863 * libdwP.h: Remove INTDECL.
864 Declare __libdw_formref.
865 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
866 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
867
868 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
869 needs to check CU->version.
870
Roland McGrath057ec6b2007-10-02 20:55:05 +0000871 * libdwP.h (struct Dwarf_CU): New member `version'.
872 * libdw_findcu.c (__libdw_findcu): Initialize it.
873
874 * dwarf_child.c: Return 1 for null entry as first child.
875
Roland McGrathd1a48172007-08-07 19:51:01 +00008762007-10-05 Roland McGrath <roland@redhat.com>
877
878 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
879
880 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
881 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
882
8832007-10-03 Roland McGrath <roland@redhat.com>
884
885 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
886 and dwfl_build_id_find_debuginfo.
Roland McGrath87d47802007-07-16 22:23:37 +0000887
888 * libdw.map (ELFUTILS_0.130): New version set, inherits from
889 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
890
8912007-10-02 Roland McGrath <roland@redhat.com>
Roland McGrath43da9892007-04-16 23:13:37 +0000892
893 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
894 structure_type.
895
Roland McGrathbf2ee482007-04-05 09:27:36 +00008962007-08-07 Roland McGrath <roland@redhat.com>
897
Roland McGrath43da9892007-04-16 23:13:37 +0000898 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
899 error code is DWARF_E_NOERROR (0).
900
901 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
902 Fix typo in __libdw_visit_scopes argument.
903
904 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
905 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
906
9072007-07-03 Roland McGrath <roland@redhat.com>
Roland McGrathbf2ee482007-04-05 09:27:36 +0000908
909 * libdw.h (__extern_inline): New macro.
910 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
911
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00009122007-04-16 Roland McGrath <roland@redhat.com>
913
914 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
915
9162007-04-05 Roland McGrath <roland@redhat.com>
917
918 * dwarf_getsrcdirs.c: New file.
919 * Makefile.am (libdw_a_SOURCES): Add it.
Ulrich Drepper6258e742007-03-13 06:22:40 +0000920 * libdw.h: Declare dwarf_getsrcdirs.
921 * libdw.map (ELFUTILS_0.127): Add it.
922
923 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
924 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
925 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
926 Save DIRARRAY in the Dwarf_Files.
927
928 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
Ulrich Drepper903c1162007-02-15 19:40:37 +0000929 address to check for all-ones base address entry. Check directly.
930 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
931
9322007-03-25 Roland McGrath <roland@redhat.com>
Ulrich Drepperaa915fd2007-02-05 07:25:33 +0000933
934 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
935 Return NULL when freeing RESULT on error.
936 (global_read, scngrp_read): Check return value from check_section,
937 break out of loop after it has freed RESULT.
938 (valid_p): Handle null argument.
939
Roland McGrath8190db62006-12-17 23:56:51 +00009402007-03-12 Roland McGrath <roland@redhat.com>
941
942 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
943
9442007-03-04 Roland McGrath <roland@redhat.com>
Roland McGrathc373d852006-10-10 00:25:21 +0000945
946 * libdw.map (ELFUTILS_0.127): New version set, inherits from
947 ELFUTILS_0.126. Add dwfl_module_addrsym.
948
9492007-02-10 Roland McGrath <roland@redhat.com>
950
951 * dwarf.h (DW_OP_fbreg): Comment fix.
952
9532007-02-03 Roland McGrath <roland@redhat.com>
954
955 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
956 * libdw.map (ELFUTILS_0.126): New version set, inherits from
Ulrich Drepper077c65f2006-07-12 19:54:51 +0000957 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
958 exported in the past.
959
9602006-12-17 Roland McGrath <roland@redhat.com>
961
962 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
963 address when the CU is missing attributes due to buggy GCC.
964
Ulrich Dreppere1812e12006-07-12 07:46:03 +00009652006-08-29 Roland McGrath <roland@redhat.com>
966
967 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
968
969 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
970 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
971
Ulrich Drepper3be74472006-05-27 18:15:40 +0000972 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
973 result is aligned. Adjust NEWP->remaining here for this allocation.
974 * libdwP.h: Update decl.
975 (libdw_alloc): Update caller.
Ulrich Dreppere7a73172006-05-22 18:16:45 +0000976
9772006-07-12 Ulrich Drepper <drepper@redhat.com>
978
979 * dwarf_child.c: Adjust for internal_function_def removal.
980 * dwarf_getabbrev.c: Likewise.
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +0000981 * dwarf_tag.c: Likewise.
982 * libdw_form.c: Likewise.
983 * memory-access.c: Likewise.
984
9852006-06-28 Roland McGrath <roland@redhat.com>
Roland McGrath2dade662006-02-28 22:13:20 +0000986
987 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
988
989 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
990 dwfl_module_getsym.
991
Roland McGrath08333122006-02-27 04:54:26 +00009922006-05-27 Ulrich Drepper <drepper@redhat.com>
993
994 * libdw.h: Add extern "C".
995
Roland McGrath50ffcbf2005-12-23 01:51:43 +00009962006-05-22 Ulrich Drepper <drepper@redhat.com>
997
998 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
999 aranges information.
Roland McGrathdec3a242005-12-12 08:35:55 +00001000
10012006-05-21 Ulrich Drepper <drepper@redhat.com>
1002
1003 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
1004 dwarf_haschildren.
Roland McGrathf64a4422005-12-09 23:40:30 +00001005
10062006-02-28 Roland McGrath <roland@redhat.com>
1007
1008 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
1009 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
1010 values from DWARF 3.0.
Roland McGrath994b4892005-12-05 22:46:21 +00001011
10122006-02-22 Roland McGrath <roland@redhat.com>
1013
1014 * libdw.map: Bump to 0.120; export dwfl_version.
Roland McGrathe47ab762005-11-17 03:16:00 +00001015
10162005-12-22 Roland McGrath <roland@redhat.com>
1017
1018 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
1019
10202005-12-12 Roland McGrath <roland@redhat.com>
1021
1022 * dwarf_ranges.c: Copy CU base address-finding code from
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001023 dwarf_getlocation.
1024
10252005-12-09 Roland McGrath <roland@redhat.com>
1026
1027 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
1028 Delay CU base lookup until it's needed.
1029 If CU base lookup fails with no error, flag invalid DWARF.
1030
10312005-11-25 Roland McGrath <roland@redhat.com>
1032
1033 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
1034
Roland McGrath6724c902005-10-28 07:07:19 +000010352005-11-15 Roland McGrath <roland@redhat.com>
1036
1037 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
1038
10392005-11-13 Roland McGrath <roland@redhat.com>
1040
1041 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
1042
10432005-10-27 Roland McGrath <roland@redhat.com>
1044
1045 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
1046 don't match end_sequence markers.
1047
1048 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
1049 before normal records at the same address.
1050 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
1051 marker.
1052
10532005-10-26 Roland McGrath <roland@redhat.com>
1054
1055 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
1056 * dwarf_func_file.c: Renamed to ...
1057 * dwarf_decl_file.c: ... here.
1058 * dwarf_func_col.c: Renamed to ...
1059 * dwarf_decl_column.c: ... here.
1060 * dwarf_func_line.c: Renamed to ...
1061 * dwarf_decl_line.c: ... here.
1062 (dwarf_func_line): Renamed to ...
1063 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
1064 (__libdw_func_intval): Renamed __libdw_attr_intval.
1065 * dwarf_func_name.c: File removed.
1066 * dwarf_func_lowpc.c: File removed.
1067 * dwarf_func_highpc.c: File removed.
1068 * dwarf_func_entrypc.c: File removed.
1069 * dwarf_func_die.c: File removed.
1070 * Makefile.am (libdw_a_SOURCES): Updated.
1071 * libdw.h: Update decls.
1072 (Dwarf_Func): Type removed.
1073 * libdwP.h: Update decls.
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001074 (struct Dwarf_Func_s): Type removed.
1075 * libdw.map: Updated.
1076
1077 * libdwP.h (CUDIE): New macro.
1078 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
1079 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
1080 * dwarf_ranges.c (dwarf_ranges): Likewise.
1081
1082 * dwarf_getloclist.c: Renamed to ...
1083 * dwarf_getlocation.c: ... here.
1084 (getloclist): Renamed to getlocation.
1085 (dwarf_getloclist): Renamed to dwarf_getlocation.
1086 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
1087 * Makefile.am (libdw_a_SOURCES): Updated.
1088 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
1089 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
1090 (Dwarf_Loc): Renamed Dwarf_Op.
1091 * libdwP.h (struct loc_s): Update use.
1092 * libdw.map: Update map.
1093
1094 * dwarf_entry_breakpoints.c: Use the second line record within the
1095 function, regardless of its source location data.
1096
10972005-10-25 Roland McGrath <roland@redhat.com>
1098
1099 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
1100
1101 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
1102
11032005-10-14 Roland McGrath <roland@redhat.com>
1104
1105 * dwarf_diecu.c (dwarf_diecu): New file.
1106 * Makefile.am (libdw_a_SOURCES): Add it.
1107 * libdw.h: Declare dwarf_diecu.
1108 * libdw.map: Export it.
1109
1110 * libdw.map: Bump to 0.116; export dwarf_ranges.
1111
11122005-09-20 Roland McGrath <roland@redhat.com>
1113
1114 * dwarf_haspc.c: Use dwarf_ranges.
1115 * dwarf_entry_breakpoints.c: Likewise.
1116
1117 * dwarf_ranges.c: New file.
1118 * Makefile.am (libdw_a_SOURCES): Add it.
1119 * libdw.h: Declare dwarf_ranges.
1120 * libdwP.h: Add INTDECL.
1121
Ulrich Drepperfbe998a2005-08-29 16:27:10 +000011222005-09-14 Roland McGrath <roland@redhat.com>
1123
1124 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
1125 prologue_end marker scanning loop.
1126
11272005-09-11 Roland McGrath <roland@redhat.com>
Roland McGrath71e15a02005-08-27 10:33:26 +00001128
1129 * dwarf.h: Comment typo fix.
1130
11312005-09-07 Roland McGrath <roland@redhat.com>
1132
1133 * dwarf_entry_breakpoints.c: New file.
1134 * Makefile.am (libdw_a_SOURCES): Add it.
1135 * libdw.h: Declare dwarf_entry_breakpoints.
1136
1137 * dwarf_entrypc.c: New file.
1138 * Makefile.am (libdw_a_SOURCES): Add it.
1139 * libdw.h: Declare dwarf_entrypc.
1140 * libdwP.h: Add INTDECL.
1141
11422005-08-28 Ulrich Drepper <drepper@redhat.com>
1143
1144 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
1145 (%.os): Use COMPILE.os.
1146 (COMPILE.os): Filter out gconv options.
1147
11482005-08-27 Roland McGrath <roland@redhat.com>
1149
Roland McGrathd17fac72005-08-23 08:20:21 +00001150 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
1151 __libdw_visit_scopes.
1152
1153 * dwarf_getscopes_die.c: New file.
1154 * Makefile.am (libdw_a_SOURCES): Add it.
1155 * libdw.h: Declare dwarf_getscopes_die.
1156 * libdw.map: Bump to 0.115 and add it.
1157
1158 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
1159 containing a DIE and its parent pointer, instead of just Dwarf_Die.
1160 Take two functions for both preorder and postorder visitors.
1161 * libdwP.h: Update decl.
1162 (struct Dwarf_Die_Chain): New type.
1163 * dwarf_func_inline.c: Update uses.
1164
1165 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
1166 Add INTDEF.
Roland McGrathf5fda7d2005-08-18 22:01:57 +00001167 * libdwP.h: Add INTDECL.
1168 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
1169
11702005-08-23 Roland McGrath <roland@redhat.com>
1171
Roland McGrath1ecb6062005-08-15 09:53:04 +00001172 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
1173 DW_AT_specification the same as DW_AT_abstract_origin.
1174
11752005-08-20 Roland McGrath <roland@redhat.com>
1176
1177 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
1178 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
1179 and dwfl_report_offline.
1180
11812005-08-19 Roland McGrath <roland@redhat.com>
1182
1183 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001184 Add dwfl_module_relocate_address, dwfl_module_relocations,
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001185 dwfl_module_relocation_info.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001186
11872005-08-18 Roland McGrath <roland@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001188
Roland McGrath4959bf82005-08-09 10:31:08 +00001189 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
1190 outermost scope in the results.
Roland McGrathb6312e12005-08-09 10:36:01 +00001191
11922005-08-15 Roland McGrath <roland@redhat.com>
Roland McGrath4959bf82005-08-09 10:31:08 +00001193
1194 * dwarf_func_inline.c: New file.
1195 * Makefile.am (libdw_a_SOURCES): Add it.
1196 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
Roland McGratha5a89682005-08-02 01:24:01 +00001197 * libdw.map: Add them.
1198
1199 * dwarf_func_die.c: New file.
1200 * Makefile.am (libdw_a_SOURCES): Add it.
1201 * libdw.h: Declare dwarf_func_die.
Ulrich Drepper18618fd2005-07-28 21:29:22 +00001202 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
1203
12042005-08-10 Ulrich Drepper <drepper@redhat.com>
1205
1206 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
Roland McGrath366784a2005-07-28 06:20:53 +00001207 of DW_LNS_set_epilog_begin.
1208
Roland McGrath18385902005-07-28 07:12:38 +000012092005-08-09 Roland McGrath <roland@redhat.com>
1210
1211 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
1212
1213 * dwarf_end.c: Add INTDEF.
1214 * dwarf_error.c (dwarf_errmsg): Likewise.
Roland McGrath366784a2005-07-28 06:20:53 +00001215 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
1216
12172005-08-01 Roland McGrath <roland@redhat.com>
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001218
1219 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
1220 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1221
12222005-07-28 Ulrich Drepper <drepper@redhat.com>
1223
1224 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
1225 (libdw_a_LIBADD): Add all files from libdwfl.a.
1226
12272005-07-27 Roland McGrath <roland@redhat.com>
1228
1229 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
1230 along with ../libebl/libebl.a and ../lib/libeu.a;
1231 depend on ../libelf/libelf.so.
1232 (libdw_so_LDADD): New variable.
1233 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
1234
1235 * libdw.map: Define an empty base version and move all symbols to
1236 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
1237
12382005-07-23 Ulrich Drepper <drepper@redhat.com>
1239
1240 * dwarf_error.c: Add internal alias for dwarf_errno.
1241 * libdwP.h: Declare __dwarf_errno_internal.
1242 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
1243
1244 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
1245 global_error.
1246
12472005-06-01 Roland McGrath <roland@redhat.com>
1248
1249 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
1250 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
1251
12522005-06-08 Roland McGrath <roland@redhat.com>
1253
1254 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
1255 (get_sleb128_step, get_sleb128): Likewise.
1256 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
1257 * dwarf_getloclist.c (getloclist): Likewise.
1258 * dwarf_formblock.c (dwarf_formblock): Likewise.
1259 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1260 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
1261 * dwarf_formref.c (dwarf_formref): Likewise.
1262 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
1263 * dwarf_formudata.c (dwarf_formudata): Likewise.
1264 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
1265 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
1266 * dwarf_tag.c (dwarf_tag): Likewise.
1267 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1268 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
1269 * libdw_form.c (__libdw_form_val_len): Likewise.
1270 * libdwP.h: Update decl.
1271
12722005-06-04 Roland McGrath <roland@redhat.com>
1273
1274 * memory-access.h (get_uleb128_rest_return): New macro.
1275 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
1276 (get_sleb128_rest_return): New macro.
1277 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
1278 * memory-access.c: New file.
1279 * Makefile.am (libdw_a_SOURCES): Add it.
1280 (DEFS): Add -DIS_LIBDW.
1281
12822005-05-31 Roland McGrath <roland@redhat.com>
1283
1284 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
1285 formref offset.
1286
12872005-05-30 Roland McGrath <roland@redhat.com>
1288
1289 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
1290 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
1291
1292 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
1293 BEGIN value. Instead, match base address entries separately for
1294 32/64 size cases.
1295
12962005-05-28 Roland McGrath <roland@redhat.com>
1297
1298 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
1299 past location expression contents.
1300
13012005-05-23 Roland McGrath <roland@redhat.com>
1302
1303 * dwarf_getsrclines.c: Comment typo fix.
1304
1305 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
1306 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
1307
13082005-05-22 Ulrich Drepper <drepper@redhat.com>
1309
1310 * libdwP.h: Only use INTDECL for alias prototypes.
1311
13122005-05-19 Roland McGrath <roland@redhat.com>
1313
1314 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
1315
1316 * dwarf_getscopevar.c: New file.
1317 * Makefile.am (libdw_a_SOURCES): Add it.
1318 * libdw.h: Declare dwarf_getscopevar.
1319
1320 * dwarf_getsrcfiles.c: Add INTDEF.
1321 * dwarf_haschildren.c: Likewise.
1322 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
1323
1324 * dwarf_getscopes.c: New file.
1325 * Makefile.am (libdw_a_SOURCES): Add it.
1326 * libdw.h: Declare dwarf_getscopes.
1327 * libdw.map: Add it.
1328
13292005-05-18 Roland McGrath <roland@redhat.com>
1330
1331 * libdwP.h (IDX_debug_ranges): New enum constant.
1332 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
1333 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
1334 * dwarf_error.c (errmsgs): Add it.
1335 * dwarf_haspc.c: New file.
1336 * libdw.h: Declare dwarf_haspc.
1337 * libdw.map: Add it.
1338 * libdwP.h: Add INTDECL.
1339
1340 * dwarf_attr_integrate.c: New file.
1341 * dwarf_hasattr_integrate.c: New file.
1342 * Makefile.am (libdw_a_SOURCES): Add them.
1343 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
1344 * libdw.map: Add them.
1345
1346 * dwarf_hasattr.c: Add INTDEF.
1347 * libdwP.h: Add INTDECL for it.
1348
1349 * dwarf_formref_die.c: New file.
1350 * Makefile.am (libdw_a_SOURCES): Add it.
1351 * libdw.h (dwarf_formref_die): Declare it.
1352 * libdwP.h (dwarf_formref_die): Add INTDECL.
1353 * libdw.map: Add it.
1354
1355 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
1356 of ...
1357 (dwarf_getloclist): ... here. Call them.
1358 (dwarf_addrloclists): New function.
1359 * libdw.h: Declare it.
1360 * libdw.map: Add it.
1361
1362 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
1363 DW_MACINFO_end_file. Recognize type 0 as terminator.
1364
13652005-05-05 Roland McGrath <roland@redhat.com>
1366
1367 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
1368
1369 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
1370 the line program does not produce all entries in ascending order.
1371
13722005-04-25 Ulrich Drepper <drepper@redhat.com>
1373
1374 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
1375 occurences (e.g., inlines) better.
1376
13772005-04-24 Ulrich Drepper <drepper@redhat.com>
1378
1379 * libdw.h (DWARF_END_ABBREV): Define.
1380 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
1381 end is reached.
1382 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
1383 of records reached.
1384 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
1385 as error of __libdw_getabbrev.
1386
13872005-04-04 Ulrich Drepper <drepper@redhat.com>
1388
1389 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
1390
1391 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
1392 results back to caller.
1393
13942005-04-04 Roland McGrath <roland@redhat.com>
1395
1396 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
1397
1398 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
1399 defn.
1400
14012005-04-04 Ulrich Drepper <drepper@redhat.com>
1402
1403 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
1404
1405 * dwarf_getsrc_file.c: New file.
1406 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
1407 * libdw.h: Declare dwarf_getsrc_file.
1408 * libdw.map: Add dwarf_getsrc_file.
1409
14102005-04-02 Ulrich Drepper <drepper@redhat.com>
1411
1412 * dwarf_func_entrypc.c: New file.
1413 * dwarf_func_col.c: New file.
1414 * dwarf_func_line.c: New file.
1415 * dwarf_func_file.c: New file.
1416 * libdw.h: Add prototypes for new functions.
1417 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
1418 dwarf_func_file.
1419 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
1420 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
1421 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
1422 Declare __libdw_func_intval and __dwarf_formsdata_internal.
1423 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
1424 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
1425
1426 * dwarf.h: Add some DWARF3 definitions.
1427
14282005-04-01 Ulrich Drepper <drepper@redhat.com>
1429
1430 * dwarf_getfuncs.c: New file.
1431 * dwarf_func_highpc.c: New file.
1432 * dwarf_func_lowpc.c: New file.
1433 * dwarf_func_name.c: New file.
1434 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
1435 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
1436 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
1437 and dwarf_func_name.
1438 * libdw.h: Add prototypes for new functions.
1439 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
1440 * dwarf_siblingof.c: Likewise.
1441 * dwarf_dieoffset.c: Likewise.
1442 * dwarf_highpc.c: Likewise.
1443 * dwarf_lowpc.c: Likewise.
1444 * libdwP.h: Add prototypes for internal functions.
1445 Define Dwarf_Func_s structure.
1446
14472005-03-29 Ulrich Drepper <drepper@redhat.com>
1448
1449 * libdw.h: Add padding in Dwarf_die.
1450
1451 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
1452 * dwarf_attr.c: Likewise.
1453 * dwarf_begin.c: Likewise.
1454 * dwarf_begin_elf.c: Likewise.
1455 * dwarf_bitoffset.c: Likewise.
1456 * dwarf_bitsize.c: Likewise.
1457 * dwarf_bytesize.c: Likewise.
1458 * dwarf_diename.c: Likewise.
1459 * dwarf_formaddr.c: Likewise.
1460 * dwarf_formblock.c: Likewise.
1461 * dwarf_formref.c: Likewise.
1462 * dwarf_formstring.c: Likewise.
1463 * dwarf_formudata.c: Likewise.
1464 * dwarf_getarange_addr.c: Likewise.
1465 * dwarf_getarangeinfo.c: Likewise.
1466 * dwarf_getaranges.c: Likewise.
1467 * dwarf_getloclist.c: Likewise.
1468 * dwarf_getmacros.c: Likewise.
1469 * dwarf_getsrc_die.c: Likewise.
1470 * dwarf_getsrcfiles.c: Likewise.
1471 * dwarf_getsrclines.c: Likewise.
1472 * dwarf_highpc.c: Likewise.
1473 * dwarf_lowpc.c: Likewise.
1474 * dwarf_nextcu.c: Likewise.
1475 * dwarf_offdie.c: Likewise.
1476 * dwarf_siblingof.c: Likewise.
1477 * dwarf_srclang.c: Likewise.
1478 * dwarf_tag.c: Likewise.
1479 * libdw_findcu.c: Likewise.
1480 * libdwP.h: Add prototypes for internal functions.
1481
1482 * dwarf_addrdie.c: New file.
1483 * dwarf_macro_opcode.c: New file.
1484 * dwarf_macro_param1.c: New file.
1485 * dwarf_macro_param2.c: New file.
1486 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
1487 * libdwP.h: Remove Dwarf_Macro definition.
1488 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
1489 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
1490 * libdw.map: Add entries for new functions.
1491
14922005-03-21 Ulrich Drepper <drepper@redhat.com>
1493
1494 * libdw.h: Handle broken gcc < 4.
1495
14962005-02-15 Ulrich Drepper <drepper@redhat.com>
1497
1498 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
1499
1500 * dwarf_begin_elf.c: Fix warnings.
1501 * dwarf_dieoffset.c: Likewise.
1502 * dwarf_end.c: Likewise.
1503 * dwarf_error.c: Likewise.
1504 * dwarf_getpubnames.c: Likewise.
1505
1506 * libdwP.h: Add new error values.
1507 * dwarf_error.c: Support new error values.
1508 * dwarf_getpubnames.c: Check parameter value.
1509
15102005-02-05 Ulrich Drepper <drepper@redhat.com>
1511
1512 * Makefile.am: Check for text relocations in constructed DSO.
1513
1514 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
1515
15162005-02-04 Ulrich Drepper <drepper@redhat.com>
1517
1518 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
1519 checks to not read over buffer boundaries for ill-formed DWARF data.
1520
15212004-09-25 Ulrich Drepper <drepper@redhat.com>
1522
1523 * dwarf_child.c: Make compile with gcc 4.0.
1524 * dwarf_error.c: Likewise.
1525 * dwarf_formblock.c: Likewise.
1526 * dwarf_getabbrev.c: Likewise.
1527 * dwarf_getattrs.c: Likewise.
1528 * dwarf_getsrclines.c: Likewise.
1529 * dwarf_tag.c: Likewise.
1530 * libdw_form.c: Likewise.
1531
15322004-01-20 Ulrich Drepper <drepper@redhat.com>
1533
1534 * Makefile.am: Support building with mudflap.
1535
1536 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
1537 * dwarf_getsrclines.c: Likewise.
1538 * dwarf_memory-access.h: Likewise.
1539
15402004-01-19 Ulrich Drepper <drepper@redhat.com>
1541
1542 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1543
1544 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1545 Third parameter of dwarf_getsrcfiles can be NULL.
1546
1547 * libdw.map: Add dwarf_getmacros.
1548 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1549 * dwarf_getmacros.c: New file.
1550
15512004-01-18 Ulrich Drepper <drepper@redhat.com>
1552
1553 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1554
1555 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1556
1557 * dwarf_getsrclines.c:
1558 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1559
1560 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1561
1562 * libdwP.h (_): Use elfutils domain.
1563
1564 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1565
1566 * dwarf_getsrclines.c: Fix typo in comment.
1567
15682004-01-17 Ulrich Drepper <drepper@redhat.com>
1569
1570 * Makefile.am: Support building with mudflap.
1571
15722004-01-16 Ulrich Drepper <drepper@redhat.com>
1573
1574 * memory-access.h: Add lots of const in case a pointer passed is const.
1575
1576 * dwarf_formflag.c: New file.
1577 * dwarf_getattrs.c: New file.
1578 * dwarf_error.c: Add new error value.
1579 * libdw.h: Add prototypes for new functions. Adjust prototype for
1580 dwarf_getpubnames.
1581 * libdw.map: Add new functions.
1582 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1583 to ptrdiff_t.
1584 * libdwP.h: Add new error value.
1585 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1586 dwarf_formflag.c.
1587
1588 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1589
15902004-01-12 Ulrich Drepper <drepper@redhat.com>
1591
1592 * dwarf_getarange_addr.c: New file
1593 * dwarf_getarangeinfo.c: New file.
1594 * dwarf_getaranges.c: New file.
1595 * dwarf_onerange.c: New file.
1596 * libdw.h: Declare new functions. Define Dwarf_Arange and
1597 Dwarf_Aranges.
1598 * libdw.map: Add new functions.
1599 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1600 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1601 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1602 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1603 * dwarf_error.c: Add new message.
1604
16052004-01-11 Ulrich Drepper <drepper@redhat.com>
1606
1607 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1608 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1609 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1610 * dwarf_error.c: Add another message.
1611 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1612 introduction.
1613 * dwarf_filesrc.c: Likewise.
1614 * dwarf_getsrcfiles.c: Likewise.
1615 * dwarf_getsrclines.c: Likewise.
1616 * dwarf_lineaddr.c: New file.
1617 * dwarf_linebeginstatement.c: New file.
1618 * dwarf_lineblock.c: New file.
1619 * dwarf_linecol.c: New file.
1620 * dwarf_lineendsequence.c: New file.
1621 * dwarf_lineepiloguebegin.c: New file.
1622 * dwarf_lineno.c: New file.
1623 * dwarf_lineprologueend.c: New file.
1624 * dwarf_onesrcline.c: New file.
1625 * dwarf_lineno.c: Change interface to store result in object pointed
1626 to by second parameter.
1627 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1628 prototype. Define Dwarf_Files and Dwarf_Lines.
1629 * libdw.map: Add new functions.
1630 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1631 * libdw_findcu.c: Don't initialize nlines field.
1632
1633 * dwarf_siblingof: Little optimization.
1634
1635 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1636 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1637 * libdwP.h (struct Dwarf): Add free_elf field.
1638
1639 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1640 dwarf_offabbrev.c.
1641 * dwarf_getstring.c: New file.
1642 * dwarf_offabbrev.c: New file.
1643 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1644 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1645 parameters. Don't allocate memory if not necessary and don't lookup
1646 previous results if no CU given.
1647 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1648 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1649 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1650 * libdwP.h: Change prototype for __libdw_getabbrev.
1651
1652 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1653 returning if this is wanted.
1654
16552004-01-09 Ulrich Drepper <drepper@redhat.com>
1656
1657 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1658 with offset_size value.
1659 * libdw.h: Adjust dwarf_nextcu prototype.
1660 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1661 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1662 member of new CU struct.
1663 * dwarf_formstring.c: Depend on offset_size not address_size for
1664 DW_FORM_strp handling.
1665 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1666
1667 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1668 failing lookup.
1669 (dwarf_tag): Correctly recognize failed lookup.
1670
1671 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1672 function noop_free.
1673 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1674 * dwarf_formblock.c: New file.
1675 * dwarf_getloclist.c: Rewrite to handle a single block.
1676 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1677 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1678 dwarf_getloclistent declaration.
1679 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1680 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1681 Add locs member to struct Dwarf_CU.
1682 * libdw_fundcu.c: Initialize locs member of new CU.
1683 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1684 Remove dwarf_getloclistent.c.
1685
16862004-01-07 Ulrich Drepper <drepper@redhat.com>
1687
1688 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1689 * libdwP.h: Likewise.
1690
1691 * dwarf_getloclist.c: New file.
1692 * dwarf_getloclistent.c: New file.
1693 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1694 Declare dwarf_getloclistent and dwarf_getloclist.
1695 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1696 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1697 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1698 dwarf_getloclist.c.
1699
1700 * dwarf_error.c: More error messages.
1701
17022004-01-06 Ulrich Drepper <drepper@redhat.com>
1703
1704 * dwarf_getsrclines.c: Remove debugging support.
1705
1706 * dwarf_getsrcfiles.c: New file.
1707 * dwarf_filesrc.c: New file.
1708 * libdw.h: Declare these functions. Define Dwarf_File.
1709 * libdwP.c: Adjust Dwarf_File_s definition.
1710 * libdw.map: Add these functions.
1711 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1712 dwarf_filesrc.c.
1713 * dwarf_getsrclines.c: Initialize cu->files.
1714
17152004-01-05 Ulrich Drepper <drepper@redhat.com>
1716
1717 * libdw.h: Add more nonnull function attributes.
1718
1719 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1720 * dwarf_end.c (cu_free): New function.
1721 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1722 * dwarf_error.c (errmsgs): Add new messages.
1723 * dwarf_getsrc_die.c: New file.
1724 * dwarf_getsrclines.c: New file.
1725 * dwarf_lineno.c: New file.
1726 * dwarf_linesrc.c: New file.
1727 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1728 instead of the *_inc-less variants.
Ulrich Drepper6fb34512010-05-28 20:28:04 -07001729 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001730 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1731 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1732 and dwarf_linesrc.
1733 * libdwP.h: Add more error codes.
1734 (struct Dwarf): Remove mem_tail.next member.
1735 (Dwarf_File): Define type.
1736 (struct Dwarf_Line_s): Define type.
1737 (struct Dwarf_CU): Add lines and nlines members.
1738 (libdw_alloc): Define local variable _tail and use it.
1739 Add some function attributes.
1740 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1741 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1742 * memory-access.h: Add unlikely for the endian conversion paths.
1743 * Makefile.am (AM_CFLAGS): Add -std parameter.
1744 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1745 dwarf_lineno, and dwarf_linesrc.
1746
17472003-08-11 Ulrich Drepper <drepper@redhat.com>
1748
1749 * Moved to CVS archive.