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