blob: 85f12c4e9f31f47236a68ef437d63fb4f56cd900 [file] [log] [blame]
Ulrich Drepper18618fd2005-07-28 21:29:22 +000012005-07-28 Ulrich Drepper <drepper@redhat.com>
2
3 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
4 (libdw_a_LIBADD): Add all files from libdwfl.a.
5
Roland McGrath366784a2005-07-28 06:20:53 +000062005-07-27 Roland McGrath <roland@redhat.com>
7
Roland McGrath18385902005-07-28 07:12:38 +00008 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
9 along with ../libebl/libebl.a and ../lib/libeu.a;
10 depend on ../libelf/libelf.so.
11 (libdw_so_LDADD): New variable.
12 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
13
Roland McGrath366784a2005-07-28 06:20:53 +000014 * libdw.map: Define an empty base version and move all symbols to
15 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
16
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000172005-07-23 Ulrich Drepper <drepper@redhat.com>
18
19 * dwarf_error.c: Add internal alias for dwarf_errno.
20 * libdwP.h: Declare __dwarf_errno_internal.
21 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
22
23 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
24 global_error.
25
262005-06-01 Roland McGrath <roland@redhat.com>
27
28 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
29 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
30
312005-06-08 Roland McGrath <roland@redhat.com>
32
33 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
34 (get_sleb128_step, get_sleb128): Likewise.
35 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
36 * dwarf_getloclist.c (getloclist): Likewise.
37 * dwarf_formblock.c (dwarf_formblock): Likewise.
38 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
39 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
40 * dwarf_formref.c (dwarf_formref): Likewise.
41 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
42 * dwarf_formudata.c (dwarf_formudata): Likewise.
43 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
44 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
45 * dwarf_tag.c (dwarf_tag): Likewise.
46 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
47 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
48 * libdw_form.c (__libdw_form_val_len): Likewise.
49 * libdwP.h: Update decl.
50
512005-06-04 Roland McGrath <roland@redhat.com>
52
53 * memory-access.h (get_uleb128_rest_return): New macro.
54 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
55 (get_sleb128_rest_return): New macro.
56 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
57 * memory-access.c: New file.
58 * Makefile.am (libdw_a_SOURCES): Add it.
59 (DEFS): Add -DIS_LIBDW.
60
612005-05-31 Roland McGrath <roland@redhat.com>
62
63 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
64 formref offset.
65
662005-05-30 Roland McGrath <roland@redhat.com>
67
68 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
69 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
70
71 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
72 BEGIN value. Instead, match base address entries separately for
73 32/64 size cases.
74
752005-05-28 Roland McGrath <roland@redhat.com>
76
77 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
78 past location expression contents.
79
802005-05-23 Roland McGrath <roland@redhat.com>
81
82 * dwarf_getsrclines.c: Comment typo fix.
83
84 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
85 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
86
872005-05-22 Ulrich Drepper <drepper@redhat.com>
88
89 * libdwP.h: Only use INTDECL for alias prototypes.
90
912005-05-19 Roland McGrath <roland@redhat.com>
92
93 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
94
95 * dwarf_getscopevar.c: New file.
96 * Makefile.am (libdw_a_SOURCES): Add it.
97 * libdw.h: Declare dwarf_getscopevar.
98
99 * dwarf_getsrcfiles.c: Add INTDEF.
100 * dwarf_haschildren.c: Likewise.
101 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
102
103 * dwarf_getscopes.c: New file.
104 * Makefile.am (libdw_a_SOURCES): Add it.
105 * libdw.h: Declare dwarf_getscopes.
106 * libdw.map: Add it.
107
1082005-05-18 Roland McGrath <roland@redhat.com>
109
110 * libdwP.h (IDX_debug_ranges): New enum constant.
111 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
112 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
113 * dwarf_error.c (errmsgs): Add it.
114 * dwarf_haspc.c: New file.
115 * libdw.h: Declare dwarf_haspc.
116 * libdw.map: Add it.
117 * libdwP.h: Add INTDECL.
118
119 * dwarf_attr_integrate.c: New file.
120 * dwarf_hasattr_integrate.c: New file.
121 * Makefile.am (libdw_a_SOURCES): Add them.
122 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
123 * libdw.map: Add them.
124
125 * dwarf_hasattr.c: Add INTDEF.
126 * libdwP.h: Add INTDECL for it.
127
128 * dwarf_formref_die.c: New file.
129 * Makefile.am (libdw_a_SOURCES): Add it.
130 * libdw.h (dwarf_formref_die): Declare it.
131 * libdwP.h (dwarf_formref_die): Add INTDECL.
132 * libdw.map: Add it.
133
134 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
135 of ...
136 (dwarf_getloclist): ... here. Call them.
137 (dwarf_addrloclists): New function.
138 * libdw.h: Declare it.
139 * libdw.map: Add it.
140
141 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
142 DW_MACINFO_end_file. Recognize type 0 as terminator.
143
1442005-05-05 Roland McGrath <roland@redhat.com>
145
146 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
147
148 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
149 the line program does not produce all entries in ascending order.
150
1512005-04-25 Ulrich Drepper <drepper@redhat.com>
152
153 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
154 occurences (e.g., inlines) better.
155
1562005-04-24 Ulrich Drepper <drepper@redhat.com>
157
158 * libdw.h (DWARF_END_ABBREV): Define.
159 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
160 end is reached.
161 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
162 of records reached.
163 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
164 as error of __libdw_getabbrev.
165
1662005-04-04 Ulrich Drepper <drepper@redhat.com>
167
168 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
169
170 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
171 results back to caller.
172
1732005-04-04 Roland McGrath <roland@redhat.com>
174
175 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
176
177 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
178 defn.
179
1802005-04-04 Ulrich Drepper <drepper@redhat.com>
181
182 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
183
184 * dwarf_getsrc_file.c: New file.
185 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
186 * libdw.h: Declare dwarf_getsrc_file.
187 * libdw.map: Add dwarf_getsrc_file.
188
1892005-04-02 Ulrich Drepper <drepper@redhat.com>
190
191 * dwarf_func_entrypc.c: New file.
192 * dwarf_func_col.c: New file.
193 * dwarf_func_line.c: New file.
194 * dwarf_func_file.c: New file.
195 * libdw.h: Add prototypes for new functions.
196 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
197 dwarf_func_file.
198 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
199 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
200 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
201 Declare __libdw_func_intval and __dwarf_formsdata_internal.
202 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
203 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
204
205 * dwarf.h: Add some DWARF3 definitions.
206
2072005-04-01 Ulrich Drepper <drepper@redhat.com>
208
209 * dwarf_getfuncs.c: New file.
210 * dwarf_func_highpc.c: New file.
211 * dwarf_func_lowpc.c: New file.
212 * dwarf_func_name.c: New file.
213 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
214 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
215 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
216 and dwarf_func_name.
217 * libdw.h: Add prototypes for new functions.
218 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
219 * dwarf_siblingof.c: Likewise.
220 * dwarf_dieoffset.c: Likewise.
221 * dwarf_highpc.c: Likewise.
222 * dwarf_lowpc.c: Likewise.
223 * libdwP.h: Add prototypes for internal functions.
224 Define Dwarf_Func_s structure.
225
2262005-03-29 Ulrich Drepper <drepper@redhat.com>
227
228 * libdw.h: Add padding in Dwarf_die.
229
230 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
231 * dwarf_attr.c: Likewise.
232 * dwarf_begin.c: Likewise.
233 * dwarf_begin_elf.c: Likewise.
234 * dwarf_bitoffset.c: Likewise.
235 * dwarf_bitsize.c: Likewise.
236 * dwarf_bytesize.c: Likewise.
237 * dwarf_diename.c: Likewise.
238 * dwarf_formaddr.c: Likewise.
239 * dwarf_formblock.c: Likewise.
240 * dwarf_formref.c: Likewise.
241 * dwarf_formstring.c: Likewise.
242 * dwarf_formudata.c: Likewise.
243 * dwarf_getarange_addr.c: Likewise.
244 * dwarf_getarangeinfo.c: Likewise.
245 * dwarf_getaranges.c: Likewise.
246 * dwarf_getloclist.c: Likewise.
247 * dwarf_getmacros.c: Likewise.
248 * dwarf_getsrc_die.c: Likewise.
249 * dwarf_getsrcfiles.c: Likewise.
250 * dwarf_getsrclines.c: Likewise.
251 * dwarf_highpc.c: Likewise.
252 * dwarf_lowpc.c: Likewise.
253 * dwarf_nextcu.c: Likewise.
254 * dwarf_offdie.c: Likewise.
255 * dwarf_siblingof.c: Likewise.
256 * dwarf_srclang.c: Likewise.
257 * dwarf_tag.c: Likewise.
258 * libdw_findcu.c: Likewise.
259 * libdwP.h: Add prototypes for internal functions.
260
261 * dwarf_addrdie.c: New file.
262 * dwarf_macro_opcode.c: New file.
263 * dwarf_macro_param1.c: New file.
264 * dwarf_macro_param2.c: New file.
265 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
266 * libdwP.h: Remove Dwarf_Macro definition.
267 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
268 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
269 * libdw.map: Add entries for new functions.
270
2712005-03-21 Ulrich Drepper <drepper@redhat.com>
272
273 * libdw.h: Handle broken gcc < 4.
274
2752005-02-15 Ulrich Drepper <drepper@redhat.com>
276
277 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
278
279 * dwarf_begin_elf.c: Fix warnings.
280 * dwarf_dieoffset.c: Likewise.
281 * dwarf_end.c: Likewise.
282 * dwarf_error.c: Likewise.
283 * dwarf_getpubnames.c: Likewise.
284
285 * libdwP.h: Add new error values.
286 * dwarf_error.c: Support new error values.
287 * dwarf_getpubnames.c: Check parameter value.
288
2892005-02-05 Ulrich Drepper <drepper@redhat.com>
290
291 * Makefile.am: Check for text relocations in constructed DSO.
292
293 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
294
2952005-02-04 Ulrich Drepper <drepper@redhat.com>
296
297 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
298 checks to not read over buffer boundaries for ill-formed DWARF data.
299
3002004-09-25 Ulrich Drepper <drepper@redhat.com>
301
302 * dwarf_child.c: Make compile with gcc 4.0.
303 * dwarf_error.c: Likewise.
304 * dwarf_formblock.c: Likewise.
305 * dwarf_getabbrev.c: Likewise.
306 * dwarf_getattrs.c: Likewise.
307 * dwarf_getsrclines.c: Likewise.
308 * dwarf_tag.c: Likewise.
309 * libdw_form.c: Likewise.
310
3112004-01-20 Ulrich Drepper <drepper@redhat.com>
312
313 * Makefile.am: Support building with mudflap.
314
315 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
316 * dwarf_getsrclines.c: Likewise.
317 * dwarf_memory-access.h: Likewise.
318
3192004-01-19 Ulrich Drepper <drepper@redhat.com>
320
321 * dwarf_getsrcfiles.c: Third parameter can be NULL.
322
323 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
324 Third parameter of dwarf_getsrcfiles can be NULL.
325
326 * libdw.map: Add dwarf_getmacros.
327 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
328 * dwarf_getmacros.c: New file.
329
3302004-01-18 Ulrich Drepper <drepper@redhat.com>
331
332 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
333
334 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
335
336 * dwarf_getsrclines.c:
337 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
338
339 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
340
341 * libdwP.h (_): Use elfutils domain.
342
343 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
344
345 * dwarf_getsrclines.c: Fix typo in comment.
346
3472004-01-17 Ulrich Drepper <drepper@redhat.com>
348
349 * Makefile.am: Support building with mudflap.
350
3512004-01-16 Ulrich Drepper <drepper@redhat.com>
352
353 * memory-access.h: Add lots of const in case a pointer passed is const.
354
355 * dwarf_formflag.c: New file.
356 * dwarf_getattrs.c: New file.
357 * dwarf_error.c: Add new error value.
358 * libdw.h: Add prototypes for new functions. Adjust prototype for
359 dwarf_getpubnames.
360 * libdw.map: Add new functions.
361 * dwarf_getpubnames.c: Change type of return value and fourth parameter
362 to ptrdiff_t.
363 * libdwP.h: Add new error value.
364 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
365 dwarf_formflag.c.
366
367 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
368
3692004-01-12 Ulrich Drepper <drepper@redhat.com>
370
371 * dwarf_getarange_addr.c: New file
372 * dwarf_getarangeinfo.c: New file.
373 * dwarf_getaranges.c: New file.
374 * dwarf_onerange.c: New file.
375 * libdw.h: Declare new functions. Define Dwarf_Arange and
376 Dwarf_Aranges.
377 * libdw.map: Add new functions.
378 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
379 Define Dwarf_Aranges_s and Dwarf_Arange_s.
380 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
381 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
382 * dwarf_error.c: Add new message.
383
3842004-01-11 Ulrich Drepper <drepper@redhat.com>
385
386 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
387 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
388 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
389 * dwarf_error.c: Add another message.
390 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
391 introduction.
392 * dwarf_filesrc.c: Likewise.
393 * dwarf_getsrcfiles.c: Likewise.
394 * dwarf_getsrclines.c: Likewise.
395 * dwarf_lineaddr.c: New file.
396 * dwarf_linebeginstatement.c: New file.
397 * dwarf_lineblock.c: New file.
398 * dwarf_linecol.c: New file.
399 * dwarf_lineendsequence.c: New file.
400 * dwarf_lineepiloguebegin.c: New file.
401 * dwarf_lineno.c: New file.
402 * dwarf_lineprologueend.c: New file.
403 * dwarf_onesrcline.c: New file.
404 * dwarf_lineno.c: Change interface to store result in object pointed
405 to by second parameter.
406 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
407 prototype. Define Dwarf_Files and Dwarf_Lines.
408 * libdw.map: Add new functions.
409 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
410 * libdw_findcu.c: Don't initialize nlines field.
411
412 * dwarf_siblingof: Little optimization.
413
414 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
415 * dwarf_end.c: Close ELF descriptor if free_elf is set.
416 * libdwP.h (struct Dwarf): Add free_elf field.
417
418 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
419 dwarf_offabbrev.c.
420 * dwarf_getstring.c: New file.
421 * dwarf_offabbrev.c: New file.
422 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
423 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
424 parameters. Don't allocate memory if not necessary and don't lookup
425 previous results if no CU given.
426 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
427 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
428 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
429 * libdwP.h: Change prototype for __libdw_getabbrev.
430
431 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
432 returning if this is wanted.
433
4342004-01-09 Ulrich Drepper <drepper@redhat.com>
435
436 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
437 with offset_size value.
438 * libdw.h: Adjust dwarf_nextcu prototype.
439 * libdwP.h (struct Dwarf_CU): Add offset_size member.
440 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
441 member of new CU struct.
442 * dwarf_formstring.c: Depend on offset_size not address_size for
443 DW_FORM_strp handling.
444 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
445
446 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
447 failing lookup.
448 (dwarf_tag): Correctly recognize failed lookup.
449
450 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
451 function noop_free.
452 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
453 * dwarf_formblock.c: New file.
454 * dwarf_getloclist.c: Rewrite to handle a single block.
455 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
456 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
457 dwarf_getloclistent declaration.
458 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
459 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
460 Add locs member to struct Dwarf_CU.
461 * libdw_fundcu.c: Initialize locs member of new CU.
462 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
463 Remove dwarf_getloclistent.c.
464
4652004-01-07 Ulrich Drepper <drepper@redhat.com>
466
467 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
468 * libdwP.h: Likewise.
469
470 * dwarf_getloclist.c: New file.
471 * dwarf_getloclistent.c: New file.
472 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
473 Declare dwarf_getloclistent and dwarf_getloclist.
474 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
475 * libdwP.h: Define DWARF_E_NO_LOCLIST.
476 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
477 dwarf_getloclist.c.
478
479 * dwarf_error.c: More error messages.
480
4812004-01-06 Ulrich Drepper <drepper@redhat.com>
482
483 * dwarf_getsrclines.c: Remove debugging support.
484
485 * dwarf_getsrcfiles.c: New file.
486 * dwarf_filesrc.c: New file.
487 * libdw.h: Declare these functions. Define Dwarf_File.
488 * libdwP.c: Adjust Dwarf_File_s definition.
489 * libdw.map: Add these functions.
490 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
491 dwarf_filesrc.c.
492 * dwarf_getsrclines.c: Initialize cu->files.
493
4942004-01-05 Ulrich Drepper <drepper@redhat.com>
495
496 * libdw.h: Add more nonnull function attributes.
497
498 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
499 * dwarf_end.c (cu_free): New function.
500 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
501 * dwarf_error.c (errmsgs): Add new messages.
502 * dwarf_getsrc_die.c: New file.
503 * dwarf_getsrclines.c: New file.
504 * dwarf_lineno.c: New file.
505 * dwarf_linesrc.c: New file.
506 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
507 instead of the *_inc-less variants.
508 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
509 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
510 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
511 and dwarf_linesrc.
512 * libdwP.h: Add more error codes.
513 (struct Dwarf): Remove mem_tail.next member.
514 (Dwarf_File): Define type.
515 (struct Dwarf_Line_s): Define type.
516 (struct Dwarf_CU): Add lines and nlines members.
517 (libdw_alloc): Define local variable _tail and use it.
518 Add some function attributes.
519 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
520 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
521 * memory-access.h: Add unlikely for the endian conversion paths.
522 * Makefile.am (AM_CFLAGS): Add -std parameter.
523 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
524 dwarf_lineno, and dwarf_linesrc.
525
5262003-08-11 Ulrich Drepper <drepper@redhat.com>
527
528 * Moved to CVS archive.