Mark Wielaard | c25dc62 | 2017-12-11 23:58:34 +0100 | [diff] [blame^] | 1 | 2017-12-12 Mark Wielaard <mark@klomp.org> |
| 2 | |
| 3 | * dwarf_aggregate_size.c (dwarf_aggregate_size): Don't peel the |
| 4 | given DIE. Reserve memory for a new DIE first. |
| 5 | |
Dima Kogan | a2246aa | 2017-12-08 01:45:10 -0800 | [diff] [blame] | 6 | 2017-12-11 Dima Kogan <dima@secretsauce.net> |
| 7 | |
| 8 | * dwarf_aggregate_size.c (array_size): Handle multi-dimensional |
| 9 | arrays properly. |
| 10 | |
Mark Wielaard | e23c713 | 2017-11-02 16:23:24 +0100 | [diff] [blame] | 11 | 2017-11-03 Mark Wielaard <mark@klomp.org> |
| 12 | |
Mark Wielaard | afda91c | 2017-11-02 16:24:41 +0100 | [diff] [blame] | 13 | * dwarf_getlocation.c (__libdw_intern_expression): Handle |
| 14 | DW_OP_GNU_variable_value. |
| 15 | * dwarf_getlocation_attr.c (dwarf_getlocation_attr): Likewise. |
| 16 | * dwarf_getlocation_die.c (dwarf_getlocation_die): Likewise. |
| 17 | |
| 18 | 2017-11-03 Mark Wielaard <mark@klomp.org> |
| 19 | |
Mark Wielaard | 7286e5c | 2017-11-02 16:24:17 +0100 | [diff] [blame] | 20 | * dwarf_getlocation.c (attr_ok): Always accept DW_FORM_exprloc. |
| 21 | Update list of acceptable attribute codes based on DWARF5. |
| 22 | |
| 23 | 2017-11-03 Mark Wielaard <mark@klomp.org> |
| 24 | |
Mark Wielaard | e23c713 | 2017-11-02 16:23:24 +0100 | [diff] [blame] | 25 | * dwarf.h: Add DW_OP_GNU_variable_value. |
| 26 | |
Mark Wielaard | 7341184 | 2017-10-03 23:08:01 +0200 | [diff] [blame] | 27 | 2017-10-03 Mark Wielaard <mark@klomp.org> |
| 28 | |
| 29 | * libdw.h: Define LIBDW_CIE_ID and use it in dwarf_cfi_cie_p. |
| 30 | |
Ulf Hermann | 17d7194 | 2017-08-18 14:05:10 +0200 | [diff] [blame] | 31 | 2017-08-18 Ulf Hermann <ulf.hermann@qt.io> |
| 32 | |
| 33 | * memory-access.h: Use attribute_packed. |
| 34 | |
Ulf Hermann | 0773758 | 2017-08-18 12:41:11 +0200 | [diff] [blame] | 35 | 2017-02-27 Ulf Hermann <ulf.hermann@qt.io> |
| 36 | |
Ulf Hermann | 1127470 | 2017-08-18 13:06:36 +0200 | [diff] [blame] | 37 | * libdwP.h: Use attribute_hidden. |
| 38 | * libdw_alloc.c: Likewise. |
| 39 | |
| 40 | 2017-02-27 Ulf Hermann <ulf.hermann@qt.io> |
| 41 | |
Ulf Hermann | 0773758 | 2017-08-18 12:41:11 +0200 | [diff] [blame] | 42 | * Makefile.am: Use fpic_CFLAGS and dso_LDFLAGS. |
| 43 | |
Mark Wielaard | 2d906d8 | 2017-07-26 17:38:22 +0200 | [diff] [blame] | 44 | 2017-07-26 Mark Wielaard <mark@klomp.org> |
| 45 | |
Mark Wielaard | f9d791a | 2017-07-26 23:02:18 +0200 | [diff] [blame] | 46 | * dwarf.h: Add DW_MACRO_* and compat defines for DW_MACRO_GNU_*. |
| 47 | * dwarf_getmacros.c (get_table_for_offset): Accept either version |
| 48 | 4 or 5. Use DW_MACRO names instead of DW_MACRO_GNU names. |
| 49 | (read_macros): Use table version for fake_cu. |
| 50 | |
| 51 | 2017-07-26 Mark Wielaard <mark@klomp.org> |
| 52 | |
Mark Wielaard | 274f28c | 2017-07-26 22:54:59 +0200 | [diff] [blame] | 53 | * dwarf_peel_type.c (dwarf_peel_type): Handle DW_TAG_immutable_type, |
| 54 | DW_TAG_packed_type and DW_TAG_shared_type. |
| 55 | * libdw.h (dwarf_peel_type): Extend documentation. |
| 56 | |
| 57 | 2017-07-26 Mark Wielaard <mark@klomp.org> |
| 58 | |
Mark Wielaard | 02e3093 | 2017-07-26 18:32:27 +0200 | [diff] [blame] | 59 | * dwarf.h: Add DW_DEFAULTED_no, DW_DEFAULTED_in_class and |
| 60 | DW_DEFAULTED_out_of_class. |
| 61 | |
| 62 | 2017-07-26 Mark Wielaard <mark@klomp.org> |
| 63 | |
Mark Wielaard | 75834f3 | 2017-07-26 18:15:20 +0200 | [diff] [blame] | 64 | * dwarf.h: Add DW_CC_pass_by_reference and DW_CC_pass_by_reference. |
| 65 | |
| 66 | 2017-07-26 Mark Wielaard <mark@klomp.org> |
| 67 | |
Mark Wielaard | 2eb1e34 | 2017-07-26 18:06:21 +0200 | [diff] [blame] | 68 | * dwarf_default_lower_bound.c: New file. |
| 69 | * Makefile.am (libdw_a_SOURCES): Add dwarf_default_lower_bound.c. |
| 70 | * dwarf_aggregate_size.c (array_size): Use dwarf_default_lower_bound. |
| 71 | * dwarf_error.c (errmsgs): Add DWARF_E_UNKNOWN_LANGUAGE. |
| 72 | * libdw.h: Add dwarf_default_lower_bound. |
| 73 | * libdw.map (ELFUTILS_0.170): Add dwarf_default_lower_bound. |
| 74 | * libdwP.h: Add DWARF_E_UNKNOWN_LANGUAGE and |
| 75 | dwarf_default_lower_bound INTDECL. |
| 76 | |
| 77 | 2017-07-26 Mark Wielaard <mark@klomp.org> |
| 78 | |
Mark Wielaard | d14fd3b | 2017-07-26 17:44:29 +0200 | [diff] [blame] | 79 | * dwarf.h: Add DW_LANG_OpenCL, DW_LANG_Modula3, |
| 80 | DW_LANG_C_plus_plus_03, DW_LANG_OCaml, DW_LANG_Rust, DW_LANG_Swift, |
| 81 | DW_LANG_Julia, DW_LANG_Dylan, DW_LANG_RenderScript, DW_LANG_BLISS. |
| 82 | * dwarf_aggregate_size.c (array_size): Add lower bound for |
| 83 | DW_LANG_C_plus_plus_03, DW_LANG_Python, DW_LANG_OpenCL, |
| 84 | DW_LANG_Haskell, DW_LANG_OCaml, DW_LANG_Rust, DW_LANG_Swift, |
| 85 | DW_LANG_Dylan, DW_LANG_RenderScript, DW_LANG_Modula3, |
| 86 | DW_LANG_Julia and DW_LANG_BLISS. |
| 87 | |
| 88 | 2017-07-26 Mark Wielaard <mark@klomp.org> |
| 89 | |
Mark Wielaard | 2d906d8 | 2017-07-26 17:38:22 +0200 | [diff] [blame] | 90 | * dwarf.h: Add DW_ATE_UCS and DW_ATE_ASCII. |
| 91 | |
Mark Wielaard | 8e9c76b | 2017-07-25 15:29:10 +0200 | [diff] [blame] | 92 | 2017-07-25 Mark Wielaard <mark@klomp.org> |
| 93 | |
Mark Wielaard | 9619d34 | 2017-07-26 17:06:07 +0200 | [diff] [blame] | 94 | * dwarf.h: Add DW_TAG_coarray_type, DW_TAG_generic_subrange, |
| 95 | DW_TAG_dynamic_type, DW_TAG_call_site, DW_TAG_call_site_parameter, |
| 96 | DW_TAG_skeleton_unit, DW_TAG_immutable_type. Add reserved comments |
| 97 | for currently unused numbers. |
| 98 | |
| 99 | 2017-07-25 Mark Wielaard <mark@klomp.org> |
| 100 | |
Mark Wielaard | 8e9c76b | 2017-07-25 15:29:10 +0200 | [diff] [blame] | 101 | * dwarf.h (DWARF attributes enum): Remove DW_AT_subscr_data, |
| 102 | DW_AT_element_list and DW_AT_member. Add DWARF5 attribute constants. |
| 103 | (DW_AT_subscr_data, DW_AT_element_list, DW_AT_member): New defines. |
| 104 | |
Mark Wielaard | c24b900 | 2017-07-21 21:23:07 +0200 | [diff] [blame] | 105 | 2017-07-21 Mark Wielaard <mark@klomp.org> |
| 106 | |
| 107 | * dwarf_line_file.c: New file. |
| 108 | * Makefile.am (libdw_a_SOURCES): Add dwarf_line_file.c. |
| 109 | * libdw.h (dwarf_line_file): New function declaration. |
| 110 | * libdw.map (ELFUTILS_0.170): New. Add dwarf_line_file. |
| 111 | |
Ulf Hermann | 8abf0b5 | 2017-02-17 16:11:28 +0100 | [diff] [blame] | 112 | 2017-02-17 Ulf Hermann <ulf.hermann@qt.io> |
| 113 | |
| 114 | * Makefile.am: Add libdw_so_LIBS to specify the archives libdw is is |
| 115 | made of, libdw_so_DEPS for libraries it depends on (including |
| 116 | libeu.a), libdw_so_LDLIBS to specify libraries libdw links against. |
| 117 | (libdw.so$(EXEEXT)): Add $(libdw_so_LDLIBS), remove enumeration of |
| 118 | library dependencies, use libdw_so_LIBS rather than relying on the |
| 119 | order of dependencies specified, add -z,relro. |
| 120 | |
Ulf Hermann | 037be82 | 2017-04-20 17:07:37 +0200 | [diff] [blame] | 121 | 2017-04-20 Ulf Hermann <ulf.hermann@qt.io> |
| 122 | |
Ulf Hermann | c73a00d | 2017-04-20 15:55:47 +0200 | [diff] [blame] | 123 | * libdw.h: Remove attribute macro declarations and use |
| 124 | __noreturn_attribute__ as defined in libelf.h. |
| 125 | |
| 126 | 2017-04-20 Ulf Hermann <ulf.hermann@qt.io> |
| 127 | |
Ulf Hermann | 037be82 | 2017-04-20 17:07:37 +0200 | [diff] [blame] | 128 | * dwarf_begin_elf.c: Include endian.h. |
| 129 | |
Mark Wielaard | f339da9 | 2017-03-30 12:19:53 +0200 | [diff] [blame] | 130 | 2017-03-30 Mark Wielaard <mjw@redhat.com> |
| 131 | |
| 132 | * dwarf_peel_type.c (dwarf_peel_type): Call dwarf_attr_integrate on |
| 133 | result. |
| 134 | |
Mark Wielaard | ee38b26 | 2016-10-22 19:18:51 +0200 | [diff] [blame] | 135 | 2016-10-22 Mark Wielaard <mjw@redhat.com> |
| 136 | |
| 137 | * dwarf.h: Correct spelling of DW_LANG_PLI. Add compatibility define. |
| 138 | * dwarf_aggregate_size.c (array_size): Use correct spelling of |
| 139 | DW_LANG_PLI. |
| 140 | |
Mark Wielaard | a3cc818 | 2016-11-02 13:29:26 +0100 | [diff] [blame] | 141 | 2016-11-02 Mark Wielaard <mjw@redhat.com> |
| 142 | |
| 143 | * cfi.c (execute_cfi): Add fallthrough comments. |
| 144 | * encoded-value.h (encoded_value_size): Add explicit return instead |
| 145 | of relying on fallthrough. |
| 146 | * dwfl_report_elf.c (__libdwfl_elf_address_range): Add fallthrough |
| 147 | comment. |
| 148 | |
| 149 | 2016-10-11 Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> |
Akihiko Odaki | 60b2bf1 | 2016-10-11 23:06:48 +0900 | [diff] [blame] | 150 | |
| 151 | * dwarf_getpubnames.c: Remove sys/param.h include, add system.h. |
| 152 | * libdw_alloc.c: Likewise. |
| 153 | |
Mark Wielaard | dd906c1 | 2016-07-08 14:08:22 +0200 | [diff] [blame] | 154 | 2016-07-08 Mark Wielaard <mjw@redhat.com> |
| 155 | |
| 156 | * libdw.map (ELFUTILS_0.167): New. Add dwelf_strtab_init, |
| 157 | dwelf_strtab_add, dwelf_strtab_add_len, dwelf_strtab_finalize, |
| 158 | dwelf_strent_off, dwelf_strent_str and dwelf_strtab_free. |
| 159 | |
Mark Wielaard | e93e6f9 | 2016-02-13 19:36:50 +0100 | [diff] [blame] | 160 | 2016-02-13 Mark Wielaard <mjw@redhat.com> |
| 161 | |
| 162 | * dwarf_getsrclines.c (read_srclines): Calculate ndirs first, then |
| 163 | assign to ndirlist. |
| 164 | |
Mark Wielaard | c495d75 | 2015-12-30 14:18:40 +0100 | [diff] [blame] | 165 | 2015-12-18 Mark Wielaard <mjw@redhat.com> |
| 166 | |
| 167 | * libdwP.h (struct Dwarf): Remove sectiondata_gzip_mask. |
| 168 | (__libdw_free_zdata): Remove. |
| 169 | * dwarf_begin_elf.c (inflate_section): Remove. |
| 170 | (check_section): Remove __libdw_free_zdata calls. Use elf_compress |
| 171 | and elf_compress_gnu to decompress if necessary. |
| 172 | (valid_p): Remove __libdw_free_zdata calls. |
| 173 | (scngrp_read): Use elf_compress if section is compressed. Remove |
| 174 | __libdw_free_zdata calls. |
| 175 | * dwarf_end.c (__libdw_free_zdata): Remove. |
| 176 | (dwarf_end): Don't call __libdw_free_zdata. |
| 177 | |
Mark Wielaard | 0c32b6f | 2015-11-17 23:52:39 +0100 | [diff] [blame] | 178 | 2015-10-28 Mark Wielaard <mjw@redhat.com> |
| 179 | |
| 180 | * libdw.map (ELFUTILS_0.165): New. Add dwelf_scn_gnu_compressed_size. |
| 181 | |
Mark Wielaard | 8bbfc55 | 2015-12-02 17:07:40 +0100 | [diff] [blame] | 182 | 2015-12-02 Mark Wielaard <mjw@redhat.com> |
| 183 | |
| 184 | * fde.c (intern_fde): Don't leak duplicate FDEs. |
| 185 | |
Mark Wielaard | db30f8b | 2015-12-01 15:21:55 +0100 | [diff] [blame] | 186 | 2015-12-01 Mark Wielaard <mjw@redhat.com> |
| 187 | |
Mark Wielaard | e04da0e | 2015-12-02 00:21:07 +0100 | [diff] [blame] | 188 | * fde.c (intern_fde): Don't intern an fde that doesn't cover a |
| 189 | valid code range. |
| 190 | |
| 191 | 2015-12-01 Mark Wielaard <mjw@redhat.com> |
| 192 | |
Mark Wielaard | db30f8b | 2015-12-01 15:21:55 +0100 | [diff] [blame] | 193 | * dwarf_end.c (dwarf_end): Call cu_free on fake_loc_cu if it exists. |
| 194 | |
Chih-Hung Hsieh | 454a828 | 2015-10-14 12:23:34 -0700 | [diff] [blame] | 195 | 2015-10-14 Chih-Hung Hsieh <chh@google.com> |
| 196 | |
Chih-Hung Hsieh | e0b020f | 2015-10-14 12:30:11 -0700 | [diff] [blame] | 197 | * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Move recursive |
| 198 | functions 'add_bkpt', 'entrypc_bkpt', and 'search_range' to file scope. |
| 199 | |
| 200 | 2015-10-14 Chih-Hung Hsieh <chh@google.com> |
| 201 | |
Chih-Hung Hsieh | 454a828 | 2015-10-14 12:23:34 -0700 | [diff] [blame] | 202 | * libdw_visit_scopes.c (__libdw_visit_scopes): Move recursive nested |
| 203 | function 'walk_children' to file scope; inline 'recurse' at its call |
| 204 | site. |
| 205 | |
Mark Wielaard | e2cf85c | 2015-11-19 12:37:08 +0100 | [diff] [blame] | 206 | 2015-10-19 Mark Wielaard <mjw@redhat.com> |
| 207 | |
| 208 | * frame-cache.c (__libdw_destroy_frame_cache): Call ebl_closebackend |
| 209 | if necessary. |
| 210 | |
Dmitry V. Levin | b47fb23 | 2015-11-16 18:11:23 +0300 | [diff] [blame] | 211 | 2015-10-16 Dmitry V. Levin <ldv@altlinux.org> |
| 212 | |
| 213 | * dwarf_getsrclines.c (read_srclines): Initialize state early. |
| 214 | |
Chih-Hung Hsieh | b926e56 | 2015-10-13 15:26:14 -0700 | [diff] [blame] | 215 | 2015-10-13 Chih-Hung Hsieh <chh@google.com> |
| 216 | |
Chih-Hung Hsieh | f8443bd | 2015-10-13 15:26:14 -0700 | [diff] [blame] | 217 | * dwarf_getsrclines.c (read_srclines): Move nested functions |
| 218 | 'advance_pc' and 'add_new_line' to file scope and keep many |
| 219 | local state variables within one structure. |
| 220 | |
| 221 | 2015-10-13 Chih-Hung Hsieh <chh@google.com> |
| 222 | |
Chih-Hung Hsieh | b926e56 | 2015-10-13 15:26:14 -0700 | [diff] [blame] | 223 | * dwarf_getscopevar.c (dwarf_getscopevar): Move nested |
| 224 | function 'file_matches' to file scope. |
| 225 | |
Mark Wielaard | 528cb45 | 2015-10-16 23:07:12 +0200 | [diff] [blame] | 226 | 2015-10-16 Mark Wielaard <mjw@redhat.com> |
| 227 | |
| 228 | * Makefile.am (libdw.so): Add -lz. |
| 229 | |
Chih-Hung Hsieh | 34bb96a | 2015-10-14 11:59:53 -0700 | [diff] [blame] | 230 | 2015-10-14 Chih-Hung Hsieh <chh@google.com> |
| 231 | |
| 232 | * cfi.c (execute_cfi): Move nested functions 'enough_registers' |
| 233 | and 'require_cfa_offset' to file scope. |
| 234 | |
Josh Stone | 3425454 | 2015-10-09 10:10:37 -0700 | [diff] [blame] | 235 | 2015-10-09 Josh Stone <jistone@redhat.com> |
| 236 | |
| 237 | * dwarf_begin.c (dwarf_begin): Replace stat64 and fstat64 with stat |
| 238 | and fstat. |
| 239 | |
Josh Stone | daee471 | 2015-10-05 11:04:15 -0700 | [diff] [blame] | 240 | 2015-10-05 Josh Stone <jistone@redhat.com> |
| 241 | |
| 242 | * Makefile.am (libdw.so): Add AM_V_CCLD and AM_V_at silencers. |
| 243 | |
Jose E. Marchesi | 133509f | 2015-10-05 17:36:30 +0200 | [diff] [blame] | 244 | 2015-09-24 Jose E. Marchesi <jose.marchesi@oracle.com> |
| 245 | |
| 246 | * Makefile.am (AM_CFLAGS): Use -fPIC instead of -fpic to avoid |
| 247 | relocation overflows in some platforms. |
| 248 | |
Mark Wielaard | d8698e5 | 2015-09-23 20:44:06 +0200 | [diff] [blame] | 249 | 2015-09-23 Mark Wielaard <mjw@redhat.com> |
| 250 | |
| 251 | * dwarf_error.c (__libdw_seterrno): Mark as internal_function. |
| 252 | * dwarf_formref.c (__libdw_formref): Likewise. |
| 253 | * libdw_findcu.c (__libdw_findcu): Likewise. |
| 254 | * libdw_visit_scopes.c (__libdw_visit_scopes): Likewise. |
| 255 | |
Mark Wielaard | 1ccdfb6 | 2015-09-22 22:27:01 +0200 | [diff] [blame] | 256 | 2015-09-22 Mark Wielaard <mjw@redhat.com> |
| 257 | |
| 258 | * *.c: Remove old-style function definitions. |
| 259 | |
Mark Wielaard | dd8bd91 | 2015-09-15 10:55:10 +0200 | [diff] [blame] | 260 | 2015-09-15 Mark Wielaard <mjw@redhat.com> |
| 261 | |
| 262 | * dwarf_peel_type.c (dwarf_peel_type): Don't reassign result pointer. |
| 263 | |
Chih-Hung Hsieh | 2d98286 | 2015-09-09 12:32:07 -0700 | [diff] [blame] | 264 | 2015-09-09 Chih-Hung Hsieh <chh@google.com> |
| 265 | |
| 266 | * dwarf_macro_getsrcfiles.c (dwarf_macro_getsrcfiles): Remove |
| 267 | redundant NULL tests on parameters declared with __nonnull_attribute__. |
| 268 | * dwarf_siblingof.c (dwarf_siblingof): Likewise. |
| 269 | * libdw_visit_scopes.c (__libdw_visit_scopes): Likewise. |
| 270 | |
Chih-Hung Hsieh | aa1c2ca | 2015-09-04 12:04:11 -0700 | [diff] [blame] | 271 | 2015-09-04 Chih-Hung Hsieh <chh@google.com> |
Chih-Hung Hsieh | f6b9391 | 2015-09-04 12:04:11 -0700 | [diff] [blame] | 272 | Mark Wielaard <mjw@redhat.com> |
| 273 | |
| 274 | * dwarf_getlocation.c (getlocations_addr): Replace K&R function |
| 275 | definition with ansi-C definition and add const qualifier to |
| 276 | locs argument. |
| 277 | |
| 278 | 2015-09-04 Chih-Hung Hsieh <chh@google.com> |
Chih-Hung Hsieh | aa1c2ca | 2015-09-04 12:04:11 -0700 | [diff] [blame] | 279 | |
| 280 | * libdw_findcu.c (__libdw_intern_next_unit): Replace K&R function |
| 281 | definition with ansi-C definitions. |
| 282 | (__libdw_findcu): Likewise. |
| 283 | |
Mark Wielaard | a74bdbd | 2015-08-25 15:11:01 +0200 | [diff] [blame] | 284 | 2015-08-25 Mark Wielaard <mjw@redhat.com> |
| 285 | |
| 286 | * dwarf.h: Add DW_LANG_Haskell. |
| 287 | |
Mark Wielaard | 1dcbe0c | 2015-06-18 10:38:12 +0200 | [diff] [blame] | 288 | 2015-06-18 Mark Wielaard <mjw@redhat.com> |
| 289 | |
Mark Wielaard | 85cc9c6 | 2015-06-18 11:50:50 +0200 | [diff] [blame] | 290 | * dwarf_begin_elf.c (dwarf_begin_elf): Assert page size is big enough |
| 291 | to hold a Dwarf. |
| 292 | |
| 293 | 2015-06-18 Mark Wielaard <mjw@redhat.com> |
| 294 | |
Mark Wielaard | 65e5882 | 2015-06-18 10:41:42 +0200 | [diff] [blame] | 295 | * dwarf_getpubnames.c (get_offsets): Always free mem on error. |
| 296 | |
| 297 | 2015-06-18 Mark Wielaard <mjw@redhat.com> |
| 298 | |
Mark Wielaard | 1dcbe0c | 2015-06-18 10:38:12 +0200 | [diff] [blame] | 299 | * dwarf_getmacros.c (get_macinfo_table): Return NULL when |
| 300 | dwarf_formudata reports an error. |
| 301 | (get_table_for_offset): Likewise. |
| 302 | |
Mark Wielaard | 9e3d5c2 | 2015-06-09 00:31:25 +0200 | [diff] [blame] | 303 | 2015-06-08 Mark Wielaard <mjw@redhat.com> |
| 304 | |
| 305 | * dwarf_getsrclines.c (read_srclines): Initialize dirarray early. |
| 306 | |
Mark Wielaard | 20956b8 | 2015-06-03 17:42:38 +0200 | [diff] [blame] | 307 | 2015-06-06 Mark Wielaard <mjw@redhat.com> |
| 308 | |
| 309 | * dwarf_getsrclines.c (read_srclines): Initialize filelist early. |
| 310 | |
Mark Wielaard | 1ae83ee | 2015-05-27 14:05:15 +0200 | [diff] [blame] | 311 | 2015-05-27 Mark Wielaard <mjw@redhat.com> |
| 312 | |
| 313 | * encoded-value.h (read_encoded_value): Check data d_size contains |
| 314 | at least enough data to hold a pointer for DW_EH_PE_indirect. |
| 315 | |
Mark Wielaard | e69f59c | 2015-05-22 23:33:56 +0200 | [diff] [blame] | 316 | 2015-05-22 Mark Wielaard <mjw@redhat.com> |
| 317 | |
| 318 | * dwarf_getsrclines.c (read_srclines): Limit stack usage of lines |
| 319 | with MAX_STACK_LINES, files with MAX_STACK_LINES and dirs with |
| 320 | MAX_STACK_DIRS. Calculate number of dirs needed first, then |
| 321 | create dirarray directly, without needing the next field. Free |
| 322 | not stack allocated lines and files at the end. |
| 323 | |
Mark Wielaard | 720f83a | 2015-05-19 11:52:58 +0200 | [diff] [blame] | 324 | 2015-05-19 Mark Wielaard <mjw@redhat.com> |
| 325 | |
| 326 | * dwarf_getlocation.c (__libdw_intern_expression): Create a stack |
| 327 | allocated array to hold locs. Allocate locs bigger than the array |
| 328 | with malloc and free them when done. |
| 329 | |
Jonathan Lebon | 9065907 | 2015-05-11 15:38:13 -0400 | [diff] [blame] | 330 | 2015-05-11 Jonathan Lebon <jlebon@redhat.com> |
| 331 | |
Jonathan Lebon | 987e3d7 | 2015-05-11 15:38:14 -0400 | [diff] [blame] | 332 | * libdwP.h (DWARF_E_COMPRESSED_ERROR): New enumerator. |
| 333 | * dwarf_error.c (errmsgs): Add DWARF_E_COMPRESSED_ERROR message. |
| 334 | * dwarf_begin_elf.c (inflate_section): New static function, lifted |
| 335 | from... |
| 336 | (check_section): ... here. Call inflate_section, set libdw errno to |
| 337 | DWARF_E_COMPRESSED_ERROR if .debug_info section couldn't be inflated. |
| 338 | |
| 339 | 2015-05-11 Jonathan Lebon <jlebon@redhat.com> |
| 340 | |
Jonathan Lebon | 9065907 | 2015-05-11 15:38:13 -0400 | [diff] [blame] | 341 | * dwarf_begin_elf.c (check_section): Add compressed flag. Always |
| 342 | check for .zdebug sections. Only wrap decompression in #if USE_ZLIB. |
| 343 | |
Mark Wielaard | dedb5e7 | 2015-05-06 12:55:21 +0200 | [diff] [blame] | 344 | 2015-05-06 Mark Wielaard <mjw@redhat.com> |
| 345 | |
| 346 | * dwarf_getsrclines.c (read_srclines): Use an int64_t to store and |
| 347 | check the line number. |
| 348 | |
Mark Wielaard | ae02916 | 2015-05-05 10:16:42 +0200 | [diff] [blame] | 349 | 2015-05-05 Mark Wielaard <mjw@redhat.com> |
| 350 | |
| 351 | * dwarf_getaranges.c (dwarf_getaranges): Check there is enough data |
| 352 | left before reading values. |
| 353 | |
Anthony G. Basile | 1ab3c2b | 2015-05-04 02:25:39 +0300 | [diff] [blame] | 354 | 2015-05-04 Anthony G. Basile <blueness@gentoo.org> |
| 355 | |
| 356 | * Makefile.am (libdw_so_SOURCES): Append $(argp_LDADD) to link |
| 357 | command. |
| 358 | |
Mark Wielaard | 65a211f | 2015-04-22 12:28:30 +0200 | [diff] [blame] | 359 | 2015-04-22 Mark Wielaard <mjw@redhat.com> |
| 360 | |
| 361 | * memory-access.h (__libdw_max_len_leb128): Take type_len as argument. |
| 362 | (__libdw_max_len_uleb128): New function. |
| 363 | (__libdw_max_len_sleb128): Likewise. |
| 364 | (__libdw_get_uleb128): Use __libdw_max_len_uleb128. |
| 365 | (__libdw_get_sleb128): Use __libdw_max_len_sleb128. |
| 366 | |
Mark Wielaard | f98b99d | 2015-04-21 15:46:01 +0200 | [diff] [blame] | 367 | 2015-04-21 Mark Wielaard <mjw@redhat.com> |
| 368 | |
| 369 | * dwarf_getmacros.c (read_macros): Allocate attributes dynamically |
| 370 | when there are more than 8. |
| 371 | |
Petr Machata | 71de1d2 | 2015-04-01 21:44:32 +0200 | [diff] [blame] | 372 | 2015-04-01 Petr Machata <pmachata@redhat.com> |
| 373 | |
| 374 | * libdwP.h (DWARF_E_NOT_CUDIE): New enumerator. |
| 375 | (is_cudie): New function. |
| 376 | * dwarf_error.c (errmsgs): Add message for DWARF_E_NOT_CUDIE. |
| 377 | * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Call is_cudie instead |
| 378 | of white-listing valid tags. |
| 379 | * dwarf_getsrclines.c (dwarf_getsrclines): Likewise. |
| 380 | |
Petr Machata | 7f61734 | 2015-03-18 19:42:02 +0100 | [diff] [blame] | 381 | 2015-03-18 Petr Machata <pmachata@redhat.com> |
| 382 | |
| 383 | * Makefile.am (pkginclude_HEADERS): Add known-dwarf.h. |
| 384 | (EXTRA_DIST): Remove known-dwarf.h. |
| 385 | |
Mark Wielaard | 7fb8031 | 2015-02-09 16:24:04 +0100 | [diff] [blame] | 386 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
| 387 | |
Mark Wielaard | d3c816d | 2015-02-09 16:47:08 +0100 | [diff] [blame] | 388 | * dwarf.h: Add DW_LANG_Fortran03 and DW_LANG_Fortran08. |
| 389 | * dwarf_aggregate_size.c (array_size): Recognize array lower bound |
| 390 | for new Fortran language codes is 1. |
| 391 | |
| 392 | 2015-02-09 Mark Wielaard <mjw@redhat.com> |
| 393 | |
Mark Wielaard | 7fb8031 | 2015-02-09 16:24:04 +0100 | [diff] [blame] | 394 | * dwarf.h: Add DW_TAG_atomic_type. |
| 395 | * libdw.h (dwarf_peel_type): Document DW_TAG_atomic_type. |
| 396 | * dwarf_peel_type.c (dwarf_peel_type): Handle DW_TAG_atomic_type. |
| 397 | |
Josh Stone | 031db7c | 2015-02-11 13:53:14 -0800 | [diff] [blame] | 398 | 2015-02-11 Josh Stone <jistone@redhat.com> |
| 399 | |
| 400 | * encoded-value.h (read_encoded_value): Initialize value. |
| 401 | |
Petr Machata | b4da85d | 2015-02-11 22:11:46 +0100 | [diff] [blame] | 402 | 2015-02-11 Petr Machata <pmachata@redhat.com> |
| 403 | |
| 404 | * dwarf_ranges.c (dwarf_ranges): Do not bail out when neither |
| 405 | DW_AT_entry_pc nor DW_AT_low_pc are available. Instead remember |
| 406 | the fact in *BASEP and bail out later if it hasn't been updated by |
| 407 | __libdw_read_begin_end_pair_inc. |
| 408 | |
Mark Wielaard | ddbf23a | 2014-12-24 13:17:23 +0100 | [diff] [blame] | 409 | 2014-12-24 Mark Wielaard <mjw@redhat.com> |
| 410 | |
| 411 | * dwarf_getsrc_die.c (dwarf_getsrc_die): Return the last line record |
| 412 | smaller than or equal to addr, rather than returning immediately on |
| 413 | a match. |
| 414 | |
Mark Wielaard | b4b2de9 | 2015-01-07 23:39:28 +0100 | [diff] [blame] | 415 | 2015-01-07 Mark Wielaard <mjw@redhat.com> |
| 416 | |
| 417 | * cfi.h (struct Dwarf_CFI_s): Add search_table_len. |
| 418 | * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Check there is enough |
| 419 | room in the search table for all entries. Store search_table_len. |
| 420 | (getcfi_scn_eh_frame): Likewise. |
| 421 | * encoded-value.h (encoded_value_size): Don't abort, return zero. |
| 422 | (__libdw_cfi_read_address_inc): Check there is enough room to read |
| 423 | values. Pass other byte order to read functions. |
| 424 | (read_encoded_value): Check encoded_value_size. Don't abort, but |
| 425 | set libdw errno and report failure. Check there is enough room to |
| 426 | read values. |
| 427 | * fde.c (binary_search_fde): Check encoded value size. Add hdr |
| 428 | data buf and size to dummy_cfi. |
| 429 | |
Mark Wielaard | a1ea242 | 2015-01-04 16:08:22 +0100 | [diff] [blame] | 430 | 2015-01-04 Mark Wielaard <mjw@redhat.com> |
| 431 | |
Mark Wielaard | 43e924e | 2015-01-05 00:03:03 +0100 | [diff] [blame] | 432 | * dwarf_siblingof.c (dwarf_siblingof): Check sibling attribute |
| 433 | is after current DIE. |
| 434 | |
| 435 | 2015-01-04 Mark Wielaard <mjw@redhat.com> |
| 436 | |
Mark Wielaard | a1ea242 | 2015-01-04 16:08:22 +0100 | [diff] [blame] | 437 | * cfi.c (enough_registers): Check reg < INT32_MAX / sizeof |
| 438 | (dwarf_frame_register). |
| 439 | |
Mark Wielaard | 5316e41 | 2015-01-03 00:09:45 +0100 | [diff] [blame] | 440 | 2015-01-02 Mark Wielaard <mjw@redhat.com> |
| 441 | |
Mark Wielaard | 9ceebe6 | 2015-01-03 00:27:58 +0100 | [diff] [blame] | 442 | * dwarf_getcfi_elf.c (parse_eh_frame_hdr): Add size check. |
| 443 | (getcfi_gnu_eh_frame): Remove size check. Check d_buf is not NULL. |
| 444 | (getcfi_scn_eh_frame): Check d_buf is not NULL. |
| 445 | |
| 446 | 2015-01-02 Mark Wielaard <mjw@redhat.com> |
| 447 | |
Mark Wielaard | 5316e41 | 2015-01-03 00:09:45 +0100 | [diff] [blame] | 448 | * dwarf_getlocation.c (__libdw_intern_expression): Check dbg is not |
| 449 | NULL for DW_OP_call_ref and DW_OP_GNU_implicit_pointer. For |
| 450 | DW_OP_addr if dbg is NULL then read argument directly. |
| 451 | |
Jason P. Leasure | 7c71382 | 2015-01-14 09:26:55 -0500 | [diff] [blame] | 452 | 2015-01-14 Jason P. Leasure <jpleasu@super.org> |
| 453 | |
| 454 | * dwarf_formref_die.c (dwarf_formref_die): Offset is cu->type_offset |
| 455 | plus cu->start. |
| 456 | |
Mark Wielaard | 3fa1796 | 2014-12-27 12:13:50 +0100 | [diff] [blame] | 457 | 2014-12-27 Mark Wielaard <mjw@redhat.com> |
| 458 | |
| 459 | * dwarf_siblingof.c (dwarf_siblingof): Check sibling attribute offset |
| 460 | still falls inside CU data. |
| 461 | |
Mark Wielaard | daf278f | 2015-01-11 15:00:52 +0100 | [diff] [blame] | 462 | 2015-01-11 Mark Wielaard <mjw@redhat.com> |
| 463 | |
| 464 | * dwarf_func_inline.c (dwarf_func_inline_instances): Call |
| 465 | __libdw_visit_scopes with NULL imports. |
| 466 | * dwarf_getfuncs.c (dwarf_getfuncs): Likewise. |
| 467 | * dwarf_getscopes.c (pc_record): Likewise. |
| 468 | (dwarf_getscopes): Likewise. |
| 469 | * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise. |
| 470 | * libdwP.h (__libdw_visit_scopes): Add imports argument. |
| 471 | * libdw_visit_scopes.c (__libdw_visit_scopes): Likewise. Add new |
| 472 | function imports_contains. Push and pop imports around walk_children |
| 473 | when processing DW_TAG_imported_unit. |
| 474 | |
Ulrich Drepper | 898ed26 | 2014-12-18 12:32:39 -0500 | [diff] [blame] | 475 | 2014-12-18 Ulrich Drepper <drepper@gmail.com> |
| 476 | |
| 477 | * Makefile.am: Suppress output of textrel_check command. |
| 478 | |
Mark Wielaard | ff1ce97 | 2014-12-16 16:10:28 +0100 | [diff] [blame] | 479 | 2014-12-16 Mark Wielaard <mjw@redhat.com> |
| 480 | |
Mark Wielaard | ecd78d3 | 2014-12-16 22:47:39 +0100 | [diff] [blame] | 481 | * dwarf_getsrclines.c (read_srclines): Check diridx is valid under |
| 482 | DW_LNE_define_file. |
| 483 | |
| 484 | 2014-12-16 Mark Wielaard <mjw@redhat.com> |
| 485 | |
Mark Wielaard | 7f9ea70 | 2014-12-16 16:41:19 +0100 | [diff] [blame] | 486 | * dwarf_getpubnames.c (dwarf_getpubnames): Make sure there is enough |
| 487 | space to read die offset. |
| 488 | |
| 489 | 2014-12-16 Mark Wielaard <mjw@redhat.com> |
| 490 | |
Mark Wielaard | ff1ce97 | 2014-12-16 16:10:28 +0100 | [diff] [blame] | 491 | * dwarf_getsrclines.c (read_srclines): Correct overflow check for |
| 492 | unit_length. |
| 493 | |
Mark Wielaard | 3864804 | 2014-12-15 14:56:07 +0100 | [diff] [blame] | 494 | 2014-12-15 Mark Wielaard <mjw@redhat.com> |
| 495 | |
| 496 | * dwarf_getpubnames.c (get_offsets): Make sure whole unit fall inside |
Mark Wielaard | 138a9ba | 2014-12-15 16:56:49 +0100 | [diff] [blame] | 497 | section data. Set error to DWARF_E_NO_ENTRY if cnt is zero. |
Mark Wielaard | 3864804 | 2014-12-15 14:56:07 +0100 | [diff] [blame] | 498 | (dwarf_getpubnames): Make sure section data contains string zero |
| 499 | terminator. |
| 500 | |
Mark Wielaard | 1b5477d | 2014-12-16 10:53:22 +0100 | [diff] [blame] | 501 | 2014-12-16 Mark Wielaard <mjw@redhat.com> |
| 502 | |
| 503 | * memory-access.h (__libdw_get_sleb128): Unroll the first step to help |
| 504 | the compiler optimize for the common single-byte case. |
| 505 | |
Josh Stone | 54662f1 | 2014-12-15 12:18:25 -0800 | [diff] [blame] | 506 | 2014-12-15 Josh Stone <jistone@redhat.com> |
| 507 | |
| 508 | * memory-access.h (__libdw_max_len_leb128): New. |
| 509 | (__libdw_get_uleb128): Use __libdw_max_len_leb128. |
| 510 | (__libdw_get_sleb128): Likewise. |
| 511 | |
Mark Wielaard | 7a05347 | 2014-12-14 21:48:23 +0100 | [diff] [blame] | 512 | 2014-12-14 Mark Wielaard <mjw@redhat.com> |
| 513 | |
| 514 | * cfi.c (execute_cfi): Add program bounds checks. |
| 515 | * dwarf_child.c (__libdw_find_attr): Add attrp bounds checks. |
| 516 | * dwarf_formblock.c (dwarf_formblock): Call get_uleb128 with endp. |
| 517 | * dwarf_formref.c (__libdw_formref): Add datap bounds checks. |
| 518 | * dwarf_formsdata.c (dwarf_formsdata): Likewise. |
| 519 | * dwarf_formudata.c (dwarf_formudata): Likewise. |
| 520 | * dwarf_frame_register.c (dwarf_frame_register): Call get_uleb128 |
| 521 | with end of data buf. |
| 522 | * dwarf_getabbrev.c (__libdw_getabbrev): Add abbrevp bounds checks. |
| 523 | * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Assume get_uleb128 |
| 524 | call gets enough data. |
| 525 | * dwarf_getattrs,c (dwarf_getattrs): Call get_uleb128 with endp. |
| 526 | * dwarf_getlocation.c (store_implicit_value): Call get_uleb128 |
| 527 | with enough data. |
| 528 | (__libdw_intern_expression): Call get_uleb128/get_sleb128 with |
| 529 | end_data. |
| 530 | * dwarf_getmacros.c (get_table_for_offset): Add nforms bounds check. |
| 531 | * dwarf_getsrclines.c (read_srclines): Bounds check linep and call |
| 532 | get_uleb128 with lineendp. |
| 533 | * dwarf_hasattr.c (dwarf_hasattr): Bounds check attrp and call |
| 534 | get_uleb128 with endp. |
| 535 | * dwarf_next_cfi.c (dwarf_next_cfi): Bounds check bytes and call |
| 536 | get_uleb128/get_sleb128 with limit. |
| 537 | * encoded-value.h (read_encoded_value): Assume get_uleb128 and |
| 538 | get_sleb128 get called with enough data. |
| 539 | * fde.c (intern_fde): Call get_uleb128 with instructions_end. |
| 540 | * libdwP.h (__libdw_dieabbrev): Call get_uleb128 with die->cu->endp. |
| 541 | * libdw_form.c (__libdw_form_val_compute_len): Call get_uleb128 with |
| 542 | endp. |
| 543 | * memory-access.h (__libdw_get_uleb128): Take an extra endp. |
| 544 | Don't call get_uleb128_step if out of data. |
| 545 | (__libdw_get_sleb128): Likewise for get_sleb128_step. |
| 546 | |
Mark Wielaard | 9202665 | 2014-12-12 16:43:04 +0100 | [diff] [blame] | 547 | 2014-12-12 Mark Wielaard <mjw@redhat.com> |
| 548 | |
| 549 | * libdwP.h (struct Dwarf): Add fake_loc_cu. |
| 550 | (cu_data): Removed. |
| 551 | (DIE_OFFSET_FROM_CU_OFFSET): Don't use cu_data, use cu_sec_idx. |
| 552 | (__libdw_form_val_compute_len): Drop dbg and endp arguments. |
| 553 | (__libdw_form_val_len): Likewise. |
| 554 | * libdw_form.c (__libdw_form_val_compute_len): Likewise. |
| 555 | * libdw_findcu.c (__libdw_intern_next_unit): Don't use cu_data, use |
| 556 | the already found data buffer directly. |
| 557 | * dwarf_begin_elf.c (valid_p): Setup fake_loc_cu. |
| 558 | * dwarf_end.c (dwarf_end): Free fake_loc_cu. |
| 559 | * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len with |
| 560 | just cu. |
| 561 | * dwarf_getattrs.c (dwarf_getattrs): Likewise. |
| 562 | * dwarf_formblock.c (dwarf_formblock): Add bounds checking. |
| 563 | * dwarf_getlocation_attr.c (attr_form_cu): New function. |
| 564 | (dwarf_getlocation_attr): Use attr_form_cu to set result->cu. |
| 565 | (getlocation): Handle empty blocks immediately. |
| 566 | * dwarf_getlocation_implicit_pointer.c (empty_cu): New static var. |
| 567 | (__libdw_empty_loc_attr): Drop cu argument, use empty_cu. |
| 568 | (dwarf_getlocation_implicit_pointer): Call __libdw_empty_loc_attr with |
| 569 | one argument. |
| 570 | * dwarf_getmacros.c (read_macros): Also setup startp and endp for |
| 571 | fake_cu. Call __libdw_form_val_len with just fake_cu. |
| 572 | * dwarf_formref_die.c (dwarf_formref_die): Don't use cu_data, get |
| 573 | datap and size directly from cu startp and endp. |
| 574 | |
Mark Wielaard | f73385e | 2014-12-12 00:22:31 +0100 | [diff] [blame] | 575 | 2014-12-11 Mark Wielaard <mjw@redhat.com> |
| 576 | |
| 577 | * libdw_findcu.c (__libdw_intern_next_unit): Sanity check offset. |
| 578 | |
Mark Wielaard | 4a330f6 | 2014-12-14 00:09:29 +0100 | [diff] [blame] | 579 | 2014-12-13 Mark Wielaard <mjw@redhat.com> |
| 580 | |
| 581 | * dwarf_getaranges.c (compare_aranges): Make sure Dwarf_Addr |
| 582 | difference doesn't wrap around before returning as int. |
| 583 | |
Josh Stone | 6e1c0d9 | 2014-12-11 16:22:48 -0800 | [diff] [blame] | 584 | 2014-12-11 Josh Stone <jistone@redhat.com> |
| 585 | |
| 586 | * dwarf_getsrclines.c (struct linelist): Add sequence. |
| 587 | (compare_lines): Take linelists, and break ties by sequence. |
| 588 | (read_srclines): Use linelists for sorting. |
| 589 | (read_srclines::add_new_line): Set sequence. |
| 590 | |
Josh Stone | b849f81 | 2014-12-10 18:28:04 -0800 | [diff] [blame] | 591 | 2014-12-10 Josh Stone <jistone@redhat.com> |
| 592 | |
Josh Stone | 8d200b5 | 2014-12-10 18:41:43 -0800 | [diff] [blame] | 593 | * libdwP.h (Dwarf_CU): Add startp and endp boundaries. |
| 594 | * libdw_findcu.c (__libdw_intern_next_unit): Set startp and endp. |
| 595 | * dwarf_child.c (dwarf_child): Use cu->endp. |
| 596 | * dwarf_cuoffset.c (dwarf_cuoffset): Use cu->startp. |
| 597 | * dwarf_dieoffset.c (dwarf_dieoffset): Use cu->startp. |
| 598 | * dwarf_siblingof.c (dwarf_siblingof): Use both. |
| 599 | |
| 600 | 2014-12-10 Josh Stone <jistone@redhat.com> |
| 601 | |
Josh Stone | 64e44df | 2014-12-10 18:33:34 -0800 | [diff] [blame] | 602 | * dwarf_hasattr.c (dwarf_hasattr): Just walk abbrev for presence. |
| 603 | |
| 604 | 2014-12-10 Josh Stone <jistone@redhat.com> |
| 605 | |
Josh Stone | b849f81 | 2014-12-10 18:28:04 -0800 | [diff] [blame] | 606 | * libdwP.h (__libdw_dieabbrev): New die->abbrev lookup function. |
| 607 | * dwarf_child.c (__libdw_find_attr, dwarf_child): Use it. |
| 608 | * dwarf_getattrs.c (dwarf_getattrs): Likewise. |
| 609 | * dwarf_haschildren.c (dwarf_haschildren): Likewise. |
| 610 | * dwarf_tag.c (dwarf_tag): Likewise. |
| 611 | |
Mark Wielaard | cb73b5a | 2014-12-04 21:43:44 +0100 | [diff] [blame] | 612 | 2014-12-04 Mark Wielaard <mjw@redhat.com> |
| 613 | |
| 614 | * libdwP.h (__libdw_form_val_compute_len): Add endp argument. |
| 615 | (__libdw_form_val_len): Likewise and check len doesn't overflow. |
| 616 | * libdw_form.c (__libdw_form_val_compute_len): Likewise. |
| 617 | * dwarf_child.c (__libdw_find_attr): Call __libdw_form_val_len |
| 618 | with endp. |
| 619 | * dwarf_getattrs.c (dwarf_getattrs): Likewise. |
| 620 | * dwarf_getmacros.c (read_macros): Likewise and check for errors. |
| 621 | |
Petr Machata | edb079a | 2014-12-02 21:22:14 +0100 | [diff] [blame] | 622 | 2014-12-02 Petr Machata <pmachata@redhat.com> |
| 623 | |
| 624 | * dwarf_getmacros.c (token_from_offset, offset_from_token): New |
| 625 | helper functions. |
| 626 | (do_dwarf_getmacros_die): Merge into dwarf_getmacros. |
| 627 | * libdw.h (DWARF_GETMACROS_START): New macro. |
| 628 | |
Mark Wielaard | 12ab700 | 2014-11-27 23:41:57 +0100 | [diff] [blame] | 629 | 2014-11-27 Mark Wielaard <mjw@redhat.com> |
| 630 | |
Mark Wielaard | 805ec83 | 2014-11-27 23:53:30 +0100 | [diff] [blame] | 631 | * Makefile.am (libdw.so): Use textrel_check. |
| 632 | |
| 633 | 2014-11-27 Mark Wielaard <mjw@redhat.com> |
| 634 | |
Mark Wielaard | 12ab700 | 2014-11-27 23:41:57 +0100 | [diff] [blame] | 635 | * dwarf_getcfi_elf.c (getcfi_gnu_eh_frame): Initialize |
| 636 | search_table_entries and search_table_encoding. |
| 637 | |
Mark Wielaard | 020fc02 | 2014-11-24 21:54:42 +0100 | [diff] [blame] | 638 | 2014-11-24 Mark Wielaard <mjw@redhat.com> |
| 639 | |
| 640 | * dwarf_getsrclines.c (read_srclines): Check line_range is not zero |
| 641 | before usage. |
| 642 | |
Mark Wielaard | 04b61f8 | 2014-11-23 23:13:55 +0100 | [diff] [blame] | 643 | 2014-11-23 Mark Wielaard <mjw@redhat.com> |
| 644 | |
Mark Wielaard | 59480ba | 2014-11-23 23:21:05 +0100 | [diff] [blame] | 645 | * dwarf_attr.c (dwarf_attr): Check __libdw_find_attr return value. |
| 646 | * dwarf_hasattr.c (dwarf_hasattr): Likewise. |
| 647 | * dwarf_siblingof.c (dwarf_siblingof): Likewise. |
| 648 | |
| 649 | 2014-11-23 Mark Wielaard <mjw@redhat.com> |
| 650 | |
Mark Wielaard | 04b61f8 | 2014-11-23 23:13:55 +0100 | [diff] [blame] | 651 | * dwarf_getabbrev.c (__libdw_getabbrev): Don't assert on bad DWARF. |
| 652 | Set libdw errno and return NULL. |
| 653 | |
Mark Wielaard | 9f8c08e | 2014-11-24 22:17:51 +0100 | [diff] [blame] | 654 | 2014-11-24 Mark Wielaard <mjw@redhat.com> |
| 655 | |
| 656 | * dwarf.h (DW_LANG_C_plus_plus_11): Added. |
| 657 | (DW_LANG_C11): Likewise. |
| 658 | (DW_LANG_C_plus_plus_14): Likewise. |
| 659 | * dwarf_aggregate_size.c (array_size): Handle DW_LANG_C11, |
| 660 | DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14 and DW_LANG_Go |
| 661 | lower bound. |
| 662 | * dwarf_getfuncs.c (dwarf_getfuncs): Set c_cu to true for |
| 663 | DW_LANG_C11. |
| 664 | |
Mark Wielaard | 03c033f | 2014-11-26 17:51:28 +0100 | [diff] [blame] | 665 | 2014-11-26 Mark Wielaard <mjw@redhat.com> |
| 666 | |
| 667 | * dwarf.h (DW_AT_noreturn): Added. |
| 668 | |
Mark Wielaard | 0908623 | 2014-11-11 14:10:04 +0100 | [diff] [blame] | 669 | 2014-11-11 Mark Wielaard <mjw@redhat.com> |
| 670 | |
| 671 | * dwarf_getsrclines.c (read_srclines): Do address_size comparison |
| 672 | explicitly as uint8_t. |
| 673 | (__libdw_getsrclines): Add internal_function to declaration. |
| 674 | |
Petr Machata | fb90bf3 | 2014-10-17 02:47:03 +0200 | [diff] [blame] | 675 | 2014-09-10 Petr Machata <pmachata@redhat.com> |
| 676 | |
| 677 | * dwarf_macro_getparamcnt.c: New file. |
| 678 | * dwarf_macro_param.c: New file. |
| 679 | * dwarf_macro_getsrcfiles.c: New file. |
| 680 | * Makefile.am (libdw_a_SOURCES): Add the new files. |
| 681 | * libdwP.h (struct files_lines_s): New structure. |
| 682 | (DWARF_E_INVALID_OPCODE): New enumerator. |
| 683 | (struct Dwarf): New fields macro_ops, files_lines. |
| 684 | (Dwarf_Macro_Op_Proto, Dwarf_Macro_Op_Table): New structures for |
| 685 | keeping macro opcode prototypes in. |
| 686 | (Dwarf_Macro_s): Redefine from scratch. |
| 687 | (__libdw_getsrclines, __libdw_getcompdir, libdw_macro_nforms): New |
| 688 | internal interfaces. |
| 689 | * dwarf_error.c (errmsgs): Add a message for |
| 690 | DWARF_E_INVALID_OPCODE. |
| 691 | * dwarf_end.c (dwarf_end): Destroy struct Dwarf.macro_ops and |
| 692 | files_lines. |
| 693 | * libdw.h (dwarf_getmacros_off, dwarf_macro_getparamcnt) |
| 694 | (dwarf_macro_getsrcfiles, dwarf_macro_param): New public |
| 695 | interfaces. |
| 696 | * dwarf_getmacros.c (dwarf_getmacros_off): New function, |
| 697 | (get_offset_from, macro_op_compare, build_table) |
| 698 | (init_macinfo_table, get_macinfo_table, get_table_for_offset) |
| 699 | (cache_op_table, read_macros, gnu_macros_getmacros_off) |
| 700 | (macro_info_getmacros_off, do_dwarf_getmacros_die): New helper |
| 701 | functions. |
| 702 | (dwarf_getmacros): Adjust to dispatch to the new interfaces. |
| 703 | * dwarf_getsrclines.c (read_srclines): New function with guts |
| 704 | taken from dwarf_getsrclines. |
| 705 | (__libdw_getsrclines): Likewise. |
| 706 | (__libdw_getcompdir, files_lines_compare): New functions. |
| 707 | (dwarf_getsrclines): Make it dispatch to the new interfaces. |
| 708 | * dwarf_macro_param1.c (dwarf_macro_param1): Adjust to dispatch to |
| 709 | the new interfaces. |
| 710 | * dwarf_macro_param2.c (dwarf_macro_param2): Likewise. |
| 711 | * libdw.map (ELFUTILS_0.161): New. Add dwarf_getmacros_off, |
| 712 | dwarf_macro_getsrcfiles, dwarf_macro_getparamcnt, dwarf_macro_param. |
| 713 | |
Mark Wielaard | 3a36e8a | 2014-10-06 22:00:16 +0200 | [diff] [blame] | 714 | 2014-10-06 Mark Wielaard <mjw@redhat.com> |
| 715 | |
| 716 | * Makefile.am (libdw_a_SOURCES): Add dwarf_peel_type.c. |
| 717 | * dwarf_aggregate_size.c (get_type): Use dwarf_peel_type. |
| 718 | (aggregate_size): Likewise. Add old and new version. |
| 719 | * dwarf_peel_type.c: New file. |
| 720 | * libdw.h (dwarf_peel_type): New function declaration. |
| 721 | * libdwP.h (dwarf_peel_type): New internal declaration. |
| 722 | * libdw.map (ELFUTILS_0.161): New section. |
| 723 | |
Petr Machata | 564cfbe | 2014-10-15 19:28:08 +0200 | [diff] [blame] | 724 | 2014-10-15 Petr Machata <pmachata@redhat.com> |
| 725 | |
| 726 | * libdwP.h (struct Dwarf_Files_s.cu): Drop field. |
| 727 | * dwarf_getsrclines.c (dwarf_getsrclines): Don't set it. |
| 728 | |
Mark Wielaard | 2e83c64 | 2014-10-05 17:12:41 +0200 | [diff] [blame] | 729 | 2014-10-05 Mark Wielaard <mjw@redhat.com> |
| 730 | |
| 731 | * dwarf.h: Add DW_AT_GNU_deleted. |
| 732 | |
Mark Wielaard | b50014f | 2014-10-02 14:00:47 +0200 | [diff] [blame] | 733 | 2014-10-02 Mark Wielaard <mjw@redhat.com> |
| 734 | |
| 735 | * dwarf_aggregate_size.c (aggregate_size): Return CU address_size |
| 736 | for sizeless DW_TAG_pointer_type, DW_TAG_reference_type or |
| 737 | DW_TAG_rvalue_reference_type. |
| 738 | |
Petr Machata | 1498f54 | 2014-09-12 19:03:33 +0200 | [diff] [blame] | 739 | 2014-09-12 Petr Machata <pmachata@redhat.com> |
| 740 | |
| 741 | * memory-access.h (read_ubyte_unaligned_inc): Allow only 4- and |
| 742 | 8-byte quantities. Consequently, rename to... |
| 743 | (read_addr_unaligned_inc): ... this. |
| 744 | (read_sbyte_unaligned_inc, read_ubyte_unaligned): Drop. |
| 745 | (read_sbyte_unaligned): Drop. |
| 746 | |
Petr Machata | 476feb1 | 2014-09-10 22:26:28 +0200 | [diff] [blame] | 747 | 2014-09-10 Petr Machata <pmachata@redhat.com> |
| 748 | |
| 749 | * dwarf_getlocation.c (attr_ok): Also accept |
| 750 | DW_AT_GNU_call_site_value, DW_AT_GNU_call_site_data_value, |
| 751 | DW_AT_GNU_call_site_target, DW_AT_GNU_call_site_target_clobbered. |
| 752 | |
Mark Wielaard | 209f149 | 2014-08-15 13:08:24 +0200 | [diff] [blame] | 753 | 2014-08-15 Mark Wielaard <mjw@redhat.com> |
| 754 | |
Mark Wielaard | f18f233 | 2014-08-15 16:03:21 +0200 | [diff] [blame] | 755 | * dwarf_cu_die.c: New file. |
| 756 | * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_die.c. |
| 757 | * libdw.h (dwarf_cu_die): New function declaration. |
| 758 | * libdw.map (ELFUTILS_0.160): Add dwarf_cu_die. |
| 759 | |
| 760 | 2014-08-15 Mark Wielaard <mjw@redhat.com> |
| 761 | |
Mark Wielaard | 209f149 | 2014-08-15 13:08:24 +0200 | [diff] [blame] | 762 | * dwarf_cu_getdwarf.c: New file. |
| 763 | * Makefile.am (libdw_a_SOURCES): Add dwarf_cu_getdwarf.c. |
| 764 | * libdw.h (Dwarf_CU): New typedef. |
| 765 | (dwarf_cu_getdwarf): New function declaration. |
| 766 | * libdw.map (ELFUTILS_0.160): New. Add dwarf_cu_getdwarf. |
| 767 | |
Mark Wielaard | af1e6ed | 2014-06-18 10:57:58 +0200 | [diff] [blame] | 768 | 2014-06-18 Mark Wielaard <mjw@redhat.com> |
| 769 | |
| 770 | * dwarf.h: Remove DW_TAG_mutable_type. |
| 771 | |
Mark Wielaard | bb096d0 | 2014-05-03 00:23:06 +0200 | [diff] [blame] | 772 | 2014-05-02 Mark Wielaard <mjw@redhat.com> |
| 773 | |
| 774 | * libdwP.h (__check_build_id): Removed now unused. |
| 775 | |
Mark Wielaard | df85bf9 | 2014-05-01 14:48:27 +0200 | [diff] [blame] | 776 | 2014-05-01 Mark Wielaard <mjw@redhat.com> |
| 777 | |
| 778 | * libdwP.h (struct Dwarf): Remove free_alt. |
| 779 | * dwarf_end.c (dwarf_end): Don't check free_alt, don't end alt_dwarf. |
| 780 | * dwarf_setalt.c (dwarf_setalt): Don't check or set free_alt. |
| 781 | |
Mark Wielaard | d81d32d | 2014-04-30 23:00:40 +0200 | [diff] [blame] | 782 | 2014-04-30 Mark Wielaard <mjw@redhat.com> |
| 783 | |
| 784 | * libdw.map (ELFUTILS_0.159): Add dwelf_elf_gnu_build_id. |
| 785 | |
Florian Weimer | 920f03d | 2014-04-15 17:11:17 +0200 | [diff] [blame] | 786 | 2014-04-15 Florian Weimer <fweimer@redhat.com> |
| 787 | |
| 788 | * dwarf_begin_elf.c (__check_build_id, try_debugaltlink) |
| 789 | (open_debugaltlink): Move to libdwfl. |
| 790 | (check_section): Do not locate alternate debuginfo. |
| 791 | |
Florian Weimer | 4813dbb | 2014-04-24 14:06:43 +0200 | [diff] [blame] | 792 | 2014-04-24 Florian Weimer <fweimer@redhat.com> |
| 793 | |
| 794 | * libdw.map (ELFUTILS_0.159): Export dwelf_dwarf_gnu_debugaltlink. |
| 795 | |
Florian Weimer | 35e2a76 | 2014-04-15 14:31:55 +0200 | [diff] [blame] | 796 | 2014-04-22 Florian Weimer <fweimer@redhat.com> |
| 797 | |
| 798 | * dwarf_getalt.c, dwarf_setalt.c: New files. |
| 799 | * Makefile.am (libdw_a_SOURCES): Add them. |
| 800 | * libdw.h (dwarf_getalt, dwarf_setalt): Add function declarations. |
| 801 | * libdwP.h (dwarf_getalt, dwarf_setalt): Add internal function |
| 802 | declarations. |
| 803 | * libdw.map (ELFUTILS_0.159): Export the two new functions. |
| 804 | |
Florian Weimer | efa72a0 | 2014-04-15 14:04:19 +0200 | [diff] [blame] | 805 | 2014-04-15 Florian Weimer <fweimer@redhat.com> |
| 806 | |
| 807 | * libdwP.h (enum IDX_gnu_debugaltlink): New. |
| 808 | * dwarf_begin_elf.c (dwarf_scnnames): Increase string size and add |
| 809 | .gnu_debugaltlink. |
| 810 | (check_section): Obtain .gnu_debugaltlink section from the |
| 811 | setiondata array. |
| 812 | |
Mark Wielaard | 9380297 | 2014-04-11 23:52:47 +0200 | [diff] [blame] | 813 | 2014-04-11 Mark Wielaard <mjw@redhat.com> |
| 814 | |
| 815 | * libdw.map (ELFUTILS_0.159): New. Add dwelf_elf_gnu_debuglink. |
| 816 | * Makefile.am (libdw.so): Depend on libdwelf_pic.a. |
| 817 | (libdwelf_objects): New variable. |
| 818 | (libdw_a_LIBADD): Add libdwelf objects. |
| 819 | |
Mark Wielaard | eb4da48 | 2014-04-22 16:43:11 +0200 | [diff] [blame] | 820 | 2014-04-22 Mark Wielaard <mjw@redhat.com> |
| 821 | |
| 822 | * memory-access.h (get_sleb128_step): Remove undefined behavior |
| 823 | of left shifting a signed value. Replace it with a multiplication. |
| 824 | |
Mark Wielaard | 3232479 | 2014-04-13 17:39:57 +0200 | [diff] [blame] | 825 | 2014-04-13 Mark Wielaard <mjw@redhat.com> |
| 826 | |
| 827 | * Makefile.am: Remove !MUDFLAP conditions. |
| 828 | |
Mark Wielaard | 7f1eec3 | 2014-04-09 11:33:23 +0200 | [diff] [blame] | 829 | 2014-04-09 Mark Wielaard <mjw@redhat.com> |
| 830 | |
| 831 | * dwarf_begin_elf.c (check_section): Check for unsigned overflow |
| 832 | before calling malloc to uncompress data. |
| 833 | |
Jan Kratochvil | dff2a99 | 2014-03-04 00:04:27 +0100 | [diff] [blame] | 834 | 2014-03-03 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 835 | |
| 836 | Fix abort() on missing section headers. |
| 837 | * dwarf_begin_elf.c (check_section): Replace abort call by goto err. |
| 838 | New label err to return NULL. |
| 839 | |
Josh Stone | 50d5b2c | 2014-02-05 11:26:27 -0800 | [diff] [blame] | 840 | 2014-02-05 Josh Stone <jistone@redhat.com> |
| 841 | |
| 842 | * dwarf_decl_file.c (dwarf_decl_file): Read the idx as unsigned. |
| 843 | * dwarf_decl_line.c (__libdw_attr_intval): Read the line/column as |
| 844 | unsigned. Change the range assert to DWARF_E_INVALID_DWARF. |
| 845 | |
Mark Wielaard | 1910801 | 2013-12-30 22:00:57 +0100 | [diff] [blame] | 846 | 2013-12-30 Mark Wielaard <mjw@redhat.com> |
| 847 | |
| 848 | * libdw.map (ELFUTILS_0.158): Add dwfl_core_file_attach and |
| 849 | dwfl_linux_proc_attach. |
| 850 | |
Mark Wielaard | e962ec3 | 2013-12-20 10:09:12 +0100 | [diff] [blame] | 851 | 2013-12-20 Mark Wielaard <mjw@redhat.com> |
| 852 | |
| 853 | * libdw.map (ELFUTILS_0.158): Add dwfl_getthread_frames. |
| 854 | |
Mark Wielaard | 159ac52 | 2013-12-18 11:05:54 +0100 | [diff] [blame] | 855 | 2013-12-18 Mark Wielaard <mjw@redhat.com> |
| 856 | |
| 857 | * libdw.map (ELFUTILS_0.158): Remove dwfl_module_addrsym_elf and |
| 858 | dwfl_module_getsym_elf. Add dwfl_module_addrinfo and |
| 859 | dwfl_module_getsym_info. |
| 860 | |
Mark Wielaard | 14c2d9e | 2013-12-16 13:28:59 +0100 | [diff] [blame] | 861 | 2013-12-16 Mark Wielaard <mjw@redhat.com> |
| 862 | |
| 863 | * libdw.map (ELFUTILS_0.158): Add dwfl_module_getsymtab_first_global. |
| 864 | |
Josh Stone | 4e2787c | 2013-12-10 14:19:09 -0800 | [diff] [blame] | 865 | 2013-12-10 Josh Stone <jistone@redhat.com> |
| 866 | |
| 867 | * memory-access.h (get_uleb128_rest_return): Removed. |
| 868 | (get_sleb128_rest_return): Removed. |
| 869 | (get_uleb128_step): Make this a self-contained block. |
| 870 | (get_sleb128_step): Ditto, and use a bitfield to extend signs. |
| 871 | (get_uleb128): Make this wholly implemented by __libdw_get_uleb128. |
| 872 | (get_sleb128): Make this wholly implemented by __libdw_get_sleb128. |
| 873 | (__libdw_get_uleb128): Simplify and inline for all callers. |
| 874 | (__libdw_get_sleb128): Ditto. |
| 875 | * dwarf_getlocation.c (store_implicit_value): Void the unused uleb128. |
| 876 | * memory-access.c: Delete file. |
| 877 | * Makefile.am (libdw_a_SOURCES): Remove it. |
| 878 | (DEFS): Remove the now unused -DIS_LIBDW. |
| 879 | |
Josh Stone | c0d2a0b | 2013-12-09 13:52:10 -0800 | [diff] [blame] | 880 | 2013-12-09 Josh Stone <jistone@redhat.com> |
| 881 | |
| 882 | * libdw_form.c (__libdw_form_val_compute_len): Renamed function from |
| 883 | __libdw_form_val_len, now handling only non-constant form lengths. |
| 884 | * libdwP.h (__libdw_form_val_len): New inlined function. |
| 885 | |
Mark Wielaard | 3951f2e | 2013-12-09 16:33:26 +0100 | [diff] [blame] | 886 | 2013-12-09 Mark Wielaard <mjw@redhat.com> |
| 887 | |
| 888 | * dwarf_getlocation.c (__libdw_intern_expression): Handle empty |
| 889 | location expressions. |
| 890 | * dwarf_getlocation_attr.c (dwarf_getlocation_attr): When no |
| 891 | location found, return empty location expression. |
| 892 | * dwarf_getlocation_implicit_pointer.c |
| 893 | (dwarf_getlocation_implicit_pointer): Likewise. |
| 894 | (__libdw_empty_loc_attr): New internal function. |
| 895 | * libdwP.h (__libdw_empty_loc_attr): Define. |
| 896 | |
Mark Wielaard | 819c349 | 2013-11-27 16:45:44 +0100 | [diff] [blame] | 897 | 2013-11-27 Mark Wielaard <mjw@redhat.com> |
| 898 | |
| 899 | * libdw.map (ELFUTILS_0.158): Add dwfl_module_addrsym_elf and |
| 900 | dwfl_module_getsym_elf. |
| 901 | |
Mark Wielaard | 16bc456 | 2013-11-26 15:13:22 +0100 | [diff] [blame] | 902 | 2013-11-26 Mark Wielaard <mjw@redhat.com> |
| 903 | |
| 904 | * libdw.map (ELFUTILS_0.156): Move dwfl_attach_state, dwfl_pid, |
| 905 | dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread, |
| 906 | dwfl_thread_state_registers, dwfl_thread_state_register_pc, |
| 907 | dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc to ... |
| 908 | (ELFUTILS_0.158): ... here. |
| 909 | |
Mark Wielaard | 03d76f4 | 2013-11-09 16:45:22 +0100 | [diff] [blame] | 910 | 2013-11-09 Mark Wielaard <mjw@redhat.com> |
| 911 | |
| 912 | * dwarf_getaranges.c (dwarf_getaranges): Read segment_size and |
| 913 | check that it is zero. |
| 914 | |
Jan Kratochvil | 0b86746 | 2013-05-30 14:37:38 +0200 | [diff] [blame] | 915 | 2013-11-07 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 916 | |
| 917 | * cfi.h (struct Dwarf_Frame_s): Make the comment more specific. |
| 918 | * libdw.map (ELFUTILS_0.156): Add dwfl_attach_state, dwfl_pid, |
| 919 | dwfl_thread_dwfl, dwfl_thread_tid, dwfl_frame_thread, |
| 920 | dwfl_thread_state_registers, dwfl_thread_state_register_pc, |
| 921 | dwfl_getthreads, dwfl_thread_getframes and dwfl_frame_pc. |
| 922 | |
Michael Forney | a45c804 | 2013-11-01 00:51:04 -0700 | [diff] [blame] | 923 | 2013-11-01 Michael Forney <mforney@mforney.org> |
| 924 | |
Michael Forney | cdc0943 | 2013-11-01 00:51:05 -0700 | [diff] [blame] | 925 | * Makefile.am (libdwfl_objects): New definition. |
| 926 | (libdw_a_LIBADD): Use libdwfl_objects. |
| 927 | |
| 928 | 2013-11-01 Michael Forney <mforney@mforney.org> |
| 929 | |
Michael Forney | a45c804 | 2013-11-01 00:51:04 -0700 | [diff] [blame] | 930 | * Makefile.am: Use READELF. |
| 931 | |
Jan Kratochvil | 3cf491e | 2013-10-30 10:48:20 +0100 | [diff] [blame] | 932 | 2013-10-30 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 933 | |
| 934 | * libdw.map (ELFUTILS_0.158): New. |
| 935 | |
Mark Wielaard | e6a9bb8 | 2013-10-10 11:40:12 +0200 | [diff] [blame] | 936 | 2013-10-10 Mark Wielaard <mjw@redhat.com> |
| 937 | |
| 938 | * dwarf_getfuncs.c (struct visitor_info): Rename start_offset to |
| 939 | start_addr and rename last_offset to last_addr. Now both void *. |
| 940 | (tree_visitor): Use start_add and die_addr instead of start_offset |
| 941 | and die_offset. |
| 942 | (dwarf_getfuncs): Use last_addr instead of last_offset. |
| 943 | |
Mark Wielaard | 3dec3e1 | 2013-10-06 17:04:07 +0200 | [diff] [blame] | 944 | 2013-10-06 Mark Wielaard <mjw@redhat.com> |
| 945 | |
| 946 | * cfi.c (execute_cfi): Make sure DW_CFA_expression and |
| 947 | DW_CFA_val_expression are not used with abi_cfi. |
| 948 | |
Josh Stone | 5dbbc5e | 2013-10-03 12:38:25 -0700 | [diff] [blame] | 949 | 2013-10-03 Josh Stone <jistone@redhat.com> |
| 950 | |
| 951 | * dwarf_formref_die.c (dwarf_formref_die): Don't hash the sig8 here. |
| 952 | * libdw_findcu.c (__libdw_intern_next_unit): Since this never revisits |
| 953 | a unit, make sure to always hash the sig8 here, so none are missed. |
| 954 | |
Mark Wielaard | 74f9b73 | 2013-09-30 00:39:07 +0200 | [diff] [blame] | 955 | 2013-09-29 Mark Wielaard <mjw@redhat.com> |
| 956 | |
| 957 | * dwarf_getlocation.c (store_implicit_value): Cast op->number2 to |
| 958 | uintptr_t before casting to char *. |
| 959 | (__libdw_intern_expression): Cast data to uintptr_t before casting |
| 960 | to Dwarf_Word. |
| 961 | * dwarf_getlocation_attr.c (dwarf_getlocation_attr): Cast |
| 962 | op->number2 to uintptr_t before casting to char *. |
| 963 | |
Josh Stone | f06c858 | 2013-09-24 15:52:05 -0700 | [diff] [blame] | 964 | 2013-09-24 Josh Stone <jistone@redhat.com> |
| 965 | |
| 966 | * libdw_visit_scopes.c (classify_die): Removed. |
| 967 | (may_have_scopes): New function to replace classify_die. There's no |
| 968 | need for full classification; just find tags that may contain scopes. |
| 969 | (__libdw_visit_scopes): Use a direct tag comparison for imported |
| 970 | units, and use may_have_scopes to test if recursion is needed. |
| 971 | |
Mark Wielaard | 1b734df | 2013-09-20 09:50:42 -0400 | [diff] [blame] | 972 | 2013-09-20 Mark Wielaard <mjw@redhat.com> |
| 973 | |
| 974 | * dwarf_getfuncs.c (visitor_info): New struct. |
| 975 | (tree_visitor): New function. |
| 976 | (dwarf_getfuncs): Use __libdw_visit_scopes with tree_visitor. |
| 977 | * libdw.h (dwarf_getfuncs): Expand function documentation. |
| 978 | |
Mark Wielaard | 18b2c67 | 2013-09-12 15:49:47 +0200 | [diff] [blame] | 979 | 2013-09-12 Mark Wielaard <mjw@redhat.com> |
| 980 | |
| 981 | * fde.c (intern_fde): Free fde and set libdw errno when start |
| 982 | or end could not be read. |
| 983 | |
Mark Wielaard | b2535b6 | 2013-08-30 23:55:12 +0200 | [diff] [blame] | 984 | 2013-08-24 Mark Wielaard <mjw@redhat.com> |
| 985 | |
| 986 | * dwarf_getlocation.c (store_implicit_value): Don't take data |
| 987 | as argument, get block data from op number2. Return false when |
| 988 | block data length and op number don't match up. |
| 989 | (__libdw_intern_expression): Store start of block for |
| 990 | DW_OP_implicit_value and DW_OP_GNU_entry_value instead of |
| 991 | relative data offset. Also store block start (including length) |
| 992 | for DW_OP_GNU_const_type. Don't pass data to store_implicit_value. |
| 993 | * dwarf_getlocation_attr.c: New file. |
| 994 | * dwarf_getlocation_die.c: Likewise. |
| 995 | * libdw.h (dwarf_getlocation_die): New function definition. |
| 996 | (dwarf_getlocation_attr): Likewise. |
| 997 | * libdwP.h: Declare internal dwarf_getlocation_die. |
| 998 | * libdw.map (ELFUTILS_0.157): Add dwarf_getlocation_die and |
| 999 | dwarf_getlocation_attr. |
| 1000 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getlocation_die.c and |
| 1001 | dwarf_getlocation_attr.c. |
| 1002 | |
Mark Wielaard | 66eaae9 | 2013-08-23 16:12:37 +0200 | [diff] [blame] | 1003 | 2013-08-23 Mark Wielaard <mjw@redhat.com> |
| 1004 | |
| 1005 | * dwarf_getlocation.c (attr_ok): Also accept DW_AT_segment. |
| 1006 | (attr_base_address): New function. |
| 1007 | (initial_offset_base): New function. |
| 1008 | (getlocations_addr): New function. Taken from... |
| 1009 | (dwarf_getlocation_addr): here. Use new initial_offset_base and |
| 1010 | getlocations_addr. |
| 1011 | (dwarf_getlocations): New function. |
| 1012 | * libdw.h (dwarf_getlocations): New function definition. |
| 1013 | * libdw.map (ELFUTILS_0.157): New. |
| 1014 | |
Mark Wielaard | 5704c8c | 2013-07-02 11:22:35 +0200 | [diff] [blame] | 1015 | 2013-07-02 Mark Wielaard <mjw@redhat.com> |
| 1016 | |
Mark Wielaard | 4aacfc1 | 2013-07-02 16:36:16 +0200 | [diff] [blame] | 1017 | * dwarf_getsrclines.c (dwarf_getsrclines): Add new stack allocation |
| 1018 | limit MAX_STACK_ALLOC. After MAX_STACK_ALLOC lines use malloc in |
| 1019 | NEW_LINE macro. Free malloced line records if any at the end. |
| 1020 | |
| 1021 | 2013-07-02 Mark Wielaard <mjw@redhat.com> |
| 1022 | |
Mark Wielaard | 5704c8c | 2013-07-02 11:22:35 +0200 | [diff] [blame] | 1023 | * dwarf_getcfi_elf.c (getcfi_shdr): Check sh_type == SHT_PROGBITS. |
| 1024 | |
Mark Wielaard | 7927707 | 2013-06-26 11:42:52 -0400 | [diff] [blame] | 1025 | 2013-06-26 Mark Wielaard <mjw@redhat.com> |
| 1026 | |
| 1027 | * libdw_visit_scopes.c (__libdw_visit_scopes): Don't reject root |
| 1028 | DIEs without children. Return an error whenever dwarf_child or |
| 1029 | dwarf_siblingof return an error. Don't call recurse and increase |
| 1030 | the depth for an imported unit. Walk the children of an imported |
| 1031 | unit as if they are logical children of the parent root DIE. |
| 1032 | |
Mark Wielaard | 9affad3 | 2013-05-03 11:28:49 +0200 | [diff] [blame] | 1033 | 2013-05-03 Mark Wielaard <mjw@redhat.com> |
| 1034 | |
| 1035 | * dwarf_getsrclines.c (dwarf_getsrclines): Only set end_sequence |
| 1036 | when nlinelist > 0. |
| 1037 | |
Jan Kratochvil | 904aec2 | 2013-04-30 14:27:16 +0200 | [diff] [blame] | 1038 | 2013-04-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1039 | |
| 1040 | * libdw.map (ELFUTILS_0.156): New. |
| 1041 | |
Mark Wielaard | cdaaf21 | 2013-04-25 16:50:11 -0400 | [diff] [blame] | 1042 | 2013-04-24 Mark Wielaard <mjw@redhat.com> |
| 1043 | |
| 1044 | * Makefile.am: Use AM_CPPFLAGS instead of INCLUDES. |
| 1045 | |
Mark Wielaard | d4744a7 | 2013-04-10 15:52:57 +0200 | [diff] [blame] | 1046 | 2013-04-10 Mark Wielaard <mjw@redhat.com> |
| 1047 | |
| 1048 | * dwarf_formref_die.c (dwarf_formref_die): Reference size is only |
| 1049 | equal to address size when we have a DW_FORM_ref_addr for DWARF |
| 1050 | version 2. |
| 1051 | |
Mark Wielaard | 60ef9ab | 2013-03-25 17:07:21 +0100 | [diff] [blame] | 1052 | 2013-03-25 Mark Wielaard <mjw@redhat.com> |
| 1053 | |
| 1054 | * dwarf_getsrclines.c (dwarf_getsrclines): Mark highest address as |
| 1055 | end_sequence. |
| 1056 | |
Mark Wielaard | f1b06b5 | 2013-03-12 12:02:51 +0100 | [diff] [blame] | 1057 | 2013-03-12 Mark Wielaard <mjw@redhat.com> |
| 1058 | |
| 1059 | * dwarf_getsrcfiles.c (dwarf_getsrcfiles): Allow DW_TAG_partial_unit. |
| 1060 | * dwarf_getsrclines.c (dwarf_getsrclines): Likewise. |
| 1061 | |
Mark Wielaard | 443304e | 2013-02-15 22:45:22 +0100 | [diff] [blame] | 1062 | 2013-02-15 Mark Wielaard <mjw@redhat.com> |
| 1063 | |
| 1064 | * dwarf_formstring.c (dwarf_formstring): Check dbg_ret->sectiondata, |
| 1065 | not dbg->sectiondata. |
| 1066 | |
Roland McGrath | 3999ce1 | 2013-01-07 14:53:37 -0800 | [diff] [blame] | 1067 | 2013-01-07 Roland McGrath <roland@hack.frob.com> |
| 1068 | |
| 1069 | * memory-access.h |
| 1070 | [ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New macro. |
| 1071 | [!ALLOW_UNALIGNED] (read_8ubyte_unaligned_noncvt): New inline function. |
| 1072 | |
Mark Wielaard | 5925442 | 2012-12-18 14:14:22 +0100 | [diff] [blame] | 1073 | 2012-12-18 Mark Wielaard <mjw@redhat.com> |
| 1074 | |
| 1075 | * dwarf_begin_elf.c (valid_p): Call Dwarf_Sig8_Hash_free if invalid. |
| 1076 | (check_section): Likewise on error. |
| 1077 | (scngrp_read): Likewise. |
| 1078 | (dwarf_begin_elf): Likewise. |
| 1079 | |
Petr Machata | b5c0b03 | 2012-10-09 02:11:29 +0200 | [diff] [blame] | 1080 | 2012-10-09 Petr Machata <pmachata@redhat.com> |
| 1081 | |
| 1082 | * dwarf_getlocation.c (__libdw_intern_expression): Handle |
| 1083 | DW_OP_GNU_parameter_ref, DW_OP_GNU_convert, DW_OP_GNU_reinterpret, |
| 1084 | DW_OP_GNU_regval_type, DW_OP_GNU_entry_value, |
| 1085 | DW_OP_GNU_deref_type, DW_OP_GNU_const_type. |
| 1086 | |
Jan Kratochvil | 6c45f4a | 2012-10-08 23:04:54 +0200 | [diff] [blame] | 1087 | 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1088 | |
Jan Kratochvil | 1d67c0c | 2012-10-08 23:51:31 +0200 | [diff] [blame] | 1089 | * cfi.c: New include system.h. |
| 1090 | (execute_cfi) (enough_registers): Clear new memory after realloc. |
| 1091 | |
| 1092 | 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1093 | |
Jan Kratochvil | 07f3507 | 2012-10-08 23:34:35 +0200 | [diff] [blame] | 1094 | * fde.c (__libdw_find_fde): Change <fde != NULL> to likely. Return |
| 1095 | DWARF_E_NO_MATCH if .eh_frame_hdr points to FDE which is too short for |
| 1096 | searched PC. |
| 1097 | |
| 1098 | 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1099 | |
Jan Kratochvil | 96a9fc6 | 2012-10-08 23:08:01 +0200 | [diff] [blame] | 1100 | * dwarf_getlocation.c (__libdw_intern_expression) <cfap>: Make new |
| 1101 | loclist element DW_OP_call_frame_cfa before decoding the opcodes. |
| 1102 | Remove the later DW_OP_call_frame_cfa push to RESULT. |
| 1103 | |
| 1104 | 2012-10-08 Jan Kratochvil <jan.kratochvil@redhat.com> |
| 1105 | |
Jan Kratochvil | 6c45f4a | 2012-10-08 23:04:54 +0200 | [diff] [blame] | 1106 | Code cleanup. |
| 1107 | * fde.c (binary_search_fde): Remove always true <address >= start> |
| 1108 | conditional. Move L initialization upwards. |
| 1109 | |
Mark Wielaard | f5519fc | 2012-08-24 13:54:52 +0200 | [diff] [blame] | 1110 | 2012-08-24 Mark Wielaard <mjw@redhat.com> |
| 1111 | |
| 1112 | * dwarf_begin_elf.c (check_section): Only probe for dwz multi files |
| 1113 | when ENABLE_DWZ is defined. |
| 1114 | * libdwP.h (__check_build_id): Only declare when ENABLE_DWZ is |
| 1115 | defined. |
| 1116 | |
Mark Wielaard | f31c441 | 2012-08-17 00:35:03 +0200 | [diff] [blame] | 1117 | 2012-08-16 Mark Wielaard <mjw@redhat.com> |
| 1118 | |
| 1119 | * Makefile.am (EXTRA_DIST): Add known-dwarf.h. |
| 1120 | * dwarf.h (DW_LANG_Go): Update comment. |
| 1121 | (DW_LANG_Mips_Assembler): Likewise. |
| 1122 | |
Mark Wielaard | 775375e | 2012-06-22 12:02:45 +0200 | [diff] [blame] | 1123 | 2012-06-27 Mark Wielaard <mjw@redhat.com> |
| 1124 | |
| 1125 | * dwarf.h: Add DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt. |
| 1126 | * dwarf_begin.c (dwarf_begin): Add INTDEF. |
| 1127 | * dwarf_begin_elf.c (__check_build_id): New internal_function. |
| 1128 | (try_debugaltlink): New function. |
| 1129 | (open_debugaltlink): Likewise. |
| 1130 | (check_section): Try open_debugaltlink for .gnu_debugaltlink. |
| 1131 | * dwarf_end.c (dwarf_end): Free the alternative Dwarf descriptor if |
| 1132 | necessary. |
| 1133 | * dwarf_error.c (errmsgs): Add DWARF_E_NO_ALT_DEBUGLINK. |
| 1134 | * dwarf_formref.c (__libdw_formref): Using DW_FORM_GNU_ref_alt |
| 1135 | is an error here. |
| 1136 | * dwarf_formref_die.c (dwarf_formref_die): Handle DW_FORM_GNU_ref_alt. |
| 1137 | * dwarf_formstring.c (dwarf_formstring): Handle DW_FORM_GNU_strp_alt. |
| 1138 | * dwarf_formudata.c (__libdw_formptr): Adjust __libdw_read_offset |
| 1139 | calls. |
| 1140 | * dwarf_getpubnames.c (get_offsets): Adjust __libdw_read_offset call. |
| 1141 | * libdwP.h: Add DWARF_E_NO_ALT_DEBUGLINK. |
| 1142 | (struct Dwarf): Add alt_dwarf and free_alt fields. |
| 1143 | (__libdw_read_offset): Add dbg_ret argument, use to check with |
| 1144 | __libdw_offset_in_section. |
| 1145 | (__check_build_id): New function declaration. |
| 1146 | (dwarf_begin): Define as INTDECL. |
| 1147 | * libdw_form.c (__libdw_form_val_len): Handle DW_FORM_GNU_ref_alt |
| 1148 | and DW_FORM_GNU_strp_alt. |
| 1149 | |
Mark Wielaard | 515fba9 | 2012-07-20 00:09:56 +0200 | [diff] [blame] | 1150 | 2012-07-19 Mark Wielaard <mjw@redhat.com> |
| 1151 | |
| 1152 | * dwarf.h: Add DW_OP_GNU_parameter_ref. |
| 1153 | |
Mark Wielaard | df9ec3f | 2012-07-24 20:00:14 +0200 | [diff] [blame] | 1154 | 2012-07-24 Mark Wielaard <mjw@redhat.com> |
| 1155 | |
Mark Wielaard | c4010b8 | 2012-07-24 13:20:41 +0200 | [diff] [blame] | 1156 | * dwarf.h: Correct spelling of DW_LANG_ObjC. |
| 1157 | * dwarf_aggregate_size.c (array_size): Use correct spelling of |
| 1158 | DW_LANG_ObjC. |
| 1159 | |
| 1160 | 2012-07-24 Mark Wielaard <mjw@redhat.com> |
| 1161 | |
Mark Wielaard | df9ec3f | 2012-07-24 20:00:14 +0200 | [diff] [blame] | 1162 | * dwarf.h: Add DW_ATE_UTF. |
| 1163 | |
Mark Wielaard | ef5688e | 2012-06-27 10:15:27 +0200 | [diff] [blame] | 1164 | 2012-06-27 Mark Wielaard <mjw@redhat.com> |
| 1165 | |
| 1166 | * dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings. |
| 1167 | |
Mark Wielaard | a0172d7 | 2012-06-25 17:18:53 +0200 | [diff] [blame] | 1168 | 2012-06-26 Mark Wielaard <mjw@redhat.com> |
| 1169 | |
| 1170 | * libdwP.h: Add IDX_debug_macro. |
| 1171 | * dwarf.h: Add DW_AT_GNU_macros. |
| 1172 | * dwarf_begin_elf.c (dwarf_scnnames): Add .debug_macro. |
| 1173 | * dwarf_formudata.c (dwarf_formudata): Recognize DW_AT_GNU_macros. |
| 1174 | |
Mark Wielaard | 5479725 | 2012-04-27 13:00:50 +0200 | [diff] [blame] | 1175 | 2012-04-27 Mark Wielaard <mjw@redhat.com> |
| 1176 | |
| 1177 | * libdw/dwarf_highpc.c (dwarf_highpc): Handle DW_AT_high_pc being |
| 1178 | a constant offset from DW_AT_low_pc. |
| 1179 | |
Tom Tromey | 581c3f6 | 2012-03-21 08:54:32 -0600 | [diff] [blame] | 1180 | 2012-03-19 Tom Tromey <tromey@redhat.com> |
| 1181 | |
| 1182 | * libdw_findcu.c (findcu_cb): Move earlier. |
| 1183 | (__libdw_intern_next_unit): Add new CU to search tree here... |
| 1184 | (__libdw_findcu): ... not here. |
| 1185 | |
Mark Wielaard | cb643d6 | 2012-01-31 19:22:03 +0100 | [diff] [blame] | 1186 | 2012-01-31 Mark Wielaard <mjw@redhat.com> |
| 1187 | |
| 1188 | * dwarf_formudata.c (dwarf_formudata): Handle DW_FORM_sec_offset. |
| 1189 | |
Mark Wielaard | 387998b | 2011-10-31 15:01:50 +0100 | [diff] [blame] | 1190 | 2011-11-31 Mark Wielaard <mjw@redhat.com> |
| 1191 | |
| 1192 | * Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk. |
| 1193 | |
Mark Wielaard | 0b72b65 | 2011-07-14 12:59:26 +0200 | [diff] [blame] | 1194 | 2011-07-14 Mark Wielaard <mjw@redhat.com> |
| 1195 | |
| 1196 | * libdw.h (dwarf_offdie): Fix documentation to mention .debug_info. |
| 1197 | |
Jakub Jelinek | 0312424 | 2011-05-17 17:00:14 +0200 | [diff] [blame] | 1198 | 2011-05-16 Jakub Jelinek <jakub@redhat.com> |
| 1199 | |
| 1200 | * dwarf.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type, |
| 1201 | DW_OP_GNU_deref_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret): |
| 1202 | New. |
| 1203 | |
Mark Wielaard | f4c39c7 | 2011-04-26 17:15:28 +0200 | [diff] [blame] | 1204 | 2011-04-26 Mark Wielaard <mjw@redhat.com> |
| 1205 | |
| 1206 | * dwarf_child (dwarf_child): Sanity check end of section against |
| 1207 | cu_data () of die->cu. |
| 1208 | |
Mark Wielaard | e3368c5 | 2011-03-22 23:03:31 +0100 | [diff] [blame] | 1209 | 2011-03-22 Mark Wielaard <mjw@redhat.com> |
| 1210 | |
| 1211 | * dwarf.h: Add DW_TAG_GNU_call_site, |
| 1212 | DW_TAG_GNU_call_site_parameter, |
| 1213 | DW_AT_GNU_call_site_value, |
| 1214 | DW_AT_GNU_call_site_data_value, |
| 1215 | DW_AT_GNU_call_site_target, |
| 1216 | DW_AT_GNU_call_site_target_clobbered, |
| 1217 | DW_AT_GNU_tail_call, |
| 1218 | DW_AT_GNU_all_tail_call_sites, |
| 1219 | DW_AT_GNU_all_call_sites, |
| 1220 | DW_AT_GNU_all_source_call_sites, |
| 1221 | and DW_OP_GNU_entry_value. |
| 1222 | |
Petr Machata | 02c5619 | 2011-03-10 01:50:32 +0100 | [diff] [blame] | 1223 | 2011-03-10 Petr Machata <pmachata@redhat.com> |
| 1224 | |
| 1225 | * libdw/dwarf_tag.c (__libdw_findabbrev): Reject requests for |
| 1226 | abbreviation with code 0. |
| 1227 | |
Petr Machata | 3587087 | 2011-03-09 10:01:29 -0800 | [diff] [blame] | 1228 | 2011-03-09 Petr Machata <pmachata@redhat.com> |
| 1229 | |
| 1230 | * libdw/dwarf_child.c (dwarf_child): Check for section overrun. |
| 1231 | |
Roland McGrath | 725aad5 | 2011-02-23 19:52:46 -0800 | [diff] [blame] | 1232 | 2011-02-23 Roland McGrath <roland@redhat.com> |
| 1233 | |
| 1234 | * libdwP.h (struct Dwarf) [USE_ZLIB]: New member sectiondata_gzip_mask. |
| 1235 | Declare __libdw_free_zdata. |
| 1236 | * dwarf_end.c [USE_ZLIB] (__libdw_free_zdata): New function. |
| 1237 | (dwarf_end): Call it. |
| 1238 | |
| 1239 | * dwarf_begin_elf.c (valid_p): Likewise. |
| 1240 | (check_section, scngrp_read): Likewise. |
| 1241 | (check_section) [USE_ZLIB]: Grok .z* flavors of sections. |
| 1242 | |
Roland McGrath | 8c0a382 | 2010-10-13 11:21:17 -0700 | [diff] [blame] | 1243 | 2010-10-13 Roland McGrath <roland@redhat.com> |
| 1244 | |
| 1245 | * dwarf.h: Add DW_LANG_Go. |
| 1246 | |
Roland McGrath | 5f95e2b | 2010-10-05 00:56:30 -0700 | [diff] [blame] | 1247 | 2010-10-05 Roland McGrath <roland@redhat.com> |
| 1248 | |
| 1249 | * dwarf_getaranges.c: Use malloc rather than alloca, |
| 1250 | since the total number of elements can be quite huge. |
| 1251 | |
Roland McGrath | 932585d | 2010-05-08 04:01:14 -0700 | [diff] [blame] | 1252 | 2010-07-26 Roland McGrath <roland@redhat.com> |
| 1253 | |
| 1254 | * dwarf_getlocation_implicit_pointer.c: New file. |
| 1255 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 1256 | * libdw.map (ELFUTILS_0.149): New set. |
| 1257 | Add dwarf_getlocation_implicit_pointer. |
| 1258 | * libdw.h: Declare it. |
| 1259 | |
| 1260 | * dwarf_offdie.c (do_offdie): Renamed to __libdw_offdie, made global. |
| 1261 | (dwarf_offdie, dwarf_offdie_types): Update callers. |
| 1262 | * libdwP.h: Declare it. |
| 1263 | |
| 1264 | * dwarf.h: Add DW_OP_GNU_implicit_pointer. |
| 1265 | * dwarf_getlocation.c (__libdw_intern_expression): Handle it. |
| 1266 | |
Roland McGrath | de44f13 | 2010-08-24 15:38:42 -0700 | [diff] [blame] | 1267 | 2010-08-24 Roland McGrath <roland@redhat.com> |
| 1268 | |
| 1269 | * libdw.map (ELFUTILS_0.149): New set. Add dwfl_dwarf_line. |
| 1270 | |
Roland McGrath | 00aca7f | 2010-07-27 04:40:23 -0700 | [diff] [blame] | 1271 | 2010-07-27 Roland McGrath <roland@redhat.com> |
| 1272 | |
| 1273 | * dwarf_formref_die.c: Fix sig8 hash insertion. |
| 1274 | |
Roland McGrath | 9616b85 | 2010-06-23 03:17:28 -0700 | [diff] [blame] | 1275 | 2010-06-23 Roland McGrath <roland@redhat.com> |
| 1276 | |
| 1277 | * cfi.c (dwarf_cfi_validate_fde): Function removed. |
| 1278 | * libdw.h: Remove it. |
| 1279 | * libdw.map: Likewise. |
| 1280 | |
Roland McGrath | 499b8ff | 2010-06-22 13:13:53 -0700 | [diff] [blame] | 1281 | 2010-06-22 Roland McGrath <roland@redhat.com> |
| 1282 | |
Roland McGrath | c16966a | 2010-06-22 17:08:43 -0700 | [diff] [blame] | 1283 | * dwarf_getlocation.c (check_constant_offset): data[48] are constant. |
| 1284 | |
Roland McGrath | 499b8ff | 2010-06-22 13:13:53 -0700 | [diff] [blame] | 1285 | * dwarf_getsrclines.c: Fix signed comparison warning in extended |
| 1286 | opcode parsing. |
| 1287 | |
Roland McGrath | 0c5638c | 2010-06-21 23:00:35 -0700 | [diff] [blame] | 1288 | 2010-06-21 Roland McGrath <roland@redhat.com> |
| 1289 | |
Roland McGrath | 474cb48 | 2010-06-22 00:10:54 -0700 | [diff] [blame] | 1290 | * dwarf.h: Add DW_TAG_GNU_* constants. |
| 1291 | |
Roland McGrath | 0c5638c | 2010-06-21 23:00:35 -0700 | [diff] [blame] | 1292 | * memory-access.h (get_sleb128_rest_return): Fix sign extension for |
| 1293 | 10-byte case. |
| 1294 | |
Roland McGrath | 5cc030d | 2010-06-20 17:25:35 -0700 | [diff] [blame] | 1295 | 2010-06-20 Roland McGrath <roland@redhat.com> |
| 1296 | |
Roland McGrath | 2b1f095 | 2010-06-20 17:55:50 -0700 | [diff] [blame] | 1297 | * libdw_findcu.c (__libdw_findcu): Take new flag argument, |
| 1298 | to search TUs instead of CUs. |
| 1299 | * libdwP.h: Update decl. |
| 1300 | (struct Dwarf): New member tu_tree. |
| 1301 | * dwarf_end.c (dwarf_end): Clean up tu_tree. |
| 1302 | * dwarf_offdie.c (do_offdie): New function, broken out of ... |
| 1303 | (dwarf_offdie): ... here. |
| 1304 | (dwarf_offdie_types): New function. |
| 1305 | * libdw.h: Declare it. |
| 1306 | * libdw.map (ELFUTILS_0.148): Add it. |
| 1307 | |
Roland McGrath | 5cc030d | 2010-06-20 17:25:35 -0700 | [diff] [blame] | 1308 | * libdwP.h (CUDIE): Use cu_data. |
| 1309 | * dwarf_formblock.c: Likewise. |
| 1310 | * dwarf_formref_die.c: Likewise. |
| 1311 | * dwarf_diecu.c: Use CUDIE macro. |
| 1312 | * dwarf_formaddr.c: Use cu_sec_idx. |
| 1313 | |
Roland McGrath | c70ebc0 | 2010-06-16 02:21:26 -0700 | [diff] [blame] | 1314 | 2010-06-16 Roland McGrath <roland@redhat.com> |
| 1315 | |
Roland McGrath | 3e0f7d1 | 2010-06-15 23:10:35 -0700 | [diff] [blame] | 1316 | * dwarf_formref_die.c: Use dwarf_offdie only for DW_FORM_ref_addr, so |
| 1317 | we don't repeat a CU lookup we've already done. Handle |
| 1318 | DW_FORM_ref_sig8 using sig8_hash table and __libdw_intern_next_unit. |
| 1319 | |
| 1320 | * libdw_findcu.c (__libdw_intern_next_unit): New function, |
| 1321 | broken out of ... |
| 1322 | (__libdw_findcu): ... here. Call it. |
| 1323 | * libdwP.h: Declare it. |
| 1324 | (struct Dwarf): New member next_tu_offset. |
| 1325 | |
| 1326 | * dwarf_sig8_hash.c: New file. |
| 1327 | * dwarf_sig8_hash.h: New file. |
| 1328 | * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them. |
| 1329 | * dwarf_abbrev_hash.c: Include dwarf_sig8_hash.h before |
| 1330 | defining NO_UNDEF. |
| 1331 | * libdwP.h (struct Dwarf): New member sig8_hash. |
| 1332 | * dwarf_begin_elf.c: Call Dwarf_Sig8_Hash_init on it. |
| 1333 | * dwarf_end.c: Call Dwarf_Sig8_Hash_free on it. |
| 1334 | |
| 1335 | * dwarf_nextcu.c (dwarf_next_unit): New function, broken out of ... |
| 1336 | (dwarf_nextcu): ... here. Call it. |
| 1337 | * libdw.h: Declare it. |
| 1338 | * libdwP.h: Add INTDECL. |
| 1339 | * libdw_findcu.c (__libdw_findcu): Use it instead of dwarf_nextcu. |
| 1340 | * libdw.map (ELFUTILS_0.148): New set, add dwarf_next_unit. |
| 1341 | |
| 1342 | * libdwP.h (cu_sec_idx, cu_data): New functions. |
| 1343 | Use .debug_types when CU is a TU. |
| 1344 | * dwarf_cuoffset.c: Use that instead of assuming IDX_debug_info. |
| 1345 | * dwarf_siblingof.c: Likewise. |
| 1346 | * dwarf_formstring.c: Likewise. |
| 1347 | * dwarf_formudata.c (__libdw_formptr, dwarf_formudata): Likewise. |
| 1348 | * dwarf_getlocation.c (dwarf_getlocation): Likewise. |
| 1349 | (dwarf_getlocation_addr): Likewise. |
| 1350 | |
| 1351 | * libdwP.h (struct Dwarf_CU): Add new members type_offset, type_sig8. |
| 1352 | (DIE_OFFSET_FROM_CU_OFFSET): Take flag argument; if true, compute |
| 1353 | .debug_types header size instead of .debug_info header size. |
| 1354 | (CUDIE): Use it. |
| 1355 | * dwarf_diecu.c: Update caller. |
| 1356 | * dwarf_getaranges.c: Likewise. |
| 1357 | * dwarf_nextcu.c: Likewise. |
| 1358 | * libdw_findcu.c (__libdw_findcu): Initialize new members. |
| 1359 | |
Roland McGrath | 3e4b5bb | 2010-06-16 03:40:56 -0700 | [diff] [blame] | 1360 | * fde.c (fde_by_offset): Renamed to ... |
| 1361 | (__libdw_fde_by_offset): ... this, made global and internal_function. |
| 1362 | Don't take ADDRESS argument. |
| 1363 | (__libdw_find_fde): Update caller. Do address sanity check here. |
| 1364 | * cfi.h: Declare __libdw_fde_by_offset. |
| 1365 | * cfi.c (dwarf_cfi_validate_fde): New function. |
| 1366 | * libdw.h: Declare it. |
| 1367 | * libdw.map (ELFUTILS_0.148): Add it. |
| 1368 | |
Roland McGrath | 5f4b508 | 2010-06-16 03:11:57 -0700 | [diff] [blame] | 1369 | * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to |
| 1370 | either DW_EH_PE_udata8 or DW_EH_PE_udata4. |
| 1371 | |
Roland McGrath | 7934ded | 2010-06-16 03:04:09 -0700 | [diff] [blame] | 1372 | * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect. |
| 1373 | Don't assume DW_EH_PE_aligned refers to native address size. |
| 1374 | |
Roland McGrath | c70ebc0 | 2010-06-16 02:21:26 -0700 | [diff] [blame] | 1375 | * cfi.c (execute_cfi): Barf on CIE initial instructions changing the |
| 1376 | address. |
| 1377 | |
Roland McGrath | c70cf4e | 2010-06-18 17:01:05 -0700 | [diff] [blame] | 1378 | 2010-06-17 Roland McGrath <roland@redhat.com> |
| 1379 | |
| 1380 | * libdwP.h (struct Dwarf_Line_s): Add members isa, discriminator, and |
| 1381 | op_index. |
| 1382 | * dwarf_getsrclines.c (dwarf_getsrclines): Move NEW_FILE macro guts |
| 1383 | into an inner inline function. Set new fields. Check all fields for |
| 1384 | overflow when setting. |
| 1385 | * dwarf_lineisa.c: New file. |
| 1386 | * dwarf_linediscriminator.c: New file. |
| 1387 | * dwarf_lineop_index.c: New file. |
| 1388 | * Makefile.am (libdw_a_SOURCES): Add them. |
| 1389 | * libdw.map (ELFUTILS_0.148): Add them. |
| 1390 | * libdw.h: Declare them. |
| 1391 | |
Roland McGrath | 3f63307 | 2010-06-15 22:17:04 -0700 | [diff] [blame] | 1392 | 2010-06-16 Roland McGrath <roland@redhat.com> |
| 1393 | |
Roland McGrath | 4a87dfa | 2010-06-16 16:35:10 -0700 | [diff] [blame] | 1394 | * dwarf_next_cfi.c: Fix version 4 return_address_register decoding. |
| 1395 | |
Roland McGrath | b75f444 | 2010-06-15 22:24:19 -0700 | [diff] [blame] | 1396 | * fde.c (fde_by_offset): Renamed to ... |
| 1397 | (__libdw_fde_by_offset): ... this, made global and internal_function. |
| 1398 | Don't take ADDRESS argument. |
| 1399 | (__libdw_find_fde): Update caller. Do address sanity check here. |
| 1400 | * cfi.h: Declare __libdw_fde_by_offset. |
Roland McGrath | 9bcd265 | 2010-06-15 22:17:20 -0700 | [diff] [blame] | 1401 | * cfi.c (dwarf_cfi_validate_fde): New function. |
| 1402 | * libdw.h: Declare it. |
Roland McGrath | 3f63307 | 2010-06-15 22:17:04 -0700 | [diff] [blame] | 1403 | * libdw.map (ELFUTILS_0.148): Add it. |
| 1404 | |
Roland McGrath | 0b3363e | 2010-06-01 15:42:14 -0700 | [diff] [blame] | 1405 | * cie.c (intern_new_cie): Canonicalize DW_EH_PE_absptr FDE encoding to |
| 1406 | either DW_EH_PE_udata8 or DW_EH_PE_udata4. |
Roland McGrath | 827d4d1 | 2010-06-01 20:17:36 -0700 | [diff] [blame] | 1407 | |
| 1408 | * encoded-value.h (read_encoded_value): Handle DW_EH_PE_indirect. |
| 1409 | Don't assume DW_EH_PE_aligned refers to native address size. |
Roland McGrath | 1a030b3 | 2010-06-01 20:11:40 -0700 | [diff] [blame] | 1410 | |
| 1411 | * cfi.c (execute_cfi): Barf on CIE initial instructions changing the |
Roland McGrath | 675229b | 2010-06-01 20:10:19 -0700 | [diff] [blame] | 1412 | address. |
| 1413 | |
| 1414 | 2010-06-15 Roland McGrath <roland@redhat.com> |
Roland McGrath | 5212396 | 2010-06-01 19:05:08 -0700 | [diff] [blame] | 1415 | |
| 1416 | * dwarf_formref.c (__libdw_formref): Diagnose DW_FORM_ref_sig8 like |
Roland McGrath | 7fac1ce | 2010-06-01 15:56:58 -0700 | [diff] [blame] | 1417 | DW_FORM_ref_addr. |
| 1418 | * dwarf_formref_die.c (dwarf_formref_die): Diagnose it the same way |
Roland McGrath | 0b3363e | 2010-06-01 15:42:14 -0700 | [diff] [blame] | 1419 | here, since we don't support it yet. |
| 1420 | |
Mark Wielaard | 3f507bd | 2010-05-31 15:06:31 +0200 | [diff] [blame] | 1421 | * dwarf_next_cfi.c: Handle version 4 format. |
| 1422 | |
Mark Wielaard | 08e71db | 2010-05-31 15:39:15 +0200 | [diff] [blame] | 1423 | * dwarf_getsrclines.c: Handle version 4 format. |
| 1424 | |
| 1425 | 2010-06-01 Roland McGrath <roland@redhat.com> |
| 1426 | |
| 1427 | * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types. |
Mark Wielaard | 3f507bd | 2010-05-31 15:06:31 +0200 | [diff] [blame] | 1428 | * dwarf_begin_elf.c (dwarf_scnnames): Likewise. |
| 1429 | |
Eduardo Santiago | d2240bc | 2010-05-28 14:26:52 -0700 | [diff] [blame] | 1430 | * libdwP.h (CIE_VERSION): Remove unused macro. |
Ulrich Drepper | 6fb3451 | 2010-05-28 20:28:04 -0700 | [diff] [blame] | 1431 | |
Ulrich Drepper | 49fe714 | 2010-05-28 20:32:37 -0700 | [diff] [blame] | 1432 | * dwarf_getsrclines.c: Fix version field test. |
| 1433 | * libdwP.h (DWARF_VERSION): Remove useless macro. |
Ulrich Drepper | 6fb3451 | 2010-05-28 20:28:04 -0700 | [diff] [blame] | 1434 | |
Roland McGrath | cfa5da2 | 2010-05-27 13:49:25 -0700 | [diff] [blame] | 1435 | * dwarf_formudata.c (__libdw_formptr): Fix DW_FORM_sec_offset handling. |
| 1436 | |
| 1437 | * dwarf_formblock.c (dwarf_formblock): Handle DW_FORM_exprloc. |
| 1438 | |
| 1439 | * libdw_findcu.c (__libdw_findcu): Accept version 4. |
Roland McGrath | 688f7fc | 2010-05-08 03:22:59 -0700 | [diff] [blame] | 1440 | |
| 1441 | 2010-05-31 Mark Wielaard <mjw@redhat.com> |
| 1442 | |
| 1443 | * cfi.h (dwarf_cfi_cie_p): Move definition from here, to .. |
| 1444 | * libdw.h (dwarf_cfi_cie_p): ... here. |
| 1445 | |
| 1446 | 2010-05-31 Mark Wielaard <mjw@redhat.com> |
| 1447 | |
| 1448 | * dwarf.h: Fix DW_LANG_Python constant. |
Roland McGrath | 0ab9783 | 2010-04-26 11:50:27 -0700 | [diff] [blame] | 1449 | |
| 1450 | 2010-05-28 Eduardo Santiago <santiago@redhat.com> |
Roland McGrath | 3b10ac0 | 2010-04-26 18:45:36 -0700 | [diff] [blame] | 1451 | |
| 1452 | * dwarf_getlocation.c (dwarf_getlocation): Do attr_ok check first |
| 1453 | thing. |
| 1454 | |
| 1455 | 2010-05-27 Roland McGrath <roland@redhat.com> |
Roland McGrath | 0ab9783 | 2010-04-26 11:50:27 -0700 | [diff] [blame] | 1456 | |
| 1457 | * dwarf.h: Add DW_AT_enum_class, DW_AT_linkage_name, |
| 1458 | DW_TAG_template_alias, DW_LANG_Python, DW_LNE_set_discriminator. |
| 1459 | |
| 1460 | 2010-05-08 Roland McGrath <roland@redhat.com> |
| 1461 | |
| 1462 | * dwarf_getlocation.c (__libdw_intern_expression): Take new argument |
Roland McGrath | 3f9d955 | 2010-04-22 20:51:07 -0700 | [diff] [blame] | 1463 | REF_SIZE. Use that to handle DW_OP_call_ref correctly. |
| 1464 | (getlocation): Update caller. |
| 1465 | * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise. |
| 1466 | * dwarf_frame_register.c (dwarf_frame_register): Likewise. |
| 1467 | * libdwP.h: Update decl. |
| 1468 | |
| 1469 | 2010-04-26 Roland McGrath <roland@redhat.com> |
Roland McGrath | 8068e06 | 2010-03-10 23:49:13 -0800 | [diff] [blame] | 1470 | |
| 1471 | * cfi.h (struct Dwarf_Frame_s): Add cfa_invalid alternative in cfa_rule. |
| 1472 | * cfi.c (execute_cfi): Set that instead of doing cfi_assert for |
| 1473 | DW_CFA_def_cfa_{offset*,register} when a non-offset rule is in force. |
Roland McGrath | 22359e2 | 2010-02-15 15:57:03 -0800 | [diff] [blame] | 1474 | * dwarf_frame_cfa.c (dwarf_frame_cfa): Handle cfa_invalid. |
| 1475 | |
| 1476 | * dwarf_getlocation.c (__libdw_intern_expression): Take new arg CFAP. |
| 1477 | Prepend DW_OP_call_frame_cfa if true. |
Mark Wielaard | ee29a31 | 2010-02-02 20:44:53 +0100 | [diff] [blame] | 1478 | (getlocation): Update caller. |
| 1479 | * dwarf_frame_cfa.c (dwarf_frame_cfa): Likewise. |
| 1480 | * dwarf_frame_register.c (dwarf_frame_register): Likewise. |
| 1481 | * libdwP.h: Update decl. |
Roland McGrath | f95760a | 2010-01-07 20:24:34 -0800 | [diff] [blame] | 1482 | |
| 1483 | 2010-04-22 Roland McGrath <roland@redhat.com> |
| 1484 | |
| 1485 | * cfi.c (execute_cfi): Never return without cleanup. |
Roland McGrath | 019d9fb | 2010-01-05 13:36:07 -0800 | [diff] [blame] | 1486 | Free FS on failure. |
| 1487 | (cie_cache_initial_state): Adjust caller to expect that free. |
Roland McGrath | ebc5c88 | 2010-01-05 22:53:31 -0800 | [diff] [blame] | 1488 | (__libdw_frame_at_address): Likewise. |
| 1489 | |
| 1490 | 2010-03-10 Roland McGrath <roland@redhat.com> |
| 1491 | |
| 1492 | * libdw.map (ELFUTILS_0.146): New set. Add dwfl_core_file_report. |
| 1493 | |
| 1494 | 2010-02-15 Roland McGrath <roland@redhat.com> |
| 1495 | |
| 1496 | * Makefile.am: Use config/eu.am for common stuff. |
Roland McGrath | 0cb1983 | 2010-01-05 13:38:15 -0800 | [diff] [blame] | 1497 | |
| 1498 | 2010-02-02 Mark Wielaard <mjw@redhat.com> |
Roland McGrath | 019d9fb | 2010-01-05 13:36:07 -0800 | [diff] [blame] | 1499 | |
| 1500 | * fde.c (intern_fde): Fix length check for sized_augmentation_data. |
Roland McGrath | 888381b | 2009-11-21 17:03:34 -0800 | [diff] [blame] | 1501 | |
| 1502 | 2010-01-07 Roland McGrath <roland@redhat.com> |
| 1503 | |
| 1504 | * dwarf_getcfi_elf.c (getcfi_phdr): Use elf_getphdrnum. |
| 1505 | |
Roland McGrath | 9ca7bc4 | 2009-10-15 12:26:49 -0700 | [diff] [blame] | 1506 | 2010-01-05 Roland McGrath <roland@redhat.com> |
| 1507 | |
| 1508 | * dwarf_aggregate_size.c: New file. |
| 1509 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 1510 | * libdw.h: Declare it. |
Roland McGrath | 7e0aecd | 2009-09-17 15:02:34 -0700 | [diff] [blame] | 1511 | * libdwP.h: Add INTDECL. |
| 1512 | * libdw.map (ELFUTILS_0.144): New set. Add dwarf_aggregate_size. |
| 1513 | |
| 1514 | * dwarf_srclang.c: Add INTDEF. |
| 1515 | * libdwP.h: Add INTDECL. |
| 1516 | |
Roland McGrath | f037104 | 2009-09-10 12:39:09 -0700 | [diff] [blame] | 1517 | * dwarf.h: Add some more DW_AT_GNU_* types from gcc. |
| 1518 | |
| 1519 | * dwarf.h: Add DW_AT_GNU_vector, DW_AT_GNU_template_name. |
| 1520 | |
| 1521 | 2009-11-21 Roland McGrath <roland@redhat.com> |
| 1522 | |
| 1523 | * dwarf_getlocation.c (check_constant_offset): Return 1 for all |
| 1524 | non-constant forms. |
Mark Wielaard | 418ae4c | 2009-09-09 20:59:26 +0200 | [diff] [blame] | 1525 | |
| 1526 | 2009-10-15 Roland McGrath <roland@redhat.com> |
| 1527 | |
| 1528 | * libdw_form.c (__libdw_form_val_len): Grok DW_FORM_sec_offset, |
Josh Stone | cc93cc4 | 2009-08-21 18:04:44 -0700 | [diff] [blame] | 1529 | DW_FORM_exprloc, DW_FORM_flag_present, and DW_FORM_ref_sig8. |
| 1530 | |
| 1531 | 2009-09-17 Roland McGrath <roland@redhat.com> |
| 1532 | |
Roland McGrath | 08277ba | 2009-08-10 15:08:08 -0700 | [diff] [blame] | 1533 | * dwarf_getlocation.c (dwarf_getlocation_implicit_value): Make OP |
| 1534 | argument a pointer to const. |
| 1535 | * libdw.h: Update decl. |
| 1536 | |
Roland McGrath | ebfb648 | 2009-08-09 15:40:52 -0700 | [diff] [blame] | 1537 | 2009-09-10 Roland McGrath <roland@redhat.com> |
| 1538 | |
| 1539 | * dwarf_getlocation.c (store_implicit_value): New function. |
| 1540 | (__libdw_intern_expression): Use it, handle DW_OP_implicit_value. |
| 1541 | (dwarf_getlocation_implicit_value): New function. |
| 1542 | * libdw.h: Declare it. |
| 1543 | * libdw.map (ELFUTILS_0.143): Add it. |
| 1544 | |
| 1545 | 2009-09-09 Mark Wielaard <mjw@redhat.com> |
| 1546 | |
| 1547 | * dwarf_getcfi.c (dwarf_getcfi): Clear cfi->ebl. |
| 1548 | |
| 1549 | 2009-08-21 Josh Stone <jistone@redhat.com> |
| 1550 | |
Roland McGrath | de69d52 | 2009-08-07 18:26:19 -0700 | [diff] [blame] | 1551 | * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too. |
| 1552 | |
| 1553 | 2009-08-10 Roland McGrath <roland@redhat.com> |
| 1554 | |
| 1555 | * dwarf_getscopevar.c: Use dwarf_diename. |
| 1556 | |
| 1557 | 2009-08-09 Roland McGrath <roland@redhat.com> |
| 1558 | |
| 1559 | * libdw.map (ELFUTILS_0.143): New version set, |
| 1560 | inherits from ELFUTILS_0.142. |
Roland McGrath | af80014 | 2009-07-22 13:55:50 -0700 | [diff] [blame] | 1561 | * dwarf_arrayorder.c: Use OLD_VERSION and NEW_VERSION to define an |
| 1562 | alias in the ELFUTILS_0.122 version set and the default in the new set. |
| 1563 | * dwarf_srclang.c: Likewise. |
| 1564 | * dwarf_decl_file.c: Likewise. |
| 1565 | * dwarf_decl_line.c: Likewise. |
| 1566 | * dwarf_decl_column.c: Likewise. |
| 1567 | * dwarf_bytesize.c: Likewise. |
| 1568 | * dwarf_bitsize.c: Likewise. |
| 1569 | * dwarf_bitoffset.c: Likewise. |
| 1570 | |
| 1571 | 2009-08-07 Roland McGrath <roland@redhat.com> |
| 1572 | |
| 1573 | * dwarf_arrayorder.c: Use dwarf_attr_integrate. |
| 1574 | * dwarf_srclang.c: Likewise. |
| 1575 | * dwarf_decl_file.c: Likewise. |
| 1576 | * dwarf_decl_line.c (__libdw_attr_intval): Likewise. |
Roland McGrath | e23e9e7 | 2009-07-21 18:14:52 -0700 | [diff] [blame] | 1577 | * dwarf_bytesize.c: Likewise. |
| 1578 | * dwarf_bitsize.c: Likewise. |
| 1579 | * dwarf_bitoffset.c: Likewise. |
| 1580 | |
| 1581 | 2009-07-22 Roland McGrath <roland@redhat.com> |
| 1582 | |
| 1583 | * dwarf_frame_cfa.c: Change calling convention. |
| 1584 | * libdw.h: Update decl. |
Roland McGrath | 96349ff | 2009-07-20 11:51:41 -0700 | [diff] [blame] | 1585 | |
| 1586 | * dwarf_frame_register.c: Change calling/return-value convention for |
| 1587 | value-only results and undefined/same_value. |
| 1588 | * libdw.h: Update decl. |
| 1589 | |
Roland McGrath | a6abdfd | 2009-07-16 17:40:19 -0700 | [diff] [blame] | 1590 | * dwarf_getlocation.c (__libdw_intern_expression): Take new bool |
| 1591 | argument, append DW_OP_stack_value if set. Don't take NOPS argument, |
Roland McGrath | e160cc9 | 2009-07-16 17:48:27 -0700 | [diff] [blame] | 1592 | return that value instead. |
| 1593 | (getlocation): Update caller. |
| 1594 | * dwarf_frame_cfa.c: Likewise. |
| 1595 | * libdwP.h: Update decl. |
| 1596 | |
Roland McGrath | a6abdfd | 2009-07-16 17:40:19 -0700 | [diff] [blame] | 1597 | 2009-07-21 Roland McGrath <roland@redhat.com> |
| 1598 | |
| 1599 | * dwarf_getsrc_file.c: Ignore a CU that just has no DW_AT_stmt_list. |
| 1600 | Fix loop iteration after skipping a bogus or useless CU. |
| 1601 | |
| 1602 | * dwarf_entry_breakpoints.c: Handle 0 dwarf_errno () as harmless |
| 1603 | absence, not DWARF_E_NO_DEBUG_LINE. |
Roland McGrath | 7dd9464 | 2009-07-15 11:14:23 -0700 | [diff] [blame] | 1604 | |
| 1605 | 2009-07-20 Roland McGrath <roland@redhat.com> |
| 1606 | |
| 1607 | * dwarf_getlocation.c (__libdw_intern_expression): |
| 1608 | Handle DW_OP_stack_value. |
Roland McGrath | 8089343 | 2009-07-13 12:08:55 -0700 | [diff] [blame] | 1609 | |
| 1610 | 2009-07-16 Roland McGrath <roland@redhat.com> |
| 1611 | |
| 1612 | * dwarf_formudata.c (__libdw_formptr): Handle DW_FORM_sec_offset, |
Roland McGrath | cfdd86e | 2009-07-08 13:15:07 -0700 | [diff] [blame] | 1613 | reject others when CU's version > 3. |
| 1614 | |
Roland McGrath | 3c84db3 | 2009-06-24 17:41:40 -0700 | [diff] [blame] | 1615 | * dwarf_formflag.c: Handle DW_FORM_flag_present. |
| 1616 | |
| 1617 | * dwarf.h: Add DW_OP_{implicit,stack}_value from DWARF 4 draft. |
| 1618 | Also DW_TAG_type_unit and DW_TAG_rvalue_reference_type. |
| 1619 | Also DW_AT_signature, DW_AT_main_subprogram, DW_AT_data_bit_offset, |
| 1620 | and DW_AT_const_expr. |
| 1621 | Also DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present, |
| 1622 | and DW_FORM_ref_sig8. |
| 1623 | |
| 1624 | 2009-07-15 Roland McGrath <roland@redhat.com> |
| 1625 | |
| 1626 | * dwarf_getlocation.c: Grok DW_OP_form_tls_address, |
| 1627 | DW_OP_GNU_push_tls_address, and DW_OP_bit_piece. |
| 1628 | |
| 1629 | 2009-07-13 Roland McGrath <roland@redhat.com> |
| 1630 | |
| 1631 | * dwarf_getlocation.c: Grok DW_OP_call_frame_cfa. |
| 1632 | |
| 1633 | 2009-07-08 Roland McGrath <roland@redhat.com> |
| 1634 | |
| 1635 | * libdw.map (ELFUTILS_0.142): Add dwfl_module_dwarf_cfi, |
| 1636 | dwfl_module_eh_cfi. |
| 1637 | |
| 1638 | * libdwP.h (struct Dwarf): Add member `cfi'. |
| 1639 | * dwarf_end.c (dwarf_end): Call __libdw_destroy_frame_cache on it. |
| 1640 | * dwarf_getcfi.c: New file. |
| 1641 | * dwarf_getcfi_elf.c: New file. |
| 1642 | * dwarf_cfi_end.c: New file. |
| 1643 | * dwarf_cfi_addrframe.c: New file. |
| 1644 | * dwarf_frame_cfa.c: New file. |
| 1645 | * dwarf_frame_register.c: New file. |
| 1646 | * dwarf_frame_return_address_register.c: New file. |
| 1647 | * Makefile.am (libdw_a_SOURCES): Add them. |
| 1648 | * unwind.h: Declare those functions. |
| 1649 | * libdw.map (ELFUTILS_0.142): Export them. |
| 1650 | |
| 1651 | * dwarf_getlocation.c (__libdw_intern_expression): New function, |
| 1652 | broken out of ... |
| 1653 | (getlocation): ... here, call it. |
| 1654 | * libdwP.h: Declare it. |
| 1655 | |
| 1656 | * cie.c: New file. |
| 1657 | * fde.c: New file. |
| 1658 | * frame-cache.c: New file. |
| 1659 | * cfi.c: New file. |
| 1660 | * cfi.h: New file. |
| 1661 | * encoded-value.h: New file. |
| 1662 | * Makefile.am (libdw_a_SOURCES, noinst_HEADERS): Add them. |
| 1663 | * libdwP.h: Add DWARF_E_INVALID_CFI to errors enum. |
| 1664 | * dwarf_error.c (errmsgs): Add element for it. |
| 1665 | |
| 1666 | * dwarf_next_cfi.c: New file. |
| 1667 | * Makefile.am (libdw_a_SOURCES): Add it. |
Roland McGrath | 6e1f465 | 2009-07-08 14:48:34 -0700 | [diff] [blame] | 1668 | * libdw.h (Dwarf_CIE, Dwarf_FDE, Dwarf_CIE_Entry): New types. |
| 1669 | Declare dwarf_next_cfi. |
Roland McGrath | cfdd86e | 2009-07-08 13:15:07 -0700 | [diff] [blame] | 1670 | * libdw.map (ELFUTILS_0.142): New set, inherits from ELFUTILS_0.136. |
| 1671 | Add dwarf_next_cfi. |
| 1672 | |
| 1673 | * memory-access.h [! ALLOW_UNALIGNED] |
Roland McGrath | 05c4e04 | 2009-06-18 13:56:02 -0700 | [diff] [blame] | 1674 | (read_2ubyte_unaligned): Renamed to ... |
| 1675 | (read_2ubyte_unaligned_1): ... this. Take bool rather than Dwarf *. |
| 1676 | (read_2ubyte_unaligned): Define as macro passing dbg->other_byte_order. |
| 1677 | (read_2sbyte_unaligned): Likewise. |
| 1678 | (read_4ubyte_unaligned): Likewise. |
| 1679 | (read_4sbyte_unaligned): Likewise. |
| 1680 | (read_8ubyte_unaligned): Likewise. |
| 1681 | (read_8sbyte_unaligned): Likewise. |
| 1682 | |
Ulrich Drepper | 99d2372 | 2009-06-14 20:19:45 -0700 | [diff] [blame] | 1683 | * libdwP.h (IDX_eh_frame): Remove it. |
| 1684 | * dwarf_begin_elf.c (dwarf_scnnames): Remove its element. |
| 1685 | |
| 1686 | 2009-07-08 Roland McGrath <roland@redhat.com> |
| 1687 | |
| 1688 | * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better. |
| 1689 | |
| 1690 | * dwarf_getlocation.c (check_constant_offset): New function. |
| 1691 | (dwarf_getlocation, dwarf_getlocation_addr): Call it to |
| 1692 | handle DW_AT_data_member_location of data[48] as constant offset. |
| 1693 | |
| 1694 | 2009-06-18 Roland McGrath <roland@redhat.com> |
| 1695 | |
| 1696 | * libdwP.h (__libdw_read_address_inc): Constify. |
| 1697 | (__libdw_read_offset_inc): Likewise. |
| 1698 | * dwarf_getaranges.c: Likewise. |
| 1699 | * dwarf_getlocation.c: Likewise. |
| 1700 | * dwarf_getsrclines.c: Likewise. |
| 1701 | * dwarf_nextcu.c: Likewise. |
| 1702 | |
| 1703 | 2009-05-05 Petr Machata <pmachata@redhat.com> |
| 1704 | |
| 1705 | * libdwP.h (__libdw_formptr): Declare new function. |
| 1706 | * dwarf_formudata.c: Implement it here. |
| 1707 | * dwarf_getlocation.c (dwarf_getlocation_addr): |
| 1708 | Call it instead of hand-rolled offset handling code. |
| 1709 | * dwarf_getsrclines.c (dwarf_getsrclines): Likewise. |
| 1710 | * dwarf_ranges.c (dwarf_ranges): Likewise. |
| 1711 | |
| 1712 | 2009-05-04 Petr Machata <pmachata@redhat.com> |
| 1713 | |
| 1714 | * libdwP.h (__libdw_read_begin_end_pair_inc): Declare new function. |
| 1715 | * dwarf_ranges.c: Implement it here. |
| 1716 | (dwarf_ranges): Call it. |
Roland McGrath | e2eabd8 | 2009-05-07 18:54:52 -0700 | [diff] [blame] | 1717 | * dwarf_getlocation.c (dwarf_getlocation_addr): Call it also here. |
| 1718 | |
| 1719 | 2009-04-23 Petr Machata <pmachata@redhat.com> |
| 1720 | |
| 1721 | * dwarf_formaddr.c (dwarf_formaddr): Call __libdw_read_* instead |
| 1722 | of read_*ubyte_unaligned. |
Petr Machata | f3df61f | 2009-05-07 21:02:33 +0200 | [diff] [blame] | 1723 | * dwarf_formref_die.c (dwarf_formref_die): Likewise. |
| 1724 | * dwarf_formstring.c (dwarf_formstring): Likewise. |
| 1725 | * dwarf_formudate.c (dwarf_formudata): Likewise. |
| 1726 | * dwarf_getaranges.c (dwarf_getaranges): Likewise. |
| 1727 | * dwarf_getlocation.c (dwarf_getlocation_addr): Likewise. |
Roland McGrath | 2fb9051 | 2009-04-15 14:47:13 -0700 | [diff] [blame] | 1728 | * dwarf_getpubnames.c (get_offsets): Likewise. |
| 1729 | * dwarf_nextcu.c (dwarf_nextcu): Likewise. |
| 1730 | |
| 1731 | 2009-04-23 Petr Machata <pmachata@redhat.com> |
| 1732 | |
Roland McGrath | 6a4bdd9 | 2009-04-01 14:25:29 -0700 | [diff] [blame] | 1733 | * libdwP.h (__libdw_read_addr_inc, __libdw_read_off_inc, |
| 1734 | __libdw_read_addr, __libdw_read_off): Add four new internal |
| 1735 | functions. |
| 1736 | |
Roland McGrath | c5acb30 | 2009-01-28 18:28:52 -0800 | [diff] [blame] | 1737 | 2009-05-07 Roland McGrath <roland@redhat.com> |
| 1738 | |
Roland McGrath | 03288f0 | 2009-01-28 22:00:54 -0800 | [diff] [blame] | 1739 | * dwarf_getmacros.c (dwarf_getmacros): Use absolute section offset in |
| 1740 | return value and OFFSET argument, not CU-relative. Only fetch the |
| 1741 | attribute data when called with OFFSET of 0. |
Roland McGrath | c5acb30 | 2009-01-28 18:28:52 -0800 | [diff] [blame] | 1742 | |
| 1743 | 2009-05-07 Petr Machata <pmachata@redhat.com> |
Roland McGrath | f46272a | 2009-01-26 18:36:16 -0800 | [diff] [blame] | 1744 | |
| 1745 | * dwarf_getmacros.c (dwarf_getmacros): Take into account offset in |
| 1746 | DW_AT_macro_info attribute of CU DIE. |
| 1747 | |
Roland McGrath | d31505f | 2009-01-25 19:37:33 -0800 | [diff] [blame] | 1748 | 2009-04-15 Roland McGrath <roland@redhat.com> |
| 1749 | |
| 1750 | * dwarf.h (DW_CIE_ID): Removed. |
| 1751 | (DW_CIE_ID_32, DW_CIE_ID_64): New constants replace it. |
Roland McGrath | 3bf7a09 | 2009-01-23 16:34:07 -0800 | [diff] [blame] | 1752 | |
| 1753 | 2009-04-01 Roland McGrath <roland@redhat.com> |
| 1754 | |
| 1755 | * dwarf.h: Add DW_CFA_GNU_negative_offset_extended. |
| 1756 | |
Roland McGrath | afdd51e | 2009-01-22 02:26:24 -0800 | [diff] [blame] | 1757 | 2009-01-28 Roland McGrath <roland@redhat.com> |
| 1758 | |
| 1759 | * libdwP.h (struct Dwarf_Line_s): Move out of struct Dwarf_Lines_s |
| 1760 | defn so C++ doesn't scope the name to not match the Dwarf_Line typedef. |
Roland McGrath | 1ea4fdc | 2009-01-21 19:14:37 -0800 | [diff] [blame] | 1761 | |
| 1762 | * libdwP.h (struct Dwarf_Files_s): Replace dbg field with cu field. |
| 1763 | |
| 1764 | 2009-01-26 Roland McGrath <roland@redhat.com> |
| 1765 | |
| 1766 | * dwarf_ranges.c: Return 0 when no ranges or *_pc attrs at all. |
Roland McGrath | 24b0330 | 2009-01-17 14:34:13 -0800 | [diff] [blame] | 1767 | |
| 1768 | 2009-01-25 Roland McGrath <roland@redhat.com> |
Roland McGrath | 54456d8 | 2009-01-17 14:39:35 -0800 | [diff] [blame] | 1769 | |
| 1770 | * dwarf_getattrs.c: Correctly skip attribute values when restarting. |
| 1771 | |
Roland McGrath | 5513e64 | 2009-01-11 01:35:11 -0800 | [diff] [blame] | 1772 | 2009-01-23 Roland McGrath <roland@redhat.com> |
| 1773 | |
| 1774 | * Makefile.am ($(srcdir)/known-dwarf.h): Target renamed back. |
| 1775 | Put these rules under if MAINTAINER_MODE. |
| 1776 | |
| 1777 | 2009-01-22 Roland McGrath <roland@redhat.com> |
| 1778 | |
Roland McGrath | 24b0330 | 2009-01-17 14:34:13 -0800 | [diff] [blame] | 1779 | * dwarf.h: Add DW_OP_GNU_encoded_addr. |
| 1780 | |
Ulrich Drepper | 7e678fa | 2009-01-10 18:02:05 -0800 | [diff] [blame] | 1781 | 2009-01-21 Roland McGrath <roland@redhat.com> |
| 1782 | |
| 1783 | * Makefile.am (CLEANFILES): Renamed to ... |
| 1784 | (MOSTLYCLEANFILES): ... here. |
Roland McGrath | e06762c | 2009-01-08 13:39:08 -0800 | [diff] [blame] | 1785 | (CLEANFILES): New variable, add known-dwarf.h. |
| 1786 | |
| 1787 | 2009-01-17 Roland McGrath <roland@redhat.com> |
| 1788 | |
Roland McGrath | 7e827f2 | 2009-01-06 02:09:50 -0800 | [diff] [blame] | 1789 | * Makefile.am (known-dwarf.h): Target renamed, not in $(srcdir). |
Roland McGrath | 1f6d201 | 2008-12-31 00:21:04 -0800 | [diff] [blame] | 1790 | Make it unconditional. |
| 1791 | (BUILT_SOURCES): Updated. |
| 1792 | |
| 1793 | * dwarf.h: Add description comments for DW_LANG_* values. |
Roland McGrath | bca4315 | 2009-01-05 23:59:32 -0800 | [diff] [blame] | 1794 | |
| 1795 | * Makefile.am [MAINTAINER_MODE] |
| 1796 | ($(srcdir)/known-dwarf.h): New target. |
Ulrich Drepper | ac194d0 | 2009-01-06 00:30:01 -0800 | [diff] [blame] | 1797 | (BUILT_SOURCES): Add it. |
| 1798 | |
Roland McGrath | c462c63 | 2009-01-06 01:04:31 -0800 | [diff] [blame] | 1799 | * dwarf.h: Add DW_OP_GNU_push_tls_address, DW_OP_GNU_uninit. |
Ulrich Drepper | ac194d0 | 2009-01-06 00:30:01 -0800 | [diff] [blame] | 1800 | |
| 1801 | 2009-01-10 Ulrich Drepper <drepper@redhat.com> |
| 1802 | |
| 1803 | * dwarf_error.c: Always use __thread. Remove all !USE_TLS code. |
Roland McGrath | b4d6f0f | 2008-08-25 22:55:17 +0000 | [diff] [blame] | 1804 | |
| 1805 | 2009-01-08 Roland McGrath <roland@redhat.com> |
| 1806 | |
| 1807 | * Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in. |
| 1808 | |
Ulrich Drepper | 8d358d9 | 2008-01-22 06:34:31 +0000 | [diff] [blame] | 1809 | 2008-01-06 Roland McGrath <roland@redhat.com> |
| 1810 | |
| 1811 | * libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool. |
| 1812 | Reorder members. |
| 1813 | * dwarf_haschildren.c: Return -1 for error case, not 0. |
| 1814 | |
| 1815 | * Makefile.am (libdw.so): Link in $(zip_LIBS). |
| 1816 | |
Ulrich Drepper | b27ce00 | 2008-01-18 20:08:54 +0000 | [diff] [blame] | 1817 | 2009-01-06 Ulrich Drepper <drepper@redhat.com> |
| 1818 | |
| 1819 | * dwarf.h: Add definition for unwind and call frame information. |
| 1820 | |
| 1821 | * memory-access.h: Define read_ubyte_unaligned, read_sbyte_unaligned, |
Ulrich Drepper | 35f08c4 | 2008-01-18 19:59:08 +0000 | [diff] [blame] | 1822 | read_ubyte_unaligned_inc, and read_sbyte_unaligned_inc. |
| 1823 | |
| 1824 | 2008-08-15 Roland McGrath <roland@redhat.com> |
| 1825 | |
| 1826 | * libdw.map (ELFUTILS_0.136): New version set, inherits from |
| 1827 | ELFUTILS_0.130. Add dwfl_addrsegment, dwfl_report_segment. |
| 1828 | |
| 1829 | 2008-01-21 Ulrich Drepper <drepper@redhat.com> |
| 1830 | |
| 1831 | * dwarf_child.c: Minor optimizations. |
| 1832 | * dwarf_getattrs.c: Likewise. |
| 1833 | * dwarf_getpubnames.c: Likewise. |
| 1834 | * dwarf_siblingof.c: Likewise. |
Ulrich Drepper | a969d8e | 2008-01-22 06:15:00 +0000 | [diff] [blame] | 1835 | * dwarf_tag.c: Likewise. |
Ulrich Drepper | 35f08c4 | 2008-01-18 19:59:08 +0000 | [diff] [blame] | 1836 | |
| 1837 | 2008-01-18 Ulrich Drepper <drepper@redhat.com> |
| 1838 | |
| 1839 | * dwarf_getsrclines.c (dwarf_getsrclines): Don't require exact match |
| 1840 | of DWARF_VERSION comparison, just fail if the file's version is newer. |
| 1841 | |
| 1842 | 2008-01-17 Nick Clifton <nickc@redhat.com> |
| 1843 | |
| 1844 | * dwarf.h (DWARF3_LENGTH_MIN_ESCAPE_CODE): New define. |
| 1845 | (DWARF3_LENGTH_MAX_ESCAPE_CODE): New define. |
| 1846 | (DWARF3_LENGTH_64_BIT): New define. |
| 1847 | * dwarf_getaranges (dwarf_getaranges): Use the new definitions. |
| 1848 | * dwarf_getpubnames: Include dwarf.h. |
| 1849 | (get_offsets): Use the new definitions. |
| 1850 | * dwarf_getsrclines.c (dwarf_getsrclines): Use the new defintions. |
| 1851 | * dwarf_nextcu.c: Include dwarf.h. Correct comment. |
| 1852 | (dwarf_nextcu): Use the new definitions. |
| 1853 | |
| 1854 | * libdwP.h (DIE_OFFSET_FROM_CU_OFFSET): New macro. |
| 1855 | * dwarf_diecu.c (dwarf_diecu): Use the new macro. |
| 1856 | * dwarf_getaranges (dwarf_getaranges): Use the new macro. |
| 1857 | * dwarf_nextcu.c (dwarf_nextcu): Use the new macro. |
| 1858 | |
| 1859 | * dwarf_getpubnames (get_offsets): Replace assertion with test and |
| 1860 | error return. |
| 1861 | |
| 1862 | * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Use CUDIE. |
| 1863 | |
| 1864 | * dwarf_siblingof (dwarf_siblingof): Detect a NULL return pointer. |
| 1865 | Set the address in the return structure to the address of the next |
| 1866 | non-sibling die, if there is no sibling and the return pointer is |
| 1867 | not the same as the die pointer. |
Ulrich Drepper | e219f1c | 2008-01-09 05:49:49 +0000 | [diff] [blame] | 1868 | * libdw.h: Expand the description of the dwarf_siblingof prototype. |
| 1869 | |
| 1870 | * dwarf_child.c: Fix typo in comment. |
| 1871 | |
| 1872 | * libdwP.h (DWARF_VERSION): Change to 3. |
| 1873 | |
Roland McGrath | e4c22ea | 2007-10-23 13:07:39 +0000 | [diff] [blame] | 1874 | * dwarf_formref.c (__libdw_formref.c): Handle attributes which do |
| 1875 | not have a initialised valp pointer. |
| 1876 | |
| 1877 | * dwarf_getattrs.c (dwarf_getattrs): Return 1 rather than 0 when |
| 1878 | the end of the attributes is reached. When the callback fails, |
| 1879 | return the address of the failing attribute, not the address of |
| 1880 | its successor. |
| 1881 | * libdw.h: Expand the description of the dwarf_getattrs prototype. |
| 1882 | |
| 1883 | * dwarf_child.c (__libdw_find_attr): Use the new definition. |
| 1884 | (dwarf_child): Likewise. |
| 1885 | * dwarf_tag.c (__libdw_findabbrev): Likewise. |
| 1886 | (dwarf_tag): Likewise. |
| 1887 | |
| 1888 | 2008-01-08 Roland McGrath <roland@redhat.com> |
| 1889 | |
| 1890 | * Makefile.am (euinclude): Variable removed. |
| 1891 | (pkginclude_HEADERS): Set this instead of euinclude_HEADERS. |
| 1892 | (libdw.so): Pass -Wl,--enable-new-dtags,-rpath,$(pkglibdir). |
Ulrich Drepper | b597dfa | 2007-10-16 05:21:27 +0000 | [diff] [blame] | 1893 | |
| 1894 | 2007-10-17 Roland McGrath <roland@redhat.com> |
| 1895 | |
| 1896 | * libdw.h (__deprecated_attribute__): New macro. |
| 1897 | (dwarf_formref): Mark it deprecated. |
| 1898 | * dwarf_formref.c (__libdw_formref): New function, broken out of ... |
| 1899 | (dwarf_formref): ... here. Call it. Remove INTDEF. |
Roland McGrath | 59ea7f3 | 2007-10-04 08:50:09 +0000 | [diff] [blame] | 1900 | * libdwP.h: Remove INTDECL. |
| 1901 | Declare __libdw_formref. |
| 1902 | * dwarf_siblingof.c (dwarf_siblingof): Call __libdw_formref instead. |
| 1903 | * dwarf_formref_die.c: Likewise. Handle DW_FORM_ref_addr here. |
| 1904 | |
| 1905 | * libdw_form.c (__libdw_form_val_len): Fix DW_FORM_ref_addr result, |
| 1906 | needs to check CU->version. |
| 1907 | |
Roland McGrath | 057ec6b | 2007-10-02 20:55:05 +0000 | [diff] [blame] | 1908 | * libdwP.h (struct Dwarf_CU): New member `version'. |
| 1909 | * libdw_findcu.c (__libdw_findcu): Initialize it. |
| 1910 | |
| 1911 | * dwarf_child.c: Return 1 for null entry as first child. |
| 1912 | |
Roland McGrath | d1a4817 | 2007-08-07 19:51:01 +0000 | [diff] [blame] | 1913 | 2007-10-05 Roland McGrath <roland@redhat.com> |
| 1914 | |
| 1915 | * dwarf_begin_elf.c (check_section): Punt on SHT_NOBITS sections. |
| 1916 | |
| 1917 | * libdw.h (__extern_inline): Rename to __libdw_extern_inline. |
| 1918 | [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Update uses. |
| 1919 | |
| 1920 | 2007-10-03 Roland McGrath <roland@redhat.com> |
| 1921 | |
| 1922 | * libdw.map (ELFUTILS_0.130: Add dwfl_build_id_find_elf |
| 1923 | and dwfl_build_id_find_debuginfo. |
Roland McGrath | 87d4780 | 2007-07-16 22:23:37 +0000 | [diff] [blame] | 1924 | |
| 1925 | * libdw.map (ELFUTILS_0.130): New version set, inherits from |
| 1926 | ELFUTILS_0.127. Add dwfl_module_build_id, dwfl_module_report_build_id. |
| 1927 | |
| 1928 | 2007-10-02 Roland McGrath <roland@redhat.com> |
Roland McGrath | 43da989 | 2007-04-16 23:13:37 +0000 | [diff] [blame] | 1929 | |
| 1930 | * libdw_visit_scopes.c (classify_die): Return walk for class_type and |
| 1931 | structure_type. |
| 1932 | |
Roland McGrath | bf2ee48 | 2007-04-05 09:27:36 +0000 | [diff] [blame] | 1933 | 2007-08-07 Roland McGrath <roland@redhat.com> |
| 1934 | |
Roland McGrath | 43da989 | 2007-04-16 23:13:37 +0000 | [diff] [blame] | 1935 | * dwarf_getscopes.c (pc_match): Swallow dwarf_haspc error return when |
| 1936 | error code is DWARF_E_NOERROR (0). |
| 1937 | |
| 1938 | * dwarf_getscopes.c (pc_record): Always bail early if DIE->prune. |
| 1939 | Fix typo in __libdw_visit_scopes argument. |
| 1940 | |
| 1941 | * dwarf_getscopes.c (pc_match): Check dwarf_haspc error return, |
| 1942 | swallow DWARF_E_NO_DEBUG_RANGES but not other errors. |
| 1943 | |
| 1944 | 2007-07-03 Roland McGrath <roland@redhat.com> |
Roland McGrath | bf2ee48 | 2007-04-05 09:27:36 +0000 | [diff] [blame] | 1945 | |
| 1946 | * libdw.h (__extern_inline): New macro. |
| 1947 | [__OPTIMIZE__] (dwarf_whatattr, dwarf_whatform): Use it. |
| 1948 | |
Ulrich Drepper | c07fbb3 | 2007-03-30 19:14:59 +0000 | [diff] [blame] | 1949 | 2007-04-16 Roland McGrath <roland@redhat.com> |
| 1950 | |
| 1951 | * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section. |
| 1952 | |
| 1953 | 2007-04-05 Roland McGrath <roland@redhat.com> |
| 1954 | |
| 1955 | * dwarf_getsrcdirs.c: New file. |
| 1956 | * Makefile.am (libdw_a_SOURCES): Add it. |
Ulrich Drepper | 6258e74 | 2007-03-13 06:22:40 +0000 | [diff] [blame] | 1957 | * libdw.h: Declare dwarf_getsrcdirs. |
| 1958 | * libdw.map (ELFUTILS_0.127): Add it. |
| 1959 | |
| 1960 | * libdwP.h (struct Dwarf_Files_s): New member ndirs. |
| 1961 | * dwarf_getsrclines.c (dwarf_getsrclines): Don't clobber NDIRLIST to |
| 1962 | zero before we use it to check for DWARF_E_INVALID_DIR_IDX. |
| 1963 | Save DIRARRAY in the Dwarf_Files. |
| 1964 | |
| 1965 | * dwarf_ranges.c (dwarf_ranges): Don't sign-extend 32-bit BEGIN |
Ulrich Drepper | 903c116 | 2007-02-15 19:40:37 +0000 | [diff] [blame] | 1966 | address to check for all-ones base address entry. Check directly. |
| 1967 | Reported by Sébastien Dugué <sebastien.dugue@bull.net>. |
| 1968 | |
| 1969 | 2007-03-25 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | aa915fd | 2007-02-05 07:25:33 +0000 | [diff] [blame] | 1970 | |
| 1971 | * dwarf_begin_elf.c (check_section): Return Dwarf * instead of void. |
| 1972 | Return NULL when freeing RESULT on error. |
| 1973 | (global_read, scngrp_read): Check return value from check_section, |
| 1974 | break out of loop after it has freed RESULT. |
| 1975 | (valid_p): Handle null argument. |
| 1976 | |
Roland McGrath | 8190db6 | 2006-12-17 23:56:51 +0000 | [diff] [blame] | 1977 | 2007-03-12 Roland McGrath <roland@redhat.com> |
| 1978 | |
| 1979 | * libdw.map (ELFUTILS_0.127): Add dwfl_report_begin_add. |
| 1980 | |
| 1981 | 2007-03-04 Roland McGrath <roland@redhat.com> |
Roland McGrath | c373d85 | 2006-10-10 00:25:21 +0000 | [diff] [blame] | 1982 | |
| 1983 | * libdw.map (ELFUTILS_0.127): New version set, inherits from |
| 1984 | ELFUTILS_0.126. Add dwfl_module_addrsym. |
| 1985 | |
| 1986 | 2007-02-10 Roland McGrath <roland@redhat.com> |
| 1987 | |
| 1988 | * dwarf.h (DW_OP_fbreg): Comment fix. |
| 1989 | |
| 1990 | 2007-02-03 Roland McGrath <roland@redhat.com> |
| 1991 | |
| 1992 | * dwarf_getelf.c (dwarf_getelf): Renamed from dwarf_get_elf. |
| 1993 | * libdw.map (ELFUTILS_0.126): New version set, inherits from |
Ulrich Drepper | 077c65f | 2006-07-12 19:54:51 +0000 | [diff] [blame] | 1994 | ELFUTILS_0.122. Move dwarf_getelf there; it was never truly |
| 1995 | exported in the past. |
| 1996 | |
| 1997 | 2006-12-17 Roland McGrath <roland@redhat.com> |
| 1998 | |
| 1999 | * dwarf_getlocation.c (dwarf_getlocation_addr): Use zero as base |
| 2000 | address when the CU is missing attributes due to buggy GCC. |
| 2001 | |
Ulrich Drepper | e1812e1 | 2006-07-12 07:46:03 +0000 | [diff] [blame] | 2002 | 2006-08-29 Roland McGrath <roland@redhat.com> |
| 2003 | |
| 2004 | * Makefile.am (CLEANFILES): Add libdw.so.$(VERSION). |
| 2005 | |
| 2006 | * libdw.h (dwarf_diecu): Add __nonnull_attribute__. |
| 2007 | (dwarf_child): Don't list arg 1 in __nonnull_attribute__. |
| 2008 | |
Ulrich Drepper | 3be7447 | 2006-05-27 18:15:40 +0000 | [diff] [blame] | 2009 | * libdw_alloc.c (__libdw_allocate): Take new ALIGN argument, make sure |
| 2010 | result is aligned. Adjust NEWP->remaining here for this allocation. |
| 2011 | * libdwP.h: Update decl. |
| 2012 | (libdw_alloc): Update caller. |
Ulrich Drepper | e7a7317 | 2006-05-22 18:16:45 +0000 | [diff] [blame] | 2013 | |
| 2014 | 2006-07-12 Ulrich Drepper <drepper@redhat.com> |
| 2015 | |
| 2016 | * dwarf_child.c: Adjust for internal_function_def removal. |
| 2017 | * dwarf_getabbrev.c: Likewise. |
Ulrich Drepper | 4f3d2a2 | 2006-05-22 01:30:56 +0000 | [diff] [blame] | 2018 | * dwarf_tag.c: Likewise. |
| 2019 | * libdw_form.c: Likewise. |
| 2020 | * memory-access.c: Likewise. |
| 2021 | |
| 2022 | 2006-06-28 Roland McGrath <roland@redhat.com> |
Roland McGrath | 2dade66 | 2006-02-28 22:13:20 +0000 | [diff] [blame] | 2023 | |
| 2024 | * libdw.map: Export dwfl_linecu, dwfl_line_comp_dir. |
| 2025 | |
| 2026 | * libdw.map: Bump to 0.122; export dwfl_module_getsymtab and |
| 2027 | dwfl_module_getsym. |
| 2028 | |
Roland McGrath | 0833312 | 2006-02-27 04:54:26 +0000 | [diff] [blame] | 2029 | 2006-05-27 Ulrich Drepper <drepper@redhat.com> |
| 2030 | |
| 2031 | * libdw.h: Add extern "C". |
| 2032 | |
Roland McGrath | 50ffcbf | 2005-12-23 01:51:43 +0000 | [diff] [blame] | 2033 | 2006-05-22 Ulrich Drepper <drepper@redhat.com> |
| 2034 | |
| 2035 | * dwarf_getaranges.c (dwarf_getaranges): Handle files without |
| 2036 | aranges information. |
Roland McGrath | dec3a24 | 2005-12-12 08:35:55 +0000 | [diff] [blame] | 2037 | |
| 2038 | 2006-05-21 Ulrich Drepper <drepper@redhat.com> |
| 2039 | |
| 2040 | * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs, |
| 2041 | dwarf_haschildren. |
Roland McGrath | f64a442 | 2005-12-09 23:40:30 +0000 | [diff] [blame] | 2042 | |
| 2043 | 2006-02-28 Roland McGrath <roland@redhat.com> |
| 2044 | |
| 2045 | * dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*, |
| 2046 | DW_OP_* values, to match DWARF 3.0. Add new DW_DS_*, DW_END_* |
| 2047 | values from DWARF 3.0. |
Roland McGrath | 994b489 | 2005-12-05 22:46:21 +0000 | [diff] [blame] | 2048 | |
| 2049 | 2006-02-22 Roland McGrath <roland@redhat.com> |
| 2050 | |
| 2051 | * libdw.map: Bump to 0.120; export dwfl_version. |
Roland McGrath | e47ab76 | 2005-11-17 03:16:00 +0000 | [diff] [blame] | 2052 | |
| 2053 | 2005-12-22 Roland McGrath <roland@redhat.com> |
| 2054 | |
| 2055 | * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report. |
| 2056 | |
| 2057 | 2005-12-12 Roland McGrath <roland@redhat.com> |
| 2058 | |
| 2059 | * dwarf_ranges.c: Copy CU base address-finding code from |
Roland McGrath | 07d4f2f | 2005-10-28 06:56:24 +0000 | [diff] [blame] | 2060 | dwarf_getlocation. |
| 2061 | |
| 2062 | 2005-12-09 Roland McGrath <roland@redhat.com> |
| 2063 | |
| 2064 | * dwarf_getlocation.c (dwarf_getlocation_addr): Add some unlikelys. |
| 2065 | Delay CU base lookup until it's needed. |
| 2066 | If CU base lookup fails with no error, flag invalid DWARF. |
| 2067 | |
| 2068 | 2005-11-25 Roland McGrath <roland@redhat.com> |
| 2069 | |
| 2070 | * libdw.map: Bump to 0.118; export dwfl_module_register_names. |
| 2071 | |
Roland McGrath | 6724c90 | 2005-10-28 07:07:19 +0000 | [diff] [blame] | 2072 | 2005-11-15 Roland McGrath <roland@redhat.com> |
| 2073 | |
| 2074 | * Makefile.am [BUILD_STATIC] (AM_CFLAGS): Add -fpic. |
| 2075 | |
| 2076 | 2005-11-13 Roland McGrath <roland@redhat.com> |
| 2077 | |
| 2078 | * libdw.map: Bump to 0.117; export dwfl_module_return_value_location. |
| 2079 | |
| 2080 | 2005-10-27 Roland McGrath <roland@redhat.com> |
| 2081 | |
| 2082 | * dwarf_entry_breakpoints.c (search_range): Fix binary search code; |
| 2083 | don't match end_sequence markers. |
| 2084 | |
| 2085 | * dwarf_getsrclines.c (compare_lines): Sort end_sequence markers |
| 2086 | before normal records at the same address. |
| 2087 | * dwarf_getsrc_die.c (dwarf_getsrc_die): Don't match an end_sequence |
| 2088 | marker. |
| 2089 | |
| 2090 | 2005-10-26 Roland McGrath <roland@redhat.com> |
| 2091 | |
| 2092 | * dwarf_getfuncs.c (dwarf_getfuncs): Use Dwarf_Die, not Dwarf_Func. |
| 2093 | * dwarf_func_file.c: Renamed to ... |
| 2094 | * dwarf_decl_file.c: ... here. |
| 2095 | * dwarf_func_col.c: Renamed to ... |
| 2096 | * dwarf_decl_column.c: ... here. |
| 2097 | * dwarf_func_line.c: Renamed to ... |
| 2098 | * dwarf_decl_line.c: ... here. |
| 2099 | (dwarf_func_line): Renamed to ... |
| 2100 | (dwarf_decl_line): ... this. Take a Dwarf_Die * argument. |
| 2101 | (__libdw_func_intval): Renamed __libdw_attr_intval. |
| 2102 | * dwarf_func_name.c: File removed. |
| 2103 | * dwarf_func_lowpc.c: File removed. |
| 2104 | * dwarf_func_highpc.c: File removed. |
| 2105 | * dwarf_func_entrypc.c: File removed. |
| 2106 | * dwarf_func_die.c: File removed. |
| 2107 | * Makefile.am (libdw_a_SOURCES): Updated. |
| 2108 | * libdw.h: Update decls. |
| 2109 | (Dwarf_Func): Type removed. |
| 2110 | * libdwP.h: Update decls. |
Roland McGrath | 07d4f2f | 2005-10-28 06:56:24 +0000 | [diff] [blame] | 2111 | (struct Dwarf_Func_s): Type removed. |
| 2112 | * libdw.map: Updated. |
| 2113 | |
| 2114 | * libdwP.h (CUDIE): New macro. |
| 2115 | * dwarf_getlocation.c (dwarf_getlocation_addr): Use it. |
| 2116 | * dwarf_getscopes_die.c (dwarf_getscopes_die): Likewise. |
| 2117 | * dwarf_ranges.c (dwarf_ranges): Likewise. |
| 2118 | |
| 2119 | * dwarf_getloclist.c: Renamed to ... |
| 2120 | * dwarf_getlocation.c: ... here. |
| 2121 | (getloclist): Renamed to getlocation. |
| 2122 | (dwarf_getloclist): Renamed to dwarf_getlocation. |
| 2123 | (dwarf_addrloclists): Renamed to dwarf_getlocation_addr. |
| 2124 | * Makefile.am (libdw_a_SOURCES): Updated. |
| 2125 | * libdw.h (dwarf_getloclist): Renamed to dwarf_getlocation. |
| 2126 | (dwarf_addrloclists): Renamed dwarf_getlocation_addr. |
| 2127 | (Dwarf_Loc): Renamed Dwarf_Op. |
| 2128 | * libdwP.h (struct loc_s): Update use. |
| 2129 | * libdw.map: Update map. |
| 2130 | |
| 2131 | * dwarf_entry_breakpoints.c: Use the second line record within the |
| 2132 | function, regardless of its source location data. |
| 2133 | |
| 2134 | 2005-10-25 Roland McGrath <roland@redhat.com> |
| 2135 | |
| 2136 | * dwarf_entry_breakpoints.c: Fall back to entrypc for contiguous too. |
| 2137 | |
| 2138 | * libdw.map: Add dwarf_entrypc, dwarf_entry_breakpoints. |
| 2139 | |
| 2140 | 2005-10-14 Roland McGrath <roland@redhat.com> |
| 2141 | |
| 2142 | * dwarf_diecu.c (dwarf_diecu): New file. |
| 2143 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2144 | * libdw.h: Declare dwarf_diecu. |
| 2145 | * libdw.map: Export it. |
| 2146 | |
| 2147 | * libdw.map: Bump to 0.116; export dwarf_ranges. |
| 2148 | |
| 2149 | 2005-09-20 Roland McGrath <roland@redhat.com> |
| 2150 | |
| 2151 | * dwarf_haspc.c: Use dwarf_ranges. |
| 2152 | * dwarf_entry_breakpoints.c: Likewise. |
| 2153 | |
| 2154 | * dwarf_ranges.c: New file. |
| 2155 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2156 | * libdw.h: Declare dwarf_ranges. |
| 2157 | * libdwP.h: Add INTDECL. |
| 2158 | |
Ulrich Drepper | fbe998a | 2005-08-29 16:27:10 +0000 | [diff] [blame] | 2159 | 2005-09-14 Roland McGrath <roland@redhat.com> |
| 2160 | |
| 2161 | * dwarf_entry_breakpoints.c (dwarf_entry_breakpoints): Fix braino in |
| 2162 | prologue_end marker scanning loop. |
| 2163 | |
| 2164 | 2005-09-11 Roland McGrath <roland@redhat.com> |
Roland McGrath | 71e15a0 | 2005-08-27 10:33:26 +0000 | [diff] [blame] | 2165 | |
| 2166 | * dwarf.h: Comment typo fix. |
| 2167 | |
| 2168 | 2005-09-07 Roland McGrath <roland@redhat.com> |
| 2169 | |
| 2170 | * dwarf_entry_breakpoints.c: New file. |
| 2171 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2172 | * libdw.h: Declare dwarf_entry_breakpoints. |
| 2173 | |
| 2174 | * dwarf_entrypc.c: New file. |
| 2175 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2176 | * libdw.h: Declare dwarf_entrypc. |
| 2177 | * libdwP.h: Add INTDECL. |
| 2178 | |
| 2179 | 2005-08-28 Ulrich Drepper <drepper@redhat.com> |
| 2180 | |
| 2181 | * Makefile.am: Use $(LINK) not $(CC) when creating DSO. |
| 2182 | (%.os): Use COMPILE.os. |
| 2183 | (COMPILE.os): Filter out gconv options. |
| 2184 | |
| 2185 | 2005-08-27 Roland McGrath <roland@redhat.com> |
| 2186 | |
Roland McGrath | d17fac7 | 2005-08-23 08:20:21 +0000 | [diff] [blame] | 2187 | * dwarf_getscopes.c (dwarf_getscopes): Rewritten using |
| 2188 | __libdw_visit_scopes. |
| 2189 | |
| 2190 | * dwarf_getscopes_die.c: New file. |
| 2191 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2192 | * libdw.h: Declare dwarf_getscopes_die. |
| 2193 | * libdw.map: Bump to 0.115 and add it. |
| 2194 | |
| 2195 | * libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct |
| 2196 | containing a DIE and its parent pointer, instead of just Dwarf_Die. |
| 2197 | Take two functions for both preorder and postorder visitors. |
| 2198 | * libdwP.h: Update decl. |
| 2199 | (struct Dwarf_Die_Chain): New type. |
| 2200 | * dwarf_func_inline.c: Update uses. |
| 2201 | |
| 2202 | * dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate. |
| 2203 | Add INTDEF. |
Roland McGrath | f5fda7d | 2005-08-18 22:01:57 +0000 | [diff] [blame] | 2204 | * libdwP.h: Add INTDECL. |
| 2205 | * dwarf_func_name.c (dwarf_func_name): Use dwarf_diename. |
| 2206 | |
| 2207 | 2005-08-23 Roland McGrath <roland@redhat.com> |
| 2208 | |
Roland McGrath | 1ecb606 | 2005-08-15 09:53:04 +0000 | [diff] [blame] | 2209 | * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat |
| 2210 | DW_AT_specification the same as DW_AT_abstract_origin. |
| 2211 | |
| 2212 | 2005-08-20 Roland McGrath <roland@redhat.com> |
| 2213 | |
| 2214 | * libdw.map: Add dwfl_cumodule, remove dwfl_linecu. |
| 2215 | Add dwfl_linux_kernel_report_offline, dwfl_offline_section_address, |
| 2216 | and dwfl_report_offline. |
| 2217 | |
| 2218 | 2005-08-19 Roland McGrath <roland@redhat.com> |
| 2219 | |
| 2220 | * libdw.map: Bump version to ELFUTILS_0.114 for libdwfl changes. |
Roland McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 2221 | Add dwfl_module_relocate_address, dwfl_module_relocations, |
Ulrich Drepper | 6d5c3bd | 2005-08-11 04:37:52 +0000 | [diff] [blame] | 2222 | dwfl_module_relocation_info. |
Roland McGrath | 1c83bf1 | 2005-08-11 07:03:55 +0000 | [diff] [blame] | 2223 | |
| 2224 | 2005-08-18 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | 6d5c3bd | 2005-08-11 04:37:52 +0000 | [diff] [blame] | 2225 | |
Roland McGrath | 4959bf8 | 2005-08-09 10:31:08 +0000 | [diff] [blame] | 2226 | * dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as |
| 2227 | outermost scope in the results. |
Roland McGrath | b6312e1 | 2005-08-09 10:36:01 +0000 | [diff] [blame] | 2228 | |
| 2229 | 2005-08-15 Roland McGrath <roland@redhat.com> |
Roland McGrath | 4959bf8 | 2005-08-09 10:31:08 +0000 | [diff] [blame] | 2230 | |
| 2231 | * dwarf_func_inline.c: New file. |
| 2232 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2233 | * libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances. |
Roland McGrath | a5a8968 | 2005-08-02 01:24:01 +0000 | [diff] [blame] | 2234 | * libdw.map: Add them. |
| 2235 | |
| 2236 | * dwarf_func_die.c: New file. |
| 2237 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2238 | * libdw.h: Declare dwarf_func_die. |
Ulrich Drepper | 18618fd | 2005-07-28 21:29:22 +0000 | [diff] [blame] | 2239 | * libdw.map: Add it. Bump version to ELFUTILS_0.114. |
| 2240 | |
| 2241 | 2005-08-10 Ulrich Drepper <drepper@redhat.com> |
| 2242 | |
| 2243 | * dwarf_getsrclines.c (dwarf_getsrclines): Correct fallout of renaming |
Roland McGrath | 366784a | 2005-07-28 06:20:53 +0000 | [diff] [blame] | 2244 | of DW_LNS_set_epilog_begin. |
| 2245 | |
Roland McGrath | 1838590 | 2005-07-28 07:12:38 +0000 | [diff] [blame] | 2246 | 2005-08-09 Roland McGrath <roland@redhat.com> |
| 2247 | |
| 2248 | * dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin. |
| 2249 | |
| 2250 | * dwarf_end.c: Add INTDEF. |
| 2251 | * dwarf_error.c (dwarf_errmsg): Likewise. |
Roland McGrath | 366784a | 2005-07-28 06:20:53 +0000 | [diff] [blame] | 2252 | * libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs. |
| 2253 | |
| 2254 | 2005-08-01 Roland McGrath <roland@redhat.com> |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 2255 | |
| 2256 | * dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset. |
| 2257 | * dwarf_getabbrev.c (__libdw_getabbrev): Likewise. |
| 2258 | |
| 2259 | 2005-07-28 Ulrich Drepper <drepper@redhat.com> |
| 2260 | |
| 2261 | * Makefile.am (libdw.so): No need to link with libeu.a anymore. |
| 2262 | (libdw_a_LIBADD): Add all files from libdwfl.a. |
| 2263 | |
| 2264 | 2005-07-27 Roland McGrath <roland@redhat.com> |
| 2265 | |
| 2266 | * Makefile.am (libdw.so): Link ../libdwfl/libdwfl_pic.a in, |
| 2267 | along with ../libebl/libebl.a and ../lib/libeu.a; |
| 2268 | depend on ../libelf/libelf.so. |
| 2269 | (libdw_so_LDADD): New variable. |
| 2270 | * libdw.map: Add dwfl_* symbols formerly in ../libdwfl/libdwfl.map. |
| 2271 | |
| 2272 | * libdw.map: Define an empty base version and move all symbols to |
| 2273 | version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet. |
| 2274 | |
| 2275 | 2005-07-23 Ulrich Drepper <drepper@redhat.com> |
| 2276 | |
| 2277 | * dwarf_error.c: Add internal alias for dwarf_errno. |
| 2278 | * libdwP.h: Declare __dwarf_errno_internal. |
| 2279 | * dwarf_getloclist.c: Use INTDEF for dwarf_errno. |
| 2280 | |
| 2281 | * dwarf_error.c [USE_TLS]: Actually use __thread in definition of |
| 2282 | global_error. |
| 2283 | |
| 2284 | 2005-06-01 Roland McGrath <roland@redhat.com> |
| 2285 | |
| 2286 | * dwarf_getaranges.c (dwarf_getaranges): Sort result array. |
| 2287 | * dwarf_getarange_addr.c (dwarf_getarange_addr): Use binary search. |
| 2288 | |
| 2289 | 2005-06-08 Roland McGrath <roland@redhat.com> |
| 2290 | |
| 2291 | * memory-access.h (get_uleb128_step, get_uleb128): Remove casts. |
| 2292 | (get_sleb128_step, get_sleb128): Likewise. |
| 2293 | * dwarf_getattrs.c (dwarf_getattrs): Add consts. |
| 2294 | * dwarf_getloclist.c (getloclist): Likewise. |
| 2295 | * dwarf_formblock.c (dwarf_formblock): Likewise. |
| 2296 | * dwarf_getsrclines.c (dwarf_getsrclines): Likewise. |
| 2297 | * dwarf_getabbrevattr.c (dwarf_getabbrevattr): Likewise. |
| 2298 | * dwarf_formref.c (dwarf_formref): Likewise. |
| 2299 | * dwarf_formsdata.c (dwarf_formsdata): Likewise. |
| 2300 | * dwarf_formudata.c (dwarf_formudata): Likewise. |
| 2301 | * dwarf_haschildren.c (dwarf_haschildren): Likewise. |
| 2302 | * dwarf_child.c (__libdw_find_attr, __libdw_find_attr): Likewise. |
| 2303 | * dwarf_tag.c (dwarf_tag): Likewise. |
| 2304 | * dwarf_getabbrev.c (__libdw_getabbrev): Likewise. |
| 2305 | * memory-access.c (__libdw_get_uleb128, __libdw_get_sleb128): Likewise. |
| 2306 | * libdw_form.c (__libdw_form_val_len): Likewise. |
| 2307 | * libdwP.h: Update decl. |
| 2308 | |
| 2309 | 2005-06-04 Roland McGrath <roland@redhat.com> |
| 2310 | |
| 2311 | * memory-access.h (get_uleb128_rest_return): New macro. |
| 2312 | [! IS_LIBDW] (__libdw_get_uleb128): New static, defined using it. |
| 2313 | (get_sleb128_rest_return): New macro. |
| 2314 | [! IS_LIBDW] (__libdw_get_sleb128): New static, defined using it. |
| 2315 | * memory-access.c: New file. |
| 2316 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2317 | (DEFS): Add -DIS_LIBDW. |
| 2318 | |
| 2319 | 2005-05-31 Roland McGrath <roland@redhat.com> |
| 2320 | |
| 2321 | * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to |
| 2322 | formref offset. |
| 2323 | |
| 2324 | 2005-05-30 Roland McGrath <roland@redhat.com> |
| 2325 | |
| 2326 | * dwarf_getloclist.c (dwarf_addrloclists): Use DW_AT_entry_pc for base |
| 2327 | address if DW_AT_low_pc is missing. Not to spec, but GCC generates it. |
| 2328 | |
| 2329 | * dwarf_getloclist.c (dwarf_addrloclists): Don't sign-extend 4-byte |
| 2330 | BEGIN value. Instead, match base address entries separately for |
| 2331 | 32/64 size cases. |
| 2332 | |
| 2333 | 2005-05-28 Roland McGrath <roland@redhat.com> |
| 2334 | |
| 2335 | * dwarf_getloclist.c (dwarf_addrloclists): Fix decoding to advance |
| 2336 | past location expression contents. |
| 2337 | |
| 2338 | 2005-05-23 Roland McGrath <roland@redhat.com> |
| 2339 | |
| 2340 | * dwarf_getsrclines.c: Comment typo fix. |
| 2341 | |
| 2342 | * dwarf_haspc.c (dwarf_haspc): Fix CU DIE address calculation. |
| 2343 | * dwarf_getloclist.c (dwarf_addrloclists): Likewise. |
| 2344 | |
| 2345 | 2005-05-22 Ulrich Drepper <drepper@redhat.com> |
| 2346 | |
| 2347 | * libdwP.h: Only use INTDECL for alias prototypes. |
| 2348 | |
| 2349 | 2005-05-19 Roland McGrath <roland@redhat.com> |
| 2350 | |
| 2351 | * dwarf_getloclist.c (attr_ok): Permit DW_AT_static_link too. |
| 2352 | |
| 2353 | * dwarf_getscopevar.c: New file. |
| 2354 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2355 | * libdw.h: Declare dwarf_getscopevar. |
| 2356 | |
| 2357 | * dwarf_getsrcfiles.c: Add INTDEF. |
| 2358 | * dwarf_haschildren.c: Likewise. |
| 2359 | * libdwP.h (dwarf_getsrcfiles, dwarf_haschildren): Add INTDECL. |
| 2360 | |
| 2361 | * dwarf_getscopes.c: New file. |
| 2362 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2363 | * libdw.h: Declare dwarf_getscopes. |
| 2364 | * libdw.map: Add it. |
| 2365 | |
| 2366 | 2005-05-18 Roland McGrath <roland@redhat.com> |
| 2367 | |
| 2368 | * libdwP.h (IDX_debug_ranges): New enum constant. |
| 2369 | * dwarf_begin_elf.c (dwarf_scnnames): Add it for ".debug_ranges". |
| 2370 | * libdwP.h (DWARF_E_NO_DEBUG_RANGES): New enum constant. |
| 2371 | * dwarf_error.c (errmsgs): Add it. |
| 2372 | * dwarf_haspc.c: New file. |
| 2373 | * libdw.h: Declare dwarf_haspc. |
| 2374 | * libdw.map: Add it. |
| 2375 | * libdwP.h: Add INTDECL. |
| 2376 | |
| 2377 | * dwarf_attr_integrate.c: New file. |
| 2378 | * dwarf_hasattr_integrate.c: New file. |
| 2379 | * Makefile.am (libdw_a_SOURCES): Add them. |
| 2380 | * libdw.h: Declare dwarf_attr_integrate, dwarf_hasattr_integrate. |
| 2381 | * libdw.map: Add them. |
| 2382 | |
| 2383 | * dwarf_hasattr.c: Add INTDEF. |
| 2384 | * libdwP.h: Add INTDECL for it. |
| 2385 | |
| 2386 | * dwarf_formref_die.c: New file. |
| 2387 | * Makefile.am (libdw_a_SOURCES): Add it. |
| 2388 | * libdw.h (dwarf_formref_die): Declare it. |
| 2389 | * libdwP.h (dwarf_formref_die): Add INTDECL. |
| 2390 | * libdw.map: Add it. |
| 2391 | |
| 2392 | * dwarf_getloclist.c (attr_ok, getloclist): New functions, broken out |
| 2393 | of ... |
| 2394 | (dwarf_getloclist): ... here. Call them. |
| 2395 | (dwarf_addrloclists): New function. |
| 2396 | * libdw.h: Declare it. |
| 2397 | * libdw.map: Add it. |
| 2398 | |
| 2399 | * dwarf_getmacros.c (dwarf_getmacros): Don't bail at |
| 2400 | DW_MACINFO_end_file. Recognize type 0 as terminator. |
| 2401 | |
| 2402 | 2005-05-05 Roland McGrath <roland@redhat.com> |
| 2403 | |
| 2404 | * dwarf_getsrc_die.c (dwarf_getsrc_die): Use binary search. |
| 2405 | |
| 2406 | * dwarf_getsrclines.c (dwarf_getsrclines): Sort result array, since |
| 2407 | the line program does not produce all entries in ascending order. |
| 2408 | |
| 2409 | 2005-04-25 Ulrich Drepper <drepper@redhat.com> |
| 2410 | |
| 2411 | * dwarf_getsrc_file.c (dwarf_getsrc_file): Handle multiple |
| 2412 | occurences (e.g., inlines) better. |
| 2413 | |
| 2414 | 2005-04-24 Ulrich Drepper <drepper@redhat.com> |
| 2415 | |
| 2416 | * libdw.h (DWARF_END_ABBREV): Define. |
| 2417 | * dwarf_getabbrev.c (__libdw_getabbrev): Return DWARF_END_ABBREV if |
| 2418 | end is reached. |
| 2419 | * dwarf_offabbrev.c (dwarf_offabbrev): Return -1 on error, 1 if end |
| 2420 | of records reached. |
| 2421 | * dwarf_tag.c (__libdw_findabbrev): Also recognize DWARF_END_ABBREV |
| 2422 | as error of __libdw_getabbrev. |
| 2423 | |
| 2424 | 2005-04-04 Ulrich Drepper <drepper@redhat.com> |
| 2425 | |
| 2426 | * dwarf_getsrc_file.c (dwarf_getsrc_file): Minor optimization. |
| 2427 | |
| 2428 | * dwarf_getsrc_file.c (dwarf_getsrc_file): Always pass number of |
| 2429 | results back to caller. |
| 2430 | |
| 2431 | 2005-04-04 Roland McGrath <roland@redhat.com> |
| 2432 | |
| 2433 | * dwarf_getsrc_file.c (dwarf_getsrc_file): Use size_t for CUHL. |
| 2434 | |
| 2435 | * dwarf_func_line.c (__libdw_func_intval): Use internal_function in |
| 2436 | defn. |
| 2437 | |
| 2438 | 2005-04-04 Ulrich Drepper <drepper@redhat.com> |
| 2439 | |
| 2440 | * dwarf_getsrc_file.c (dwarf_getsrc_file): Use INTUSE. |
| 2441 | |
| 2442 | * dwarf_getsrc_file.c: New file. |
| 2443 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrc_file.c. |
| 2444 | * libdw.h: Declare dwarf_getsrc_file. |
| 2445 | * libdw.map: Add dwarf_getsrc_file. |
| 2446 | |
| 2447 | 2005-04-02 Ulrich Drepper <drepper@redhat.com> |
| 2448 | |
| 2449 | * dwarf_func_entrypc.c: New file. |
| 2450 | * dwarf_func_col.c: New file. |
| 2451 | * dwarf_func_line.c: New file. |
| 2452 | * dwarf_func_file.c: New file. |
| 2453 | * libdw.h: Add prototypes for new functions. |
| 2454 | * libdw.map: Add dwarf_func_entrypc, dwarf_func_col, dwarf_func_line, |
| 2455 | dwarf_func_file. |
| 2456 | * Makefile.am (libdw_a_SOURCES): Add dwarf_func_entrypc.c, |
| 2457 | dwarf_func_col.c, dwarf_func_line.c, dwarf_func_file.c. |
| 2458 | * libdwP.h (struct Dwarf_Func_s): Add cudie element. |
| 2459 | Declare __libdw_func_intval and __dwarf_formsdata_internal. |
| 2460 | * dwarf_getfuncs.c: Also fill in cudie in Dwarf_Func object. |
| 2461 | * dwarf_formsdata.c: Use INTUSE and INTDEF to avoid PLTs. |
| 2462 | |
| 2463 | * dwarf.h: Add some DWARF3 definitions. |
| 2464 | |
| 2465 | 2005-04-01 Ulrich Drepper <drepper@redhat.com> |
| 2466 | |
| 2467 | * dwarf_getfuncs.c: New file. |
| 2468 | * dwarf_func_highpc.c: New file. |
| 2469 | * dwarf_func_lowpc.c: New file. |
| 2470 | * dwarf_func_name.c: New file. |
| 2471 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getfuncs.c, |
| 2472 | dwarf_func_highpc.c, dwarf_func_lowpc.c, and dwarf_func_name.c. |
| 2473 | * libdw.map: Add dwarf_getfuncs, dwarf_func_highpc, dwarf_func_lowpc, |
| 2474 | and dwarf_func_name. |
| 2475 | * libdw.h: Add prototypes for new functions. |
| 2476 | * dwarf_child.c: Use INTUSE and INTDEF to avoid PLTs. |
| 2477 | * dwarf_siblingof.c: Likewise. |
| 2478 | * dwarf_dieoffset.c: Likewise. |
| 2479 | * dwarf_highpc.c: Likewise. |
| 2480 | * dwarf_lowpc.c: Likewise. |
| 2481 | * libdwP.h: Add prototypes for internal functions. |
| 2482 | Define Dwarf_Func_s structure. |
| 2483 | |
| 2484 | 2005-03-29 Ulrich Drepper <drepper@redhat.com> |
| 2485 | |
| 2486 | * libdw.h: Add padding in Dwarf_die. |
| 2487 | |
| 2488 | * dwarf_arrayorder.c: Use INTUSE and INTDEF to avoid PLTs. |
| 2489 | * dwarf_attr.c: Likewise. |
| 2490 | * dwarf_begin.c: Likewise. |
| 2491 | * dwarf_begin_elf.c: Likewise. |
| 2492 | * dwarf_bitoffset.c: Likewise. |
| 2493 | * dwarf_bitsize.c: Likewise. |
| 2494 | * dwarf_bytesize.c: Likewise. |
| 2495 | * dwarf_diename.c: Likewise. |
| 2496 | * dwarf_formaddr.c: Likewise. |
| 2497 | * dwarf_formblock.c: Likewise. |
| 2498 | * dwarf_formref.c: Likewise. |
| 2499 | * dwarf_formstring.c: Likewise. |
| 2500 | * dwarf_formudata.c: Likewise. |
| 2501 | * dwarf_getarange_addr.c: Likewise. |
| 2502 | * dwarf_getarangeinfo.c: Likewise. |
| 2503 | * dwarf_getaranges.c: Likewise. |
| 2504 | * dwarf_getloclist.c: Likewise. |
| 2505 | * dwarf_getmacros.c: Likewise. |
| 2506 | * dwarf_getsrc_die.c: Likewise. |
| 2507 | * dwarf_getsrcfiles.c: Likewise. |
| 2508 | * dwarf_getsrclines.c: Likewise. |
| 2509 | * dwarf_highpc.c: Likewise. |
| 2510 | * dwarf_lowpc.c: Likewise. |
| 2511 | * dwarf_nextcu.c: Likewise. |
| 2512 | * dwarf_offdie.c: Likewise. |
| 2513 | * dwarf_siblingof.c: Likewise. |
| 2514 | * dwarf_srclang.c: Likewise. |
| 2515 | * dwarf_tag.c: Likewise. |
| 2516 | * libdw_findcu.c: Likewise. |
| 2517 | * libdwP.h: Add prototypes for internal functions. |
| 2518 | |
| 2519 | * dwarf_addrdie.c: New file. |
| 2520 | * dwarf_macro_opcode.c: New file. |
| 2521 | * dwarf_macro_param1.c: New file. |
| 2522 | * dwarf_macro_param2.c: New file. |
| 2523 | * libdw.h: Add declarations. Move Dwarf_Macro definition to libdwP.h. |
| 2524 | * libdwP.h: Remove Dwarf_Macro definition. |
| 2525 | * Makefile.am (libdw_a_SOURCES): Add dwarf_addrdie.c, |
| 2526 | dwarf_macro_opcode.c, dwarf_macro_param1.c, and dwarf_macro_param2.c. |
| 2527 | * libdw.map: Add entries for new functions. |
| 2528 | |
| 2529 | 2005-03-21 Ulrich Drepper <drepper@redhat.com> |
| 2530 | |
| 2531 | * libdw.h: Handle broken gcc < 4. |
| 2532 | |
| 2533 | 2005-02-15 Ulrich Drepper <drepper@redhat.com> |
| 2534 | |
| 2535 | * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2. |
| 2536 | |
| 2537 | * dwarf_begin_elf.c: Fix warnings. |
| 2538 | * dwarf_dieoffset.c: Likewise. |
| 2539 | * dwarf_end.c: Likewise. |
| 2540 | * dwarf_error.c: Likewise. |
| 2541 | * dwarf_getpubnames.c: Likewise. |
| 2542 | |
| 2543 | * libdwP.h: Add new error values. |
| 2544 | * dwarf_error.c: Support new error values. |
| 2545 | * dwarf_getpubnames.c: Check parameter value. |
| 2546 | |
| 2547 | 2005-02-05 Ulrich Drepper <drepper@redhat.com> |
| 2548 | |
| 2549 | * Makefile.am: Check for text relocations in constructed DSO. |
| 2550 | |
| 2551 | * Makefile.am [MUDFLAP] (AM_CFLAGS): Add -fmudflap. |
| 2552 | |
| 2553 | 2005-02-04 Ulrich Drepper <drepper@redhat.com> |
| 2554 | |
| 2555 | * dwarf_siblingof.c (dwarf_siblingof): Add some buffer boundary |
| 2556 | checks to not read over buffer boundaries for ill-formed DWARF data. |
| 2557 | |
| 2558 | 2004-09-25 Ulrich Drepper <drepper@redhat.com> |
| 2559 | |
| 2560 | * dwarf_child.c: Make compile with gcc 4.0. |
| 2561 | * dwarf_error.c: Likewise. |
| 2562 | * dwarf_formblock.c: Likewise. |
| 2563 | * dwarf_getabbrev.c: Likewise. |
| 2564 | * dwarf_getattrs.c: Likewise. |
| 2565 | * dwarf_getsrclines.c: Likewise. |
| 2566 | * dwarf_tag.c: Likewise. |
| 2567 | * libdw_form.c: Likewise. |
| 2568 | |
| 2569 | 2004-01-20 Ulrich Drepper <drepper@redhat.com> |
| 2570 | |
| 2571 | * Makefile.am: Support building with mudflap. |
| 2572 | |
| 2573 | * dwarf_getloclist.c: Fix warnings gcc 3.4 spits out. |
| 2574 | * dwarf_getsrclines.c: Likewise. |
| 2575 | * dwarf_memory-access.h: Likewise. |
| 2576 | |
| 2577 | 2004-01-19 Ulrich Drepper <drepper@redhat.com> |
| 2578 | |
| 2579 | * dwarf_getsrcfiles.c: Third parameter can be NULL. |
| 2580 | |
| 2581 | * libdw.h: Define Dwarf_macro. Declare dwarf_getmacros. |
| 2582 | Third parameter of dwarf_getsrcfiles can be NULL. |
| 2583 | |
| 2584 | * libdw.map: Add dwarf_getmacros. |
| 2585 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getmacros. |
| 2586 | * dwarf_getmacros.c: New file. |
| 2587 | |
| 2588 | 2004-01-18 Ulrich Drepper <drepper@redhat.com> |
| 2589 | |
| 2590 | * libdw.h: Second parameter of dwarf_getaranges can be NULL. |
| 2591 | |
| 2592 | * dwarf_nextcu.c: Return -1 if dwarf parameter is NULL. |
| 2593 | |
| 2594 | * dwarf_getsrclines.c: |
| 2595 | Use read_2ubyte_unaligned_inc instead of _inc-less variant. |
| 2596 | |
| 2597 | * dwarf_getaranges.c: Allow naranges parameter to be NULL. |
| 2598 | |
| 2599 | * libdwP.h (_): Use elfutils domain. |
| 2600 | |
| 2601 | * dwarf_getsrclines.c (dwarf_getsrclines): Add more branch prediction. |
| 2602 | |
| 2603 | * dwarf_getsrclines.c: Fix typo in comment. |
| 2604 | |
| 2605 | 2004-01-17 Ulrich Drepper <drepper@redhat.com> |
| 2606 | |
| 2607 | * Makefile.am: Support building with mudflap. |
| 2608 | |
| 2609 | 2004-01-16 Ulrich Drepper <drepper@redhat.com> |
| 2610 | |
| 2611 | * memory-access.h: Add lots of const in case a pointer passed is const. |
| 2612 | |
| 2613 | * dwarf_formflag.c: New file. |
| 2614 | * dwarf_getattrs.c: New file. |
| 2615 | * dwarf_error.c: Add new error value. |
| 2616 | * libdw.h: Add prototypes for new functions. Adjust prototype for |
| 2617 | dwarf_getpubnames. |
| 2618 | * libdw.map: Add new functions. |
| 2619 | * dwarf_getpubnames.c: Change type of return value and fourth parameter |
| 2620 | to ptrdiff_t. |
| 2621 | * libdwP.h: Add new error value. |
| 2622 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getattrs.c and |
| 2623 | dwarf_formflag.c. |
| 2624 | |
| 2625 | * dwarf_getpubnames.c (dwarf_getpubnames): Just fail if dbg is NULL. |
| 2626 | |
| 2627 | 2004-01-12 Ulrich Drepper <drepper@redhat.com> |
| 2628 | |
| 2629 | * dwarf_getarange_addr.c: New file |
| 2630 | * dwarf_getarangeinfo.c: New file. |
| 2631 | * dwarf_getaranges.c: New file. |
| 2632 | * dwarf_onerange.c: New file. |
| 2633 | * libdw.h: Declare new functions. Define Dwarf_Arange and |
| 2634 | Dwarf_Aranges. |
| 2635 | * libdw.map: Add new functions. |
| 2636 | * libdwP.h: Add new errors. Add aranges member to struct Dwarf. |
| 2637 | Define Dwarf_Aranges_s and Dwarf_Arange_s. |
| 2638 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getaranges.c, |
| 2639 | dwarf_onearange.c, dwarf_getarangeinfo.c, dwarf_getarange_addr.c. |
| 2640 | * dwarf_error.c: Add new message. |
| 2641 | |
| 2642 | 2004-01-11 Ulrich Drepper <drepper@redhat.com> |
| 2643 | |
| 2644 | * Makefile.am (libdw_a_SOURCES): Add dwarf_lineaddr.c, dwarf_linecol.c, |
| 2645 | dwarf_linebeginstatement.c, dwarf_lineendsequence.c, dwarf_lineblock.c, |
| 2646 | dwarf_lineprologueend.c, dwarf_lineepiloguebegin.c, dwarf_onesrcline.c. |
| 2647 | * dwarf_error.c: Add another message. |
| 2648 | * dwarf_getsrc_die.c: Adjust for Dwarf_Files and Dwarf_Lines |
| 2649 | introduction. |
| 2650 | * dwarf_filesrc.c: Likewise. |
| 2651 | * dwarf_getsrcfiles.c: Likewise. |
| 2652 | * dwarf_getsrclines.c: Likewise. |
| 2653 | * dwarf_lineaddr.c: New file. |
| 2654 | * dwarf_linebeginstatement.c: New file. |
| 2655 | * dwarf_lineblock.c: New file. |
| 2656 | * dwarf_linecol.c: New file. |
| 2657 | * dwarf_lineendsequence.c: New file. |
| 2658 | * dwarf_lineepiloguebegin.c: New file. |
| 2659 | * dwarf_lineno.c: New file. |
| 2660 | * dwarf_lineprologueend.c: New file. |
| 2661 | * dwarf_onesrcline.c: New file. |
| 2662 | * dwarf_lineno.c: Change interface to store result in object pointed |
| 2663 | to by second parameter. |
| 2664 | * libdw.h: Add prototypes for new functions. Change dwarf_lineno |
| 2665 | prototype. Define Dwarf_Files and Dwarf_Lines. |
| 2666 | * libdw.map: Add new functions. |
| 2667 | * libdwP.h: Define Dwarf_Files_s and Dwarf_Lines_s. |
| 2668 | * libdw_findcu.c: Don't initialize nlines field. |
| 2669 | |
| 2670 | * dwarf_siblingof: Little optimization. |
| 2671 | |
| 2672 | * dwarf_begin.c: Remember that the ELF descriptor must be closed. |
| 2673 | * dwarf_end.c: Close ELF descriptor if free_elf is set. |
| 2674 | * libdwP.h (struct Dwarf): Add free_elf field. |
| 2675 | |
| 2676 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getstring.c and |
| 2677 | dwarf_offabbrev.c. |
| 2678 | * dwarf_getstring.c: New file. |
| 2679 | * dwarf_offabbrev.c: New file. |
| 2680 | * libdw.map: Add dwarf_getstring and dwarf_offabbrev. |
| 2681 | * dwarf_getabbrev.c (__libdw_getabbrev): Add new dbg and result |
| 2682 | parameters. Don't allocate memory if not necessary and don't lookup |
| 2683 | previous results if no CU given. |
| 2684 | (dwarf_getabbrev): Adjust call to __libdw_getabbrev. |
| 2685 | * dwarf_tag.c: Adjust call to __libdw_getabbrev. |
| 2686 | * libdw.h: Declare dwarf_offabbrev and dwarf_getstring. |
| 2687 | * libdwP.h: Change prototype for __libdw_getabbrev. |
| 2688 | |
| 2689 | * dwarf_getabbrevattr.c: Add offsetp parameter. Fill in before |
| 2690 | returning if this is wanted. |
| 2691 | |
| 2692 | 2004-01-09 Ulrich Drepper <drepper@redhat.com> |
| 2693 | |
| 2694 | * dwarf_nextcu.c: Add new parameter offset_sizep. Initialize it |
| 2695 | with offset_size value. |
| 2696 | * libdw.h: Adjust dwarf_nextcu prototype. |
| 2697 | * libdwP.h (struct Dwarf_CU): Add offset_size member. |
| 2698 | * libdw_findcu.c: Adjust dwarf_nextcu call. Initialize offset_size |
| 2699 | member of new CU struct. |
| 2700 | * dwarf_formstring.c: Depend on offset_size not address_size for |
| 2701 | DW_FORM_strp handling. |
| 2702 | * dwarf_form.c: Likewise for DW_FORM_strp and DW_FORM_ref_addr. |
| 2703 | |
| 2704 | * dwarf_tag.c (__libdw_findabbrev): Return correct value for |
| 2705 | failing lookup. |
| 2706 | (dwarf_tag): Correctly recognize failed lookup. |
| 2707 | |
| 2708 | * dwarf_end.c (cu_free): Call tdestroy for locs member. Use new |
| 2709 | function noop_free. |
| 2710 | * dwarf_error.c: Add message for DWARF_E_NO_BLOCK. |
| 2711 | * dwarf_formblock.c: New file. |
| 2712 | * dwarf_getloclist.c: Rewrite to handle a single block. |
| 2713 | * libdw.h: Define Dwarf_Block. Rename Dwarf_Loc members. Remove |
| 2714 | Dwarf_Locdesc definition. Declare dwarf_formblock. Remove |
| 2715 | dwarf_getloclistent declaration. |
| 2716 | * libdw.map: Add dwarf_formblock, remove dwarf_getloclistent. |
| 2717 | * libdwP.h: Define struct loc_s and DWARF_E_NO_BLOCK. |
| 2718 | Add locs member to struct Dwarf_CU. |
| 2719 | * libdw_fundcu.c: Initialize locs member of new CU. |
| 2720 | * Makefile.am (libdw_a_SOURCES): Add dwarf_formblock.c. |
| 2721 | Remove dwarf_getloclistent.c. |
| 2722 | |
| 2723 | 2004-01-07 Ulrich Drepper <drepper@redhat.com> |
| 2724 | |
| 2725 | * libdw.h: Use __nonnull__ attribute only for gcc >= 3.3. |
| 2726 | * libdwP.h: Likewise. |
| 2727 | |
| 2728 | * dwarf_getloclist.c: New file. |
| 2729 | * dwarf_getloclistent.c: New file. |
| 2730 | * libdw.h: Define Dwarf_Loc and Dwarf_Locdesc. |
| 2731 | Declare dwarf_getloclistent and dwarf_getloclist. |
| 2732 | * libdw.map: Add dwarf_getloclistent and dwarf_getloclist. |
| 2733 | * libdwP.h: Define DWARF_E_NO_LOCLIST. |
| 2734 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getloclistent.c and |
| 2735 | dwarf_getloclist.c. |
| 2736 | |
| 2737 | * dwarf_error.c: More error messages. |
| 2738 | |
| 2739 | 2004-01-06 Ulrich Drepper <drepper@redhat.com> |
| 2740 | |
| 2741 | * dwarf_getsrclines.c: Remove debugging support. |
| 2742 | |
| 2743 | * dwarf_getsrcfiles.c: New file. |
| 2744 | * dwarf_filesrc.c: New file. |
| 2745 | * libdw.h: Declare these functions. Define Dwarf_File. |
| 2746 | * libdwP.c: Adjust Dwarf_File_s definition. |
| 2747 | * libdw.map: Add these functions. |
| 2748 | * Makefile.am (libdw_a_SOURCES): Add dwarf_getsrcfiles.c and |
| 2749 | dwarf_filesrc.c. |
| 2750 | * dwarf_getsrclines.c: Initialize cu->files. |
| 2751 | |
| 2752 | 2004-01-05 Ulrich Drepper <drepper@redhat.com> |
| 2753 | |
| 2754 | * libdw.h: Add more nonnull function attributes. |
| 2755 | |
| 2756 | * dwarf_begin_elf.c (dwarf_begin_elf): Don't initialize mem_tail->next. |
| 2757 | * dwarf_end.c (cu_free): New function. |
| 2758 | (dwarf_end): Also free CU tree. Correct freeing of memory blocks. |
| 2759 | * dwarf_error.c (errmsgs): Add new messages. |
| 2760 | * dwarf_getsrc_die.c: New file. |
| 2761 | * dwarf_getsrclines.c: New file. |
| 2762 | * dwarf_lineno.c: New file. |
| 2763 | * dwarf_linesrc.c: New file. |
| 2764 | * dwarf_nextcu.c (dwarf_nextcu): Use read_*byte_unaligned_inc |
| 2765 | instead of the *_inc-less variants. |
Ulrich Drepper | 6fb3451 | 2010-05-28 20:28:04 -0700 | [diff] [blame] | 2766 | * libdw.h: Define Dwarf_Line. Add some function attributes. Declare |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 2767 | dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, and dwarf_linesrc. |
| 2768 | * libdw.map: Add dwarf_getsrclines, dwarf_getsrc_die, dwarf_lineno, |
| 2769 | and dwarf_linesrc. |
| 2770 | * libdwP.h: Add more error codes. |
| 2771 | (struct Dwarf): Remove mem_tail.next member. |
| 2772 | (Dwarf_File): Define type. |
| 2773 | (struct Dwarf_Line_s): Define type. |
| 2774 | (struct Dwarf_CU): Add lines and nlines members. |
| 2775 | (libdw_alloc): Define local variable _tail and use it. |
| 2776 | Add some function attributes. |
| 2777 | * libdw_alloc.c (__libdw_allocate): Don't initialize next member. |
| 2778 | * libdw_findcu.c (__libdw_findcu): Initialize lines and nlines members. |
| 2779 | * memory-access.h: Add unlikely for the endian conversion paths. |
| 2780 | * Makefile.am (AM_CFLAGS): Add -std parameter. |
| 2781 | (libdw_a_SOURCES): Add dwarf_getsrclines, dwarf_getsrc_die, |
| 2782 | dwarf_lineno, and dwarf_linesrc. |
| 2783 | |
| 2784 | 2003-08-11 Ulrich Drepper <drepper@redhat.com> |
| 2785 | |
| 2786 | * Moved to CVS archive. |