blob: 780b34d0f832ad8cf78ff3e478f73ef690869f9d [file] [log] [blame]
Mark Wielaardbb096d02014-05-03 00:23:06 +020012014-05-02 Mark Wielaard <mjw@redhat.com>
2
3 * libdwP.h (__check_build_id): Removed now unused.
4
Mark Wielaarddf85bf92014-05-01 14:48:27 +020052014-05-01 Mark Wielaard <mjw@redhat.com>
6
7 * libdwP.h (struct Dwarf): Remove free_alt.
8 * dwarf_end.c (dwarf_end): Don't check free_alt, don't end alt_dwarf.
9 * dwarf_setalt.c (dwarf_setalt): Don't check or set free_alt.
10
Mark Wielaardd81d32d2014-04-30 23:00:40 +0200112014-04-30 Mark Wielaard <mjw@redhat.com>
12
13 * libdw.map (ELFUTILS_0.159): Add dwelf_elf_gnu_build_id.
14
Florian Weimer920f03d2014-04-15 17:11:17 +0200152014-04-15 Florian Weimer <fweimer@redhat.com>
16
17 * dwarf_begin_elf.c (__check_build_id, try_debugaltlink)
18 (open_debugaltlink): Move to libdwfl.
19 (check_section): Do not locate alternate debuginfo.
20
Florian Weimer4813dbb2014-04-24 14:06:43 +0200212014-04-24 Florian Weimer <fweimer@redhat.com>
22
23 * libdw.map (ELFUTILS_0.159): Export dwelf_dwarf_gnu_debugaltlink.
24
Florian Weimer35e2a762014-04-15 14:31:55 +0200252014-04-22 Florian Weimer <fweimer@redhat.com>
26
27 * dwarf_getalt.c, dwarf_setalt.c: New files.
28 * Makefile.am (libdw_a_SOURCES): Add them.
29 * libdw.h (dwarf_getalt, dwarf_setalt): Add function declarations.
30 * libdwP.h (dwarf_getalt, dwarf_setalt): Add internal function
31 declarations.
32 * libdw.map (ELFUTILS_0.159): Export the two new functions.
33
Florian Weimerefa72a02014-04-15 14:04:19 +0200342014-04-15 Florian Weimer <fweimer@redhat.com>
35
36 * libdwP.h (enum IDX_gnu_debugaltlink): New.
37 * dwarf_begin_elf.c (dwarf_scnnames): Increase string size and add
38 .gnu_debugaltlink.
39 (check_section): Obtain .gnu_debugaltlink section from the
40 setiondata array.
41
Mark Wielaard93802972014-04-11 23:52:47 +0200422014-04-11 Mark Wielaard <mjw@redhat.com>
43
44 * libdw.map (ELFUTILS_0.159): New. Add dwelf_elf_gnu_debuglink.
45 * Makefile.am (libdw.so): Depend on libdwelf_pic.a.
46 (libdwelf_objects): New variable.
47 (libdw_a_LIBADD): Add libdwelf objects.
48
Mark Wielaardeb4da482014-04-22 16:43:11 +0200492014-04-22 Mark Wielaard <mjw@redhat.com>
50
51 * memory-access.h (get_sleb128_step): Remove undefined behavior
52 of left shifting a signed value. Replace it with a multiplication.
53
Mark Wielaard32324792014-04-13 17:39:57 +0200542014-04-13 Mark Wielaard <mjw@redhat.com>
55
56 * Makefile.am: Remove !MUDFLAP conditions.
57
Mark Wielaard7f1eec32014-04-09 11:33:23 +0200582014-04-09 Mark Wielaard <mjw@redhat.com>
59
60 * dwarf_begin_elf.c (check_section): Check for unsigned overflow
61 before calling malloc to uncompress data.
62
Jan Kratochvildff2a992014-03-04 00:04:27 +0100632014-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
64
65 Fix abort() on missing section headers.
66 * dwarf_begin_elf.c (check_section): Replace abort call by goto err.
67 New label err to return NULL.
68
Josh Stone50d5b2c2014-02-05 11:26:27 -0800692014-02-05 Josh Stone <jistone@redhat.com>
70
71 * dwarf_decl_file.c (dwarf_decl_file): Read the idx as unsigned.
72 * dwarf_decl_line.c (__libdw_attr_intval): Read the line/column as
73 unsigned. Change the range assert to DWARF_E_INVALID_DWARF.
74
Mark Wielaard19108012013-12-30 22:00:57 +0100752013-12-30 Mark Wielaard <mjw@redhat.com>
76
77 * libdw.map (ELFUTILS_0.158): Add dwfl_core_file_attach and
78 dwfl_linux_proc_attach.
79
Mark Wielaarde962ec32013-12-20 10:09:12 +0100802013-12-20 Mark Wielaard <mjw@redhat.com>
81
82 * libdw.map (ELFUTILS_0.158): Add dwfl_getthread_frames.
83
Mark Wielaard159ac522013-12-18 11:05:54 +0100842013-12-18 Mark Wielaard <mjw@redhat.com>
85
86 * libdw.map (ELFUTILS_0.158): Remove dwfl_module_addrsym_elf and
87 dwfl_module_getsym_elf. Add dwfl_module_addrinfo and
88 dwfl_module_getsym_info.
89
Mark Wielaard14c2d9e2013-12-16 13:28:59 +0100902013-12-16 Mark Wielaard <mjw@redhat.com>
91
92 * libdw.map (ELFUTILS_0.158): Add dwfl_module_getsymtab_first_global.
93
Josh Stone4e2787c2013-12-10 14:19:09 -0800942013-12-10 Josh Stone <jistone@redhat.com>
95
96 * memory-access.h (get_uleb128_rest_return): Removed.
97 (get_sleb128_rest_return): Removed.
98 (get_uleb128_step): Make this a self-contained block.
99 (get_sleb128_step): Ditto, and use a bitfield to extend signs.
100 (get_uleb128): Make this wholly implemented by __libdw_get_uleb128.
101 (get_sleb128): Make this wholly implemented by __libdw_get_sleb128.
102 (__libdw_get_uleb128): Simplify and inline for all callers.
103 (__libdw_get_sleb128): Ditto.
104 * dwarf_getlocation.c (store_implicit_value): Void the unused uleb128.
105 * memory-access.c: Delete file.
106 * Makefile.am (libdw_a_SOURCES): Remove it.
107 (DEFS): Remove the now unused -DIS_LIBDW.
108
Josh Stonec0d2a0b2013-12-09 13:52:10 -08001092013-12-09 Josh Stone <jistone@redhat.com>
110
111 * libdw_form.c (__libdw_form_val_compute_len): Renamed function from
112 __libdw_form_val_len, now handling only non-constant form lengths.
113 * libdwP.h (__libdw_form_val_len): New inlined function.
114
Mark Wielaard3951f2e2013-12-09 16:33:26 +01001152013-12-09 Mark Wielaard <mjw@redhat.com>
116
117 * dwarf_getlocation.c (__libdw_intern_expression): Handle empty
118 location expressions.
119 * dwarf_getlocation_attr.c (dwarf_getlocation_attr): When no
120 location found, return empty location expression.
121 * dwarf_getlocation_implicit_pointer.c
122 (dwarf_getlocation_implicit_pointer): Likewise.
123 (__libdw_empty_loc_attr): New internal function.
124 * libdwP.h (__libdw_empty_loc_attr): Define.
125
Mark Wielaard819c3492013-11-27 16:45:44 +01001262013-11-27 Mark Wielaard <mjw@redhat.com>
127
128 * libdw.map (ELFUTILS_0.158): Add dwfl_module_addrsym_elf and
129 dwfl_module_getsym_elf.
130
Mark Wielaard16bc4562013-11-26 15:13:22 +01001312013-11-26 Mark Wielaard <mjw@redhat.com>
132
133 * libdw.map (ELFUTILS_0.156): Move dwfl_attach_state, dwfl_pid,
134 dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
135 dwfl_thread_state_registers, dwfl_thread_state_register_pc,
136 dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc to ...
137 (ELFUTILS_0.158): ... here.
138
Mark Wielaard03d76f42013-11-09 16:45:22 +01001392013-11-09 Mark Wielaard <mjw@redhat.com>
140
141 * dwarf_getaranges.c (dwarf_getaranges): Read segment_size and
142 check that it is zero.
143
Jan Kratochvil0b867462013-05-30 14:37:38 +02001442013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
145
146 * cfi.h (struct Dwarf_Frame_s): Make the comment more specific.
147 * libdw.map (ELFUTILS_0.156): Add dwfl_attach_state, dwfl_pid,
148 dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread,
149 dwfl_thread_state_registers, dwfl_thread_state_register_pc,
150 dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc.
151
Michael Forneya45c8042013-11-01 00:51:04 -07001522013-11-01 Michael Forney <mforney@mforney.org>
153
Michael Forneycdc09432013-11-01 00:51:05 -0700154 * Makefile.am (libdwfl_objects): New definition.
155 (libdw_a_LIBADD): Use libdwfl_objects.
156
1572013-11-01 Michael Forney <mforney@mforney.org>
158
Michael Forneya45c8042013-11-01 00:51:04 -0700159 * Makefile.am: Use READELF.
160
Jan Kratochvil3cf491e2013-10-30 10:48:20 +01001612013-10-30 Jan Kratochvil <jan.kratochvil@redhat.com>
162
163 * libdw.map (ELFUTILS_0.158): New.
164
Mark Wielaarde6a9bb82013-10-10 11:40:12 +02001652013-10-10 Mark Wielaard <mjw@redhat.com>
166
167 * dwarf_getfuncs.c (struct visitor_info): Rename start_offset to
168 start_addr and rename last_offset to last_addr. Now both void *.
169 (tree_visitor): Use start_add and die_addr instead of start_offset
170 and die_offset.
171 (dwarf_getfuncs): Use last_addr instead of last_offset.
172
Mark Wielaard3dec3e12013-10-06 17:04:07 +02001732013-10-06 Mark Wielaard <mjw@redhat.com>
174
175 * cfi.c (execute_cfi): Make sure DW_CFA_expression and
176 DW_CFA_val_expression are not used with abi_cfi.
177
Josh Stone5dbbc5e2013-10-03 12:38:25 -07001782013-10-03 Josh Stone <jistone@redhat.com>
179
180 * dwarf_formref_die.c (dwarf_formref_die): Don't hash the sig8 here.
181 * libdw_findcu.c (__libdw_intern_next_unit): Since this never revisits
182 a unit, make sure to always hash the sig8 here, so none are missed.
183
Mark Wielaard74f9b732013-09-30 00:39:07 +02001842013-09-29 Mark Wielaard <mjw@redhat.com>
185
186 * dwarf_getlocation.c (store_implicit_value): Cast op->number2 to
187 uintptr_t before casting to char *.
188 (__libdw_intern_expression): Cast data to uintptr_t before casting
189 to Dwarf_Word.
190 * dwarf_getlocation_attr.c (dwarf_getlocation_attr): Cast
191 op->number2 to uintptr_t before casting to char *.
192
Josh Stonef06c8582013-09-24 15:52:05 -07001932013-09-24 Josh Stone <jistone@redhat.com>
194
195 * libdw_visit_scopes.c (classify_die): Removed.
196 (may_have_scopes): New function to replace classify_die. There's no
197 need for full classification; just find tags that may contain scopes.
198 (__libdw_visit_scopes): Use a direct tag comparison for imported
199 units, and use may_have_scopes to test if recursion is needed.
200
Mark Wielaard1b734df2013-09-20 09:50:42 -04002012013-09-20 Mark Wielaard <mjw@redhat.com>
202
203 * dwarf_getfuncs.c (visitor_info): New struct.
204 (tree_visitor): New function.
205 (dwarf_getfuncs): Use __libdw_visit_scopes with tree_visitor.
206 * libdw.h (dwarf_getfuncs): Expand function documentation.
207
Mark Wielaard18b2c672013-09-12 15:49:47 +02002082013-09-12 Mark Wielaard <mjw@redhat.com>
209
210 * fde.c (intern_fde): Free fde and set libdw errno when start
211 or end could not be read.
212
Mark Wielaardb2535b62013-08-30 23:55:12 +02002132013-08-24 Mark Wielaard <mjw@redhat.com>
214
215 * dwarf_getlocation.c (store_implicit_value): Don't take data
216 as argument, get block data from op number2. Return false when
217 block data length and op number don't match up.
218 (__libdw_intern_expression): Store start of block for
219 DW_OP_implicit_value and DW_OP_GNU_entry_value instead of
220 relative data offset. Also store block start (including length)
221 for DW_OP_GNU_const_type. Don't pass data to store_implicit_value.
222 * dwarf_getlocation_attr.c: New file.
223 * dwarf_getlocation_die.c: Likewise.
224 * libdw.h (dwarf_getlocation_die): New function definition.
225 (dwarf_getlocation_attr): Likewise.
226 * libdwP.h: Declare internal dwarf_getlocation_die.
227 * libdw.map (ELFUTILS_0.157): Add dwarf_getlocation_die and
228 dwarf_getlocation_attr.
229 * Makefile.am (libdw_a_SOURCES): Add dwarf_getlocation_die.c and
230 dwarf_getlocation_attr.c.
231
Mark Wielaard66eaae92013-08-23 16:12:37 +02002322013-08-23 Mark Wielaard <mjw@redhat.com>
233
234 * dwarf_getlocation.c (attr_ok): Also accept DW_AT_segment.
235 (attr_base_address): New function.
236 (initial_offset_base): New function.
237 (getlocations_addr): New function. Taken from...
238 (dwarf_getlocation_addr): here. Use new initial_offset_base and
239 getlocations_addr.
240 (dwarf_getlocations): New function.
241 * libdw.h (dwarf_getlocations): New function definition.
242 * libdw.map (ELFUTILS_0.157): New.
243
Mark Wielaard5704c8c2013-07-02 11:22:35 +02002442013-07-02 Mark Wielaard <mjw@redhat.com>
245
Mark Wielaard4aacfc12013-07-02 16:36:16 +0200246 * dwarf_getsrclines.c (dwarf_getsrclines): Add new stack allocation
247 limit MAX_STACK_ALLOC. After MAX_STACK_ALLOC lines use malloc in
248 NEW_LINE macro. Free malloced line records if any at the end.
249
2502013-07-02 Mark Wielaard <mjw@redhat.com>
251
Mark Wielaard5704c8c2013-07-02 11:22:35 +0200252 * dwarf_getcfi_elf.c (getcfi_shdr): Check sh_type == SHT_PROGBITS.
253
Mark Wielaard79277072013-06-26 11:42:52 -04002542013-06-26 Mark Wielaard <mjw@redhat.com>
255
256 * libdw_visit_scopes.c (__libdw_visit_scopes): Don't reject root
257 DIEs without children. Return an error whenever dwarf_child or
258 dwarf_siblingof return an error. Don't call recurse and increase
259 the depth for an imported unit. Walk the children of an imported
260 unit as if they are logical children of the parent root DIE.
261
Mark Wielaard9affad32013-05-03 11:28:49 +02002622013-05-03 Mark Wielaard <mjw@redhat.com>
263
264 * dwarf_getsrclines.c (dwarf_getsrclines): Only set end_sequence
265 when nlinelist > 0.
266
Jan Kratochvil904aec22013-04-30 14:27:16 +02002672013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
268
269 * libdw.map (ELFUTILS_0.156): New.
270
Mark Wielaardcdaaf212013-04-25 16:50:11 -04002712013-04-24 Mark Wielaard <mjw@redhat.com>
272
273 * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
274
Mark Wielaardd4744a72013-04-10 15:52:57 +02002752013-04-10 Mark Wielaard <mjw@redhat.com>
276
277 * dwarf_formref_die.c (dwarf_formref_die): Reference size is only
278 equal to address size when we have a DW_FORM_ref_addr for DWARF
279 version 2.
280
Mark Wielaard60ef9ab2013-03-25 17:07:21 +01002812013-03-25 Mark Wielaard <mjw@redhat.com>
282
283 * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as
284 end_sequence.
285
Mark Wielaardf1b06b52013-03-12 12:02:51 +01002862013-03-12 Mark Wielaard <mjw@redhat.com>
287
288 * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit.
289 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
290
Mark Wielaard443304e2013-02-15 22:45:22 +01002912013-02-15 Mark Wielaard <mjw@redhat.com>
292
293 * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata,
294 not dbg->sectiondata.
295
Roland McGrath3999ce12013-01-07 14:53:37 -08002962013-01-07 Roland McGrath <roland@hack.frob.com>
297
298 * memory-access.h
299 [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro.
300 [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function.
301
Mark Wielaard59254422012-12-18 14:14:22 +01003022012-12-18 Mark Wielaard <mjw@redhat.com>
303
304 * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid.
305 (check_section): Likewise on error.
306 (scngrp_read): Likewise.
307 (dwarf_begin_elf): Likewise.
308
Petr Machatab5c0b032012-10-09 02:11:29 +02003092012-10-09 Petr Machata <pmachata@redhat.com>
310
311 * dwarf_getlocation.c (__libdw_intern_expression): Handle
312 DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret,
313 DW_OP_GNU_regval_type, DW_OP_GNU_entry_value,
314 DW_OP_GNU_deref_type, DW_OP_GNU_const_type.
315
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +02003162012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
317
Jan Kratochvil1d67c0c2012-10-08 23:51:31 +0200318 * cfi.c: New include system.h.
319 (execute_cfi) (enough_registers): Clear new memory after realloc.
320
3212012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
322
Jan Kratochvil07f35072012-10-08 23:34:35 +0200323 * fde.c (__libdw_find_fde): Change <fde != NULL> to likely. Return
324 DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for
325 searched PC.
326
3272012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
328
Jan Kratochvil96a9fc62012-10-08 23:08:01 +0200329 * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new
330 loclist element DW_OP_call_frame_cfa before decoding the opcodes.
331 Remove the later DW_OP_call_frame_cfa push to RESULT.
332
3332012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
334
Jan Kratochvil6c45f4a2012-10-08 23:04:54 +0200335 Code cleanup.
336 * fde.c (binary_search_fde): Remove always true <address >= start>
337 conditional. Move L initialization upwards.
338
Mark Wielaardf5519fc2012-08-24 13:54:52 +02003392012-08-24 Mark Wielaard <mjw@redhat.com>
340
341 * dwarf_begin_elf.c (check_section): Only probe for dwz multi files
342 when ENABLE_DWZ is defined.
343 * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is
344 defined.
345
Mark Wielaardf31c4412012-08-17 00:35:03 +02003462012-08-16 Mark Wielaard <mjw@redhat.com>
347
348 * Makefile.am (EXTRA_DIST): Add known-dwarf.h.
349 * dwarf.h (DW_LANG_Go): Update comment.
350 (DW_LANG_Mips_Assembler): Likewise.
351
Mark Wielaard775375e2012-06-22 12:02:45 +02003522012-06-27 Mark Wielaard <mjw@redhat.com>
353
354 * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt.
355 * dwarf_begin.c (dwarf_begin): Add INTDEF.
356 * dwarf_begin_elf.c (__check_build_id): New internal_function.
357 (try_debugaltlink): New function.
358 (open_debugaltlink): Likewise.
359 (check_section): Try open_debugaltlink for .gnu_debugaltlink.
360 * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if
361 necessary.
362 * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK.
363 * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt
364 is an error here.
365 * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt.
366 * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt.
367 * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset
368 calls.
369 * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call.
370 * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK.
371 (struct Dwarf): Add alt_dwarf and free_alt fields.
372 (__libdw_read_offset): Add dbg_ret argument, use to check with
373 __libdw_offset_in_section.
374 (__check_build_id): New function declaration.
375 (dwarf_begin): Define as INTDECL.
376 * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt
377 and DW_FORM_GNU_strp_alt.
378
Mark Wielaard515fba92012-07-20 00:09:56 +02003792012-07-19 Mark Wielaard <mjw@redhat.com>
380
381 * dwarf.h: Add DW_OP_GNU_parameter_ref.
382
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +02003832012-07-24 Mark Wielaard <mjw@redhat.com>
384
Mark Wielaardc4010b82012-07-24 13:20:41 +0200385 * dwarf.h: Correct spelling of DW_LANG_ObjC.
386 * dwarf_aggregate_size.c (array_size): Use correct spelling of
387 DW_LANG_ObjC.
388
3892012-07-24 Mark Wielaard <mjw@redhat.com>
390
Mark Wielaarddf9ec3f2012-07-24 20:00:14 +0200391 * dwarf.h: Add DW_ATE_UTF.
392
Mark Wielaardef5688e2012-06-27 10:15:27 +02003932012-06-27 Mark Wielaard <mjw@redhat.com>
394
395 * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
396
Mark Wielaarda0172d72012-06-25 17:18:53 +02003972012-06-26 Mark Wielaard <mjw@redhat.com>
398
399 * libdwP.h: Add IDX_debug_macro.
400 * dwarf.h: Add DW_AT_GNU_macros.
401 * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro.
402 * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros.
403
Mark Wielaard54797252012-04-27 13:00:50 +02004042012-04-27 Mark Wielaard <mjw@redhat.com>
405
406 * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being
407 a constant offset from DW_AT_low_pc.
408
Tom Tromey581c3f62012-03-21 08:54:32 -06004092012-03-19 Tom Tromey <tromey@redhat.com>
410
411 * libdw_findcu.c (findcu_cb): Move earlier.
412 (__libdw_intern_next_unit): Add new CU to search tree here...
413 (__libdw_findcu): ... not here.
414
Mark Wielaardcb643d62012-01-31 19:22:03 +01004152012-01-31 Mark Wielaard <mjw@redhat.com>
416
417 * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset.
418
Mark Wielaard387998b2011-10-31 15:01:50 +01004192011-11-31 Mark Wielaard <mjw@redhat.com>
420
421 * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
422
Mark Wielaard0b72b652011-07-14 12:59:26 +02004232011-07-14 Mark Wielaard <mjw@redhat.com>
424
425 * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
426
Jakub Jelinek03124242011-05-17 17:00:14 +02004272011-05-16 Jakub Jelinek <jakub@redhat.com>
428
429 * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
430 DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret):
431 New.
432
Mark Wielaardf4c39c72011-04-26 17:15:28 +02004332011-04-26 Mark Wielaard <mjw@redhat.com>
434
435 * dwarf_child (dwarf_child): Sanity check end of section against
436 cu_data () of die->cu.
437
Mark Wielaarde3368c52011-03-22 23:03:31 +01004382011-03-22 Mark Wielaard <mjw@redhat.com>
439
440 * dwarf.h: Add DW_TAG_GNU_call_site,
441 DW_TAG_GNU_call_site_parameter,
442 DW_AT_GNU_call_site_value,
443 DW_AT_GNU_call_site_data_value,
444 DW_AT_GNU_call_site_target,
445 DW_AT_GNU_call_site_target_clobbered,
446 DW_AT_GNU_tail_call,
447 DW_AT_GNU_all_tail_call_sites,
448 DW_AT_GNU_all_call_sites,
449 DW_AT_GNU_all_source_call_sites,
450 and DW_OP_GNU_entry_value.
451
Petr Machata02c56192011-03-10 01:50:32 +01004522011-03-10 Petr Machata <pmachata@redhat.com>
453
454 * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for
455 abbreviation with code 0.
456
Petr Machata35870872011-03-09 10:01:29 -08004572011-03-09 Petr Machata <pmachata@redhat.com>
458
459 * libdw/dwarf_child.c (dwarf_child): Check for section overrun.
460
Roland McGrath725aad52011-02-23 19:52:46 -08004612011-02-23 Roland McGrath <roland@redhat.com>
462
463 * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask.
464 Declare __libdw_free_zdata.
465 * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function.
466 (dwarf_end): Call it.
467
468 * dwarf_begin_elf.c (valid_p): Likewise.
469 (check_section, scngrp_read): Likewise.
470 (check_section) [USE_ZLIB]: Grok .z* flavors of sections.
471
Roland McGrath8c0a3822010-10-13 11:21:17 -07004722010-10-13 Roland McGrath <roland@redhat.com>
473
474 * dwarf.h: Add DW_LANG_Go.
475
Roland McGrath5f95e2b2010-10-05 00:56:30 -07004762010-10-05 Roland McGrath <roland@redhat.com>
477
478 * dwarf_getaranges.c: Use malloc rather than alloca,
479 since the total number of elements can be quite huge.
480
Roland McGrath932585d2010-05-08 04:01:14 -07004812010-07-26 Roland McGrath <roland@redhat.com>
482
483 * dwarf_getlocation_implicit_pointer.c: New file.
484 * Makefile.am (libdw_a_SOURCES): Add it.
485 * libdw.map (ELFUTILS_0.149): New set.
486 Add dwarf_getlocation_implicit_pointer.
487 * libdw.h: Declare it.
488
489 * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global.
490 (dwarf_offdie, dwarf_offdie_types): Update callers.
491 * libdwP.h: Declare it.
492
493 * dwarf.h: Add DW_OP_GNU_implicit_pointer.
494 * dwarf_getlocation.c (__libdw_intern_expression): Handle it.
495
Roland McGrathde44f132010-08-24 15:38:42 -07004962010-08-24 Roland McGrath <roland@redhat.com>
497
498 * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line.
499
Roland McGrath00aca7f2010-07-27 04:40:23 -07005002010-07-27 Roland McGrath <roland@redhat.com>
501
502 * dwarf_formref_die.c: Fix sig8 hash insertion.
503
Roland McGrath9616b852010-06-23 03:17:28 -07005042010-06-23 Roland McGrath <roland@redhat.com>
505
506 * cfi.c (dwarf_cfi_validate_fde): Function removed.
507 * libdw.h: Remove it.
508 * libdw.map: Likewise.
509
Roland McGrath499b8ff2010-06-22 13:13:53 -07005102010-06-22 Roland McGrath <roland@redhat.com>
511
Roland McGrathc16966a2010-06-22 17:08:43 -0700512 * dwarf_getlocation.c (check_constant_offset): data[48] are constant.
513
Roland McGrath499b8ff2010-06-22 13:13:53 -0700514 * dwarf_getsrclines.c: Fix signed comparison warning in extended
515 opcode parsing.
516
Roland McGrath0c5638c2010-06-21 23:00:35 -07005172010-06-21 Roland McGrath <roland@redhat.com>
518
Roland McGrath474cb482010-06-22 00:10:54 -0700519 * dwarf.h: Add DW_TAG_GNU_* constants.
520
Roland McGrath0c5638c2010-06-21 23:00:35 -0700521 * memory-access.h (get_sleb128_rest_return): Fix sign extension for
522 10-byte case.
523
Roland McGrath5cc030d2010-06-20 17:25:35 -07005242010-06-20 Roland McGrath <roland@redhat.com>
525
Roland McGrath2b1f0952010-06-20 17:55:50 -0700526 * libdw_findcu.c (__libdw_findcu): Take new flag argument,
527 to search TUs instead of CUs.
528 * libdwP.h: Update decl.
529 (struct Dwarf): New member tu_tree.
530 * dwarf_end.c (dwarf_end): Clean up tu_tree.
531 * dwarf_offdie.c (do_offdie): New function, broken out of ...
532 (dwarf_offdie): ... here.
533 (dwarf_offdie_types): New function.
534 * libdw.h: Declare it.
535 * libdw.map (ELFUTILS_0.148): Add it.
536
Roland McGrath5cc030d2010-06-20 17:25:35 -0700537 * libdwP.h (CUDIE): Use cu_data.
538 * dwarf_formblock.c: Likewise.
539 * dwarf_formref_die.c: Likewise.
540 * dwarf_diecu.c: Use CUDIE macro.
541 * dwarf_formaddr.c: Use cu_sec_idx.
542
Roland McGrathc70ebc02010-06-16 02:21:26 -07005432010-06-16 Roland McGrath <roland@redhat.com>
544
Roland McGrath3e0f7d12010-06-15 23:10:35 -0700545 * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so
546 we don't repeat a CU lookup we've already done. Handle
547 DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit.
548
549 * libdw_findcu.c (__libdw_intern_next_unit): New function,
550 broken out of ...
551 (__libdw_findcu): ... here. Call it.
552 * libdwP.h: Declare it.
553 (struct Dwarf): New member next_tu_offset.
554
555 * dwarf_sig8_hash.c: New file.
556 * dwarf_sig8_hash.h: New file.
557 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
558 * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before
559 defining NO_UNDEF.
560 * libdwP.h (struct Dwarf): New member sig8_hash.
561 * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it.
562 * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it.
563
564 * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ...
565 (dwarf_nextcu): ... here. Call it.
566 * libdw.h: Declare it.
567 * libdwP.h: Add INTDECL.
568 * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu.
569 * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit.
570
571 * libdwP.h (cu_sec_idx, cu_data): New functions.
572 Use .debug_types when CU is a TU.
573 * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info.
574 * dwarf_siblingof.c: Likewise.
575 * dwarf_formstring.c: Likewise.
576 * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise.
577 * dwarf_getlocation.c (dwarf_getlocation): Likewise.
578 (dwarf_getlocation_addr): Likewise.
579
580 * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8.
581 (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute
582 .debug_types header size instead of .debug_info header size.
583 (CUDIE): Use it.
584 * dwarf_diecu.c: Update caller.
585 * dwarf_getaranges.c: Likewise.
586 * dwarf_nextcu.c: Likewise.
587 * libdw_findcu.c (__libdw_findcu): Initialize new members.
588
Roland McGrath3e4b5bb2010-06-16 03:40:56 -0700589 * fde.c (fde_by_offset): Renamed to ...
590 (__libdw_fde_by_offset): ... this, made global and internal_function.
591 Don't take ADDRESS argument.
592 (__libdw_find_fde): Update caller. Do address sanity check here.
593 * cfi.h: Declare __libdw_fde_by_offset.
594 * cfi.c (dwarf_cfi_validate_fde): New function.
595 * libdw.h: Declare it.
596 * libdw.map (ELFUTILS_0.148): Add it.
597
Roland McGrath5f4b5082010-06-16 03:11:57 -0700598 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
599 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
600
Roland McGrath7934ded2010-06-16 03:04:09 -0700601 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
602 Don't assume DW_EH_PE_aligned refers to native address size.
603
Roland McGrathc70ebc02010-06-16 02:21:26 -0700604 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
605 address.
606
Roland McGrathc70cf4e2010-06-18 17:01:05 -07006072010-06-17 Roland McGrath <roland@redhat.com>
608
609 * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and
610 op_index.
611 * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts
612 into an inner inline function. Set new fields. Check all fields for
613 overflow when setting.
614 * dwarf_lineisa.c: New file.
615 * dwarf_linediscriminator.c: New file.
616 * dwarf_lineop_index.c: New file.
617 * Makefile.am (libdw_a_SOURCES): Add them.
618 * libdw.map (ELFUTILS_0.148): Add them.
619 * libdw.h: Declare them.
620
Roland McGrath3f633072010-06-15 22:17:04 -07006212010-06-16 Roland McGrath <roland@redhat.com>
622
Roland McGrath4a87dfa2010-06-16 16:35:10 -0700623 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
624
Roland McGrathb75f4442010-06-15 22:24:19 -0700625 * fde.c (fde_by_offset): Renamed to ...
626 (__libdw_fde_by_offset): ... this, made global and internal_function.
627 Don't take ADDRESS argument.
628 (__libdw_find_fde): Update caller. Do address sanity check here.
629 * cfi.h: Declare __libdw_fde_by_offset.
Roland McGrath9bcd2652010-06-15 22:17:20 -0700630 * cfi.c (dwarf_cfi_validate_fde): New function.
631 * libdw.h: Declare it.
Roland McGrath3f633072010-06-15 22:17:04 -0700632 * libdw.map (ELFUTILS_0.148): Add it.
633
Roland McGrath0b3363e2010-06-01 15:42:14 -0700634 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
635 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
Roland McGrath827d4d12010-06-01 20:17:36 -0700636
637 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
638 Don't assume DW_EH_PE_aligned refers to native address size.
Roland McGrath1a030b32010-06-01 20:11:40 -0700639
640 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
Roland McGrath675229b2010-06-01 20:10:19 -0700641 address.
642
6432010-06-15 Roland McGrath <roland@redhat.com>
Roland McGrath52123962010-06-01 19:05:08 -0700644
645 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
Roland McGrath7fac1ce2010-06-01 15:56:58 -0700646 DW_FORM_ref_addr.
647 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
Roland McGrath0b3363e2010-06-01 15:42:14 -0700648 here, since we don't support it yet.
649
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200650 * dwarf_next_cfi.c: Handle version 4 format.
651
Mark Wielaard08e71db2010-05-31 15:39:15 +0200652 * dwarf_getsrclines.c: Handle version 4 format.
653
6542010-06-01 Roland McGrath <roland@redhat.com>
655
656 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200657 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
658
Eduardo Santiagod2240bc2010-05-28 14:26:52 -0700659 * libdwP.h (CIE_VERSION): Remove unused macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700660
Ulrich Drepper49fe7142010-05-28 20:32:37 -0700661 * dwarf_getsrclines.c: Fix version field test.
662 * libdwP.h (DWARF_VERSION): Remove useless macro.
Ulrich Drepper6fb34512010-05-28 20:28:04 -0700663
Roland McGrathcfa5da22010-05-27 13:49:25 -0700664 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
665
666 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
667
668 * libdw_findcu.c (__libdw_findcu): Accept version 4.
Roland McGrath688f7fc2010-05-08 03:22:59 -0700669
6702010-05-31 Mark Wielaard <mjw@redhat.com>
671
672 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
673 * libdw.h (dwarf_cfi_cie_p): ... here.
674
6752010-05-31 Mark Wielaard <mjw@redhat.com>
676
677 * dwarf.h: Fix DW_LANG_Python constant.
Roland McGrath0ab97832010-04-26 11:50:27 -0700678
6792010-05-28 Eduardo Santiago <santiago@redhat.com>
Roland McGrath3b10ac02010-04-26 18:45:36 -0700680
681 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
682 thing.
683
6842010-05-27 Roland McGrath <roland@redhat.com>
Roland McGrath0ab97832010-04-26 11:50:27 -0700685
686 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
687 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
688
6892010-05-08 Roland McGrath <roland@redhat.com>
690
691 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
Roland McGrath3f9d9552010-04-22 20:51:07 -0700692 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
693 (getlocation): Update caller.
694 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
695 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
696 * libdwP.h: Update decl.
697
6982010-04-26 Roland McGrath <roland@redhat.com>
Roland McGrath8068e062010-03-10 23:49:13 -0800699
700 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
701 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
702 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
Roland McGrath22359e22010-02-15 15:57:03 -0800703 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
704
705 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
706 Prepend DW_OP_call_frame_cfa if true.
Mark Wielaardee29a312010-02-02 20:44:53 +0100707 (getlocation): Update caller.
708 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
709 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
710 * libdwP.h: Update decl.
Roland McGrathf95760a2010-01-07 20:24:34 -0800711
7122010-04-22 Roland McGrath <roland@redhat.com>
713
714 * cfi.c (execute_cfi): Never return without cleanup.
Roland McGrath019d9fb2010-01-05 13:36:07 -0800715 Free FS on failure.
716 (cie_cache_initial_state): Adjust caller to expect that free.
Roland McGrathebc5c882010-01-05 22:53:31 -0800717 (__libdw_frame_at_address): Likewise.
718
7192010-03-10 Roland McGrath <roland@redhat.com>
720
721 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
722
7232010-02-15 Roland McGrath <roland@redhat.com>
724
725 * Makefile.am: Use config/eu.am for common stuff.
Roland McGrath0cb19832010-01-05 13:38:15 -0800726
7272010-02-02 Mark Wielaard <mjw@redhat.com>
Roland McGrath019d9fb2010-01-05 13:36:07 -0800728
729 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
Roland McGrath888381b2009-11-21 17:03:34 -0800730
7312010-01-07 Roland McGrath <roland@redhat.com>
732
733 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
734
Roland McGrath9ca7bc42009-10-15 12:26:49 -07007352010-01-05 Roland McGrath <roland@redhat.com>
736
737 * dwarf_aggregate_size.c: New file.
738 * Makefile.am (libdw_a_SOURCES): Add it.
739 * libdw.h: Declare it.
Roland McGrath7e0aecd2009-09-17 15:02:34 -0700740 * libdwP.h: Add INTDECL.
741 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
742
743 * dwarf_srclang.c: Add INTDEF.
744 * libdwP.h: Add INTDECL.
745
Roland McGrathf0371042009-09-10 12:39:09 -0700746 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
747
748 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
749
7502009-11-21 Roland McGrath <roland@redhat.com>
751
752 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
753 non-constant forms.
Mark Wielaard418ae4c2009-09-09 20:59:26 +0200754
7552009-10-15 Roland McGrath <roland@redhat.com>
756
757 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
Josh Stonecc93cc42009-08-21 18:04:44 -0700758 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
759
7602009-09-17 Roland McGrath <roland@redhat.com>
761
Roland McGrath08277ba2009-08-10 15:08:08 -0700762 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
763 argument a pointer to const.
764 * libdw.h: Update decl.
765
Roland McGrathebfb6482009-08-09 15:40:52 -07007662009-09-10 Roland McGrath <roland@redhat.com>
767
768 * dwarf_getlocation.c (store_implicit_value): New function.
769 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
770 (dwarf_getlocation_implicit_value): New function.
771 * libdw.h: Declare it.
772 * libdw.map (ELFUTILS_0.143): Add it.
773
7742009-09-09 Mark Wielaard <mjw@redhat.com>
775
776 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
777
7782009-08-21 Josh Stone <jistone@redhat.com>
779
Roland McGrathde69d522009-08-07 18:26:19 -0700780 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
781
7822009-08-10 Roland McGrath <roland@redhat.com>
783
784 * dwarf_getscopevar.c: Use dwarf_diename.
785
7862009-08-09 Roland McGrath <roland@redhat.com>
787
788 * libdw.map (ELFUTILS_0.143): New version set,
789 inherits from ELFUTILS_0.142.
Roland McGrathaf800142009-07-22 13:55:50 -0700790 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
791 alias in the ELFUTILS_0.122 version set and the default in the new set.
792 * dwarf_srclang.c: Likewise.
793 * dwarf_decl_file.c: Likewise.
794 * dwarf_decl_line.c: Likewise.
795 * dwarf_decl_column.c: Likewise.
796 * dwarf_bytesize.c: Likewise.
797 * dwarf_bitsize.c: Likewise.
798 * dwarf_bitoffset.c: Likewise.
799
8002009-08-07 Roland McGrath <roland@redhat.com>
801
802 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
803 * dwarf_srclang.c: Likewise.
804 * dwarf_decl_file.c: Likewise.
805 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
Roland McGrathe23e9e72009-07-21 18:14:52 -0700806 * dwarf_bytesize.c: Likewise.
807 * dwarf_bitsize.c: Likewise.
808 * dwarf_bitoffset.c: Likewise.
809
8102009-07-22 Roland McGrath <roland@redhat.com>
811
812 * dwarf_frame_cfa.c: Change calling convention.
813 * libdw.h: Update decl.
Roland McGrath96349ff2009-07-20 11:51:41 -0700814
815 * dwarf_frame_register.c: Change calling/return-value convention for
816 value-only results and undefined/same_value.
817 * libdw.h: Update decl.
818
Roland McGratha6abdfd2009-07-16 17:40:19 -0700819 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
820 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
Roland McGrathe160cc92009-07-16 17:48:27 -0700821 return that value instead.
822 (getlocation): Update caller.
823 * dwarf_frame_cfa.c: Likewise.
824 * libdwP.h: Update decl.
825
Roland McGratha6abdfd2009-07-16 17:40:19 -07008262009-07-21 Roland McGrath <roland@redhat.com>
827
828 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
829 Fix loop iteration after skipping a bogus or useless CU.
830
831 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
832 absence, not DWARF_E_NO_DEBUG_LINE.
Roland McGrath7dd94642009-07-15 11:14:23 -0700833
8342009-07-20 Roland McGrath <roland@redhat.com>
835
836 * dwarf_getlocation.c (__libdw_intern_expression):
837 Handle DW_OP_stack_value.
Roland McGrath80893432009-07-13 12:08:55 -0700838
8392009-07-16 Roland McGrath <roland@redhat.com>
840
841 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700842 reject others when CU's version > 3.
843
Roland McGrath3c84db32009-06-24 17:41:40 -0700844 * dwarf_formflag.c: Handle DW_FORM_flag_present.
845
846 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
847 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
848 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
849 and DW_AT_const_expr.
850 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
851 and DW_FORM_ref_sig8.
852
8532009-07-15 Roland McGrath <roland@redhat.com>
854
855 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
856 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
857
8582009-07-13 Roland McGrath <roland@redhat.com>
859
860 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
861
8622009-07-08 Roland McGrath <roland@redhat.com>
863
864 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
865 dwfl_module_eh_cfi.
866
867 * libdwP.h (struct Dwarf): Add member `cfi'.
868 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
869 * dwarf_getcfi.c: New file.
870 * dwarf_getcfi_elf.c: New file.
871 * dwarf_cfi_end.c: New file.
872 * dwarf_cfi_addrframe.c: New file.
873 * dwarf_frame_cfa.c: New file.
874 * dwarf_frame_register.c: New file.
875 * dwarf_frame_return_address_register.c: New file.
876 * Makefile.am (libdw_a_SOURCES): Add them.
877 * unwind.h: Declare those functions.
878 * libdw.map (ELFUTILS_0.142): Export them.
879
880 * dwarf_getlocation.c (__libdw_intern_expression): New function,
881 broken out of ...
882 (getlocation): ... here, call it.
883 * libdwP.h: Declare it.
884
885 * cie.c: New file.
886 * fde.c: New file.
887 * frame-cache.c: New file.
888 * cfi.c: New file.
889 * cfi.h: New file.
890 * encoded-value.h: New file.
891 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
892 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
893 * dwarf_error.c (errmsgs): Add element for it.
894
895 * dwarf_next_cfi.c: New file.
896 * Makefile.am (libdw_a_SOURCES): Add it.
Roland McGrath6e1f4652009-07-08 14:48:34 -0700897 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
898 Declare dwarf_next_cfi.
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700899 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
900 Add dwarf_next_cfi.
901
902 * memory-access.h [! ALLOW_UNALIGNED]
Roland McGrath05c4e042009-06-18 13:56:02 -0700903 (read_2ubyte_unaligned): Renamed to ...
904 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
905 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
906 (read_2sbyte_unaligned): Likewise.
907 (read_4ubyte_unaligned): Likewise.
908 (read_4sbyte_unaligned): Likewise.
909 (read_8ubyte_unaligned): Likewise.
910 (read_8sbyte_unaligned): Likewise.
911
Ulrich Drepper99d23722009-06-14 20:19:45 -0700912 * libdwP.h (IDX_eh_frame): Remove it.
913 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
914
9152009-07-08 Roland McGrath <roland@redhat.com>
916
917 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
918
919 * dwarf_getlocation.c (check_constant_offset): New function.
920 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
921 handle DW_AT_data_member_location of data[48] as constant offset.
922
9232009-06-18 Roland McGrath <roland@redhat.com>
924
925 * libdwP.h (__libdw_read_address_inc): Constify.
926 (__libdw_read_offset_inc): Likewise.
927 * dwarf_getaranges.c: Likewise.
928 * dwarf_getlocation.c: Likewise.
929 * dwarf_getsrclines.c: Likewise.
930 * dwarf_nextcu.c: Likewise.
931
9322009-05-05 Petr Machata <pmachata@redhat.com>
933
934 * libdwP.h (__libdw_formptr): Declare new function.
935 * dwarf_formudata.c: Implement it here.
936 * dwarf_getlocation.c (dwarf_getlocation_addr):
937 Call it instead of hand-rolled offset handling code.
938 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
939 * dwarf_ranges.c (dwarf_ranges): Likewise.
940
9412009-05-04 Petr Machata <pmachata@redhat.com>
942
943 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
944 * dwarf_ranges.c: Implement it here.
945 (dwarf_ranges): Call it.
Roland McGrathe2eabd82009-05-07 18:54:52 -0700946 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
947
9482009-04-23 Petr Machata <pmachata@redhat.com>
949
950 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
951 of read_*ubyte_unaligned.
Petr Machataf3df61f2009-05-07 21:02:33 +0200952 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
953 * dwarf_formstring.c (dwarf_formstring): Likewise.
954 * dwarf_formudate.c (dwarf_formudata): Likewise.
955 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
956 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
Roland McGrath2fb90512009-04-15 14:47:13 -0700957 * dwarf_getpubnames.c (get_offsets): Likewise.
958 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
959
9602009-04-23 Petr Machata <pmachata@redhat.com>
961
Roland McGrath6a4bdd92009-04-01 14:25:29 -0700962 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
963 __libdw_read_addr, __libdw_read_off): Add four new internal
964 functions.
965
Roland McGrathc5acb302009-01-28 18:28:52 -08009662009-05-07 Roland McGrath <roland@redhat.com>
967
Roland McGrath03288f02009-01-28 22:00:54 -0800968 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
969 return value and OFFSET argument, not CU-relative. Only fetch the
970 attribute data when called with OFFSET of 0.
Roland McGrathc5acb302009-01-28 18:28:52 -0800971
9722009-05-07 Petr Machata <pmachata@redhat.com>
Roland McGrathf46272a2009-01-26 18:36:16 -0800973
974 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
975 DW_AT_macro_info attribute of CU DIE.
976
Roland McGrathd31505f2009-01-25 19:37:33 -08009772009-04-15 Roland McGrath <roland@redhat.com>
978
979 * dwarf.h (DW_CIE_ID): Removed.
980 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
Roland McGrath3bf7a092009-01-23 16:34:07 -0800981
9822009-04-01 Roland McGrath <roland@redhat.com>
983
984 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
985
Roland McGrathafdd51e2009-01-22 02:26:24 -08009862009-01-28 Roland McGrath <roland@redhat.com>
987
988 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
989 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
Roland McGrath1ea4fdc2009-01-21 19:14:37 -0800990
991 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
992
9932009-01-26 Roland McGrath <roland@redhat.com>
994
995 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
Roland McGrath24b03302009-01-17 14:34:13 -0800996
9972009-01-25 Roland McGrath <roland@redhat.com>
Roland McGrath54456d82009-01-17 14:39:35 -0800998
999 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
1000
Roland McGrath5513e642009-01-11 01:35:11 -080010012009-01-23 Roland McGrath <roland@redhat.com>
1002
1003 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
1004 Put these rules under if MAINTAINER_MODE.
1005
10062009-01-22 Roland McGrath <roland@redhat.com>
1007
Roland McGrath24b03302009-01-17 14:34:13 -08001008 * dwarf.h: Add DW_OP_GNU_encoded_addr.
1009
Ulrich Drepper7e678fa2009-01-10 18:02:05 -080010102009-01-21 Roland McGrath <roland@redhat.com>
1011
1012 * Makefile.am (CLEANFILES): Renamed to ...
1013 (MOSTLYCLEANFILES): ... here.
Roland McGrathe06762c2009-01-08 13:39:08 -08001014 (CLEANFILES): New variable, add known-dwarf.h.
1015
10162009-01-17 Roland McGrath <roland@redhat.com>
1017
Roland McGrath7e827f22009-01-06 02:09:50 -08001018 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
Roland McGrath1f6d2012008-12-31 00:21:04 -08001019 Make it unconditional.
1020 (BUILT_SOURCES): Updated.
1021
1022 * dwarf.h: Add description comments for DW_LANG_* values.
Roland McGrathbca43152009-01-05 23:59:32 -08001023
1024 * Makefile.am [MAINTAINER_MODE]
1025 ($(srcdir)/known-dwarf.h): New target.
Ulrich Drepperac194d02009-01-06 00:30:01 -08001026 (BUILT_SOURCES): Add it.
1027
Roland McGrathc462c632009-01-06 01:04:31 -08001028 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
Ulrich Drepperac194d02009-01-06 00:30:01 -08001029
10302009-01-10 Ulrich Drepper <drepper@redhat.com>
1031
1032 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
Roland McGrathb4d6f0f2008-08-25 22:55:17 +00001033
10342009-01-08 Roland McGrath <roland@redhat.com>
1035
1036 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
1037
Ulrich Drepper8d358d92008-01-22 06:34:31 +000010382008-01-06 Roland McGrath <roland@redhat.com>
1039
1040 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
1041 Reorder members.
1042 * dwarf_haschildren.c: Return -1 for error case, not 0.
1043
1044 * Makefile.am (libdw.so): Link in $(zip_LIBS).
1045
Ulrich Drepperb27ce002008-01-18 20:08:54 +000010462009-01-06 Ulrich Drepper <drepper@redhat.com>
1047
1048 * dwarf.h: Add definition for unwind and call frame information.
1049
1050 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
Ulrich Drepper35f08c42008-01-18 19:59:08 +00001051 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
1052
10532008-08-15 Roland McGrath <roland@redhat.com>
1054
1055 * libdw.map (ELFUTILS_0.136): New version set, inherits from
1056 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
1057
10582008-01-21 Ulrich Drepper <drepper@redhat.com>
1059
1060 * dwarf_child.c: Minor optimizations.
1061 * dwarf_getattrs.c: Likewise.
1062 * dwarf_getpubnames.c: Likewise.
1063 * dwarf_siblingof.c: Likewise.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +00001064 * dwarf_tag.c: Likewise.
Ulrich Drepper35f08c42008-01-18 19:59:08 +00001065
10662008-01-18 Ulrich Drepper <drepper@redhat.com>
1067
1068 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
1069 of DWARF_VERSION comparison, just fail if the file's version is newer.
1070
10712008-01-17 Nick Clifton <nickc@redhat.com>
1072
1073 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
1074 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
1075 (DWARF3_LENGTH_64_BIT): New define.
1076 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
1077 * dwarf_getpubnames: Include dwarf.h.
1078 (get_offsets): Use the new definitions.
1079 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
1080 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
1081 (dwarf_nextcu): Use the new definitions.
1082
1083 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
1084 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
1085 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
1086 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
1087
1088 * dwarf_getpubnames (get_offsets): Replace assertion with test and
1089 error return.
1090
1091 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
1092
1093 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
1094 Set the address in the return structure to the address of the next
1095 non-sibling die, if there is no sibling and the return pointer is
1096 not the same as the die pointer.
Ulrich Dreppere219f1c2008-01-09 05:49:49 +00001097 * libdw.h: Expand the description of the dwarf_siblingof prototype.
1098
1099 * dwarf_child.c: Fix typo in comment.
1100
1101 * libdwP.h (DWARF_VERSION): Change to 3.
1102
Roland McGrathe4c22ea2007-10-23 13:07:39 +00001103 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
1104 not have a initialised valp pointer.
1105
1106 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
1107 the end of the attributes is reached. When the callback fails,
1108 return the address of the failing attribute, not the address of
1109 its successor.
1110 * libdw.h: Expand the description of the dwarf_getattrs prototype.
1111
1112 * dwarf_child.c (__libdw_find_attr): Use the new definition.
1113 (dwarf_child): Likewise.
1114 * dwarf_tag.c (__libdw_findabbrev): Likewise.
1115 (dwarf_tag): Likewise.
1116
11172008-01-08 Roland McGrath <roland@redhat.com>
1118
1119 * Makefile.am (euinclude): Variable removed.
1120 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
1121 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00001122
11232007-10-17 Roland McGrath <roland@redhat.com>
1124
1125 * libdw.h (__deprecated_attribute__): New macro.
1126 (dwarf_formref): Mark it deprecated.
1127 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
1128 (dwarf_formref): ... here. Call it. Remove INTDEF.
Roland McGrath59ea7f32007-10-04 08:50:09 +00001129 * libdwP.h: Remove INTDECL.
1130 Declare __libdw_formref.
1131 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
1132 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
1133
1134 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
1135 needs to check CU->version.
1136
Roland McGrath057ec6b2007-10-02 20:55:05 +00001137 * libdwP.h (struct Dwarf_CU): New member `version'.
1138 * libdw_findcu.c (__libdw_findcu): Initialize it.
1139
1140 * dwarf_child.c: Return 1 for null entry as first child.
1141
Roland McGrathd1a48172007-08-07 19:51:01 +000011422007-10-05 Roland McGrath <roland@redhat.com>
1143
1144 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
1145
1146 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
1147 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
1148
11492007-10-03 Roland McGrath <roland@redhat.com>
1150
1151 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
1152 and dwfl_build_id_find_debuginfo.
Roland McGrath87d47802007-07-16 22:23:37 +00001153
1154 * libdw.map (ELFUTILS_0.130): New version set, inherits from
1155 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
1156
11572007-10-02 Roland McGrath <roland@redhat.com>
Roland McGrath43da9892007-04-16 23:13:37 +00001158
1159 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
1160 structure_type.
1161
Roland McGrathbf2ee482007-04-05 09:27:36 +000011622007-08-07 Roland McGrath <roland@redhat.com>
1163
Roland McGrath43da9892007-04-16 23:13:37 +00001164 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
1165 error code is DWARF_E_NOERROR (0).
1166
1167 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
1168 Fix typo in __libdw_visit_scopes argument.
1169
1170 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
1171 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
1172
11732007-07-03 Roland McGrath <roland@redhat.com>
Roland McGrathbf2ee482007-04-05 09:27:36 +00001174
1175 * libdw.h (__extern_inline): New macro.
1176 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
1177
Ulrich Drepperc07fbb32007-03-30 19:14:59 +000011782007-04-16 Roland McGrath <roland@redhat.com>
1179
1180 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
1181
11822007-04-05 Roland McGrath <roland@redhat.com>
1183
1184 * dwarf_getsrcdirs.c: New file.
1185 * Makefile.am (libdw_a_SOURCES): Add it.
Ulrich Drepper6258e742007-03-13 06:22:40 +00001186 * libdw.h: Declare dwarf_getsrcdirs.
1187 * libdw.map (ELFUTILS_0.127): Add it.
1188
1189 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
1190 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
1191 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
1192 Save DIRARRAY in the Dwarf_Files.
1193
1194 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
Ulrich Drepper903c1162007-02-15 19:40:37 +00001195 address to check for all-ones base address entry. Check directly.
1196 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
1197
11982007-03-25 Roland McGrath <roland@redhat.com>
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00001199
1200 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
1201 Return NULL when freeing RESULT on error.
1202 (global_read, scngrp_read): Check return value from check_section,
1203 break out of loop after it has freed RESULT.
1204 (valid_p): Handle null argument.
1205
Roland McGrath8190db62006-12-17 23:56:51 +000012062007-03-12 Roland McGrath <roland@redhat.com>
1207
1208 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
1209
12102007-03-04 Roland McGrath <roland@redhat.com>
Roland McGrathc373d852006-10-10 00:25:21 +00001211
1212 * libdw.map (ELFUTILS_0.127): New version set, inherits from
1213 ELFUTILS_0.126. Add dwfl_module_addrsym.
1214
12152007-02-10 Roland McGrath <roland@redhat.com>
1216
1217 * dwarf.h (DW_OP_fbreg): Comment fix.
1218
12192007-02-03 Roland McGrath <roland@redhat.com>
1220
1221 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
1222 * libdw.map (ELFUTILS_0.126): New version set, inherits from
Ulrich Drepper077c65f2006-07-12 19:54:51 +00001223 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
1224 exported in the past.
1225
12262006-12-17 Roland McGrath <roland@redhat.com>
1227
1228 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
1229 address when the CU is missing attributes due to buggy GCC.
1230
Ulrich Dreppere1812e12006-07-12 07:46:03 +000012312006-08-29 Roland McGrath <roland@redhat.com>
1232
1233 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
1234
1235 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
1236 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
1237
Ulrich Drepper3be74472006-05-27 18:15:40 +00001238 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
1239 result is aligned. Adjust NEWP->remaining here for this allocation.
1240 * libdwP.h: Update decl.
1241 (libdw_alloc): Update caller.
Ulrich Dreppere7a73172006-05-22 18:16:45 +00001242
12432006-07-12 Ulrich Drepper <drepper@redhat.com>
1244
1245 * dwarf_child.c: Adjust for internal_function_def removal.
1246 * dwarf_getabbrev.c: Likewise.
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +00001247 * dwarf_tag.c: Likewise.
1248 * libdw_form.c: Likewise.
1249 * memory-access.c: Likewise.
1250
12512006-06-28 Roland McGrath <roland@redhat.com>
Roland McGrath2dade662006-02-28 22:13:20 +00001252
1253 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
1254
1255 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
1256 dwfl_module_getsym.
1257
Roland McGrath08333122006-02-27 04:54:26 +000012582006-05-27 Ulrich Drepper <drepper@redhat.com>
1259
1260 * libdw.h: Add extern "C".
1261
Roland McGrath50ffcbf2005-12-23 01:51:43 +000012622006-05-22 Ulrich Drepper <drepper@redhat.com>
1263
1264 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
1265 aranges information.
Roland McGrathdec3a242005-12-12 08:35:55 +00001266
12672006-05-21 Ulrich Drepper <drepper@redhat.com>
1268
1269 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
1270 dwarf_haschildren.
Roland McGrathf64a4422005-12-09 23:40:30 +00001271
12722006-02-28 Roland McGrath <roland@redhat.com>
1273
1274 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
1275 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
1276 values from DWARF 3.0.
Roland McGrath994b4892005-12-05 22:46:21 +00001277
12782006-02-22 Roland McGrath <roland@redhat.com>
1279
1280 * libdw.map: Bump to 0.120; export dwfl_version.
Roland McGrathe47ab762005-11-17 03:16:00 +00001281
12822005-12-22 Roland McGrath <roland@redhat.com>
1283
1284 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
1285
12862005-12-12 Roland McGrath <roland@redhat.com>
1287
1288 * dwarf_ranges.c: Copy CU base address-finding code from
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001289 dwarf_getlocation.
1290
12912005-12-09 Roland McGrath <roland@redhat.com>
1292
1293 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
1294 Delay CU base lookup until it's needed.
1295 If CU base lookup fails with no error, flag invalid DWARF.
1296
12972005-11-25 Roland McGrath <roland@redhat.com>
1298
1299 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
1300
Roland McGrath6724c902005-10-28 07:07:19 +000013012005-11-15 Roland McGrath <roland@redhat.com>
1302
1303 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
1304
13052005-11-13 Roland McGrath <roland@redhat.com>
1306
1307 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
1308
13092005-10-27 Roland McGrath <roland@redhat.com>
1310
1311 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
1312 don't match end_sequence markers.
1313
1314 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
1315 before normal records at the same address.
1316 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
1317 marker.
1318
13192005-10-26 Roland McGrath <roland@redhat.com>
1320
1321 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
1322 * dwarf_func_file.c: Renamed to ...
1323 * dwarf_decl_file.c: ... here.
1324 * dwarf_func_col.c: Renamed to ...
1325 * dwarf_decl_column.c: ... here.
1326 * dwarf_func_line.c: Renamed to ...
1327 * dwarf_decl_line.c: ... here.
1328 (dwarf_func_line): Renamed to ...
1329 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
1330 (__libdw_func_intval): Renamed __libdw_attr_intval.
1331 * dwarf_func_name.c: File removed.
1332 * dwarf_func_lowpc.c: File removed.
1333 * dwarf_func_highpc.c: File removed.
1334 * dwarf_func_entrypc.c: File removed.
1335 * dwarf_func_die.c: File removed.
1336 * Makefile.am (libdw_a_SOURCES): Updated.
1337 * libdw.h: Update decls.
1338 (Dwarf_Func): Type removed.
1339 * libdwP.h: Update decls.
Roland McGrath07d4f2f2005-10-28 06:56:24 +00001340 (struct Dwarf_Func_s): Type removed.
1341 * libdw.map: Updated.
1342
1343 * libdwP.h (CUDIE): New macro.
1344 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
1345 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
1346 * dwarf_ranges.c (dwarf_ranges): Likewise.
1347
1348 * dwarf_getloclist.c: Renamed to ...
1349 * dwarf_getlocation.c: ... here.
1350 (getloclist): Renamed to getlocation.
1351 (dwarf_getloclist): Renamed to dwarf_getlocation.
1352 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
1353 * Makefile.am (libdw_a_SOURCES): Updated.
1354 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
1355 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
1356 (Dwarf_Loc): Renamed Dwarf_Op.
1357 * libdwP.h (struct loc_s): Update use.
1358 * libdw.map: Update map.
1359
1360 * dwarf_entry_breakpoints.c: Use the second line record within the
1361 function, regardless of its source location data.
1362
13632005-10-25 Roland McGrath <roland@redhat.com>
1364
1365 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
1366
1367 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
1368
13692005-10-14 Roland McGrath <roland@redhat.com>
1370
1371 * dwarf_diecu.c (dwarf_diecu): New file.
1372 * Makefile.am (libdw_a_SOURCES): Add it.
1373 * libdw.h: Declare dwarf_diecu.
1374 * libdw.map: Export it.
1375
1376 * libdw.map: Bump to 0.116; export dwarf_ranges.
1377
13782005-09-20 Roland McGrath <roland@redhat.com>
1379
1380 * dwarf_haspc.c: Use dwarf_ranges.
1381 * dwarf_entry_breakpoints.c: Likewise.
1382
1383 * dwarf_ranges.c: New file.
1384 * Makefile.am (libdw_a_SOURCES): Add it.
1385 * libdw.h: Declare dwarf_ranges.
1386 * libdwP.h: Add INTDECL.
1387
Ulrich Drepperfbe998a2005-08-29 16:27:10 +000013882005-09-14 Roland McGrath <roland@redhat.com>
1389
1390 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
1391 prologue_end marker scanning loop.
1392
13932005-09-11 Roland McGrath <roland@redhat.com>
Roland McGrath71e15a02005-08-27 10:33:26 +00001394
1395 * dwarf.h: Comment typo fix.
1396
13972005-09-07 Roland McGrath <roland@redhat.com>
1398
1399 * dwarf_entry_breakpoints.c: New file.
1400 * Makefile.am (libdw_a_SOURCES): Add it.
1401 * libdw.h: Declare dwarf_entry_breakpoints.
1402
1403 * dwarf_entrypc.c: New file.
1404 * Makefile.am (libdw_a_SOURCES): Add it.
1405 * libdw.h: Declare dwarf_entrypc.
1406 * libdwP.h: Add INTDECL.
1407
14082005-08-28 Ulrich Drepper <drepper@redhat.com>
1409
1410 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
1411 (%.os): Use COMPILE.os.
1412 (COMPILE.os): Filter out gconv options.
1413
14142005-08-27 Roland McGrath <roland@redhat.com>
1415
Roland McGrathd17fac72005-08-23 08:20:21 +00001416 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
1417 __libdw_visit_scopes.
1418
1419 * dwarf_getscopes_die.c: New file.
1420 * Makefile.am (libdw_a_SOURCES): Add it.
1421 * libdw.h: Declare dwarf_getscopes_die.
1422 * libdw.map: Bump to 0.115 and add it.
1423
1424 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
1425 containing a DIE and its parent pointer, instead of just Dwarf_Die.
1426 Take two functions for both preorder and postorder visitors.
1427 * libdwP.h: Update decl.
1428 (struct Dwarf_Die_Chain): New type.
1429 * dwarf_func_inline.c: Update uses.
1430
1431 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
1432 Add INTDEF.
Roland McGrathf5fda7d2005-08-18 22:01:57 +00001433 * libdwP.h: Add INTDECL.
1434 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
1435
14362005-08-23 Roland McGrath <roland@redhat.com>
1437
Roland McGrath1ecb6062005-08-15 09:53:04 +00001438 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
1439 DW_AT_specification the same as DW_AT_abstract_origin.
1440
14412005-08-20 Roland McGrath <roland@redhat.com>
1442
1443 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
1444 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
1445 and dwfl_report_offline.
1446
14472005-08-19 Roland McGrath <roland@redhat.com>
1448
1449 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001450 Add dwfl_module_relocate_address, dwfl_module_relocations,
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001451 dwfl_module_relocation_info.
Roland McGrath1c83bf12005-08-11 07:03:55 +00001452
14532005-08-18 Roland McGrath <roland@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +00001454
Roland McGrath4959bf82005-08-09 10:31:08 +00001455 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
1456 outermost scope in the results.
Roland McGrathb6312e12005-08-09 10:36:01 +00001457
14582005-08-15 Roland McGrath <roland@redhat.com>
Roland McGrath4959bf82005-08-09 10:31:08 +00001459
1460 * dwarf_func_inline.c: New file.
1461 * Makefile.am (libdw_a_SOURCES): Add it.
1462 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
Roland McGratha5a89682005-08-02 01:24:01 +00001463 * libdw.map: Add them.
1464
1465 * dwarf_func_die.c: New file.
1466 * Makefile.am (libdw_a_SOURCES): Add it.
1467 * libdw.h: Declare dwarf_func_die.
Ulrich Drepper18618fd2005-07-28 21:29:22 +00001468 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
1469
14702005-08-10 Ulrich Drepper <drepper@redhat.com>
1471
1472 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
Roland McGrath366784a2005-07-28 06:20:53 +00001473 of DW_LNS_set_epilog_begin.
1474
Roland McGrath18385902005-07-28 07:12:38 +000014752005-08-09 Roland McGrath <roland@redhat.com>
1476
1477 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
1478
1479 * dwarf_end.c: Add INTDEF.
1480 * dwarf_error.c (dwarf_errmsg): Likewise.
Roland McGrath366784a2005-07-28 06:20:53 +00001481 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
1482
14832005-08-01 Roland McGrath <roland@redhat.com>
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001484
1485 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
1486 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1487
14882005-07-28 Ulrich Drepper <drepper@redhat.com>
1489
1490 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
1491 (libdw_a_LIBADD): Add all files from libdwfl.a.
1492
14932005-07-27 Roland McGrath <roland@redhat.com>
1494
1495 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
1496 along with ../libebl/libebl.a and ../lib/libeu.a;
1497 depend on ../libelf/libelf.so.
1498 (libdw_so_LDADD): New variable.
1499 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
1500
1501 * libdw.map: Define an empty base version and move all symbols to
1502 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
1503
15042005-07-23 Ulrich Drepper <drepper@redhat.com>
1505
1506 * dwarf_error.c: Add internal alias for dwarf_errno.
1507 * libdwP.h: Declare __dwarf_errno_internal.
1508 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
1509
1510 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
1511 global_error.
1512
15132005-06-01 Roland McGrath <roland@redhat.com>
1514
1515 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
1516 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
1517
15182005-06-08 Roland McGrath <roland@redhat.com>
1519
1520 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
1521 (get_sleb128_step, get_sleb128): Likewise.
1522 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
1523 * dwarf_getloclist.c (getloclist): Likewise.
1524 * dwarf_formblock.c (dwarf_formblock): Likewise.
1525 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
1526 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
1527 * dwarf_formref.c (dwarf_formref): Likewise.
1528 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
1529 * dwarf_formudata.c (dwarf_formudata): Likewise.
1530 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
1531 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
1532 * dwarf_tag.c (dwarf_tag): Likewise.
1533 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
1534 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
1535 * libdw_form.c (__libdw_form_val_len): Likewise.
1536 * libdwP.h: Update decl.
1537
15382005-06-04 Roland McGrath <roland@redhat.com>
1539
1540 * memory-access.h (get_uleb128_rest_return): New macro.
1541 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
1542 (get_sleb128_rest_return): New macro.
1543 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
1544 * memory-access.c: New file.
1545 * Makefile.am (libdw_a_SOURCES): Add it.
1546 (DEFS): Add -DIS_LIBDW.
1547
15482005-05-31 Roland McGrath <roland@redhat.com>
1549
1550 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
1551 formref offset.
1552
15532005-05-30 Roland McGrath <roland@redhat.com>
1554
1555 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
1556 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
1557
1558 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
1559 BEGIN value. Instead, match base address entries separately for
1560 32/64 size cases.
1561
15622005-05-28 Roland McGrath <roland@redhat.com>
1563
1564 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
1565 past location expression contents.
1566
15672005-05-23 Roland McGrath <roland@redhat.com>
1568
1569 * dwarf_getsrclines.c: Comment typo fix.
1570
1571 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
1572 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
1573
15742005-05-22 Ulrich Drepper <drepper@redhat.com>
1575
1576 * libdwP.h: Only use INTDECL for alias prototypes.
1577
15782005-05-19 Roland McGrath <roland@redhat.com>
1579
1580 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
1581
1582 * dwarf_getscopevar.c: New file.
1583 * Makefile.am (libdw_a_SOURCES): Add it.
1584 * libdw.h: Declare dwarf_getscopevar.
1585
1586 * dwarf_getsrcfiles.c: Add INTDEF.
1587 * dwarf_haschildren.c: Likewise.
1588 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
1589
1590 * dwarf_getscopes.c: New file.
1591 * Makefile.am (libdw_a_SOURCES): Add it.
1592 * libdw.h: Declare dwarf_getscopes.
1593 * libdw.map: Add it.
1594
15952005-05-18 Roland McGrath <roland@redhat.com>
1596
1597 * libdwP.h (IDX_debug_ranges): New enum constant.
1598 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
1599 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
1600 * dwarf_error.c (errmsgs): Add it.
1601 * dwarf_haspc.c: New file.
1602 * libdw.h: Declare dwarf_haspc.
1603 * libdw.map: Add it.
1604 * libdwP.h: Add INTDECL.
1605
1606 * dwarf_attr_integrate.c: New file.
1607 * dwarf_hasattr_integrate.c: New file.
1608 * Makefile.am (libdw_a_SOURCES): Add them.
1609 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
1610 * libdw.map: Add them.
1611
1612 * dwarf_hasattr.c: Add INTDEF.
1613 * libdwP.h: Add INTDECL for it.
1614
1615 * dwarf_formref_die.c: New file.
1616 * Makefile.am (libdw_a_SOURCES): Add it.
1617 * libdw.h (dwarf_formref_die): Declare it.
1618 * libdwP.h (dwarf_formref_die): Add INTDECL.
1619 * libdw.map: Add it.
1620
1621 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
1622 of ...
1623 (dwarf_getloclist): ... here. Call them.
1624 (dwarf_addrloclists): New function.
1625 * libdw.h: Declare it.
1626 * libdw.map: Add it.
1627
1628 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
1629 DW_MACINFO_end_file. Recognize type 0 as terminator.
1630
16312005-05-05 Roland McGrath <roland@redhat.com>
1632
1633 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
1634
1635 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
1636 the line program does not produce all entries in ascending order.
1637
16382005-04-25 Ulrich Drepper <drepper@redhat.com>
1639
1640 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
1641 occurences (e.g., inlines) better.
1642
16432005-04-24 Ulrich Drepper <drepper@redhat.com>
1644
1645 * libdw.h (DWARF_END_ABBREV): Define.
1646 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
1647 end is reached.
1648 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
1649 of records reached.
1650 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
1651 as error of __libdw_getabbrev.
1652
16532005-04-04 Ulrich Drepper <drepper@redhat.com>
1654
1655 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
1656
1657 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
1658 results back to caller.
1659
16602005-04-04 Roland McGrath <roland@redhat.com>
1661
1662 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
1663
1664 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
1665 defn.
1666
16672005-04-04 Ulrich Drepper <drepper@redhat.com>
1668
1669 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
1670
1671 * dwarf_getsrc_file.c: New file.
1672 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
1673 * libdw.h: Declare dwarf_getsrc_file.
1674 * libdw.map: Add dwarf_getsrc_file.
1675
16762005-04-02 Ulrich Drepper <drepper@redhat.com>
1677
1678 * dwarf_func_entrypc.c: New file.
1679 * dwarf_func_col.c: New file.
1680 * dwarf_func_line.c: New file.
1681 * dwarf_func_file.c: New file.
1682 * libdw.h: Add prototypes for new functions.
1683 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
1684 dwarf_func_file.
1685 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
1686 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
1687 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
1688 Declare __libdw_func_intval and __dwarf_formsdata_internal.
1689 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
1690 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
1691
1692 * dwarf.h: Add some DWARF3 definitions.
1693
16942005-04-01 Ulrich Drepper <drepper@redhat.com>
1695
1696 * dwarf_getfuncs.c: New file.
1697 * dwarf_func_highpc.c: New file.
1698 * dwarf_func_lowpc.c: New file.
1699 * dwarf_func_name.c: New file.
1700 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
1701 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
1702 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
1703 and dwarf_func_name.
1704 * libdw.h: Add prototypes for new functions.
1705 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
1706 * dwarf_siblingof.c: Likewise.
1707 * dwarf_dieoffset.c: Likewise.
1708 * dwarf_highpc.c: Likewise.
1709 * dwarf_lowpc.c: Likewise.
1710 * libdwP.h: Add prototypes for internal functions.
1711 Define Dwarf_Func_s structure.
1712
17132005-03-29 Ulrich Drepper <drepper@redhat.com>
1714
1715 * libdw.h: Add padding in Dwarf_die.
1716
1717 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
1718 * dwarf_attr.c: Likewise.
1719 * dwarf_begin.c: Likewise.
1720 * dwarf_begin_elf.c: Likewise.
1721 * dwarf_bitoffset.c: Likewise.
1722 * dwarf_bitsize.c: Likewise.
1723 * dwarf_bytesize.c: Likewise.
1724 * dwarf_diename.c: Likewise.
1725 * dwarf_formaddr.c: Likewise.
1726 * dwarf_formblock.c: Likewise.
1727 * dwarf_formref.c: Likewise.
1728 * dwarf_formstring.c: Likewise.
1729 * dwarf_formudata.c: Likewise.
1730 * dwarf_getarange_addr.c: Likewise.
1731 * dwarf_getarangeinfo.c: Likewise.
1732 * dwarf_getaranges.c: Likewise.
1733 * dwarf_getloclist.c: Likewise.
1734 * dwarf_getmacros.c: Likewise.
1735 * dwarf_getsrc_die.c: Likewise.
1736 * dwarf_getsrcfiles.c: Likewise.
1737 * dwarf_getsrclines.c: Likewise.
1738 * dwarf_highpc.c: Likewise.
1739 * dwarf_lowpc.c: Likewise.
1740 * dwarf_nextcu.c: Likewise.
1741 * dwarf_offdie.c: Likewise.
1742 * dwarf_siblingof.c: Likewise.
1743 * dwarf_srclang.c: Likewise.
1744 * dwarf_tag.c: Likewise.
1745 * libdw_findcu.c: Likewise.
1746 * libdwP.h: Add prototypes for internal functions.
1747
1748 * dwarf_addrdie.c: New file.
1749 * dwarf_macro_opcode.c: New file.
1750 * dwarf_macro_param1.c: New file.
1751 * dwarf_macro_param2.c: New file.
1752 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
1753 * libdwP.h: Remove Dwarf_Macro definition.
1754 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
1755 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
1756 * libdw.map: Add entries for new functions.
1757
17582005-03-21 Ulrich Drepper <drepper@redhat.com>
1759
1760 * libdw.h: Handle broken gcc < 4.
1761
17622005-02-15 Ulrich Drepper <drepper@redhat.com>
1763
1764 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
1765
1766 * dwarf_begin_elf.c: Fix warnings.
1767 * dwarf_dieoffset.c: Likewise.
1768 * dwarf_end.c: Likewise.
1769 * dwarf_error.c: Likewise.
1770 * dwarf_getpubnames.c: Likewise.
1771
1772 * libdwP.h: Add new error values.
1773 * dwarf_error.c: Support new error values.
1774 * dwarf_getpubnames.c: Check parameter value.
1775
17762005-02-05 Ulrich Drepper <drepper@redhat.com>
1777
1778 * Makefile.am: Check for text relocations in constructed DSO.
1779
1780 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
1781
17822005-02-04 Ulrich Drepper <drepper@redhat.com>
1783
1784 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
1785 checks to not read over buffer boundaries for ill-formed DWARF data.
1786
17872004-09-25 Ulrich Drepper <drepper@redhat.com>
1788
1789 * dwarf_child.c: Make compile with gcc 4.0.
1790 * dwarf_error.c: Likewise.
1791 * dwarf_formblock.c: Likewise.
1792 * dwarf_getabbrev.c: Likewise.
1793 * dwarf_getattrs.c: Likewise.
1794 * dwarf_getsrclines.c: Likewise.
1795 * dwarf_tag.c: Likewise.
1796 * libdw_form.c: Likewise.
1797
17982004-01-20 Ulrich Drepper <drepper@redhat.com>
1799
1800 * Makefile.am: Support building with mudflap.
1801
1802 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
1803 * dwarf_getsrclines.c: Likewise.
1804 * dwarf_memory-access.h: Likewise.
1805
18062004-01-19 Ulrich Drepper <drepper@redhat.com>
1807
1808 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1809
1810 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1811 Third parameter of dwarf_getsrcfiles can be NULL.
1812
1813 * libdw.map: Add dwarf_getmacros.
1814 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1815 * dwarf_getmacros.c: New file.
1816
18172004-01-18 Ulrich Drepper <drepper@redhat.com>
1818
1819 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1820
1821 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1822
1823 * dwarf_getsrclines.c:
1824 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1825
1826 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1827
1828 * libdwP.h (_): Use elfutils domain.
1829
1830 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1831
1832 * dwarf_getsrclines.c: Fix typo in comment.
1833
18342004-01-17 Ulrich Drepper <drepper@redhat.com>
1835
1836 * Makefile.am: Support building with mudflap.
1837
18382004-01-16 Ulrich Drepper <drepper@redhat.com>
1839
1840 * memory-access.h: Add lots of const in case a pointer passed is const.
1841
1842 * dwarf_formflag.c: New file.
1843 * dwarf_getattrs.c: New file.
1844 * dwarf_error.c: Add new error value.
1845 * libdw.h: Add prototypes for new functions. Adjust prototype for
1846 dwarf_getpubnames.
1847 * libdw.map: Add new functions.
1848 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1849 to ptrdiff_t.
1850 * libdwP.h: Add new error value.
1851 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1852 dwarf_formflag.c.
1853
1854 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1855
18562004-01-12 Ulrich Drepper <drepper@redhat.com>
1857
1858 * dwarf_getarange_addr.c: New file
1859 * dwarf_getarangeinfo.c: New file.
1860 * dwarf_getaranges.c: New file.
1861 * dwarf_onerange.c: New file.
1862 * libdw.h: Declare new functions. Define Dwarf_Arange and
1863 Dwarf_Aranges.
1864 * libdw.map: Add new functions.
1865 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1866 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1867 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1868 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1869 * dwarf_error.c: Add new message.
1870
18712004-01-11 Ulrich Drepper <drepper@redhat.com>
1872
1873 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1874 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1875 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1876 * dwarf_error.c: Add another message.
1877 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1878 introduction.
1879 * dwarf_filesrc.c: Likewise.
1880 * dwarf_getsrcfiles.c: Likewise.
1881 * dwarf_getsrclines.c: Likewise.
1882 * dwarf_lineaddr.c: New file.
1883 * dwarf_linebeginstatement.c: New file.
1884 * dwarf_lineblock.c: New file.
1885 * dwarf_linecol.c: New file.
1886 * dwarf_lineendsequence.c: New file.
1887 * dwarf_lineepiloguebegin.c: New file.
1888 * dwarf_lineno.c: New file.
1889 * dwarf_lineprologueend.c: New file.
1890 * dwarf_onesrcline.c: New file.
1891 * dwarf_lineno.c: Change interface to store result in object pointed
1892 to by second parameter.
1893 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1894 prototype. Define Dwarf_Files and Dwarf_Lines.
1895 * libdw.map: Add new functions.
1896 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1897 * libdw_findcu.c: Don't initialize nlines field.
1898
1899 * dwarf_siblingof: Little optimization.
1900
1901 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1902 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1903 * libdwP.h (struct Dwarf): Add free_elf field.
1904
1905 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1906 dwarf_offabbrev.c.
1907 * dwarf_getstring.c: New file.
1908 * dwarf_offabbrev.c: New file.
1909 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1910 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1911 parameters. Don't allocate memory if not necessary and don't lookup
1912 previous results if no CU given.
1913 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1914 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1915 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1916 * libdwP.h: Change prototype for __libdw_getabbrev.
1917
1918 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1919 returning if this is wanted.
1920
19212004-01-09 Ulrich Drepper <drepper@redhat.com>
1922
1923 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1924 with offset_size value.
1925 * libdw.h: Adjust dwarf_nextcu prototype.
1926 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1927 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1928 member of new CU struct.
1929 * dwarf_formstring.c: Depend on offset_size not address_size for
1930 DW_FORM_strp handling.
1931 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1932
1933 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1934 failing lookup.
1935 (dwarf_tag): Correctly recognize failed lookup.
1936
1937 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1938 function noop_free.
1939 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1940 * dwarf_formblock.c: New file.
1941 * dwarf_getloclist.c: Rewrite to handle a single block.
1942 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1943 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1944 dwarf_getloclistent declaration.
1945 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1946 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1947 Add locs member to struct Dwarf_CU.
1948 * libdw_fundcu.c: Initialize locs member of new CU.
1949 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1950 Remove dwarf_getloclistent.c.
1951
19522004-01-07 Ulrich Drepper <drepper@redhat.com>
1953
1954 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1955 * libdwP.h: Likewise.
1956
1957 * dwarf_getloclist.c: New file.
1958 * dwarf_getloclistent.c: New file.
1959 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1960 Declare dwarf_getloclistent and dwarf_getloclist.
1961 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1962 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1963 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1964 dwarf_getloclist.c.
1965
1966 * dwarf_error.c: More error messages.
1967
19682004-01-06 Ulrich Drepper <drepper@redhat.com>
1969
1970 * dwarf_getsrclines.c: Remove debugging support.
1971
1972 * dwarf_getsrcfiles.c: New file.
1973 * dwarf_filesrc.c: New file.
1974 * libdw.h: Declare these functions. Define Dwarf_File.
1975 * libdwP.c: Adjust Dwarf_File_s definition.
1976 * libdw.map: Add these functions.
1977 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1978 dwarf_filesrc.c.
1979 * dwarf_getsrclines.c: Initialize cu->files.
1980
19812004-01-05 Ulrich Drepper <drepper@redhat.com>
1982
1983 * libdw.h: Add more nonnull function attributes.
1984
1985 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1986 * dwarf_end.c (cu_free): New function.
1987 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1988 * dwarf_error.c (errmsgs): Add new messages.
1989 * dwarf_getsrc_die.c: New file.
1990 * dwarf_getsrclines.c: New file.
1991 * dwarf_lineno.c: New file.
1992 * dwarf_linesrc.c: New file.
1993 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1994 instead of the *_inc-less variants.
Ulrich Drepper6fb34512010-05-28 20:28:04 -07001995 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001996 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1997 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1998 and dwarf_linesrc.
1999 * libdwP.h: Add more error codes.
2000 (struct Dwarf): Remove mem_tail.next member.
2001 (Dwarf_File): Define type.
2002 (struct Dwarf_Line_s): Define type.
2003 (struct Dwarf_CU): Add lines and nlines members.
2004 (libdw_alloc): Define local variable _tail and use it.
2005 Add some function attributes.
2006 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
2007 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
2008 * memory-access.h: Add unlikely for the endian conversion paths.
2009 * Makefile.am (AM_CFLAGS): Add -std parameter.
2010 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
2011 dwarf_lineno, and dwarf_linesrc.
2012
20132003-08-11 Ulrich Drepper <drepper@redhat.com>
2014
2015 * Moved to CVS archive.