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