blob: aa7b9ca486c26297bb9de4dd09b35b3bd55c67f7 [file] [log] [blame]
Josh Stone4e2787c2013-12-10 14:19:09 -080012013-12-10 Josh Stone <jistone@redhat.com>
2
3 * memory-access.h (get_uleb128_rest_return): Removed.
4 (get_sleb128_rest_return): Removed.
5 (get_uleb128_step): Make this a self-contained block.
6 (get_sleb128_step): Ditto, and use a bitfield to extend signs.
7 (get_uleb128): Make this wholly implemented by __libdw_get_uleb128.
8 (get_sleb128): Make this wholly implemented by __libdw_get_sleb128.
9 (__libdw_get_uleb128): Simplify and inline for all callers.
10 (__libdw_get_sleb128): Ditto.
11 * dwarf_getlocation.c (store_implicit_value): Void the unused uleb128.
12 * memory-access.c: Delete file.
13 * Makefile.am (libdw_a_SOURCES): Remove it.
14 (DEFS): Remove the now unused -DIS_LIBDW.
15
Josh Stonec0d2a0b2013-12-09 13:52:10 -0800162013-12-09 Josh Stone <jistone@redhat.com>
17
18 * libdw_form.c (__libdw_form_val_compute_len): Renamed function from
19 __libdw_form_val_len, now handling only non-constant form lengths.
20 * libdwP.h (__libdw_form_val_len): New inlined function.
21
Mark Wielaard3951f2e2013-12-09 16:33:26 +0100222013-12-09 Mark Wielaard <mjw@redhat.com>
23
24 * dwarf_getlocation.c (__libdw_intern_expression): Handle empty
25 location expressions.
26 * dwarf_getlocation_attr.c (dwarf_getlocation_attr): When no
27 location found, return empty location expression.
28 * dwarf_getlocation_implicit_pointer.c
29 (dwarf_getlocation_implicit_pointer): Likewise.
30 (__libdw_empty_loc_attr): New internal function.
31 * libdwP.h (__libdw_empty_loc_attr): Define.
32
Mark Wielaard819c3492013-11-27 16:45:44 +0100332013-11-27 Mark Wielaard <mjw@redhat.com>
34
35 * libdw.map (ELFUTILS_0.158): Add dwfl_module_addrsym_elf and
36 dwfl_module_getsym_elf.
37
Mark Wielaard16bc4562013-11-26 15:13:22 +0100382013-11-26 Mark Wielaard <mjw@redhat.com>
39
40 * libdw.map (ELFUTILS_0.156): Move dwfl_attach_state, dwfl_pid,
41 dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
42 dwfl_thread_state_registers, dwfl_thread_state_register_pc,
43 dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc to ...
44 (ELFUTILS_0.158): ... here.
45
Mark Wielaard03d76f42013-11-09 16:45:22 +0100462013-11-09 Mark Wielaard <mjw@redhat.com>
47
48 * dwarf_getaranges.c (dwarf_getaranges): Read segment_size and
49 check that it is zero.
50
Jan Kratochvil0b867462013-05-30 14:37:38 +0200512013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
52
53 * cfi.h (struct Dwarf_Frame_s): Make the comment more specific.
54 * libdw.map (ELFUTILS_0.156): Add dwfl_attach_state, dwfl_pid,
55 dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
56 dwfl_thread_state_registers, dwfl_thread_state_register_pc,
57 dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc.
58
Michael Forneya45c8042013-11-01 00:51:04 -0700592013-11-01 Michael Forney <mforney@mforney.org>
60
Michael Forneycdc09432013-11-01 00:51:05 -070061 * Makefile.am (libdwfl_objects): New definition.
62 (libdw_a_LIBADD): Use libdwfl_objects.
63
642013-11-01 Michael Forney <mforney@mforney.org>
65
Michael Forneya45c8042013-11-01 00:51:04 -070066 * Makefile.am: Use READELF.
67
Jan Kratochvil3cf491e2013-10-30 10:48:20 +0100682013-10-30 Jan Kratochvil <jan.kratochvil@redhat.com>
69
70 * libdw.map (ELFUTILS_0.158): New.
71
Mark Wielaarde6a9bb82013-10-10 11:40:12 +0200722013-10-10 Mark Wielaard <mjw@redhat.com>
73
74 * dwarf_getfuncs.c (struct visitor_info): Rename start_offset to
75 start_addr and rename last_offset to last_addr. Now both void *.
76 (tree_visitor): Use start_add and die_addr instead of start_offset
77 and die_offset.
78 (dwarf_getfuncs): Use last_addr instead of last_offset.
79
Mark Wielaard3dec3e12013-10-06 17:04:07 +0200802013-10-06 Mark Wielaard <mjw@redhat.com>
81
82 * cfi.c (execute_cfi): Make sure DW_CFA_expression and
83 DW_CFA_val_expression are not used with abi_cfi.
84
Josh Stone5dbbc5e2013-10-03 12:38:25 -0700852013-10-03 Josh Stone <jistone@redhat.com>
86
87 * dwarf_formref_die.c (dwarf_formref_die): Don't hash the sig8 here.
88 * libdw_findcu.c (__libdw_intern_next_unit): Since this never revisits
89 a unit, make sure to always hash the sig8 here, so none are missed.
90
Mark Wielaard74f9b732013-09-30 00:39:07 +0200912013-09-29 Mark Wielaard <mjw@redhat.com>
92
93 * dwarf_getlocation.c (store_implicit_value): Cast op->number2 to
94 uintptr_t before casting to char *.
95 (__libdw_intern_expression): Cast data to uintptr_t before casting
96 to Dwarf_Word.
97 * dwarf_getlocation_attr.c (dwarf_getlocation_attr): Cast
98 op->number2 to uintptr_t before casting to char *.
99
Josh Stonef06c8582013-09-24 15:52:05 -07001002013-09-24 Josh Stone <jistone@redhat.com>
101
102 * libdw_visit_scopes.c (classify_die): Removed.
103 (may_have_scopes): New function to replace classify_die. There's no
104 need for full classification; just find tags that may contain scopes.
105 (__libdw_visit_scopes): Use a direct tag comparison for imported
106 units, and use may_have_scopes to test if recursion is needed.
107
Mark Wielaard1b734df2013-09-20 09:50:42 -04001082013-09-20 Mark Wielaard <mjw@redhat.com>
109
110 * dwarf_getfuncs.c (visitor_info): New struct.
111 (tree_visitor): New function.
112 (dwarf_getfuncs): Use __libdw_visit_scopes with tree_visitor.
113 * libdw.h (dwarf_getfuncs): Expand function documentation.
114
Mark Wielaard18b2c672013-09-12 15:49:47 +02001152013-09-12 Mark Wielaard <mjw@redhat.com>
116
117 * fde.c (intern_fde): Free fde and set libdw errno when start
118 or end could not be read.
119
Mark Wielaardb2535b62013-08-30 23:55:12 +02001202013-08-24 Mark Wielaard <mjw@redhat.com>
121
122 * dwarf_getlocation.c (store_implicit_value): Don't take data
123 as argument, get block data from op number2. Return false when
124 block data length and op number don't match up.
125 (__libdw_intern_expression): Store start of block for
126 DW_OP_implicit_value and DW_OP_GNU_entry_value instead of
127 relative data offset. Also store block start (including length)
128 for DW_OP_GNU_const_type. Don't pass data to store_implicit_value.
129 * dwarf_getlocation_attr.c: New file.
130 * dwarf_getlocation_die.c: Likewise.
131 * libdw.h (dwarf_getlocation_die): New function definition.
132 (dwarf_getlocation_attr): Likewise.
133 * libdwP.h: Declare internal dwarf_getlocation_die.
134 * libdw.map (ELFUTILS_0.157): Add dwarf_getlocation_die and
135 dwarf_getlocation_attr.
136 * Makefile.am (libdw_a_SOURCES): Add dwarf_getlocation_die.c and
137 dwarf_getlocation_attr.c.
138
Mark Wielaard66eaae92013-08-23 16:12:37 +02001392013-08-23 Mark Wielaard <mjw@redhat.com>
140
141 * dwarf_getlocation.c (attr_ok): Also accept DW_AT_segment.
142 (attr_base_address): New function.
143 (initial_offset_base): New function.
144 (getlocations_addr): New function. Taken from...
145 (dwarf_getlocation_addr): here. Use new initial_offset_base and
146 getlocations_addr.
147 (dwarf_getlocations): New function.
148 * libdw.h (dwarf_getlocations): New function definition.
149 * libdw.map (ELFUTILS_0.157): New.
150
Mark Wielaard5704c8c2013-07-02 11:22:35 +02001512013-07-02 Mark Wielaard <mjw@redhat.com>
152
Mark Wielaard4aacfc12013-07-02 16:36:16 +0200153 * dwarf_getsrclines.c (dwarf_getsrclines): Add new stack allocation
154 limit MAX_STACK_ALLOC. After MAX_STACK_ALLOC lines use malloc in
155 NEW_LINE macro. Free malloced line records if any at the end.
156
1572013-07-02 Mark Wielaard <mjw@redhat.com>
158
Mark Wielaard5704c8c2013-07-02 11:22:35 +0200159 * dwarf_getcfi_elf.c (getcfi_shdr): Check sh_type == SHT_PROGBITS.
160
Mark Wielaard79277072013-06-26 11:42:52 -04001612013-06-26 Mark Wielaard <mjw@redhat.com>
162
163 * libdw_visit_scopes.c (__libdw_visit_scopes): Don't reject root
164 DIEs without children. Return an error whenever dwarf_child or
165 dwarf_siblingof return an error. Don't call recurse and increase
166 the depth for an imported unit. Walk the children of an imported
167 unit as if they are logical children of the parent root DIE.
168
Mark Wielaard9affad32013-05-03 11:28:49 +02001692013-05-03 Mark Wielaard <mjw@redhat.com>
170
171 * dwarf_getsrclines.c (dwarf_getsrclines): Only set end_sequence
172 when nlinelist > 0.
173
Jan Kratochvil904aec22013-04-30 14:27:16 +02001742013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
175
176 * libdw.map (ELFUTILS_0.156): New.
177
Mark Wielaardcdaaf212013-04-25 16:50:11 -04001782013-04-24 Mark Wielaard <mjw@redhat.com>
179
180 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
181
Mark Wielaardd4744a72013-04-10 15:52:57 +02001822013-04-10 Mark Wielaard <mjw@redhat.com>
183
184 * dwarf_formref_die.c (dwarf_formref_die): Reference size is only
185 equal to address size when we have a DW_FORM_ref_addr for DWARF
186 version 2.
187
Mark Wielaard60ef9ab2013-03-25 17:07:21 +01001882013-03-25 Mark Wielaard <mjw@redhat.com>
189
190 * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as
191 end_sequence.
192
Mark Wielaardf1b06b52013-03-12 12:02:51 +01001932013-03-12 Mark Wielaard <mjw@redhat.com>
194
195 * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit.
196 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
197
Mark Wielaard443304e2013-02-15 22:45:22 +01001982013-02-15 Mark Wielaard <mjw@redhat.com>
199
200 * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata,
201 not dbg->sectiondata.
202
Roland McGrath3999ce12013-01-07 14:53:37 -08002032013-01-07 Roland McGrath <roland@hack.frob.com>
204
205 * memory-access.h
206 [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro.
207 [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function.
208
Mark Wielaard59254422012-12-18 14:14:22 +01002092012-12-18 Mark Wielaard <mjw@redhat.com>
210
211 * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid.
212 (check_section): Likewise on error.
213 (scngrp_read): Likewise.
214 (dwarf_begin_elf): Likewise.
215
Petr Machatab5c0b032012-10-09 02:11:29 +02002162012-10-09 Petr Machata <pmachata@redhat.com>
217
218 * dwarf_getlocation.c (__libdw_intern_expression): Handle
219 DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret,
220 DW_OP_GNU_regval_type, DW_OP_GNU_entry_value,
221 DW_OP_GNU_deref_type, DW_OP_GNU_const_type.
222
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +02002232012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
224
Jan Kratochvil1d67c0c2012-10-08 23:51:31 +0200225 * cfi.c: New include system.h.
226 (execute_cfi) (enough_registers): Clear new memory after realloc.
227
2282012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
229
Jan Kratochvil07f35072012-10-08 23:34:35 +0200230 * fde.c (__libdw_find_fde): Change <fde != NULL> to likely. Return
231 DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for
232 searched PC.
233
2342012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
235
Jan Kratochvil96a9fc62012-10-08 23:08:01 +0200236 * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new
237 loclist element DW_OP_call_frame_cfa before decoding the opcodes.
238 Remove the later DW_OP_call_frame_cfa push to RESULT.
239
2402012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
241
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +0200242 Code cleanup.
243 * fde.c (binary_search_fde): Remove always true <address >= start>
244 conditional. Move L initialization upwards.
245
Mark Wielaardf5519fc2012-08-24 13:54:52 +02002462012-08-24 Mark Wielaard <mjw@redhat.com>
247
248 * dwarf_begin_elf.c (check_section): Only probe for dwz multi files
249 when ENABLE_DWZ is defined.
250 * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is
251 defined.
252
Mark Wielaardf31c4412012-08-17 00:35:03 +02002532012-08-16 Mark Wielaard <mjw@redhat.com>
254
255 * Makefile.am (EXTRA_DIST): Add known-dwarf.h.
256 * dwarf.h (DW_LANG_Go): Update comment.
257 (DW_LANG_Mips_Assembler): Likewise.
258
Mark Wielaard775375e2012-06-22 12:02:45 +02002592012-06-27 Mark Wielaard <mjw@redhat.com>
260
261 * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
262 * dwarf_begin.c (dwarf_begin): Add INTDEF.
263 * dwarf_begin_elf.c (__check_build_id): New internal_function.
264 (try_debugaltlink): New function.
265 (open_debugaltlink): Likewise.
266 (check_section): Try open_debugaltlink for .gnu_debugaltlink.
267 * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if
268 necessary.
269 * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK.
270 * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt
271 is an error here.
272 * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt.
273 * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt.
274 * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset
275 calls.
276 * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call.
277 * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK.
278 (struct Dwarf): Add alt_dwarf and free_alt fields.
279 (__libdw_read_offset): Add dbg_ret argument, use to check with
280 __libdw_offset_in_section.
281 (__check_build_id): New function declaration.
282 (dwarf_begin): Define as INTDECL.
283 * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt
284 and DW_FORM_GNU_strp_alt.
285
Mark Wielaard515fba92012-07-20 00:09:56 +02002862012-07-19 Mark Wielaard <mjw@redhat.com>
287
288 * dwarf.h: Add DW_OP_GNU_parameter_ref.
289
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +02002902012-07-24 Mark Wielaard <mjw@redhat.com>
291
Mark Wielaardc4010b82012-07-24 13:20:41 +0200292 * dwarf.h: Correct spelling of DW_LANG_ObjC.
293 * dwarf_aggregate_size.c (array_size): Use correct spelling of
294 DW_LANG_ObjC.
295
2962012-07-24 Mark Wielaard <mjw@redhat.com>
297
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +0200298 * dwarf.h: Add DW_ATE_UTF.
299
Mark Wielaardef5688e2012-06-27 10:15:27 +02003002012-06-27 Mark Wielaard <mjw@redhat.com>
301
302 * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
303
Mark Wielaarda0172d72012-06-25 17:18:53 +02003042012-06-26 Mark Wielaard <mjw@redhat.com>
305
306 * libdwP.h: Add IDX_debug_macro.
307 * dwarf.h: Add DW_AT_GNU_macros.
308 * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro.
309 * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros.
310
Mark Wielaard54797252012-04-27 13:00:50 +02003112012-04-27 Mark Wielaard <mjw@redhat.com>
312
313 * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being
314 a constant offset from DW_AT_low_pc.
315
Tom Tromey581c3f62012-03-21 08:54:32 -06003162012-03-19 Tom Tromey <tromey@redhat.com>
317
318 * libdw_findcu.c (findcu_cb): Move earlier.
319 (__libdw_intern_next_unit): Add new CU to search tree here...
320 (__libdw_findcu): ... not here.
321
Mark Wielaardcb643d62012-01-31 19:22:03 +01003222012-01-31 Mark Wielaard <mjw@redhat.com>
323
324 * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset.
325
Mark Wielaard387998b2011-10-31 15:01:50 +01003262011-11-31 Mark Wielaard <mjw@redhat.com>
327
328 * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
329
Mark Wielaard0b72b652011-07-14 12:59:26 +02003302011-07-14 Mark Wielaard <mjw@redhat.com>
331
332 * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
333
Jakub Jelinek03124242011-05-17 17:00:14 +02003342011-05-16 Jakub Jelinek <jakub@redhat.com>
335
336 * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
337 DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
338 New.
339
Mark Wielaardf4c39c72011-04-26 17:15:28 +02003402011-04-26 Mark Wielaard <mjw@redhat.com>
341
342 * dwarf_child (dwarf_child): Sanity check end of section against
343 cu_data () of die->cu.
344
Mark Wielaarde3368c52011-03-22 23:03:31 +01003452011-03-22 Mark Wielaard <mjw@redhat.com>
346
347 * dwarf.h: Add DW_TAG_GNU_call_site,
348 DW_TAG_GNU_call_site_parameter,
349 DW_AT_GNU_call_site_value,
350 DW_AT_GNU_call_site_data_value,
351 DW_AT_GNU_call_site_target,
352 DW_AT_GNU_call_site_target_clobbered,
353 DW_AT_GNU_tail_call,
354 DW_AT_GNU_all_tail_call_sites,
355 DW_AT_GNU_all_call_sites,
356 DW_AT_GNU_all_source_call_sites,
357 and DW_OP_GNU_entry_value.
358
Petr Machata02c56192011-03-10 01:50:32 +01003592011-03-10 Petr Machata <pmachata@redhat.com>
360
361 * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
362 abbreviation with code 0.
363
Petr Machata35870872011-03-09 10:01:29 -08003642011-03-09 Petr Machata <pmachata@redhat.com>
365
366 * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
367
Roland McGrath725aad52011-02-23 19:52:46 -08003682011-02-23 Roland McGrath <roland@redhat.com>
369
370 * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
371 Declare __libdw_free_zdata.
372 * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
373 (dwarf_end): Call it.
374
375 * dwarf_begin_elf.c (valid_p): Likewise.
376 (check_section, scngrp_read): Likewise.
377 (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
378
Roland McGrath8c0a3822010-10-13 11:21:17 -07003792010-10-13 Roland McGrath <roland@redhat.com>
380
381 * dwarf.h: Add DW_LANG_Go.
382
Roland McGrath5f95e2b2010-10-05 00:56:30 -07003832010-10-05 Roland McGrath <roland@redhat.com>
384
385 * dwarf_getaranges.c: Use malloc rather than alloca,
386 since the total number of elements can be quite huge.
387
Roland McGrath932585d2010-05-08 04:01:14 -07003882010-07-26 Roland McGrath <roland@redhat.com>
389
390 * dwarf_getlocation_implicit_pointer.c: New file.
391 * Makefile.am (libdw_a_SOURCES): Add it.
392 * libdw.map (ELFUTILS_0.149): New set.
393 Add dwarf_getlocation_implicit_pointer.
394 * libdw.h: Declare it.
395
396 * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
397 (dwarf_offdie, dwarf_offdie_types): Update callers.
398 * libdwP.h: Declare it.
399
400 * dwarf.h: Add DW_OP_GNU_implicit_pointer.
401 * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
402
Roland McGrathde44f132010-08-24 15:38:42 -07004032010-08-24 Roland McGrath <roland@redhat.com>
404
405 * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
406
Roland McGrath00aca7f2010-07-27 04:40:23 -07004072010-07-27 Roland McGrath <roland@redhat.com>
408
409 * dwarf_formref_die.c: Fix sig8 hash insertion.
410
Roland McGrath9616b852010-06-23 03:17:28 -07004112010-06-23 Roland McGrath <roland@redhat.com>
412
413 * cfi.c (dwarf_cfi_validate_fde): Function removed.
414 * libdw.h: Remove it.
415 * libdw.map: Likewise.
416
Roland McGrath499b8ff2010-06-22 13:13:53 -07004172010-06-22 Roland McGrath <roland@redhat.com>
418
Roland McGrathc16966a2010-06-22 17:08:43 -0700419 * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
420
Roland McGrath499b8ff2010-06-22 13:13:53 -0700421 * dwarf_getsrclines.c: Fix signed comparison warning in extended
422 opcode parsing.
423
Roland McGrath0c5638c2010-06-21 23:00:35 -07004242010-06-21 Roland McGrath <roland@redhat.com>
425
Roland McGrath474cb482010-06-22 00:10:54 -0700426 * dwarf.h: Add DW_TAG_GNU_* constants.
427
Roland McGrath0c5638c2010-06-21 23:00:35 -0700428 * memory-access.h (get_sleb128_rest_return): Fix sign extension for
429 10-byte case.
430
Roland McGrath5cc030d2010-06-20 17:25:35 -07004312010-06-20 Roland McGrath <roland@redhat.com>
432
Roland McGrath2b1f0952010-06-20 17:55:50 -0700433 * libdw_findcu.c (__libdw_findcu): Take new flag argument,
434 to search TUs instead of CUs.
435 * libdwP.h: Update decl.
436 (struct Dwarf): New member tu_tree.
437 * dwarf_end.c (dwarf_end): Clean up tu_tree.
438 * dwarf_offdie.c (do_offdie): New function, broken out of ...
439 (dwarf_offdie): ... here.
440 (dwarf_offdie_types): New function.
441 * libdw.h: Declare it.
442 * libdw.map (ELFUTILS_0.148): Add it.
443
Roland McGrath5cc030d2010-06-20 17:25:35 -0700444 * libdwP.h (CUDIE): Use cu_data.
445 * dwarf_formblock.c: Likewise.
446 * dwarf_formref_die.c: Likewise.
447 * dwarf_diecu.c: Use CUDIE macro.
448 * dwarf_formaddr.c: Use cu_sec_idx.
449
Roland McGrathc70ebc02010-06-16 02:21:26 -07004502010-06-16 Roland McGrath <roland@redhat.com>
451
Roland McGrath3e0f7d12010-06-15 23:10:35 -0700452 * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
453 we don't repeat a CU lookup we've already done. Handle
454 DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
455
456 * libdw_findcu.c (__libdw_intern_next_unit): New function,
457 broken out of ...
458 (__libdw_findcu): ... here. Call it.
459 * libdwP.h: Declare it.
460 (struct Dwarf): New member next_tu_offset.
461
462 * dwarf_sig8_hash.c: New file.
463 * dwarf_sig8_hash.h: New file.
464 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
465 * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
466 defining NO_UNDEF.
467 * libdwP.h (struct Dwarf): New member sig8_hash.
468 * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
469 * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
470
471 * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
472 (dwarf_nextcu): ... here. Call it.
473 * libdw.h: Declare it.
474 * libdwP.h: Add INTDECL.
475 * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
476 * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
477
478 * libdwP.h (cu_sec_idx, cu_data): New functions.
479 Use .debug_types when CU is a TU.
480 * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
481 * dwarf_siblingof.c: Likewise.
482 * dwarf_formstring.c: Likewise.
483 * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
484 * dwarf_getlocation.c (dwarf_getlocation): Likewise.
485 (dwarf_getlocation_addr): Likewise.
486
487 * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
488 (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
489 .debug_types header size instead of .debug_info header size.
490 (CUDIE): Use it.
491 * dwarf_diecu.c: Update caller.
492 * dwarf_getaranges.c: Likewise.
493 * dwarf_nextcu.c: Likewise.
494 * libdw_findcu.c (__libdw_findcu): Initialize new members.
495
Roland McGrath3e4b5bb2010-06-16 03:40:56 -0700496 * fde.c (fde_by_offset): Renamed to ...
497 (__libdw_fde_by_offset): ... this, made global and internal_function.
498 Don't take ADDRESS argument.
499 (__libdw_find_fde): Update caller. Do address sanity check here.
500 * cfi.h: Declare __libdw_fde_by_offset.
501 * cfi.c (dwarf_cfi_validate_fde): New function.
502 * libdw.h: Declare it.
503 * libdw.map (ELFUTILS_0.148): Add it.
504
Roland McGrath5f4b5082010-06-16 03:11:57 -0700505 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
506 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
507
Roland McGrath7934ded2010-06-16 03:04:09 -0700508 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
509 Don't assume DW_EH_PE_aligned refers to native address size.
510
Roland McGrathc70ebc02010-06-16 02:21:26 -0700511 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
512 address.
513
Roland McGrathc70cf4e2010-06-18 17:01:05 -07005142010-06-17 Roland McGrath <roland@redhat.com>
515
516 * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
517 op_index.
518 * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
519 into an inner inline function. Set new fields. Check all fields for
520 overflow when setting.
521 * dwarf_lineisa.c: New file.
522 * dwarf_linediscriminator.c: New file.
523 * dwarf_lineop_index.c: New file.
524 * Makefile.am (libdw_a_SOURCES): Add them.
525 * libdw.map (ELFUTILS_0.148): Add them.
526 * libdw.h: Declare them.
527
Roland McGrath3f633072010-06-15 22:17:04 -07005282010-06-16 Roland McGrath <roland@redhat.com>
529
Roland McGrath4a87dfa2010-06-16 16:35:10 -0700530 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
531
Roland McGrathb75f4442010-06-15 22:24:19 -0700532 * fde.c (fde_by_offset): Renamed to ...
533 (__libdw_fde_by_offset): ... this, made global and internal_function.
534 Don't take ADDRESS argument.
535 (__libdw_find_fde): Update caller. Do address sanity check here.
536 * cfi.h: Declare __libdw_fde_by_offset.
Roland McGrath9bcd2652010-06-15 22:17:20 -0700537 * cfi.c (dwarf_cfi_validate_fde): New function.
538 * libdw.h: Declare it.
Roland McGrath3f633072010-06-15 22:17:04 -0700539 * libdw.map (ELFUTILS_0.148): Add it.
540
Roland McGrath0b3363e2010-06-01 15:42:14 -0700541 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
542 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
Roland McGrath827d4d12010-06-01 20:17:36 -0700543
544 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
545 Don't assume DW_EH_PE_aligned refers to native address size.
Roland McGrath1a030b32010-06-01 20:11:40 -0700546
547 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
Roland McGrath675229b2010-06-01 20:10:19 -0700548 address.
549
5502010-06-15 Roland McGrath <roland@redhat.com>
Roland McGrath52123962010-06-01 19:05:08 -0700551
552 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
Roland McGrath7fac1ce2010-06-01 15:56:58 -0700553 DW_FORM_ref_addr.
554 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
Roland McGrath0b3363e2010-06-01 15:42:14 -0700555 here, since we don't support it yet.
556
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200557 * dwarf_next_cfi.c: Handle version 4 format.
558
Mark Wielaard08e71db2010-05-31 15:39:15 +0200559 * dwarf_getsrclines.c: Handle version 4 format.
560
5612010-06-01 Roland McGrath <roland@redhat.com>
562
563 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200564 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
565
Eduardo Santiagod2240bc2010-05-28 14:26:52 -0700566 * libdwP.h (CIE_VERSION): Remove unused macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700567
Ulrich Drepper49fe7142010-05-28 20:32:37 -0700568 * dwarf_getsrclines.c: Fix version field test.
569 * libdwP.h (DWARF_VERSION): Remove useless macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700570
Roland McGrathcfa5da22010-05-27 13:49:25 -0700571 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
572
573 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
574
575 * libdw_findcu.c (__libdw_findcu): Accept version 4.
Roland McGrath688f7fc2010-05-08 03:22:59 -0700576
5772010-05-31 Mark Wielaard <mjw@redhat.com>
578
579 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
580 * libdw.h (dwarf_cfi_cie_p): ... here.
581
5822010-05-31 Mark Wielaard <mjw@redhat.com>
583
584 * dwarf.h: Fix DW_LANG_Python constant.
Roland McGrath0ab97832010-04-26 11:50:27 -0700585
5862010-05-28 Eduardo Santiago <santiago@redhat.com>
Roland McGrath3b10ac02010-04-26 18:45:36 -0700587
588 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
589 thing.
590
5912010-05-27 Roland McGrath <roland@redhat.com>
Roland McGrath0ab97832010-04-26 11:50:27 -0700592
593 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
594 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
595
5962010-05-08 Roland McGrath <roland@redhat.com>
597
598 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
Roland McGrath3f9d9552010-04-22 20:51:07 -0700599 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
600 (getlocation): Update caller.
601 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
602 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
603 * libdwP.h: Update decl.
604
6052010-04-26 Roland McGrath <roland@redhat.com>
Roland McGrath8068e062010-03-10 23:49:13 -0800606
607 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
608 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
609 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
Roland McGrath22359e22010-02-15 15:57:03 -0800610 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
611
612 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
613 Prepend DW_OP_call_frame_cfa if true.
Mark Wielaardee29a312010-02-02 20:44:53 +0100614 (getlocation): Update caller.
615 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
616 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
617 * libdwP.h: Update decl.
Roland McGrathf95760a2010-01-07 20:24:34 -0800618
6192010-04-22 Roland McGrath <roland@redhat.com>
620
621 * cfi.c (execute_cfi): Never return without cleanup.
Roland McGrath019d9fb2010-01-05 13:36:07 -0800622 Free FS on failure.
623 (cie_cache_initial_state): Adjust caller to expect that free.
Roland McGrathebc5c882010-01-05 22:53:31 -0800624 (__libdw_frame_at_address): Likewise.
625
6262010-03-10 Roland McGrath <roland@redhat.com>
627
628 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
629
6302010-02-15 Roland McGrath <roland@redhat.com>
631
632 * Makefile.am: Use config/eu.am for common stuff.
Roland McGrath0cb19832010-01-05 13:38:15 -0800633
6342010-02-02 Mark Wielaard <mjw@redhat.com>
Roland McGrath019d9fb2010-01-05 13:36:07 -0800635
636 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
Roland McGrath888381b2009-11-21 17:03:34 -0800637
6382010-01-07 Roland McGrath <roland@redhat.com>
639
640 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
641
Roland McGrath9ca7bc42009-10-15 12:26:49 -07006422010-01-05 Roland McGrath <roland@redhat.com>
643
644 * dwarf_aggregate_size.c: New file.
645 * Makefile.am (libdw_a_SOURCES): Add it.
646 * libdw.h: Declare it.
Roland McGrath7e0aecd2009-09-17 15:02:34 -0700647 * libdwP.h: Add INTDECL.
648 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
649
650 * dwarf_srclang.c: Add INTDEF.
651 * libdwP.h: Add INTDECL.
652
Roland McGrathf0371042009-09-10 12:39:09 -0700653 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
654
655 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
656
6572009-11-21 Roland McGrath <roland@redhat.com>
658
659 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
660 non-constant forms.
Mark Wielaard418ae4c2009-09-09 20:59:26 +0200661
6622009-10-15 Roland McGrath <roland@redhat.com>
663
664 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
Josh Stonecc93cc42009-08-21 18:04:44 -0700665 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
666
6672009-09-17 Roland McGrath <roland@redhat.com>
668
Roland McGrath08277ba2009-08-10 15:08:08 -0700669 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
670 argument a pointer to const.
671 * libdw.h: Update decl.
672
Roland McGrathebfb6482009-08-09 15:40:52 -07006732009-09-10 Roland McGrath <roland@redhat.com>
674
675 * dwarf_getlocation.c (store_implicit_value): New function.
676 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
677 (dwarf_getlocation_implicit_value): New function.
678 * libdw.h: Declare it.
679 * libdw.map (ELFUTILS_0.143): Add it.
680
6812009-09-09 Mark Wielaard <mjw@redhat.com>
682
683 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
684
6852009-08-21 Josh Stone <jistone@redhat.com>
686
Roland McGrathde69d522009-08-07 18:26:19 -0700687 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
688
6892009-08-10 Roland McGrath <roland@redhat.com>
690
691 * dwarf_getscopevar.c: Use dwarf_diename.
692
6932009-08-09 Roland McGrath <roland@redhat.com>
694
695 * libdw.map (ELFUTILS_0.143): New version set,
696 inherits from ELFUTILS_0.142.
Roland McGrathaf800142009-07-22 13:55:50 -0700697 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
698 alias in the ELFUTILS_0.122 version set and the default in the new set.
699 * dwarf_srclang.c: Likewise.
700 * dwarf_decl_file.c: Likewise.
701 * dwarf_decl_line.c: Likewise.
702 * dwarf_decl_column.c: Likewise.
703 * dwarf_bytesize.c: Likewise.
704 * dwarf_bitsize.c: Likewise.
705 * dwarf_bitoffset.c: Likewise.
706
7072009-08-07 Roland McGrath <roland@redhat.com>
708
709 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
710 * dwarf_srclang.c: Likewise.
711 * dwarf_decl_file.c: Likewise.
712 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
Roland McGrathe23e9e72009-07-21 18:14:52 -0700713 * dwarf_bytesize.c: Likewise.
714 * dwarf_bitsize.c: Likewise.
715 * dwarf_bitoffset.c: Likewise.
716
7172009-07-22 Roland McGrath <roland@redhat.com>
718
719 * dwarf_frame_cfa.c: Change calling convention.
720 * libdw.h: Update decl.
Roland McGrath96349ff2009-07-20 11:51:41 -0700721
722 * dwarf_frame_register.c: Change calling/return-value convention for
723 value-only results and undefined/same_value.
724 * libdw.h: Update decl.
725
Roland McGratha6abdfd2009-07-16 17:40:19 -0700726 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
727 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
Roland McGrathe160cc92009-07-16 17:48:27 -0700728 return that value instead.
729 (getlocation): Update caller.
730 * dwarf_frame_cfa.c: Likewise.
731 * libdwP.h: Update decl.
732
Roland McGratha6abdfd2009-07-16 17:40:19 -07007332009-07-21 Roland McGrath <roland@redhat.com>
734
735 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
736 Fix loop iteration after skipping a bogus or useless CU.
737
738 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
739 absence, not DWARF_E_NO_DEBUG_LINE.
Roland McGrath7dd94642009-07-15 11:14:23 -0700740
7412009-07-20 Roland McGrath <roland@redhat.com>
742
743 * dwarf_getlocation.c (__libdw_intern_expression):
744 Handle DW_OP_stack_value.
Roland McGrath80893432009-07-13 12:08:55 -0700745
7462009-07-16 Roland McGrath <roland@redhat.com>
747
748 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700749 reject others when CU's version > 3.
750
Roland McGrath3c84db32009-06-24 17:41:40 -0700751 * dwarf_formflag.c: Handle DW_FORM_flag_present.
752
753 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
754 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
755 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
756 and DW_AT_const_expr.
757 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
758 and DW_FORM_ref_sig8.
759
7602009-07-15 Roland McGrath <roland@redhat.com>
761
762 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
763 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
764
7652009-07-13 Roland McGrath <roland@redhat.com>
766
767 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
768
7692009-07-08 Roland McGrath <roland@redhat.com>
770
771 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
772 dwfl_module_eh_cfi.
773
774 * libdwP.h (struct Dwarf): Add member `cfi'.
775 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
776 * dwarf_getcfi.c: New file.
777 * dwarf_getcfi_elf.c: New file.
778 * dwarf_cfi_end.c: New file.
779 * dwarf_cfi_addrframe.c: New file.
780 * dwarf_frame_cfa.c: New file.
781 * dwarf_frame_register.c: New file.
782 * dwarf_frame_return_address_register.c: New file.
783 * Makefile.am (libdw_a_SOURCES): Add them.
784 * unwind.h: Declare those functions.
785 * libdw.map (ELFUTILS_0.142): Export them.
786
787 * dwarf_getlocation.c (__libdw_intern_expression): New function,
788 broken out of ...
789 (getlocation): ... here, call it.
790 * libdwP.h: Declare it.
791
792 * cie.c: New file.
793 * fde.c: New file.
794 * frame-cache.c: New file.
795 * cfi.c: New file.
796 * cfi.h: New file.
797 * encoded-value.h: New file.
798 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
799 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
800 * dwarf_error.c (errmsgs): Add element for it.
801
802 * dwarf_next_cfi.c: New file.
803 * Makefile.am (libdw_a_SOURCES): Add it.
Roland McGrath6e1f4652009-07-08 14:48:34 -0700804 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
805 Declare dwarf_next_cfi.
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700806 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
807 Add dwarf_next_cfi.
808
809 * memory-access.h [! ALLOW_UNALIGNED]
Roland McGrath05c4e042009-06-18 13:56:02 -0700810 (read_2ubyte_unaligned): Renamed to ...
811 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
812 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
813 (read_2sbyte_unaligned): Likewise.
814 (read_4ubyte_unaligned): Likewise.
815 (read_4sbyte_unaligned): Likewise.
816 (read_8ubyte_unaligned): Likewise.
817 (read_8sbyte_unaligned): Likewise.
818
Ulrich Drepper99d23722009-06-14 20:19:45 -0700819 * libdwP.h (IDX_eh_frame): Remove it.
820 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
821
8222009-07-08 Roland McGrath <roland@redhat.com>
823
824 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
825
826 * dwarf_getlocation.c (check_constant_offset): New function.
827 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
828 handle DW_AT_data_member_location of data[48] as constant offset.
829
8302009-06-18 Roland McGrath <roland@redhat.com>
831
832 * libdwP.h (__libdw_read_address_inc): Constify.
833 (__libdw_read_offset_inc): Likewise.
834 * dwarf_getaranges.c: Likewise.
835 * dwarf_getlocation.c: Likewise.
836 * dwarf_getsrclines.c: Likewise.
837 * dwarf_nextcu.c: Likewise.
838
8392009-05-05 Petr Machata <pmachata@redhat.com>
840
841 * libdwP.h (__libdw_formptr): Declare new function.
842 * dwarf_formudata.c: Implement it here.
843 * dwarf_getlocation.c (dwarf_getlocation_addr):
844 Call it instead of hand-rolled offset handling code.
845 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
846 * dwarf_ranges.c (dwarf_ranges): Likewise.
847
8482009-05-04 Petr Machata <pmachata@redhat.com>
849
850 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
851 * dwarf_ranges.c: Implement it here.
852 (dwarf_ranges): Call it.
Roland McGrathe2eabd82009-05-07 18:54:52 -0700853 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
854
8552009-04-23 Petr Machata <pmachata@redhat.com>
856
857 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
858 of read_*ubyte_unaligned.
Petr Machataf3df61f2009-05-07 21:02:33 +0200859 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
860 * dwarf_formstring.c (dwarf_formstring): Likewise.
861 * dwarf_formudate.c (dwarf_formudata): Likewise.
862 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
863 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
Roland McGrath2fb90512009-04-15 14:47:13 -0700864 * dwarf_getpubnames.c (get_offsets): Likewise.
865 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
866
8672009-04-23 Petr Machata <pmachata@redhat.com>
868
Roland McGrath6a4bdd92009-04-01 14:25:29 -0700869 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
870 __libdw_read_addr, __libdw_read_off): Add four new internal
871 functions.
872
Roland McGrathc5acb302009-01-28 18:28:52 -08008732009-05-07 Roland McGrath <roland@redhat.com>
874
Roland McGrath03288f02009-01-28 22:00:54 -0800875 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
876 return value and OFFSET argument, not CU-relative. Only fetch the
877 attribute data when called with OFFSET of 0.
Roland McGrathc5acb302009-01-28 18:28:52 -0800878
8792009-05-07 Petr Machata <pmachata@redhat.com>
Roland McGrathf46272a2009-01-26 18:36:16 -0800880
881 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
882 DW_AT_macro_info attribute of CU DIE.
883
Roland McGrathd31505f2009-01-25 19:37:33 -08008842009-04-15 Roland McGrath <roland@redhat.com>
885
886 * dwarf.h (DW_CIE_ID): Removed.
887 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
Roland McGrath3bf7a092009-01-23 16:34:07 -0800888
8892009-04-01 Roland McGrath <roland@redhat.com>
890
891 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
892
Roland McGrathafdd51e2009-01-22 02:26:24 -08008932009-01-28 Roland McGrath <roland@redhat.com>
894
895 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
896 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
Roland McGrath1ea4fdc2009-01-21 19:14:37 -0800897
898 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
899
9002009-01-26 Roland McGrath <roland@redhat.com>
901
902 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
Roland McGrath24b03302009-01-17 14:34:13 -0800903
9042009-01-25 Roland McGrath <roland@redhat.com>
Roland McGrath54456d82009-01-17 14:39:35 -0800905
906 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
907
Roland McGrath5513e642009-01-11 01:35:11 -08009082009-01-23 Roland McGrath <roland@redhat.com>
909
910 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
911 Put these rules under if MAINTAINER_MODE.
912
9132009-01-22 Roland McGrath <roland@redhat.com>
914
Roland McGrath24b03302009-01-17 14:34:13 -0800915 * dwarf.h: Add DW_OP_GNU_encoded_addr.
916
Ulrich Drepper7e678fa2009-01-10 18:02:05 -08009172009-01-21 Roland McGrath <roland@redhat.com>
918
919 * Makefile.am (CLEANFILES): Renamed to ...
920 (MOSTLYCLEANFILES): ... here.
Roland McGrathe06762c2009-01-08 13:39:08 -0800921 (CLEANFILES): New variable, add known-dwarf.h.
922
9232009-01-17 Roland McGrath <roland@redhat.com>
924
Roland McGrath7e827f22009-01-06 02:09:50 -0800925 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
Roland McGrath1f6d2012008-12-31 00:21:04 -0800926 Make it unconditional.
927 (BUILT_SOURCES): Updated.
928
929 * dwarf.h: Add description comments for DW_LANG_* values.
Roland McGrathbca43152009-01-05 23:59:32 -0800930
931 * Makefile.am [MAINTAINER_MODE]
932 ($(srcdir)/known-dwarf.h): New target.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800933 (BUILT_SOURCES): Add it.
934
Roland McGrathc462c632009-01-06 01:04:31 -0800935 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800936
9372009-01-10 Ulrich Drepper <drepper@redhat.com>
938
939 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
Roland McGrathb4d6f0f2008-08-25 22:55:17 +0000940
9412009-01-08 Roland McGrath <roland@redhat.com>
942
943 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
944
Ulrich Drepper8d358d92008-01-22 06:34:31 +00009452008-01-06 Roland McGrath <roland@redhat.com>
946
947 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
948 Reorder members.
949 * dwarf_haschildren.c: Return -1 for error case, not 0.
950
951 * Makefile.am (libdw.so): Link in $(zip_LIBS).
952
Ulrich Drepperb27ce002008-01-18 20:08:54 +00009532009-01-06 Ulrich Drepper <drepper@redhat.com>
954
955 * dwarf.h: Add definition for unwind and call frame information.
956
957 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000958 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
959
9602008-08-15 Roland McGrath <roland@redhat.com>
961
962 * libdw.map (ELFUTILS_0.136): New version set, inherits from
963 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
964
9652008-01-21 Ulrich Drepper <drepper@redhat.com>
966
967 * dwarf_child.c: Minor optimizations.
968 * dwarf_getattrs.c: Likewise.
969 * dwarf_getpubnames.c: Likewise.
970 * dwarf_siblingof.c: Likewise.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +0000971 * dwarf_tag.c: Likewise.
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000972
9732008-01-18 Ulrich Drepper <drepper@redhat.com>
974
975 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
976 of DWARF_VERSION comparison, just fail if the file's version is newer.
977
9782008-01-17 Nick Clifton <nickc@redhat.com>
979
980 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
981 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
982 (DWARF3_LENGTH_64_BIT): New define.
983 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
984 * dwarf_getpubnames: Include dwarf.h.
985 (get_offsets): Use the new definitions.
986 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
987 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
988 (dwarf_nextcu): Use the new definitions.
989
990 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
991 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
992 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
993 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
994
995 * dwarf_getpubnames (get_offsets): Replace assertion with test and
996 error return.
997
998 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
999
1000 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
1001 Set the address in the return structure to the address of the next
1002 non-sibling die, if there is no sibling and the return pointer is
1003 not the same as the die pointer.
Ulrich Dreppere219f1c2008-01-09 05:49:49 +00001004 * libdw.h: Expand the description of the dwarf_siblingof prototype.
1005
1006 * dwarf_child.c: Fix typo in comment.
1007
1008 * libdwP.h (DWARF_VERSION): Change to 3.
1009
Roland McGrathe4c22ea2007-10-23 13:07:39 +00001010 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
1011 not have a initialised valp pointer.
1012
1013 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
1014 the end of the attributes is reached. When the callback fails,
1015 return the address of the failing attribute, not the address of
1016 its successor.
1017 * libdw.h: Expand the description of the dwarf_getattrs prototype.
1018
1019 * dwarf_child.c (__libdw_find_attr): Use the new definition.
1020 (dwarf_child): Likewise.
1021 * dwarf_tag.c (__libdw_findabbrev): Likewise.
1022 (dwarf_tag): Likewise.
1023
10242008-01-08 Roland McGrath <roland@redhat.com>
1025
1026 * Makefile.am (euinclude): Variable removed.
1027 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
1028 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00001029
10302007-10-17 Roland McGrath <roland@redhat.com>
1031
1032 * libdw.h (__deprecated_attribute__): New macro.
1033 (dwarf_formref): Mark it deprecated.
1034 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
1035 (dwarf_formref): ... here. Call it. Remove INTDEF.
Roland McGrath59ea7f32007-10-04 08:50:09 +00001036 * libdwP.h: Remove INTDECL.
1037 Declare __libdw_formref.
1038 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
1039 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
1040
1041 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
1042 needs to check CU->version.
1043
Roland McGrath057ec6b2007-10-02 20:55:05 +00001044 * libdwP.h (struct Dwarf_CU): New member `version'.
1045 * libdw_findcu.c (__libdw_findcu): Initialize it.
1046
1047 * dwarf_child.c: Return 1 for null entry as first child.
1048
Roland McGrathd1a48172007-08-07 19:51:01 +000010492007-10-05 Roland McGrath <roland@redhat.com>
1050
1051 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
1052
1053 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
1054 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
1055
10562007-10-03 Roland McGrath <roland@redhat.com>
1057
1058 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
1059 and dwfl_build_id_find_debuginfo.
Roland McGrath87d47802007-07-16 22:23:37 +00001060
1061 * libdw.map (ELFUTILS_0.130): New version set, inherits from
1062 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
1063
10642007-10-02 Roland McGrath <roland@redhat.com>
Roland McGrath43da9892007-04-16 23:13:37 +00001065
1066 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
1067 structure_type.
1068
Roland McGrathbf2ee482007-04-05 09:27:36 +000010692007-08-07 Roland McGrath <roland@redhat.com>
1070
Roland McGrath43da9892007-04-16 23:13:37 +00001071 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
1072 error code is DWARF_E_NOERROR (0).
1073
1074 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
1075 Fix typo in __libdw_visit_scopes argument.
1076
1077 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
1078 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
1079
10802007-07-03 Roland McGrath <roland@redhat.com>
Roland McGrathbf2ee482007-04-05 09:27:36 +00001081
1082 * libdw.h (__extern_inline): New macro.
1083 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
1084
Ulrich Drepperc07fbb32007-03-30 19:14:59 +000010852007-04-16 Roland McGrath <roland@redhat.com>
1086
1087 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
1088
10892007-04-05 Roland McGrath <roland@redhat.com>
1090
1091 * dwarf_getsrcdirs.c: New file.
1092 * Makefile.am (libdw_a_SOURCES): Add it.
Ulrich Drepper6258e742007-03-13 06:22:40 +00001093 * libdw.h: Declare dwarf_getsrcdirs.
1094 * libdw.map (ELFUTILS_0.127): Add it.
1095
1096 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
1097 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
1098 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
1099 Save DIRARRAY in the Dwarf_Files.
1100
1101 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
Ulrich Drepper903c1162007-02-15 19:40:37 +00001102 address to check for all-ones base address entry. Check directly.
1103 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
1104
11052007-03-25 Roland McGrath <roland@redhat.com>
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00001106
1107 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
1108 Return NULL when freeing RESULT on error.
1109 (global_read, scngrp_read): Check return value from check_section,
1110 break out of loop after it has freed RESULT.
1111 (valid_p): Handle null argument.
1112
Roland McGrath8190db62006-12-17 23:56:51 +000011132007-03-12 Roland McGrath <roland@redhat.com>
1114
1115 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
1116
11172007-03-04 Roland McGrath <roland@redhat.com>
Roland McGrathc373d852006-10-10 00:25:21 +00001118
1119 * libdw.map (ELFUTILS_0.127): New version set, inherits from
1120 ELFUTILS_0.126. Add dwfl_module_addrsym.
1121
11222007-02-10 Roland McGrath <roland@redhat.com>
1123
1124 * dwarf.h (DW_OP_fbreg): Comment fix.
1125
11262007-02-03 Roland McGrath <roland@redhat.com>
1127
1128 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
1129 * libdw.map (ELFUTILS_0.126): New version set, inherits from
Ulrich Drepper077c65f2006-07-12 19:54:51 +00001130 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
1131 exported in the past.
1132
11332006-12-17 Roland McGrath <roland@redhat.com>
1134
1135 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
1136 address when the CU is missing attributes due to buggy GCC.
1137
Ulrich Dreppere1812e12006-07-12 07:46:03 +000011382006-08-29 Roland McGrath <roland@redhat.com>
1139
1140 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
1141
1142 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
1143 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
1144
Ulrich Drepper3be74472006-05-27 18:15:40 +00001145 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
1146 result is aligned. Adjust NEWP->remaining here for this allocation.
1147 * libdwP.h: Update decl.
1148 (libdw_alloc): Update caller.
Ulrich Dreppere7a73172006-05-22 18:16:45 +00001149
11502006-07-12 Ulrich Drepper <drepper@redhat.com>
1151
1152 * dwarf_child.c: Adjust for internal_function_def removal.
1153 * dwarf_getabbrev.c: Likewise.
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +00001154 * dwarf_tag.c: Likewise.
1155 * libdw_form.c: Likewise.
1156 * memory-access.c: Likewise.
1157
11582006-06-28 Roland McGrath <roland@redhat.com>
Roland McGrath2dade662006-02-28 22:13:20 +00001159
1160 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
1161
1162 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
1163 dwfl_module_getsym.
1164
Roland McGrath08333122006-02-27 04:54:26 +000011652006-05-27 Ulrich Drepper <drepper@redhat.com>
1166
1167 * libdw.h: Add extern "C".
1168
Roland McGrath50ffcbf2005-12-23 01:51:43 +000011692006-05-22 Ulrich Drepper <drepper@redhat.com>
1170
1171 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
1172 aranges information.
Roland McGrathdec3a242005-12-12 08:35:55 +00001173
11742006-05-21 Ulrich Drepper <drepper@redhat.com>
1175
1176 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
1177 dwarf_haschildren.
Roland McGrathf64a4422005-12-09 23:40:30 +00001178
11792006-02-28 Roland McGrath <roland@redhat.com>
1180
1181 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
1182 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
1183 values from DWARF 3.0.
Roland McGrath994b4892005-12-05 22:46:21 +00001184
11852006-02-22 Roland McGrath <roland@redhat.com>
1186
1187 * libdw.map: Bump to 0.120; export dwfl_version.
Roland McGrathe47ab762005-11-17 03:16:00 +00001188
11892005-12-22 Roland McGrath <roland@redhat.com>
1190
1191 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
1192
11932005-12-12 Roland McGrath <roland@redhat.com>
1194
1195 * dwarf_ranges.c: Copy CU base address-finding code from
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001196 dwarf_getlocation.
1197
11982005-12-09 Roland McGrath <roland@redhat.com>
1199
1200 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
1201 Delay CU base lookup until it's needed.
1202 If CU base lookup fails with no error, flag invalid DWARF.
1203
12042005-11-25 Roland McGrath <roland@redhat.com>
1205
1206 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
1207
Roland McGrath6724c902005-10-28 07:07:19 +000012082005-11-15 Roland McGrath <roland@redhat.com>
1209
1210 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
1211
12122005-11-13 Roland McGrath <roland@redhat.com>
1213
1214 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
1215
12162005-10-27 Roland McGrath <roland@redhat.com>
1217
1218 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
1219 don't match end_sequence markers.
1220
1221 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
1222 before normal records at the same address.
1223 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
1224 marker.
1225
12262005-10-26 Roland McGrath <roland@redhat.com>
1227
1228 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
1229 * dwarf_func_file.c: Renamed to ...
1230 * dwarf_decl_file.c: ... here.
1231 * dwarf_func_col.c: Renamed to ...
1232 * dwarf_decl_column.c: ... here.
1233 * dwarf_func_line.c: Renamed to ...
1234 * dwarf_decl_line.c: ... here.
1235 (dwarf_func_line): Renamed to ...
1236 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
1237 (__libdw_func_intval): Renamed __libdw_attr_intval.
1238 * dwarf_func_name.c: File removed.
1239 * dwarf_func_lowpc.c: File removed.
1240 * dwarf_func_highpc.c: File removed.
1241 * dwarf_func_entrypc.c: File removed.
1242 * dwarf_func_die.c: File removed.
1243 * Makefile.am (libdw_a_SOURCES): Updated.
1244 * libdw.h: Update decls.
1245 (Dwarf_Func): Type removed.
1246 * libdwP.h: Update decls.
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001247 (struct Dwarf_Func_s): Type removed.
1248 * libdw.map: Updated.
1249
1250 * libdwP.h (CUDIE): New macro.
1251 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
1252 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
1253 * dwarf_ranges.c (dwarf_ranges): Likewise.
1254
1255 * dwarf_getloclist.c: Renamed to ...
1256 * dwarf_getlocation.c: ... here.
1257 (getloclist): Renamed to getlocation.
1258 (dwarf_getloclist): Renamed to dwarf_getlocation.
1259 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
1260 * Makefile.am (libdw_a_SOURCES): Updated.
1261 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
1262 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
1263 (Dwarf_Loc): Renamed Dwarf_Op.
1264 * libdwP.h (struct loc_s): Update use.
1265 * libdw.map: Update map.
1266
1267 * dwarf_entry_breakpoints.c: Use the second line record within the
1268 function, regardless of its source location data.
1269
12702005-10-25 Roland McGrath <roland@redhat.com>
1271
1272 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
1273
1274 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
1275
12762005-10-14 Roland McGrath <roland@redhat.com>
1277
1278 * dwarf_diecu.c (dwarf_diecu): New file.
1279 * Makefile.am (libdw_a_SOURCES): Add it.
1280 * libdw.h: Declare dwarf_diecu.
1281 * libdw.map: Export it.
1282
1283 * libdw.map: Bump to 0.116; export dwarf_ranges.
1284
12852005-09-20 Roland McGrath <roland@redhat.com>
1286
1287 * dwarf_haspc.c: Use dwarf_ranges.
1288 * dwarf_entry_breakpoints.c: Likewise.
1289
1290 * dwarf_ranges.c: New file.
1291 * Makefile.am (libdw_a_SOURCES): Add it.
1292 * libdw.h: Declare dwarf_ranges.
1293 * libdwP.h: Add INTDECL.
1294
Ulrich Drepperfbe998a2005-08-29 16:27:10 +000012952005-09-14 Roland McGrath <roland@redhat.com>
1296
1297 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
1298 prologue_end marker scanning loop.
1299
13002005-09-11 Roland McGrath <roland@redhat.com>
Roland McGrath71e15a02005-08-27 10:33:26 +00001301
1302 * dwarf.h: Comment typo fix.
1303
13042005-09-07 Roland McGrath <roland@redhat.com>
1305
1306 * dwarf_entry_breakpoints.c: New file.
1307 * Makefile.am (libdw_a_SOURCES): Add it.
1308 * libdw.h: Declare dwarf_entry_breakpoints.
1309
1310 * dwarf_entrypc.c: New file.
1311 * Makefile.am (libdw_a_SOURCES): Add it.
1312 * libdw.h: Declare dwarf_entrypc.
1313 * libdwP.h: Add INTDECL.
1314
13152005-08-28 Ulrich Drepper <drepper@redhat.com>
1316
1317 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
1318 (%.os): Use COMPILE.os.
1319 (COMPILE.os): Filter out gconv options.
1320
13212005-08-27 Roland McGrath <roland@redhat.com>
1322
Roland McGrathd17fac72005-08-23 08:20:21 +00001323 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
1324 __libdw_visit_scopes.
1325
1326 * dwarf_getscopes_die.c: New file.
1327 * Makefile.am (libdw_a_SOURCES): Add it.
1328 * libdw.h: Declare dwarf_getscopes_die.
1329 * libdw.map: Bump to 0.115 and add it.
1330
1331 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
1332 containing a DIE and its parent pointer, instead of just Dwarf_Die.
1333 Take two functions for both preorder and postorder visitors.
1334 * libdwP.h: Update decl.
1335 (struct Dwarf_Die_Chain): New type.
1336 * dwarf_func_inline.c: Update uses.
1337
1338 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
1339 Add INTDEF.
Roland McGrathf5fda7d2005-08-18 22:01:57 +00001340 * libdwP.h: Add INTDECL.
1341 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
1342
13432005-08-23 Roland McGrath <roland@redhat.com>
1344
Roland McGrath1ecb6062005-08-15 09:53:04 +00001345 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
1346 DW_AT_specification the same as DW_AT_abstract_origin.
1347
13482005-08-20 Roland McGrath <roland@redhat.com>
1349
1350 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
1351 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
1352 and dwfl_report_offline.
1353
13542005-08-19 Roland McGrath <roland@redhat.com>
1355
1356 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001357 Add dwfl_module_relocate_address, dwfl_module_relocations,
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001358 dwfl_module_relocation_info.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001359
13602005-08-18 Roland McGrath <roland@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001361
Roland McGrath4959bf82005-08-09 10:31:08 +00001362 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
1363 outermost scope in the results.
Roland McGrathb6312e12005-08-09 10:36:01 +00001364
13652005-08-15 Roland McGrath <roland@redhat.com>
Roland McGrath4959bf82005-08-09 10:31:08 +00001366
1367 * dwarf_func_inline.c: New file.
1368 * Makefile.am (libdw_a_SOURCES): Add it.
1369 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
Roland McGratha5a89682005-08-02 01:24:01 +00001370 * libdw.map: Add them.
1371
1372 * dwarf_func_die.c: New file.
1373 * Makefile.am (libdw_a_SOURCES): Add it.
1374 * libdw.h: Declare dwarf_func_die.
Ulrich Drepper18618fd2005-07-28 21:29:22 +00001375 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
1376
13772005-08-10 Ulrich Drepper <drepper@redhat.com>
1378
1379 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
Roland McGrath366784a2005-07-28 06:20:53 +00001380 of DW_LNS_set_epilog_begin.
1381
Roland McGrath18385902005-07-28 07:12:38 +000013822005-08-09 Roland McGrath <roland@redhat.com>
1383
1384 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
1385
1386 * dwarf_end.c: Add INTDEF.
1387 * dwarf_error.c (dwarf_errmsg): Likewise.
Roland McGrath366784a2005-07-28 06:20:53 +00001388 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
1389
13902005-08-01 Roland McGrath <roland@redhat.com>
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001391
1392 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
1393 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1394
13952005-07-28 Ulrich Drepper <drepper@redhat.com>
1396
1397 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
1398 (libdw_a_LIBADD): Add all files from libdwfl.a.
1399
14002005-07-27 Roland McGrath <roland@redhat.com>
1401
1402 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
1403 along with ../libebl/libebl.a and ../lib/libeu.a;
1404 depend on ../libelf/libelf.so.
1405 (libdw_so_LDADD): New variable.
1406 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
1407
1408 * libdw.map: Define an empty base version and move all symbols to
1409 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
1410
14112005-07-23 Ulrich Drepper <drepper@redhat.com>
1412
1413 * dwarf_error.c: Add internal alias for dwarf_errno.
1414 * libdwP.h: Declare __dwarf_errno_internal.
1415 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
1416
1417 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
1418 global_error.
1419
14202005-06-01 Roland McGrath <roland@redhat.com>
1421
1422 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
1423 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
1424
14252005-06-08 Roland McGrath <roland@redhat.com>
1426
1427 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
1428 (get_sleb128_step, get_sleb128): Likewise.
1429 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
1430 * dwarf_getloclist.c (getloclist): Likewise.
1431 * dwarf_formblock.c (dwarf_formblock): Likewise.
1432 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1433 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
1434 * dwarf_formref.c (dwarf_formref): Likewise.
1435 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
1436 * dwarf_formudata.c (dwarf_formudata): Likewise.
1437 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
1438 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
1439 * dwarf_tag.c (dwarf_tag): Likewise.
1440 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1441 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
1442 * libdw_form.c (__libdw_form_val_len): Likewise.
1443 * libdwP.h: Update decl.
1444
14452005-06-04 Roland McGrath <roland@redhat.com>
1446
1447 * memory-access.h (get_uleb128_rest_return): New macro.
1448 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
1449 (get_sleb128_rest_return): New macro.
1450 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
1451 * memory-access.c: New file.
1452 * Makefile.am (libdw_a_SOURCES): Add it.
1453 (DEFS): Add -DIS_LIBDW.
1454
14552005-05-31 Roland McGrath <roland@redhat.com>
1456
1457 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
1458 formref offset.
1459
14602005-05-30 Roland McGrath <roland@redhat.com>
1461
1462 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
1463 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
1464
1465 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
1466 BEGIN value. Instead, match base address entries separately for
1467 32/64 size cases.
1468
14692005-05-28 Roland McGrath <roland@redhat.com>
1470
1471 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
1472 past location expression contents.
1473
14742005-05-23 Roland McGrath <roland@redhat.com>
1475
1476 * dwarf_getsrclines.c: Comment typo fix.
1477
1478 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
1479 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
1480
14812005-05-22 Ulrich Drepper <drepper@redhat.com>
1482
1483 * libdwP.h: Only use INTDECL for alias prototypes.
1484
14852005-05-19 Roland McGrath <roland@redhat.com>
1486
1487 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
1488
1489 * dwarf_getscopevar.c: New file.
1490 * Makefile.am (libdw_a_SOURCES): Add it.
1491 * libdw.h: Declare dwarf_getscopevar.
1492
1493 * dwarf_getsrcfiles.c: Add INTDEF.
1494 * dwarf_haschildren.c: Likewise.
1495 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
1496
1497 * dwarf_getscopes.c: New file.
1498 * Makefile.am (libdw_a_SOURCES): Add it.
1499 * libdw.h: Declare dwarf_getscopes.
1500 * libdw.map: Add it.
1501
15022005-05-18 Roland McGrath <roland@redhat.com>
1503
1504 * libdwP.h (IDX_debug_ranges): New enum constant.
1505 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
1506 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
1507 * dwarf_error.c (errmsgs): Add it.
1508 * dwarf_haspc.c: New file.
1509 * libdw.h: Declare dwarf_haspc.
1510 * libdw.map: Add it.
1511 * libdwP.h: Add INTDECL.
1512
1513 * dwarf_attr_integrate.c: New file.
1514 * dwarf_hasattr_integrate.c: New file.
1515 * Makefile.am (libdw_a_SOURCES): Add them.
1516 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
1517 * libdw.map: Add them.
1518
1519 * dwarf_hasattr.c: Add INTDEF.
1520 * libdwP.h: Add INTDECL for it.
1521
1522 * dwarf_formref_die.c: New file.
1523 * Makefile.am (libdw_a_SOURCES): Add it.
1524 * libdw.h (dwarf_formref_die): Declare it.
1525 * libdwP.h (dwarf_formref_die): Add INTDECL.
1526 * libdw.map: Add it.
1527
1528 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
1529 of ...
1530 (dwarf_getloclist): ... here. Call them.
1531 (dwarf_addrloclists): New function.
1532 * libdw.h: Declare it.
1533 * libdw.map: Add it.
1534
1535 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
1536 DW_MACINFO_end_file. Recognize type 0 as terminator.
1537
15382005-05-05 Roland McGrath <roland@redhat.com>
1539
1540 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
1541
1542 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
1543 the line program does not produce all entries in ascending order.
1544
15452005-04-25 Ulrich Drepper <drepper@redhat.com>
1546
1547 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
1548 occurences (e.g., inlines) better.
1549
15502005-04-24 Ulrich Drepper <drepper@redhat.com>
1551
1552 * libdw.h (DWARF_END_ABBREV): Define.
1553 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
1554 end is reached.
1555 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
1556 of records reached.
1557 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
1558 as error of __libdw_getabbrev.
1559
15602005-04-04 Ulrich Drepper <drepper@redhat.com>
1561
1562 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
1563
1564 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
1565 results back to caller.
1566
15672005-04-04 Roland McGrath <roland@redhat.com>
1568
1569 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
1570
1571 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
1572 defn.
1573
15742005-04-04 Ulrich Drepper <drepper@redhat.com>
1575
1576 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
1577
1578 * dwarf_getsrc_file.c: New file.
1579 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
1580 * libdw.h: Declare dwarf_getsrc_file.
1581 * libdw.map: Add dwarf_getsrc_file.
1582
15832005-04-02 Ulrich Drepper <drepper@redhat.com>
1584
1585 * dwarf_func_entrypc.c: New file.
1586 * dwarf_func_col.c: New file.
1587 * dwarf_func_line.c: New file.
1588 * dwarf_func_file.c: New file.
1589 * libdw.h: Add prototypes for new functions.
1590 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
1591 dwarf_func_file.
1592 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
1593 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
1594 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
1595 Declare __libdw_func_intval and __dwarf_formsdata_internal.
1596 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
1597 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
1598
1599 * dwarf.h: Add some DWARF3 definitions.
1600
16012005-04-01 Ulrich Drepper <drepper@redhat.com>
1602
1603 * dwarf_getfuncs.c: New file.
1604 * dwarf_func_highpc.c: New file.
1605 * dwarf_func_lowpc.c: New file.
1606 * dwarf_func_name.c: New file.
1607 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
1608 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
1609 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
1610 and dwarf_func_name.
1611 * libdw.h: Add prototypes for new functions.
1612 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
1613 * dwarf_siblingof.c: Likewise.
1614 * dwarf_dieoffset.c: Likewise.
1615 * dwarf_highpc.c: Likewise.
1616 * dwarf_lowpc.c: Likewise.
1617 * libdwP.h: Add prototypes for internal functions.
1618 Define Dwarf_Func_s structure.
1619
16202005-03-29 Ulrich Drepper <drepper@redhat.com>
1621
1622 * libdw.h: Add padding in Dwarf_die.
1623
1624 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
1625 * dwarf_attr.c: Likewise.
1626 * dwarf_begin.c: Likewise.
1627 * dwarf_begin_elf.c: Likewise.
1628 * dwarf_bitoffset.c: Likewise.
1629 * dwarf_bitsize.c: Likewise.
1630 * dwarf_bytesize.c: Likewise.
1631 * dwarf_diename.c: Likewise.
1632 * dwarf_formaddr.c: Likewise.
1633 * dwarf_formblock.c: Likewise.
1634 * dwarf_formref.c: Likewise.
1635 * dwarf_formstring.c: Likewise.
1636 * dwarf_formudata.c: Likewise.
1637 * dwarf_getarange_addr.c: Likewise.
1638 * dwarf_getarangeinfo.c: Likewise.
1639 * dwarf_getaranges.c: Likewise.
1640 * dwarf_getloclist.c: Likewise.
1641 * dwarf_getmacros.c: Likewise.
1642 * dwarf_getsrc_die.c: Likewise.
1643 * dwarf_getsrcfiles.c: Likewise.
1644 * dwarf_getsrclines.c: Likewise.
1645 * dwarf_highpc.c: Likewise.
1646 * dwarf_lowpc.c: Likewise.
1647 * dwarf_nextcu.c: Likewise.
1648 * dwarf_offdie.c: Likewise.
1649 * dwarf_siblingof.c: Likewise.
1650 * dwarf_srclang.c: Likewise.
1651 * dwarf_tag.c: Likewise.
1652 * libdw_findcu.c: Likewise.
1653 * libdwP.h: Add prototypes for internal functions.
1654
1655 * dwarf_addrdie.c: New file.
1656 * dwarf_macro_opcode.c: New file.
1657 * dwarf_macro_param1.c: New file.
1658 * dwarf_macro_param2.c: New file.
1659 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
1660 * libdwP.h: Remove Dwarf_Macro definition.
1661 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
1662 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
1663 * libdw.map: Add entries for new functions.
1664
16652005-03-21 Ulrich Drepper <drepper@redhat.com>
1666
1667 * libdw.h: Handle broken gcc < 4.
1668
16692005-02-15 Ulrich Drepper <drepper@redhat.com>
1670
1671 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
1672
1673 * dwarf_begin_elf.c: Fix warnings.
1674 * dwarf_dieoffset.c: Likewise.
1675 * dwarf_end.c: Likewise.
1676 * dwarf_error.c: Likewise.
1677 * dwarf_getpubnames.c: Likewise.
1678
1679 * libdwP.h: Add new error values.
1680 * dwarf_error.c: Support new error values.
1681 * dwarf_getpubnames.c: Check parameter value.
1682
16832005-02-05 Ulrich Drepper <drepper@redhat.com>
1684
1685 * Makefile.am: Check for text relocations in constructed DSO.
1686
1687 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
1688
16892005-02-04 Ulrich Drepper <drepper@redhat.com>
1690
1691 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
1692 checks to not read over buffer boundaries for ill-formed DWARF data.
1693
16942004-09-25 Ulrich Drepper <drepper@redhat.com>
1695
1696 * dwarf_child.c: Make compile with gcc 4.0.
1697 * dwarf_error.c: Likewise.
1698 * dwarf_formblock.c: Likewise.
1699 * dwarf_getabbrev.c: Likewise.
1700 * dwarf_getattrs.c: Likewise.
1701 * dwarf_getsrclines.c: Likewise.
1702 * dwarf_tag.c: Likewise.
1703 * libdw_form.c: Likewise.
1704
17052004-01-20 Ulrich Drepper <drepper@redhat.com>
1706
1707 * Makefile.am: Support building with mudflap.
1708
1709 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
1710 * dwarf_getsrclines.c: Likewise.
1711 * dwarf_memory-access.h: Likewise.
1712
17132004-01-19 Ulrich Drepper <drepper@redhat.com>
1714
1715 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1716
1717 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1718 Third parameter of dwarf_getsrcfiles can be NULL.
1719
1720 * libdw.map: Add dwarf_getmacros.
1721 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1722 * dwarf_getmacros.c: New file.
1723
17242004-01-18 Ulrich Drepper <drepper@redhat.com>
1725
1726 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1727
1728 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1729
1730 * dwarf_getsrclines.c:
1731 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1732
1733 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1734
1735 * libdwP.h (_): Use elfutils domain.
1736
1737 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1738
1739 * dwarf_getsrclines.c: Fix typo in comment.
1740
17412004-01-17 Ulrich Drepper <drepper@redhat.com>
1742
1743 * Makefile.am: Support building with mudflap.
1744
17452004-01-16 Ulrich Drepper <drepper@redhat.com>
1746
1747 * memory-access.h: Add lots of const in case a pointer passed is const.
1748
1749 * dwarf_formflag.c: New file.
1750 * dwarf_getattrs.c: New file.
1751 * dwarf_error.c: Add new error value.
1752 * libdw.h: Add prototypes for new functions. Adjust prototype for
1753 dwarf_getpubnames.
1754 * libdw.map: Add new functions.
1755 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1756 to ptrdiff_t.
1757 * libdwP.h: Add new error value.
1758 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1759 dwarf_formflag.c.
1760
1761 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1762
17632004-01-12 Ulrich Drepper <drepper@redhat.com>
1764
1765 * dwarf_getarange_addr.c: New file
1766 * dwarf_getarangeinfo.c: New file.
1767 * dwarf_getaranges.c: New file.
1768 * dwarf_onerange.c: New file.
1769 * libdw.h: Declare new functions. Define Dwarf_Arange and
1770 Dwarf_Aranges.
1771 * libdw.map: Add new functions.
1772 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1773 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1774 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1775 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1776 * dwarf_error.c: Add new message.
1777
17782004-01-11 Ulrich Drepper <drepper@redhat.com>
1779
1780 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1781 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1782 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1783 * dwarf_error.c: Add another message.
1784 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1785 introduction.
1786 * dwarf_filesrc.c: Likewise.
1787 * dwarf_getsrcfiles.c: Likewise.
1788 * dwarf_getsrclines.c: Likewise.
1789 * dwarf_lineaddr.c: New file.
1790 * dwarf_linebeginstatement.c: New file.
1791 * dwarf_lineblock.c: New file.
1792 * dwarf_linecol.c: New file.
1793 * dwarf_lineendsequence.c: New file.
1794 * dwarf_lineepiloguebegin.c: New file.
1795 * dwarf_lineno.c: New file.
1796 * dwarf_lineprologueend.c: New file.
1797 * dwarf_onesrcline.c: New file.
1798 * dwarf_lineno.c: Change interface to store result in object pointed
1799 to by second parameter.
1800 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1801 prototype. Define Dwarf_Files and Dwarf_Lines.
1802 * libdw.map: Add new functions.
1803 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1804 * libdw_findcu.c: Don't initialize nlines field.
1805
1806 * dwarf_siblingof: Little optimization.
1807
1808 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1809 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1810 * libdwP.h (struct Dwarf): Add free_elf field.
1811
1812 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1813 dwarf_offabbrev.c.
1814 * dwarf_getstring.c: New file.
1815 * dwarf_offabbrev.c: New file.
1816 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1817 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1818 parameters. Don't allocate memory if not necessary and don't lookup
1819 previous results if no CU given.
1820 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1821 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1822 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1823 * libdwP.h: Change prototype for __libdw_getabbrev.
1824
1825 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1826 returning if this is wanted.
1827
18282004-01-09 Ulrich Drepper <drepper@redhat.com>
1829
1830 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1831 with offset_size value.
1832 * libdw.h: Adjust dwarf_nextcu prototype.
1833 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1834 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1835 member of new CU struct.
1836 * dwarf_formstring.c: Depend on offset_size not address_size for
1837 DW_FORM_strp handling.
1838 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1839
1840 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1841 failing lookup.
1842 (dwarf_tag): Correctly recognize failed lookup.
1843
1844 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1845 function noop_free.
1846 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1847 * dwarf_formblock.c: New file.
1848 * dwarf_getloclist.c: Rewrite to handle a single block.
1849 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1850 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1851 dwarf_getloclistent declaration.
1852 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1853 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1854 Add locs member to struct Dwarf_CU.
1855 * libdw_fundcu.c: Initialize locs member of new CU.
1856 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1857 Remove dwarf_getloclistent.c.
1858
18592004-01-07 Ulrich Drepper <drepper@redhat.com>
1860
1861 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1862 * libdwP.h: Likewise.
1863
1864 * dwarf_getloclist.c: New file.
1865 * dwarf_getloclistent.c: New file.
1866 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1867 Declare dwarf_getloclistent and dwarf_getloclist.
1868 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1869 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1870 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1871 dwarf_getloclist.c.
1872
1873 * dwarf_error.c: More error messages.
1874
18752004-01-06 Ulrich Drepper <drepper@redhat.com>
1876
1877 * dwarf_getsrclines.c: Remove debugging support.
1878
1879 * dwarf_getsrcfiles.c: New file.
1880 * dwarf_filesrc.c: New file.
1881 * libdw.h: Declare these functions. Define Dwarf_File.
1882 * libdwP.c: Adjust Dwarf_File_s definition.
1883 * libdw.map: Add these functions.
1884 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1885 dwarf_filesrc.c.
1886 * dwarf_getsrclines.c: Initialize cu->files.
1887
18882004-01-05 Ulrich Drepper <drepper@redhat.com>
1889
1890 * libdw.h: Add more nonnull function attributes.
1891
1892 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1893 * dwarf_end.c (cu_free): New function.
1894 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1895 * dwarf_error.c (errmsgs): Add new messages.
1896 * dwarf_getsrc_die.c: New file.
1897 * dwarf_getsrclines.c: New file.
1898 * dwarf_lineno.c: New file.
1899 * dwarf_linesrc.c: New file.
1900 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1901 instead of the *_inc-less variants.
Ulrich Drepper6fb34512010-05-28 20:28:04 -07001902 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001903 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1904 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1905 and dwarf_linesrc.
1906 * libdwP.h: Add more error codes.
1907 (struct Dwarf): Remove mem_tail.next member.
1908 (Dwarf_File): Define type.
1909 (struct Dwarf_Line_s): Define type.
1910 (struct Dwarf_CU): Add lines and nlines members.
1911 (libdw_alloc): Define local variable _tail and use it.
1912 Add some function attributes.
1913 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1914 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1915 * memory-access.h: Add unlikely for the endian conversion paths.
1916 * Makefile.am (AM_CFLAGS): Add -std parameter.
1917 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1918 dwarf_lineno, and dwarf_linesrc.
1919
19202003-08-11 Ulrich Drepper <drepper@redhat.com>
1921
1922 * Moved to CVS archive.