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