blob: c45c17931c6cc4bd6da13d73537e590fed95e42d [file] [log] [blame]
Roland McGrathc5acb302009-01-28 18:28:52 -080012009-01-28 Roland McGrath <roland@redhat.com>
2
3 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
4
Roland McGrathf46272a2009-01-26 18:36:16 -080052009-01-26 Roland McGrath <roland@redhat.com>
6
7 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
8
Roland McGrathd31505f2009-01-25 19:37:33 -080092009-01-25 Roland McGrath <roland@redhat.com>
10
11 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
12
Roland McGrath3bf7a092009-01-23 16:34:07 -0800132009-01-23 Roland McGrath <roland@redhat.com>
14
15 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
16 Put these rules under if MAINTAINER_MODE.
17
Roland McGrathafdd51e2009-01-22 02:26:24 -0800182009-01-22 Roland McGrath <roland@redhat.com>
19
20 * dwarf.h: Add DW_OP_GNU_encoded_addr.
21
Roland McGrath1ea4fdc2009-01-21 19:14:37 -0800222009-01-21 Roland McGrath <roland@redhat.com>
23
24 * Makefile.am (CLEANFILES): Renamed to ...
25 (MOSTLYCLEANFILES): ... here.
26 (CLEANFILES): New variable, add known-dwarf.h.
27
Roland McGrath24b03302009-01-17 14:34:13 -0800282009-01-17 Roland McGrath <roland@redhat.com>
29
Roland McGrath54456d82009-01-17 14:39:35 -080030 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
31 Make it unconditional.
32 (BUILT_SOURCES): Updated.
Roland McGrath5513e642009-01-11 01:35:11 -080033
34 * dwarf.h: Add description comments for DW_LANG_* values.
35
36 * Makefile.am [MAINTAINER_MODE]
37 ($(srcdir)/known-dwarf.h): New target.
38 (BUILT_SOURCES): Add it.
39
Roland McGrath24b03302009-01-17 14:34:13 -080040 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
41
Ulrich Drepper7e678fa2009-01-10 18:02:05 -0800422009-01-10 Ulrich Drepper <drepper@redhat.com>
43
44 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
45
Roland McGrathe06762c2009-01-08 13:39:08 -0800462009-01-08 Roland McGrath <roland@redhat.com>
47
48 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
49
Roland McGrath7e827f22009-01-06 02:09:50 -0800502008-01-06 Roland McGrath <roland@redhat.com>
Roland McGrath1f6d2012008-12-31 00:21:04 -080051
52 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
53 Reorder members.
54 * dwarf_haschildren.c: Return -1 for error case, not 0.
Roland McGrathbca43152009-01-05 23:59:32 -080055
56 * Makefile.am (libdw.so): Link in $(zip_LIBS).
57
Ulrich Drepperac194d02009-01-06 00:30:01 -0800582009-01-06 Ulrich Drepper <drepper@redhat.com>
59
Roland McGrathc462c632009-01-06 01:04:31 -080060 * dwarf.h: Add definition for unwind and call frame information.
Ulrich Drepperac194d02009-01-06 00:30:01 -080061
62 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
63 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
64
Roland McGrathb4d6f0f2008-08-25 22:55:17 +0000652008-08-15 Roland McGrath <roland@redhat.com>
66
67 * libdw.map (ELFUTILS_0.136): New version set, inherits from
68 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
69
Ulrich Drepper8d358d92008-01-22 06:34:31 +0000702008-01-21 Ulrich Drepper <drepper@redhat.com>
71
72 * dwarf_child.c: Minor optimizations.
73 * dwarf_getattrs.c: Likewise.
74 * dwarf_getpubnames.c: Likewise.
75 * dwarf_siblingof.c: Likewise.
76 * dwarf_tag.c: Likewise.
77
Ulrich Drepperb27ce002008-01-18 20:08:54 +0000782008-01-18 Ulrich Drepper <drepper@redhat.com>
79
80 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
81 of DWARF_VERSION comparison, just fail if the file's version is newer.
82
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000832008-01-17 Nick Clifton <nickc@redhat.com>
84
85 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
86 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
87 (DWARF3_LENGTH_64_BIT): New define.
88 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
89 * dwarf_getpubnames: Include dwarf.h.
90 (get_offsets): Use the new definitions.
91 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
92 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
93 (dwarf_nextcu): Use the new definitions.
94
95 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +000096 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
Ulrich Drepper35f08c42008-01-18 19:59:08 +000097 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
98 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
99
100 * dwarf_getpubnames (get_offsets): Replace assertion with test and
101 error return.
102
103 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
104
105 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
106 Set the address in the return structure to the address of the next
107 non-sibling die, if there is no sibling and the return pointer is
108 not the same as the die pointer.
109 * libdw.h: Expand the description of the dwarf_siblingof prototype.
110
111 * dwarf_child.c: Fix typo in comment.
112
113 * libdwP.h (DWARF_VERSION): Change to 3.
114
115 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
116 not have a initialised valp pointer.
117
118 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
119 the end of the attributes is reached. When the callback fails,
120 return the address of the failing attribute, not the address of
121 its successor.
122 * libdw.h: Expand the description of the dwarf_getattrs prototype.
123
124 * dwarf_child.c (__libdw_find_attr): Use the new definition.
125 (dwarf_child): Likewise.
126 * dwarf_tag.c (__libdw_findabbrev): Likewise.
127 (dwarf_tag): Likewise.
128
Ulrich Dreppere219f1c2008-01-09 05:49:49 +00001292008-01-08 Roland McGrath <roland@redhat.com>
130
131 * Makefile.am (euinclude): Variable removed.
132 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
133 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
134
Roland McGrathe4c22ea2007-10-23 13:07:39 +00001352007-10-17 Roland McGrath <roland@redhat.com>
136
137 * libdw.h (__deprecated_attribute__): New macro.
138 (dwarf_formref): Mark it deprecated.
139 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
140 (dwarf_formref): ... here. Call it. Remove INTDEF.
141 * libdwP.h: Remove INTDECL.
142 Declare __libdw_formref.
143 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
144 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
145
146 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
147 needs to check CU->version.
148
149 * libdwP.h (struct Dwarf_CU): New member `version'.
150 * libdw_findcu.c (__libdw_findcu): Initialize it.
151
152 * dwarf_child.c: Return 1 for null entry as first child.
153
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00001542007-10-05 Roland McGrath <roland@redhat.com>
155
156 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
157
158 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
159 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
160
Roland McGrath59ea7f32007-10-04 08:50:09 +00001612007-10-03 Roland McGrath <roland@redhat.com>
162
163 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
164 and dwfl_build_id_find_debuginfo.
165
166 * libdw.map (ELFUTILS_0.130): New version set, inherits from
167 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
168
Roland McGrath057ec6b2007-10-02 20:55:05 +00001692007-10-02 Roland McGrath <roland@redhat.com>
170
171 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
172 structure_type.
173
Roland McGrathd1a48172007-08-07 19:51:01 +00001742007-08-07 Roland McGrath <roland@redhat.com>
175
176 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
177 error code is DWARF_E_NOERROR (0).
178
179 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
180 Fix typo in __libdw_visit_scopes argument.
181
182 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
183 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
184
Roland McGrath87d47802007-07-16 22:23:37 +00001852007-07-03 Roland McGrath <roland@redhat.com>
186
187 * libdw.h (__extern_inline): New macro.
188 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
189
Roland McGrath43da9892007-04-16 23:13:37 +00001902007-04-16 Roland McGrath <roland@redhat.com>
191
192 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
193
Roland McGrathbf2ee482007-04-05 09:27:36 +00001942007-04-05 Roland McGrath <roland@redhat.com>
195
Roland McGrath43da9892007-04-16 23:13:37 +0000196 * dwarf_getsrcdirs.c: New file.
197 * Makefile.am (libdw_a_SOURCES): Add it.
198 * libdw.h: Declare dwarf_getsrcdirs.
199 * libdw.map (ELFUTILS_0.127): Add it.
200
201 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
202 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
203 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
204 Save DIRARRAY in the Dwarf_Files.
205
Roland McGrathbf2ee482007-04-05 09:27:36 +0000206 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
207 address to check for all-ones base address entry. Check directly.
208 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
209
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00002102007-03-25 Roland McGrath <roland@redhat.com>
211
212 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
213 Return NULL when freeing RESULT on error.
214 (global_read, scngrp_read): Check return value from check_section,
215 break out of loop after it has freed RESULT.
216 (valid_p): Handle null argument.
217
Ulrich Drepper6258e742007-03-13 06:22:40 +00002182007-03-12 Roland McGrath <roland@redhat.com>
219
220 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
221
2222007-03-04 Roland McGrath <roland@redhat.com>
223
224 * libdw.map (ELFUTILS_0.127): New version set, inherits from
225 ELFUTILS_0.126. Add dwfl_module_addrsym.
226
Ulrich Drepper903c1162007-02-15 19:40:37 +00002272007-02-10 Roland McGrath <roland@redhat.com>
228
229 * dwarf.h (DW_OP_fbreg): Comment fix.
230
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00002312007-02-03 Roland McGrath <roland@redhat.com>
232
233 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
234 * libdw.map (ELFUTILS_0.126): New version set, inherits from
235 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
236 exported in the past.
237
Roland McGrath8190db62006-12-17 23:56:51 +00002382006-12-17 Roland McGrath <roland@redhat.com>
239
240 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
241 address when the CU is missing attributes due to buggy GCC.
242
Roland McGrathc373d852006-10-10 00:25:21 +00002432006-08-29 Roland McGrath <roland@redhat.com>
244
245 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
246
247 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
248 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
249
250 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
251 result is aligned. Adjust NEWP->remaining here for this allocation.
252 * libdwP.h: Update decl.
253 (libdw_alloc): Update caller.
254
Ulrich Drepper077c65f2006-07-12 19:54:51 +00002552006-07-12 Ulrich Drepper <drepper@redhat.com>
256
257 * dwarf_child.c: Adjust for internal_function_def removal.
258 * dwarf_getabbrev.c: Likewise.
259 * dwarf_tag.c: Likewise.
260 * libdw_form.c: Likewise.
261 * memory-access.c: Likewise.
262
Ulrich Dreppere1812e12006-07-12 07:46:03 +00002632006-06-28 Roland McGrath <roland@redhat.com>
264
265 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
266
267 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
268 dwfl_module_getsym.
269
Ulrich Drepper3be74472006-05-27 18:15:40 +00002702006-05-27 Ulrich Drepper <drepper@redhat.com>
271
272 * libdw.h: Add extern "C".
273
Ulrich Dreppere7a73172006-05-22 18:16:45 +00002742006-05-22 Ulrich Drepper <drepper@redhat.com>
275
276 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
277 aranges information.
278
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +00002792006-05-21 Ulrich Drepper <drepper@redhat.com>
280
281 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
282 dwarf_haschildren.
283
Roland McGrath2dade662006-02-28 22:13:20 +00002842006-02-28 Roland McGrath <roland@redhat.com>
285
286 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
287 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
288 values from DWARF 3.0.
289
Roland McGrath08333122006-02-27 04:54:26 +00002902006-02-22 Roland McGrath <roland@redhat.com>
291
292 * libdw.map: Bump to 0.120; export dwfl_version.
293
Roland McGrath50ffcbf2005-12-23 01:51:43 +00002942005-12-22 Roland McGrath <roland@redhat.com>
295
296 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
297
Roland McGrathdec3a242005-12-12 08:35:55 +00002982005-12-12 Roland McGrath <roland@redhat.com>
299
300 * dwarf_ranges.c: Copy CU base address-finding code from
301 dwarf_getlocation.
302
Roland McGrathf64a4422005-12-09 23:40:30 +00003032005-12-09 Roland McGrath <roland@redhat.com>
304
305 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
306 Delay CU base lookup until it's needed.
307 If CU base lookup fails with no error, flag invalid DWARF.
308
Roland McGrath994b4892005-12-05 22:46:21 +00003092005-11-25 Roland McGrath <roland@redhat.com>
310
311 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
312
Roland McGrathe47ab762005-11-17 03:16:00 +00003132005-11-15 Roland McGrath <roland@redhat.com>
314
315 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
316
3172005-11-13 Roland McGrath <roland@redhat.com>
318
319 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
320
Roland McGrath07d4f2f2005-10-28 06:56:24 +00003212005-10-27 Roland McGrath <roland@redhat.com>
322
323 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
324 don't match end_sequence markers.
325
326 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
327 before normal records at the same address.
328 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
329 marker.
330
3312005-10-26 Roland McGrath <roland@redhat.com>
332
Roland McGrath6724c902005-10-28 07:07:19 +0000333 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
334 * dwarf_func_file.c: Renamed to ...
335 * dwarf_decl_file.c: ... here.
336 * dwarf_func_col.c: Renamed to ...
337 * dwarf_decl_column.c: ... here.
338 * dwarf_func_line.c: Renamed to ...
339 * dwarf_decl_line.c: ... here.
340 (dwarf_func_line): Renamed to ...
341 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
342 (__libdw_func_intval): Renamed __libdw_attr_intval.
343 * dwarf_func_name.c: File removed.
344 * dwarf_func_lowpc.c: File removed.
345 * dwarf_func_highpc.c: File removed.
346 * dwarf_func_entrypc.c: File removed.
347 * dwarf_func_die.c: File removed.
348 * Makefile.am (libdw_a_SOURCES): Updated.
349 * libdw.h: Update decls.
350 (Dwarf_Func): Type removed.
351 * libdwP.h: Update decls.
352 (struct Dwarf_Func_s): Type removed.
353 * libdw.map: Updated.
354
355 * libdwP.h (CUDIE): New macro.
356 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
357 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
358 * dwarf_ranges.c (dwarf_ranges): Likewise.
359
360 * dwarf_getloclist.c: Renamed to ...
361 * dwarf_getlocation.c: ... here.
362 (getloclist): Renamed to getlocation.
363 (dwarf_getloclist): Renamed to dwarf_getlocation.
364 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
365 * Makefile.am (libdw_a_SOURCES): Updated.
366 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
367 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
368 (Dwarf_Loc): Renamed Dwarf_Op.
369 * libdwP.h (struct loc_s): Update use.
370 * libdw.map: Update map.
371
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000372 * dwarf_entry_breakpoints.c: Use the second line record within the
373 function, regardless of its source location data.
374
3752005-10-25 Roland McGrath <roland@redhat.com>
376
377 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
378
379 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
380
3812005-10-14 Roland McGrath <roland@redhat.com>
382
383 * dwarf_diecu.c (dwarf_diecu): New file.
384 * Makefile.am (libdw_a_SOURCES): Add it.
385 * libdw.h: Declare dwarf_diecu.
386 * libdw.map: Export it.
387
388 * libdw.map: Bump to 0.116; export dwarf_ranges.
389
3902005-09-20 Roland McGrath <roland@redhat.com>
391
392 * dwarf_haspc.c: Use dwarf_ranges.
393 * dwarf_entry_breakpoints.c: Likewise.
394
395 * dwarf_ranges.c: New file.
396 * Makefile.am (libdw_a_SOURCES): Add it.
397 * libdw.h: Declare dwarf_ranges.
398 * libdwP.h: Add INTDECL.
399
4002005-09-14 Roland McGrath <roland@redhat.com>
401
402 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
403 prologue_end marker scanning loop.
404
4052005-09-11 Roland McGrath <roland@redhat.com>
406
407 * dwarf.h: Comment typo fix.
408
4092005-09-07 Roland McGrath <roland@redhat.com>
410
411 * dwarf_entry_breakpoints.c: New file.
412 * Makefile.am (libdw_a_SOURCES): Add it.
413 * libdw.h: Declare dwarf_entry_breakpoints.
414
415 * dwarf_entrypc.c: New file.
416 * Makefile.am (libdw_a_SOURCES): Add it.
417 * libdw.h: Declare dwarf_entrypc.
418 * libdwP.h: Add INTDECL.
419
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00004202005-08-28 Ulrich Drepper <drepper@redhat.com>
421
422 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
423 (%.os): Use COMPILE.os.
424 (COMPILE.os): Filter out gconv options.
425
Roland McGrath71e15a02005-08-27 10:33:26 +00004262005-08-27 Roland McGrath <roland@redhat.com>
427
428 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
429 __libdw_visit_scopes.
430
431 * dwarf_getscopes_die.c: New file.
432 * Makefile.am (libdw_a_SOURCES): Add it.
433 * libdw.h: Declare dwarf_getscopes_die.
434 * libdw.map: Bump to 0.115 and add it.
435
436 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
437 containing a DIE and its parent pointer, instead of just Dwarf_Die.
438 Take two functions for both preorder and postorder visitors.
439 * libdwP.h: Update decl.
440 (struct Dwarf_Die_Chain): New type.
441 * dwarf_func_inline.c: Update uses.
442
443 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
444 Add INTDEF.
445 * libdwP.h: Add INTDECL.
446 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
447
Roland McGrathd17fac72005-08-23 08:20:21 +00004482005-08-23 Roland McGrath <roland@redhat.com>
449
450 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
451 DW_AT_specification the same as DW_AT_abstract_origin.
452
4532005-08-20 Roland McGrath <roland@redhat.com>
454
455 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
456 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
457 and dwfl_report_offline.
458
4592005-08-19 Roland McGrath <roland@redhat.com>
460
461 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
462 Add dwfl_module_relocate_address, dwfl_module_relocations,
463 dwfl_module_relocation_info.
464
Roland McGrathf5fda7d2005-08-18 22:01:57 +00004652005-08-18 Roland McGrath <roland@redhat.com>
466
467 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
468 outermost scope in the results.
469
Roland McGrath1ecb6062005-08-15 09:53:04 +00004702005-08-15 Roland McGrath <roland@redhat.com>
471
472 * dwarf_func_inline.c: New file.
473 * Makefile.am (libdw_a_SOURCES): Add it.
474 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
475 * libdw.map: Add them.
476
477 * dwarf_func_die.c: New file.
478 * Makefile.am (libdw_a_SOURCES): Add it.
479 * libdw.h: Declare dwarf_func_die.
480 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
481
Roland McGrath1c83bf12005-08-11 07:03:55 +00004822005-08-10 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000483
Roland McGrath1c83bf12005-08-11 07:03:55 +0000484 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
485 of DW_LNS_set_epilog_begin.
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000486
Roland McGrath4959bf82005-08-09 10:31:08 +00004872005-08-09 Roland McGrath <roland@redhat.com>
488
Roland McGrathb6312e12005-08-09 10:36:01 +0000489 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
490
Roland McGrath4959bf82005-08-09 10:31:08 +0000491 * dwarf_end.c: Add INTDEF.
492 * dwarf_error.c (dwarf_errmsg): Likewise.
493 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
494
Roland McGratha5a89682005-08-02 01:24:01 +00004952005-08-01 Roland McGrath <roland@redhat.com>
496
497 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
498 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
499
Ulrich Drepper18618fd2005-07-28 21:29:22 +00005002005-07-28 Ulrich Drepper <drepper@redhat.com>
501
502 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
503 (libdw_a_LIBADD): Add all files from libdwfl.a.
504
Roland McGrath366784a2005-07-28 06:20:53 +00005052005-07-27 Roland McGrath <roland@redhat.com>
506
Roland McGrath18385902005-07-28 07:12:38 +0000507 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
508 along with ../libebl/libebl.a and ../lib/libeu.a;
509 depend on ../libelf/libelf.so.
510 (libdw_so_LDADD): New variable.
511 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
512
Roland McGrath366784a2005-07-28 06:20:53 +0000513 * libdw.map: Define an empty base version and move all symbols to
514 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
515
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00005162005-07-23 Ulrich Drepper <drepper@redhat.com>
517
518 * dwarf_error.c: Add internal alias for dwarf_errno.
519 * libdwP.h: Declare __dwarf_errno_internal.
520 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
521
522 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
523 global_error.
524
5252005-06-01 Roland McGrath <roland@redhat.com>
526
527 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
528 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
529
5302005-06-08 Roland McGrath <roland@redhat.com>
531
532 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
533 (get_sleb128_step, get_sleb128): Likewise.
534 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
535 * dwarf_getloclist.c (getloclist): Likewise.
536 * dwarf_formblock.c (dwarf_formblock): Likewise.
537 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
538 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
539 * dwarf_formref.c (dwarf_formref): Likewise.
540 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
541 * dwarf_formudata.c (dwarf_formudata): Likewise.
542 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
543 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
544 * dwarf_tag.c (dwarf_tag): Likewise.
545 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
546 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
547 * libdw_form.c (__libdw_form_val_len): Likewise.
548 * libdwP.h: Update decl.
549
5502005-06-04 Roland McGrath <roland@redhat.com>
551
552 * memory-access.h (get_uleb128_rest_return): New macro.
553 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
554 (get_sleb128_rest_return): New macro.
555 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
556 * memory-access.c: New file.
557 * Makefile.am (libdw_a_SOURCES): Add it.
558 (DEFS): Add -DIS_LIBDW.
559
5602005-05-31 Roland McGrath <roland@redhat.com>
561
562 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
563 formref offset.
564
5652005-05-30 Roland McGrath <roland@redhat.com>
566
567 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
568 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
569
570 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
571 BEGIN value. Instead, match base address entries separately for
572 32/64 size cases.
573
5742005-05-28 Roland McGrath <roland@redhat.com>
575
576 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
577 past location expression contents.
578
5792005-05-23 Roland McGrath <roland@redhat.com>
580
581 * dwarf_getsrclines.c: Comment typo fix.
582
583 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
584 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
585
5862005-05-22 Ulrich Drepper <drepper@redhat.com>
587
588 * libdwP.h: Only use INTDECL for alias prototypes.
589
5902005-05-19 Roland McGrath <roland@redhat.com>
591
592 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
593
594 * dwarf_getscopevar.c: New file.
595 * Makefile.am (libdw_a_SOURCES): Add it.
596 * libdw.h: Declare dwarf_getscopevar.
597
598 * dwarf_getsrcfiles.c: Add INTDEF.
599 * dwarf_haschildren.c: Likewise.
600 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
601
602 * dwarf_getscopes.c: New file.
603 * Makefile.am (libdw_a_SOURCES): Add it.
604 * libdw.h: Declare dwarf_getscopes.
605 * libdw.map: Add it.
606
6072005-05-18 Roland McGrath <roland@redhat.com>
608
609 * libdwP.h (IDX_debug_ranges): New enum constant.
610 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
611 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
612 * dwarf_error.c (errmsgs): Add it.
613 * dwarf_haspc.c: New file.
614 * libdw.h: Declare dwarf_haspc.
615 * libdw.map: Add it.
616 * libdwP.h: Add INTDECL.
617
618 * dwarf_attr_integrate.c: New file.
619 * dwarf_hasattr_integrate.c: New file.
620 * Makefile.am (libdw_a_SOURCES): Add them.
621 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
622 * libdw.map: Add them.
623
624 * dwarf_hasattr.c: Add INTDEF.
625 * libdwP.h: Add INTDECL for it.
626
627 * dwarf_formref_die.c: New file.
628 * Makefile.am (libdw_a_SOURCES): Add it.
629 * libdw.h (dwarf_formref_die): Declare it.
630 * libdwP.h (dwarf_formref_die): Add INTDECL.
631 * libdw.map: Add it.
632
633 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
634 of ...
635 (dwarf_getloclist): ... here. Call them.
636 (dwarf_addrloclists): New function.
637 * libdw.h: Declare it.
638 * libdw.map: Add it.
639
640 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
641 DW_MACINFO_end_file. Recognize type 0 as terminator.
642
6432005-05-05 Roland McGrath <roland@redhat.com>
644
645 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
646
647 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
648 the line program does not produce all entries in ascending order.
649
6502005-04-25 Ulrich Drepper <drepper@redhat.com>
651
652 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
653 occurences (e.g., inlines) better.
654
6552005-04-24 Ulrich Drepper <drepper@redhat.com>
656
657 * libdw.h (DWARF_END_ABBREV): Define.
658 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
659 end is reached.
660 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
661 of records reached.
662 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
663 as error of __libdw_getabbrev.
664
6652005-04-04 Ulrich Drepper <drepper@redhat.com>
666
667 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
668
669 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
670 results back to caller.
671
6722005-04-04 Roland McGrath <roland@redhat.com>
673
674 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
675
676 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
677 defn.
678
6792005-04-04 Ulrich Drepper <drepper@redhat.com>
680
681 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
682
683 * dwarf_getsrc_file.c: New file.
684 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
685 * libdw.h: Declare dwarf_getsrc_file.
686 * libdw.map: Add dwarf_getsrc_file.
687
6882005-04-02 Ulrich Drepper <drepper@redhat.com>
689
690 * dwarf_func_entrypc.c: New file.
691 * dwarf_func_col.c: New file.
692 * dwarf_func_line.c: New file.
693 * dwarf_func_file.c: New file.
694 * libdw.h: Add prototypes for new functions.
695 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
696 dwarf_func_file.
697 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
698 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
699 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
700 Declare __libdw_func_intval and __dwarf_formsdata_internal.
701 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
702 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
703
704 * dwarf.h: Add some DWARF3 definitions.
705
7062005-04-01 Ulrich Drepper <drepper@redhat.com>
707
708 * dwarf_getfuncs.c: New file.
709 * dwarf_func_highpc.c: New file.
710 * dwarf_func_lowpc.c: New file.
711 * dwarf_func_name.c: New file.
712 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
713 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
714 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
715 and dwarf_func_name.
716 * libdw.h: Add prototypes for new functions.
717 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
718 * dwarf_siblingof.c: Likewise.
719 * dwarf_dieoffset.c: Likewise.
720 * dwarf_highpc.c: Likewise.
721 * dwarf_lowpc.c: Likewise.
722 * libdwP.h: Add prototypes for internal functions.
723 Define Dwarf_Func_s structure.
724
7252005-03-29 Ulrich Drepper <drepper@redhat.com>
726
727 * libdw.h: Add padding in Dwarf_die.
728
729 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
730 * dwarf_attr.c: Likewise.
731 * dwarf_begin.c: Likewise.
732 * dwarf_begin_elf.c: Likewise.
733 * dwarf_bitoffset.c: Likewise.
734 * dwarf_bitsize.c: Likewise.
735 * dwarf_bytesize.c: Likewise.
736 * dwarf_diename.c: Likewise.
737 * dwarf_formaddr.c: Likewise.
738 * dwarf_formblock.c: Likewise.
739 * dwarf_formref.c: Likewise.
740 * dwarf_formstring.c: Likewise.
741 * dwarf_formudata.c: Likewise.
742 * dwarf_getarange_addr.c: Likewise.
743 * dwarf_getarangeinfo.c: Likewise.
744 * dwarf_getaranges.c: Likewise.
745 * dwarf_getloclist.c: Likewise.
746 * dwarf_getmacros.c: Likewise.
747 * dwarf_getsrc_die.c: Likewise.
748 * dwarf_getsrcfiles.c: Likewise.
749 * dwarf_getsrclines.c: Likewise.
750 * dwarf_highpc.c: Likewise.
751 * dwarf_lowpc.c: Likewise.
752 * dwarf_nextcu.c: Likewise.
753 * dwarf_offdie.c: Likewise.
754 * dwarf_siblingof.c: Likewise.
755 * dwarf_srclang.c: Likewise.
756 * dwarf_tag.c: Likewise.
757 * libdw_findcu.c: Likewise.
758 * libdwP.h: Add prototypes for internal functions.
759
760 * dwarf_addrdie.c: New file.
761 * dwarf_macro_opcode.c: New file.
762 * dwarf_macro_param1.c: New file.
763 * dwarf_macro_param2.c: New file.
764 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
765 * libdwP.h: Remove Dwarf_Macro definition.
766 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
767 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
768 * libdw.map: Add entries for new functions.
769
7702005-03-21 Ulrich Drepper <drepper@redhat.com>
771
772 * libdw.h: Handle broken gcc < 4.
773
7742005-02-15 Ulrich Drepper <drepper@redhat.com>
775
776 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
777
778 * dwarf_begin_elf.c: Fix warnings.
779 * dwarf_dieoffset.c: Likewise.
780 * dwarf_end.c: Likewise.
781 * dwarf_error.c: Likewise.
782 * dwarf_getpubnames.c: Likewise.
783
784 * libdwP.h: Add new error values.
785 * dwarf_error.c: Support new error values.
786 * dwarf_getpubnames.c: Check parameter value.
787
7882005-02-05 Ulrich Drepper <drepper@redhat.com>
789
790 * Makefile.am: Check for text relocations in constructed DSO.
791
792 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
793
7942005-02-04 Ulrich Drepper <drepper@redhat.com>
795
796 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
797 checks to not read over buffer boundaries for ill-formed DWARF data.
798
7992004-09-25 Ulrich Drepper <drepper@redhat.com>
800
801 * dwarf_child.c: Make compile with gcc 4.0.
802 * dwarf_error.c: Likewise.
803 * dwarf_formblock.c: Likewise.
804 * dwarf_getabbrev.c: Likewise.
805 * dwarf_getattrs.c: Likewise.
806 * dwarf_getsrclines.c: Likewise.
807 * dwarf_tag.c: Likewise.
808 * libdw_form.c: Likewise.
809
8102004-01-20 Ulrich Drepper <drepper@redhat.com>
811
812 * Makefile.am: Support building with mudflap.
813
814 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
815 * dwarf_getsrclines.c: Likewise.
816 * dwarf_memory-access.h: Likewise.
817
8182004-01-19 Ulrich Drepper <drepper@redhat.com>
819
820 * dwarf_getsrcfiles.c: Third parameter can be NULL.
821
822 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
823 Third parameter of dwarf_getsrcfiles can be NULL.
824
825 * libdw.map: Add dwarf_getmacros.
826 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
827 * dwarf_getmacros.c: New file.
828
8292004-01-18 Ulrich Drepper <drepper@redhat.com>
830
831 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
832
833 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
834
835 * dwarf_getsrclines.c:
836 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
837
838 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
839
840 * libdwP.h (_): Use elfutils domain.
841
842 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
843
844 * dwarf_getsrclines.c: Fix typo in comment.
845
8462004-01-17 Ulrich Drepper <drepper@redhat.com>
847
848 * Makefile.am: Support building with mudflap.
849
8502004-01-16 Ulrich Drepper <drepper@redhat.com>
851
852 * memory-access.h: Add lots of const in case a pointer passed is const.
853
854 * dwarf_formflag.c: New file.
855 * dwarf_getattrs.c: New file.
856 * dwarf_error.c: Add new error value.
857 * libdw.h: Add prototypes for new functions. Adjust prototype for
858 dwarf_getpubnames.
859 * libdw.map: Add new functions.
860 * dwarf_getpubnames.c: Change type of return value and fourth parameter
861 to ptrdiff_t.
862 * libdwP.h: Add new error value.
863 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
864 dwarf_formflag.c.
865
866 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
867
8682004-01-12 Ulrich Drepper <drepper@redhat.com>
869
870 * dwarf_getarange_addr.c: New file
871 * dwarf_getarangeinfo.c: New file.
872 * dwarf_getaranges.c: New file.
873 * dwarf_onerange.c: New file.
874 * libdw.h: Declare new functions. Define Dwarf_Arange and
875 Dwarf_Aranges.
876 * libdw.map: Add new functions.
877 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
878 Define Dwarf_Aranges_s and Dwarf_Arange_s.
879 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
880 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
881 * dwarf_error.c: Add new message.
882
8832004-01-11 Ulrich Drepper <drepper@redhat.com>
884
885 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
886 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
887 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
888 * dwarf_error.c: Add another message.
889 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
890 introduction.
891 * dwarf_filesrc.c: Likewise.
892 * dwarf_getsrcfiles.c: Likewise.
893 * dwarf_getsrclines.c: Likewise.
894 * dwarf_lineaddr.c: New file.
895 * dwarf_linebeginstatement.c: New file.
896 * dwarf_lineblock.c: New file.
897 * dwarf_linecol.c: New file.
898 * dwarf_lineendsequence.c: New file.
899 * dwarf_lineepiloguebegin.c: New file.
900 * dwarf_lineno.c: New file.
901 * dwarf_lineprologueend.c: New file.
902 * dwarf_onesrcline.c: New file.
903 * dwarf_lineno.c: Change interface to store result in object pointed
904 to by second parameter.
905 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
906 prototype. Define Dwarf_Files and Dwarf_Lines.
907 * libdw.map: Add new functions.
908 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
909 * libdw_findcu.c: Don't initialize nlines field.
910
911 * dwarf_siblingof: Little optimization.
912
913 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
914 * dwarf_end.c: Close ELF descriptor if free_elf is set.
915 * libdwP.h (struct Dwarf): Add free_elf field.
916
917 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
918 dwarf_offabbrev.c.
919 * dwarf_getstring.c: New file.
920 * dwarf_offabbrev.c: New file.
921 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
922 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
923 parameters. Don't allocate memory if not necessary and don't lookup
924 previous results if no CU given.
925 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
926 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
927 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
928 * libdwP.h: Change prototype for __libdw_getabbrev.
929
930 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
931 returning if this is wanted.
932
9332004-01-09 Ulrich Drepper <drepper@redhat.com>
934
935 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
936 with offset_size value.
937 * libdw.h: Adjust dwarf_nextcu prototype.
938 * libdwP.h (struct Dwarf_CU): Add offset_size member.
939 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
940 member of new CU struct.
941 * dwarf_formstring.c: Depend on offset_size not address_size for
942 DW_FORM_strp handling.
943 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
944
945 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
946 failing lookup.
947 (dwarf_tag): Correctly recognize failed lookup.
948
949 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
950 function noop_free.
951 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
952 * dwarf_formblock.c: New file.
953 * dwarf_getloclist.c: Rewrite to handle a single block.
954 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
955 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
956 dwarf_getloclistent declaration.
957 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
958 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
959 Add locs member to struct Dwarf_CU.
960 * libdw_fundcu.c: Initialize locs member of new CU.
961 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
962 Remove dwarf_getloclistent.c.
963
9642004-01-07 Ulrich Drepper <drepper@redhat.com>
965
966 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
967 * libdwP.h: Likewise.
968
969 * dwarf_getloclist.c: New file.
970 * dwarf_getloclistent.c: New file.
971 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
972 Declare dwarf_getloclistent and dwarf_getloclist.
973 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
974 * libdwP.h: Define DWARF_E_NO_LOCLIST.
975 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
976 dwarf_getloclist.c.
977
978 * dwarf_error.c: More error messages.
979
9802004-01-06 Ulrich Drepper <drepper@redhat.com>
981
982 * dwarf_getsrclines.c: Remove debugging support.
983
984 * dwarf_getsrcfiles.c: New file.
985 * dwarf_filesrc.c: New file.
986 * libdw.h: Declare these functions. Define Dwarf_File.
987 * libdwP.c: Adjust Dwarf_File_s definition.
988 * libdw.map: Add these functions.
989 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
990 dwarf_filesrc.c.
991 * dwarf_getsrclines.c: Initialize cu->files.
992
9932004-01-05 Ulrich Drepper <drepper@redhat.com>
994
995 * libdw.h: Add more nonnull function attributes.
996
997 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
998 * dwarf_end.c (cu_free): New function.
999 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1000 * dwarf_error.c (errmsgs): Add new messages.
1001 * dwarf_getsrc_die.c: New file.
1002 * dwarf_getsrclines.c: New file.
1003 * dwarf_lineno.c: New file.
1004 * dwarf_linesrc.c: New file.
1005 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1006 instead of the *_inc-less variants.
1007 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
1008 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1009 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1010 and dwarf_linesrc.
1011 * libdwP.h: Add more error codes.
1012 (struct Dwarf): Remove mem_tail.next member.
1013 (Dwarf_File): Define type.
1014 (struct Dwarf_Line_s): Define type.
1015 (struct Dwarf_CU): Add lines and nlines members.
1016 (libdw_alloc): Define local variable _tail and use it.
1017 Add some function attributes.
1018 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1019 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1020 * memory-access.h: Add unlikely for the endian conversion paths.
1021 * Makefile.am (AM_CFLAGS): Add -std parameter.
1022 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1023 dwarf_lineno, and dwarf_linesrc.
1024
10252003-08-11 Ulrich Drepper <drepper@redhat.com>
1026
1027 * Moved to CVS archive.