| 1 |
2020-12-28 David Anderson |
| 2 |
* dwarf_form.c(_formblock_internal): Add DW_FORM_exprloc |
| 3 |
as that's required for DWARF4 and 5. |
| 4 |
* dwarf_locationop_read.c: Ensure DW_OP_skip and DW_OP_bra |
| 5 |
operand gets sign-extended. Give better detail |
| 6 |
in the error when the operator detected is not understood. |
| 7 |
* dwarf_query.c(dwarf_get_form_class): Correct the handling |
| 8 |
of DW_FORM_exprloc and DW_FORM_block cases. |
| 9 |
* libdwarf2p.1.mm: Clarify the description of |
| 10 |
what dwarf_add_AT_location_expr() does if there is a |
| 11 |
DW_OP_addr that may be added. |
| 12 |
* pro_expr.h: The hard limit on expression length |
| 13 |
was 20, now 300. Kind of a sanity check, but real |
| 14 |
DWARF expressions are now longer than 20. |
| 15 |
* pro_expr.c: Implemented dwarf_new_expr_a(), which |
| 16 |
was already documented but not implemented. Now |
| 17 |
DW_OP_addr gets its address-size from the Dwarf_P_Debug |
| 18 |
and creating it is supported for output. |
| 19 |
DW_OP_skip and DW_OP_bra are now also supported for output. |
| 20 |
* pro_forms.c: Now location expressions are supported |
| 21 |
more correctly. |
| 22 |
* pro_section.c: Added DW_FORM_exprloc, using DW_FORM_block |
| 23 |
code when determining output file size. |
| 24 |
2020-12-26 David Anderson |
| 25 |
* dwarf_leb.c,dwarf_leb_test.c,dwarf_macro5.c, dwarfstring.c: |
| 26 |
Fixing indents and trailing whitespace. |
| 27 |
2020-12-26 David Anderson |
| 28 |
* libdwarf2.1.mm: Rev now 3.23. Added comments |
| 29 |
on the abstract page, now the first page to appear. |
| 30 |
* libdwarf2.1.pdf: Regenerated with table of contents |
| 31 |
appearing before the detailed content. |
| 32 |
* pdfbld.sh: Now refers to helper script ../scripts/rebuildpdf.sh. |
| 33 |
2020-12-26 David Anderson |
| 34 |
* libdwarf2.1.mm: Fixed spelling errors. Rev now 3.22. |
| 35 |
* libdwarf2p.1.mm: Fixed spelling errors. Rev now 1.52. |
| 36 |
* libdwarf2.1.pdf, libdwarf2p.1.pdf: Regenerated. |
| 37 |
2020-12-25 David Anderson |
| 38 |
* test_dwarfstring.c: One function was lacking its |
| 39 |
return 0; leading to a compiler warning from |
| 40 |
make check. Fixed. |
| 41 |
2020-12-25 David Anderson |
| 42 |
* NEWS,crc32.c,dwarf.h,dwarf_abbrev.c,dwarf_abbrev.h, |
| 43 |
dwarf_alloc.c,dwarf_elf_access.c,dwarf_errmsg_list.h, |
| 44 |
dwarf_frame.c,dwarf_frame.h,dwarf_frame2.c,dwarf_global.c, |
| 45 |
dwarf_init_finish.c,dwarf_line.h,dwarf_loc.c, |
| 46 |
dwarf_locationop_read.c,dwarf_macho_loader.h,dwarf_macro5.c, |
| 47 |
dwarf_object_detector.c,dwarf_opaque.h,dwarf_print_lines.c, |
| 48 |
dwarf_util.h,dwarf_xu_index.c,dwgetopt.c, |
| 49 |
generated_libdwarf.h.in,libdwarf.h.in,pro_arange.h, |
| 50 |
pro_line.c,pro_reloc.c,pro_section.c,pro_section.h: |
| 51 |
Correcting bad spelling in comments and one printf. |
| 52 |
2020-12-24 David Anderson |
| 53 |
* dwarfstring.c: Improved checking for caller errors |
| 54 |
and changed the error message keyword from ERROR |
| 55 |
to DWARFSTRINGERR. These are all errors in |
| 56 |
libdwarf calls to dwarfstring. |
| 57 |
* test_dwarfstring.c: The new message spelling means |
| 58 |
the extected results from calls with errors |
| 59 |
changed so 'make check' passes. |
| 60 |
2020-12-20 David Anderson |
| 61 |
* Makefile.am: Add runtests.sh to check_TESTS |
| 62 |
so the leb tests get run with make check. |
| 63 |
* Makefile.in: Regenerate |
| 64 |
* dwarf_leb.c: Implement dwarf_decode_leb128() |
| 65 |
and dwarf_decode_signed_leb128() as public interfaces |
| 66 |
to the leb-reading functions. |
| 67 |
* dwarf_leb_test.c: Ensure the public interfaces get |
| 68 |
checked too. |
| 69 |
* dwarf_util.c: Delete a single unintentional blank line. |
| 70 |
* libdwarf.h.in: Add dwarf_decode_signed_leb128() and |
| 71 |
dwarf_decode_leb128() to the interfaces declared. |
| 72 |
* generated_libdwarf.h.in: Regenerate. |
| 73 |
* gennames.c: Eliminate Dwarf_Bool and just use int here. |
| 74 |
The program does not need or want libdwarf.h types.( |
| 75 |
* libdwarf2.1.mm: Document the two new public leb interfaces. |
| 76 |
* libdwarf2.1.pdf: Rev 3.21. |
| 77 |
2020-12-20 David Anderson |
| 78 |
* gennames.c: Renamed boolean to Dwarf_Bool. |
| 79 |
2020-12-20 David Anderson |
| 80 |
* dwarf_base_types.h: Added DW_CU_VERSION4 and |
| 81 |
DW_CU_VERSION5 for clearer checking of |
| 82 |
.debug_macro macro unit versions. |
| 83 |
* dwarf_errmsg_list.h: New error DW_DLE_MACRO_VERSION_ERROR. |
| 84 |
* dwarf_macro5.c: Checks for correct version number. |
| 85 |
New function dwarf_macro_context_total_length() lets |
| 86 |
callers get the total length of a single macro unit. |
| 87 |
* dwarf_macro5.h: Added DW_MACRO_VERSION4 DW_MACRO_VERSION5. |
| 88 |
* libdwarf.h.in: Added prototype for the new function |
| 89 |
dwarf_macro_context_total_length(). |
| 90 |
* generated_libdwarf.h.in: Regenerated. |
| 91 |
* libdwarf2.1.mm: Documented the new function. |
| 92 |
* libdwarf2.1.pdf: Regenerated as Rev 3.19. |
| 93 |
2020-12-08 David Anderson |
| 94 |
* dwarf_abbrev.c,dwarf_arange.c,dwarf_die_deliv.c,dwarf_frame.c, |
| 95 |
dwarf_funcs.c,dwarf_line.c,dwarf_loc.c,dwarf_macro.c, |
| 96 |
dwarf_macro5.c,dwarf_print_lines.c,dwarf_query.c |
| 97 |
dwarf_stringsection.c,dwarf_stubs.c,dwarf_types.c, |
| 98 |
dwarf_vars.c,dwarf_weaks.c: |
| 99 |
Similarly turned return (DW_DLV_NO_ENTRY); to |
| 100 |
return DW_DLV_NO_ENTRY; |
| 101 |
2020-12-08 David Anderson |
| 102 |
* dwarf_abbrev.c,dwarf_arange.c,dwarf_die_deliv.c, |
| 103 |
dwarf_elf_access.c,dwarf_form.c,dwarf_frame.c, |
| 104 |
dwarf_frame2.c,dwarf_line.c,dwarf_loc.c,dwarf_query.c: |
| 105 |
Similarly turned return (DW_DLV_OK); to |
| 106 |
return DW_DLV_OK; |
| 107 |
2020-12-08 David Anderson |
| 108 |
* dwarf_abbrev.c,dwarf_arange.c,dwarf_debug_names.c, |
| 109 |
dwarf_die_deliv.c,dwarf_elf_access.c,dwarf_form.c, |
| 110 |
dwarf_frame.c,dwarf_frame2.c,dwarf_funcs.c,dwarf_gdbindex.c, |
| 111 |
dwarf_global.c,dwarf_line.c,dwarf_loc.c,dwarf_macro.c, |
| 112 |
dwarf_macro5.c,dwarf_print_lines.c,dwarf_pubtypes.c, |
| 113 |
dwarf_query.c,dwarf_ranges.c,dwarf_stringsection.c |
| 114 |
dwarf_types.c,dwarf_vars.c,dwarf_weaks.c,dwarf_xu_index.c, |
| 115 |
pro_expr.c,pro_macinfo.c,pro_reloc_stream.c, |
| 116 |
pro_reloc_symbolic.c: Changed the mid-1990's use of |
| 117 |
(DW_DLV_ERROR) to plain old DW_DLV_ERROR, all that |
| 118 |
is needed. |
| 119 |
2020-12-08 David Anderson |
| 120 |
* checkexamples.c,dwarf_alloc.c,dwarf_arange.c,dwarf_crc32.c, |
| 121 |
dwarf_debug_names.c,dwarf_debug_sup.c,dwarf_debuglink.c, |
| 122 |
dwarf_die_deliv.c,dwarf_dsc.c,dwarf_elf_access.c, |
| 123 |
dwarf_elf_load_headers.c,dwarf_elf_rel_detector.c, |
| 124 |
dwarf_elfread.c,dwarf_error.c,dwarf_fission_to_cu.c, |
| 125 |
dwarf_form.c,dwarf_frame.c,dwarf_frame2.c,dwarf_funcs.c, |
| 126 |
dwarf_gdbindex.c,dwarf_generic_init.c,dwarf_global.c, |
| 127 |
dwarf_gnu_index.c,dwarf_groups.c,dwarf_init_finish.c, |
| 128 |
dwarf_leb.c,dwarf_leb_test.c,dwarf_line.c,dwarf_loc.c, |
| 129 |
dwarf_locationop_read.c,dwarf_loclists.c,dwarf_machoread.c, |
| 130 |
dwarf_macro.c,dwarf_macro5.c,dwarf_object_detector.c, |
| 131 |
dwarf_original_elf_init.c,dwarf_peread.c,dwarf_print_lines.c, |
| 132 |
dwarf_ranges.c,dwarf_rnglists.c,dwarf_str_offsets.c, |
| 133 |
dwarf_test_errmsg_list.c,dwarf_tied.c,dwarf_tied_test.c, |
| 134 |
dwarf_tsearchhash.c,dwarf_types.c,dwarf_util.c,dwarf_weaks.c, |
| 135 |
dwarf_xu_index.c,dwgetopt.c,gennames.c,malloc_check.c, |
| 136 |
pro_alloc.c,pro_arange.c,pro_die.c,pro_encode_nm.c,pro_error.c, |
| 137 |
pro_expr.c,pro_forms.c,pro_frame.c,pro_init.c,pro_line.c, |
| 138 |
pro_log_extra_flag_strings.c,pro_macinfo.c,pro_reloc_stream.c, |
| 139 |
pro_section.c,pro_types.c,test_dwarfstring.c, |
| 140 |
test_extra_flag_strings.c,test_headersok.c, |
| 141 |
test_linkedtopath.c: No logic changed. Just more consistent |
| 142 |
formatting. |
| 143 |
2020-12-07 David Anderson |
| 144 |
* dwarf_errmsg_list.h,dwarf_frame.h,dwarf_line.h, |
| 145 |
dwarf_line_table_reader_common.h: Incredible number |
| 146 |
of too-long lines here. All transformed. |
| 147 |
* dwarf_names.c: Regenerated. Regeneration adds |
| 148 |
a two-line comment. |
| 149 |
2020-12-07 David Anderson |
| 150 |
* Makefile.am: Added a new test to ensure some nearly |
| 151 |
unused headers are compilable. |
| 152 |
* Makefile.in: Regnerated. |
| 153 |
* runtests.sh,test_headersok.c: A new test that ensures |
| 154 |
all the dwarf_reloc*h headers are compilable. |
| 155 |
* dwarf.h,dwarf_base_types.h,dwarf_elf_access.h, |
| 156 |
dwarf_elf_rel_detector.h,dwarf_elfread.h,dwarf_global.h, |
| 157 |
dwarf_line_table_reader_common.h,dwarf_loc.h, |
| 158 |
dwarf_macho_loader.h,dwarf_machoread.h,dwarf_pe_descr.h, |
| 159 |
dwarf_peread.h,dwarf_reloc_ppc.h,dwarf_reloc_ppc64.h, |
| 160 |
dwarf_reloc_x86_64.h,dwarf_util.h,dwarf_xu_index.h, |
| 161 |
dwgetopt.h,malloc_check.h,memcpy_swap.h,pro_die.h, |
| 162 |
pro_dnames.h,pro_encode_nm.h,pro_frame.h,pro_opaque.h, |
| 163 |
pro_reloc.h: |
| 164 |
Ensure these headers are consistent with libdwarf codingstyle. |
| 165 |
* pro_section.c: Ensure consistent with libdwarf codingstyle. |
| 166 |
2020-12-05 David Anderson |
| 167 |
* gennames.c: Modified to generate no long C source libes. |
| 168 |
* dwarf_names.c,dwarf_names.h: Regenerated, now |
| 169 |
with no long source lines. |
| 170 |
2020-11-30 David Anderson |
| 171 |
* libdwarf_version.h: updated version string |
| 172 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 173 |
dwarf_names_new.h: regenerated with new version string. |
| 174 |
2020-11-29 David Anderson |
| 175 |
* dwarf_form.c: Correct comments on dwarf_formsig8_const() |
| 176 |
* dwarf_query.c: Fix if( to if ( in some places. |
| 177 |
Shorten some too-long lines. Implement the new function |
| 178 |
dwarf_cu_header_basics(). |
| 179 |
* dwarf_opaque.h: Corrected a comment on one field. |
| 180 |
* libdwarf.h.in: Prototype for dwarf_cu_header_basics() |
| 181 |
added. |
| 182 |
* generated_libdwarf.h.in: regenerated. |
| 183 |
* libdwarf2.1.mm. Version 3.18. Added to the description |
| 184 |
of dwarf_attr(), which was incomplete. |
| 185 |
Documented dwarf_cu_header_basics(). |
| 186 |
* libdwarf.2.1.pdf: Regenerated 3.18 |
| 187 |
2020-11-25 David Anderson |
| 188 |
* Makefile.in: Regenerated from configure.ac. |
| 189 |
To support data needed for dwarfexample make check. |
| 190 |
2020-11-25: David Anderson |
| 191 |
* libdwarf_version.h: updated version string |
| 192 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 193 |
dwarf_names_new.h: regenerated with new version string. |
| 194 |
2020-11-23: David Anderson |
| 195 |
* libdwarf_version.h: updated version string |
| 196 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 197 |
dwarf_names_new.h: regenerated with new version string. |
| 198 |
2020-11-21: David Anderson |
| 199 |
* dwarf_frame.c: Improve a couple error messages with |
| 200 |
additional detail. |
| 201 |
Remove old #if0/endif around macros no longer used. |
| 202 |
* dwarf_frame2.c: Improve some error messages with |
| 203 |
additional detail. |
| 204 |
2020-11-15: David Anderson |
| 205 |
* dwarf_locationop_read.c: Comments corrected. |
| 206 |
2020-11-15: David Anderson |
| 207 |
* libdwarf.h.in: Cooment for dwarf_get_die_infotypes_flag() |
| 208 |
corrected. |
| 209 |
* generated_libdwarf.h.in: Regenerated |
| 210 |
2020-11-12: David Anderson |
| 211 |
* libdwarf.h.in: Altering too-long lines |
| 212 |
and poor indenting. |
| 213 |
* generated_libdwarf.h.in: Regenerated. |
| 214 |
2020-11-12: David Anderson |
| 215 |
* CMakeLists.txt, Makefile.am: new file to |
| 216 |
and code to put into releases to help |
| 217 |
some cmake users. |
| 218 |
2020-11-10: David Anderson |
| 219 |
* Correctly dealing with SHF_COMPRESSED when |
| 220 |
we are reading the object using libelf. |
| 221 |
Was a surprise to learn libelf translates |
| 222 |
the endianness of the little header in |
| 223 |
SHF_COMPRESSED. |
| 224 |
* dwarf_original_elf_init.c: Set de_using_libelf = TRUE. |
| 225 |
* dwarfstring.c: Fix some if( to match libdwarf |
| 226 |
coding standard. |
| 227 |
2020-11-10: David Anderson |
| 228 |
* dwarf_opaque.h: Fixing indents, trailing |
| 229 |
whitespace, and too-long lines. |
| 230 |
Adding field de_using_libelf (helpful |
| 231 |
when using libelf and there is SHF_COMPRESSED elf) |
| 232 |
2020-11-10: David Anderson |
| 233 |
* dwarf_vars.c: Shortening too-long line. |
| 234 |
2020-11-09: David Anderson |
| 235 |
* dwarf_harmless.c,dwarf_machoread.c: Modified slightly |
| 236 |
to match libdwarf coding style. |
| 237 |
2020-11-09: David Anderson |
| 238 |
* libdwarf_version.h: updated version string |
| 239 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 240 |
dwarf_names_new.h: regenerated with new version string. |
| 241 |
2020-11-08: David Anderson |
| 242 |
* dwarf_abbrev.c: Shorten a pointlessly long line. |
| 243 |
* libdwarf2.1.mm: Rev 3.17. Remove many accidental |
| 244 |
tab characters and fix indents of the function |
| 245 |
prototypes. Broke up some pointlessly |
| 246 |
long lines. |
| 247 |
* libdwarf2.1.pdf: Regenerated as 3.17 |
| 248 |
2020-11-04: David Anderson |
| 249 |
* dwarf_crc32.c,dwarf_debuglink.c,dwarf_elf_access.c, |
| 250 |
dwarf_elf_load_headers.c,dwarf_elfread.c,dwarf_error.c, |
| 251 |
dwarf_frame2.c,dwarf_generic_init.c,dwarf_init_finish.c, |
| 252 |
dwarf_loclists.c,dwarf_machoread.c,dwarf_object_detector.c, |
| 253 |
dwarf_object_read_common.c,dwarf_original_elf_init.c, |
| 254 |
dwarf_peread.c,dwarf_print_lines.c,dwarf_ranges.c, |
| 255 |
dwarf_rnglists.c,dwarf_util.c,dwarfstring.c,dwgetopt.c, |
| 256 |
gennames.c,pro_arange.c,pro_debug_sup.c,pro_die.c, |
| 257 |
pro_dnames.c,pro_encode_nm.c,pro_error.c,pro_forms.c, |
| 258 |
pro_frame.c,pro_funcs.c,pro_init.c,pro_line.c: These |
| 259 |
had instances of includes not protected by, for |
| 260 |
example, #ifdef HAVE_STRING_H. All fixed to be |
| 261 |
consistent with all the HAVE*H config.h has. |
| 262 |
2020-11-04: David Anderson |
| 263 |
* dwarf_frame2.c: Remove useless/misleading comments. |
| 264 |
Quite a few lines were longer than the libdwarf |
| 265 |
standard line length. Many of them comments. |
| 266 |
All now (aside from two copyright lines) have proper |
| 267 |
length. |
| 268 |
2020-11-03: David Anderson |
| 269 |
* libdwarf_version.h: updated version string |
| 270 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 271 |
dwarf_names_new.h: regenerated with new version string. |
| 272 |
2020-11-03: David Anderson |
| 273 |
* dwarf_macro.c: shortened a pointlessly long line. |
| 274 |
2020-11-03: David Anderson |
| 275 |
* dwarf_macro5.c: Fixed a test which was a dreadful |
| 276 |
assignment instead of being the correct test. |
| 277 |
Otherwise just changing a comment and arranging |
| 278 |
if (... instead of if(, similarly for for(. |
| 279 |
2020-11-01: David Anderson |
| 280 |
* dwarf_line.c: Corrected the comments for dwarf_srcfiles(). |
| 281 |
* dwarf_print_lines.c: When turning a DW_LNS file to |
| 282 |
a name, do it correctly. |
| 283 |
* libdwarf2.1.mm: Rev 3.16. Document dwarf_srclines() |
| 284 |
more fully and correctly. Refer to dwarfstd.org |
| 285 |
for more information on DWARF file numbers. |
| 286 |
dwarf_srcfileno() is also more fully |
| 287 |
and more correctly described. DWARF5 differs. |
| 288 |
* libdwarf2.1.pdf: Rev 3.16. Regenerated. |
| 289 |
2020-10-31: David Anderson |
| 290 |
* dwarf_line.h: Removed a FIXME comment that no longer applies. |
| 291 |
* dwarf_die_deliv.c: Now compares and reports |
| 292 |
signature variance when |
| 293 |
the DWARF4 GNU extension DW_AT_[GNU_]dwo_id used |
| 294 |
with DWARF4 extension split dwarf. |
| 295 |
* dwarf_errmsg_list.h: Adds DW_DLE_SIGNATURE_MISMATCH. |
| 296 |
* dwarf_line.h: Deleted three obsolete comment lines. |
| 297 |
* libdwarf.h.in: Added DW_DLE_SIGNATURE_MISMATCH. |
| 298 |
* generated_libdwarf.h.in: Regenerated. |
| 299 |
2020-10-29: David Anderson |
| 300 |
* dwarf_generic_init.c: Remove trailing whitepace. |
| 301 |
* dwarf_crc32.c: Added initializer to conform |
| 302 |
to libdwarf practices. |
| 303 |
2020-10-29: David Anderson |
| 304 |
* dwarfstring.c: Dealing with impossible things by |
| 305 |
reporting ERROR plus descriptive information in the string. |
| 306 |
* test_dwarfstring.c: Now tests all the various |
| 307 |
impossible things for correct ERROR message content. |
| 308 |
2020-10-29: David Anderson |
| 309 |
* libdwarf_version.h: updated version string |
| 310 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 311 |
dwarf_names_new.h: regenerated with new version string. |
| 312 |
2020-10-29: David Anderson |
| 313 |
* dwarf_print_lines.c: Fixed an old mistake passing |
| 314 |
%d into dwarfstrling_append_printf_u (the value |
| 315 |
in question is unsigned). |
| 316 |
* dwarfstring.c: If a caller passes in something bogus |
| 317 |
dwarfstring now adds specifics with "ERROR:" |
| 318 |
to the output dwarfstring as well as returning FALSE. |
| 319 |
2020-10-28: David Anderson |
| 320 |
* dwarf_print_lines.c: In case of corrupted |
| 321 |
DWARF5 line header the fi_file_name field |
| 322 |
for a file entry can be null. Now |
| 323 |
we print a <no file name> string in that case |
| 324 |
to avoid passing a null to dwarfstring_append. |
| 325 |
Dwarfbug DW202010-003. |
| 326 |
Also some lines longer than libdwarf standard |
| 327 |
were shortened, but a few long lines really |
| 328 |
must remain. |
| 329 |
2020-10-28: David Anderson |
| 330 |
* dwarf_ranges.c: Altered lines longer than libdwarf |
| 331 |
standard. |
| 332 |
2020-10-27: David Anderson |
| 333 |
* dwarf_generic_init.c: Now checks for a null PATH |
| 334 |
passed to dwarf_init_path() or dwarf_init_path_dl() |
| 335 |
and returns error. |
| 336 |
2020-10-20: David Anderson |
| 337 |
* libdwarf_version.h: updated version string |
| 338 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 339 |
dwarf_names_new.h: regenerated with new version string. |
| 340 |
* crc32.c: Computing from first principles. LGPL 2.1 |
| 341 |
2020-10-19: David Anderson |
| 342 |
* dwarf_line_table_reader_common.h: Everywhere ptr - ptr |
| 343 |
generates an unnamed ptrdiff_t is called out by |
| 344 |
a short comment. |
| 345 |
2020-10-19: David Anderson |
| 346 |
* crc32.c,dwarf_debuglink.c,dwarf_die_deliv.c,dwarf_line.c, |
| 347 |
dwarf_line.h,dwarf_line_table_reader_common.h,dwarf_query.c, |
| 348 |
dwarf_str_offsets.c: Fixed indents and removed |
| 349 |
trailing whitespace. |
| 350 |
2020-10-19: David Anderson |
| 351 |
* crc32.c: Revised line lengths to under |
| 352 |
20 characters for a better appearance. |
| 353 |
No change in wording. |
| 354 |
* pro_frame.c,pro_funcs.c: Removed a blank line |
| 355 |
before the copyright text for a better appearance. |
| 356 |
2020-10-19: David Anderson |
| 357 |
* dwarf_arange.h,dwarf_base_types.h,dwarf_die_deliv.h, |
| 358 |
dwarf_dsc.h,dwarf_elf_access.h,dwarf_errmsg_list.h, |
| 359 |
dwarf_error.h,dwarf_frame.h,dwarf_funcs.h,dwarf_gdbindex.h, |
| 360 |
dwarf_global.h,dwarf_harmless.h,dwarf_line.h,dwarf_macro.h, |
| 361 |
dwarf_macro5.h,dwarf_reloc_386.h,dwarf_reloc_arm.h, |
| 362 |
dwarf_reloc_mips.h,dwarf_reloc_ppc.h,dwarf_reloc_ppc64.h, |
| 363 |
dwarf_reloc_x86_64.h,dwarf_tied_decls.h,dwarf_types.h, |
| 364 |
dwarf_util.h,dwarf_vars.h,dwarf_weaks.h,dwarf_xu_index.h, |
| 365 |
libdwarfdefs.h,malloc_check.h,pro_alloc.h,pro_arange.h, |
| 366 |
pro_die.h,pro_encode_nm.h,pro_error.h,pro_expr.h, |
| 367 |
pro_frame.h,pro_incl.h,pro_macinfo.h,pro_reloc.h, |
| 368 |
pro_reloc_stream.h,pro_reloc_symbolic.h,pro_section.h, |
| 369 |
pro_types.h,pro_util.h: License text reformatted |
| 370 |
to fit libdwarf line lengths. No change in terms. |
| 371 |
2020-10-19: David Anderson |
| 372 |
* dwarf_debuglink.c,dwarf_die_deliv.c,dwarf_query.c, |
| 373 |
dwarf_str_offsets.c,dwarf_util.c: These no longer |
| 374 |
explicitly use ptrdiff_t. Only non-negative pointer |
| 375 |
differences are converted to unsigned. The other |
| 376 |
side of a compare is given an appropriate constant unsigned |
| 377 |
value that will cause an immediate error (this side |
| 378 |
represents an astonishing and impossible situation). |
| 379 |
* crc32.c,dwarf_alloc.c,dwarf_crc32.c,dwarf_debuglink.c, |
| 380 |
dwarf_die_deliv.c,dwarf_elf_access.c,dwarf_elf_load_headers.c, |
| 381 |
dwarf_elfread.c,dwarf_error.c dwarf_generic_init.c, |
| 382 |
dwarf_init_finish.c,dwarf_machoread.c,dwarf_object_detector.c, |
| 383 |
dwarf_object_read_common.c,dwarf_original_elf_init.c, |
| 384 |
dwarf_peread.c,dwarf_query.c,dwarf_str_offsets.c, |
| 385 |
dwarf_util.c,pro_error.c,test_linkedtopath.c: Consistent |
| 386 |
use of HAVE_SYS_STATS_H throughout. |
| 387 |
2020-10-17: David Anderson |
| 388 |
* libdwarf_version.h: updated version string |
| 389 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 390 |
dwarf_names_new.h: regenerated with new version string. |
| 391 |
2020-10-15: David Anderson |
| 392 |
* dwarf_line.c:Set up the default registers correctly |
| 393 |
for DWARF5 as well as earlier versions. |
| 394 |
* dwarf_line.h: update a comment. |
| 395 |
* dwarf_line_table_reader_common.c: Using ptrdiff_t |
| 396 |
is completely unnecessary. So not using now. |
| 397 |
Removing with #if 0 some lines of checking code |
| 398 |
which are now up a few lines in a corrected |
| 399 |
version of earlier checking. |
| 400 |
* libdwarf2.1.pdf: Regenerated 3.15. Forgot |
| 401 |
to do it earlier. |
| 402 |
2020-10-13: David Anderson |
| 403 |
* dwarf_debuglink.c: Now _dwarf_pathjoinl works |
| 404 |
for Windows too (see HAVE_WINDOWS_PATH) and |
| 405 |
transforms all backslash to /. This |
| 406 |
has always been the behavior, it just vanished |
| 407 |
for a couple days. |
| 408 |
* dwarf_line_table_reader_common.h: Removed a trailing blank. |
| 409 |
* dwarf_macro5.c: Now correctly handles the null byte |
| 410 |
at the end of a list of macro operands. Added |
| 411 |
macro CHECKNULLCONTEXT to avoid lots of 8 line |
| 412 |
sequences just checking basic call sanity. |
| 413 |
Gave the structure sentinal a name: MC_SENTINAL |
| 414 |
(only exists in this one source file). |
| 415 |
* dwarf_macro5.h: Added mc_section_size so offset |
| 416 |
insanity is caught. Added comments about |
| 417 |
Dwarf_Macro_Operator_s for clarity. |
| 418 |
* libdwarf.h;.in: Added comment on the DWARF 5 |
| 419 |
macro operands table. |
| 420 |
* libdwarf2.1.mm: Rev 3.15 Added a comment in examplep5 |
| 421 |
on dwarf_get_macro_op() about the DWARF5 |
| 422 |
macro operator value 0, and |
| 423 |
amplified the function wording on this point.. |
| 424 |
* libdwarf2.1.pdf: Rev 3.15. Regenerated. |
| 425 |
. |
| 426 |
2020-10-12: David Anderson |
| 427 |
* dwarf_alloc.c: Creation of Dwarf_Error_ with |
| 428 |
null dbg is now gracefully handled. |
| 429 |
* dwarf_debuglink.c: Now handles |
| 430 |
HAVE_WINDOWS_PATH. Needed additional #include |
| 431 |
and create_fullest_file_path() now uses dwarfstsring. |
| 432 |
* dwarf_line.h: Trailing whitespace. |
| 433 |
* dwarf_line_table_reader_common.h: Shorten a couple lines |
| 434 |
to fit libdwarf standards. |
| 435 |
* dwarf_object_detector.c: Free debuglinkfull path |
| 436 |
where appropriate. Ensure fd's (other than -1) |
| 437 |
get closed where appropriate. |
| 438 |
* dwarf_object_detector.h: Removed #if 0 lines. |
| 439 |
* dwarf_peread.c: Assures fd which is not -1 |
| 440 |
gets closed. |
| 441 |
* dwarf_print_lines.c: Now uses |
| 442 |
dwarfstring_constructor_static() so in nearly all |
| 443 |
cases no malloc/free needed. Adds DWARF5 |
| 444 |
specific support for indexing into includes. |
| 445 |
* libdwarf.h.in: Corrected comments about what to |
| 446 |
free after calling dwarf_gnu_debuglink(). |
| 447 |
* generated_libdwarf.h.in: regenerated. |
| 448 |
* libdwarf2.1.mm: Version 3.14. Correctet |
| 449 |
description of dwarf_gnu_debuglink(). |
| 450 |
* libdwarf2.1.pdf: Version 3.14. Regenerated. |
| 451 |
* testdebuglinksh: Remove trailing whitespace. |
| 452 |
2020-10-11: David Anderson |
| 453 |
* dwarf_object_detector.h: Deleted #if 0 prototype. |
| 454 |
* testdebuglink.sh: Removed a trailing blank. |
| 455 |
2020-10-11: David Anderson |
| 456 |
* libdwarf_version.h: updated version string |
| 457 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 458 |
dwarf_names_new.h: regenerated with new version string. |
| 459 |
2020-10-11: David Anderson |
| 460 |
* CMakeLists.txt: Added crc32.c, a new source file. |
| 461 |
* Makefile.am: Same addition. |
| 462 |
* Makefile.in: Regenerated. |
| 463 |
* crc32.c: The crc needed to interoperate with GNU |
| 464 |
debuglink. |
| 465 |
* dwarf_alloc.c: Clarifying comment and removing |
| 466 |
old unnecessary () around return values. |
| 467 |
* dwarf_crc32.c: Removing crc from here, it was |
| 468 |
the wrong crc32! Modified crc calls to match |
| 469 |
the needs of the correct crc calculation. Ensured |
| 470 |
a local malloc always gets freed. |
| 471 |
* dwarf_debuglink.c: Added short comments. |
| 472 |
* dwarf_errmsg_list.h: New error DW_DLE_DEBUGLINK_PATH_SHORT. |
| 473 |
* dwarf_generic_init.c.: Updated to work properly |
| 474 |
with debuglink and dSYM. |
| 475 |
* dwarf_incl.h: Reformatted copyright for shorter |
| 476 |
lines per libdwarf formatting, no change in content. |
| 477 |
* dwarf_init_finish.c: Added comment. Removed |
| 478 |
a pointless test for error (error not |
| 479 |
not set, guaranteed) in dwarf_object_finish(). |
| 480 |
* dwarf_object_detector.c: Implemented support |
| 481 |
for debuglink, significant changes involved. |
| 482 |
* dwarf_object_detector.h: Comment change |
| 483 |
* dwarf_opaque.h: Updated a comment and |
| 484 |
declared the internal function _dwarf_crc32(); |
| 485 |
* libdwarf.h.in: Functions added for debuglink |
| 486 |
and a mistake corrected (now comment the arg names |
| 487 |
to avoid macro disaster) in several functions. |
| 488 |
New error DW_DLE_DEBUGLINK_PATH_SHORT. |
| 489 |
New function dwarf_object_detector_path_b() |
| 490 |
lets one supply global paths for debuglink and |
| 491 |
get back a (new!) value, one of |
| 492 |
DW_PATHSOURCE_basic, DW_PATHSOURCE_dsym,or |
| 493 |
DW_PATHSOURCE_debuglink so callers know what |
| 494 |
the path source by type. |
| 495 |
* generated_libdwarf.h.in: Regenerated. |
| 496 |
* libdwarf2.1.mm: Clarified lifetimes of several |
| 497 |
arguments of debuglink-related functions. Revision 3.13. |
| 498 |
* libdwarf2.1.pdf: Regenerated, version 3.13. |
| 499 |
2020-10-05: David Anderson |
| 500 |
* libdwarf.h.in: Removed DW_DLC_NO_FOLLOW_DEBUGLINK |
| 501 |
as it is never needed and was never used or |
| 502 |
documented (it's only been there for a handful |
| 503 |
of days). Updated commentary. |
| 504 |
* generated_libdwar.h.in: Regenerated. |
| 505 |
* libdwarf2.1.mm: Rev 3.12. Beginning documentation |
| 506 |
of GNU debuglink support. |
| 507 |
* libdwarf2.1.pdf: Regenerated as 3.12. |
| 508 |
2020-10-02: David Anderson |
| 509 |
* dwarf_crc32.c,dwarf_fission_to_cu.c,dwarf_macro5.c, |
| 510 |
dwarf_opaque.h,libdwarf.h.in,test_linkedtopath.c, |
| 511 |
test_linkedtopath.c: Removed whitespace and |
| 512 |
tabs and make indents dwarf-standard. |
| 513 |
* COPYING: Corrected the references to the BSD copyright |
| 514 |
to use "two-clause BSD license". |
| 515 |
2020-10-02: David Anderson |
| 516 |
* dwarf_generic_init.c: Implements the new |
| 517 |
dwarf_init_path_dl() which allows passing debuglink |
| 518 |
global paths (if one desires to). Global paths not |
| 519 |
used here yet. |
| 520 |
* libdwarf.h.in: Added prototype dwarf_init_path_dl() |
| 521 |
but it is not yet used. Relevant commentary updated. |
| 522 |
* generated_libdwarf.h.in: regenerated |
| 523 |
2020-10-01: David Anderson |
| 524 |
* libdwarf2.1.mm: Revision 3.11. Added new debuglink |
| 525 |
function dwarf_crc32(). |
| 526 |
* libdwarf2.1.pdf: Revision 3.11. Regenerated. |
| 527 |
2020-10-01: David Anderson |
| 528 |
* dwarf_crc32.c: Refined the #includes so they work |
| 529 |
with cmake too. |
| 530 |
* dwarf_debuglink.c,dwarf_object_detector.c, |
| 531 |
dwarf_peread.c: Refined the #includes to work |
| 532 |
in more general circumstances. |
| 533 |
2020-10-01: David Anderson |
| 534 |
* libdwarf.h.in: Added DW_DLC_NO_FOLLOW_DEBUGLINK |
| 535 |
but it is not yet used. |
| 536 |
* generated_libdwarf.h.in: regenerated |
| 537 |
2020-09-30: David Anderson |
| 538 |
* CMakeLists.txt,Makefile.am: Added dwarf_crc32.c |
| 539 |
* Makefile.am: Regenerated. |
| 540 |
* dwarf_crc32.c: So libdwarf can interoperate with GNU |
| 541 |
debuglink to locate separate debug object files. |
| 542 |
* dwarf_debuglink.c: Added {} one place. No real change. |
| 543 |
* libdwarf.h.in: New interfaces for crc32. |
| 544 |
* generated_libdwarf.h.in: Regenerated |
| 545 |
2020-09-28: David Anderson |
| 546 |
* libdwarf.h.in: Rearranged the DW_DLC_* values |
| 547 |
for clarity and added commentary on the main |
| 548 |
point (the 'access' argument to dwarf init |
| 549 |
functions for the consumer/reader calls |
| 550 |
should be zero). This is not a change. |
| 551 |
* generated_libdwarf.h.in: Documented |
| 552 |
the longstanding handling of that same |
| 553 |
argument to consumer/reader functions. |
| 554 |
* libdwarf2.1.mm: Version 3.10. Documenting |
| 555 |
that same thing. |
| 556 |
* libdwarf2.1.pdf: Regenerated as version 3.10. |
| 557 |
2020-09-26: David Anderson |
| 558 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 559 |
dwarf_names_new.h,libdwarf_version.h: Updated version |
| 560 |
string, regenerated files that reference it. |
| 561 |
2020-09-26: David Anderson |
| 562 |
* baseline.ltp: new test baseline for debuglink. |
| 563 |
* test_linkedtopath.c: Now with better coverage |
| 564 |
of the paths in tbe debuglink code, we |
| 565 |
add a getcwd here to return a test cwd |
| 566 |
of /exam/ple so the output of debuglink |
| 567 |
does not depend on the real build |
| 568 |
directory location. |
| 569 |
2020-09-25: David Anderson |
| 570 |
* dwarf_debuglink.c: Corrected and clarified. |
| 571 |
2020-09-22: David Anderson |
| 572 |
* CMakeLists.txt, Makefile.am: Added new file |
| 573 |
dwarf_fission_to_cu.c. |
| 574 |
* Makefile.in: Regenerated. |
| 575 |
* dwarf_die_deliv.c: Renamed _dwarf_find_offsets_via_fission |
| 576 |
to be _dwarf_find_all_offsets_via_fission(). |
| 577 |
Added status check following the call to it. |
| 578 |
* dwarf_fission_to_cu.c: Now the above function |
| 579 |
and supporting functions are in this source file to |
| 580 |
deal with DW_SECT_LOCLISTS,DW_SECT_STR_OFFSETS, |
| 581 |
DW_SECT_MACRO, DW_SECT_RNGLISTS. |
| 582 |
* dwarf_loc.h: Updated prototypes for these |
| 583 |
functions. |
| 584 |
* dwarf_loclists.h: Now deleted. It's long been |
| 585 |
unused. |
| 586 |
* dwarf_loclists.c: Renamed internal_read_header as |
| 587 |
_dwarf_internal_read_loclists_header for more general |
| 588 |
access. |
| 589 |
* dwarf_macro5.c: Now the cu-context cc_macro_base |
| 590 |
field is used when needed for DWP files. |
| 591 |
* dwarf_opaque.h: Rearranged some fields of |
| 592 |
Dwarf_CU_Context |
| 593 |
into more logical groupings (related to debug fission). |
| 594 |
* dwarf_rnglists.c: renamed internal_read_header |
| 595 |
to _dwarf_internal_read_rnglists_header(). |
| 596 |
* dwarf_rnglists.h: Added protype for |
| 597 |
_dwarf_internal_read_rnglists_header(). |
| 598 |
* dwarf_str_offsets.c: Removed |
| 599 |
_dwarf_find_offsets_via_fission |
| 600 |
(which does more than just str_offsets now) |
| 601 |
and put into dwarf_fission_to_cu.c as |
| 602 |
_dwarf_find_all_offsets_via_fission(). |
| 603 |
* dwarf_str_offsets.h: Prototype renamed. |
| 604 |
* libdwarf.h.in: Added a comment. |
| 605 |
* generated_libdwarf.h.in: Regenerated. |
| 606 |
2020-09-18: David Anderson |
| 607 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 608 |
dwarf_names_new.h,libdwarf_version.h: Updated version |
| 609 |
string, regenerated files that reference it. |
| 610 |
2020-09-18: David Anderson |
| 611 |
* dwarf_debug_names.c: If allocation fails in setting up |
| 612 |
a Dwarf_Dnames head we now get an error and a more tailored |
| 613 |
error than just memory-allocation-failed. |
| 614 |
* dwarf_elf_load_headers.c: If the symtab section size |
| 615 |
is really big (larger than the object file size!) we now |
| 616 |
get a relevant error message. Used to get malloc fail on |
| 617 |
32bit systems and do a large malloc on 64bit systems before |
| 618 |
getting an error eventually. |
| 619 |
* dwarf_frame.c: Calling the frame-retrieval functions |
| 620 |
on a corrupted object file could result in leaking memory. |
| 621 |
Fixed. |
| 622 |
2020-09-17: David Anderson |
| 623 |
* dwarf_peread.c: Deleted several blank lines. |
| 624 |
* dwarf_global.c: Removed trailing whitespace, |
| 625 |
fixed indents. |
| 626 |
* dwarf_errmsg_list.h: Various error strings now |
| 627 |
have extra text with meaningful, but generic, |
| 628 |
content. |
| 629 |
2020-09-17: David Anderson |
| 630 |
* dwarf_global.c: Refactored to eliminate 50 lines |
| 631 |
of duplicated code and ensure no leaks while |
| 632 |
improving error messages when the object or DWARF |
| 633 |
data is damaged (fuzzed). |
| 634 |
* dwarf_global.h,dwarf_funcs.c,dwarf_pubtypes.c, |
| 635 |
dwarf_types.c,dwarf_vars.c,dwarf_weaks.c: Eliminated |
| 636 |
useless arguments to library-internal function. |
| 637 |
* dwarf_util.h: Errors detected in a macro now |
| 638 |
report more useful information. |
| 639 |
* dwarf_alloc.c: Two DEBUG lines were too long, |
| 640 |
broke those lines to shorter ones. |
| 641 |
Added DEBUG-only output where it had not |
| 642 |
reported earler. |
| 643 |
2020-09-15: David Anderson |
| 644 |
* dwarf_alloc.c: Added ifdef DEBUG |
| 645 |
printf for cases it should exist. |
| 646 |
#undef debug at the top guaranties it will not |
| 647 |
be turned on by accident. |
| 648 |
* dwarf_loc.c(_dwarf_read_loc_section): Was missing dbg |
| 649 |
in a call to _dwarf_error. Corrupt object lead to leak. |
| 650 |
* dwarf_die_deliv.c(_dwarf_make_CU_Context) was missing |
| 651 |
a _dwarf_error call where one was required. |
| 652 |
A corrupt object lead to memory leak. |
| 653 |
And _dwarf_next_die_info_ptr was failing to |
| 654 |
initialize dbg from the passed in cu_context. |
| 655 |
Also causing a memory leak on some corrupt objects. |
| 656 |
* dwarf_peread.c(pe_section_name_get): Was failing |
| 657 |
to check for a valid null-terminated |
| 658 |
string in the string table. |
| 659 |
A corrupted object could cause segmentation violation. |
| 660 |
* dwarf_error.c (_dwarf_error_string): Added ifdef DEBUG |
| 661 |
printf where they should have been all along. |
| 662 |
#undef debug at the top guaranties it will not |
| 663 |
be turned on by accident. |
| 664 |
2020-09-10: David Anderson |
| 665 |
* dwarf_die_deliv.c: Now handle DW_AT_GNU_ranges_base |
| 666 |
properly. |
| 667 |
* dwarf_ranges.c: New function dwarf_get_ranges_b() |
| 668 |
so we can pass back the true split-dwarf offset |
| 669 |
when we have DWARF4 split-dwarf extension objects. |
| 670 |
And we calculate that true offset. |
| 671 |
* libdwarf.h.in: New function prototype: |
| 672 |
dwarf_get_ranges_b(). |
| 673 |
* generated_libdwarf.h.in: Regenerated. |
| 674 |
* libdwarf2.1.mm: Version 3.09. Now documents |
| 675 |
dwarf_get_ranges_b(). |
| 676 |
* libdwarf2.1.pdf: Version 3.09. Regenerated. |
| 677 |
2020-09-10: David Anderson |
| 678 |
* checkexamples.c,dwarf_die_deliv.c,dwarf_form.c, |
| 679 |
dwarf_line_table_reader_common.h,dwarf_query.c, |
| 680 |
dwarf_ranges.c,dwarf_str_offset.c,dwarf_tied.c: |
| 681 |
Remove trailing whitespace. Fix indentation. |
| 682 |
2020-09-09: David Anderson |
| 683 |
* dwarf_alloc.c: dwarf_dealloc_error(dbg,error) |
| 684 |
and dwarf_dealloc(dbg,error,DW_DLA_ERROR) |
| 685 |
should now be called with a null dbg if |
| 686 |
the failing libdwarf was one of the dwarf_init*() |
| 687 |
or dwarf_elf_init*() functions and the storage |
| 688 |
in the error will be freed. |
| 689 |
See libdwarf2.1.pdf rev 3.08 or later for |
| 690 |
details. |
| 691 |
With DEBUG set additional allocation details are |
| 692 |
revealed. |
| 693 |
* dwarf_error.c: Repair a comparison with NULL. |
| 694 |
* dwarf_finish.c(dwarf_finish): Simplify the !dbg test. |
| 695 |
* dwarf_ranges.c: Remove dead code. |
| 696 |
* libdwarf2.1.mm: Version 3.08. The Table of |
| 697 |
Contents points to returns from dwarf_init* |
| 698 |
calls (around page 28) now. |
| 699 |
* libdwarf2.1.pdf: Generated Version 3.08. |
| 700 |
2020-09-08: David Anderson |
| 701 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 702 |
dwarf_names_new.h,libdwarf_version.h: Updated version |
| 703 |
string, regenerated files that reference it. |
| 704 |
2020-09-07: David Anderson |
| 705 |
* dwarf_xu_index.c: We were not checking the |
| 706 |
value of N (in the header of .debug_cu/tu_index) |
| 707 |
to ensure it was sane. Now we check and error |
| 708 |
if insane (the test object is fuzzed to provoke |
| 709 |
the error). |
| 710 |
* dwarf_elf_access.c: Reformatted commentary so |
| 711 |
the lines are not too long. |
| 712 |
2020-09-07: David Anderson |
| 713 |
* dwarf_opaque.h, dwarf_str_offsets.c: Removed trailing |
| 714 |
whitespace. |
| 715 |
* dwarf_line_table_reader_common.h: Fixed an accidental |
| 716 |
deletion of a crucual _ (underbar) in preceeding commit. |
| 717 |
2020-09-07: David Anderson |
| 718 |
* dwarf_line_table_reader_common.h: Places needing |
| 719 |
additional dealloc in case of error: |
| 720 |
lines 1232,2255,2404 (line#s in the updated version). |
| 721 |
2020-09-07: David Anderson |
| 722 |
* dwarf_tied_decls.h: Removed declaration of |
| 723 |
_dwarf_loop_reading_debug_info_for_cu(). |
| 724 |
* dwarf_tied.c: The return value from dwarf_tsearch() was |
| 725 |
not being handled properly. Lead to leaks. |
| 726 |
Could, possibly, have lead to coredump. |
| 727 |
Other places tsearch return values were done properly. |
| 728 |
_dwarf_loop_reading_debug_info_for_cu() is |
| 729 |
now static function. |
| 730 |
* dwarf_groups.c: Moved _dwarf_grp_destroy_free_node() |
| 731 |
down to just before the function that references it. |
| 732 |
* dwarf_alloc.c: Removed an abort() call from |
| 733 |
#ifdef DEBUG code. |
| 734 |
2020-09-05: David Anderson |
| 735 |
* dwarf_die_deliv.c: Delete old #if 0 lines. |
| 736 |
Pick up Fission data about DW_SECT_STR_OFFSETS |
| 737 |
to help find strings. |
| 738 |
Merge any helpful base data from the skeleton (tied file) |
| 739 |
CU dies into the dwp CU dies. |
| 740 |
* dwarf_base_types.h: Add DW_STR_OFFSETS_VERSION4 |
| 741 |
to help with reading that GNU extension. |
| 742 |
* dwarf_form.c: Corrected code reading from |
| 743 |
.debug_str_offsets. |
| 744 |
* dwarf_opaque.h: Added new fields to the CU context |
| 745 |
record to support .debug_str_offsets, and a new |
| 746 |
function declaration related to that. |
| 747 |
* dwarf_query.c: Deleted no-longer-used functions |
| 748 |
(the tied-file attribute merge happens much |
| 749 |
earlier) and added |
| 750 |
_dwarf_merge_all_base_attrs_of_cu_die(). |
| 751 |
* dwarf_ranges.c: Better represents using .debug_ranges.dwo |
| 752 |
if it's present in the dwp . |
| 753 |
* dwarf_str_offsets.c: Refactoring and revising to support |
| 754 |
the two formats of .debug_str_offsets: DWARF5 and |
| 755 |
GNU DWARF4. |
| 756 |
* dwarf_str_offsets.h. New function prototypes for the revised |
| 757 |
.debug_str_offsets[.dwo] code. |
| 758 |
2020-09-01: David Anderson |
| 759 |
* dwarf_loclists.c(internal_load_loclists_contexts): Added |
| 760 |
a missing 'return DW_DLV_ERROR' when an error was detected. |
| 761 |
2020-08-28: David Anderson |
| 762 |
* dwarf_die_deliv.c,dwarf_loc.c,dwarf_util.c:Fixed |
| 763 |
indents and trailing whitespace. |
| 764 |
2020-08-27: David Anderson |
| 765 |
* dwarf_die_deliv.c: Some error messages now have more |
| 766 |
detail. |
| 767 |
* dwarf_line_table_reader_common.h: In an error condition |
| 768 |
(meaning corrupt dwarf) _dwarf_free_chain_entries() |
| 769 |
was called twice on the same data, referring to |
| 770 |
freed space in doing so. Deleted the extra call. |
| 771 |
* dwarf_loc.c(_dwarf_setup_loc): Removed a |
| 772 |
bogus _dwarf_error |
| 773 |
using DW_DLE_LOC_EXPR_BAD: Let the just-called |
| 774 |
function error code be returned. |
| 775 |
Some error conditions detected here now report |
| 776 |
detailed information on the error. |
| 777 |
* dwarf_query.c(dwarf_attrlist): Refined the detailed |
| 778 |
error message already present. |
| 779 |
* dwarf_util.c:New internal function |
| 780 |
_dwarf_create_area_len_error() lets dwarf_util.h |
| 781 |
macro report a more detailed error without |
| 782 |
bloating the macro. |
| 783 |
* dwarf_util.h: Calls that new function rather |
| 784 |
than calling _dwarf_error() itself. |
| 785 |
2020-08-25: David Anderson |
| 786 |
* dwarf_form.c: Previous change failed to show |
| 787 |
the actual error string |
| 788 |
DW_DLE_STRP_OFFSET_BAD or DW_DLE_STRING_OFFSET_BAD |
| 789 |
along with the |
| 790 |
details. Oops. Now it shows. |
| 791 |
2020-08-23: David Anderson |
| 792 |
* dwarf_form.c: Slightly changed the error message |
| 793 |
for an error in DW_FORM_strp. |
| 794 |
2020-08-23: David Anderson |
| 795 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 796 |
dwarf_names_new.h,libdwarf_version.h: Updated version |
| 797 |
string, regenerated files that reference it. |
| 798 |
2020-08-23: David Anderson |
| 799 |
* dwarf_form.c,dwarf_generic_init.c,dwarf_loc.c, |
| 800 |
dwarf_loc.h,dwarf_loclists.c,dwarf_query.c, dwarf_rnglists.c, |
| 801 |
pro_opaque.h: Remove trailing whitespace. Fix indents. |
| 802 |
2020-08-23: David Anderson |
| 803 |
* dwarf_form.c: In case an strp offset seems wrong |
| 804 |
we get a more detailed error message. |
| 805 |
* dwarf_macro5.c: Deleted gratuitous blank line. |
| 806 |
2020-08-22: David Anderson |
| 807 |
* dwarf_loc.c,dwarf_rnglists.c: call |
| 808 |
_dwarf_look_in_local_and_tied_by_index |
| 809 |
not _dwarf_extract_address_from_debug_addr so |
| 810 |
.debug_addr in the tied file will be found. |
| 811 |
* dwarf_opaque.h,dwarf_query.c: Make |
| 812 |
_dwarf_look_in_local_and_tied_by_index global,not |
| 813 |
_dwarf_extract_address_from_debug_addr. |
| 814 |
2020-08-22: David Anderson |
| 815 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 816 |
dwarf_names_new.h,libdwarf_version.h: Updated version |
| 817 |
string, regenerated files that reference it. |
| 818 |
2020-08-21: David Anderson |
| 819 |
* dwarf_init_finish.c(insert_sht_list_in_group_map): |
| 820 |
Added checks of dss_data_was_malloc around |
| 821 |
a couple of calls saying free(secdata.dss_data). |
| 822 |
The missing checks could only result in duplicate |
| 823 |
free with user calls that allocated their |
| 824 |
own section data to load a section and a certain |
| 825 |
error arising during the call. |
| 826 |
* dwarf_loc.c: To elminate ambiguity, renamed |
| 827 |
some fields from lowpc to rawlowpc (for example). |
| 828 |
* dwarf_loclists.c(build_array_of_lle): Removed |
| 829 |
a block of code duplicating work done in dwarf_loc.c. |
| 830 |
Fixed arguments passing ld_lopc, ld_highpc |
| 831 |
to pass ld_rawlow, ld_rawhigh for correctness. |
| 832 |
2020-08-21: David Anderson |
| 833 |
* libdwarf2.1.mm: Rev 3.07. Corrected quote mismatches |
| 834 |
in the mm commands, and a couple of stray |
| 835 |
characters after a .P command |
| 836 |
* libdwarf2.1.pdf: Rev 3.07. Regenerated. |
| 837 |
2020-08-18: David Anderson |
| 838 |
* checkexamples.c: Corrected example_rnglist_for_attribute() |
| 839 |
example. |
| 840 |
* dwarf_ranges.c: Corrected a comment and removed #if 0 |
| 841 |
code as it is obsolete. |
| 842 |
* dwarf_rnglists.c(dwarf_get_rnglists_entry_fields_a): |
| 843 |
Allow the pointer-arguments used to return data to |
| 844 |
the caller to be null pointers safely, as libdwarf2.1.pdf |
| 845 |
suggested that was legal. |
| 846 |
* libdwarf2.1.mm: Version 3.06. Corrected the example |
| 847 |
calling dwarf_get_rnglists_entry_fields_a(). |
| 848 |
* libdwarf2.1.pdf: Regenerated, Version 3.06 |
| 849 |
|
| 850 |
|
| 851 |
2020-08-10: David Anderson |
| 852 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 853 |
dwarf_names_new.h,libdwarf_version.h: Updated version |
| 854 |
string, regenerated files that reference it. |
| 855 |
2020-08-10: David Anderson |
| 856 |
* dwarf_elf_defines.h,dwarf_elfread.c: A linux kernel used a |
| 857 |
R_X86_64_NONE (which means ignore the relocation) and |
| 858 |
now we deal with it properly for EM_X86_64. |
| 859 |
2020-08-02: David Anderson |
| 860 |
* dwarf_alloc.c: Added a constructor for Dwarf_Locdesc_c |
| 861 |
(DW_DLA_LOCDESC_C) so fields ld_lle_value and |
| 862 |
ld_kind get non-zero and |
| 863 |
erroneous initial values so |
| 864 |
the values can be checked later for correctness. |
| 865 |
* dwarf_errmsg_list.h: Added error DW_DLE_LOCATION_ERROR. |
| 866 |
* dwarf_loc.c: Now we rigorously set and check the fields |
| 867 |
ld_lle_value and ld_kind. |
| 868 |
_dwarf_locdesc_c_constructor() sets those two fields |
| 869 |
so we can check correctness and in case of error, |
| 870 |
report the details. |
| 871 |
* dwarf_loc.h: Added constructor prototype and a special |
| 872 |
DW_LLE_VALUE_BOGUS initial value (invisible to |
| 873 |
library callers). |
| 874 |
* dwarf_loclists.c: After malloc use the Dwarf_Locdesc_c |
| 875 |
constructor so later error checking possible. |
| 876 |
* libdwarf.h.in: Added error DW_DLE_LOCATION_ERROR. |
| 877 |
* libdwarf2.1.mm: Rev 3.05. Additional detail on |
| 878 |
return values for dwarf_get_locdesc_entry_d() |
| 879 |
and documented dwarf_get_locdesc_entry_c() |
| 880 |
(recommending use of dwarf_get_locdesc_entry_d() |
| 881 |
instead) |
| 882 |
* libdwarf2.1.pdf: Rev 3.05. Regenerated. |
| 883 |
2020-07-28: David Anderson |
| 884 |
* dwarf_locationop_read.c: Added DW_OP_GNU_variable_value. |
| 885 |
* dwarf_names.c, dwarf_names_enum.h: Regenerated. |
| 886 |
* dwarf.h: Added in GNU names that had been accidentally |
| 887 |
ommitted: DW_AT_GNU_deleted,DW_AT_GNU_locviews, |
| 888 |
DW_AT_GNU_entry_view,DW_OP_GNU_variable_value. |
| 889 |
These caused the regeneration of dwarf_names.h. |
| 890 |
2020-07-22: David Anderson |
| 891 |
* dwarf_abbrev.c,dwarf_debug_names.c, dwarf_debuglink.c, |
| 892 |
dwarf_dsc.c,dwarf_error.c,dwarf_form.c,dwarf_funcs.c, |
| 893 |
dwarf_gdbindex.c,dwarf_harmless.c,dwarf_init_finish.c, |
| 894 |
dwarf_leb.c,dwarf_leb_test.c,dwarf_line.c,dwarf_macro.c, |
| 895 |
dwarf_macro5.c,dwarf_original_elf_init.c,dwarf_pubtypes.c, |
| 896 |
dwarf_str_offsets.c,dwarf_stringsection.c,dwarf_stubs.c, |
| 897 |
dwarf_test_errmsg_list.c,dwarf_types.c,dwarf_vars.c, |
| 898 |
dwarf_weaks.c,dwarf_xu_index.c,gennames.c,malloc_check.c, |
| 899 |
pro_arange.c,pro_encode_nm.c,pro_error.c,pro_finish.c, |
| 900 |
pro_forms.c,pro_funcs.c,pro_line.c,pro_macinfo.c, |
| 901 |
pro_pubnames.c,pro_reloc.c,pro_reloc_stream.c, |
| 902 |
pro_reloc_symbolic.c,pro_types.c,pro_vars.c,pro_weaks.c: |
| 903 |
Updated copyright date. Reformatted copyright to |
| 904 |
have slightly shorter lines, no change in content. |
| 905 |
2020-07-22: David Anderson |
| 906 |
* libdwarf2.1.mm: Now Rev 3.04. Revised the |
| 907 |
Error Handling section for greater clarity. |
| 908 |
Revised dwarf_init_path() to correct formatting |
| 909 |
errors. |
| 910 |
* libdwarf2.1.pdf: Regenerated as rev 3.04 . |
| 911 |
* dwarf_generic_init.c(dwarf_init_pathh): Removed |
| 912 |
the error-handling so when the call fails the |
| 913 |
Dwarf_Debug argument is not touched. |
| 914 |
For the PE case return the DW_DLV_ERROR or |
| 915 |
DW_DLV_NO_ENTRY (return left off by accident). |
| 916 |
* dwarf_arange.c: Reformatted the copyright |
| 917 |
to have shorter lines. |
| 918 |
2020-07-17: David Anderson |
| 919 |
* libdwarf/libdwarf_version.h: Version string updated. |
| 920 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 921 |
dwarf_names_new.h,libdwarf_version.h : regenerated |
| 922 |
with latest version string |
| 923 |
2020-07-17: David Anderson |
| 924 |
* dwarf_frame.c: rearrange comments a little and |
| 925 |
add a web reference as documentation. |
| 926 |
* pro_debug_sup.c,pro_section.c: Remove trailing |
| 927 |
whitespace. Fix indents. |
| 928 |
2020-07-15: David Anderson |
| 929 |
* dwarf_alloc.c: Improved printf if DEBUG |
| 930 |
is turned on, with #undef DEBUG in source so |
| 931 |
necessary to modify the source and rebuild |
| 932 |
to get the voluminous alloc/dealloc debugging |
| 933 |
printf turned on. |
| 934 |
2020-07-14: David Anderson |
| 935 |
* libdwarf2.1.mm: Version 3.02. Documents the new call |
| 936 |
dwarf_get_debug_sup() to access the DWARF5 |
| 937 |
.debug_sup section. |
| 938 |
* libdwarf2p.1.mm: Version 1.51. Documents the new |
| 939 |
call dwarf_add_debug_sup() to create the DWARF5 |
| 940 |
.debug_sup section. |
| 941 |
* libdwarf2.1.pdf,libdwarf2p.1.pdf: Regenerated. |
| 942 |
2020-07-14: David Anderson |
| 943 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 944 |
dwarf_names_new.h,libdwarf_version.h: Regenerated |
| 945 |
with new version string. |
| 946 |
2020-07-13: David Anderson |
| 947 |
* CMakeLists.txt, Makefile.am: Added dwarf_debug_sup.c |
| 948 |
* Makefile.in: Regenerated. |
| 949 |
* dwarf_errmsg_list.h: Added DW_DLE_DEBUG_SUP_STRING_ERROR |
| 950 |
and DW_DLE_DEBUG_SUP_ERROR. |
| 951 |
* dwarf_names.c dwarf_names_enum.h: Reflects correction |
| 952 |
of value of |
| 953 |
DW_GNUIVIS_static (a new non-standard name in dwarf.h) |
| 954 |
* generated_libdwarf.h.in,libdwarf.h.in: With the |
| 955 |
two new errors and declaration of |
| 956 |
dwarf_add_debug_sup() to produce .debug_sup |
| 957 |
and dwarf_get_debug_sup() to retrieve the section values.. |
| 958 |
* pro_finish.c: Support for creating .debug_sup. |
| 959 |
* pro_opaque.h: Support for creating .debug_sup. |
| 960 |
* pro_section.c: Support for creating .debug_sup. |
| 961 |
* dwarf_debug_sup.c: New, for .debug_sup access. |
| 962 |
* pro_debug_sup.c: New. for .debug_sup creation. |
| 963 |
2020-07-10: David Anderson |
| 964 |
* dwarf_die_deliv.c: Handle |
| 965 |
DW_AT_GNU_ranges_base in a CU DIE. |
| 966 |
* dwarf_opaque.h: Added 2lines of comment |
| 967 |
about cc_debug_offset. |
| 968 |
* dwarf_query.c(_dwarf_get_ranges_base_attr_value): |
| 969 |
Simplified as the cu_context |
| 970 |
has the base values, no need to read |
| 971 |
DIEs/Attributes here. |
| 972 |
2020-07-09: David Anderson |
| 973 |
* dwarf_opaque.h: Changing a comment about libdwarf |
| 974 |
and the tied file (if any). |
| 975 |
2020-07-08: David Anderson |
| 976 |
* libdwarf2.1.mm: Added documentation of |
| 977 |
.debug_gnu_pybtypes and .debug_gnu_pubnames. |
| 978 |
See dwarf_get_gnu_index_head() in the document. |
| 979 |
# libdwarf2.1.pdf: Regenerated. Rev 3.01 |
| 980 |
2020-07-08: David Anderson |
| 981 |
* dwarf_init_finish.c: setup of .debug_names was |
| 982 |
done twice (not harmful but the duplicate removed now). |
| 983 |
2020-07-08: David Anderson |
| 984 |
* dwarf_elf_load_headers.c,dwarf_gdbindex.c,dwarf_gnu_index.c, |
| 985 |
dwarf_gnu_index.h,dwarf_init_finish.c, |
| 986 |
dwarf_locationop_read.c: Fixed indents and trailing |
| 987 |
whitespace. |
| 988 |
2020-07-08: David Anderson |
| 989 |
* dwarf.h: Fixed error in DW_GNUIVIS values. |
| 990 |
* dwarf_debug_names.h: Arranging shorter |
| 991 |
lines in a block of comments. |
| 992 |
* dwarf_elfread.c( find_section_to_relocate): Added |
| 993 |
de_debug_gnu_pubnames, de_dbug_gnu_pubtypes to sections |
| 994 |
that can have relocations (in a dwo.o before linking). |
| 995 |
* dwarf_gnu_index.c: Now loads debug_info so that |
| 996 |
in near future correctness of offsets in |
| 997 |
.debug_gnu_pubnames/pubtypes can be checked. |
| 998 |
2020-07-08: David Anderson |
| 999 |
* dwarf_gnu_index.c: Remove debug printf. Small corrections |
| 1000 |
to the section reading. |
| 1001 |
2020-07-06: David Anderson |
| 1002 |
* dwarf_loc.c: Too-long lines in comments adjusted shorter. |
| 1003 |
* dwarf_loc.h: Renamed _dwarf_free_loclists_head to |
| 1004 |
_dwarf_free_loclists_head_content for clarity. |
| 1005 |
* dwarf_loclists.c: Deleted dead code. Renamed that |
| 1006 |
function here too. Corrected a bug in |
| 1007 |
_dwarf_free_loclists_head() |
| 1008 |
* dwarf_gnu_index.c,dwarf_gnu_index.h: New files |
| 1009 |
to handle sections .debug_gnu_pubnames and |
| 1010 |
.debug_gnu_pubtypes |
| 1011 |
* dwarf_init_finish.c: Added the new sections to |
| 1012 |
enter_section_in_de_debug_sections_array(). |
| 1013 |
* CMakeLists.txt,Makefile.am: Added dwarf_gnu_index.c and |
| 1014 |
dwarf_gnu_index.h |
| 1015 |
* Makefile.in: Regenerated. |
| 1016 |
* dwarf.h: Added new nonstandard DW_GNUIVIS* and |
| 1017 |
DW_GNUIKIND* in support of these sections. |
| 1018 |
* dwarf_alloc.c: New record type DW_DLA_GNU_INDEX_HEAD |
| 1019 |
for these new sections. |
| 1020 |
* dwarf_errmsg_list.h: New errors |
| 1021 |
* dwarf_names.c, dwarf_names.h: Regenerated with |
| 1022 |
DW_GNUIVIS and DW_GNUIKIND name functions. |
| 1023 |
* dwarf_names_enum.h: Regenerated this too. |
| 1024 |
* dwarf_names_new.h: Regenerated this. |
| 1025 |
* libdwarf.h.in: Added Dwarf_Gnu_Index_Head type |
| 1026 |
and new functions and new error codes. Dropped |
| 1027 |
a dead DLA type and assigned it to be for |
| 1028 |
DW_DLA_GNU_INDEX_HEAD. Added new functions |
| 1029 |
dwarf_get_gnu_index_head() |
| 1030 |
dwarf_gnu_index_dealloc() |
| 1031 |
dwarf_get_gnu_index_block() |
| 1032 |
dwarf_get_gnu_index_block_entry() allowing |
| 1033 |
access to the data in .debug_gnu_pubtypes |
| 1034 |
and .debug_gu_pubnames. |
| 1035 |
* generated_libdwarf.h.in: Regenerated. |
| 1036 |
2020-07-04: David Anderson |
| 1037 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1038 |
dwarf_names_new.h,libdwarf_version.h: new version string. |
| 1039 |
2020-07-03: David Anderson |
| 1040 |
* CMakeLists.txt, Makefile.am: renamed dwarf_dnames.h -> |
| 1041 |
dwarf_debug_names.h and dwarf_dnames.c to |
| 1042 |
dwarf_debug_names.c. |
| 1043 |
* Makefile.in: Regenerated. |
| 1044 |
* dwarf_alloc.c, dwarf_debug_names.c: Include |
| 1045 |
name updated dwarf_dnames.h to dwarf_debug_names.h . |
| 1046 |
* dwarf_elfread.c(_dwarf_elf_object_access_internals_init): |
| 1047 |
In case of a null gh_namestring we notice and skip |
| 1048 |
over it. |
| 1049 |
* dwarf_init_finish.c(_dwarf_load_section): Added to |
| 1050 |
the comment on zero-size sections. |
| 1051 |
2020-07-02: David Anderson |
| 1052 |
* dwarf_gdbindex.h: Removed gdbindex_offset_type typedef |
| 1053 |
as it is not used anywhere. |
| 1054 |
* dwarf_global.c(dwarf_get_cu_die_offset_given_cu_header_offset): |
| 1055 |
Updated a commment to reflect handling of DWARF5 and more. |
| 1056 |
* dwarf_util.h: Removed SKIP_LEB128_WORD_CK as it |
| 1057 |
is no longer used and replaced by a better function. |
| 1058 |
* dwarf_query.c: Removed comment about that macro. |
| 1059 |
* dwarf_form.c: Revised the commentary on |
| 1060 |
DW_AT_str_offsets_base to match the final DWARF5. |
| 1061 |
2020-07-02: David Anderson |
| 1062 |
* libdwarf.h.in: Added DW_DLE_GDBINDEX_STRING_ERROR. |
| 1063 |
* generated-libdwarf.h.in: Regenerated. |
| 1064 |
* dwarf_errmsg_list.h: Added DW_DLE_GDBINDEX_STRING_ERROR. |
| 1065 |
* dwarf_gdbindex.c(dwarf_gdbindex_addressarea_entry): Now |
| 1066 |
checks its arguments and the return string for problems. |
| 1067 |
2020-07-01: David Anderson |
| 1068 |
* libdwarf.h.in: Comment now deprecates |
| 1069 |
dwarf_get_loclist_entry(). |
| 1070 |
* generated_libdwarf.h.in: regenerated. |
| 1071 |
* libdwarf2.1.mm: Deprecates dwarf_get_loclist_entry(). |
| 1072 |
* libdwarf2.1.pdf: Regenerated, version 2.99. |
| 1073 |
* dwarf_locationop_read.c: Pass real address-size to |
| 1074 |
read_encoded_addr() so it will work properly. |
| 1075 |
2020-06-29: David Anderson |
| 1076 |
* dwarf_elf_load_headers.c: Added sanity checks |
| 1077 |
on section size of the section strings and |
| 1078 |
the symbol strings. |
| 1079 |
All the section-size errors now use |
| 1080 |
the new error code DW_DLE_SECTION_SIZE_OR_OFFSET_LARGE. |
| 1081 |
* dwarf_errmsg_list.h: Added string for |
| 1082 |
DW_DLE_SECTION_SIZE_OR_OFFSET_LARGE. |
| 1083 |
* libdwarf.h.in: Added DW_DLE_SECTION_SIZE_OR_OFFSET_LARGE. |
| 1084 |
* generated_libdwarf.h.in: Regenerated. |
| 1085 |
2020-06-29: David Anderson |
| 1086 |
* libdwarf_version.h: updated version string. |
| 1087 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1088 |
dwarf_names_new.h: Regenerated. |
| 1089 |
2020-06-29: David Anderson |
| 1090 |
* dwarf_elfread.c: Added checks on section sizes |
| 1091 |
and offsets to ensure they don't exceed file size |
| 1092 |
(but only check when we try to read them, we |
| 1093 |
want to read dwarf even if sections we do not |
| 1094 |
care about have damaged section headers). |
| 1095 |
* dwarf_peread.c: Fixed indentation mistake. |
| 1096 |
2020-06-28: David Anderson |
| 1097 |
* dwarf_elf_defines.h: Adding R_386_GOTPC |
| 1098 |
so we don't rely on /usr/include to have the |
| 1099 |
ones we need. |
| 1100 |
* dwarf_elf_rel_detector.c: Adding R_386_GOTPC |
| 1101 |
to identify the relocation as 32bit. |
| 1102 |
2020-06-27: David Anderson |
| 1103 |
* dwarf_alloc.c(_dwarf_free_all_of_one_debug): If space |
| 1104 |
for debug_rnglists or |
| 1105 |
debug_loclists was malloc'd (relocations |
| 1106 |
or compressed sections force malloc) we |
| 1107 |
now call the function that frees that |
| 1108 |
data. That function renamed: |
| 1109 |
rela_free->malloc_section_free. |
| 1110 |
2020-06-25: David Anderson |
| 1111 |
* dwarf_loc.c: Corrected indents. |
| 1112 |
* dwarf_loclists.c: Corrected indents, removed |
| 1113 |
trailing whitespace. |
| 1114 |
* dwarf_peread.c: Removed trailing whitespace. |
| 1115 |
* dwarf_rnglists.c: Removed trailing whitespace. |
| 1116 |
* libdwarf2.1.mm: Rev 2.98. Added documentation |
| 1117 |
on the .debug_names section printing functions. |
| 1118 |
These intended for debugging .debug_names |
| 1119 |
(that is, by dwarfdump), |
| 1120 |
not things user code are likely to want to use. |
| 1121 |
Documented the new function |
| 1122 |
dwarf_get_rnglists_entry_fields_a() as the original |
| 1123 |
dwarf_get_rnglists_entry_fields() |
| 1124 |
(which is still there and works as well as before) |
| 1125 |
left off a field important to callers. |
| 1126 |
* libdwarf2.1.pdf: Rev 2.98. Regenerated. |
| 1127 |
2020-06-22: David Anderson |
| 1128 |
* dwarf_loc.c: Using knowledge of the base address status |
| 1129 |
improve messaging while reducing execution time. |
| 1130 |
* dwarf_loclists.c: Properly deal with setting |
| 1131 |
up for output in case .debug_addr missing (fixing |
| 1132 |
an omission). |
| 1133 |
* dwarf_peread.c: In load_optional_header64() we were |
| 1134 |
failing to read hdr.ImageBase which caused addresses |
| 1135 |
to be wrong (base address needed to be set). |
| 1136 |
* dwarf_rnglists.c: Based on knowledge of lack/presence |
| 1137 |
of .debug_addr improve messaging and reduce |
| 1138 |
cpu-time spent. |
| 1139 |
* dwarf_rnglists.h: Added 2 line commentary. |
| 1140 |
* libdwarf.h.in,generated_libdwarf.h.in: Added |
| 1141 |
dwarf_get_rnglists_entry_fields_a(), the original |
| 1142 |
function was inadequate. |
| 1143 |
2020-06-19: David Anderson |
| 1144 |
* dwarf_reloc_x86_64.hr,dwarf_reloc_x86_64.h: Added in |
| 1145 |
R_X86_64_PC64 relocation as llvm is using it. |
| 1146 |
2020-06-17: David Anderson |
| 1147 |
* dwarf_elf_load_headers.c: Catch a potential division by |
| 1148 |
zero error. |
| 1149 |
* dwarf_peread.c: Added comments. |
| 1150 |
2020-06-17: David Anderson |
| 1151 |
* dwarf_loclists.c, dwarf_rnglists.c: Rename |
| 1152 |
length_size->offset_size |
| 1153 |
for clarity and correct the computation of the |
| 1154 |
length of the offsets array. |
| 1155 |
2020-06-17: David Anderson |
| 1156 |
* dwarf_die_deliv.c: Pick up CU DIE base fields |
| 1157 |
always. Not just for DWARF4,5. |
| 1158 |
* dwarf_loc.c: Clarify the flow. A comment added. |
| 1159 |
* dwarf_form.c: Added missing DW_FORM_loclistx from |
| 1160 |
a switch. |
| 1161 |
2020-06-16: David Anderson |
| 1162 |
* dwarf_query.c, dwarf_util.c: Remove trailing whitespace. |
| 1163 |
Changed indents and line lengths in a small area to match |
| 1164 |
the usual look. |
| 1165 |
2020-06-16: Jorge Gorbe Moya |
| 1166 |
* dwarf_query.c, dwarf_util.c: Correct the handling |
| 1167 |
of DW_UT initializations. |
| 1168 |
2020-06-16: David Anderson |
| 1169 |
* dwarf_die_deliv.c,dwarf_frame2.c,dwarf_loc.c: |
| 1170 |
Remove trailing whitespace. |
| 1171 |
2020-06-14: David Anderson |
| 1172 |
* libdwarf1.1.mm: Added examples to the Error Handling |
| 1173 |
section as the previous version was pretty vague |
| 1174 |
about the best way to call libdwarf to deal |
| 1175 |
with errors. |
| 1176 |
* libdwarf1.1.pdf: Generated version 2.97. |
| 1177 |
|
| 1178 |
2020-06-14: David Anderson |
| 1179 |
* dwarf_die_deliv.c: Adds the highest known |
| 1180 |
abbrev code to certain error messages. |
| 1181 |
* dwarf_die_deliv.h: Corrected a comment. |
| 1182 |
* dwarf_frame2.c: Now uses (uintptr_t) to avoid |
| 1183 |
warnings from certain compiler/pointer-size |
| 1184 |
environments. |
| 1185 |
* dwarf_loc.c: Update the loclist head |
| 1186 |
structure ll_bytes_total |
| 1187 |
field with DWARF 2,3,4 loclists too. |
| 1188 |
* dwarf_opaque.h: Add cc_highest_known_code |
| 1189 |
to Dwarf_CU_Context_s for better |
| 1190 |
error reporting and align some field names |
| 1191 |
for a better appearance. |
| 1192 |
* dwarf_query.c: Improved error reporting |
| 1193 |
when an abbrev code missing. |
| 1194 |
* dwarf_util.c: Keep track of highest abbrev |
| 1195 |
code seen (per compilation unit). |
| 1196 |
* dwarf_util.h: Internal function declaration |
| 1197 |
changed to allow reporting of highest |
| 1198 |
abbrev code. |
| 1199 |
2020-06-12: David Anderson |
| 1200 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1201 |
dwarf_names_new.h,libdwarf_version.h: updated |
| 1202 |
version string. |
| 1203 |
2020-06-12: David Anderson |
| 1204 |
* checkexamples.c,dwarf_alloc.c,dwarf_arange.c, |
| 1205 |
dwarf_frame.c,dwarf_line.c,dwarf_line_table_reader_common.h, |
| 1206 |
dwarf_loc.c,dwarf_loc.h,dwarf_locationop_read.c, |
| 1207 |
dwarf_loclists.c,dwarf_query.c,dwarf_rnglists.c, |
| 1208 |
dwarf_util.c,libdwarf.h.in: Fixed indents |
| 1209 |
and removed trailing whitespace. |
| 1210 |
2020-06-12: David Anderson |
| 1211 |
* dwarf_alloc.c: Added free of loclists to |
| 1212 |
_dwarf_free_all_of_one_debug(). |
| 1213 |
* dwarf_loc.c: Created _dwarf_free_op_chain() |
| 1214 |
and call it so even in case of error nothing leaks. |
| 1215 |
Some adjustments to indents. |
| 1216 |
* dwarf_loclists.c: _dwarf_dealloc_loclists -> |
| 1217 |
_dwarf_dealloc_loclists_context for clarity. |
| 1218 |
Modified _dwarf_free_loclists_head() to get |
| 1219 |
leak-free behavior. |
| 1220 |
* dwarf_opaque.h: Reflects above name change. |
| 1221 |
* libdwarf2.1.mm: Corrected and amplified |
| 1222 |
words on the new functions. |
| 1223 |
* libdwarf2.1.pdf: Regenerated. |
| 1224 |
2020-06-10: David Anderson |
| 1225 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1226 |
dwarf_names_new.h,libdwarf/libdwarf_version.h: |
| 1227 |
updated version string. |
| 1228 |
2020-06-09: David Anderson |
| 1229 |
* CMakeLists.txt,Makefile.am : Deleted dwarf_loc2.h reference. |
| 1230 |
Added dwarf_locationop_read.c, dwarf_loclists.c. |
| 1231 |
* Makefile.in: Regenerated. |
| 1232 |
* dwarf_alloc.c: Corrected a comment about reserved numbers. |
| 1233 |
Reflects name change from struct Dwarf_Loc_c_s to |
| 1234 |
struct Dwarf_Loc_Expr_Op_s. |
| 1235 |
* dwarf_errmsg_list.h: Added DW_DLE_LOCLISTS_ERROR. |
| 1236 |
* dwarf_form.c: Added arguments to the library |
| 1237 |
internal function _dwarf_formblock_internal() |
| 1238 |
for better support of DWARF5 loclist creation. |
| 1239 |
* dwarf_frame2.c: Changed a local from unsigned |
| 1240 |
to Dwarf_Unsigned as well as changing pointer |
| 1241 |
casts from 'unsigned long' to Dwarf_Unsigned. |
| 1242 |
* dwarf_loc.c: Lots of refactoring to make |
| 1243 |
the flow easier to understand. |
| 1244 |
Moved _dwarf_read_loc_expr_op() to |
| 1245 |
a new file dwarf_locationop_read.c as the |
| 1246 |
function is quite large. |
| 1247 |
Renamed other functions so the names are not |
| 1248 |
so much alike. |
| 1249 |
* dwarf_loc.h: New fields in Dwarf_Loc_Chain_s |
| 1250 |
to support the raw vs. cooked values of location |
| 1251 |
low/high. New fields to support DWARF 5 loclists |
| 1252 |
* dwarf_loc2.h: Deleted. Relevant contents in |
| 1253 |
dwarf_loc.c and dwarf_loclists.c |
| 1254 |
* dwarf_locationop_read.c: Existing code |
| 1255 |
to read location ops refactored to a routine |
| 1256 |
by themselves. Long enough by itself |
| 1257 |
* dwarf_loclists.c: New file with .debug_loclists |
| 1258 |
support. |
| 1259 |
* dwarf_loclists.h: Nothing here. will be deleted. |
| 1260 |
* dwarf_opaque.h: New functions and arguments |
| 1261 |
for internal debug_loclists data. |
| 1262 |
* dwarf_rnglists.c: Changed certain arguments |
| 1263 |
to Dwarf_Half (address_size etc) where that |
| 1264 |
makes sense. |
| 1265 |
* dwarf_util.c: Now dwarf_load_debug_info() |
| 1266 |
loads the base data from .debug_rnglists |
| 1267 |
and .debug_loclists (DWARF5) |
| 1268 |
* libdwarf.h.in: 'unsigned' now 'unsigned int' |
| 1269 |
existing function unchanged: dwarf_get_loclist_c() |
| 1270 |
new function dwarf_get_locdesc_entry_d() |
| 1271 |
new function dwarf_get_loclist_head_basics() |
| 1272 |
new function dwarf_get_location_op_value_d() |
| 1273 |
new function dwarf_get_loclist_head_kind() |
| 1274 |
- Following for printing raw loclists, not |
| 1275 |
usually used. |
| 1276 |
new function dwarf_load_loclists() |
| 1277 |
new function dwarf_get_loclist_context_basics() |
| 1278 |
new function dwarf_get_loclist_lle() |
| 1279 |
new function dwarf_get_loclist_offset_index_value() |
| 1280 |
new function dwarf_get_loclist_raw_entry_detail() |
| 1281 |
* libdwarf2.1.mm: 2.96, documents the new calls. |
| 1282 |
* libdwarf2.1.pdf: Version 2.96. |
| 1283 |
2020-05-23: David Anderson |
| 1284 |
* dwarf_opaque.h: Defines DWARFSTRING_ALLOC_SIZE 200 |
| 1285 |
* dwarf_form.c: Using DWARFSTRING_ALLOC_SIZE for the |
| 1286 |
initial allocation, (mostly) avoiding the need |
| 1287 |
for malloc here. dwarfstring is mainly used |
| 1288 |
for error messages, so preallocation is rarely useful |
| 1289 |
* dwarf_line.c(create_fullest_file_path): Corrected |
| 1290 |
the comments for this function. |
| 1291 |
2020-05-22: David Anderson |
| 1292 |
* dwarf_alloc.c: New functions with proper type checking: |
| 1293 |
dwarf_dealloc_error(), dwarf_dealloc_attribute(), |
| 1294 |
dwarf_dealloc_die(). |
| 1295 |
* dwarf_arange.c: Now does correct free_aranges_chain() |
| 1296 |
and ensures chain entry stuff dealloc-d as appropriate. |
| 1297 |
* dwarf_die_deliv.c: Improved an error message in reports |
| 1298 |
an address-size error. |
| 1299 |
* dwarf_frame.c: Initialize more local variables at the |
| 1300 |
point of declaration. Do all needed dealloc of |
| 1301 |
the chain entries |
| 1302 |
when creating the list. |
| 1303 |
* dwarf_global.c: Now uses the new ch_itemtype |
| 1304 |
to dealloc properly. Which simplifies the |
| 1305 |
dealloc_globals_chain() call. |
| 1306 |
* dwarf_line.c: Now uses the new ch_itemtype |
| 1307 |
to dealloc properly. |
| 1308 |
* dwarf_line_table_reader_common.h: Now uses wrappers |
| 1309 |
for the READ_UNALIGNED_CK DECODE_LEB128_UWORD_CK etc |
| 1310 |
macros so the code |
| 1311 |
now deallocs appropriately in case of error. |
| 1312 |
Most places were not doing full dealloc. Now |
| 1313 |
all are. |
| 1314 |
* dwarf_opaque.h: New field ar_dbg so attribute |
| 1315 |
dealloc is easier. New chain field ch_itemtype |
| 1316 |
so dealloc is simpler and safer. |
| 1317 |
* dwarf_query.c: Removed comment about leaking memory, |
| 1318 |
the leaks are fixed by using the DECODE_LEB128_UWORD_CK |
| 1319 |
etc wrapper functions. |
| 1320 |
* libdwarf.h.in: Declares the new dealloc functions |
| 1321 |
dwarf_dealloc_error(),dwarf_dealloc_die(), |
| 1322 |
dwarf_dealloc_attribute(). |
| 1323 |
* generated_libdwarf.h.in: Regenerated. |
| 1324 |
* libdwarf2.1.mm: New documentation of dwarf_dealloc() |
| 1325 |
as well as documentation of |
| 1326 |
dwarf_dealloc_error(),dwarf_dealloc_die(), |
| 1327 |
dwarf_dealloc_attribute(). |
| 1328 |
* libdwarf2.1.pdf: Regenerated. Version 2.94. |
| 1329 |
2020-05-19: David Anderson |
| 1330 |
* dwarf_rnglists.c: Ommited a crucial assign to rh_debug so it |
| 1331 |
leaked if de_alloc_tree absent. |
| 1332 |
2020-05-19: David Anderson |
| 1333 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h,dwarf_names_new.h, |
| 1334 |
libdwarf_version.h : New version strings. |
| 1335 |
2020-05-19: David Anderson |
| 1336 |
* libdwarf.h.in: Revised a couple rnglists functions |
| 1337 |
by removing unneeded arguments and revising the arguments |
| 1338 |
to dwarf_rnglists_offset_get_rle_head(), |
| 1339 |
dwarf_get_rnglist_head_basics(), and |
| 1340 |
dwarf_get_rnglists_entry_fields() |
| 1341 |
* generated_libdwarf.h.in: Regenerated. |
| 1342 |
* dwarf_rnglists.c: Checked a pointer argument for null before using. |
| 1343 |
Remove the unneeded function arguments (affecting several internal |
| 1344 |
functions too). Renamed a few internal things for clarity. |
| 1345 |
* libdwarf2.1.mm: Documented the new rnglists functions |
| 1346 |
and added examples of use. |
| 1347 |
* libdwarf2.1.pdf: Regenerated. Version 2.93. |
| 1348 |
2020-05-17: David Anderson |
| 1349 |
* dwarf_dnames.c: Improved error reporting of the names generation |
| 1350 |
when something goes wrong. |
| 1351 |
* dwarf_elf_access.c,dwarf_elfread.c: Add MATCH_REL_SEC |
| 1352 |
for the .debug_addr section. |
| 1353 |
* dwarf_form.c: Improved error reporting by showing specific details. |
| 1354 |
Now supports DW_FORM_rnglistx. New function |
| 1355 |
dwarf_addr_form_is_indexed(theform) created, now using |
| 1356 |
it here and in dwarfdump as needed.. |
| 1357 |
* dwarf_line_table_reader_common.h: Corrected indents. |
| 1358 |
* dwarf_opaque.h: Small commentary changes, added the |
| 1359 |
CU Context field cc_dwo_name_present (used for |
| 1360 |
non-standard DWARF4). |
| 1361 |
* dwarf_query.c: Simplified some pointlessly messy code. |
| 1362 |
Now also using dwarf_addr_form_is_indexed() instead of |
| 1363 |
a list missing some DWARF5 values. |
| 1364 |
* dwarf_ranges.c: #if 0 some useless code for now. |
| 1365 |
* dwarf_rnglists.c: The .debug_rnglists code is here. |
| 1366 |
* dwarf_rnglists.h: For use inside libdwarf. Opaque |
| 1367 |
to libdwarf callers. |
| 1368 |
* dwarf_tsearchhash.c: Trivial change. No logic change. |
| 1369 |
* dwarf_util.c: Removed pointless blank line. |
| 1370 |
* dwarf_util.h, dwarf_xu_index.h: Fix trailing whitespace. |
| 1371 |
* libdwarf.h.in: New functions and opaque types for reading |
| 1372 |
the .debug_rnglists section. |
| 1373 |
* generated_libdwarf.h.in: Regenerated. |
| 1374 |
2020-05-05: David Anderson |
| 1375 |
* dwarf_rnglists.h, dwarf_opaque.h, dwarf_rnglists.c: |
| 1376 |
Preliminary new fields/code for Rnglists_Context. |
| 1377 |
2020-05-04: David Anderson |
| 1378 |
* dwarf_alloc.c: renamed dwarf_dealloc_rnglists |
| 1379 |
to _dwarf_dealloc_rnglists. |
| 1380 |
* dwarf_errmsg_list.h: Added DW_DLE_RNGLISTS_ERROR. |
| 1381 |
* dwarf_opaque.h: Added _dwarf_dealloc_rnglists() prototype. |
| 1382 |
* dwarf_rnglists.c: Minor corrections of this new code. |
| 1383 |
* dwarf_rnglists.h: Added a new field for internal use. |
| 1384 |
Deleted some #if 0 lines. |
| 1385 |
* dwarf_util.c(_dwarf_load_debug_info): Now also |
| 1386 |
calls dwarf_load_rnglists as we need that in the |
| 1387 |
Dwarf_Debug. |
| 1388 |
* libdwarf.h.in: Added DW_DLE_RNGLISTS_ERROR. |
| 1389 |
Deleted dwarf_dealloc_rnglists as it is renamed |
| 1390 |
and made private to libdwarf. |
| 1391 |
* generated_libdwarf.h.in: Regenerated. |
| 1392 |
2020-05-02: David Anderson |
| 1393 |
* libdwarf2.1.mm: Added a note to Changes that |
| 1394 |
instances of 'length_size' in the code and headers |
| 1395 |
variable naming will, over time, be changed to |
| 1396 |
'offset_size' as this name suggests what they really |
| 1397 |
represent: a 4 or 8 byte offset size. |
| 1398 |
* libdwarf2.1.pdf: Regenerated, version 2.92 |
| 1399 |
2020-05-02: David Anderson |
| 1400 |
* CMakeLists.txt, Makefile.am: Added dwarf_rnglists.h, |
| 1401 |
dwarf_rnglists.c |
| 1402 |
* Makefile.in: Regenerated. |
| 1403 |
* dwarf_alloc.c: Now calls dwarf_dealloc_rnglists() at |
| 1404 |
finish to clean up rnglists data, if any. |
| 1405 |
* dwarf_arange.c: Deleted some blank lines and added one. |
| 1406 |
* dwarf_opaque.h: Added de_rnglists_context_count and |
| 1407 |
de_rnglists_context to support rnglists. |
| 1408 |
* dwarf_rnglists.h: Defines the Dwarf_Rnglists_Context |
| 1409 |
structure. |
| 1410 |
* dwarf_rnglists.c: Implements initial support of the |
| 1411 |
.debug_rnglists section. |
| 1412 |
* libdwarf.h.in: Declares new rnglist-related functions |
| 1413 |
and an opaque struct Dwarf_Rnglists_Context_s. |
| 1414 |
* generated_libdwarf.h.in: Regenerated. |
| 1415 |
2020-04-26: David Anderson |
| 1416 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1417 |
dwarf_names_new.h,libdwarf_version.h: Updated |
| 1418 |
version string. |
| 1419 |
2020-04-25: David Anderson |
| 1420 |
* dwarf_abbrev.c: Fix trailing whitespace. |
| 1421 |
* dwarf_arange.c: Delete macro READ_UNALIGNED_CK |
| 1422 |
use an just use _dwarf_read_unaligned_ck_wrapper. |
| 1423 |
* dwarf_die_deliv.c: Uses wrapper instead |
| 1424 |
of READ_UNALIGNED_CK where necessary. |
| 1425 |
Delete commented-out lines. |
| 1426 |
* dwarf_error.c: Remove unwanted debug code. |
| 1427 |
* dwarf_form.c: Remove trailing whitespace. |
| 1428 |
* dwarf_global.c: Rename some arguments for greater |
| 1429 |
clarity. |
| 1430 |
* dwarf_line.c: Fix line handling so both DW5 |
| 1431 |
and earlier handled better. Improve some error |
| 1432 |
messages. |
| 1433 |
* dwarf_macro5.c: Use wrapper() funcs, not |
| 1434 |
READ_UNALIGNED_CK and fix a couple local |
| 1435 |
variables so that works. |
| 1436 |
* dwarf_ranges.c: Remove trailing whitespace. |
| 1437 |
* dwarf_util.c: Remove trailing whitespace. |
| 1438 |
2020-04-24: David Anderson |
| 1439 |
* dwarf_die_deliv.c: Now using wrappers so that |
| 1440 |
errors do not lead to a temporary leak. |
| 1441 |
* dwarf_global.c: Now ensures that an error |
| 1442 |
in reading globals does not lead to temporary |
| 1443 |
leaks that rely on dwarf_finish() to clean up. |
| 1444 |
2020-04-24: David Anderson |
| 1445 |
* dwarf_names.c,dwarf_names.h, dwarf_names_enum.h, |
| 1446 |
dwarf_names_new.h, libdwarf_version.h: |
| 1447 |
updated version string. |
| 1448 |
2020-04-23: David Anderson |
| 1449 |
* dwarf_arange.c: Using new wrapper() code |
| 1450 |
so that the reader macros do not interfere |
| 1451 |
with doing appropriate dealloc. |
| 1452 |
* dwarf_util.c: Implement new wrapper functions |
| 1453 |
_dwarf_read_unaligned_ck_wrapper() and |
| 1454 |
_dwarf_read_area_length_ck_wrapper. |
| 1455 |
* dwarf_util.h: Declare the new functions. |
| 1456 |
2020-04-22: David Anderson |
| 1457 |
* libdwarf.h.in: Added DW_DLE_USER_DECLARED_ERROR |
| 1458 |
and the dwarf_error_creation() function that creates |
| 1459 |
the Dwarf_Error. |
| 1460 |
* generated_libdwarf.h.in: Regenerated. |
| 1461 |
2020-04-20: David Anderson |
| 1462 |
* dwarf_form.c: Split a too-long comment line. |
| 1463 |
2020-04-16: David Anderson |
| 1464 |
* dwarf_line_table_reader_common.h: more detailed error |
| 1465 |
messages in a few cases. |
| 1466 |
* dwarf_print_lines.c: Added dwarf_check_lineheader_b() |
| 1467 |
as dwarf_check_lineheader() did not return error |
| 1468 |
details. |
| 1469 |
* libdwarf.h.in: defined prototype for |
| 1470 |
dwarf_check_lineheader_b(); |
| 1471 |
* generated_libdwarf.h.in: regenerated. |
| 1472 |
2020-04-14: David Anderson |
| 1473 |
* libdwarf2.1.mm: Fixed wording |
| 1474 |
of dwarf_get_fde_info_for_cfa_reg3_b() |
| 1475 |
which had the 1/0 value of has_more_rows |
| 1476 |
backwards. |
| 1477 |
Corrected several misspellings. |
| 1478 |
* libdwarf2.1.pdf: Regenerated, v2.91. |
| 1479 |
2020-04-13: David Anderson |
| 1480 |
* dwarf_abbrev.c: Various errors now show additional detail |
| 1481 |
about what exactly is wrong. |
| 1482 |
2020-04-11: David Anderson |
| 1483 |
* dwarf_die_deliv.c,dwarf_xu_index.c: Each had |
| 1484 |
a single trailing space. Removed. |
| 1485 |
2020-04-11: David Anderson |
| 1486 |
* dwarf_global.c: Changed break to continue |
| 1487 |
so we don't stop the loop too early, yet |
| 1488 |
still avoid leaking a useless. |
| 1489 |
2020-04-10: David Anderson |
| 1490 |
* debug-cu-tu-indexes-layout.odg: The Split-Dwarf |
| 1491 |
(aka debugfission) table layout is simple, but |
| 1492 |
this is an introduction to the |
| 1493 |
layout of the arrays. LibreOffice Draw document. |
| 1494 |
* dwarf_init_finish.c: Small enhancements of error messages. |
| 1495 |
* dwarf_util.c: Reformatted a macro here |
| 1496 |
(READ_UNALIGNED_CK) so the lines are not so long |
| 1497 |
and the backslashes are easily seen as complete. |
| 1498 |
* dwarf_xu_index.c: There was some confusion in the |
| 1499 |
code which prevented it from working. |
| 1500 |
Interfaces remain the same, but things work now. |
| 1501 |
The first part is a 20 line (or so) explanation |
| 1502 |
of some of the internal handling of the tables. |
| 1503 |
Now things work. Many error messges get |
| 1504 |
detailed information. |
| 1505 |
* dwarf_xu_index.h: Added new fields and relabeled |
| 1506 |
the N U S fields in the header to match the |
| 1507 |
DWARF5 standard. |
| 1508 |
* libdwarf2.1.mm: Rev 2.90 10 April 2020. |
| 1509 |
A little bit of reformatting to shorten the lines |
| 1510 |
here. Has little or no effect on the output pdf. |
| 1511 |
corrected the wording about the |
| 1512 |
dwarf_get_xu_section_offset() function. |
| 1513 |
* libdwarf2.1.pdf: Regenerated Rev 2.90. |
| 1514 |
2020-04-07: David Anderson |
| 1515 |
* dwarf_alloc.c: Deleted useless comment and added |
| 1516 |
a blank line to separate declarations from code. |
| 1517 |
* dwarf_frame2.c: Fixed a too-long line. |
| 1518 |
* dwarf_query.c: Now DW_DLE_ALLOC_FAIL has a meaningful |
| 1519 |
error string attached. |
| 1520 |
* dwarf_util.c: Added comment before CHECK_DIE macro. |
| 1521 |
2020-04-03: David Anderson |
| 1522 |
* dwarf_arange.c: Deleted a useless blank line. |
| 1523 |
Removed useless () around a return value. |
| 1524 |
2020-04-03: David Anderson |
| 1525 |
* dwarf_form.c,dwarf_frame2.c,dwarf_query.c: Fix indents and |
| 1526 |
remove trailing whitespace. |
| 1527 |
2020-04-02: David Anderson |
| 1528 |
* dwarf_die_deliv.c: Better text printed for an address size error |
| 1529 |
including reporting the actual addrss-size found by libdwarf. |
| 1530 |
* dwarf_frame2.c: Deleted a static version of |
| 1531 |
_dwarf_create_address_size_dwarf_error() and use |
| 1532 |
the global one. Revised some error messages to |
| 1533 |
have specific details. Each instance of |
| 1534 |
DW_DLE_DEBUG_FRAME_LENGTH_BAD now reports something |
| 1535 |
specific about each case. |
| 1536 |
* dwarf_opaque.h: Added a declaration of |
| 1537 |
_dwarf_create_address_size_dwarf_error(). |
| 1538 |
2020-03-28: David Anderson |
| 1539 |
* dwarf_global.c: dwarf_return_empty_pubnames() revised |
| 1540 |
so it cannot fail. |
| 1541 |
* libdwarf.h.in: Revised comments attached to |
| 1542 |
dwarf_return_empty_pubnames() function prototype. |
| 1543 |
* generated_libdwarf.h.in: Regenerated. |
| 1544 |
2020-03-27: David Anderson |
| 1545 |
* dwarf_names.c,dwarf_names.h, dwarf_names_enum.h, |
| 1546 |
dwarf_names_new.h, libdwarf_version.h: |
| 1547 |
updated version string. |
| 1548 |
2020-03-27: David Anderson |
| 1549 |
* dwarf_form.c,dwarf_query.c,dwarf_ranges.c: Improve various |
| 1550 |
error messages with specific information about the |
| 1551 |
error. |
| 1552 |
2020-03-27: David Anderson |
| 1553 |
* dwarf_ranges.c: Properly detect end-of-section |
| 1554 |
again. |
| 1555 |
2020-03-27: David Anderson |
| 1556 |
* dwarf_alloc.c, dwarf_form.c: Removed |
| 1557 |
trailing whitespace. |
| 1558 |
2020-03-27: David Anderson |
| 1559 |
* dwarf_alloc.c: The (static) list of DW_DLA |
| 1560 |
initializers was very messy and hard to read. |
| 1561 |
Cleaned up its appearance.` |
| 1562 |
Added the 'type' to the fields that -DDEBUG |
| 1563 |
prints. |
| 1564 |
* dwarf_form.c,dwarf_util.c: The DW_DLE_FORM_BLOCK_LENGTH_ERROR |
| 1565 |
error messages now have a longer and more |
| 1566 |
complete error string. |
| 1567 |
2020-03-26: David Anderson |
| 1568 |
* dwarf_alloc.c,dwarf_error.c: Changed spelling of the |
| 1569 |
-DDEBUG prefixes to "libdwarfdetector" |
| 1570 |
* libdwarf2.1.mm: Documented hints on finding libdwarf |
| 1571 |
and libdwarf-caller memory leaks. Section 6.33 |
| 1572 |
* libdwarf2.1.pdf: Regenerated, version 2.89 |
| 1573 |
2020-03-26: David Anderson |
| 1574 |
* dwarf_alloc.c,dwarf_error.c: Now DEBUG can be turned on via |
| 1575 |
CFLAGS at configure time. Or left off by default. |
| 1576 |
Changed all the fprintf here (debug stuff) to |
| 1577 |
do printf instead. |
| 1578 |
* dwarf_die_deliv.c,dwarf_frame2.c: Altered the |
| 1579 |
DW_DLE_ADDRESS_SIZE_ERROR |
| 1580 |
strings so the 3 cases can be distinquished easily |
| 1581 |
(just a convenience for debugging). |
| 1582 |
* dwarf_globals.c: Removed one superfluous (). |
| 1583 |
* dwarf_query.c: Reforatted lgpl text for shorter |
| 1584 |
lines (no change in the content). |
| 1585 |
Removed one superfluous (). |
| 1586 |
2020-03-25: David Anderson |
| 1587 |
* dwarf_alloc.c, dwarf_error.c: Revised the debug |
| 1588 |
output created if DEBUG is defined. |
| 1589 |
2020-03-25: David Anderson |
| 1590 |
* dwarf_die_deliv.c: Fix trailing whitespace. |
| 1591 |
* dwarf_frame2.c: Fix trailing whitespace. |
| 1592 |
2020-03-24: David Anderson |
| 1593 |
* dwarf_line.c: Deleted useless blank line. |
| 1594 |
2020-03-24: David Anderson |
| 1595 |
* dwarf_alloc.c: Now with #ifdef DEBUG of debug messages in |
| 1596 |
various places as thise get needed over and over. |
| 1597 |
* dwarf_die_deliv.c: Working toward complete dealloc |
| 1598 |
of resources to eliminate the dependence on de_alloc_tree. |
| 1599 |
* dwarf_error.c: #if 0 a debug message. |
| 1600 |
* dwarf_form.c: Remove superflous (). |
| 1601 |
* dwarf_global.c(_dwarf_internal_globals_dealloc): |
| 1602 |
Recreated and documented critical dealloc code |
| 1603 |
so Dwarf_Global_Context gets dealloc-c. |
| 1604 |
* dwarf_line.c: Add a return DW_DLV_ERROR after |
| 1605 |
an error Dwarf_Error is created.. |
| 1606 |
2020-03-23: David Anderson |
| 1607 |
* dwarf_die_deliv.c,dwarf_frame2.c: Some error messages |
| 1608 |
are now far more precise (showing values). |
| 1609 |
* dwarf_global.c: Correcting leakage and making |
| 1610 |
some error messages more precise. |
| 1611 |
* dwarf_print_lines.c: Correcting leakages. |
| 1612 |
* dwarf_pubtypes.c: Minor readability change. |
| 1613 |
2020-03-21: David Anderson |
| 1614 |
* dwarf_abbrev.c Move leb wrapper functions to dwarf_util.[ch]: |
| 1615 |
and rename as _dwarf..... |
| 1616 |
Make certain error conditions more explicit (better |
| 1617 |
text in the error string). |
| 1618 |
* dwarf_die_deliv.c: Move leb wrapper functions to dwarf_util.[ch] |
| 1619 |
and rename as _dwarf..... |
| 1620 |
* dwarf_frame2.c: Add {} for the few 'if' missing same. |
| 1621 |
* dwarf_line.c: In case of form error make the error |
| 1622 |
text more useful. |
| 1623 |
* dwarf_query.c: Move leb wrapper functions to dwarf_util.[ch] |
| 1624 |
and rename as _dwarf..... |
| 1625 |
* dwarf_util.c, dwarf_util.h: Add the renamed |
| 1626 |
_dwarf_leb128_uword_wrapper() and |
| 1627 |
_dwarf_leb128_sword_wrapper() for general use |
| 1628 |
where better error messages are advisable. |
| 1629 |
* dwarf_init_finish.c: Removed a single trailing blank. |
| 1630 |
* libdwarf.h.in: Removed trailing spaces. |
| 1631 |
* generated_libdwarf.h.in: Regenerated. |
| 1632 |
2020-03-20: David Anderson |
| 1633 |
* dwarf_arange.c: In case of error, was failing |
| 1634 |
to clean up all allocations. |
| 1635 |
* dwarf_macro5.c: Was preventing some dwarf_dealloc(). |
| 1636 |
Fixed. |
| 1637 |
2020-03-19: David Anderson |
| 1638 |
* dwarf_abbrev.c: Generates a more useful and specific |
| 1639 |
message in case a TAG is corrupt. |
| 1640 |
* dwarf_line.c: After dealloc assign 0 to the pointer. |
| 1641 |
* dwarf_die_deliv.c: Improved insert_into_context_list() |
| 1642 |
for clarity and correctness. |
| 1643 |
* dwarf_error.c: Removed a couple "!= NULL" in if |
| 1644 |
conditions. |
| 1645 |
* dwarf_query.c: Uses local variable now to |
| 1646 |
satisfy the usual libdwarf convention that in case |
| 1647 |
of DW_DLV_NO_ENTRY or DW_DLV_ERROR only the |
| 1648 |
Dwarf_Error argument is altered, not other |
| 1649 |
pointer args. |
| 1650 |
* dwarf_util.h: Declaration for _dwarf_format_TAG_err_msg() |
| 1651 |
* dwarf_util.c: Generates a more useful and specific |
| 1652 |
message in in _dwarf_format_TAG_err_msg() |
| 1653 |
in case a TAG is corrupt. |
| 1654 |
2020-03-18: David Anderson |
| 1655 |
* dwarf_die_deliv.c: Rewrote the function that |
| 1656 |
keeps the cu_context list in the proper order. |
| 1657 |
For clarity and correctness. |
| 1658 |
2020-03-16: David Anderson |
| 1659 |
* dwarf_alloc.c: A recent change had the wrong |
| 1660 |
test during initial Dwarf_Debug |
| 1661 |
struct setup meaning dwarf_finish() was not cleaning |
| 1662 |
up allocations. This made the runtimes better |
| 1663 |
than they should be. Important correction here. |
| 1664 |
* dwarf_die_deliv.c: Drop use of the dwarf_dieoff() |
| 1665 |
context list, that was never appropriate. Now |
| 1666 |
again with one list. |
| 1667 |
* dwarf_opaque.h: Removed a list of Dwarf_CU_Contexts, |
| 1668 |
that was never correct to have dwarf_offdie maintain |
| 1669 |
a list separate from iterating through CUs. |
| 1670 |
* dwarf_query.c (dwarf_attrlist): Add a |
| 1671 |
dwarf_dealloc on abbrev_list |
| 1672 |
in an error case. |
| 1673 |
* dwarf_util.c: Make the lines look a tiny bit |
| 1674 |
better avoiding too-long lines. |
| 1675 |
2020-03-15: David Anderson |
| 1676 |
* dwarf_frame2.c: On an internal error (bad dwarf) |
| 1677 |
the necessary cleanup function was not being called |
| 1678 |
in two places. |
| 1679 |
2020-03-15: David Anderson |
| 1680 |
* dwarf_alloc.c: Now with configure-time options |
| 1681 |
for tracking the alloc/dealloc actions in detail. |
| 1682 |
2020-03-15: David Anderson |
| 1683 |
* dwarf_alloc.c: Now with the de_alloc_tree tests |
| 1684 |
in final form. Respecting dwarf_set_de_alloc_flag(). |
| 1685 |
2020-03-14: David Anderson |
| 1686 |
* dwarf_alloc.c: Now adds an optional DEBUG |
| 1687 |
macro that libdwarf developers may find useful. |
| 1688 |
Revised the dwarf_dealloc code to not require de_alloc_tree. |
| 1689 |
* dwarf_line.c: Now dwarf_srcfiles() and dwarf_filename() |
| 1690 |
always allocate DW_DLA_STRINGS. Whereas earlier some |
| 1691 |
of the strings were actually in a .debug section, |
| 1692 |
not allocated. |
| 1693 |
* libdwarf2.1.mm: Now dwarf_diename() and |
| 1694 |
dwarf_die_text are documented |
| 1695 |
as returning static strings that are not be be |
| 1696 |
freed or dwarf_dealloc'd. This was always true |
| 1697 |
but the documentation said dwarf_dealloc() was |
| 1698 |
required. Don't use dwarf_dealloc on these returned |
| 1699 |
strings. |
| 1700 |
* libdwarf2.1.pdf: Regenerated, version 2.88 |
| 1701 |
* dwarf_loc.c: Was incorrectly passing NULL instead |
| 1702 |
of dbg to _dwarf_get_alloc in a few places. |
| 1703 |
* dwarf_util.c, dwarf_global.c: Now checks more for |
| 1704 |
incomplete setup |
| 1705 |
of an internal structure to avoid calling dwarf_dealloc |
| 1706 |
with NULL as the space to be freed. |
| 1707 |
2020-03-13: David Anderson |
| 1708 |
* dwarf_abbrev.c: Remove erroneous dwarf_dealloc |
| 1709 |
introduced yesterday. Caused a coredump |
| 1710 |
in FreeBSD 64bit dwarfdump testing. |
| 1711 |
* dwarfstring.c: Introduced an extra zero initializer in |
| 1712 |
the dwarfstring_destructor() as safe and harmless. |
| 1713 |
2020-03-12: David Anderson |
| 1714 |
* dwarf_abbrev.c: Use a wrapper on macro |
| 1715 |
DECODE_LEB128_UWORD_CK |
| 1716 |
so we can dwarf_dealloc in case of a problem. |
| 1717 |
And be more thorough in various places |
| 1718 |
for those dwarf_dealloc. |
| 1719 |
2020-03-12: David Anderson |
| 1720 |
* dwarf_die_deliv.c: A local function now explicitly |
| 1721 |
static (_dwarf_siblingof_internal). |
| 1722 |
Following dwarf_dealloc of cudie we assign 0 to it.` |
| 1723 |
New function local_dealloc_cu_context() enables |
| 1724 |
accurate and full dealloc of a cu context |
| 1725 |
(which means there was some error fount) in |
| 1726 |
an easy and complete way. |
| 1727 |
local_attrlist_dealloc() does similarly for attrlists. |
| 1728 |
A DECODE_LEB128_UWORD_CK now in a wrapper so on error |
| 1729 |
we can dwarf_dealloc a DIE. |
| 1730 |
* dwarf_macro5.c: Now dwarf_dealloc_macro_context() is safe |
| 1731 |
if called with a null argument (and in that case there |
| 1732 |
is nothing to do). |
| 1733 |
* dwarf_opaque.h: Removed _dwarf_siblingof_internal() |
| 1734 |
from the declared functions. |
| 1735 |
2020-03-12: David Anderson |
| 1736 |
* dwarf_alloc.h, dwarf_opaque.h: Removed trailing whitespace. |
| 1737 |
Shortened the lines of the LGPL text (the text |
| 1738 |
is unchanged). |
| 1739 |
2020-03-12: David Anderson |
| 1740 |
* dwarf_str_offsets.c,dwarf_util.c: Removed trailing whitespace |
| 1741 |
and fixed indent mistakes. |
| 1742 |
2020-03-12: David Anderson |
| 1743 |
* dwarf_query.c: Adds wrapper code around some |
| 1744 |
dwarf_util.h macros |
| 1745 |
so in case of a serious DWARF error we can |
| 1746 |
free locally allocated things. |
| 1747 |
2020-03-12: David Anderson |
| 1748 |
* dwarf_errmsg_list.h: Corrected DW_DLE_STR_OFFSETS_EXTRA_BYTES |
| 1749 |
text. The error messages have more detail due to |
| 1750 |
the dwarf_str_offsets.c changes below, so fixed |
| 1751 |
the string here. |
| 1752 |
2020-03-12: David Anderson |
| 1753 |
* dwarf_macro5.c: Do proper dwarf_dealloc, avoiding |
| 1754 |
a pointless dependency on de_alloc_tree freeing |
| 1755 |
things. |
| 1756 |
2020-03-12: David Anderson |
| 1757 |
* dwarf_alloc.c: Minor cleanup that assigns |
| 1758 |
zero after dwarf_dealloc so dead pointers |
| 1759 |
not left around. |
| 1760 |
2020-03-12: David Anderson |
| 1761 |
* dwarf_str_offsets.c: Improve messages in case of |
| 1762 |
a serious DWARF error, reporting what is wrong |
| 1763 |
more precisely and allowing a few bytes of all-zero-bits |
| 1764 |
to be allowed at end of section (no error needed). |
| 1765 |
2020-03-12: David Anderson |
| 1766 |
* dwarf_util.c: Revise too-long lines and checks for NULL |
| 1767 |
pointers for moderm readability. |
| 1768 |
Improve _dwarf_free_abbrev_hash_table_contents() so |
| 1769 |
it can safely free an incompletely set up hash table. |
| 1770 |
2020-03-09: David Anderson |
| 1771 |
* dwarf_alloc.c: Implements optional (at run time) |
| 1772 |
reduced use of the de_alloc_tree search tree |
| 1773 |
as a performance enhancement (see libdwarf2.1.mm/pdf). |
| 1774 |
* dwarf_alloc.h: Declares _dwarf_alloc_tree_counts(), |
| 1775 |
a new hidden function. |
| 1776 |
* libdwarf_version.h: New date string |
| 1777 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1778 |
dwarf_names_new.h: New date string so regenerated |
| 1779 |
these. |
| 1780 |
* libdwarf.h.in: New function dwarf_set_de_alloc_flag() |
| 1781 |
declared. |
| 1782 |
* generated_libdwarf.h.in: Regenerated |
| 1783 |
2020-03-02: David Anderson |
| 1784 |
* dwarf_print_lines.c: Removed one-line #if 0 |
| 1785 |
code that serves no purpose. |
| 1786 |
2020-02-25: David Anderson |
| 1787 |
* dwarf_print_lines.c: Removed space character just before newline |
| 1788 |
as it has no useful prupose. 3 places. |
| 1789 |
2020-02-25: David Anderson |
| 1790 |
* dwarf_names.c,dwarf_names.h, dwarf_names_enum.h, |
| 1791 |
dwarf_names_new.h: |
| 1792 |
libdwarf_version.h: updated version string. |
| 1793 |
2020-02-25: David Anderson |
| 1794 |
* dwarf_line_table_reader_common.h: Now with dwarfstring |
| 1795 |
containers in local scopes and easily evaluated |
| 1796 |
as to lifetime and correctness. |
| 1797 |
2020-02-25: David Anderson |
| 1798 |
* dwarf_elfread.c: Deleted a #if 0 ...#endif few lines. |
| 1799 |
* dwarf_line.c: Fixed trailing whitespace. |
| 1800 |
* dwarf_line_table_reader_common.h: Removed all use of the |
| 1801 |
old dwarf_printf varargs code. Instead using dwarfstring |
| 1802 |
and dwarfstring_append_printf_i() etc. |
| 1803 |
And a far simpler _dwarf_printf(). |
| 1804 |
No longer any sprintf/snprintf/vsnprintf here. |
| 1805 |
* dwarf_opaque.h: Remove trailing whitespace. |
| 1806 |
* dwarf_print_lines.c: Removed all use of the |
| 1807 |
old dwarf_printf varargs code. |
| 1808 |
No longer any sprintf/snprintf/vsnprintf here. |
| 1809 |
* dwarf_util.c: Delete unused buffersetsize function. |
| 1810 |
Delete now-unuised dwarf_printf() |
| 1811 |
* dwarfstring.c: Now using TRUE FALSE, not DW_DLV anything. |
| 1812 |
No one will be testing the integer return value anyway. |
| 1813 |
Fixed the code where %-4s was truncating if the string |
| 1814 |
to be processed was longer than 4 characters. |
| 1815 |
* dwarfstring.h: Added commentary. |
| 1816 |
* test_dwarfstring.c: New testcase for dwarfstring |
| 1817 |
2020-02-21: David Anderson |
| 1818 |
* dwarf_arange.c,dwarf_debuglink.c,dwarf_frame2.c: |
| 1819 |
removed the last sprintf/snprintf, changed to |
| 1820 |
use dwarfstring.h functions. |
| 1821 |
2020-02-18: David Anderson |
| 1822 |
* dwarf_line.c: Added free() calls to delete_line_context_itself |
| 1823 |
to avoid a leak that was created in last commit.. |
| 1824 |
* dwarf_line.h: Deleted a now-spurious comment. |
| 1825 |
* dwarf_line_table_reader_common.h: Removed an == NULL |
| 1826 |
comparison in favor of a !filename_entry_pairs. |
| 1827 |
2020-02-16: David Anderson |
| 1828 |
* libdwarf2.1.mm: Now explains how dwarf_srcfiles() |
| 1829 |
name arrays differ in DWARF5 from earlier |
| 1830 |
debug_info versions. So callers can use |
| 1831 |
the srcfiles array properly. |
| 1832 |
* libdwarf2.1.pdf: Now version 2.87, dated 16 February 2020. |
| 1833 |
* dwarf_line.c, dwarf_line.h,dwarf_print_lines.c, |
| 1834 |
dwarf_line_table_reader_common.h: Recording DW5 line table |
| 1835 |
header data more fully so lines print verbose |
| 1836 |
prints more of the actual line table header. |
| 1837 |
2020-02-15: David Anderson |
| 1838 |
* dwarf_elf_access.c,dwarf_init_finish.c: With libelf |
| 1839 |
in use there was a mistake that broke dumping some objects that |
| 1840 |
needed relocations. |
| 1841 |
* dwarf_opaque.h: Corrected a is_rela to r_is_rela |
| 1842 |
2020-02-13: David Anderson |
| 1843 |
* dwarf_elfread.c,dwarf_errmsg_list.h: Removed |
| 1844 |
trailing whitespace. |
| 1845 |
2020-02-13: David Anderson |
| 1846 |
* libdwarf_version.h: New version string |
| 1847 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1848 |
dwarf_names_new.h: Regenerated with new |
| 1849 |
version string. |
| 1850 |
2020-02-13: David Anderson |
| 1851 |
* libdwarf/libdwarf.h.in: Added a new error code to |
| 1852 |
properly distinguish between distinct elf section |
| 1853 |
header issues related to relocations versus |
| 1854 |
other section header issues. |
| 1855 |
* libdwarf/generated_libdwarf.h.in: regenerated |
| 1856 |
|
| 1857 |
* dwarf_elf_access.c: Adding local READ_UNALIGNED_SAFE |
| 1858 |
so we can do libelf relocations properly; .rel and .rela. |
| 1859 |
* dwarf_elf_defines.h: Adding R_386_PC32 to the |
| 1860 |
applicable relocation sets. |
| 1861 |
* dwarf_elf_load_headers.c: Now we deal with .rel. |
| 1862 |
and .rela. relocations for better completeness. |
| 1863 |
Removed some code duplication and complexity |
| 1864 |
too. |
| 1865 |
* dwarf_elf_rel_detector.c: Deals with R_386_PC32 now. |
| 1866 |
* dwarf_elfread.c: Add READ_UNALIGNED_SAFE so we can |
| 1867 |
do no-libelf relocations properly; .rel and .rela |
| 1868 |
* dwarf_elfread.h: Added gr_is_rela field and |
| 1869 |
two enums RelocRela and RelocOffsetSize so we have |
| 1870 |
type-safety in the argument lists. |
| 1871 |
* dwarf_init_finish.c: A new function ensures we |
| 1872 |
skip various sections we know we do not want to |
| 1873 |
look at. |
| 1874 |
* dwarf_opaque.h: Declare _dwarf_ignorethissection() |
| 1875 |
so libelf and non-libelf can ignore the unwanted |
| 1876 |
sections. |
| 1877 |
* dwarf_errmsg_list.h: Entry added for the new |
| 1878 |
DW_DLE error code. |
| 1879 |
2020-02-11: David Anderson |
| 1880 |
* dwarf_elf_access.c,dwarf_line_table_reader_common.h, |
| 1881 |
dwarf_tied_decls.h: |
| 1882 |
removed trailing whitespace and final blank line. |
| 1883 |
2020-02-11: David Anderson |
| 1884 |
* dwarf_init_finish.c: Removed code that was #if 0 #endif |
| 1885 |
2020-02-10: David Anderson |
| 1886 |
* dwarf_elf_access.c: Now allows for .rel and .rela. |
| 1887 |
* dwarf_elf_defines.h: Now allows for .rel and .rela. |
| 1888 |
* dwarf_init_finish.c: Now allows for .rel and .rela. |
| 1889 |
* dwarf_opaque.h: Adding dss_is_rela so we can |
| 1890 |
process .rel. sections too. |
| 1891 |
2020-01-25: David Anderson |
| 1892 |
* dwarf_form.c: DW_FORM_rnglistx was ommitted from a switch statement. |
| 1893 |
Adding it in fixed the resulting errors in a DWARF5 object file |
| 1894 |
built by clang 9.0.0.0 |
| 1895 |
2020-01-16: David Anderson |
| 1896 |
* dwarf_alloc.c,dwarf_die_deliv.c,dwarf_form.a, |
| 1897 |
dwarf_query.c,dwarfstring.c, |
| 1898 |
pro_reloc.c,pro_reloc_stream.c,pro_reloc_symbolic.c, |
| 1899 |
pro_section.c,pro_types.c,pro_vars.c,pro_weaks.c, |
| 1900 |
test_dwarfstring.c: Fixed indentations and |
| 1901 |
removed trailing whitespace. |
| 1902 |
* dwarf_xu_index.c: Ensure local Dwarf_Sig8 variables |
| 1903 |
are always initialized. Does not fix any bug but |
| 1904 |
does make it easier to read the code. |
| 1905 |
Fixes indentation and removes trailing whitespace too. |
| 1906 |
2020-01-14: David Anderson |
| 1907 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 1908 |
dwarf_names_new.h,libdwarf_version.h: Updated version string. |
| 1909 |
2020-01-05: David Anderson |
| 1910 |
* dwarf_query.c(dwarf_offset_list): Coverity Scan CID 206598. |
| 1911 |
Now checks for DW_DLV_ERROR where it failed to do so before, |
| 1912 |
and returns an error instead of letting it slip through. |
| 1913 |
2020-01-03: David Anderson |
| 1914 |
* dwarf_load_elf_headers.c(dwarf_elf_load_rela_32): |
| 1915 |
Coverity Scan uncovered a memory leak in one |
| 1916 |
case. CID 206524 |