blob: 76663eebf8f41a833b305c99e2610182ef8c2a23 [file] [log] [blame]
Roland McGrathaf800142009-07-22 13:55:50 -070012009-07-22 Roland McGrath <roland@redhat.com>
2
3 * dwarf_frame_cfa.c: Change calling convention.
4 * libdw.h: Update decl.
5
6 * dwarf_frame_register.c: Change calling/return-value convention for
7 value-only results and undefined/same_value.
8 * libdw.h: Update decl.
9
10 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
11 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
12 return that value instead.
13 (getlocation): Update caller.
14 * dwarf_frame_cfa.c: Likewise.
15 * libdwP.h: Update decl.
16
Roland McGrathe23e9e72009-07-21 18:14:52 -0700172009-07-21 Roland McGrath <roland@redhat.com>
18
19 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
20 Fix loop iteration after skipping a bogus or useless CU.
21
22 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
23 absence, not DWARF_E_NO_DEBUG_LINE.
24
Roland McGrath96349ff2009-07-20 11:51:41 -0700252009-07-20 Roland McGrath <roland@redhat.com>
26
27 * dwarf_getlocation.c (__libdw_intern_expression):
28 Handle DW_OP_stack_value.
29
Roland McGratha6abdfd2009-07-16 17:40:19 -0700302009-07-16 Roland McGrath <roland@redhat.com>
31
Roland McGrathe160cc92009-07-16 17:48:27 -070032 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
33 reject others when CU's version > 3.
34
35 * dwarf_formflag.c: Handle DW_FORM_flag_present.
36
Roland McGratha6abdfd2009-07-16 17:40:19 -070037 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
38 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
39 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
40 and DW_AT_const_expr.
41 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
42 and DW_FORM_ref_sig8.
43
Roland McGrath7dd94642009-07-15 11:14:23 -0700442009-07-15 Roland McGrath <roland@redhat.com>
45
46 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
47 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
48
Roland McGrath80893432009-07-13 12:08:55 -0700492009-07-13 Roland McGrath <roland@redhat.com>
50
51 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
52
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700532009-07-08 Roland McGrath <roland@redhat.com>
54
Roland McGrath3c84db32009-06-24 17:41:40 -070055 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
56 dwfl_module_eh_cfi.
57
58 * libdwP.h (struct Dwarf): Add member `cfi'.
59 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
60 * dwarf_getcfi.c: New file.
61 * dwarf_getcfi_elf.c: New file.
62 * dwarf_cfi_end.c: New file.
63 * dwarf_cfi_addrframe.c: New file.
64 * dwarf_frame_cfa.c: New file.
65 * dwarf_frame_register.c: New file.
66 * dwarf_frame_return_address_register.c: New file.
67 * Makefile.am (libdw_a_SOURCES): Add them.
68 * unwind.h: Declare those functions.
69 * libdw.map (ELFUTILS_0.142): Export them.
70
71 * dwarf_getlocation.c (__libdw_intern_expression): New function,
72 broken out of ...
73 (getlocation): ... here, call it.
74 * libdwP.h: Declare it.
75
76 * cie.c: New file.
77 * fde.c: New file.
78 * frame-cache.c: New file.
79 * cfi.c: New file.
80 * cfi.h: New file.
81 * encoded-value.h: New file.
82 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
83 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
84 * dwarf_error.c (errmsgs): Add element for it.
85
86 * dwarf_next_cfi.c: New file.
87 * Makefile.am (libdw_a_SOURCES): Add it.
88 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
89 Declare dwarf_next_cfi.
90 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
91 Add dwarf_next_cfi.
92
93 * memory-access.h [! ALLOW_UNALIGNED]
94 (read_2ubyte_unaligned): Renamed to ...
95 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
96 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
97 (read_2sbyte_unaligned): Likewise.
98 (read_4ubyte_unaligned): Likewise.
99 (read_4sbyte_unaligned): Likewise.
100 (read_8ubyte_unaligned): Likewise.
101 (read_8sbyte_unaligned): Likewise.
102
103 * libdwP.h (IDX_eh_frame): Remove it.
104 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
105
1062009-07-08 Roland McGrath <roland@redhat.com>
107
Roland McGrath6e1f4652009-07-08 14:48:34 -0700108 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
109
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700110 * dwarf_getlocation.c (check_constant_offset): New function.
111 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
112 handle DW_AT_data_member_location of data[48] as constant offset.
113
Roland McGrath05c4e042009-06-18 13:56:02 -07001142009-06-18 Roland McGrath <roland@redhat.com>
115
116 * libdwP.h (__libdw_read_address_inc): Constify.
117 (__libdw_read_offset_inc): Likewise.
118 * dwarf_getaranges.c: Likewise.
119 * dwarf_getlocation.c: Likewise.
120 * dwarf_getsrclines.c: Likewise.
121 * dwarf_nextcu.c: Likewise.
122
Ulrich Drepper99d23722009-06-14 20:19:45 -07001232009-05-05 Petr Machata <pmachata@redhat.com>
124
125 * libdwP.h (__libdw_formptr): Declare new function.
126 * dwarf_formudata.c: Implement it here.
127 * dwarf_getlocation.c (dwarf_getlocation_addr):
128 Call it instead of hand-rolled offset handling code.
129 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
130 * dwarf_ranges.c (dwarf_ranges): Likewise.
131
1322009-05-04 Petr Machata <pmachata@redhat.com>
133
134 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
135 * dwarf_ranges.c: Implement it here.
136 (dwarf_ranges): Call it.
137 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
138
1392009-04-23 Petr Machata <pmachata@redhat.com>
140
141 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
142 of read_*ubyte_unaligned.
143 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
144 * dwarf_formstring.c (dwarf_formstring): Likewise.
145 * dwarf_formudate.c (dwarf_formudata): Likewise.
146 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
147 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
148 * dwarf_getpubnames.c (get_offsets): Likewise.
149 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
150
1512009-04-23 Petr Machata <pmachata@redhat.com>
152
153 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
154 __libdw_read_addr, __libdw_read_off): Add four new internal
155 functions.
156
Roland McGrathe2eabd82009-05-07 18:54:52 -07001572009-05-07 Roland McGrath <roland@redhat.com>
158
159 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
160 return value and OFFSET argument, not CU-relative. Only fetch the
161 attribute data when called with OFFSET of 0.
162
Petr Machataf3df61f2009-05-07 21:02:33 +02001632009-05-07 Petr Machata <pmachata@redhat.com>
164
165 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
166 DW_AT_macro_info attribute of CU DIE.
167
Roland McGrath2fb90512009-04-15 14:47:13 -07001682009-04-15 Roland McGrath <roland@redhat.com>
169
170 * dwarf.h (DW_CIE_ID): Removed.
171 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
172
Roland McGrath6a4bdd92009-04-01 14:25:29 -07001732009-04-01 Roland McGrath <roland@redhat.com>
174
175 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
176
Roland McGrathc5acb302009-01-28 18:28:52 -08001772009-01-28 Roland McGrath <roland@redhat.com>
178
Roland McGrath03288f02009-01-28 22:00:54 -0800179 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
180 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
181
Roland McGrathc5acb302009-01-28 18:28:52 -0800182 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
183
Roland McGrathf46272a2009-01-26 18:36:16 -08001842009-01-26 Roland McGrath <roland@redhat.com>
185
186 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
187
Roland McGrathd31505f2009-01-25 19:37:33 -08001882009-01-25 Roland McGrath <roland@redhat.com>
189
190 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
191
Roland McGrath3bf7a092009-01-23 16:34:07 -08001922009-01-23 Roland McGrath <roland@redhat.com>
193
194 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
195 Put these rules under if MAINTAINER_MODE.
196
Roland McGrathafdd51e2009-01-22 02:26:24 -08001972009-01-22 Roland McGrath <roland@redhat.com>
198
199 * dwarf.h: Add DW_OP_GNU_encoded_addr.
200
Roland McGrath1ea4fdc2009-01-21 19:14:37 -08002012009-01-21 Roland McGrath <roland@redhat.com>
202
203 * Makefile.am (CLEANFILES): Renamed to ...
204 (MOSTLYCLEANFILES): ... here.
205 (CLEANFILES): New variable, add known-dwarf.h.
206
Roland McGrath24b03302009-01-17 14:34:13 -08002072009-01-17 Roland McGrath <roland@redhat.com>
208
Roland McGrath54456d82009-01-17 14:39:35 -0800209 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
210 Make it unconditional.
211 (BUILT_SOURCES): Updated.
Roland McGrath5513e642009-01-11 01:35:11 -0800212
213 * dwarf.h: Add description comments for DW_LANG_* values.
214
215 * Makefile.am [MAINTAINER_MODE]
216 ($(srcdir)/known-dwarf.h): New target.
217 (BUILT_SOURCES): Add it.
218
Roland McGrath24b03302009-01-17 14:34:13 -0800219 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
220
Ulrich Drepper7e678fa2009-01-10 18:02:05 -08002212009-01-10 Ulrich Drepper <drepper@redhat.com>
222
223 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
224
Roland McGrathe06762c2009-01-08 13:39:08 -08002252009-01-08 Roland McGrath <roland@redhat.com>
226
227 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
228
Roland McGrath7e827f22009-01-06 02:09:50 -08002292008-01-06 Roland McGrath <roland@redhat.com>
Roland McGrath1f6d2012008-12-31 00:21:04 -0800230
231 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
232 Reorder members.
233 * dwarf_haschildren.c: Return -1 for error case, not 0.
Roland McGrathbca43152009-01-05 23:59:32 -0800234
235 * Makefile.am (libdw.so): Link in $(zip_LIBS).
236
Ulrich Drepperac194d02009-01-06 00:30:01 -08002372009-01-06 Ulrich Drepper <drepper@redhat.com>
238
Roland McGrathc462c632009-01-06 01:04:31 -0800239 * dwarf.h: Add definition for unwind and call frame information.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800240
241 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
242 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
243
Roland McGrathb4d6f0f2008-08-25 22:55:17 +00002442008-08-15 Roland McGrath <roland@redhat.com>
245
246 * libdw.map (ELFUTILS_0.136): New version set, inherits from
247 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
248
Ulrich Drepper8d358d92008-01-22 06:34:31 +00002492008-01-21 Ulrich Drepper <drepper@redhat.com>
250
251 * dwarf_child.c: Minor optimizations.
252 * dwarf_getattrs.c: Likewise.
253 * dwarf_getpubnames.c: Likewise.
254 * dwarf_siblingof.c: Likewise.
255 * dwarf_tag.c: Likewise.
256
Ulrich Drepperb27ce002008-01-18 20:08:54 +00002572008-01-18 Ulrich Drepper <drepper@redhat.com>
258
259 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
260 of DWARF_VERSION comparison, just fail if the file's version is newer.
261
Ulrich Drepper35f08c42008-01-18 19:59:08 +00002622008-01-17 Nick Clifton <nickc@redhat.com>
263
264 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
265 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
266 (DWARF3_LENGTH_64_BIT): New define.
267 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
268 * dwarf_getpubnames: Include dwarf.h.
269 (get_offsets): Use the new definitions.
270 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
271 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
272 (dwarf_nextcu): Use the new definitions.
273
274 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +0000275 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000276 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
277 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
278
279 * dwarf_getpubnames (get_offsets): Replace assertion with test and
280 error return.
281
282 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
283
284 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
285 Set the address in the return structure to the address of the next
286 non-sibling die, if there is no sibling and the return pointer is
287 not the same as the die pointer.
288 * libdw.h: Expand the description of the dwarf_siblingof prototype.
289
290 * dwarf_child.c: Fix typo in comment.
291
292 * libdwP.h (DWARF_VERSION): Change to 3.
293
294 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
295 not have a initialised valp pointer.
296
297 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
298 the end of the attributes is reached. When the callback fails,
299 return the address of the failing attribute, not the address of
300 its successor.
301 * libdw.h: Expand the description of the dwarf_getattrs prototype.
302
303 * dwarf_child.c (__libdw_find_attr): Use the new definition.
304 (dwarf_child): Likewise.
305 * dwarf_tag.c (__libdw_findabbrev): Likewise.
306 (dwarf_tag): Likewise.
307
Ulrich Dreppere219f1c2008-01-09 05:49:49 +00003082008-01-08 Roland McGrath <roland@redhat.com>
309
310 * Makefile.am (euinclude): Variable removed.
311 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
312 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
313
Roland McGrathe4c22ea2007-10-23 13:07:39 +00003142007-10-17 Roland McGrath <roland@redhat.com>
315
316 * libdw.h (__deprecated_attribute__): New macro.
317 (dwarf_formref): Mark it deprecated.
318 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
319 (dwarf_formref): ... here. Call it. Remove INTDEF.
320 * libdwP.h: Remove INTDECL.
321 Declare __libdw_formref.
322 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
323 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
324
325 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
326 needs to check CU->version.
327
328 * libdwP.h (struct Dwarf_CU): New member `version'.
329 * libdw_findcu.c (__libdw_findcu): Initialize it.
330
331 * dwarf_child.c: Return 1 for null entry as first child.
332
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00003332007-10-05 Roland McGrath <roland@redhat.com>
334
335 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
336
337 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
338 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
339
Roland McGrath59ea7f32007-10-04 08:50:09 +00003402007-10-03 Roland McGrath <roland@redhat.com>
341
342 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
343 and dwfl_build_id_find_debuginfo.
344
345 * libdw.map (ELFUTILS_0.130): New version set, inherits from
346 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
347
Roland McGrath057ec6b2007-10-02 20:55:05 +00003482007-10-02 Roland McGrath <roland@redhat.com>
349
350 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
351 structure_type.
352
Roland McGrathd1a48172007-08-07 19:51:01 +00003532007-08-07 Roland McGrath <roland@redhat.com>
354
355 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
356 error code is DWARF_E_NOERROR (0).
357
358 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
359 Fix typo in __libdw_visit_scopes argument.
360
361 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
362 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
363
Roland McGrath87d47802007-07-16 22:23:37 +00003642007-07-03 Roland McGrath <roland@redhat.com>
365
366 * libdw.h (__extern_inline): New macro.
367 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
368
Roland McGrath43da9892007-04-16 23:13:37 +00003692007-04-16 Roland McGrath <roland@redhat.com>
370
371 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
372
Roland McGrathbf2ee482007-04-05 09:27:36 +00003732007-04-05 Roland McGrath <roland@redhat.com>
374
Roland McGrath43da9892007-04-16 23:13:37 +0000375 * dwarf_getsrcdirs.c: New file.
376 * Makefile.am (libdw_a_SOURCES): Add it.
377 * libdw.h: Declare dwarf_getsrcdirs.
378 * libdw.map (ELFUTILS_0.127): Add it.
379
380 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
381 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
382 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
383 Save DIRARRAY in the Dwarf_Files.
384
Roland McGrathbf2ee482007-04-05 09:27:36 +0000385 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
386 address to check for all-ones base address entry. Check directly.
387 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
388
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00003892007-03-25 Roland McGrath <roland@redhat.com>
390
391 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
392 Return NULL when freeing RESULT on error.
393 (global_read, scngrp_read): Check return value from check_section,
394 break out of loop after it has freed RESULT.
395 (valid_p): Handle null argument.
396
Ulrich Drepper6258e742007-03-13 06:22:40 +00003972007-03-12 Roland McGrath <roland@redhat.com>
398
399 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
400
4012007-03-04 Roland McGrath <roland@redhat.com>
402
403 * libdw.map (ELFUTILS_0.127): New version set, inherits from
404 ELFUTILS_0.126. Add dwfl_module_addrsym.
405
Ulrich Drepper903c1162007-02-15 19:40:37 +00004062007-02-10 Roland McGrath <roland@redhat.com>
407
408 * dwarf.h (DW_OP_fbreg): Comment fix.
409
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00004102007-02-03 Roland McGrath <roland@redhat.com>
411
412 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
413 * libdw.map (ELFUTILS_0.126): New version set, inherits from
414 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
415 exported in the past.
416
Roland McGrath8190db62006-12-17 23:56:51 +00004172006-12-17 Roland McGrath <roland@redhat.com>
418
419 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
420 address when the CU is missing attributes due to buggy GCC.
421
Roland McGrathc373d852006-10-10 00:25:21 +00004222006-08-29 Roland McGrath <roland@redhat.com>
423
424 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
425
426 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
427 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
428
429 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
430 result is aligned. Adjust NEWP->remaining here for this allocation.
431 * libdwP.h: Update decl.
432 (libdw_alloc): Update caller.
433
Ulrich Drepper077c65f2006-07-12 19:54:51 +00004342006-07-12 Ulrich Drepper <drepper@redhat.com>
435
436 * dwarf_child.c: Adjust for internal_function_def removal.
437 * dwarf_getabbrev.c: Likewise.
438 * dwarf_tag.c: Likewise.
439 * libdw_form.c: Likewise.
440 * memory-access.c: Likewise.
441
Ulrich Dreppere1812e12006-07-12 07:46:03 +00004422006-06-28 Roland McGrath <roland@redhat.com>
443
444 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
445
446 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
447 dwfl_module_getsym.
448
Ulrich Drepper3be74472006-05-27 18:15:40 +00004492006-05-27 Ulrich Drepper <drepper@redhat.com>
450
451 * libdw.h: Add extern "C".
452
Ulrich Dreppere7a73172006-05-22 18:16:45 +00004532006-05-22 Ulrich Drepper <drepper@redhat.com>
454
455 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
456 aranges information.
457
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +00004582006-05-21 Ulrich Drepper <drepper@redhat.com>
459
460 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
461 dwarf_haschildren.
462
Roland McGrath2dade662006-02-28 22:13:20 +00004632006-02-28 Roland McGrath <roland@redhat.com>
464
465 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
466 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
467 values from DWARF 3.0.
468
Roland McGrath08333122006-02-27 04:54:26 +00004692006-02-22 Roland McGrath <roland@redhat.com>
470
471 * libdw.map: Bump to 0.120; export dwfl_version.
472
Roland McGrath50ffcbf2005-12-23 01:51:43 +00004732005-12-22 Roland McGrath <roland@redhat.com>
474
475 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
476
Roland McGrathdec3a242005-12-12 08:35:55 +00004772005-12-12 Roland McGrath <roland@redhat.com>
478
479 * dwarf_ranges.c: Copy CU base address-finding code from
480 dwarf_getlocation.
481
Roland McGrathf64a4422005-12-09 23:40:30 +00004822005-12-09 Roland McGrath <roland@redhat.com>
483
484 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
485 Delay CU base lookup until it's needed.
486 If CU base lookup fails with no error, flag invalid DWARF.
487
Roland McGrath994b4892005-12-05 22:46:21 +00004882005-11-25 Roland McGrath <roland@redhat.com>
489
490 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
491
Roland McGrathe47ab762005-11-17 03:16:00 +00004922005-11-15 Roland McGrath <roland@redhat.com>
493
494 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
495
4962005-11-13 Roland McGrath <roland@redhat.com>
497
498 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
499
Roland McGrath07d4f2f2005-10-28 06:56:24 +00005002005-10-27 Roland McGrath <roland@redhat.com>
501
502 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
503 don't match end_sequence markers.
504
505 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
506 before normal records at the same address.
507 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
508 marker.
509
5102005-10-26 Roland McGrath <roland@redhat.com>
511
Roland McGrath6724c902005-10-28 07:07:19 +0000512 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
513 * dwarf_func_file.c: Renamed to ...
514 * dwarf_decl_file.c: ... here.
515 * dwarf_func_col.c: Renamed to ...
516 * dwarf_decl_column.c: ... here.
517 * dwarf_func_line.c: Renamed to ...
518 * dwarf_decl_line.c: ... here.
519 (dwarf_func_line): Renamed to ...
520 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
521 (__libdw_func_intval): Renamed __libdw_attr_intval.
522 * dwarf_func_name.c: File removed.
523 * dwarf_func_lowpc.c: File removed.
524 * dwarf_func_highpc.c: File removed.
525 * dwarf_func_entrypc.c: File removed.
526 * dwarf_func_die.c: File removed.
527 * Makefile.am (libdw_a_SOURCES): Updated.
528 * libdw.h: Update decls.
529 (Dwarf_Func): Type removed.
530 * libdwP.h: Update decls.
531 (struct Dwarf_Func_s): Type removed.
532 * libdw.map: Updated.
533
534 * libdwP.h (CUDIE): New macro.
535 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
536 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
537 * dwarf_ranges.c (dwarf_ranges): Likewise.
538
539 * dwarf_getloclist.c: Renamed to ...
540 * dwarf_getlocation.c: ... here.
541 (getloclist): Renamed to getlocation.
542 (dwarf_getloclist): Renamed to dwarf_getlocation.
543 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
544 * Makefile.am (libdw_a_SOURCES): Updated.
545 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
546 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
547 (Dwarf_Loc): Renamed Dwarf_Op.
548 * libdwP.h (struct loc_s): Update use.
549 * libdw.map: Update map.
550
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000551 * dwarf_entry_breakpoints.c: Use the second line record within the
552 function, regardless of its source location data.
553
5542005-10-25 Roland McGrath <roland@redhat.com>
555
556 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
557
558 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
559
5602005-10-14 Roland McGrath <roland@redhat.com>
561
562 * dwarf_diecu.c (dwarf_diecu): New file.
563 * Makefile.am (libdw_a_SOURCES): Add it.
564 * libdw.h: Declare dwarf_diecu.
565 * libdw.map: Export it.
566
567 * libdw.map: Bump to 0.116; export dwarf_ranges.
568
5692005-09-20 Roland McGrath <roland@redhat.com>
570
571 * dwarf_haspc.c: Use dwarf_ranges.
572 * dwarf_entry_breakpoints.c: Likewise.
573
574 * dwarf_ranges.c: New file.
575 * Makefile.am (libdw_a_SOURCES): Add it.
576 * libdw.h: Declare dwarf_ranges.
577 * libdwP.h: Add INTDECL.
578
5792005-09-14 Roland McGrath <roland@redhat.com>
580
581 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
582 prologue_end marker scanning loop.
583
5842005-09-11 Roland McGrath <roland@redhat.com>
585
586 * dwarf.h: Comment typo fix.
587
5882005-09-07 Roland McGrath <roland@redhat.com>
589
590 * dwarf_entry_breakpoints.c: New file.
591 * Makefile.am (libdw_a_SOURCES): Add it.
592 * libdw.h: Declare dwarf_entry_breakpoints.
593
594 * dwarf_entrypc.c: New file.
595 * Makefile.am (libdw_a_SOURCES): Add it.
596 * libdw.h: Declare dwarf_entrypc.
597 * libdwP.h: Add INTDECL.
598
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00005992005-08-28 Ulrich Drepper <drepper@redhat.com>
600
601 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
602 (%.os): Use COMPILE.os.
603 (COMPILE.os): Filter out gconv options.
604
Roland McGrath71e15a02005-08-27 10:33:26 +00006052005-08-27 Roland McGrath <roland@redhat.com>
606
607 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
608 __libdw_visit_scopes.
609
610 * dwarf_getscopes_die.c: New file.
611 * Makefile.am (libdw_a_SOURCES): Add it.
612 * libdw.h: Declare dwarf_getscopes_die.
613 * libdw.map: Bump to 0.115 and add it.
614
615 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
616 containing a DIE and its parent pointer, instead of just Dwarf_Die.
617 Take two functions for both preorder and postorder visitors.
618 * libdwP.h: Update decl.
619 (struct Dwarf_Die_Chain): New type.
620 * dwarf_func_inline.c: Update uses.
621
622 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
623 Add INTDEF.
624 * libdwP.h: Add INTDECL.
625 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
626
Roland McGrathd17fac72005-08-23 08:20:21 +00006272005-08-23 Roland McGrath <roland@redhat.com>
628
629 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
630 DW_AT_specification the same as DW_AT_abstract_origin.
631
6322005-08-20 Roland McGrath <roland@redhat.com>
633
634 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
635 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
636 and dwfl_report_offline.
637
6382005-08-19 Roland McGrath <roland@redhat.com>
639
640 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
641 Add dwfl_module_relocate_address, dwfl_module_relocations,
642 dwfl_module_relocation_info.
643
Roland McGrathf5fda7d2005-08-18 22:01:57 +00006442005-08-18 Roland McGrath <roland@redhat.com>
645
646 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
647 outermost scope in the results.
648
Roland McGrath1ecb6062005-08-15 09:53:04 +00006492005-08-15 Roland McGrath <roland@redhat.com>
650
651 * dwarf_func_inline.c: New file.
652 * Makefile.am (libdw_a_SOURCES): Add it.
653 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
654 * libdw.map: Add them.
655
656 * dwarf_func_die.c: New file.
657 * Makefile.am (libdw_a_SOURCES): Add it.
658 * libdw.h: Declare dwarf_func_die.
659 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
660
Roland McGrath1c83bf12005-08-11 07:03:55 +00006612005-08-10 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000662
Roland McGrath1c83bf12005-08-11 07:03:55 +0000663 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
664 of DW_LNS_set_epilog_begin.
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000665
Roland McGrath4959bf82005-08-09 10:31:08 +00006662005-08-09 Roland McGrath <roland@redhat.com>
667
Roland McGrathb6312e12005-08-09 10:36:01 +0000668 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
669
Roland McGrath4959bf82005-08-09 10:31:08 +0000670 * dwarf_end.c: Add INTDEF.
671 * dwarf_error.c (dwarf_errmsg): Likewise.
672 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
673
Roland McGratha5a89682005-08-02 01:24:01 +00006742005-08-01 Roland McGrath <roland@redhat.com>
675
676 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
677 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
678
Ulrich Drepper18618fd2005-07-28 21:29:22 +00006792005-07-28 Ulrich Drepper <drepper@redhat.com>
680
681 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
682 (libdw_a_LIBADD): Add all files from libdwfl.a.
683
Roland McGrath366784a2005-07-28 06:20:53 +00006842005-07-27 Roland McGrath <roland@redhat.com>
685
Roland McGrath18385902005-07-28 07:12:38 +0000686 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
687 along with ../libebl/libebl.a and ../lib/libeu.a;
688 depend on ../libelf/libelf.so.
689 (libdw_so_LDADD): New variable.
690 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
691
Roland McGrath366784a2005-07-28 06:20:53 +0000692 * libdw.map: Define an empty base version and move all symbols to
693 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
694
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00006952005-07-23 Ulrich Drepper <drepper@redhat.com>
696
697 * dwarf_error.c: Add internal alias for dwarf_errno.
698 * libdwP.h: Declare __dwarf_errno_internal.
699 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
700
701 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
702 global_error.
703
7042005-06-01 Roland McGrath <roland@redhat.com>
705
706 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
707 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
708
7092005-06-08 Roland McGrath <roland@redhat.com>
710
711 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
712 (get_sleb128_step, get_sleb128): Likewise.
713 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
714 * dwarf_getloclist.c (getloclist): Likewise.
715 * dwarf_formblock.c (dwarf_formblock): Likewise.
716 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
717 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
718 * dwarf_formref.c (dwarf_formref): Likewise.
719 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
720 * dwarf_formudata.c (dwarf_formudata): Likewise.
721 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
722 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
723 * dwarf_tag.c (dwarf_tag): Likewise.
724 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
725 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
726 * libdw_form.c (__libdw_form_val_len): Likewise.
727 * libdwP.h: Update decl.
728
7292005-06-04 Roland McGrath <roland@redhat.com>
730
731 * memory-access.h (get_uleb128_rest_return): New macro.
732 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
733 (get_sleb128_rest_return): New macro.
734 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
735 * memory-access.c: New file.
736 * Makefile.am (libdw_a_SOURCES): Add it.
737 (DEFS): Add -DIS_LIBDW.
738
7392005-05-31 Roland McGrath <roland@redhat.com>
740
741 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
742 formref offset.
743
7442005-05-30 Roland McGrath <roland@redhat.com>
745
746 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
747 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
748
749 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
750 BEGIN value. Instead, match base address entries separately for
751 32/64 size cases.
752
7532005-05-28 Roland McGrath <roland@redhat.com>
754
755 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
756 past location expression contents.
757
7582005-05-23 Roland McGrath <roland@redhat.com>
759
760 * dwarf_getsrclines.c: Comment typo fix.
761
762 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
763 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
764
7652005-05-22 Ulrich Drepper <drepper@redhat.com>
766
767 * libdwP.h: Only use INTDECL for alias prototypes.
768
7692005-05-19 Roland McGrath <roland@redhat.com>
770
771 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
772
773 * dwarf_getscopevar.c: New file.
774 * Makefile.am (libdw_a_SOURCES): Add it.
775 * libdw.h: Declare dwarf_getscopevar.
776
777 * dwarf_getsrcfiles.c: Add INTDEF.
778 * dwarf_haschildren.c: Likewise.
779 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
780
781 * dwarf_getscopes.c: New file.
782 * Makefile.am (libdw_a_SOURCES): Add it.
783 * libdw.h: Declare dwarf_getscopes.
784 * libdw.map: Add it.
785
7862005-05-18 Roland McGrath <roland@redhat.com>
787
788 * libdwP.h (IDX_debug_ranges): New enum constant.
789 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
790 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
791 * dwarf_error.c (errmsgs): Add it.
792 * dwarf_haspc.c: New file.
793 * libdw.h: Declare dwarf_haspc.
794 * libdw.map: Add it.
795 * libdwP.h: Add INTDECL.
796
797 * dwarf_attr_integrate.c: New file.
798 * dwarf_hasattr_integrate.c: New file.
799 * Makefile.am (libdw_a_SOURCES): Add them.
800 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
801 * libdw.map: Add them.
802
803 * dwarf_hasattr.c: Add INTDEF.
804 * libdwP.h: Add INTDECL for it.
805
806 * dwarf_formref_die.c: New file.
807 * Makefile.am (libdw_a_SOURCES): Add it.
808 * libdw.h (dwarf_formref_die): Declare it.
809 * libdwP.h (dwarf_formref_die): Add INTDECL.
810 * libdw.map: Add it.
811
812 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
813 of ...
814 (dwarf_getloclist): ... here. Call them.
815 (dwarf_addrloclists): New function.
816 * libdw.h: Declare it.
817 * libdw.map: Add it.
818
819 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
820 DW_MACINFO_end_file. Recognize type 0 as terminator.
821
8222005-05-05 Roland McGrath <roland@redhat.com>
823
824 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
825
826 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
827 the line program does not produce all entries in ascending order.
828
8292005-04-25 Ulrich Drepper <drepper@redhat.com>
830
831 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
832 occurences (e.g., inlines) better.
833
8342005-04-24 Ulrich Drepper <drepper@redhat.com>
835
836 * libdw.h (DWARF_END_ABBREV): Define.
837 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
838 end is reached.
839 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
840 of records reached.
841 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
842 as error of __libdw_getabbrev.
843
8442005-04-04 Ulrich Drepper <drepper@redhat.com>
845
846 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
847
848 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
849 results back to caller.
850
8512005-04-04 Roland McGrath <roland@redhat.com>
852
853 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
854
855 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
856 defn.
857
8582005-04-04 Ulrich Drepper <drepper@redhat.com>
859
860 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
861
862 * dwarf_getsrc_file.c: New file.
863 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
864 * libdw.h: Declare dwarf_getsrc_file.
865 * libdw.map: Add dwarf_getsrc_file.
866
8672005-04-02 Ulrich Drepper <drepper@redhat.com>
868
869 * dwarf_func_entrypc.c: New file.
870 * dwarf_func_col.c: New file.
871 * dwarf_func_line.c: New file.
872 * dwarf_func_file.c: New file.
873 * libdw.h: Add prototypes for new functions.
874 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
875 dwarf_func_file.
876 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
877 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
878 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
879 Declare __libdw_func_intval and __dwarf_formsdata_internal.
880 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
881 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
882
883 * dwarf.h: Add some DWARF3 definitions.
884
8852005-04-01 Ulrich Drepper <drepper@redhat.com>
886
887 * dwarf_getfuncs.c: New file.
888 * dwarf_func_highpc.c: New file.
889 * dwarf_func_lowpc.c: New file.
890 * dwarf_func_name.c: New file.
891 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
892 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
893 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
894 and dwarf_func_name.
895 * libdw.h: Add prototypes for new functions.
896 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
897 * dwarf_siblingof.c: Likewise.
898 * dwarf_dieoffset.c: Likewise.
899 * dwarf_highpc.c: Likewise.
900 * dwarf_lowpc.c: Likewise.
901 * libdwP.h: Add prototypes for internal functions.
902 Define Dwarf_Func_s structure.
903
9042005-03-29 Ulrich Drepper <drepper@redhat.com>
905
906 * libdw.h: Add padding in Dwarf_die.
907
908 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
909 * dwarf_attr.c: Likewise.
910 * dwarf_begin.c: Likewise.
911 * dwarf_begin_elf.c: Likewise.
912 * dwarf_bitoffset.c: Likewise.
913 * dwarf_bitsize.c: Likewise.
914 * dwarf_bytesize.c: Likewise.
915 * dwarf_diename.c: Likewise.
916 * dwarf_formaddr.c: Likewise.
917 * dwarf_formblock.c: Likewise.
918 * dwarf_formref.c: Likewise.
919 * dwarf_formstring.c: Likewise.
920 * dwarf_formudata.c: Likewise.
921 * dwarf_getarange_addr.c: Likewise.
922 * dwarf_getarangeinfo.c: Likewise.
923 * dwarf_getaranges.c: Likewise.
924 * dwarf_getloclist.c: Likewise.
925 * dwarf_getmacros.c: Likewise.
926 * dwarf_getsrc_die.c: Likewise.
927 * dwarf_getsrcfiles.c: Likewise.
928 * dwarf_getsrclines.c: Likewise.
929 * dwarf_highpc.c: Likewise.
930 * dwarf_lowpc.c: Likewise.
931 * dwarf_nextcu.c: Likewise.
932 * dwarf_offdie.c: Likewise.
933 * dwarf_siblingof.c: Likewise.
934 * dwarf_srclang.c: Likewise.
935 * dwarf_tag.c: Likewise.
936 * libdw_findcu.c: Likewise.
937 * libdwP.h: Add prototypes for internal functions.
938
939 * dwarf_addrdie.c: New file.
940 * dwarf_macro_opcode.c: New file.
941 * dwarf_macro_param1.c: New file.
942 * dwarf_macro_param2.c: New file.
943 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
944 * libdwP.h: Remove Dwarf_Macro definition.
945 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
946 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
947 * libdw.map: Add entries for new functions.
948
9492005-03-21 Ulrich Drepper <drepper@redhat.com>
950
951 * libdw.h: Handle broken gcc < 4.
952
9532005-02-15 Ulrich Drepper <drepper@redhat.com>
954
955 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
956
957 * dwarf_begin_elf.c: Fix warnings.
958 * dwarf_dieoffset.c: Likewise.
959 * dwarf_end.c: Likewise.
960 * dwarf_error.c: Likewise.
961 * dwarf_getpubnames.c: Likewise.
962
963 * libdwP.h: Add new error values.
964 * dwarf_error.c: Support new error values.
965 * dwarf_getpubnames.c: Check parameter value.
966
9672005-02-05 Ulrich Drepper <drepper@redhat.com>
968
969 * Makefile.am: Check for text relocations in constructed DSO.
970
971 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
972
9732005-02-04 Ulrich Drepper <drepper@redhat.com>
974
975 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
976 checks to not read over buffer boundaries for ill-formed DWARF data.
977
9782004-09-25 Ulrich Drepper <drepper@redhat.com>
979
980 * dwarf_child.c: Make compile with gcc 4.0.
981 * dwarf_error.c: Likewise.
982 * dwarf_formblock.c: Likewise.
983 * dwarf_getabbrev.c: Likewise.
984 * dwarf_getattrs.c: Likewise.
985 * dwarf_getsrclines.c: Likewise.
986 * dwarf_tag.c: Likewise.
987 * libdw_form.c: Likewise.
988
9892004-01-20 Ulrich Drepper <drepper@redhat.com>
990
991 * Makefile.am: Support building with mudflap.
992
993 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
994 * dwarf_getsrclines.c: Likewise.
995 * dwarf_memory-access.h: Likewise.
996
9972004-01-19 Ulrich Drepper <drepper@redhat.com>
998
999 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1000
1001 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1002 Third parameter of dwarf_getsrcfiles can be NULL.
1003
1004 * libdw.map: Add dwarf_getmacros.
1005 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1006 * dwarf_getmacros.c: New file.
1007
10082004-01-18 Ulrich Drepper <drepper@redhat.com>
1009
1010 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1011
1012 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1013
1014 * dwarf_getsrclines.c:
1015 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1016
1017 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1018
1019 * libdwP.h (_): Use elfutils domain.
1020
1021 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1022
1023 * dwarf_getsrclines.c: Fix typo in comment.
1024
10252004-01-17 Ulrich Drepper <drepper@redhat.com>
1026
1027 * Makefile.am: Support building with mudflap.
1028
10292004-01-16 Ulrich Drepper <drepper@redhat.com>
1030
1031 * memory-access.h: Add lots of const in case a pointer passed is const.
1032
1033 * dwarf_formflag.c: New file.
1034 * dwarf_getattrs.c: New file.
1035 * dwarf_error.c: Add new error value.
1036 * libdw.h: Add prototypes for new functions. Adjust prototype for
1037 dwarf_getpubnames.
1038 * libdw.map: Add new functions.
1039 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1040 to ptrdiff_t.
1041 * libdwP.h: Add new error value.
1042 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1043 dwarf_formflag.c.
1044
1045 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1046
10472004-01-12 Ulrich Drepper <drepper@redhat.com>
1048
1049 * dwarf_getarange_addr.c: New file
1050 * dwarf_getarangeinfo.c: New file.
1051 * dwarf_getaranges.c: New file.
1052 * dwarf_onerange.c: New file.
1053 * libdw.h: Declare new functions. Define Dwarf_Arange and
1054 Dwarf_Aranges.
1055 * libdw.map: Add new functions.
1056 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1057 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1058 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1059 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1060 * dwarf_error.c: Add new message.
1061
10622004-01-11 Ulrich Drepper <drepper@redhat.com>
1063
1064 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1065 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1066 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1067 * dwarf_error.c: Add another message.
1068 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1069 introduction.
1070 * dwarf_filesrc.c: Likewise.
1071 * dwarf_getsrcfiles.c: Likewise.
1072 * dwarf_getsrclines.c: Likewise.
1073 * dwarf_lineaddr.c: New file.
1074 * dwarf_linebeginstatement.c: New file.
1075 * dwarf_lineblock.c: New file.
1076 * dwarf_linecol.c: New file.
1077 * dwarf_lineendsequence.c: New file.
1078 * dwarf_lineepiloguebegin.c: New file.
1079 * dwarf_lineno.c: New file.
1080 * dwarf_lineprologueend.c: New file.
1081 * dwarf_onesrcline.c: New file.
1082 * dwarf_lineno.c: Change interface to store result in object pointed
1083 to by second parameter.
1084 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1085 prototype. Define Dwarf_Files and Dwarf_Lines.
1086 * libdw.map: Add new functions.
1087 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1088 * libdw_findcu.c: Don't initialize nlines field.
1089
1090 * dwarf_siblingof: Little optimization.
1091
1092 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1093 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1094 * libdwP.h (struct Dwarf): Add free_elf field.
1095
1096 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1097 dwarf_offabbrev.c.
1098 * dwarf_getstring.c: New file.
1099 * dwarf_offabbrev.c: New file.
1100 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1101 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1102 parameters. Don't allocate memory if not necessary and don't lookup
1103 previous results if no CU given.
1104 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1105 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1106 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1107 * libdwP.h: Change prototype for __libdw_getabbrev.
1108
1109 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1110 returning if this is wanted.
1111
11122004-01-09 Ulrich Drepper <drepper@redhat.com>
1113
1114 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1115 with offset_size value.
1116 * libdw.h: Adjust dwarf_nextcu prototype.
1117 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1118 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1119 member of new CU struct.
1120 * dwarf_formstring.c: Depend on offset_size not address_size for
1121 DW_FORM_strp handling.
1122 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1123
1124 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1125 failing lookup.
1126 (dwarf_tag): Correctly recognize failed lookup.
1127
1128 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1129 function noop_free.
1130 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1131 * dwarf_formblock.c: New file.
1132 * dwarf_getloclist.c: Rewrite to handle a single block.
1133 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1134 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1135 dwarf_getloclistent declaration.
1136 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1137 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1138 Add locs member to struct Dwarf_CU.
1139 * libdw_fundcu.c: Initialize locs member of new CU.
1140 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1141 Remove dwarf_getloclistent.c.
1142
11432004-01-07 Ulrich Drepper <drepper@redhat.com>
1144
1145 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1146 * libdwP.h: Likewise.
1147
1148 * dwarf_getloclist.c: New file.
1149 * dwarf_getloclistent.c: New file.
1150 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1151 Declare dwarf_getloclistent and dwarf_getloclist.
1152 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1153 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1154 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1155 dwarf_getloclist.c.
1156
1157 * dwarf_error.c: More error messages.
1158
11592004-01-06 Ulrich Drepper <drepper@redhat.com>
1160
1161 * dwarf_getsrclines.c: Remove debugging support.
1162
1163 * dwarf_getsrcfiles.c: New file.
1164 * dwarf_filesrc.c: New file.
1165 * libdw.h: Declare these functions. Define Dwarf_File.
1166 * libdwP.c: Adjust Dwarf_File_s definition.
1167 * libdw.map: Add these functions.
1168 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1169 dwarf_filesrc.c.
1170 * dwarf_getsrclines.c: Initialize cu->files.
1171
11722004-01-05 Ulrich Drepper <drepper@redhat.com>
1173
1174 * libdw.h: Add more nonnull function attributes.
1175
1176 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1177 * dwarf_end.c (cu_free): New function.
1178 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1179 * dwarf_error.c (errmsgs): Add new messages.
1180 * dwarf_getsrc_die.c: New file.
1181 * dwarf_getsrclines.c: New file.
1182 * dwarf_lineno.c: New file.
1183 * dwarf_linesrc.c: New file.
1184 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1185 instead of the *_inc-less variants.
1186 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
1187 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1188 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1189 and dwarf_linesrc.
1190 * libdwP.h: Add more error codes.
1191 (struct Dwarf): Remove mem_tail.next member.
1192 (Dwarf_File): Define type.
1193 (struct Dwarf_Line_s): Define type.
1194 (struct Dwarf_CU): Add lines and nlines members.
1195 (libdw_alloc): Define local variable _tail and use it.
1196 Add some function attributes.
1197 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1198 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1199 * memory-access.h: Add unlikely for the endian conversion paths.
1200 * Makefile.am (AM_CFLAGS): Add -std parameter.
1201 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1202 dwarf_lineno, and dwarf_linesrc.
1203
12042003-08-11 Ulrich Drepper <drepper@redhat.com>
1205
1206 * Moved to CVS archive.