blob: 5672082e713d1ae427d11bd00b6161674fb92973 [file] [log] [blame]
Roland McGrathc70ebc02010-06-16 02:21:26 -070012010-06-16 Roland McGrath <roland@redhat.com>
2
Roland McGrath4a87dfa2010-06-16 16:35:10 -07003 * dwarf_next_cfi.c: Fix version 4 return_address_register decoding.
4
Roland McGrath3e4b5bb2010-06-16 03:40:56 -07005 * fde.c (fde_by_offset): Renamed to ...
6 (__libdw_fde_by_offset): ... this, made global and internal_function.
7 Don't take ADDRESS argument.
8 (__libdw_find_fde): Update caller. Do address sanity check here.
9 * cfi.h: Declare __libdw_fde_by_offset.
10 * cfi.c (dwarf_cfi_validate_fde): New function.
11 * libdw.h: Declare it.
12 * libdw.map (ELFUTILS_0.148): Add it.
13
Roland McGrath5f4b5082010-06-16 03:11:57 -070014 * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to
15 either DW_EH_PE_udata8 or DW_EH_PE_udata4.
16
Roland McGrath7934ded2010-06-16 03:04:09 -070017 * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect.
18 Don't assume DW_EH_PE_aligned refers to native address size.
19
Roland McGrathc70ebc02010-06-16 02:21:26 -070020 * cfi.c (execute_cfi): Barf on CIE initial instructions changing the
21 address.
22
Roland McGrath3f633072010-06-15 22:17:04 -0700232010-06-15 Roland McGrath <roland@redhat.com>
24
Roland McGrathb75f4442010-06-15 22:24:19 -070025 * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like
26 DW_FORM_ref_addr.
27 * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way
28 here, since we don't support it yet.
29
Roland McGrath9bcd2652010-06-15 22:17:20 -070030 * dwarf_next_cfi.c: Handle version 4 format.
31
Roland McGrath3f633072010-06-15 22:17:04 -070032 * dwarf_getsrclines.c: Handle version 4 format.
33
Roland McGrath0b3363e2010-06-01 15:42:14 -0700342010-06-01 Roland McGrath <roland@redhat.com>
35
Roland McGrath827d4d12010-06-01 20:17:36 -070036 * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types.
37 * dwarf_begin_elf.c (dwarf_scnnames): Likewise.
38
Roland McGrath1a030b32010-06-01 20:11:40 -070039 * libdwP.h (CIE_VERSION): Remove unused macro.
40
Roland McGrath675229b2010-06-01 20:10:19 -070041 * dwarf_getsrclines.c: Fix version field test.
42 * libdwP.h (DWARF_VERSION): Remove useless macro.
43
Roland McGrath52123962010-06-01 19:05:08 -070044 * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling.
45
Roland McGrath7fac1ce2010-06-01 15:56:58 -070046 * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc.
47
Roland McGrath0b3363e2010-06-01 15:42:14 -070048 * libdw_findcu.c (__libdw_findcu): Accept version 4.
49
Mark Wielaard3f507bd2010-05-31 15:06:31 +0200502010-05-31 Mark Wielaard <mjw@redhat.com>
51
Mark Wielaard08e71db2010-05-31 15:39:15 +020052 * cfi.h (dwarf_cfi_cie_p): Move definition from here, to ..
53 * libdw.h (dwarf_cfi_cie_p): ... here.
54
552010-05-31 Mark Wielaard <mjw@redhat.com>
56
Mark Wielaard3f507bd2010-05-31 15:06:31 +020057 * dwarf.h: Fix DW_LANG_Python constant.
58
Eduardo Santiagod2240bc2010-05-28 14:26:52 -0700592010-05-28 Eduardo Santiago <santiago@redhat.com>
Ulrich Drepper6fb34512010-05-28 20:28:04 -070060
Ulrich Drepper49fe7142010-05-28 20:32:37 -070061 * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first
62 thing.
Ulrich Drepper6fb34512010-05-28 20:28:04 -070063
Roland McGrathcfa5da22010-05-27 13:49:25 -0700642010-05-27 Roland McGrath <roland@redhat.com>
65
66 * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name,
67 DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator.
68
Roland McGrath688f7fc2010-05-08 03:22:59 -0700692010-05-08 Roland McGrath <roland@redhat.com>
70
71 * dwarf_getlocation.c (__libdw_intern_expression): Take new argument
72 REF_SIZE. Use that to handle DW_OP_call_ref correctly.
73 (getlocation): Update caller.
74 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
75 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
76 * libdwP.h: Update decl.
77
Roland McGrath0ab97832010-04-26 11:50:27 -0700782010-04-26 Roland McGrath <roland@redhat.com>
79
Roland McGrath3b10ac02010-04-26 18:45:36 -070080 * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule.
81 * cfi.c (execute_cfi): Set that instead of doing cfi_assert for
82 DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force.
83 * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid.
84
Roland McGrath0ab97832010-04-26 11:50:27 -070085 * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP.
86 Prepend DW_OP_call_frame_cfa if true.
87 (getlocation): Update caller.
88 * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise.
89 * dwarf_frame_register.c (dwarf_frame_register): Likewise.
90 * libdwP.h: Update decl.
91
Roland McGrath3f9d9552010-04-22 20:51:07 -0700922010-04-22 Roland McGrath <roland@redhat.com>
93
94 * cfi.c (execute_cfi): Never return without cleanup.
95 Free FS on failure.
96 (cie_cache_initial_state): Adjust caller to expect that free.
97 (__libdw_frame_at_address): Likewise.
98
Roland McGrath8068e062010-03-10 23:49:13 -0800992010-03-10 Roland McGrath <roland@redhat.com>
100
101 * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report.
102
Roland McGrath22359e22010-02-15 15:57:03 -08001032010-02-15 Roland McGrath <roland@redhat.com>
104
105 * Makefile.am: Use config/eu.am for common stuff.
106
Mark Wielaardee29a312010-02-02 20:44:53 +01001072010-02-02 Mark Wielaard <mjw@redhat.com>
108
109 * fde.c (intern_fde): Fix length check for sized_augmentation_data.
110
Roland McGrathf95760a2010-01-07 20:24:34 -08001112010-01-07 Roland McGrath <roland@redhat.com>
112
113 * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum.
114
Roland McGrath019d9fb2010-01-05 13:36:07 -08001152010-01-05 Roland McGrath <roland@redhat.com>
116
Roland McGrathebc5c882010-01-05 22:53:31 -0800117 * dwarf_aggregate_size.c: New file.
118 * Makefile.am (libdw_a_SOURCES): Add it.
119 * libdw.h: Declare it.
120 * libdwP.h: Add INTDECL.
121 * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size.
122
123 * dwarf_srclang.c: Add INTDEF.
124 * libdwP.h: Add INTDECL.
125
Roland McGrath0cb19832010-01-05 13:38:15 -0800126 * dwarf.h: Add some more DW_AT_GNU_* types from gcc.
127
Roland McGrath019d9fb2010-01-05 13:36:07 -0800128 * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name.
129
Roland McGrath888381b2009-11-21 17:03:34 -08001302009-11-21 Roland McGrath <roland@redhat.com>
131
132 * dwarf_getlocation.c (check_constant_offset): Return 1 for all
133 non-constant forms.
134
Roland McGrath9ca7bc42009-10-15 12:26:49 -07001352009-10-15 Roland McGrath <roland@redhat.com>
136
137 * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset,
138 DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8.
139
Roland McGrath7e0aecd2009-09-17 15:02:34 -07001402009-09-17 Roland McGrath <roland@redhat.com>
141
142 * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP
143 argument a pointer to const.
144 * libdw.h: Update decl.
145
Roland McGrathf0371042009-09-10 12:39:09 -07001462009-09-10 Roland McGrath <roland@redhat.com>
147
148 * dwarf_getlocation.c (store_implicit_value): New function.
149 (__libdw_intern_expression): Use it, handle DW_OP_implicit_value.
150 (dwarf_getlocation_implicit_value): New function.
151 * libdw.h: Declare it.
152 * libdw.map (ELFUTILS_0.143): Add it.
153
Mark Wielaard418ae4c2009-09-09 20:59:26 +02001542009-09-09 Mark Wielaard <mjw@redhat.com>
155
156 * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl.
157
Josh Stonecc93cc42009-08-21 18:04:44 -07001582009-08-21 Josh Stone <jistone@redhat.com>
159
160 * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
161
Roland McGrath08277ba2009-08-10 15:08:08 -07001622009-08-10 Roland McGrath <roland@redhat.com>
163
164 * dwarf_getscopevar.c: Use dwarf_diename.
165
Roland McGrathebfb6482009-08-09 15:40:52 -07001662009-08-09 Roland McGrath <roland@redhat.com>
167
168 * libdw.map (ELFUTILS_0.143): New version set,
169 inherits from ELFUTILS_0.142.
170 * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an
171 alias in the ELFUTILS_0.122 version set and the default in the new set.
172 * dwarf_srclang.c: Likewise.
173 * dwarf_decl_file.c: Likewise.
174 * dwarf_decl_line.c: Likewise.
175 * dwarf_decl_column.c: Likewise.
176 * dwarf_bytesize.c: Likewise.
177 * dwarf_bitsize.c: Likewise.
178 * dwarf_bitoffset.c: Likewise.
179
Roland McGrathde69d522009-08-07 18:26:19 -07001802009-08-07 Roland McGrath <roland@redhat.com>
181
182 * dwarf_arrayorder.c: Use dwarf_attr_integrate.
183 * dwarf_srclang.c: Likewise.
184 * dwarf_decl_file.c: Likewise.
185 * dwarf_decl_line.c (__libdw_attr_intval): Likewise.
186 * dwarf_bytesize.c: Likewise.
187 * dwarf_bitsize.c: Likewise.
188 * dwarf_bitoffset.c: Likewise.
189
Roland McGrathaf800142009-07-22 13:55:50 -07001902009-07-22 Roland McGrath <roland@redhat.com>
191
192 * dwarf_frame_cfa.c: Change calling convention.
193 * libdw.h: Update decl.
194
195 * dwarf_frame_register.c: Change calling/return-value convention for
196 value-only results and undefined/same_value.
197 * libdw.h: Update decl.
198
199 * dwarf_getlocation.c (__libdw_intern_expression): Take new bool
200 argument, append DW_OP_stack_value if set. Don't take NOPS argument,
201 return that value instead.
202 (getlocation): Update caller.
203 * dwarf_frame_cfa.c: Likewise.
204 * libdwP.h: Update decl.
205
Roland McGrathe23e9e72009-07-21 18:14:52 -07002062009-07-21 Roland McGrath <roland@redhat.com>
207
208 * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list.
209 Fix loop iteration after skipping a bogus or useless CU.
210
211 * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless
212 absence, not DWARF_E_NO_DEBUG_LINE.
213
Roland McGrath96349ff2009-07-20 11:51:41 -07002142009-07-20 Roland McGrath <roland@redhat.com>
215
216 * dwarf_getlocation.c (__libdw_intern_expression):
217 Handle DW_OP_stack_value.
218
Roland McGratha6abdfd2009-07-16 17:40:19 -07002192009-07-16 Roland McGrath <roland@redhat.com>
220
Roland McGrathe160cc92009-07-16 17:48:27 -0700221 * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset,
222 reject others when CU's version > 3.
223
224 * dwarf_formflag.c: Handle DW_FORM_flag_present.
225
Roland McGratha6abdfd2009-07-16 17:40:19 -0700226 * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft.
227 Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type.
228 Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset,
229 and DW_AT_const_expr.
230 Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present,
231 and DW_FORM_ref_sig8.
232
Roland McGrath7dd94642009-07-15 11:14:23 -07002332009-07-15 Roland McGrath <roland@redhat.com>
234
235 * dwarf_getlocation.c: Grok DW_OP_form_tls_address,
236 DW_OP_GNU_push_tls_address, and DW_OP_bit_piece.
237
Roland McGrath80893432009-07-13 12:08:55 -07002382009-07-13 Roland McGrath <roland@redhat.com>
239
240 * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa.
241
Roland McGrathcfdd86e2009-07-08 13:15:07 -07002422009-07-08 Roland McGrath <roland@redhat.com>
243
Roland McGrath3c84db32009-06-24 17:41:40 -0700244 * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi,
245 dwfl_module_eh_cfi.
246
247 * libdwP.h (struct Dwarf): Add member `cfi'.
248 * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it.
249 * dwarf_getcfi.c: New file.
250 * dwarf_getcfi_elf.c: New file.
251 * dwarf_cfi_end.c: New file.
252 * dwarf_cfi_addrframe.c: New file.
253 * dwarf_frame_cfa.c: New file.
254 * dwarf_frame_register.c: New file.
255 * dwarf_frame_return_address_register.c: New file.
256 * Makefile.am (libdw_a_SOURCES): Add them.
257 * unwind.h: Declare those functions.
258 * libdw.map (ELFUTILS_0.142): Export them.
259
260 * dwarf_getlocation.c (__libdw_intern_expression): New function,
261 broken out of ...
262 (getlocation): ... here, call it.
263 * libdwP.h: Declare it.
264
265 * cie.c: New file.
266 * fde.c: New file.
267 * frame-cache.c: New file.
268 * cfi.c: New file.
269 * cfi.h: New file.
270 * encoded-value.h: New file.
271 * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them.
272 * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum.
273 * dwarf_error.c (errmsgs): Add element for it.
274
275 * dwarf_next_cfi.c: New file.
276 * Makefile.am (libdw_a_SOURCES): Add it.
277 * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types.
278 Declare dwarf_next_cfi.
279 * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136.
280 Add dwarf_next_cfi.
281
282 * memory-access.h [! ALLOW_UNALIGNED]
283 (read_2ubyte_unaligned): Renamed to ...
284 (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *.
285 (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order.
286 (read_2sbyte_unaligned): Likewise.
287 (read_4ubyte_unaligned): Likewise.
288 (read_4sbyte_unaligned): Likewise.
289 (read_8ubyte_unaligned): Likewise.
290 (read_8sbyte_unaligned): Likewise.
291
292 * libdwP.h (IDX_eh_frame): Remove it.
293 * dwarf_begin_elf.c (dwarf_scnnames): Remove its element.
294
2952009-07-08 Roland McGrath <roland@redhat.com>
296
Roland McGrath6e1f4652009-07-08 14:48:34 -0700297 * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better.
298
Roland McGrathcfdd86e2009-07-08 13:15:07 -0700299 * dwarf_getlocation.c (check_constant_offset): New function.
300 (dwarf_getlocation, dwarf_getlocation_addr): Call it to
301 handle DW_AT_data_member_location of data[48] as constant offset.
302
Roland McGrath05c4e042009-06-18 13:56:02 -07003032009-06-18 Roland McGrath <roland@redhat.com>
304
305 * libdwP.h (__libdw_read_address_inc): Constify.
306 (__libdw_read_offset_inc): Likewise.
307 * dwarf_getaranges.c: Likewise.
308 * dwarf_getlocation.c: Likewise.
309 * dwarf_getsrclines.c: Likewise.
310 * dwarf_nextcu.c: Likewise.
311
Ulrich Drepper99d23722009-06-14 20:19:45 -07003122009-05-05 Petr Machata <pmachata@redhat.com>
313
314 * libdwP.h (__libdw_formptr): Declare new function.
315 * dwarf_formudata.c: Implement it here.
316 * dwarf_getlocation.c (dwarf_getlocation_addr):
317 Call it instead of hand-rolled offset handling code.
318 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
319 * dwarf_ranges.c (dwarf_ranges): Likewise.
320
3212009-05-04 Petr Machata <pmachata@redhat.com>
322
323 * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function.
324 * dwarf_ranges.c: Implement it here.
325 (dwarf_ranges): Call it.
326 * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here.
327
3282009-04-23 Petr Machata <pmachata@redhat.com>
329
330 * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead
331 of read_*ubyte_unaligned.
332 * dwarf_formref_die.c (dwarf_formref_die): Likewise.
333 * dwarf_formstring.c (dwarf_formstring): Likewise.
334 * dwarf_formudate.c (dwarf_formudata): Likewise.
335 * dwarf_getaranges.c (dwarf_getaranges): Likewise.
336 * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise.
337 * dwarf_getpubnames.c (get_offsets): Likewise.
338 * dwarf_nextcu.c (dwarf_nextcu): Likewise.
339
3402009-04-23 Petr Machata <pmachata@redhat.com>
341
342 * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc,
343 __libdw_read_addr, __libdw_read_off): Add four new internal
344 functions.
345
Roland McGrathe2eabd82009-05-07 18:54:52 -07003462009-05-07 Roland McGrath <roland@redhat.com>
347
348 * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in
349 return value and OFFSET argument, not CU-relative. Only fetch the
350 attribute data when called with OFFSET of 0.
351
Petr Machataf3df61f2009-05-07 21:02:33 +02003522009-05-07 Petr Machata <pmachata@redhat.com>
353
354 * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in
355 DW_AT_macro_info attribute of CU DIE.
356
Roland McGrath2fb90512009-04-15 14:47:13 -07003572009-04-15 Roland McGrath <roland@redhat.com>
358
359 * dwarf.h (DW_CIE_ID): Removed.
360 (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it.
361
Roland McGrath6a4bdd92009-04-01 14:25:29 -07003622009-04-01 Roland McGrath <roland@redhat.com>
363
364 * dwarf.h: Add DW_CFA_GNU_negative_offset_extended.
365
Roland McGrathc5acb302009-01-28 18:28:52 -08003662009-01-28 Roland McGrath <roland@redhat.com>
367
Roland McGrath03288f02009-01-28 22:00:54 -0800368 * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s
369 defn so C++ doesn't scope the name to not match the Dwarf_Line typedef.
370
Roland McGrathc5acb302009-01-28 18:28:52 -0800371 * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field.
372
Roland McGrathf46272a2009-01-26 18:36:16 -08003732009-01-26 Roland McGrath <roland@redhat.com>
374
375 * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all.
376
Roland McGrathd31505f2009-01-25 19:37:33 -08003772009-01-25 Roland McGrath <roland@redhat.com>
378
379 * dwarf_getattrs.c: Correctly skip attribute values when restarting.
380
Roland McGrath3bf7a092009-01-23 16:34:07 -08003812009-01-23 Roland McGrath <roland@redhat.com>
382
383 * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back.
384 Put these rules under if MAINTAINER_MODE.
385
Roland McGrathafdd51e2009-01-22 02:26:24 -08003862009-01-22 Roland McGrath <roland@redhat.com>
387
388 * dwarf.h: Add DW_OP_GNU_encoded_addr.
389
Roland McGrath1ea4fdc2009-01-21 19:14:37 -08003902009-01-21 Roland McGrath <roland@redhat.com>
391
392 * Makefile.am (CLEANFILES): Renamed to ...
393 (MOSTLYCLEANFILES): ... here.
394 (CLEANFILES): New variable, add known-dwarf.h.
395
Roland McGrath24b03302009-01-17 14:34:13 -08003962009-01-17 Roland McGrath <roland@redhat.com>
397
Roland McGrath54456d82009-01-17 14:39:35 -0800398 * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir).
399 Make it unconditional.
400 (BUILT_SOURCES): Updated.
Roland McGrath5513e642009-01-11 01:35:11 -0800401
402 * dwarf.h: Add description comments for DW_LANG_* values.
403
404 * Makefile.am [MAINTAINER_MODE]
405 ($(srcdir)/known-dwarf.h): New target.
406 (BUILT_SOURCES): Add it.
407
Roland McGrath24b03302009-01-17 14:34:13 -0800408 * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit.
409
Ulrich Drepper7e678fa2009-01-10 18:02:05 -08004102009-01-10 Ulrich Drepper <drepper@redhat.com>
411
412 * dwarf_error.c: Always use __thread. Remove all !USE_TLS code.
413
Roland McGrathe06762c2009-01-08 13:39:08 -08004142009-01-08 Roland McGrath <roland@redhat.com>
415
416 * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
417
Roland McGrath7e827f22009-01-06 02:09:50 -08004182008-01-06 Roland McGrath <roland@redhat.com>
Roland McGrath1f6d2012008-12-31 00:21:04 -0800419
420 * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
421 Reorder members.
422 * dwarf_haschildren.c: Return -1 for error case, not 0.
Roland McGrathbca43152009-01-05 23:59:32 -0800423
424 * Makefile.am (libdw.so): Link in $(zip_LIBS).
425
Ulrich Drepperac194d02009-01-06 00:30:01 -08004262009-01-06 Ulrich Drepper <drepper@redhat.com>
427
Roland McGrathc462c632009-01-06 01:04:31 -0800428 * dwarf.h: Add definition for unwind and call frame information.
Ulrich Drepperac194d02009-01-06 00:30:01 -0800429
430 * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned,
431 read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc.
432
Roland McGrathb4d6f0f2008-08-25 22:55:17 +00004332008-08-15 Roland McGrath <roland@redhat.com>
434
435 * libdw.map (ELFUTILS_0.136): New version set, inherits from
436 ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment.
437
Ulrich Drepper8d358d92008-01-22 06:34:31 +00004382008-01-21 Ulrich Drepper <drepper@redhat.com>
439
440 * dwarf_child.c: Minor optimizations.
441 * dwarf_getattrs.c: Likewise.
442 * dwarf_getpubnames.c: Likewise.
443 * dwarf_siblingof.c: Likewise.
444 * dwarf_tag.c: Likewise.
445
Ulrich Drepperb27ce002008-01-18 20:08:54 +00004462008-01-18 Ulrich Drepper <drepper@redhat.com>
447
448 * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match
449 of DWARF_VERSION comparison, just fail if the file's version is newer.
450
Ulrich Drepper35f08c42008-01-18 19:59:08 +00004512008-01-17 Nick Clifton <nickc@redhat.com>
452
453 * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define.
454 (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define.
455 (DWARF3_LENGTH_64_BIT): New define.
456 * dwarf_getaranges (dwarf_getaranges): Use the new definitions.
457 * dwarf_getpubnames: Include dwarf.h.
458 (get_offsets): Use the new definitions.
459 * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions.
460 * dwarf_nextcu.c: Include dwarf.h. Correct comment.
461 (dwarf_nextcu): Use the new definitions.
462
463 * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro.
Ulrich Dreppera969d8e2008-01-22 06:15:00 +0000464 * dwarf_diecu.c (dwarf_diecu): Use the new macro.
Ulrich Drepper35f08c42008-01-18 19:59:08 +0000465 * dwarf_getaranges (dwarf_getaranges): Use the new macro.
466 * dwarf_nextcu.c (dwarf_nextcu): Use the new macro.
467
468 * dwarf_getpubnames (get_offsets): Replace assertion with test and
469 error return.
470
471 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE.
472
473 * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer.
474 Set the address in the return structure to the address of the next
475 non-sibling die, if there is no sibling and the return pointer is
476 not the same as the die pointer.
477 * libdw.h: Expand the description of the dwarf_siblingof prototype.
478
479 * dwarf_child.c: Fix typo in comment.
480
481 * libdwP.h (DWARF_VERSION): Change to 3.
482
483 * dwarf_formref.c (__libdw_formref.c): Handle attributes which do
484 not have a initialised valp pointer.
485
486 * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when
487 the end of the attributes is reached. When the callback fails,
488 return the address of the failing attribute, not the address of
489 its successor.
490 * libdw.h: Expand the description of the dwarf_getattrs prototype.
491
492 * dwarf_child.c (__libdw_find_attr): Use the new definition.
493 (dwarf_child): Likewise.
494 * dwarf_tag.c (__libdw_findabbrev): Likewise.
495 (dwarf_tag): Likewise.
496
Ulrich Dreppere219f1c2008-01-09 05:49:49 +00004972008-01-08 Roland McGrath <roland@redhat.com>
498
499 * Makefile.am (euinclude): Variable removed.
500 (pkginclude_HEADERS): Set this instead of euinclude_HEADERS.
501 (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir).
502
Roland McGrathe4c22ea2007-10-23 13:07:39 +00005032007-10-17 Roland McGrath <roland@redhat.com>
504
505 * libdw.h (__deprecated_attribute__): New macro.
506 (dwarf_formref): Mark it deprecated.
507 * dwarf_formref.c (__libdw_formref): New function, broken out of ...
508 (dwarf_formref): ... here. Call it. Remove INTDEF.
509 * libdwP.h: Remove INTDECL.
510 Declare __libdw_formref.
511 * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead.
512 * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here.
513
514 * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result,
515 needs to check CU->version.
516
517 * libdwP.h (struct Dwarf_CU): New member `version'.
518 * libdw_findcu.c (__libdw_findcu): Initialize it.
519
520 * dwarf_child.c: Return 1 for null entry as first child.
521
Ulrich Drepperb597dfa2007-10-16 05:21:27 +00005222007-10-05 Roland McGrath <roland@redhat.com>
523
524 * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections.
525
526 * libdw.h (__extern_inline): Rename to __libdw_extern_inline.
527 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses.
528
Roland McGrath59ea7f32007-10-04 08:50:09 +00005292007-10-03 Roland McGrath <roland@redhat.com>
530
531 * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf
532 and dwfl_build_id_find_debuginfo.
533
534 * libdw.map (ELFUTILS_0.130): New version set, inherits from
535 ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id.
536
Roland McGrath057ec6b2007-10-02 20:55:05 +00005372007-10-02 Roland McGrath <roland@redhat.com>
538
539 * libdw_visit_scopes.c (classify_die): Return walk for class_type and
540 structure_type.
541
Roland McGrathd1a48172007-08-07 19:51:01 +00005422007-08-07 Roland McGrath <roland@redhat.com>
543
544 * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when
545 error code is DWARF_E_NOERROR (0).
546
547 * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune.
548 Fix typo in __libdw_visit_scopes argument.
549
550 * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return,
551 swallow DWARF_E_NO_DEBUG_RANGES but not other errors.
552
Roland McGrath87d47802007-07-16 22:23:37 +00005532007-07-03 Roland McGrath <roland@redhat.com>
554
555 * libdw.h (__extern_inline): New macro.
556 [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it.
557
Roland McGrath43da9892007-04-16 23:13:37 +00005582007-04-16 Roland McGrath <roland@redhat.com>
559
560 * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section.
561
Roland McGrathbf2ee482007-04-05 09:27:36 +00005622007-04-05 Roland McGrath <roland@redhat.com>
563
Roland McGrath43da9892007-04-16 23:13:37 +0000564 * dwarf_getsrcdirs.c: New file.
565 * Makefile.am (libdw_a_SOURCES): Add it.
566 * libdw.h: Declare dwarf_getsrcdirs.
567 * libdw.map (ELFUTILS_0.127): Add it.
568
569 * libdwP.h (struct Dwarf_Files_s): New member ndirs.
570 * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to
571 zero before we use it to check for DWARF_E_INVALID_DIR_IDX.
572 Save DIRARRAY in the Dwarf_Files.
573
Roland McGrathbf2ee482007-04-05 09:27:36 +0000574 * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN
575 address to check for all-ones base address entry. Check directly.
576 Reported by Sébastien Dugué <sebastien.dugue@bull.net>.
577
Ulrich Drepperc07fbb32007-03-30 19:14:59 +00005782007-03-25 Roland McGrath <roland@redhat.com>
579
580 * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void.
581 Return NULL when freeing RESULT on error.
582 (global_read, scngrp_read): Check return value from check_section,
583 break out of loop after it has freed RESULT.
584 (valid_p): Handle null argument.
585
Ulrich Drepper6258e742007-03-13 06:22:40 +00005862007-03-12 Roland McGrath <roland@redhat.com>
587
588 * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add.
589
5902007-03-04 Roland McGrath <roland@redhat.com>
591
592 * libdw.map (ELFUTILS_0.127): New version set, inherits from
593 ELFUTILS_0.126. Add dwfl_module_addrsym.
594
Ulrich Drepper903c1162007-02-15 19:40:37 +00005952007-02-10 Roland McGrath <roland@redhat.com>
596
597 * dwarf.h (DW_OP_fbreg): Comment fix.
598
Ulrich Drepperaa915fd2007-02-05 07:25:33 +00005992007-02-03 Roland McGrath <roland@redhat.com>
600
601 * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf.
602 * libdw.map (ELFUTILS_0.126): New version set, inherits from
603 ELFUTILS_0.122. Move dwarf_getelf there; it was never truly
604 exported in the past.
605
Roland McGrath8190db62006-12-17 23:56:51 +00006062006-12-17 Roland McGrath <roland@redhat.com>
607
608 * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base
609 address when the CU is missing attributes due to buggy GCC.
610
Roland McGrathc373d852006-10-10 00:25:21 +00006112006-08-29 Roland McGrath <roland@redhat.com>
612
613 * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION).
614
615 * libdw.h (dwarf_diecu): Add __nonnull_attribute__.
616 (dwarf_child): Don't list arg 1 in __nonnull_attribute__.
617
618 * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure
619 result is aligned. Adjust NEWP->remaining here for this allocation.
620 * libdwP.h: Update decl.
621 (libdw_alloc): Update caller.
622
Ulrich Drepper077c65f2006-07-12 19:54:51 +00006232006-07-12 Ulrich Drepper <drepper@redhat.com>
624
625 * dwarf_child.c: Adjust for internal_function_def removal.
626 * dwarf_getabbrev.c: Likewise.
627 * dwarf_tag.c: Likewise.
628 * libdw_form.c: Likewise.
629 * memory-access.c: Likewise.
630
Ulrich Dreppere1812e12006-07-12 07:46:03 +00006312006-06-28 Roland McGrath <roland@redhat.com>
632
633 * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir.
634
635 * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and
636 dwfl_module_getsym.
637
Ulrich Drepper3be74472006-05-27 18:15:40 +00006382006-05-27 Ulrich Drepper <drepper@redhat.com>
639
640 * libdw.h: Add extern "C".
641
Ulrich Dreppere7a73172006-05-22 18:16:45 +00006422006-05-22 Ulrich Drepper <drepper@redhat.com>
643
644 * dwarf_getaranges.c (dwarf_getaranges): Handle files without
645 aranges information.
646
Ulrich Drepper4f3d2a22006-05-22 01:30:56 +00006472006-05-21 Ulrich Drepper <drepper@redhat.com>
648
649 * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
650 dwarf_haschildren.
651
Roland McGrath2dade662006-02-28 22:13:20 +00006522006-02-28 Roland McGrath <roland@redhat.com>
653
654 * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
655 DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_*
656 values from DWARF 3.0.
657
Roland McGrath08333122006-02-27 04:54:26 +00006582006-02-22 Roland McGrath <roland@redhat.com>
659
660 * libdw.map: Bump to 0.120; export dwfl_version.
661
Roland McGrath50ffcbf2005-12-23 01:51:43 +00006622005-12-22 Roland McGrath <roland@redhat.com>
663
664 * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
665
Roland McGrathdec3a242005-12-12 08:35:55 +00006662005-12-12 Roland McGrath <roland@redhat.com>
667
668 * dwarf_ranges.c: Copy CU base address-finding code from
669 dwarf_getlocation.
670
Roland McGrathf64a4422005-12-09 23:40:30 +00006712005-12-09 Roland McGrath <roland@redhat.com>
672
673 * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys.
674 Delay CU base lookup until it's needed.
675 If CU base lookup fails with no error, flag invalid DWARF.
676
Roland McGrath994b4892005-12-05 22:46:21 +00006772005-11-25 Roland McGrath <roland@redhat.com>
678
679 * libdw.map: Bump to 0.118; export dwfl_module_register_names.
680
Roland McGrathe47ab762005-11-17 03:16:00 +00006812005-11-15 Roland McGrath <roland@redhat.com>
682
683 * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic.
684
6852005-11-13 Roland McGrath <roland@redhat.com>
686
687 * libdw.map: Bump to 0.117; export dwfl_module_return_value_location.
688
Roland McGrath07d4f2f2005-10-28 06:56:24 +00006892005-10-27 Roland McGrath <roland@redhat.com>
690
691 * dwarf_entry_breakpoints.c (search_range): Fix binary search code;
692 don't match end_sequence markers.
693
694 * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers
695 before normal records at the same address.
696 * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence
697 marker.
698
6992005-10-26 Roland McGrath <roland@redhat.com>
700
Roland McGrath6724c902005-10-28 07:07:19 +0000701 * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func.
702 * dwarf_func_file.c: Renamed to ...
703 * dwarf_decl_file.c: ... here.
704 * dwarf_func_col.c: Renamed to ...
705 * dwarf_decl_column.c: ... here.
706 * dwarf_func_line.c: Renamed to ...
707 * dwarf_decl_line.c: ... here.
708 (dwarf_func_line): Renamed to ...
709 (dwarf_decl_line): ... this. Take a Dwarf_Die * argument.
710 (__libdw_func_intval): Renamed __libdw_attr_intval.
711 * dwarf_func_name.c: File removed.
712 * dwarf_func_lowpc.c: File removed.
713 * dwarf_func_highpc.c: File removed.
714 * dwarf_func_entrypc.c: File removed.
715 * dwarf_func_die.c: File removed.
716 * Makefile.am (libdw_a_SOURCES): Updated.
717 * libdw.h: Update decls.
718 (Dwarf_Func): Type removed.
719 * libdwP.h: Update decls.
720 (struct Dwarf_Func_s): Type removed.
721 * libdw.map: Updated.
722
723 * libdwP.h (CUDIE): New macro.
724 * dwarf_getlocation.c (dwarf_getlocation_addr): Use it.
725 * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise.
726 * dwarf_ranges.c (dwarf_ranges): Likewise.
727
728 * dwarf_getloclist.c: Renamed to ...
729 * dwarf_getlocation.c: ... here.
730 (getloclist): Renamed to getlocation.
731 (dwarf_getloclist): Renamed to dwarf_getlocation.
732 (dwarf_addrloclists): Renamed to dwarf_getlocation_addr.
733 * Makefile.am (libdw_a_SOURCES): Updated.
734 * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation.
735 (dwarf_addrloclists): Renamed dwarf_getlocation_addr.
736 (Dwarf_Loc): Renamed Dwarf_Op.
737 * libdwP.h (struct loc_s): Update use.
738 * libdw.map: Update map.
739
Roland McGrath07d4f2f2005-10-28 06:56:24 +0000740 * dwarf_entry_breakpoints.c: Use the second line record within the
741 function, regardless of its source location data.
742
7432005-10-25 Roland McGrath <roland@redhat.com>
744
745 * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too.
746
747 * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints.
748
7492005-10-14 Roland McGrath <roland@redhat.com>
750
751 * dwarf_diecu.c (dwarf_diecu): New file.
752 * Makefile.am (libdw_a_SOURCES): Add it.
753 * libdw.h: Declare dwarf_diecu.
754 * libdw.map: Export it.
755
756 * libdw.map: Bump to 0.116; export dwarf_ranges.
757
7582005-09-20 Roland McGrath <roland@redhat.com>
759
760 * dwarf_haspc.c: Use dwarf_ranges.
761 * dwarf_entry_breakpoints.c: Likewise.
762
763 * dwarf_ranges.c: New file.
764 * Makefile.am (libdw_a_SOURCES): Add it.
765 * libdw.h: Declare dwarf_ranges.
766 * libdwP.h: Add INTDECL.
767
7682005-09-14 Roland McGrath <roland@redhat.com>
769
770 * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in
771 prologue_end marker scanning loop.
772
7732005-09-11 Roland McGrath <roland@redhat.com>
774
775 * dwarf.h: Comment typo fix.
776
7772005-09-07 Roland McGrath <roland@redhat.com>
778
779 * dwarf_entry_breakpoints.c: New file.
780 * Makefile.am (libdw_a_SOURCES): Add it.
781 * libdw.h: Declare dwarf_entry_breakpoints.
782
783 * dwarf_entrypc.c: New file.
784 * Makefile.am (libdw_a_SOURCES): Add it.
785 * libdw.h: Declare dwarf_entrypc.
786 * libdwP.h: Add INTDECL.
787
Ulrich Drepperfbe998a2005-08-29 16:27:10 +00007882005-08-28 Ulrich Drepper <drepper@redhat.com>
789
790 * Makefile.am: Use $(LINK) not $(CC) when creating DSO.
791 (%.os): Use COMPILE.os.
792 (COMPILE.os): Filter out gconv options.
793
Roland McGrath71e15a02005-08-27 10:33:26 +00007942005-08-27 Roland McGrath <roland@redhat.com>
795
796 * dwarf_getscopes.c (dwarf_getscopes): Rewritten using
797 __libdw_visit_scopes.
798
799 * dwarf_getscopes_die.c: New file.
800 * Makefile.am (libdw_a_SOURCES): Add it.
801 * libdw.h: Declare dwarf_getscopes_die.
802 * libdw.map: Bump to 0.115 and add it.
803
804 * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
805 containing a DIE and its parent pointer, instead of just Dwarf_Die.
806 Take two functions for both preorder and postorder visitors.
807 * libdwP.h: Update decl.
808 (struct Dwarf_Die_Chain): New type.
809 * dwarf_func_inline.c: Update uses.
810
811 * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
812 Add INTDEF.
813 * libdwP.h: Add INTDECL.
814 * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
815
Roland McGrathd17fac72005-08-23 08:20:21 +00008162005-08-23 Roland McGrath <roland@redhat.com>
817
818 * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
819 DW_AT_specification the same as DW_AT_abstract_origin.
820
8212005-08-20 Roland McGrath <roland@redhat.com>
822
823 * libdw.map: Add dwfl_cumodule, remove dwfl_linecu.
824 Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address,
825 and dwfl_report_offline.
826
8272005-08-19 Roland McGrath <roland@redhat.com>
828
829 * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes.
830 Add dwfl_module_relocate_address, dwfl_module_relocations,
831 dwfl_module_relocation_info.
832
Roland McGrathf5fda7d2005-08-18 22:01:57 +00008332005-08-18 Roland McGrath <roland@redhat.com>
834
835 * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
836 outermost scope in the results.
837
Roland McGrath1ecb6062005-08-15 09:53:04 +00008382005-08-15 Roland McGrath <roland@redhat.com>
839
840 * dwarf_func_inline.c: New file.
841 * Makefile.am (libdw_a_SOURCES): Add it.
842 * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
843 * libdw.map: Add them.
844
845 * dwarf_func_die.c: New file.
846 * Makefile.am (libdw_a_SOURCES): Add it.
847 * libdw.h: Declare dwarf_func_die.
848 * libdw.map: Add it. Bump version to ELFUTILS_0.114.
849
Roland McGrath1c83bf12005-08-11 07:03:55 +00008502005-08-10 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000851
Roland McGrath1c83bf12005-08-11 07:03:55 +0000852 * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming
853 of DW_LNS_set_epilog_begin.
Ulrich Drepper6d5c3bd2005-08-11 04:37:52 +0000854
Roland McGrath4959bf82005-08-09 10:31:08 +00008552005-08-09 Roland McGrath <roland@redhat.com>
856
Roland McGrathb6312e12005-08-09 10:36:01 +0000857 * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
858
Roland McGrath4959bf82005-08-09 10:31:08 +0000859 * dwarf_end.c: Add INTDEF.
860 * dwarf_error.c (dwarf_errmsg): Likewise.
861 * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
862
Roland McGratha5a89682005-08-02 01:24:01 +00008632005-08-01 Roland McGrath <roland@redhat.com>
864
865 * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
866 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
867
Ulrich Drepper18618fd2005-07-28 21:29:22 +00008682005-07-28 Ulrich Drepper <drepper@redhat.com>
869
870 * Makefile.am (libdw.so): No need to link with libeu.a anymore.
871 (libdw_a_LIBADD): Add all files from libdwfl.a.
872
Roland McGrath366784a2005-07-28 06:20:53 +00008732005-07-27 Roland McGrath <roland@redhat.com>
874
Roland McGrath18385902005-07-28 07:12:38 +0000875 * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in,
876 along with ../libebl/libebl.a and ../lib/libeu.a;
877 depend on ../libelf/libelf.so.
878 (libdw_so_LDADD): New variable.
879 * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map.
880
Roland McGrath366784a2005-07-28 06:20:53 +0000881 * libdw.map: Define an empty base version and move all symbols to
882 version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.
883
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00008842005-07-23 Ulrich Drepper <drepper@redhat.com>
885
886 * dwarf_error.c: Add internal alias for dwarf_errno.
887 * libdwP.h: Declare __dwarf_errno_internal.
888 * dwarf_getloclist.c: Use INTDEF for dwarf_errno.
889
890 * dwarf_error.c [USE_TLS]: Actually use __thread in definition of
891 global_error.
892
8932005-06-01 Roland McGrath <roland@redhat.com>
894
895 * dwarf_getaranges.c (dwarf_getaranges): Sort result array.
896 * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search.
897
8982005-06-08 Roland McGrath <roland@redhat.com>
899
900 * memory-access.h (get_uleb128_step, get_uleb128): Remove casts.
901 (get_sleb128_step, get_sleb128): Likewise.
902 * dwarf_getattrs.c (dwarf_getattrs): Add consts.
903 * dwarf_getloclist.c (getloclist): Likewise.
904 * dwarf_formblock.c (dwarf_formblock): Likewise.
905 * dwarf_getsrclines.c (dwarf_getsrclines): Likewise.
906 * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise.
907 * dwarf_formref.c (dwarf_formref): Likewise.
908 * dwarf_formsdata.c (dwarf_formsdata): Likewise.
909 * dwarf_formudata.c (dwarf_formudata): Likewise.
910 * dwarf_haschildren.c (dwarf_haschildren): Likewise.
911 * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise.
912 * dwarf_tag.c (dwarf_tag): Likewise.
913 * dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
914 * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise.
915 * libdw_form.c (__libdw_form_val_len): Likewise.
916 * libdwP.h: Update decl.
917
9182005-06-04 Roland McGrath <roland@redhat.com>
919
920 * memory-access.h (get_uleb128_rest_return): New macro.
921 [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it.
922 (get_sleb128_rest_return): New macro.
923 [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it.
924 * memory-access.c: New file.
925 * Makefile.am (libdw_a_SOURCES): Add it.
926 (DEFS): Add -DIS_LIBDW.
927
9282005-05-31 Roland McGrath <roland@redhat.com>
929
930 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
931 formref offset.
932
9332005-05-30 Roland McGrath <roland@redhat.com>
934
935 * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base
936 address if DW_AT_low_pc is missing. Not to spec, but GCC generates it.
937
938 * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte
939 BEGIN value. Instead, match base address entries separately for
940 32/64 size cases.
941
9422005-05-28 Roland McGrath <roland@redhat.com>
943
944 * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance
945 past location expression contents.
946
9472005-05-23 Roland McGrath <roland@redhat.com>
948
949 * dwarf_getsrclines.c: Comment typo fix.
950
951 * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation.
952 * dwarf_getloclist.c (dwarf_addrloclists): Likewise.
953
9542005-05-22 Ulrich Drepper <drepper@redhat.com>
955
956 * libdwP.h: Only use INTDECL for alias prototypes.
957
9582005-05-19 Roland McGrath <roland@redhat.com>
959
960 * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too.
961
962 * dwarf_getscopevar.c: New file.
963 * Makefile.am (libdw_a_SOURCES): Add it.
964 * libdw.h: Declare dwarf_getscopevar.
965
966 * dwarf_getsrcfiles.c: Add INTDEF.
967 * dwarf_haschildren.c: Likewise.
968 * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL.
969
970 * dwarf_getscopes.c: New file.
971 * Makefile.am (libdw_a_SOURCES): Add it.
972 * libdw.h: Declare dwarf_getscopes.
973 * libdw.map: Add it.
974
9752005-05-18 Roland McGrath <roland@redhat.com>
976
977 * libdwP.h (IDX_debug_ranges): New enum constant.
978 * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges".
979 * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant.
980 * dwarf_error.c (errmsgs): Add it.
981 * dwarf_haspc.c: New file.
982 * libdw.h: Declare dwarf_haspc.
983 * libdw.map: Add it.
984 * libdwP.h: Add INTDECL.
985
986 * dwarf_attr_integrate.c: New file.
987 * dwarf_hasattr_integrate.c: New file.
988 * Makefile.am (libdw_a_SOURCES): Add them.
989 * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate.
990 * libdw.map: Add them.
991
992 * dwarf_hasattr.c: Add INTDEF.
993 * libdwP.h: Add INTDECL for it.
994
995 * dwarf_formref_die.c: New file.
996 * Makefile.am (libdw_a_SOURCES): Add it.
997 * libdw.h (dwarf_formref_die): Declare it.
998 * libdwP.h (dwarf_formref_die): Add INTDECL.
999 * libdw.map: Add it.
1000
1001 * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out
1002 of ...
1003 (dwarf_getloclist): ... here. Call them.
1004 (dwarf_addrloclists): New function.
1005 * libdw.h: Declare it.
1006 * libdw.map: Add it.
1007
1008 * dwarf_getmacros.c (dwarf_getmacros): Don't bail at
1009 DW_MACINFO_end_file. Recognize type 0 as terminator.
1010
10112005-05-05 Roland McGrath <roland@redhat.com>
1012
1013 * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search.
1014
1015 * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since
1016 the line program does not produce all entries in ascending order.
1017
10182005-04-25 Ulrich Drepper <drepper@redhat.com>
1019
1020 * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple
1021 occurences (e.g., inlines) better.
1022
10232005-04-24 Ulrich Drepper <drepper@redhat.com>
1024
1025 * libdw.h (DWARF_END_ABBREV): Define.
1026 * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if
1027 end is reached.
1028 * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end
1029 of records reached.
1030 * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV
1031 as error of __libdw_getabbrev.
1032
10332005-04-04 Ulrich Drepper <drepper@redhat.com>
1034
1035 * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization.
1036
1037 * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of
1038 results back to caller.
1039
10402005-04-04 Roland McGrath <roland@redhat.com>
1041
1042 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL.
1043
1044 * dwarf_func_line.c (__libdw_func_intval): Use internal_function in
1045 defn.
1046
10472005-04-04 Ulrich Drepper <drepper@redhat.com>
1048
1049 * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE.
1050
1051 * dwarf_getsrc_file.c: New file.
1052 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c.
1053 * libdw.h: Declare dwarf_getsrc_file.
1054 * libdw.map: Add dwarf_getsrc_file.
1055
10562005-04-02 Ulrich Drepper <drepper@redhat.com>
1057
1058 * dwarf_func_entrypc.c: New file.
1059 * dwarf_func_col.c: New file.
1060 * dwarf_func_line.c: New file.
1061 * dwarf_func_file.c: New file.
1062 * libdw.h: Add prototypes for new functions.
1063 * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line,
1064 dwarf_func_file.
1065 * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c,
1066 dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c.
1067 * libdwP.h (struct Dwarf_Func_s): Add cudie element.
1068 Declare __libdw_func_intval and __dwarf_formsdata_internal.
1069 * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object.
1070 * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs.
1071
1072 * dwarf.h: Add some DWARF3 definitions.
1073
10742005-04-01 Ulrich Drepper <drepper@redhat.com>
1075
1076 * dwarf_getfuncs.c: New file.
1077 * dwarf_func_highpc.c: New file.
1078 * dwarf_func_lowpc.c: New file.
1079 * dwarf_func_name.c: New file.
1080 * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c,
1081 dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c.
1082 * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc,
1083 and dwarf_func_name.
1084 * libdw.h: Add prototypes for new functions.
1085 * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs.
1086 * dwarf_siblingof.c: Likewise.
1087 * dwarf_dieoffset.c: Likewise.
1088 * dwarf_highpc.c: Likewise.
1089 * dwarf_lowpc.c: Likewise.
1090 * libdwP.h: Add prototypes for internal functions.
1091 Define Dwarf_Func_s structure.
1092
10932005-03-29 Ulrich Drepper <drepper@redhat.com>
1094
1095 * libdw.h: Add padding in Dwarf_die.
1096
1097 * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs.
1098 * dwarf_attr.c: Likewise.
1099 * dwarf_begin.c: Likewise.
1100 * dwarf_begin_elf.c: Likewise.
1101 * dwarf_bitoffset.c: Likewise.
1102 * dwarf_bitsize.c: Likewise.
1103 * dwarf_bytesize.c: Likewise.
1104 * dwarf_diename.c: Likewise.
1105 * dwarf_formaddr.c: Likewise.
1106 * dwarf_formblock.c: Likewise.
1107 * dwarf_formref.c: Likewise.
1108 * dwarf_formstring.c: Likewise.
1109 * dwarf_formudata.c: Likewise.
1110 * dwarf_getarange_addr.c: Likewise.
1111 * dwarf_getarangeinfo.c: Likewise.
1112 * dwarf_getaranges.c: Likewise.
1113 * dwarf_getloclist.c: Likewise.
1114 * dwarf_getmacros.c: Likewise.
1115 * dwarf_getsrc_die.c: Likewise.
1116 * dwarf_getsrcfiles.c: Likewise.
1117 * dwarf_getsrclines.c: Likewise.
1118 * dwarf_highpc.c: Likewise.
1119 * dwarf_lowpc.c: Likewise.
1120 * dwarf_nextcu.c: Likewise.
1121 * dwarf_offdie.c: Likewise.
1122 * dwarf_siblingof.c: Likewise.
1123 * dwarf_srclang.c: Likewise.
1124 * dwarf_tag.c: Likewise.
1125 * libdw_findcu.c: Likewise.
1126 * libdwP.h: Add prototypes for internal functions.
1127
1128 * dwarf_addrdie.c: New file.
1129 * dwarf_macro_opcode.c: New file.
1130 * dwarf_macro_param1.c: New file.
1131 * dwarf_macro_param2.c: New file.
1132 * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h.
1133 * libdwP.h: Remove Dwarf_Macro definition.
1134 * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c,
1135 dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c.
1136 * libdw.map: Add entries for new functions.
1137
11382005-03-21 Ulrich Drepper <drepper@redhat.com>
1139
1140 * libdw.h: Handle broken gcc < 4.
1141
11422005-02-15 Ulrich Drepper <drepper@redhat.com>
1143
1144 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
1145
1146 * dwarf_begin_elf.c: Fix warnings.
1147 * dwarf_dieoffset.c: Likewise.
1148 * dwarf_end.c: Likewise.
1149 * dwarf_error.c: Likewise.
1150 * dwarf_getpubnames.c: Likewise.
1151
1152 * libdwP.h: Add new error values.
1153 * dwarf_error.c: Support new error values.
1154 * dwarf_getpubnames.c: Check parameter value.
1155
11562005-02-05 Ulrich Drepper <drepper@redhat.com>
1157
1158 * Makefile.am: Check for text relocations in constructed DSO.
1159
1160 * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap.
1161
11622005-02-04 Ulrich Drepper <drepper@redhat.com>
1163
1164 * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary
1165 checks to not read over buffer boundaries for ill-formed DWARF data.
1166
11672004-09-25 Ulrich Drepper <drepper@redhat.com>
1168
1169 * dwarf_child.c: Make compile with gcc 4.0.
1170 * dwarf_error.c: Likewise.
1171 * dwarf_formblock.c: Likewise.
1172 * dwarf_getabbrev.c: Likewise.
1173 * dwarf_getattrs.c: Likewise.
1174 * dwarf_getsrclines.c: Likewise.
1175 * dwarf_tag.c: Likewise.
1176 * libdw_form.c: Likewise.
1177
11782004-01-20 Ulrich Drepper <drepper@redhat.com>
1179
1180 * Makefile.am: Support building with mudflap.
1181
1182 * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out.
1183 * dwarf_getsrclines.c: Likewise.
1184 * dwarf_memory-access.h: Likewise.
1185
11862004-01-19 Ulrich Drepper <drepper@redhat.com>
1187
1188 * dwarf_getsrcfiles.c: Third parameter can be NULL.
1189
1190 * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros.
1191 Third parameter of dwarf_getsrcfiles can be NULL.
1192
1193 * libdw.map: Add dwarf_getmacros.
1194 * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros.
1195 * dwarf_getmacros.c: New file.
1196
11972004-01-18 Ulrich Drepper <drepper@redhat.com>
1198
1199 * libdw.h: Second parameter of dwarf_getaranges can be NULL.
1200
1201 * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL.
1202
1203 * dwarf_getsrclines.c:
1204 Use read_2ubyte_unaligned_inc instead of _inc-less variant.
1205
1206 * dwarf_getaranges.c: Allow naranges parameter to be NULL.
1207
1208 * libdwP.h (_): Use elfutils domain.
1209
1210 * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction.
1211
1212 * dwarf_getsrclines.c: Fix typo in comment.
1213
12142004-01-17 Ulrich Drepper <drepper@redhat.com>
1215
1216 * Makefile.am: Support building with mudflap.
1217
12182004-01-16 Ulrich Drepper <drepper@redhat.com>
1219
1220 * memory-access.h: Add lots of const in case a pointer passed is const.
1221
1222 * dwarf_formflag.c: New file.
1223 * dwarf_getattrs.c: New file.
1224 * dwarf_error.c: Add new error value.
1225 * libdw.h: Add prototypes for new functions. Adjust prototype for
1226 dwarf_getpubnames.
1227 * libdw.map: Add new functions.
1228 * dwarf_getpubnames.c: Change type of return value and fourth parameter
1229 to ptrdiff_t.
1230 * libdwP.h: Add new error value.
1231 * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and
1232 dwarf_formflag.c.
1233
1234 * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL.
1235
12362004-01-12 Ulrich Drepper <drepper@redhat.com>
1237
1238 * dwarf_getarange_addr.c: New file
1239 * dwarf_getarangeinfo.c: New file.
1240 * dwarf_getaranges.c: New file.
1241 * dwarf_onerange.c: New file.
1242 * libdw.h: Declare new functions. Define Dwarf_Arange and
1243 Dwarf_Aranges.
1244 * libdw.map: Add new functions.
1245 * libdwP.h: Add new errors. Add aranges member to struct Dwarf.
1246 Define Dwarf_Aranges_s and Dwarf_Arange_s.
1247 * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c,
1248 dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c.
1249 * dwarf_error.c: Add new message.
1250
12512004-01-11 Ulrich Drepper <drepper@redhat.com>
1252
1253 * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c,
1254 dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c,
1255 dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c.
1256 * dwarf_error.c: Add another message.
1257 * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines
1258 introduction.
1259 * dwarf_filesrc.c: Likewise.
1260 * dwarf_getsrcfiles.c: Likewise.
1261 * dwarf_getsrclines.c: Likewise.
1262 * dwarf_lineaddr.c: New file.
1263 * dwarf_linebeginstatement.c: New file.
1264 * dwarf_lineblock.c: New file.
1265 * dwarf_linecol.c: New file.
1266 * dwarf_lineendsequence.c: New file.
1267 * dwarf_lineepiloguebegin.c: New file.
1268 * dwarf_lineno.c: New file.
1269 * dwarf_lineprologueend.c: New file.
1270 * dwarf_onesrcline.c: New file.
1271 * dwarf_lineno.c: Change interface to store result in object pointed
1272 to by second parameter.
1273 * libdw.h: Add prototypes for new functions. Change dwarf_lineno
1274 prototype. Define Dwarf_Files and Dwarf_Lines.
1275 * libdw.map: Add new functions.
1276 * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s.
1277 * libdw_findcu.c: Don't initialize nlines field.
1278
1279 * dwarf_siblingof: Little optimization.
1280
1281 * dwarf_begin.c: Remember that the ELF descriptor must be closed.
1282 * dwarf_end.c: Close ELF descriptor if free_elf is set.
1283 * libdwP.h (struct Dwarf): Add free_elf field.
1284
1285 * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and
1286 dwarf_offabbrev.c.
1287 * dwarf_getstring.c: New file.
1288 * dwarf_offabbrev.c: New file.
1289 * libdw.map: Add dwarf_getstring and dwarf_offabbrev.
1290 * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result
1291 parameters. Don't allocate memory if not necessary and don't lookup
1292 previous results if no CU given.
1293 (dwarf_getabbrev): Adjust call to __libdw_getabbrev.
1294 * dwarf_tag.c: Adjust call to __libdw_getabbrev.
1295 * libdw.h: Declare dwarf_offabbrev and dwarf_getstring.
1296 * libdwP.h: Change prototype for __libdw_getabbrev.
1297
1298 * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before
1299 returning if this is wanted.
1300
13012004-01-09 Ulrich Drepper <drepper@redhat.com>
1302
1303 * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it
1304 with offset_size value.
1305 * libdw.h: Adjust dwarf_nextcu prototype.
1306 * libdwP.h (struct Dwarf_CU): Add offset_size member.
1307 * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size
1308 member of new CU struct.
1309 * dwarf_formstring.c: Depend on offset_size not address_size for
1310 DW_FORM_strp handling.
1311 * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr.
1312
1313 * dwarf_tag.c (__libdw_findabbrev): Return correct value for
1314 failing lookup.
1315 (dwarf_tag): Correctly recognize failed lookup.
1316
1317 * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new
1318 function noop_free.
1319 * dwarf_error.c: Add message for DWARF_E_NO_BLOCK.
1320 * dwarf_formblock.c: New file.
1321 * dwarf_getloclist.c: Rewrite to handle a single block.
1322 * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove
1323 Dwarf_Locdesc definition. Declare dwarf_formblock. Remove
1324 dwarf_getloclistent declaration.
1325 * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent.
1326 * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK.
1327 Add locs member to struct Dwarf_CU.
1328 * libdw_fundcu.c: Initialize locs member of new CU.
1329 * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c.
1330 Remove dwarf_getloclistent.c.
1331
13322004-01-07 Ulrich Drepper <drepper@redhat.com>
1333
1334 * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3.
1335 * libdwP.h: Likewise.
1336
1337 * dwarf_getloclist.c: New file.
1338 * dwarf_getloclistent.c: New file.
1339 * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc.
1340 Declare dwarf_getloclistent and dwarf_getloclist.
1341 * libdw.map: Add dwarf_getloclistent and dwarf_getloclist.
1342 * libdwP.h: Define DWARF_E_NO_LOCLIST.
1343 * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and
1344 dwarf_getloclist.c.
1345
1346 * dwarf_error.c: More error messages.
1347
13482004-01-06 Ulrich Drepper <drepper@redhat.com>
1349
1350 * dwarf_getsrclines.c: Remove debugging support.
1351
1352 * dwarf_getsrcfiles.c: New file.
1353 * dwarf_filesrc.c: New file.
1354 * libdw.h: Declare these functions. Define Dwarf_File.
1355 * libdwP.c: Adjust Dwarf_File_s definition.
1356 * libdw.map: Add these functions.
1357 * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and
1358 dwarf_filesrc.c.
1359 * dwarf_getsrclines.c: Initialize cu->files.
1360
13612004-01-05 Ulrich Drepper <drepper@redhat.com>
1362
1363 * libdw.h: Add more nonnull function attributes.
1364
1365 * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next.
1366 * dwarf_end.c (cu_free): New function.
1367 (dwarf_end): Also free CU tree. Correct freeing of memory blocks.
1368 * dwarf_error.c (errmsgs): Add new messages.
1369 * dwarf_getsrc_die.c: New file.
1370 * dwarf_getsrclines.c: New file.
1371 * dwarf_lineno.c: New file.
1372 * dwarf_linesrc.c: New file.
1373 * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc
1374 instead of the *_inc-less variants.
1375 * libdw.h: Define Dwarf_Line. Add some function attributes. Declare
1376 dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc.
1377 * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno,
1378 and dwarf_linesrc.
1379 * libdwP.h: Add more error codes.
1380 (struct Dwarf): Remove mem_tail.next member.
1381 (Dwarf_File): Define type.
1382 (struct Dwarf_Line_s): Define type.
1383 (struct Dwarf_CU): Add lines and nlines members.
1384 (libdw_alloc): Define local variable _tail and use it.
1385 Add some function attributes.
1386 * libdw_alloc.c (__libdw_allocate): Don't initialize next member.
1387 * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members.
1388 * memory-access.h: Add unlikely for the endian conversion paths.
1389 * Makefile.am (AM_CFLAGS): Add -std parameter.
1390 (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die,
1391 dwarf_lineno, and dwarf_linesrc.
1392
13932003-08-11 Ulrich Drepper <drepper@redhat.com>
1394
Ulrich Drepper6fb34512010-05-28 20:28:04 -07001395 * Moved to CVS archive.