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