| 1 |
2019-11-26 David Anderson |
| 2 |
* libdwarf2.1.mm: Version 2.85. Found two more \n |
| 3 |
that did not look right in pdf. Fixed. |
| 4 |
* libdwarf2.1.pdf: Regenerated 2.85. |
| 5 |
2019-11-26 David Anderson |
| 6 |
* libdwarf2.1.mm: Version 2.84. Documents that |
| 7 |
dwarf_get_elf() can succeed only if |
| 8 |
dwarf_elf_init() or dwarf_elf_init_b() |
| 9 |
was used to initialize the Dwarf_Debug involved. |
| 10 |
And fixed the formatting printf examples |
| 11 |
by escaping backslashes with a second backslash. |
| 12 |
* libdwarf2.1.pdf: Regenerated 2.84. |
| 13 |
2019-11-10 David Anderson |
| 14 |
* dwarf_debuglink.c: Now if paths_returned is |
| 15 |
a null pointer the code skips the phase of |
| 16 |
generating a list of paths (assuming the caller |
| 17 |
will generate a list itself). |
| 18 |
* dwarf_errmsg_list.h: New error DW_DLE_DWARF_INIT_DBG_NULL. |
| 19 |
* dwarf_generic_init.c,dwarf_original_elf_init: Now check |
| 20 |
for a null pointer-to-dbg |
| 21 |
and return error DW_DLE_DWARF_INIT_DBG_NULL |
| 22 |
instead of segfaulting. |
| 23 |
* libdwarf.h.in,generated_libdwarf.h.in: Add the new |
| 24 |
error code. |
| 25 |
* libdwarf2.1.mm: Version 2.83. Documents the allowance |
| 26 |
of a null passed in to dwarf_gnu_debuglink instead |
| 27 |
of a valid pointer. |
| 28 |
* libdwarf2.1.pdf: Regenerated 2.83. |
| 29 |
2019-11-05 David Anderson |
| 30 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 31 |
dwarf_names_new.h,generated_libdwarf.h.in,gennames.c: |
| 32 |
Regenerated by scripts/buildstandardsource.sh |
| 33 |
New date string and version. |
| 34 |
2019-10-28 David Anderson |
| 35 |
* testdebuglink.sh: If dos2unix is not available to run |
| 36 |
we now just assume it's not needed. The only place it |
| 37 |
is actually needed is regression testing on Windows. |
| 38 |
2019-10-24 David Anderson |
| 39 |
* dwarf_alloc.c: Add include of dwarfstring.h. |
| 40 |
implement a destructor for Dwarf_Error for the |
| 41 |
void * member of Dwarf_Error_s (pointer to |
| 42 |
a dwarfstring, really). Implement _dwarf_error_destructor(). |
| 43 |
* dwarf_alloc.h: Add declaration of _dwarf_error_destructor(). |
| 44 |
* dwarf_error.c: Add include dwarfstring.h. |
| 45 |
Implement _dwarf_error_string() so we can add any |
| 46 |
string we want for an error code so we can have |
| 47 |
more detailed error messages where we choose |
| 48 |
to do that. |
| 49 |
* dwarf_error.h: Add DWARF_ERROR_H idempotency #ifdef etc. |
| 50 |
Add #ifdef __cplusplus etc. Add er_msg field to |
| 51 |
struct Dwarf_Error_s. |
| 52 |
* dwarf_form.c,dwarf_line.c: Include dwarfstring.h |
| 53 |
and create a more |
| 54 |
detailed message for a couple of error situationss. |
| 55 |
See _dwarf_error_string() calls. |
| 56 |
* dwarf_print_lines.c: Add include dwarfstring.h |
| 57 |
* dwarfstring.c: Include config.h and test HAVE_STDLIB_H. |
| 58 |
Add UNUSEDARG and DW_DLV_OK(etc) values. |
| 59 |
Implement new functions dwarfstring_append_printf_s(), |
| 60 |
dwarfstring_append_printf_i(), and |
| 61 |
dwarfstring_append_printf_u(). |
| 62 |
* dwarfstring.h: Declare the types of the value argument |
| 63 |
to dwarf_append_printf_i/u as long long/unsigned long long. |
| 64 |
Declare dwarfstring_append_printf_s(), |
| 65 |
dwarfstring_append_printf_i(), and |
| 66 |
dwarfstring_append_printf_u(). |
| 67 |
* test_dwarfstring.c: check_string() was failing to update |
| 68 |
errcount (bug). Fixed. Added test5() with tests |
| 69 |
of the new functions in dwarfstring.h. |
| 70 |
2019-10-22 David Anderson |
| 71 |
* dwarf_util.c: Defines dwarf_package_version(). |
| 72 |
* libdwarf.h.in: Declares dwarf_package_version(). |
| 73 |
* libdwarf2.1.mm: Documents dwarf_package_version(). |
| 74 |
Version 2.82. |
| 75 |
* libdwarf2.1.pdf: Regenerated |
| 76 |
* libdwarf_version.h: Updated by |
| 77 |
scripts/UPDATEDWARFDUMPVERSION.sh. |
| 78 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 79 |
dwarf_names_new.h,generated_libdwarf.h.in,gennames.c: |
| 80 |
Regenerated by scripts/buildstandardsource.sh |
| 81 |
2019-10-20 David Anderson |
| 82 |
* dwarf_alloc.c,dwarf_debuglink.c,dwarf_dnames.c, |
| 83 |
dwarf_dsc.c,dwarf_elf_access.c,dwarf_elf_load_headers.c, |
| 84 |
dwarf_elfread.c,dwarf_error.c,dwarf_frame.c,dwarf_frame2.c, |
| 85 |
dwarf_gdbindex.c,dwarf_generic_init.c,dwarf_groups.c, |
| 86 |
dwarf_harmless.c,dwarf_init_finish.c,dwarf_line.c: |
| 87 |
Be much more thorough and consistent in checking for |
| 88 |
standard C headers as set in config.h. Also, add |
| 89 |
in #include of malloc.h for non-standard compilers |
| 90 |
not putting malloc prototypes in stdlib.h |
| 91 |
2019-10-18 David Anderson |
| 92 |
* checkexamples.c,dwarf_debuglink.c,dwarf_generic_init.c, |
| 93 |
dwarf_xu_index.c,test_linkedtopath.c: Fixed indents |
| 94 |
and removed trailing whitespace. |
| 95 |
2019-10-18 David Anderson |
| 96 |
* runtests.sh: Improving some message test so context makes sense. |
| 97 |
2019-10-16 David Anderson |
| 98 |
* Makefile.am: Accidentally left out generated_libdwarf.h.in . |
| 99 |
and test_linktopath.sh as things to be in the distribution. |
| 100 |
* Makefile.in: Regenerated |
| 101 |
* test_dwarfstring.c: Added missing return statements to |
| 102 |
avoid a warning. |
| 103 |
2019-10-14 David Anderson |
| 104 |
* dwarf_names.c,dwarf_names.h, dwarf_names_enum.h, |
| 105 |
dwarf_names_new.h: regenerated with new version string. |
| 106 |
* libdwarf_version.h: updated version string. |
| 107 |
2019-10-14 David Anderson |
| 108 |
* CMakeLists.txt: Addded dwarf_debuglink.h to sourcefiles. |
| 109 |
* Added tests of the debuglink stuff. |
| 110 |
* Makefile.in: regenerated. |
| 111 |
* baseline.ltp: Added correct test baseline output. |
| 112 |
* checkexamples.c: Added debuglink call as an example |
| 113 |
to show how it is used. |
| 114 |
* dwarf_alloc.c: Reformatted too long lines |
| 115 |
and more importantly moved the memset to clear |
| 116 |
the Dwarf_Debug down where lit belonged after |
| 117 |
clearing de_gnu_global_paths. |
| 118 |
* dwarf_debuglink.c: Significant rewrite to |
| 119 |
implement the reading etc of .gnu_debuglink |
| 120 |
and .note.gnu.build-id sections. |
| 121 |
* dwarf_debuglink.b: Added ifdef __cplusplus |
| 122 |
and ifndef DWARF_DEBUGLINK_H. And now handles |
| 123 |
data from both sections. |
| 124 |
* dwarf_generic_init.c: Now adds the |
| 125 |
default debuglink global path |
| 126 |
"/usr/lib/debug". |
| 127 |
* dwarf_init_finish.c: Separated declaration of |
| 128 |
local from its use to allow a debugging printf |
| 129 |
when and as such is needed. |
| 130 |
* dwarf_opaque.h: Added de_gnu_global_paths and |
| 131 |
de_gnu_global_path_count to Dwarf_Debug_s. |
| 132 |
* dwarf_original_elf_init: Now adds the |
| 133 |
default debuglink global path |
| 134 |
"/usr/lib/debug". |
| 135 |
* dwarf_util.h: split apart a tool-long line. |
| 136 |
* dwarf_xu_index.c: Corrected the use of ASNAR |
| 137 |
to be sizeof(*key_in) and added a check to |
| 138 |
that macro so if something that won't work |
| 139 |
is requested the attempt is caught as an error. |
| 140 |
* dwarfstring.h: Added Added ifdef __cplusplus |
| 141 |
and ifndef DWARFSTRING_H. |
| 142 |
* generated_libdwarf.h.in: Regenerated. |
| 143 |
* libdwarf.h.in: The debuglink interface |
| 144 |
now has the arguments it needs. The dwarf_gnu_buildid() |
| 145 |
is gone. |
| 146 |
* libdwarf2.1.mm: Version 2.81. Documents the debuglink |
| 147 |
and global_path functions dwarf_add_debuglink_global_path() |
| 148 |
and dwarf_gnu_debuglink() and removes the bogus |
| 149 |
dwarf_add_file_path(). |
| 150 |
* libdwarf2.1.pdf: Regenerated. Version 2.81. |
| 151 |
* test_linkedtopath.c: New test code use for 'make check'. |
| 152 |
* test_debuglink.sh.c: New test code use for 'make check'. |
| 153 |
2019-10-06 David Anderson |
| 154 |
* dwarf_init_finish.c: Removed trailing whitespace. |
| 155 |
2019-10-05 David Anderson |
| 156 |
* pro_forms.c,pro_frame.c,pro_section.c: All now |
| 157 |
use dbg->de_copy_word instead of memcpy |
| 158 |
in the ASNOUT and ASNAR macros so |
| 159 |
host and target need not have same endianness. |
| 160 |
* dwarf_xu_index.c: The way the initial index |
| 161 |
in hashing on the signature is done we must |
| 162 |
be sensitive to host/object being different |
| 163 |
endianness for hash keys to be found. |
| 164 |
2019-10-05 David Anderson |
| 165 |
* libdwarf.h.in: Added DW_DLC_ELF_OFFSET_SIZE_64 |
| 166 |
so dwarfgen can easily generate ELFCLASS64 |
| 167 |
with offsets 32bits in DWARF. Rearranged the comments |
| 168 |
on the bit flags in the area so easier to read. |
| 169 |
* generated_libdwarf.h.in: regenerated. |
| 170 |
2019-10-04 David Anderson |
| 171 |
* dwarf_opaque.h: Revised a comment about |
| 172 |
de_big_endian_object for clarity. |
| 173 |
* dwarf_peread.c: Now we translate from DW_ENDIAN_BIG |
| 174 |
to DW_OBJECT_MSB (similar for little-endian) |
| 175 |
so the normal libdwarf works right. |
| 176 |
Lets us read little-endian PE object on a |
| 177 |
big-endian host properly. |
| 178 |
* dwarf_init_finish.c: Just reformatting a long line |
| 179 |
and adding short comments. |
| 180 |
2019-10-02 David Anderson |
| 181 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 182 |
dwarf_names_new.h,libdwarf_version.h: New date string |
| 183 |
2019-10-02 David Anderson |
| 184 |
* dwarf_errmsg_list.h: Added DW_DLE_NULL_ARGS_DWARF_ADD_PATH. |
| 185 |
* dwarf_util.c: Check arguments and return |
| 186 |
DW_DLV_ERROR with error DW_DLE_NULL_ARGS_DWARF_ADD_PATH |
| 187 |
if either of the critical ones is NULL. |
| 188 |
* libdwarf.h.in: Add the new error |
| 189 |
* generated_libdwarf.h.in: regenerated. |
| 190 |
2019-10-02 David Anderson |
| 191 |
* dwarf_errmsg_list.h,dwarf_line.c,dwarf_util.c, |
| 192 |
dwarf_util.h,dwarfstring.c,dwarfstring.h,pro_init.c, |
| 193 |
pro_line.c,pro_log_extra_flag_strings.c,pro_opaque.h, |
| 194 |
pro_section.c,test_dwarfstring.c,test_extra_flag_strings.c: |
| 195 |
Fixed indents and trailing whitespace. |
| 196 |
2019-10-01 David Anderson |
| 197 |
* dwarf_debuglink.c,dwarf_util.c: Removed dwarf_add_file_path() |
| 198 |
and put it into dwarf_util.c. |
| 199 |
* libdwarf.h.in: Added warning not to use |
| 200 |
dwarf_gnu_debuglink() [which is new] |
| 201 |
as it is not in final form. |
| 202 |
* libdwarf2.1.mm: Improving the documentation of |
| 203 |
dwarf_get_macro_details by adding a little bit |
| 204 |
to the example. |
| 205 |
* libdwarf2.1.pdf: Regenerated. Version 2.80. |
| 206 |
2019-09-22 David Anderson |
| 207 |
* libdwarf2p.1.mm: Documented the new support |
| 208 |
of using the 'extras' argument (previously |
| 209 |
anything it pointed to was ignored) so |
| 210 |
producer-callers have |
| 211 |
* libdwarf2p.1.pdf: Regenerated. Rev 1.50. |
| 212 |
* dwarf_form.c: Now deals with correct use of |
| 213 |
DW_FORM_data8/4 for DWARF4 and 5. |
| 214 |
* dwarf_line.c: Minor readability improvements. |
| 215 |
No change in the code. |
| 216 |
* dwarf_line_table_reader_common.h: Removed a pointless |
| 217 |
blank line. |
| 218 |
* dwarf_util.h: Moved the trailing \ to the left |
| 219 |
making most lines much more readable with a 70 |
| 220 |
character wide window. |
| 221 |
* pro_init.c: Implemented support for using the 'extra' |
| 222 |
string argument to flexibly set the line-table |
| 223 |
constants, avoiding any need to change pro_line.h |
| 224 |
macro content. |
| 225 |
Removed many lines of code that is now in |
| 226 |
pro_log_extra_flag_strings.c. (should have been |
| 227 |
removed 2 days ago). |
| 228 |
Fixed the FORM for reference/offset attributes to |
| 229 |
DW_FORM_sec_offset for DWARF4,5. |
| 230 |
* pro_line.c: Added comments explaining de_line_inits |
| 231 |
structure for clarity. |
| 232 |
* pro_log_extra_flag_strings.c: Added address_size |
| 233 |
to what these can read-in. |
| 234 |
* pro_opaque.h: Deleted two of a set of 3 blank lines |
| 235 |
* pro_section.c: Revised the line table opc calculation |
| 236 |
by using more lines for clarity. |
| 237 |
* test_extra_flag_strings.c: Added new tests of |
| 238 |
_dwarf_log_extra_flagstrings(). |
| 239 |
2019-09-20 David Anderson |
| 240 |
* libdwarf2.1.mm: Fixing a couple document errors. |
| 241 |
* libdwarf2.1.pdf: Regenerated. Version 2.79. |
| 242 |
* pro_log_extra_flag_strings.c: Correct a typo |
| 243 |
in the code giving producer users easy |
| 244 |
access to control data. |
| 245 |
* test_extra_flag_strings.c: Several additional tests |
| 246 |
added to test pro_log_extra_flag_strings.c. |
| 247 |
Try 'make check'. |
| 248 |
2019-09-19 David Anderson |
| 249 |
* CMakeLists.txt: Adding pro_log_extra_flag_strings.c |
| 250 |
and dwarfstrings.h and dwarfstrings.c |
| 251 |
test_dwarfstring.c, test_extra_flag_strings |
| 252 |
source and 'make check' for |
| 253 |
the testcode. |
| 254 |
* Makefile.am: Added make check code here too, |
| 255 |
as well as the new source files. |
| 256 |
* Makefile.in: regenerated |
| 257 |
* pro_log_extra_flag_strings.c: Giving producer-code users |
| 258 |
a way to control frame and line constants without |
| 259 |
reqiring a change to libdwarf.h.in or other |
| 260 |
header files. |
| 261 |
* dwarfstring.h, dwarstring.c: Adding flexible |
| 262 |
string buffers to libdwarf. |
| 263 |
* test_dwarfstring.c,test_extra_flag_strings. Added |
| 264 |
make check test code. |
| 265 |
* dwarf_errmsg_list.h: New error codes for the |
| 266 |
new producer code logic on initializations. |
| 267 |
* dwarf_frame.c: Reformat too-long line. |
| 268 |
* pro_section.c,pro_opaque.h: Renamed de_offset_size |
| 269 |
for clarity to de_dwarf_offset_size as the DWARF offset |
| 270 |
size can be 4 when elf offset size is 8.. |
| 271 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 272 |
dwarf_names_new.h: Regenerated for updated version |
| 273 |
string. |
| 274 |
* generated_libdwarf.h.in: Generated. New error codes. |
| 275 |
* libdwarf.h.in: New error codes. |
| 276 |
* pro_arange.c,pro_die.c,pro_expr.c,pro_forms.c, |
| 277 |
pro_frame.c: Renamed de_offset_size |
| 278 |
for clarity to de_dwarf_offset_size. |
| 279 |
* pro_frame.h: made dfp_nbytes, fde_n_inst, |
| 280 |
dfp_n_bytes larger types. |
| 281 |
* pro_init.c: included dwarfstring.h. Added code |
| 282 |
to process any 'extra' argument string. |
| 283 |
* pro_line.c,pro_opaque.h: Renamed |
| 284 |
pi_version to pi_linetable_version |
| 285 |
for clarity. |
| 286 |
Renamed de_offset_size to de_dwarf_offset_size |
| 287 |
and added de_elf_offset_size. Added de_big_endian |
| 288 |
flag. |
| 289 |
* pro_reloc_stream.c,pro_section.c,pro_types.c: Reflects |
| 290 |
renamings. |
| 291 |
2019-09-16 David Anderson |
| 292 |
* dwarf_die_deliv.c: Reformatted one line so it |
| 293 |
was less long. |
| 294 |
2019-09-15 David Anderson |
| 295 |
* libdwarf2.1.mm: Improved comments in examplec. |
| 296 |
* libdwarf2.1.pdf: Regenerated. v2.78 |
| 297 |
2019-09-11 David Anderson |
| 298 |
* dwarf_die_deliv.c: Being more careful about what context to use |
| 299 |
in dwarf_siblingof: if DIE argument is non-null, take |
| 300 |
context pointer from it, else use global context from |
| 301 |
Dwarf_Debug record. |
| 302 |
2019-09-10 David Anderson |
| 303 |
* dwarf_errmsg_list.h,dwarf_generic_init.c,dwarf_opaque.h, |
| 304 |
dwarf_util.h, libdwarf.h.in: Fix indents and |
| 305 |
remove trailing whitespace. |
| 306 |
* generated_libdwarf.h.in: Regenerated. |
| 307 |
2019-09-10 David Anderson |
| 308 |
* dwarf_die_deliv.c(_dwarf_next_cu_header_internal): |
| 309 |
Two lines assigning |
| 310 |
NULL to de_cu_context were added in |
| 311 |
early September and that was a mistake. |
| 312 |
Removing them in this change. |
| 313 |
2019-09-10 David Anderson |
| 314 |
* dwarf_errmsg_list.h: New error codes |
| 315 |
DW_DLE_CORRUPT_NOTE_GNU_DEBUGID, |
| 316 |
DW_DLE_CORRUPT_GNU_DEBUGID_SIZE, and |
| 317 |
DW_DLE_CORRUPT_GNU_DEBUGID_STRING listed. |
| 318 |
* dwarf_init_finish.c: Now also deals with |
| 319 |
section .note.gnu.build-id. |
| 320 |
* dwarf_opaque.h: Adding de_note_gnu_buildid. |
| 321 |
* dwarf_util.c: Implements dwarf_gnu_buildid(). |
| 322 |
* generated_libdwarf.h.in: Regenerated. |
| 323 |
* libdwarf.h.in: Added |
| 324 |
DW_DLE_CORRUPT_NOTE_GNU_DEBUGID, |
| 325 |
DW_DLE_CORRUPT_GNU_DEBUGID_SIZE, and |
| 326 |
DW_DLE_CORRUPT_GNU_DEBUGID_STRING. |
| 327 |
Added dwarf_gnu_buildid() declaration. |
| 328 |
* libdwarf2.1.mm: Documented dwarf_gnu_buildid(). |
| 329 |
* libdwarf2.1.pdf: Regenerated. Version 2.77. |
| 330 |
2019-09-08 David Anderson |
| 331 |
* dwarf_util.c: a .gnu_debuglink lacking |
| 332 |
a / in the section content would coredump |
| 333 |
in libdwarf. No longer crashes. |
| 334 |
2019-09-07 David Anderson |
| 335 |
* checkexamples.c: Remove some useless blank lines. |
| 336 |
This is not used by libdwarf. |
| 337 |
* dwarf_alloc.c: Ensure dbg->de_path is freed. |
| 338 |
* dwarf_die_deliv.h: Delete trailing space. |
| 339 |
* dwarf_errmsg_list.h: Add DW_DLE_DUPLICATE_GNU_DEBUGLINK |
| 340 |
and DW_DLE_CORRUPT_GNU_DEBUGLINK error names. |
| 341 |
* dwarf_generic_init.c: Simplified the code slightly, |
| 342 |
avoiding some duplication. Ensure dbg->de_path |
| 343 |
is set where it would not otherwise be set here |
| 344 |
in initialization. |
| 345 |
* dwarf_init_finish.c: Ensure .gnu_debuglink will be |
| 346 |
available to load if it exists in the object. |
| 347 |
* dwarf_opaque.h: Add de_path to struct Dwarf_Debug_s. |
| 348 |
* dwarf_util.c: Add includes and define O_BINARY |
| 349 |
so we can do an open when looking for a file |
| 350 |
that section .gnu_debuglink refers to. |
| 351 |
* libdwarf.h.in: Added new error defines mentioned |
| 352 |
above. |
| 353 |
* generated_libdwarf.h.in: Regenerated |
| 354 |
* libdwarf2.1.mm: Added dwarf_add_file_path() documentation. |
| 355 |
* libdwarf2.1.pdf: Regenerated. Version 2.76. |
| 356 |
2019-09-03 David Anderson |
| 357 |
* dwarf_abbrev.c: Fixed indents and removed |
| 358 |
trailing whitespace. |
| 359 |
* pro_line.h: Added a temporary accomodation of |
| 360 |
the MIN_INST_LENGTH for s390 for dwarfgen. |
| 361 |
This is a hack and needs a fix to dwarfgen. |
| 362 |
Reformatted copyright for shorter lines with |
| 363 |
no change in its text. |
| 364 |
* pro_frame.c: Added a comment, the code is not |
| 365 |
properly dealing with generating frame data when |
| 366 |
the build host is different from the target |
| 367 |
object the producer is generating. |
| 368 |
Reformatted copyright for shorter lines with |
| 369 |
no change in its text. |
| 370 |
2019-09-02 David Anderson |
| 371 |
* checkexample.c: Starting work on an abbreviations-reading |
| 372 |
example (not yet useful). |
| 373 |
* dwarf_abbrev.c: Now does simpler, faster, and better |
| 374 |
attr/form checking. Implements dwarf_get_abbrev_entry_b() |
| 375 |
which adds any DW_FORM_implicit_const value to the |
| 376 |
return value set, and avoids hiding corrupt |
| 377 |
large values from callers. |
| 378 |
* dwarf_abbrev.h: Adds new fields dab_next* to allow |
| 379 |
dwarf_abbrev.c to sequence through entries |
| 380 |
withless overhead. |
| 381 |
* dwarf_die_deliv.c: Improve error checking on reading |
| 382 |
values from the abbreviation section. |
| 383 |
* dwarf_die_deliv.h: Move the fields in Dwarf_Abbrev_list_s |
| 384 |
so the order reads betterr. Improved the comments. |
| 385 |
* dwarf_opaque.h: Simplified the argument list of |
| 386 |
_dwarf_valid_form_we_know(). |
| 387 |
* dwarf_query.c: Improve the error checking in reading |
| 388 |
abbreviation section attr/form pairs. |
| 389 |
* dwarf_util.c(_dwarf_valid_form_we_know): Now reflects |
| 390 |
the simpler argument list. |
| 391 |
* libdwarf.h.in: Added declaration of new function |
| 392 |
dwarf_get_abbrev_entry_b(). |
| 393 |
* generated_libdwarf.h.in: Updated to match the |
| 394 |
libdwarf.h.in change. (regenerated) |
| 395 |
2019-08-29 David Anderson |
| 396 |
* dwarf_abbrev.c: Added private function |
| 397 |
_dwarf_count_abbrev_entries() to eliminate some |
| 398 |
duplicated code. |
| 399 |
Added sanity checks for badly corrupted uleb |
| 400 |
values. |
| 401 |
* dwarf_abbrev.h: Reformatted LGPL text to fit |
| 402 |
on lines better. No change to the text. |
| 403 |
Added explanatory comments about the intent. |
| 404 |
Added declaration of _dwarf_count_abbrev_entries(). |
| 405 |
* dwarf_alloc.c: Removed the never-used Dwarf_Fission_Per_CU_s |
| 406 |
allocation type, marked that index as reserved. |
| 407 |
* dwarf_base_types.h: Reformatted LGPL text to fit |
| 408 |
on lines better. No change to the text. |
| 409 |
* dwarf_die_deliv.c: Reformatted LGPL text to fit |
| 410 |
on lines better. No change to the text. |
| 411 |
Removed some pointless/incorrect comments. |
| 412 |
Refactored the _dwarf_make_CU_Context() code |
| 413 |
with new called functions doing the major activities. |
| 414 |
Now deals with DWARF5 everywhere (as well as |
| 415 |
making it easier to understand split-dwarf support |
| 416 |
(called 'fission' in libdwarf). Synthesize the |
| 417 |
correct unit_type for all compilation units |
| 418 |
with version < 5. Fix mistaken/missing fission support. |
| 419 |
Now GNU signatures are dealt with internally just |
| 420 |
like DWARF5 signatures (by reading the CU die |
| 421 |
up front as necessary). Deals with all the |
| 422 |
base fields defined in DWARF5. |
| 423 |
Fixed some small errors hiding real problems |
| 424 |
in reporting corrupt DWARF. |
| 425 |
* dwarf_errmsg_list.h: Added error codes |
| 426 |
DW_DLE_MIXING_SPLIT_DWARF_VERSIONS, |
| 427 |
DW_DLE_TAG_CORRUPT,DW_DLE_FORM_CORRUPT, |
| 428 |
DW_DLE_ATTR_CORRUPT, |
| 429 |
DW_DLE_ABBREV_ATTR_DUPLICATION, |
| 430 |
DW_DLE_DWP_SIGNATURE_MISMATCH. |
| 431 |
DW_DLE_CU_UT_TYPE_VALUE. |
| 432 |
* dwarf_error.c:Reformatted a line. |
| 433 |
* dwarf_form.c: Removed a pointless multi-line comment. |
| 434 |
Reformatted a couple too-long lines. |
| 435 |
* dwarf_loc.c: Simplified static function |
| 436 |
context_is_cu_not_tu() dramatically. |
| 437 |
* dwarf_loc2.h: Change reflects |
| 438 |
context_is_cu_not_tu() simplification. |
| 439 |
* dwarf_opaque.h: Reformatted LGPL text to fit |
| 440 |
on lines better. No change to the text. |
| 441 |
Removed a three line useless comment. |
| 442 |
Now refer to 'signature' not type_signature |
| 443 |
to match DWARF5 usage. Added loclists_base |
| 444 |
and cu_die_has_children to simplify some logic |
| 445 |
elsewhere. |
| 446 |
Removed unused *Fission* structs. |
| 447 |
Added _dwarf_siblingof_internal() declaration. |
| 448 |
* dwarf_query.c: Renaming some fields to match |
| 449 |
changes in dwarf_opaque.h |
| 450 |
* dwarf_ranges.c: Improve resilence in |
| 451 |
dwarf_get_ranges_a(). |
| 452 |
* dwarf_tied.c: Rename to match dwarf_opaque.h |
| 453 |
name changes. |
| 454 |
* dwarf_util.c: Reformat a couple lines to fit better. |
| 455 |
Add sanity check for the value of an abbrev TAG. |
| 456 |
Calls _dwarf_count_abbrev_entries() instead of counting |
| 457 |
itself. |
| 458 |
* dwarf_xu_index.c: Fix internal functions |
| 459 |
by adding an extra argument to |
| 460 |
_dwarf_get_debugfission_for_offset() so it can work |
| 461 |
with DWARF4 or DWARF5. |
| 462 |
* generated_libdwarf.h.in: Regenerated reflecting |
| 463 |
libdwarf.h.in changes. |
| 464 |
* libdwarf.h.in: Added the defines for the DW_DLE* |
| 465 |
error values listed above. |
| 466 |
* libdwarf2.1.mm: Clarified wording in |
| 467 |
Address Range Operations section. Other minor |
| 468 |
clarifications. |
| 469 |
* libdwarf2.1.pdf: Version 2.74. Regenerated. |
| 470 |
|
| 471 |
|
| 472 |
2019-06-04 David Anderson |
| 473 |
* dwarf_alloc.c,dwarf_frame.c,dwarf_groups.c, |
| 474 |
dwarf_loc.c,dwarf_tied.c,dwarf_tied_test.c, |
| 475 |
pro_die.c,pro_expr.c,pro_init.c: Removed inttypes.h |
| 476 |
include as nothing in it is referenced. |
| 477 |
2019-05-29 David Anderson |
| 478 |
* libdwarf_version.h: Updated version string. |
| 479 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 480 |
dwarf_names_new.h: regenerated. |
| 481 |
2019-05-26 David Anderson |
| 482 |
* dwarf_alloc.c,dwarf_frame.c: Reformat comment lines |
| 483 |
to shorten them. |
| 484 |
Include inttypes.h for tsearch.h. |
| 485 |
* elf_load_headers.c: Remove trailing whitespace. |
| 486 |
* dwarf_groups.c,dwarf_loc.c,dwarf_tied.c: Reformat |
| 487 |
comment lines to shorten them. |
| 488 |
Remove small erroneous comment. |
| 489 |
* dwarf_machoread.c: Shorten too-long lines. |
| 490 |
* dwarf_tied_test.c: Reformat |
| 491 |
comment lines to shorten them. Remove trailing whitespace. |
| 492 |
* dwarf_tsearch.h: Make idempotent include with |
| 493 |
ifndef DWARF_TSEARCH_H . Delete a blank line. |
| 494 |
* dwarf_tsearchhash.c: Add and use DW_PR_DUx and |
| 495 |
DW_PR_DUu and uintptr_t, refining casts to avoid |
| 496 |
compiler warnings. |
| 497 |
* pro_alloc.c,pro_die.c: Reformat comment lines |
| 498 |
to shorten them. |
| 499 |
Remove small erroneous comment. |
| 500 |
* pro_expr.c,pro_init.c: Reformat comment lines |
| 501 |
to shortent them. |
| 502 |
Remove small erroneous comment. |
| 503 |
2019-05-24 David Anderson |
| 504 |
* Makefile.am: Delete mention of config.h.in.cmake. |
| 505 |
* Makefile.in: Regenerate. |
| 506 |
* dwarf_tied_test.c: Delete the comment on uintptr_t |
| 507 |
on the intypes.h line. |
| 508 |
* libdwarf.h.in: Refine commentary a little. |
| 509 |
* generated_libdwarf.h.in: Regenerated. |
| 510 |
2019-05-20 David Anderson |
| 511 |
* CMakeLists.txt: No longer generates a local-build-dir |
| 512 |
config.h |
| 513 |
* config.h.in.cmake: Deleted. |
| 514 |
2019-05-20 David Anderson |
| 515 |
* CMakeLists.txt: Reflects revised cmake option names. |
| 516 |
Adds compiler warning options when -DWALL selected. |
| 517 |
* config.h.in.cmake: Reflects the set of defines |
| 518 |
needed now, such as cmakedefine DWARF_WITH_LIBELF. |
| 519 |
* dwarf_elf_access.c: Removes some messy HAVE_LIBELF_H |
| 520 |
etc to dwarf_elf_defines.h so the test/define |
| 521 |
is reusable |
| 522 |
* dwarf_elf_defines.h: Now has the messy HAVE_LIBELF_H |
| 523 |
etc tests. |
| 524 |
* dwarf_elf_load_headers.c: Removes unwanted include of elf.h |
| 525 |
* dwarf_elfread.c: Add Windows-related ifdef. |
| 526 |
A couple if () reformatted slightly. a few casts |
| 527 |
added to ensure compiler warnings eliminated. |
| 528 |
* dwarf_frame2.c: Using Dwarf_Unsigned a bit more |
| 529 |
so the output can use DW_PR_DUx for the printf. |
| 530 |
* dwarf_incl.h: Small comment change for readability. |
| 531 |
* dwarf_machoread.c: Add Windows-related ifdef/define/include. |
| 532 |
Minor if() revision for consistency. Some casts |
| 533 |
added to avoid compiler warnings and communicate intent. |
| 534 |
* dwarf_object_detector.c: Added Windows specific ifdef/include |
| 535 |
and accomodation of HAVE_CUSTOM_LIBELF. |
| 536 |
* dwarf_object_read_common.c: Added Windows specific |
| 537 |
ifdef/include and a slight reformatting of argument |
| 538 |
lists. |
| 539 |
* dwarf_peread.c: Added Windows specific ifdef/include. |
| 540 |
Added casts to avoid compiler warnings. |
| 541 |
* dwarf_query.c: Reformat some if() for consistency. |
| 542 |
* gennames.c: Added Windows specific ifdef/include. |
| 543 |
* libdwarf.h.in: Deleted excessive blank lines. |
| 544 |
Added DW_FTYPE_CUSTOM_ELF 5. |
| 545 |
* pro_encode_nm.c: Added casts to avoid certain compiler |
| 546 |
warnings. |
| 547 |
* pro_incl.h: Made a comment more consistent with |
| 548 |
other uses of that comment. |
| 549 |
2019-05-14 David Anderson |
| 550 |
* dwarf_pe_descr.h: Several // C++ comments |
| 551 |
present, now all such comments deleted. |
| 552 |
2019-05-13 David Anderson |
| 553 |
* pro_section.c,pro_frame.c: A bug in a macro shows up only |
| 554 |
on big-endian systems (causes a compiler warning). |
| 555 |
This fixes it. |
| 556 |
2019-05-07 David Anderson |
| 557 |
* configure.cmake: Moved into CMakeLists.txt. |
| 558 |
* Makefile.am: Deleted reference to configure.cmake. |
| 559 |
* CMakeLists.txt: no longer needs configure.cmake |
| 560 |
2019-05-05 David Anderson |
| 561 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 562 |
dwarf_names_new.h: Updated with latest version |
| 563 |
string (in a comment). |
| 564 |
* libdwarf_version.h: New version string. |
| 565 |
2019-05-04 David Anderson |
| 566 |
* dwarf_elf_load_headers.c: A corrupt Elf .shstring |
| 567 |
section (lacking trailing NUL) is now detected. |
| 568 |
* dwarf_elfread.h: Removed an unused struct |
| 569 |
and an unused struct field. |
| 570 |
2019-05-02 David Anderson |
| 571 |
* dwarf_leb.c,dwarf_tied.c,dwarf_tied_decls.h, |
| 572 |
dwarf_tied_test.c: Removing trailing whitespace |
| 573 |
and final blank lines. |
| 574 |
* dwarf_object_detector.c,dwarf_pe_descr.h,dwarf_peread.c: |
| 575 |
Adding _dw to the names of more Windows things to avoid |
| 576 |
compilation conflicts with Windows names. |
| 577 |
2019-05-01 David Anderson |
| 578 |
* configure.cmake: Removed some more lines. |
| 579 |
Mainly leaving options declarations (which |
| 580 |
will be moved later). |
| 581 |
* dwarf_incl.h: Fixed a typo in a comment. |
| 582 |
2019-05-01 David Anderson |
| 583 |
* configure.cmake: Removed some lines, placing them in |
| 584 |
base directory configure.cmake. |
| 585 |
2019-04-30 David Anderson |
| 586 |
* CMakeLists.txt: Added the new files. Revised the |
| 587 |
testing area the tests can be run and pass. |
| 588 |
2019-04-30 David Anderson |
| 589 |
* libdwarf2.1.mm: Increased font size for better |
| 590 |
legibility in the pdf on a computer monitor |
| 591 |
Using the .S mm control. Rev 2.73. |
| 592 |
The smaller size was readable on paper, but |
| 593 |
not very readable on a screen. |
| 594 |
* libdwarf2p.1.mm: Larger font size here too. Rev 1.45. |
| 595 |
* libdwarf2.1.pdf,libdwarf2p.1.pdf: Regenerated |
| 596 |
* pdfbld.sh: Fixed the -p option. |
| 597 |
2019-04-30 David Anderson |
| 598 |
* Makefile.am: Altered the lists of headers/source |
| 599 |
to account for the new 'make check' details. |
| 600 |
* dwarf_leb.c,dwarf_tied.c: Removed testing-related |
| 601 |
source. Moved to the respective _test.c |
| 602 |
* dwarf_leb_test.c,dwarf_tied_decls.h,dwarf_tied_test.c: |
| 603 |
New files so we isolate test code without ifdefs. |
| 604 |
* runtests.sh: Now reflects the new test sourcefiles. |
| 605 |
2019-04-29 David Anderson |
| 606 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 607 |
dwarf_names_new.h: Regenerated. |
| 608 |
Version date update. |
| 609 |
2019-04-28 David Anderson |
| 610 |
* config.h.in.cmake, configure.cmake: Deleted all reference to |
| 611 |
INT32 and INT64 as no longer needed. |
| 612 |
2019-04-26 David Anderson |
| 613 |
* CMakeLists.txt,config.h.in.cmake,configure.cmake: |
| 614 |
Revised to work with the updated use of cmake. |
| 615 |
2019-04-25 David Anderson |
| 616 |
* dwarf_pe_descr.h, dwarf_peread.c: All the Windows PE |
| 617 |
structs have been renamed, adding a trailing _dw, |
| 618 |
to make them distinct from the standard Windows |
| 619 |
names. |
| 620 |
2019-04-25 David Anderson |
| 621 |
* dwarf_elfread.c, dwarf_object_read_common.c: Removed |
| 622 |
trailing whitespace. |
| 623 |
2019-04-25 David Anderson |
| 624 |
* dwarf_peread.c: Change the way an strncpy |
| 625 |
is handled to avoid a compiler warning |
| 626 |
as well as create hopefully clearer code. |
| 627 |
2019-04-25 David Anderson |
| 628 |
* dwarf_elf_load_headers.c,dwarf_elfread.c, |
| 629 |
dwarf_object_read_common.c: Added missing |
| 630 |
Windows-specific includes. |
| 631 |
* libdwarf_version.h: Updated version date string. |
| 632 |
2019-04-24 David Anderson |
| 633 |
* dwarf_die_deliv.c(_dwarf_next_cu_internal): |
| 634 |
Allow a null as the next_cu_offset pointer |
| 635 |
passed in. |
| 636 |
* dwarf_elf_load_headers.c: Correct the check |
| 637 |
for a dwarf-related section. Correct |
| 638 |
the error code returned in several places. |
| 639 |
* dwarf_elfread.c:a Correct the error code |
| 640 |
returned and one return value. |
| 641 |
* dwarf_errmsg_list.h: Add specific errors relating |
| 642 |
to nolibelf elf reading. |
| 643 |
* dwarf_generaic_init.c: Remove trailing whitespace. |
| 644 |
* dwarf_query.c(dwarf_highpc_b): Allow a couple |
| 645 |
of pointer args to be null in case clients |
| 646 |
are uninterested in returning values. |
| 647 |
* libdwarf.h.in: Added DW_DLE_ELF_SECTION_ERROR, |
| 648 |
DW_DLE_ELF_STRING_SECTION_ERROR. |
| 649 |
* libdwarf2.1.mm: Version 2.72. Documented that |
| 650 |
dwarf_next_cu_header_d() and dwarf_hipc_b() |
| 651 |
allow specific arguments to be null. |
| 652 |
* libdwarf2.1.pdf: Regenerated |
| 653 |
2019-04-22 David Anderson |
| 654 |
* dwarf_generic_init.c, dwarf_machoread.c, |
| 655 |
dwarf_object_detector.c, |
| 656 |
dwarf_object_read_common.c,dwarf_peread.c: Add test |
| 657 |
for _MSC_VER for Windows MSVC. |
| 658 |
2019-04-22 David Anderson |
| 659 |
* dwarf_frame.c: Add ifdef/include of stdint.h |
| 660 |
and inttypes.h and add casts using uintptr_t |
| 661 |
so we avoid some compiler warnings. |
| 662 |
* dwarf_groups.c,dwarf_tied.c, |
| 663 |
pro_alloc.c,pro_die.c,pro_init.c: Add ifdef/include |
| 664 |
of stdint.h |
| 665 |
and inttypes.h as the updated dwarf_tsearch.h |
| 666 |
requires uintptr_t. |
| 667 |
* dwarf_loc.c,pro_expr.c: Add ifdef/include of stdint.h |
| 668 |
and inttypes.h so we can use uintptr_t |
| 669 |
in casts and avoid compiler warnings. |
| 670 |
* dwarf_tsearchhash.c: Add ifdef/include of stdint.h |
| 671 |
and inttypes.h for dwarf_tsearch.h so we can use uintptr_t |
| 672 |
in casts and avoid compiler warnings. |
| 673 |
2019-04-21 David Anderson |
| 674 |
* dwarf_pe_descr.h: Added a comment specifying |
| 675 |
a MS web page describing |
| 676 |
how the section data length and content is |
| 677 |
calculated and handled. |
| 678 |
* dwarf_peread.c(pe_get_section_info): The understanding |
| 679 |
of the length of section data was overly simplistic. |
| 680 |
Now with all the bytes filled in properly in this function. |
| 681 |
2019-04-21 David Anderson |
| 682 |
* dwarf_peread.c: Now getting pe section |
| 683 |
data returns a meaningful section virtual address. |
| 684 |
2019-04-19 David Anderson |
| 685 |
* CMakeLists.txt: Add new files to the files to build. |
| 686 |
* Makefile.am: add the new .h and .c files. |
| 687 |
* dwarf_die_deliv.c(reloc_incomplete): Reformat |
| 688 |
the long 'if' to make it easier to read. |
| 689 |
* dwarf_elf_access.c: Remove the full list of |
| 690 |
relocations header files as no longer needed, |
| 691 |
include dwarf_elf_defines.h instead. |
| 692 |
Remove the |
| 693 |
is_??bit_abs_reloc() predicate functions. Move |
| 694 |
to dwarf_elf_rel_detector. (renamed the functions). |
| 695 |
* dwarf_errmsg_list.h: Added |
| 696 |
DW_DLE_SECTION_SIZE_ERROR, |
| 697 |
DW_DLE_INTERNAL_NULL_POINTER, |
| 698 |
DW_DLE_SECTION_STRING_OFFSET_BAD, |
| 699 |
DW_DLE_SECTION_INDEX_BAD, DW_DLE_INTEGER_TOO_SMALL, |
| 700 |
DW_DLE_ELF_SECTION_LINK_ERROR,DW_DLE_ELF_SECTION_GROUP_ERROR, |
| 701 |
DW_DLE_ELF_SECTION_COUNT_MISMATCH, |
| 702 |
DW_DLE_ELF_STRING_SECTION_MISSING,DW_DLE_SEEK_OFF_END, |
| 703 |
DW_DLE_READ_OFF_END for use by the nolibelf |
| 704 |
elf reader. |
| 705 |
* dwarf_generic_init.c: Now separates |
| 706 |
archive access (using libelf) from non-archive (using |
| 707 |
no libelf). |
| 708 |
* dwarf_init_finish.c: Revamp commentary about |
| 709 |
_dwarf_load_section. |
| 710 |
* dwarf_machoread.c: Renamed mo_byteorder to mo_endian |
| 711 |
for consistency. Added filesize to seek/read |
| 712 |
(RRMOA macro)for better checking of offset/size. |
| 713 |
* dwarf_machoread.h: Renamed mo_byteorder to mo_endian. |
| 714 |
* dwarf_object_detector.c: Added filesize to seek/read |
| 715 |
(_dwarf_object_read_random()) |
| 716 |
for better checking of offset/size. |
| 717 |
* dwarf_object_read_common.c: Added additional checks |
| 718 |
of seek/read to ensure offset correctness. |
| 719 |
Seek itself allows seeking past end, which we |
| 720 |
do not want. |
| 721 |
* dwarf_object_read_common.h: Added filesize to |
| 722 |
_dwarf_object_read_random argument list. |
| 723 |
* dwarf_opaque.h: Removed trailing whitespace. |
| 724 |
Added _dwarf_elf_nlsetup() declaration for non-libelf. |
| 725 |
* dwarf_original_elf_init.c: Added ifdef so calls |
| 726 |
do not get warnings when only non-libelf. |
| 727 |
* dwarf_peread.c: Renamed pe_byteorder to pe_endian |
| 728 |
forconsistency. Added filesize arg to |
| 729 |
_dwarf_object_read_random calls. |
| 730 |
* dwarf_peread.h: Renamed pe_byteorder to pe_endian |
| 731 |
for consistency. |
| 732 |
* dwarf_reading.h: Now RRMOA macro adds filesize |
| 733 |
argument. |
| 734 |
* libdwarf.h.in: Added error codes DW_DLE_SECTION_SIZE_ERROR, |
| 735 |
DW_DLE_INTERNAL_NULL_POINTER,DW_DLE_SECTION_STRING_OFFSET_BAD, |
| 736 |
DW_DLE_SECTION_INDEX_BAD,DW_DLE_INTEGER_TOO_SMALL, |
| 737 |
DW_DLE_ELF_SECTION_LINK_ERROR,DW_DLE_ELF_SECTION_GROUP_ERROR, |
| 738 |
DW_DLE_ELF_SECTION_COUNT_MISMATCH, |
| 739 |
DW_DLE_ELF_STRING_SECTION_MISSING,DW_DLE_SEEK_OFF_END, |
| 740 |
DW_DLE_READ_OFF_END |
| 741 |
* memcpy_swap.h: Returned the function declarations |
| 742 |
to be a single long line each. |
| 743 |
* dwarf_elf_rel_detector.h, dwarf_elf_rel_detector.c: |
| 744 |
Refactored relocation tests determing whether |
| 745 |
the relocation was 32bit or 64bit. |
| 746 |
* dwarf_elf_reloc_386.h, |
| 747 |
dwarf_elf_reloc_aarch64.h,dwarf_elf_reloc_arm.h, |
| 748 |
dwarf_elf_reloc_mips.h,dwarf_elf_reloc_ppc64.h, |
| 749 |
dwarf_elf_reloc_ppc.h,dwarf_elf_reloc_sparc.h, |
| 750 |
dwarf_elf_reloc_x86_64.h: Complete lists |
| 751 |
of relocation types. |
| 752 |
These are no longer needed by libdwarf, but |
| 753 |
for now remain here. They were once needed |
| 754 |
for builds lacking a sufficiently complete |
| 755 |
elf.h. |
| 756 |
* dwarf_elfstructs.h: struct declarations for |
| 757 |
the standard Elf structs, but using character |
| 758 |
arrays, not integers. Assures we always have the |
| 759 |
correct lengths independent of integer sizes. |
| 760 |
* dwarf_elf_defines.h: A basic set of Elf defines |
| 761 |
so the producer code has all it needs. |
| 762 |
Used by the Elf readers (libelf and nolibelf). |
| 763 |
* dwarf_elfread.h: The internally-used set of |
| 764 |
structures that hold nolibelf Elf data. |
| 765 |
The fields are sized to hold 64bit and used for |
| 766 |
both 32bit and 64bit elf. Some extra fields exist |
| 767 |
so aspects that differ by 32/64 are recorded |
| 768 |
by 32/64 specific code so |
| 769 |
* dwarf_elf_load_headers.c: Actually reads 32 and 64 |
| 770 |
Elf and inserts the values into the structures |
| 771 |
declared in dwarf_elfread.h. |
| 772 |
* dwarf_elfread.c: This does the nolibelf setup |
| 773 |
and calls dwarf_elf_load_headers.c interfaces |
| 774 |
to help with setup. |
| 775 |
2019-03-08 David Anderson |
| 776 |
* pro_section.c: Remove trailing whitespace. |
| 777 |
2019-03-07 David Anderson |
| 778 |
* pro_section.c(_dwarf_pro_generate_debuginfo): Now when |
| 779 |
there are zero bytes to copy we do not call memcpy, |
| 780 |
as in that case the source pointer will be NULL. |
| 781 |
2019-03-06 David Anderson |
| 782 |
* dwarf_form.c,dwarf_global.c: Removed trailing whitespace. |
| 783 |
* pro_init.c: Removed trailing whitespace and fixed indents. |
| 784 |
* pro_forms.c(dwarf_add_AT_any_value_uleb_a): Accidentally |
| 785 |
leftout dbg = ownerdie->di_dbg, resulting in a memory |
| 786 |
leak. |
| 787 |
* pro_frame.c(dwarf_new_fde_a): Accidentally left out |
| 788 |
setting fde_dbg, resulting in a memory leak. |
| 789 |
2019-03-04 David Anderson |
| 790 |
* dwarf.h: Adding go-specifig type attributes |
| 791 |
DW_AT_go_kind,DW_AT_go_key,DW_AT_go_elem, |
| 792 |
DW_AT_go_embedded_field,DW_AT_go_runtime_type. |
| 793 |
Added error code DW_DLE_RETURN_EMPTY_PUBNAMES_ERROR. |
| 794 |
* dwarf_errmsg_list.h: |
| 795 |
Added error code DW_DLE_RETURN_EMPTY_PUBNAMES_ERROR. |
| 796 |
* dwarf_global.c: Updates new fields in the hidden struct |
| 797 |
with pubnames(etc) context data and makes it possible |
| 798 |
to see the CU headers there, even if there are no |
| 799 |
actual variables listed for a CU (a fake record |
| 800 |
returned in that case). The change in output |
| 801 |
records (the fake records) only appear if |
| 802 |
the caller has requested such by a call to |
| 803 |
xxxxx |
| 804 |
Implements dwarf_get_globals_header() so a caller |
| 805 |
like dwarfdump can print such section headers. |
| 806 |
Implements dwarf_return_empty_pubnames() |
| 807 |
which just sets a flag so a caller |
| 808 |
like dwarfdump can request such empty sections |
| 809 |
return a useful fake entry. |
| 810 |
* dwarf_global.h: Adds fields like pu_length, pu_version |
| 811 |
so pubnames(etc) sections can have their cu header |
| 812 |
data returned. |
| 813 |
* dwarf_line.c: Adds explicit calls to dwarf_dealloc |
| 814 |
in error cases to avoid leaving the allocated memory |
| 815 |
hanging around until dwarf_finish(). |
| 816 |
* dwarf_names.c,dwarf_names.h, dwarf_names_enum.h, |
| 817 |
dwarf_names_new.h: Regenerated to create the new attributes |
| 818 |
for the Go language. |
| 819 |
* dwarf_opaque.h: Adds flag de_return_empty_pubnames to |
| 820 |
Dwarf_Debug_s struct so libdwarf can know when fake |
| 821 |
records for CUs with no entries are wanted by |
| 822 |
callers. |
| 823 |
* libdwarf.h.in: Added error code DW_DLE_RETURN_EMPTY_PUBNAMES_ERROR. |
| 824 |
Declares dwarf_return_empty_pubnames() and |
| 825 |
dwarf_get_globals_header() so callers (like dwarfdump) |
| 826 |
can see and access all pubnames(etc)section CU headers. |
| 827 |
* libdwarf2.1.mm: Version 2.71. Documents the new functions. |
| 828 |
Revises the contest structure a little so all the pubnames-like |
| 829 |
sections are documented as a related group of functions. |
| 830 |
* libdwarf2.1.pdf: Regenerated. Version 2.71. |
| 831 |
* libdwarf_version.h: New date string. |
| 832 |
2019-02-26 David Anderson |
| 833 |
* dwarf.h: Added go language specific attributes. |
| 834 |
* dwarf_line.c(dwarf_srcfiles): Dealloc stmt_list_attr |
| 835 |
as soon as we lose interest in it instead of waiting |
| 836 |
for dwarf_finish() to be called. |
| 837 |
2019-02-24 David Anderson |
| 838 |
* libdwarf_version.h: Updated date string. |
| 839 |
* dwarf_names.c,dwarf_names.h, dwarf_names_enum.h, |
| 840 |
dwarf_names_new.h: Regenerated with latest date string. |
| 841 |
2019-02-18 David Anderson |
| 842 |
* configure.cmake: Now always defines DWARF_WITH_LIBELF |
| 843 |
so builds work as always. |
| 844 |
* dwarf_elf_access.c,dwarf_generic_init.c, |
| 845 |
dwarf_original_elf_init.c, |
| 846 |
pro_incl.h,pro_init.c,pro_reloc_stream.c: Now these use |
| 847 |
DWARF_WITH_LIBELF tests to build properly when |
| 848 |
libelf is to be used. |
| 849 |
2019-02-18 David Anderson |
| 850 |
* pro_incl.h: Added comments on tests of HAVE_ELF_H |
| 851 |
and the LIBELF_H macros and the #include of |
| 852 |
the Elf/libelf headers. |
| 853 |
2019-02-18 David Anderson |
| 854 |
* pro_reloc_stream.h: Was testing ifdef HAVE_ELF_H, which |
| 855 |
is unnecessary as it does not use any elf.h types. |
| 856 |
2019-02-12 David Anderson |
| 857 |
* dwarf_form.c: Implement dwarf_uncompress_integer_block_a() |
| 858 |
with the proper return type (int). Use this instead |
| 859 |
of the old dwarf_uncompress_integer_block(). |
| 860 |
* libdwarf.h.in: Declare dwarf_uncompress_integer_block_a() |
| 861 |
and dwarf_uncompress_integer_block_a(). |
| 862 |
* pro_forms.c: Implment the two new functions. |
| 863 |
2019-02-10 David Anderson |
| 864 |
* dwarf_errmsg_list.h,libdwarf.h.in: Adding |
| 865 |
DW_DLE_NO_STREAM_RELOC_SUPPORT error code. |
| 866 |
* pro_alloc.c,pro_arange.c,pro_die.c,pro_dnames.c, |
| 867 |
pro_error.c,pro_expr.c,pro_finish.c,pro_forms.c, |
| 868 |
pro_frame.c,pro_funcs.c,pro_init.c,pro_line.c, |
| 869 |
pro_macinfo.c,pro_pubnames.c,pro_reloc.c, |
| 870 |
pro_reloc_symbolic.c,pro_section.c,pro_types.c, |
| 871 |
pro_vars.c,pro_weaks.c: |
| 872 |
Removed the ifdef HAVE_ELF_H in most places |
| 873 |
as we can really build everything without elf.h |
| 874 |
except pro_reloc_stream.c (which retains |
| 875 |
the big ifdef HAVE_ELF_H on the whole file). |
| 876 |
Now only a couple files have ifdef HAVE_ELF_H |
| 877 |
* pro_reloc_stream.h: Hiding the function decls |
| 878 |
with ifdef HAVE_ELF_H |
| 879 |
2019-02-10 David Anderson |
| 880 |
* dwarf_errmsg_list.h,dwarf_generic_init.c: |
| 881 |
Removed trailing whitespace on one line. |
| 882 |
* dwarf_incl.h: Removed blank line |
| 883 |
and a duplicated include statement. |
| 884 |
2019-02-10 David Anderson |
| 885 |
* pro_alloc.c,pro_arange.c,pro_die.c,pro_dnames.c, |
| 886 |
pro_error.c,pro_expr.c,pro_finish.c,pro_forms.c, |
| 887 |
pro_frame.c,pro_funcs.c,pro_incl.h,pro_init.c, |
| 888 |
pro_line.c,pro_macinfo.c,pro_pubnames.c,pro_reloc.c, |
| 889 |
pro_reloc_stream.c,pro_reloc_symbolic.c,pro_section.c, |
| 890 |
pro_types.c,pro_vars.c,pro_weaks.c: Now pro_incl.h |
| 891 |
is almost entirely just #defines and each .c |
| 892 |
brings in just the headers it really wants. |
| 893 |
2019-02-10 David Anderson |
| 894 |
* dwarf_names.c,dwarf_names.h,dwarf_names_enum.h, |
| 895 |
dwarf_names_new.h: Datestring update. |
| 896 |
* libdwarf_version.h: Updated date string |
| 897 |
2019-02-07 David Anderson |
| 898 |
* dwarf_elf_access.c, pro_alloc.c, pro_arange,c,pro_die.c, |
| 899 |
pro_dnames.c,pro_error.c,pro_xpr.c,pro_finish.c, |
| 900 |
pro_forms.c,pro_frame.c, pro_funcs.c,pro_init.c, |
| 901 |
pro_line.c,pro_macinfo.c,pro_pubnames.c,pro_reloc.c, |
| 902 |
pro_reloc_stream.c, pro_reloc_symbolic.c,pro_section.c, |
| 903 |
pro_types.c,pro_vars.c,pro_weaks.c: |
| 904 |
Ifdef (entire file after include config.h) |
| 905 |
HAVE_ELF_H so libdwarf compiles without HAVE_ELF_H |
| 906 |
* pro_encode_nm.c: Get rid nested includes, include just |
| 907 |
what is needed. |
| 908 |
* dwarf_generic_init.c: Moved dwarf_set_tied_dbg() here |
| 909 |
and ifdef HAVE_ELF_H so |
| 910 |
libdwarf compiles without HAVE_ELF_H |
| 911 |
* dwarf_original_elf_init.c: ifdef HAVE_ELF_H so |
| 912 |
we can emit an error if no Elf: DW_DLE_NO_ELF_SUPPORT. |
| 913 |
* dwarf_errmsg_list.h: Add new error DW_DLE_PRODUCER_CODE_NOT_AVAILABLE |
| 914 |
to display if an attempt is made to open an elf object |
| 915 |
when libdwarf built without HAVE_ELF_H. And add |
| 916 |
DW_DLE_NO_ELF_SUPPORT. |
| 917 |
* libdwarf.h.in: Add DW_DLE_PRODUCER_CODE_NOT_AVAILABLE and |
| 918 |
DW_DLE_NO_ELF_SUPPORT. |
| 919 |
2019-01-31 David Anderson |
| 920 |
* dwarf_alloc.c, dwarf_die_deliv.c,dwarf_dnames.c, dwarf_dsc.c, |
| 921 |
dwarf_elf_access.c,dwarf_frame.c,dwarf_frame2.c, |
| 922 |
dwarf_gdbindex.c,dwarf_generic_init.c,dwarf_init_finish.c, |
| 923 |
dwarf_line.c,dwarf_loc.c,dwarf_loc2.h,dwarf_machoread.c, |
| 924 |
dwarf_macro.c,dwarf_macro5.c,dwarf_opaque.h,dwarf_peread.c, |
| 925 |
dwarf_tsearchhash.c,dwarf_util.c,dwarf_xu_index.c,pro_alloc.c, |
| 926 |
pro_arange.c,pro_expr.c,pro_line.c,pro_macinfo.c, |
| 927 |
pro_section.c,pro_types.c: Fixed 56 bugs found |
| 928 |
by llvm's scan-build tool. |
| 929 |
2019-01-27 David Anderson |
| 930 |
* dwarf_form.c,dwarf_gdbindex.c,dwarf_object_read_common.c, |
| 931 |
pro_forms.c,pro_section.c: Remove trailing whitespace. |
| 932 |
2019-01-27 David Anderson |
| 933 |
* dwarf_object_read_common.c,dwarf_object_read_common.h: |
| 934 |
Now uses the ISO (1990) datatypes off_t and size_t and |
| 935 |
ssize_t for lseek, read. |
| 936 |
2019-01-20 David Anderson |
| 937 |
* dwarf_base_types.h: Remove Dwarf_ufixed and |
| 938 |
Dwarf_sfixed and all __int32_t and __uint32_t use. |
| 939 |
__uint64_t Dwarf_ufixed64 and __int64_t Dwarf_sfixed64 |
| 940 |
have also been removed. |
| 941 |
* dwarf_elf_access.c: Remove use of those types here too. |
| 942 |
* dwarf_form.c: Remove references to those types here |
| 943 |
too. |
| 944 |
* dwarf_gdbindex.c, dwarf_gdbindex.h: Replace |
| 945 |
gdbindex_offset_type headerval[6] |
| 946 |
by char gfs[4][6] (replacing dependence on the int32 |
| 947 |
sorts of types. |
| 948 |
* dwarf_macho_loader.h: Clarified that the uint32_t sorts |
| 949 |
of things are just comments. |
| 950 |
* libdwarf.h.in: Fixed a too-long comment line. |
| 951 |
* libdwarfdefs.h: Removed all the *UINT32* and |
| 952 |
*uint64* use. |
| 953 |
* pro_forms.c,pro_opaque, pro_section.c: |
| 954 |
Removed all the Dwarf_sfixed and ufixed |
| 955 |
stuff here too. |
| 956 |
2019-01-14 David Anderson |
| 957 |
* dwarf_frame.c: Add support for DW_CFA_MIPS_advance_loc8 |
| 958 |
(though pointless, really) so we can test all the code |
| 959 |
paths of advance_loc production. |
| 960 |
* dwarf_frame2.c: Minor formatting cleanup. |
| 961 |
* dwarf_line_table_reader_common.h: Now tests for |
| 962 |
negative line numbers in the table and returns an error |
| 963 |
with the new error code DW_DLE_LINE_TABLE_LINENO_ERROR |
| 964 |
(which indicates a corrupted line table). |
| 965 |
* dwarf_names.c, dwarf_names.h, dwarf_names_enum.h, |
| 966 |
dwarf_names_new.h: Regenerated. Just an update of |
| 967 |
the sourcedate comment. |
| 968 |
* dwarf_opaque.h: Delete a trailing whitespace character. |
| 969 |
* libdwarf.h.in: Add error DW_DLE_LINE_TABLE_LINENO_ERROR. |
| 970 |
* pro_expr.c: Remove trailing whitespace. |
| 971 |
* pro_frame.c( dwarf_add_fde_inst_a): A new simpler |
| 972 |
more portable implementation of the DW_CFA_advance_loc |
| 973 |
code. |
| 974 |
* pro_opaque.h: Delete blank last line. |
| 975 |
2019-01-12 David Anderson |
| 976 |
* dwarf_abbrev.c,dwarf_abbrev.h,dwarf_base_types.h, |
| 977 |
dwarf_die_deliv.c, dwarf_dsc.c,dwarf_error.c, |
| 978 |
dwarf_error.h,dwarf_form.c,dwarf_frame.c, |
| 979 |
dwarf_frame.h,dwarf_frame2.c,dwarf_global.h, |
| 980 |
dwarf_leb.c,dwarf_line.c,dwarf_line.h, |
| 981 |
dwarf_line_table_reader_common.h,dwarf_loc.c, |
| 982 |
dwarf_loc2.h,dwarf_macro5.c,dwarf_macro5.h,dwarf_opaque.h, |
| 983 |
dwarf_print_lines.c,dwarf_query.c,dwarf_util.c,dwarf_util.h, |
| 984 |
pro_arange.c,pro_error.c,pro_error.h,pro_expr.c, |
| 985 |
pro_forms.c,pro_frame.c,pro_frame.h,pro_line.h, |
| 986 |
pro_opaque.h,pro_reloc_stream.c,pro_section.c, |
| 987 |
pro_types.c: Removed all instances of use of |
| 988 |
Dwarf_Word, Dwarf_Sword, __int32_t (and other such). |
| 989 |
In nearly all cases the use was gratuitous. In a few |
| 990 |
cases some very old code was problematic (dwarf_frame2.c) |
| 991 |
and is fixed. |
| 992 |
2019-01-10 David Anderson |
| 993 |
* libdwarf_version.h: New date string. |
| 994 |
2019-01-09 David Anderson |
| 995 |
* dwarf_original_elf_init.c: One of the calls to |
| 996 |
dwarf_object_init_b() was checking the result code |
| 997 |
then doing a statment that will crash the caller unless |
| 998 |
the result code was DW_DLV_OK. |
| 999 |
2019-01-05 David Anderson |
| 1000 |
* dwarf_generic_init.c: Removed trailing whitespace. |
| 1001 |
2019-01-04 David Anderson |
| 1002 |
* dwarf_generic_init.c: After closing de_fd, |
| 1003 |
set de_owns_fd FALSE as an extra guard. |
| 1004 |
2019-01-04 David Anderson |
| 1005 |
* dwarf_object_detector.c: Ensure the configure |
| 1006 |
can set O_BINARY if necessary so open() will use it. |
| 1007 |
2019-01-04 David Anderson |
| 1008 |
* dwarf_elf_access.c,dwarf_generic_init.c,dwarf_machoread.c, |
| 1009 |
dwarf_opaque.h,dwarf_peread.c: Simplified and unified |
| 1010 |
the requirement that dwarf_finish() close the fd |
| 1011 |
that dwarf_init_path() opened. |
| 1012 |
2019-01-04 David Anderson |
| 1013 |
* configure.ac: Version 20190104 |
| 1014 |
* dwarf_elf_access.c: Now records that libdwarf owns |
| 1015 |
its fd in the elf case and arranges to close it |
| 1016 |
when the Dwarf_Debug is being closed. |
| 1017 |
This is the case of dwarf_init_path(). |
| 1018 |
Hopefully will address Coverity CID 190599. |
| 1019 |
* dwarf_object_detector.c: Now that struct stat |
| 1020 |
is not in use delete the sys/types.h and sys/stat.h |
| 1021 |
includes as they are no longer needed. |
| 1022 |
* dwarf_generic_init(dwarf_init_path): When libdwarf |
| 1023 |
owns the fd, call _dwarf_elf_record_owned_fd() |
| 1024 |
to record that information. |
| 1025 |
In the default case (not a known object type) |
| 1026 |
we also now close the fd. |
| 1027 |
* dwarf_opaque.h: Add prototype for |
| 1028 |
_dwarf_elf_record_owned_fd, a new internal function |
| 1029 |
so the fd can be closed by libdwarf only when |
| 1030 |
libdwarf owns it. |
| 1031 |
* libdwarf_version.h: New date string. |
| 1032 |
2019-01-03 David Anderson |
| 1033 |
* dwarf_object_detector.c: Had a pointless call to stat() |
| 1034 |
which was noticed by Coverity CID 190601 |
| 1035 |
as a possible race condition. Deleted the call. |
| 1036 |
* dwarf_generic_init(dwarf_init_path): |
| 1037 |
Serious bugs introduced yesterday. |
| 1038 |
Coverity CID 190600. |
| 1039 |
the fd is remembered in the Dwarf_Debug |
| 1040 |
being created and will eventually be closed |
| 1041 |
when the Dwarf_Debug is closed. |
| 1042 |
2019-01-02 David Anderson |
| 1043 |
* dwarf_die_deliv.c(dwarf_get_real_section_name): |
| 1044 |
Uninitialized local char array |
| 1045 |
could lead to unpredictable behavior, so now initialized |
| 1046 |
with a NUL first byte so the array is a legal string. |
| 1047 |
Coverity CID CID 190598. |
| 1048 |
* ChangeLog: Renamed ChangeLog2018. New ChangeLog created. |
| 1049 |
* Makefile.am: Added ChangeLog2018 to files in dist. |
| 1050 |
* gennames.c(GenerateOneSet): Fixing Coverity CID 190603 |
| 1051 |
by removing an unused (unusable) value. |
| 1052 |
* dwarf_machoread.c.The include order |
| 1053 |
is now libdwarfdefs.h then dwarf_base_types.h |
| 1054 |
* dwarf_peread.c: The include order |
| 1055 |
is now libdwarfdefs.h then dwarf_base_types.h |
| 1056 |
Was leaking memory re-malloc into local var |
| 1057 |
localdoas. Coverity CID 190602. |
| 1058 |
* dwarf_generic_init.c(dwarf_init_path): |
| 1059 |
We clarify the use of fd and in case |
| 1060 |
of failure ensure we close the fd if |
| 1061 |
it is open (fd >= 0). |
| 1062 |
* dwarf_object_detector.c(dwarf_object_detector_path): |
| 1063 |
Mistaken 'fix' |
| 1064 |
* libdwarf_version.h: Updated version string. |