blob: 51ab6e946a5db7af4d4abd23fd66b45e7de60b47 [file] [log] [blame]
Roland McGrath24b03302009-01-17 14:34:13 -080012009-01-17 Roland McGrath <roland@redhat.com>
2
Roland McGrath54456d82009-01-17 14:39:35 -08003 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
4 Make it unconditional.
5 (BUILT_SOURCES): Updated.
Roland McGrath5513e642009-01-11 01:35:11 -08006
7 * dwarf.h: Add description comments for DW_LANG_* values.
8
9 * Makefile.am [MAINTAINER_MODE]
10 ($(srcdir)/known-dwarf.h): New target.
11 (BUILT_SOURCES): Add it.
12
Roland McGrath24b03302009-01-17 14:34:13 -080013 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
14
Ulrich Drepper7e678fa2009-01-10 18:02:05 -0800152009-01-10 Ulrich Drepper <drepper@redhat.com>
16
17 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
18
Roland McGrathe06762c2009-01-08 13:39:08 -0800192009-01-08 Roland McGrath <roland@redhat.com>
20
21 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
22
Roland McGrath7e827f22009-01-06 02:09:50 -0800232008-01-06 Roland McGrath <roland@redhat.com>
Roland McGrath1f6d2012008-12-31 00:21:04 -080024
25 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
26 Reorder members.
27 * dwarf_haschildren.c: Return -1 for error case, not 0.
Roland McGrathbca43152009-01-05 23:59:32 -080028
29 * Makefile.am (libdw.so): Link in $(zip_LIBS).
30
Ulrich Drepperac194d02009-01-06 00:30:01 -0800312009-01-06 Ulrich Drepper <drepper@redhat.com>
32
Roland McGrathc462c632009-01-06 01:04:31 -080033 * dwarf.h: Add definition for unwind and call frame information.
Ulrich Drepperac194d02009-01-06 00:30:01 -080034
35 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
36 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
37
Roland McGrathb4d6f0f2008-08-25 22:55:17 +0000382008-08-15 Roland McGrath <roland@redhat.com>
39
40 * libdw.map (ELFUTILS_0.136): New version set, inherits from
41 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
42
Ulrich Drepper8d358d92008-01-22 06:34:31 +0000432008-01-21 Ulrich Drepper <drepper@redhat.com>
44
45 * dwarf_child.c: Minor optimizations.
46 * dwarf_getattrs.c: Likewise.
47 * dwarf_getpubnames.c: Likewise.
48 * dwarf_siblingof.c: Likewise.
49 * dwarf_tag.c: Likewise.
50
Ulrich Drepperb27ce002008-01-18 20:08:54 +0000512008-01-18 Ulrich Drepper <drepper@redhat.com>
52
53 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
54 of DWARF_VERSION comparison, just fail if the file's version is newer.
55
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000562008-01-17 Nick Clifton <nickc@redhat.com>
57
58 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
59 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
60 (DWARF3_LENGTH_64_BIT): New define.
61 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
62 * dwarf_getpubnames: Include dwarf.h.
63 (get_offsets): Use the new definitions.
64 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
65 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
66 (dwarf_nextcu): Use the new definitions.
67
68 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +000069 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
Ulrich Drepper35f08c42008-01-18 19:59:08 +000070 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
71 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
72
73 * dwarf_getpubnames (get_offsets): Replace assertion with test and
74 error return.
75
76 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
77
78 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
79 Set the address in the return structure to the address of the next
80 non-sibling die, if there is no sibling and the return pointer is
81 not the same as the die pointer.
82 * libdw.h: Expand the description of the dwarf_siblingof prototype.
83
84 * dwarf_child.c: Fix typo in comment.
85
86 * libdwP.h (DWARF_VERSION): Change to 3.
87
88 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
89 not have a initialised valp pointer.
90
91 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
92 the end of the attributes is reached. When the callback fails,
93 return the address of the failing attribute, not the address of
94 its successor.
95 * libdw.h: Expand the description of the dwarf_getattrs prototype.
96
97 * dwarf_child.c (__libdw_find_attr): Use the new definition.
98 (dwarf_child): Likewise.
99 * dwarf_tag.c (__libdw_findabbrev): Likewise.
100 (dwarf_tag): Likewise.
101
Ulrich Dreppere219f1c2008-01-09 05:49:49 +00001022008-01-08 Roland McGrath <roland@redhat.com>
103
104 * Makefile.am (euinclude): Variable removed.
105 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
106 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
107
Roland McGrathe4c22ea2007-10-23 13:07:39 +00001082007-10-17 Roland McGrath <roland@redhat.com>
109
110 * libdw.h (__deprecated_attribute__): New macro.
111 (dwarf_formref): Mark it deprecated.
112 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
113 (dwarf_formref): ... here. Call it. Remove INTDEF.
114 * libdwP.h: Remove INTDECL.
115 Declare __libdw_formref.
116 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
117 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
118
119 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
120 needs to check CU->version.
121
122 * libdwP.h (struct Dwarf_CU): New member `version'.
123 * libdw_findcu.c (__libdw_findcu): Initialize it.
124
125 * dwarf_child.c: Return 1 for null entry as first child.
126
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00001272007-10-05 Roland McGrath <roland@redhat.com>
128
129 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
130
131 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
132 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
133
Roland McGrath59ea7f32007-10-04 08:50:09 +00001342007-10-03 Roland McGrath <roland@redhat.com>
135
136 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
137 and dwfl_build_id_find_debuginfo.
138
139 * libdw.map (ELFUTILS_0.130): New version set, inherits from
140 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
141
Roland McGrath057ec6b2007-10-02 20:55:05 +00001422007-10-02 Roland McGrath <roland@redhat.com>
143
144 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
145 structure_type.
146
Roland McGrathd1a48172007-08-07 19:51:01 +00001472007-08-07 Roland McGrath <roland@redhat.com>
148
149 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
150 error code is DWARF_E_NOERROR (0).
151
152 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
153 Fix typo in __libdw_visit_scopes argument.
154
155 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
156 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
157
Roland McGrath87d47802007-07-16 22:23:37 +00001582007-07-03 Roland McGrath <roland@redhat.com>
159
160 * libdw.h (__extern_inline): New macro.
161 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
162
Roland McGrath43da9892007-04-16 23:13:37 +00001632007-04-16 Roland McGrath <roland@redhat.com>
164
165 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
166
Roland McGrathbf2ee482007-04-05 09:27:36 +00001672007-04-05 Roland McGrath <roland@redhat.com>
168
Roland McGrath43da9892007-04-16 23:13:37 +0000169 * dwarf_getsrcdirs.c: New file.
170 * Makefile.am (libdw_a_SOURCES): Add it.
171 * libdw.h: Declare dwarf_getsrcdirs.
172 * libdw.map (ELFUTILS_0.127): Add it.
173
174 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
175 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
176 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
177 Save DIRARRAY in the Dwarf_Files.
178
Roland McGrathbf2ee482007-04-05 09:27:36 +0000179 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
180 address to check for all-ones base address entry. Check directly.
181 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
182
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00001832007-03-25 Roland McGrath <roland@redhat.com>
184
185 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
186 Return NULL when freeing RESULT on error.
187 (global_read, scngrp_read): Check return value from check_section,
188 break out of loop after it has freed RESULT.
189 (valid_p): Handle null argument.
190
Ulrich Drepper6258e742007-03-13 06:22:40 +00001912007-03-12 Roland McGrath <roland@redhat.com>
192
193 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
194
1952007-03-04 Roland McGrath <roland@redhat.com>
196
197 * libdw.map (ELFUTILS_0.127): New version set, inherits from
198 ELFUTILS_0.126. Add dwfl_module_addrsym.
199
Ulrich Drepper903c1162007-02-15 19:40:37 +00002002007-02-10 Roland McGrath <roland@redhat.com>
201
202 * dwarf.h (DW_OP_fbreg): Comment fix.
203
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00002042007-02-03 Roland McGrath <roland@redhat.com>
205
206 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
207 * libdw.map (ELFUTILS_0.126): New version set, inherits from
208 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
209 exported in the past.
210
Roland McGrath8190db62006-12-17 23:56:51 +00002112006-12-17 Roland McGrath <roland@redhat.com>
212
213 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
214 address when the CU is missing attributes due to buggy GCC.
215
Roland McGrathc373d852006-10-10 00:25:21 +00002162006-08-29 Roland McGrath <roland@redhat.com>
217
218 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
219
220 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
221 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
222
223 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
224 result is aligned. Adjust NEWP->remaining here for this allocation.
225 * libdwP.h: Update decl.
226 (libdw_alloc): Update caller.
227
Ulrich Drepper077c65f2006-07-12 19:54:51 +00002282006-07-12 Ulrich Drepper <drepper@redhat.com>
229
230 * dwarf_child.c: Adjust for internal_function_def removal.
231 * dwarf_getabbrev.c: Likewise.
232 * dwarf_tag.c: Likewise.
233 * libdw_form.c: Likewise.
234 * memory-access.c: Likewise.
235
Ulrich Dreppere1812e12006-07-12 07:46:03 +00002362006-06-28 Roland McGrath <roland@redhat.com>
237
238 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
239
240 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
241 dwfl_module_getsym.
242
Ulrich Drepper3be74472006-05-27 18:15:40 +00002432006-05-27 Ulrich Drepper <drepper@redhat.com>
244
245 * libdw.h: Add extern "C".
246
Ulrich Dreppere7a73172006-05-22 18:16:45 +00002472006-05-22 Ulrich Drepper <drepper@redhat.com>
248
249 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
250 aranges information.
251
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +00002522006-05-21 Ulrich Drepper <drepper@redhat.com>
253
254 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
255 dwarf_haschildren.
256
Roland McGrath2dade662006-02-28 22:13:20 +00002572006-02-28 Roland McGrath <roland@redhat.com>
258
259 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
260 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
261 values from DWARF 3.0.
262
Roland McGrath08333122006-02-27 04:54:26 +00002632006-02-22 Roland McGrath <roland@redhat.com>
264
265 * libdw.map: Bump to 0.120; export dwfl_version.
266
Roland McGrath50ffcbf2005-12-23 01:51:43 +00002672005-12-22 Roland McGrath <roland@redhat.com>
268
269 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
270
Roland McGrathdec3a242005-12-12 08:35:55 +00002712005-12-12 Roland McGrath <roland@redhat.com>
272
273 * dwarf_ranges.c: Copy CU base address-finding code from
274 dwarf_getlocation.
275
Roland McGrathf64a4422005-12-09 23:40:30 +00002762005-12-09 Roland McGrath <roland@redhat.com>
277
278 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
279 Delay CU base lookup until it's needed.
280 If CU base lookup fails with no error, flag invalid DWARF.
281
Roland McGrath994b4892005-12-05 22:46:21 +00002822005-11-25 Roland McGrath <roland@redhat.com>
283
284 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
285
Roland McGrathe47ab762005-11-17 03:16:00 +00002862005-11-15 Roland McGrath <roland@redhat.com>
287
288 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
289
2902005-11-13 Roland McGrath <roland@redhat.com>
291
292 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
293
Roland McGrath07d4f2f2005-10-28 06:56:24 +00002942005-10-27 Roland McGrath <roland@redhat.com>
295
296 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
297 don't match end_sequence markers.
298
299 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
300 before normal records at the same address.
301 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
302 marker.
303
3042005-10-26 Roland McGrath <roland@redhat.com>
305
Roland McGrath6724c902005-10-28 07:07:19 +0000306 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
307 * dwarf_func_file.c: Renamed to ...
308 * dwarf_decl_file.c: ... here.
309 * dwarf_func_col.c: Renamed to ...
310 * dwarf_decl_column.c: ... here.
311 * dwarf_func_line.c: Renamed to ...
312 * dwarf_decl_line.c: ... here.
313 (dwarf_func_line): Renamed to ...
314 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
315 (__libdw_func_intval): Renamed __libdw_attr_intval.
316 * dwarf_func_name.c: File removed.
317 * dwarf_func_lowpc.c: File removed.
318 * dwarf_func_highpc.c: File removed.
319 * dwarf_func_entrypc.c: File removed.
320 * dwarf_func_die.c: File removed.
321 * Makefile.am (libdw_a_SOURCES): Updated.
322 * libdw.h: Update decls.
323 (Dwarf_Func): Type removed.
324 * libdwP.h: Update decls.
325 (struct Dwarf_Func_s): Type removed.
326 * libdw.map: Updated.
327
328 * libdwP.h (CUDIE): New macro.
329 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
330 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
331 * dwarf_ranges.c (dwarf_ranges): Likewise.
332
333 * dwarf_getloclist.c: Renamed to ...
334 * dwarf_getlocation.c: ... here.
335 (getloclist): Renamed to getlocation.
336 (dwarf_getloclist): Renamed to dwarf_getlocation.
337 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
338 * Makefile.am (libdw_a_SOURCES): Updated.
339 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
340 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
341 (Dwarf_Loc): Renamed Dwarf_Op.
342 * libdwP.h (struct loc_s): Update use.
343 * libdw.map: Update map.
344
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000345 * dwarf_entry_breakpoints.c: Use the second line record within the
346 function, regardless of its source location data.
347
3482005-10-25 Roland McGrath <roland@redhat.com>
349
350 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
351
352 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
353
3542005-10-14 Roland McGrath <roland@redhat.com>
355
356 * dwarf_diecu.c (dwarf_diecu): New file.
357 * Makefile.am (libdw_a_SOURCES): Add it.
358 * libdw.h: Declare dwarf_diecu.
359 * libdw.map: Export it.
360
361 * libdw.map: Bump to 0.116; export dwarf_ranges.
362
3632005-09-20 Roland McGrath <roland@redhat.com>
364
365 * dwarf_haspc.c: Use dwarf_ranges.
366 * dwarf_entry_breakpoints.c: Likewise.
367
368 * dwarf_ranges.c: New file.
369 * Makefile.am (libdw_a_SOURCES): Add it.
370 * libdw.h: Declare dwarf_ranges.
371 * libdwP.h: Add INTDECL.
372
3732005-09-14 Roland McGrath <roland@redhat.com>
374
375 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
376 prologue_end marker scanning loop.
377
3782005-09-11 Roland McGrath <roland@redhat.com>
379
380 * dwarf.h: Comment typo fix.
381
3822005-09-07 Roland McGrath <roland@redhat.com>
383
384 * dwarf_entry_breakpoints.c: New file.
385 * Makefile.am (libdw_a_SOURCES): Add it.
386 * libdw.h: Declare dwarf_entry_breakpoints.
387
388 * dwarf_entrypc.c: New file.
389 * Makefile.am (libdw_a_SOURCES): Add it.
390 * libdw.h: Declare dwarf_entrypc.
391 * libdwP.h: Add INTDECL.
392
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00003932005-08-28 Ulrich Drepper <drepper@redhat.com>
394
395 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
396 (%.os): Use COMPILE.os.
397 (COMPILE.os): Filter out gconv options.
398
Roland McGrath71e15a02005-08-27 10:33:26 +00003992005-08-27 Roland McGrath <roland@redhat.com>
400
401 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
402 __libdw_visit_scopes.
403
404 * dwarf_getscopes_die.c: New file.
405 * Makefile.am (libdw_a_SOURCES): Add it.
406 * libdw.h: Declare dwarf_getscopes_die.
407 * libdw.map: Bump to 0.115 and add it.
408
409 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
410 containing a DIE and its parent pointer, instead of just Dwarf_Die.
411 Take two functions for both preorder and postorder visitors.
412 * libdwP.h: Update decl.
413 (struct Dwarf_Die_Chain): New type.
414 * dwarf_func_inline.c: Update uses.
415
416 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
417 Add INTDEF.
418 * libdwP.h: Add INTDECL.
419 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
420
Roland McGrathd17fac72005-08-23 08:20:21 +00004212005-08-23 Roland McGrath <roland@redhat.com>
422
423 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
424 DW_AT_specification the same as DW_AT_abstract_origin.
425
4262005-08-20 Roland McGrath <roland@redhat.com>
427
428 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
429 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
430 and dwfl_report_offline.
431
4322005-08-19 Roland McGrath <roland@redhat.com>
433
434 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
435 Add dwfl_module_relocate_address, dwfl_module_relocations,
436 dwfl_module_relocation_info.
437
Roland McGrathf5fda7d2005-08-18 22:01:57 +00004382005-08-18 Roland McGrath <roland@redhat.com>
439
440 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
441 outermost scope in the results.
442
Roland McGrath1ecb6062005-08-15 09:53:04 +00004432005-08-15 Roland McGrath <roland@redhat.com>
444
445 * dwarf_func_inline.c: New file.
446 * Makefile.am (libdw_a_SOURCES): Add it.
447 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
448 * libdw.map: Add them.
449
450 * dwarf_func_die.c: New file.
451 * Makefile.am (libdw_a_SOURCES): Add it.
452 * libdw.h: Declare dwarf_func_die.
453 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
454
Roland McGrath1c83bf12005-08-11 07:03:55 +00004552005-08-10 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000456
Roland McGrath1c83bf12005-08-11 07:03:55 +0000457 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
458 of DW_LNS_set_epilog_begin.
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000459
Roland McGrath4959bf82005-08-09 10:31:08 +00004602005-08-09 Roland McGrath <roland@redhat.com>
461
Roland McGrathb6312e12005-08-09 10:36:01 +0000462 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
463
Roland McGrath4959bf82005-08-09 10:31:08 +0000464 * dwarf_end.c: Add INTDEF.
465 * dwarf_error.c (dwarf_errmsg): Likewise.
466 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
467
Roland McGratha5a89682005-08-02 01:24:01 +00004682005-08-01 Roland McGrath <roland@redhat.com>
469
470 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
471 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
472
Ulrich Drepper18618fd2005-07-28 21:29:22 +00004732005-07-28 Ulrich Drepper <drepper@redhat.com>
474
475 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
476 (libdw_a_LIBADD): Add all files from libdwfl.a.
477
Roland McGrath366784a2005-07-28 06:20:53 +00004782005-07-27 Roland McGrath <roland@redhat.com>
479
Roland McGrath18385902005-07-28 07:12:38 +0000480 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
481 along with ../libebl/libebl.a and ../lib/libeu.a;
482 depend on ../libelf/libelf.so.
483 (libdw_so_LDADD): New variable.
484 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
485
Roland McGrath366784a2005-07-28 06:20:53 +0000486 * libdw.map: Define an empty base version and move all symbols to
487 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
488
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00004892005-07-23 Ulrich Drepper <drepper@redhat.com>
490
491 * dwarf_error.c: Add internal alias for dwarf_errno.
492 * libdwP.h: Declare __dwarf_errno_internal.
493 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
494
495 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
496 global_error.
497
4982005-06-01 Roland McGrath <roland@redhat.com>
499
500 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
501 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
502
5032005-06-08 Roland McGrath <roland@redhat.com>
504
505 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
506 (get_sleb128_step, get_sleb128): Likewise.
507 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
508 * dwarf_getloclist.c (getloclist): Likewise.
509 * dwarf_formblock.c (dwarf_formblock): Likewise.
510 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
511 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
512 * dwarf_formref.c (dwarf_formref): Likewise.
513 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
514 * dwarf_formudata.c (dwarf_formudata): Likewise.
515 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
516 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
517 * dwarf_tag.c (dwarf_tag): Likewise.
518 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
519 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
520 * libdw_form.c (__libdw_form_val_len): Likewise.
521 * libdwP.h: Update decl.
522
5232005-06-04 Roland McGrath <roland@redhat.com>
524
525 * memory-access.h (get_uleb128_rest_return): New macro.
526 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
527 (get_sleb128_rest_return): New macro.
528 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
529 * memory-access.c: New file.
530 * Makefile.am (libdw_a_SOURCES): Add it.
531 (DEFS): Add -DIS_LIBDW.
532
5332005-05-31 Roland McGrath <roland@redhat.com>
534
535 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
536 formref offset.
537
5382005-05-30 Roland McGrath <roland@redhat.com>
539
540 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
541 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
542
543 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
544 BEGIN value. Instead, match base address entries separately for
545 32/64 size cases.
546
5472005-05-28 Roland McGrath <roland@redhat.com>
548
549 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
550 past location expression contents.
551
5522005-05-23 Roland McGrath <roland@redhat.com>
553
554 * dwarf_getsrclines.c: Comment typo fix.
555
556 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
557 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
558
5592005-05-22 Ulrich Drepper <drepper@redhat.com>
560
561 * libdwP.h: Only use INTDECL for alias prototypes.
562
5632005-05-19 Roland McGrath <roland@redhat.com>
564
565 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
566
567 * dwarf_getscopevar.c: New file.
568 * Makefile.am (libdw_a_SOURCES): Add it.
569 * libdw.h: Declare dwarf_getscopevar.
570
571 * dwarf_getsrcfiles.c: Add INTDEF.
572 * dwarf_haschildren.c: Likewise.
573 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
574
575 * dwarf_getscopes.c: New file.
576 * Makefile.am (libdw_a_SOURCES): Add it.
577 * libdw.h: Declare dwarf_getscopes.
578 * libdw.map: Add it.
579
5802005-05-18 Roland McGrath <roland@redhat.com>
581
582 * libdwP.h (IDX_debug_ranges): New enum constant.
583 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
584 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
585 * dwarf_error.c (errmsgs): Add it.
586 * dwarf_haspc.c: New file.
587 * libdw.h: Declare dwarf_haspc.
588 * libdw.map: Add it.
589 * libdwP.h: Add INTDECL.
590
591 * dwarf_attr_integrate.c: New file.
592 * dwarf_hasattr_integrate.c: New file.
593 * Makefile.am (libdw_a_SOURCES): Add them.
594 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
595 * libdw.map: Add them.
596
597 * dwarf_hasattr.c: Add INTDEF.
598 * libdwP.h: Add INTDECL for it.
599
600 * dwarf_formref_die.c: New file.
601 * Makefile.am (libdw_a_SOURCES): Add it.
602 * libdw.h (dwarf_formref_die): Declare it.
603 * libdwP.h (dwarf_formref_die): Add INTDECL.
604 * libdw.map: Add it.
605
606 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
607 of ...
608 (dwarf_getloclist): ... here. Call them.
609 (dwarf_addrloclists): New function.
610 * libdw.h: Declare it.
611 * libdw.map: Add it.
612
613 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
614 DW_MACINFO_end_file. Recognize type 0 as terminator.
615
6162005-05-05 Roland McGrath <roland@redhat.com>
617
618 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
619
620 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
621 the line program does not produce all entries in ascending order.
622
6232005-04-25 Ulrich Drepper <drepper@redhat.com>
624
625 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
626 occurences (e.g., inlines) better.
627
6282005-04-24 Ulrich Drepper <drepper@redhat.com>
629
630 * libdw.h (DWARF_END_ABBREV): Define.
631 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
632 end is reached.
633 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
634 of records reached.
635 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
636 as error of __libdw_getabbrev.
637
6382005-04-04 Ulrich Drepper <drepper@redhat.com>
639
640 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
641
642 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
643 results back to caller.
644
6452005-04-04 Roland McGrath <roland@redhat.com>
646
647 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
648
649 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
650 defn.
651
6522005-04-04 Ulrich Drepper <drepper@redhat.com>
653
654 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
655
656 * dwarf_getsrc_file.c: New file.
657 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
658 * libdw.h: Declare dwarf_getsrc_file.
659 * libdw.map: Add dwarf_getsrc_file.
660
6612005-04-02 Ulrich Drepper <drepper@redhat.com>
662
663 * dwarf_func_entrypc.c: New file.
664 * dwarf_func_col.c: New file.
665 * dwarf_func_line.c: New file.
666 * dwarf_func_file.c: New file.
667 * libdw.h: Add prototypes for new functions.
668 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
669 dwarf_func_file.
670 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
671 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
672 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
673 Declare __libdw_func_intval and __dwarf_formsdata_internal.
674 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
675 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
676
677 * dwarf.h: Add some DWARF3 definitions.
678
6792005-04-01 Ulrich Drepper <drepper@redhat.com>
680
681 * dwarf_getfuncs.c: New file.
682 * dwarf_func_highpc.c: New file.
683 * dwarf_func_lowpc.c: New file.
684 * dwarf_func_name.c: New file.
685 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
686 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
687 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
688 and dwarf_func_name.
689 * libdw.h: Add prototypes for new functions.
690 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
691 * dwarf_siblingof.c: Likewise.
692 * dwarf_dieoffset.c: Likewise.
693 * dwarf_highpc.c: Likewise.
694 * dwarf_lowpc.c: Likewise.
695 * libdwP.h: Add prototypes for internal functions.
696 Define Dwarf_Func_s structure.
697
6982005-03-29 Ulrich Drepper <drepper@redhat.com>
699
700 * libdw.h: Add padding in Dwarf_die.
701
702 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
703 * dwarf_attr.c: Likewise.
704 * dwarf_begin.c: Likewise.
705 * dwarf_begin_elf.c: Likewise.
706 * dwarf_bitoffset.c: Likewise.
707 * dwarf_bitsize.c: Likewise.
708 * dwarf_bytesize.c: Likewise.
709 * dwarf_diename.c: Likewise.
710 * dwarf_formaddr.c: Likewise.
711 * dwarf_formblock.c: Likewise.
712 * dwarf_formref.c: Likewise.
713 * dwarf_formstring.c: Likewise.
714 * dwarf_formudata.c: Likewise.
715 * dwarf_getarange_addr.c: Likewise.
716 * dwarf_getarangeinfo.c: Likewise.
717 * dwarf_getaranges.c: Likewise.
718 * dwarf_getloclist.c: Likewise.
719 * dwarf_getmacros.c: Likewise.
720 * dwarf_getsrc_die.c: Likewise.
721 * dwarf_getsrcfiles.c: Likewise.
722 * dwarf_getsrclines.c: Likewise.
723 * dwarf_highpc.c: Likewise.
724 * dwarf_lowpc.c: Likewise.
725 * dwarf_nextcu.c: Likewise.
726 * dwarf_offdie.c: Likewise.
727 * dwarf_siblingof.c: Likewise.
728 * dwarf_srclang.c: Likewise.
729 * dwarf_tag.c: Likewise.
730 * libdw_findcu.c: Likewise.
731 * libdwP.h: Add prototypes for internal functions.
732
733 * dwarf_addrdie.c: New file.
734 * dwarf_macro_opcode.c: New file.
735 * dwarf_macro_param1.c: New file.
736 * dwarf_macro_param2.c: New file.
737 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
738 * libdwP.h: Remove Dwarf_Macro definition.
739 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
740 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
741 * libdw.map: Add entries for new functions.
742
7432005-03-21 Ulrich Drepper <drepper@redhat.com>
744
745 * libdw.h: Handle broken gcc < 4.
746
7472005-02-15 Ulrich Drepper <drepper@redhat.com>
748
749 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
750
751 * dwarf_begin_elf.c: Fix warnings.
752 * dwarf_dieoffset.c: Likewise.
753 * dwarf_end.c: Likewise.
754 * dwarf_error.c: Likewise.
755 * dwarf_getpubnames.c: Likewise.
756
757 * libdwP.h: Add new error values.
758 * dwarf_error.c: Support new error values.
759 * dwarf_getpubnames.c: Check parameter value.
760
7612005-02-05 Ulrich Drepper <drepper@redhat.com>
762
763 * Makefile.am: Check for text relocations in constructed DSO.
764
765 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
766
7672005-02-04 Ulrich Drepper <drepper@redhat.com>
768
769 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
770 checks to not read over buffer boundaries for ill-formed DWARF data.
771
7722004-09-25 Ulrich Drepper <drepper@redhat.com>
773
774 * dwarf_child.c: Make compile with gcc 4.0.
775 * dwarf_error.c: Likewise.
776 * dwarf_formblock.c: Likewise.
777 * dwarf_getabbrev.c: Likewise.
778 * dwarf_getattrs.c: Likewise.
779 * dwarf_getsrclines.c: Likewise.
780 * dwarf_tag.c: Likewise.
781 * libdw_form.c: Likewise.
782
7832004-01-20 Ulrich Drepper <drepper@redhat.com>
784
785 * Makefile.am: Support building with mudflap.
786
787 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
788 * dwarf_getsrclines.c: Likewise.
789 * dwarf_memory-access.h: Likewise.
790
7912004-01-19 Ulrich Drepper <drepper@redhat.com>
792
793 * dwarf_getsrcfiles.c: Third parameter can be NULL.
794
795 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
796 Third parameter of dwarf_getsrcfiles can be NULL.
797
798 * libdw.map: Add dwarf_getmacros.
799 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
800 * dwarf_getmacros.c: New file.
801
8022004-01-18 Ulrich Drepper <drepper@redhat.com>
803
804 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
805
806 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
807
808 * dwarf_getsrclines.c:
809 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
810
811 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
812
813 * libdwP.h (_): Use elfutils domain.
814
815 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
816
817 * dwarf_getsrclines.c: Fix typo in comment.
818
8192004-01-17 Ulrich Drepper <drepper@redhat.com>
820
821 * Makefile.am: Support building with mudflap.
822
8232004-01-16 Ulrich Drepper <drepper@redhat.com>
824
825 * memory-access.h: Add lots of const in case a pointer passed is const.
826
827 * dwarf_formflag.c: New file.
828 * dwarf_getattrs.c: New file.
829 * dwarf_error.c: Add new error value.
830 * libdw.h: Add prototypes for new functions. Adjust prototype for
831 dwarf_getpubnames.
832 * libdw.map: Add new functions.
833 * dwarf_getpubnames.c: Change type of return value and fourth parameter
834 to ptrdiff_t.
835 * libdwP.h: Add new error value.
836 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
837 dwarf_formflag.c.
838
839 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
840
8412004-01-12 Ulrich Drepper <drepper@redhat.com>
842
843 * dwarf_getarange_addr.c: New file
844 * dwarf_getarangeinfo.c: New file.
845 * dwarf_getaranges.c: New file.
846 * dwarf_onerange.c: New file.
847 * libdw.h: Declare new functions. Define Dwarf_Arange and
848 Dwarf_Aranges.
849 * libdw.map: Add new functions.
850 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
851 Define Dwarf_Aranges_s and Dwarf_Arange_s.
852 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
853 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
854 * dwarf_error.c: Add new message.
855
8562004-01-11 Ulrich Drepper <drepper@redhat.com>
857
858 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
859 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
860 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
861 * dwarf_error.c: Add another message.
862 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
863 introduction.
864 * dwarf_filesrc.c: Likewise.
865 * dwarf_getsrcfiles.c: Likewise.
866 * dwarf_getsrclines.c: Likewise.
867 * dwarf_lineaddr.c: New file.
868 * dwarf_linebeginstatement.c: New file.
869 * dwarf_lineblock.c: New file.
870 * dwarf_linecol.c: New file.
871 * dwarf_lineendsequence.c: New file.
872 * dwarf_lineepiloguebegin.c: New file.
873 * dwarf_lineno.c: New file.
874 * dwarf_lineprologueend.c: New file.
875 * dwarf_onesrcline.c: New file.
876 * dwarf_lineno.c: Change interface to store result in object pointed
877 to by second parameter.
878 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
879 prototype. Define Dwarf_Files and Dwarf_Lines.
880 * libdw.map: Add new functions.
881 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
882 * libdw_findcu.c: Don't initialize nlines field.
883
884 * dwarf_siblingof: Little optimization.
885
886 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
887 * dwarf_end.c: Close ELF descriptor if free_elf is set.
888 * libdwP.h (struct Dwarf): Add free_elf field.
889
890 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
891 dwarf_offabbrev.c.
892 * dwarf_getstring.c: New file.
893 * dwarf_offabbrev.c: New file.
894 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
895 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
896 parameters. Don't allocate memory if not necessary and don't lookup
897 previous results if no CU given.
898 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
899 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
900 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
901 * libdwP.h: Change prototype for __libdw_getabbrev.
902
903 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
904 returning if this is wanted.
905
9062004-01-09 Ulrich Drepper <drepper@redhat.com>
907
908 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
909 with offset_size value.
910 * libdw.h: Adjust dwarf_nextcu prototype.
911 * libdwP.h (struct Dwarf_CU): Add offset_size member.
912 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
913 member of new CU struct.
914 * dwarf_formstring.c: Depend on offset_size not address_size for
915 DW_FORM_strp handling.
916 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
917
918 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
919 failing lookup.
920 (dwarf_tag): Correctly recognize failed lookup.
921
922 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
923 function noop_free.
924 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
925 * dwarf_formblock.c: New file.
926 * dwarf_getloclist.c: Rewrite to handle a single block.
927 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
928 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
929 dwarf_getloclistent declaration.
930 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
931 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
932 Add locs member to struct Dwarf_CU.
933 * libdw_fundcu.c: Initialize locs member of new CU.
934 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
935 Remove dwarf_getloclistent.c.
936
9372004-01-07 Ulrich Drepper <drepper@redhat.com>
938
939 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
940 * libdwP.h: Likewise.
941
942 * dwarf_getloclist.c: New file.
943 * dwarf_getloclistent.c: New file.
944 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
945 Declare dwarf_getloclistent and dwarf_getloclist.
946 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
947 * libdwP.h: Define DWARF_E_NO_LOCLIST.
948 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
949 dwarf_getloclist.c.
950
951 * dwarf_error.c: More error messages.
952
9532004-01-06 Ulrich Drepper <drepper@redhat.com>
954
955 * dwarf_getsrclines.c: Remove debugging support.
956
957 * dwarf_getsrcfiles.c: New file.
958 * dwarf_filesrc.c: New file.
959 * libdw.h: Declare these functions. Define Dwarf_File.
960 * libdwP.c: Adjust Dwarf_File_s definition.
961 * libdw.map: Add these functions.
962 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
963 dwarf_filesrc.c.
964 * dwarf_getsrclines.c: Initialize cu->files.
965
9662004-01-05 Ulrich Drepper <drepper@redhat.com>
967
968 * libdw.h: Add more nonnull function attributes.
969
970 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
971 * dwarf_end.c (cu_free): New function.
972 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
973 * dwarf_error.c (errmsgs): Add new messages.
974 * dwarf_getsrc_die.c: New file.
975 * dwarf_getsrclines.c: New file.
976 * dwarf_lineno.c: New file.
977 * dwarf_linesrc.c: New file.
978 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
979 instead of the *_inc-less variants.
980 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
981 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
982 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
983 and dwarf_linesrc.
984 * libdwP.h: Add more error codes.
985 (struct Dwarf): Remove mem_tail.next member.
986 (Dwarf_File): Define type.
987 (struct Dwarf_Line_s): Define type.
988 (struct Dwarf_CU): Add lines and nlines members.
989 (libdw_alloc): Define local variable _tail and use it.
990 Add some function attributes.
991 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
992 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
993 * memory-access.h: Add unlikely for the endian conversion paths.
994 * Makefile.am (AM_CFLAGS): Add -std parameter.
995 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
996 dwarf_lineno, and dwarf_linesrc.
997
9982003-08-11 Ulrich Drepper <drepper@redhat.com>
999
1000 * Moved to CVS archive.