| 1 |
2018-12-21 David Anderson |
| 2 |
* pdfbld.sh: Now more flexible for creating one or |
| 3 |
both pdfs. |
| 4 |
* libdwarf2.1.pdf: Regenerated rev 2.70 per |
| 5 |
yesterday's .mm changes. |
| 6 |
2018-12-20 David Anderson |
| 7 |
* dwarf_elf_access.c,memcpy_swap.h,pro_alloc.h,pro_dnames.h: |
| 8 |
Removing trailing whitespace, trailing blank lines. |
| 9 |
2018-12-20 David Anderson |
| 10 |
* dwarf_dnames.c,pro_dnames.h,pro_die.h: Remove some |
| 11 |
uses of Dwarf_ufixed. |
| 12 |
* pro_section.c: Remove some uses of Dwarf_ufixed |
| 13 |
and instead of 2,4,8 use DWARF_HALF_SIZE, |
| 14 |
DWARF_23BIT_SIZE or DWARF_64BIT_SIZE as appropriate. |
| 15 |
2018-12-20 David Anderson |
| 16 |
* Makefile.am: Adding new header memcpy_swap.h |
| 17 |
to the headers list. |
| 18 |
* dwarf_gdbindex.c,dwarf_init_finish.c,dwarf_machoread.c, |
| 19 |
dwarf_object_detector.c, dwarf_peread.c: |
| 20 |
Include memcpy_swap.h. |
| 21 |
Use the new _dwarf_memcpy_noswap_bytes instead |
| 22 |
of memcpy directly. |
| 23 |
* pro_init.c: Include memcpy_swap.h. |
| 24 |
Use the new _dwarf_memcpy_noswap_bytes instead |
| 25 |
of memcpy directly. Delete local declaration |
| 26 |
now memcpy_swap.h used here. |
| 27 |
* dwarf_machoread.h,dwarf_peread.h: |
| 28 |
mo_copy_word declaration adjustment |
| 29 |
to match the new _dwarf_memcpy_noswap_bytes |
| 30 |
* dwarf_incl.h: Put <stddef.h> before "dwarf.h" and |
| 31 |
"libdwarf.h" includes (and don't use <> on dwarf.h |
| 32 |
or libdwarf.h as they may only be locally defined) |
| 33 |
* dwarf_opaque.h: void return on de_copy_word now. |
| 34 |
Delete ugly redeclaration of _dwarf_memcpy_swap_bytes. |
| 35 |
* dwarf_util.c: Implement dwarf_get_endian_copy_function |
| 36 |
so dwarfdump can swap bytes where it needs to (as in |
| 37 |
printing frame instruction bytes). |
| 38 |
And implement _dwarf_memcpy_noswap_bytes with |
| 39 |
a void return. _dwarf_memcpy_swap_bytes now |
| 40 |
also with void return. |
| 41 |
* libdwarf.h.in: Declare the new function |
| 42 |
dwarf_get_endian_copy_function(). |
| 43 |
* pro_alloc.h: Add idempotency and ifdef __cplusplus. |
| 44 |
* pro_incl.h: Delete pointless blank lines in the macro |
| 45 |
definition area. |
| 46 |
* pro_opaque.h: delete <stddef.h> include. |
| 47 |
No longer needed as de_copy_word no longer uses |
| 48 |
size_t. |
| 49 |
2018-12-19 David Anderson |
| 50 |
* dwarf_elf_access.c(dwarf_get_elf): Now uses the new |
| 51 |
format per-object-type to quickly figure out if there is |
| 52 |
an Elf * open. |
| 53 |
2018-12-19 David Anderson |
| 54 |
* dwarf_errmsg_list.h: Added DW_DLE_IMAGE_FILE_UNKNOWN_TYPE. |
| 55 |
* dwarf_error.c: Added dwarf_errmsg_by_number() |
| 56 |
so one can get more complete messages when all we have |
| 57 |
is an error number. |
| 58 |
* dwarf_object_detector.c: For PE objects the correct |
| 59 |
machine id for 64bit is 0x8664, not 0x8886. |
| 60 |
* libdwarf.h.in: Added dwarf_errmsg_by_number() |
| 61 |
and DW_DLE_IMAGE_FILE_UNKNOWN_TYPE. |
| 62 |
Fixed a couple trailing white-space instances. |
| 63 |
* pro_section.c: Removed the blank last line of the file. |
| 64 |
2018-12-07 David Anderson |
| 65 |
* pro_die.c pro_finish.c pro_forms.c pro_line.c: |
| 66 |
Some lines were too long and one test for error |
| 67 |
(from the last set of changes) |
| 68 |
was written in a usable but non-standard way so |
| 69 |
that's now done in the standard way. |
| 70 |
2018-12-05 David Anderson |
| 71 |
* dwarf_query.c: Removed useless blank lines. |
| 72 |
* libdwarf.h.in: Many new producer functions so |
| 73 |
the better return values of DW_DLV_OK/DW_DLV_ERROR |
| 74 |
are available for every producer call. |
| 75 |
The older functions are present and continue to work. |
| 76 |
|
| 77 |
* libdwarf2p.1.mm: Document the old (a couple |
| 78 |
got left out earlier) and new producer |
| 79 |
functions. |
| 80 |
* libdwarf2p.1.pdf: Regenerated. Version 1.48. |
| 81 |
* pro_arange.c, pro_die.c, pro_expr.c, pro_forms.c, |
| 82 |
pro_frame.c,pro_funcs.c,pro_line.c,pro_opaque.h, |
| 83 |
pro_pubnames.c,pro_reloc.c,pro_section.c,pro_types.c, |
| 84 |
pro_vars.c,pro_weaks.c: New functions provided |
| 85 |
so caller code is easier to read. The new |
| 86 |
interfaces are more type-safe than before. |
| 87 |
2018-11-29 David Anderson |
| 88 |
* dwarf_abbrev.c: Now deals with DW_FORM_implicit_const |
| 89 |
properly. |
| 90 |
* dwarf_arange.c: Remove trailing whitespace. |
| 91 |
* dwarf_die_deliv.c: Now deals with DW_FORM_implicit_const |
| 92 |
properly. |
| 93 |
* dwarf_machoread.c,dwarf_object_detector.c, |
| 94 |
dwarf_peread.c: Remove |
| 95 |
trailing whitespace and fix indentation. |
| 96 |
* dwarf_opaque.h: Add ar_implicit_const to |
| 97 |
Dwarf_Attribute_s to deal with the implicit const |
| 98 |
FORM. |
| 99 |
* dwarf_query.c: Now deals with DW_FORM_implicit_const |
| 100 |
properly. |
| 101 |
* dwarf_util.c: Remove trailing whitespace and |
| 102 |
fix indentation. Now deals with DW_FORM_implicit_const |
| 103 |
properly. |
| 104 |
* libdwarf.h.in: Declare new function |
| 105 |
dwarf_add_AT_implicit_const(). |
| 106 |
* libdwarf_version.h: Updated version string. |
| 107 |
* pro_die.h: Add abb_implicits to |
| 108 |
Dwarf_P_Abbrev_s deal with the implicit const FORM. |
| 109 |
* pro_forms.c: Implement dwarf_add_AT_implicit_const(). |
| 110 |
* pro_opaque.h: Add Dwarf_Signed dsa_implicitvalue |
| 111 |
to Dwarf_Sort_Abbrev_s for implicit value(s). |
| 112 |
* pro_section.c: Now deals with DW_FORM_implicit_const |
| 113 |
properly. |
| 114 |
* pro_section.h: Now SECTION_TYPE defaults to 1 |
| 115 |
as the suggested section type, |
| 116 |
which is SHT_PROGBITS in Elf. See the comments |
| 117 |
there. Used to depend on a #ifdef and sometimes |
| 118 |
was defined SHT_MIPS_DWARF. |
| 119 |
* libdwarf2p.1.mm: Document the new implicit |
| 120 |
const function. |
| 121 |
* libdwarf2p.1.pdf: Regenerate. Version 1.47. |
| 122 |
2018-11-28 David Anderson |
| 123 |
* CMakeLists.txt: The previous change failed to |
| 124 |
deal with the new pe .h files properly. Fixed. |
| 125 |
And, the SOURCES and HEADERS lists are now |
| 126 |
on shorter lines so they fit in 70 characters. |
| 127 |
2018-11-26 David Anderson |
| 128 |
* Makefile.am: Added new files |
| 129 |
* dwarf_pe_descr.h,dwarf_peread.c,dwarf_peread.h: |
| 130 |
New files implementing reading DWARF from PE |
| 131 |
object files. |
| 132 |
* dwarf_arange.c: Notice some zero length |
| 133 |
things in .debug_aranges and ignore them. |
| 134 |
Only ever seen in a PE dll with DWARF . |
| 135 |
Odd. Needs further checking. |
| 136 |
* dwarf_die_deliv.c: Here too, check for zero length |
| 137 |
CU and just move along. Same dll. |
| 138 |
Odd. Needs further checking. |
| 139 |
* dwarf_generic_init.c: Call the pe setup code. |
| 140 |
* dwarf_init_finish.c: Delete useless blank line. |
| 141 |
* dwarf_machoread.c: Add checks to catch |
| 142 |
corrupted object files. |
| 143 |
* dwarf_opaque.h: Add _dwarf_pe_setup(). |
| 144 |
* dwarf_util.h: Some macro lines were too long. |
| 145 |
Shortened so they are easier to read/verify. |
| 146 |
* libdwarf_version.h: Updated version string. |
| 147 |
* CMakeLists.txt: Added new pe files. |
| 148 |
2018-11-24 David Anderson |
| 149 |
* dwarf_object_detector.c: The same ASNAR bug |
| 150 |
fixed here now. |
| 151 |
* libdwarf_version.h: Updated date string. |
| 152 |
2018-11-22 David Anderson |
| 153 |
* dwarf_machoread.c: A bug in the ASNAR macro |
| 154 |
for big-endian hosts lead to coredump reading |
| 155 |
mach-o objects (of any endianness) on such hosts. |
| 156 |
2018-11-20 David Anderson |
| 157 |
* Makefile.am: The setup for cross-builds |
| 158 |
was incomplete for errmsg_check. Fixed. |
| 159 |
* dwarf_base_types.h: Removed a |
| 160 |
nested include of libdwarfdefs.h. |
| 161 |
* dwarf_incl.h: Moved the include of libdwarfdefs.h |
| 162 |
to here. |
| 163 |
* dwarf_errmsg_list.h: Added new (as yet |
| 164 |
unused) error messages. |
| 165 |
* dwarf_machoread.c: Added overview commentary. |
| 166 |
* dwarf_test_errmsg_list.c: Improved error messages |
| 167 |
in a few cases so errors detected are more |
| 168 |
self-explanatory. |
| 169 |
* libdwarf.h.in: Added new (as yet unused) error |
| 170 |
message defines. |
| 171 |
2018-11-06 David Anderson |
| 172 |
* dwarf_machoread.c(_dwarf_macho_object_access_init): |
| 173 |
Following a malloc the null |
| 174 |
check referenced the wrong variable! |
| 175 |
2018-11-05 David Anderson |
| 176 |
* dwarf_machoread.c: Added a sanity check on mo_command_count |
| 177 |
before adding it to anything. |
| 178 |
Now malloc a Dwarf_Obj_Access_Interface_s so we |
| 179 |
use a local function consistently. |
| 180 |
We were freeing on an address of a local variable... |
| 181 |
But only if a mach-o object was seriously corrupted. |
| 182 |
* dwarf_object_detector.c: We now know we misinterpreted |
| 183 |
a comment in the macho-loader header. DW_ENDIAN_SAME |
| 184 |
(and _OPPOSITE) were inappropriate. |
| 185 |
Endianness detection for PE and mach-o objects are fixed. |
| 186 |
* libdwarf.h.in,dwarf_object_detector.h: Dropping |
| 187 |
DW_ENDIAN_SAME and DW_ENDIAN_OPPOSITE as we |
| 188 |
no longer use them. |
| 189 |
* dwarf_macho_loader.h: Added commentary about |
| 190 |
the MH_MAGIC etc values. |
| 191 |
* libdwarf_version.h: Updated date string. |
| 192 |
2018-11-01 David Anderson |
| 193 |
* libdwarf_version.h: Updated date string. |
| 194 |
* dwarf_machoread.c(dwarf_macho_load_dwarf_section_details64): |
| 195 |
Had an off-by-one error (which was already corrected |
| 196 |
in the *details32 function). If the last section |
| 197 |
was DWARF related this bug caused a DWARF section to |
| 198 |
appear unavailable. |
| 199 |
2018-10-30 David Anderson |
| 200 |
* libdwarf_version.h: Updated date string. |
| 201 |
2018-10-24 David Anderson |
| 202 |
* libdwarf2.1.mm: Added documentation on |
| 203 |
new functions dwarf_object_detector_fd(), |
| 204 |
dwarf_object_detector_path(), and dwarf_init_path(). |
| 205 |
Fixed indentation many places (many still to fix). |
| 206 |
* libdwarf2.1.pdf: Regenerated Reg 2.68. |
| 207 |
* dwarf_macho_loader.h: Renamed from macho-loader.h |
| 208 |
* Makefile.am: reflects name change. |
| 209 |
* dwarf_machoread.c: Uses renamed macho structs. |
| 210 |
* dwarf_machoread.h: Renames a couple macho structs. |
| 211 |
Aligns fieldnames with the similar item in libdwarf.h. |
| 212 |
* dwarf_object_detector.c: A build on 32bit machine |
| 213 |
noticed a function-prototype inconsistency |
| 214 |
in declaring dwarf_object_detector_path(). Fixed. |
| 215 |
Now allows outpath, outlen |
| 216 |
of the dwarf_object_detector_path() call to be zero, |
| 217 |
suppressing macho dSYM subdirectory checks. |
| 218 |
2018-10-23 David Anderson |
| 219 |
* dw_elfstructs.h: Adding this for use with object readers. |
| 220 |
* dwarf_init_finish.c: Fixed placement of blank line to |
| 221 |
match standard source formatting. |
| 222 |
* macho-loader.h: Now avoids direct use of integral |
| 223 |
types. Uses macro to setup each member. |
| 224 |
* dwarf_machoread.c: New macro ASNAR handles endianness |
| 225 |
and uses the new struct member format in macho-loader.h |
| 226 |
* dwarf_object_detector.c |
| 227 |
* dwarf_reading.h: Simplified as a result of the new ASNAR |
| 228 |
macro and the structs it helps with. |
| 229 |
* libdwarf_version.h: New version string. |
| 230 |
2018-10-20 David Anderson |
| 231 |
* dwarf_machoread.c,dwarf_machoread.h: Moved macros from the .h |
| 232 |
to the .c. |
| 233 |
* dwarf_object_detector: Removed the need to know the correct |
| 234 |
type of fields in object-defined headers. We know the lengths |
| 235 |
and layouts and that suffices because we copy everything |
| 236 |
anyway to deal with endianness. No more need to define t16 |
| 237 |
or t32 as the 'right' type. |
| 238 |
2018-10-19 David Anderson |
| 239 |
* dwarf_version.h: Updated date string. |
| 240 |
* dwarf_errmsg_list.h: New errors DW_DLE_ELF_CLASS_BAD(420), |
| 241 |
DW_DLE_ELF_ENDIAN_BAD(421), DW_DLE_ELF_VERSION_BAD(422), |
| 242 |
DW_DLE_FILE_TOO_SMALL(423),DW_DLE_PATH_SIZE_TOO_SMALL(424), |
| 243 |
DW_DLE_BAD_TYPE_SIZE(425) for new checks for object |
| 244 |
correctness. Of more than one object type. |
| 245 |
* dwarf_generic_init.c: The new function |
| 246 |
dwarf_init_path has a new type for the call to |
| 247 |
dwarf_object_detector. |
| 248 |
* dwarf_object_detector.c: Now works in the libdwarf context. |
| 249 |
Contains checks for Elf, Mach-o and PE object files as well |
| 250 |
as recognizing archives ( such as <filename>.a). |
| 251 |
* dwarf_object_detector.h: Tweaked into final form. |
| 252 |
* dwarf_opaque.h: Added de_filesize field as we usually |
| 253 |
now know the file size for checking offsets. |
| 254 |
* libdwarf.h.in: Added the DW_DLE named above. |
| 255 |
declared dwarf_object_detector_path() and |
| 256 |
dwarf_object_detector_fd() as public functions. |
| 257 |
* pro_alloc.c: #ifdefd the include of malloc.h. |
| 258 |
2018-10-17 David Anderson |
| 259 |
* macho-loader.h: A header for reading mach-o dsym objects. |
| 260 |
* dwarf_generic_init.c,dwarf_init_finish.c: Now modified to |
| 261 |
support reading mach-o. |
| 262 |
* dwarf_machoread.c,dwarf_machoread.h: Contains |
| 263 |
the mach-o specific details. |
| 264 |
* dwarf_object_read_common.c: New, has a |
| 265 |
* dwarf_opaque.h |
| 266 |
* dwarf_original_elf_init.c: now allows elf or mach-o objects |
| 267 |
and calls the appropriate setup code. |
| 268 |
* dwarf_reading.h: new common header for reading without libelf. |
| 269 |
* pro_section.c: Fix trailing whitespace. |
| 270 |
2018-10-15 David Anderson |
| 271 |
* dwarf_version.h: Updated date string. |
| 272 |
* dwarf_die_deliv.c: Now a sibling-offset error |
| 273 |
returns an error of DW_DLE_SIBLING_OFFSET_WRONG. |
| 274 |
Now the code avoids adding a corrupt value |
| 275 |
to a pointer (thus properly detecting |
| 276 |
DW_DLE_SIBLING_OFFSET_WRONG). |
| 277 |
* libdwarf.h.in: Added DW_DLE_SIBLING_OFFSET_WRONG. |
| 278 |
* dwarf_errmsg_list.h: Added DW_DLE_SIBLING_OFFSET_WRONG |
| 279 |
to the errmsg strings list. |
| 280 |
2018-10-14 David Anderson |
| 281 |
* dwarf_version.h: Updated date string. |
| 282 |
* pro_section.c: An extra 0-byte was being added |
| 283 |
in generated DWARF |
| 284 |
at the end of section as if the top level |
| 285 |
was a sibling chain, and GNU readelf |
| 286 |
noticed the wasted byte. No longer added. |
| 287 |
2018-10-02 David Anderson |
| 288 |
* dwarf_generic_init.c,dwarf_original_elf_init.c: |
| 289 |
Fixed remaining indent issues. |
| 290 |
2018-10-02 David Anderson |
| 291 |
* Makefile.am: Tweaks for the object detector files. |
| 292 |
* dwarf_errmsg_list.h,libdwarf.h.in: New error codes. |
| 293 |
* dwarf_generic_init.c,dwarf_original_elf_init.c: |
| 294 |
* Removed a function that just caused confusion, |
| 295 |
it was doing two jobs. Now each job called where |
| 296 |
needed. |
| 297 |
* dwarf_object_detector.c,dwarf_object_detector.h: |
| 298 |
tweeks for better error codes and trailing |
| 299 |
spaces and indent issues. |
| 300 |
* dwarf_opaque.h: Removed deleted function. |
| 301 |
2018-10-02 David Anderson |
| 302 |
* dwarf_object_detector.h,dwarf_object_detector.c: |
| 303 |
To be used soon. |
| 304 |
2018-09-29 David Anderson |
| 305 |
* gennames.c: Fixed an indent issue in a comment. |
| 306 |
2018-09-28 Carlos Alberto Enciso |
| 307 |
* dwgetopt: Use size_t to remove conversion warning |
| 308 |
on Windows platform. |
| 309 |
* getnames.c: Generate '#ifdef __cplusplus/#endif' |
| 310 |
include guards to |
| 311 |
allow the inclusion of header files by C++ code. |
| 312 |
2018-09-21 David Anderson |
| 313 |
* CMakeLists.txt: Add dwarf_generic_init.c into |
| 314 |
sources list. |
| 315 |
* Makefile.am: Ensure all cmake files get into |
| 316 |
releases. |
| 317 |
2018-09-18 David Anderson |
| 318 |
* dwarf_generic_init.c: Moved dwarf_finish() here |
| 319 |
from dwarf_original_elf_init.c. |
| 320 |
* dwarf_original_elf.c: Moved dwarf_finish() out of |
| 321 |
this file. |
| 322 |
* dwarf_init_finish.c: Corrected a comment. frmo->from |
| 323 |
2018-09-18 David Anderson |
| 324 |
* dwarf_generic_init.c: Moved dwarf_init() and dwarf_init_b() |
| 325 |
to this new file. From dwarf_original_elf_init.c. |
| 326 |
These functions will allow handling non-elf object DWARF |
| 327 |
in the future. |
| 328 |
* dwarf_original_elf_init.c: Functions moved to |
| 329 |
dwarf_generic_init.c and _dwarf_elf_init_file_ownership |
| 330 |
no longer static so |
| 331 |
it can be called from dwarf_generic_init.c. |
| 332 |
* Makefile.am: Add the new source file to the sources list. |
| 333 |
2018-09-12 David Anderson |
| 334 |
* dwarf_version.h: Updated date string. |
| 335 |
* libdwarf.h.in: Corrected the use of |
| 336 |
HAVE_NONSTANDARD_PRINTF_64_FORMAT. |
| 337 |
2018-09-11 David Anderson |
| 338 |
* libdwarf.h.in: Restored use of |
| 339 |
HAVE_NONSTANDARD_PRINTF_64_FORMAT |
| 340 |
for those needing that feature. |
| 341 |
2018-09-02 David Anderson |
| 342 |
* Makefile.am: Changed the way to build gennames |
| 343 |
executable to the automake way, eliminating make warnings |
| 344 |
when building. |
| 345 |
* Makefile.in: regenerated. |
| 346 |
2018-08-23 David Anderson |
| 347 |
* CMakeLists.txt: Adjusted to fit new/changed file names. |
| 348 |
2018-08-21 David Anderson |
| 349 |
* Makefile.am: Now honors --enable-wall. |
| 350 |
* dwarf_die_deliv.c,pro_section.c: Removed unused local variables. |
| 351 |
2018-08-14 David Anderson |
| 352 |
* libdwarf.h.in: DW_HARMLESS_ERROR_MSG_STRING_SIZE now |
| 353 |
300, c compiler noted 200 was too small for a |
| 354 |
harmless-error sprintf string in dwarf_frame2.c (line 192). |
| 355 |
* Makefile.am. Added CPPFLAGS_FOR_BUILD where it was |
| 356 |
accidentally omitted. |
| 357 |
* libdwarf_version.h: Updated the version date string. |
| 358 |
2018-08-09 David Anderson |
| 359 |
* Makefile.am: Added AM_TESTS_ENVIRONMENT enabling |
| 360 |
make check from any build directory. |
| 361 |
Also,add dwarf_test_errmsg_list.c to the files |
| 362 |
in a release so make check can work |
| 363 |
* runtests.sh: Handle the environment variable |
| 364 |
AM_TESTS_ENVIRONMENT sets: DWTOPSRCDIR |
| 365 |
2018-08-07 David Anderson |
| 366 |
* libdwarf2.1.mm: Revised the argument list of |
| 367 |
dwarf_get_real_section_name() to add compression |
| 368 |
size information. |
| 369 |
* libdwarf2.1.pdf: Regenerated version 2.67. |
| 370 |
* dwarf_die_deliv.c: Added compression-size arguments |
| 371 |
to call to |
| 372 |
dwarf_get_real_section_name() and updated the string |
| 373 |
additions to match. |
| 374 |
* dwarf_init_finish.c: Update compression before/after |
| 375 |
sizes in new fields dss_compressed_length |
| 376 |
dss_uncompressed_length.. |
| 377 |
* dwarf_opaque.h: Add the new dss_ fields. |
| 378 |
* libdwarf.h.in: Revised prototype of |
| 379 |
dwarf_get_real_section_name() |
| 380 |
2018-08-06 David Anderson |
| 381 |
* libdwarf2.1.mm: Revised the argument list of |
| 382 |
dwarf_get_real_section_name() |
| 383 |
so it works properly. |
| 384 |
* libdwarf2.1.pdf: Regenerated version 2.66. |
| 385 |
* dwarf_die_deliv.c: Added third argument to call to |
| 386 |
dwarf_get_real_section_name() and updated the string |
| 387 |
* dwarf_opaque.h: Added flag dss_ZLIB_compressed so we can report |
| 388 |
compression more accurately. |
| 389 |
2018-08-05 David Anderson |
| 390 |
* dwarf_die_deliv.c: Was failing to report SHF_COMPRESSED in dwarfdump |
| 391 |
do to mistake here (statement with no side effect!). |
| 392 |
2018-08-05 David Anderson |
| 393 |
* libdwarf_version.h: Updated version string. |
| 394 |
* dwarf_errmsg_list.h: Support the new error code. |
| 395 |
* dwarf_opaque.h: Fields to support dwarf_get_real_section_name(). |
| 396 |
* dwarf_die_deliv.c: Implements dwarf_get_real_section_name(). |
| 397 |
* dwarf_init_finish.c: Changes to support dwarf_get_real_section_name(). |
| 398 |
* libdwarf.h.in: Declare dwarf_get_real_section_name(). Add |
| 399 |
a new error code. |
| 400 |
* libdwarf2.1.mm: Document dwarf_get_real_section_name(). |
| 401 |
* libdwarf2.1.pdf: Regenerate. Version 2.65. |
| 402 |
2018-08-04 David Anderson |
| 403 |
* dwarf_util.h: Remove trailing whitespace. |
| 404 |
* pro_dnames.h: Preliminary structs for writing .debug_names |
| 405 |
* pro_section.c: Corrected a comment. Removed some debug |
| 406 |
code. Fixed indent mistakes. |
| 407 |
* pro_opaque.h: Fixed indent error. |
| 408 |
* pro_init.c: Extracted Bernstein hash into its own function. |
| 409 |
Fixed indent errors. |
| 410 |
2018-08-02 David Anderson |
| 411 |
* libdwarf_version.h: Updated version date. |
| 412 |
* pro_section.c: #if 0 or comment out |
| 413 |
some debug code. |
| 414 |
* dwarf_util.c:Replaced accidental loss of 'do'. |
| 415 |
* Makefile.am: Removed unused variables and references |
| 416 |
to them. |
| 417 |
2018-07-31 David Anderson |
| 418 |
* Makefile.am: Move all but libdwarf*pdf out of the |
| 419 |
/usr/local/share install set, keep them all in the |
| 420 |
distribution set. |
| 421 |
2018-07-31 David Anderson |
| 422 |
* Makefile.am: add pro_dnames.h pro_dnames.c for |
| 423 |
.debug_names support.. |
| 424 |
* dwarf_errmsg_list.h: Add DW_DLE_DUP_ATTR_ON_DIE error |
| 425 |
code. |
| 426 |
* dwarf_frame2.c: Move qsort_compare up to top of |
| 427 |
file to avoid a forward declaration. |
| 428 |
* dwarf_init_finish.c: Additional comments. |
| 429 |
* dwarf_util.c: Corrected comment. Moved local |
| 430 |
variable declarations down to where needed. |
| 431 |
* libdwarf.h.in: Declare new function |
| 432 |
dwarf_force_debug_names() used for testing. |
| 433 |
* pro_die.h: Add comment. |
| 434 |
* pro_dnames.c: Remove junk whitespace. |
| 435 |
* pro_forms.c(_dwarf_pro_add_at_to_die): |
| 436 |
Add DW_AT_data_member_location, DW_AT_trampoline |
| 437 |
to the allowed set. |
| 438 |
* pro_opaque.h: Add de_dnames_sect to Dwarf_P_Debug_s. |
| 439 |
* pro_section.c: Now sorts abbreviations by attribute |
| 440 |
number. Refactors header generation to make |
| 441 |
it easier to read the code. Refactors |
| 442 |
_dwarf_pro_getabbrev() for clarity (using newly-sorted |
| 443 |
abbreviation list). |
| 444 |
2018-07-30 David Anderson |
| 445 |
* pro_dnames.c, pro_dnames.h: New, these just placeholders |
| 446 |
for the moment. To write out .debug_names. |
| 447 |
2018-08-02 David Anderson |
| 448 |
* Makefile.am: Removed unused variables and references |
| 449 |
to them. |
| 450 |
|
| 451 |
2018-07-24 David Anderson |
| 452 |
* libdwarf_version.h: Updated version string. |
| 453 |
* dwarf_line_table_reader_common.h:Removed trailing whitespace |
| 454 |
and fixed indentations. |
| 455 |
* pro_line.c: Removed trailing whitespace. |
| 456 |
* pro_reloc.c,pro_reloc.h: Defines |
| 457 |
_dwarf_pro_pre_alloc_specific_reloc_slots(). |
| 458 |
Deletes _dwarf_pro_pre_alloc_n_reloc_slots() |
| 459 |
* pro_reloc_symbolic.c: Now uses |
| 460 |
_dwarf_pro_pre_alloc_specific_reloc_slots() so |
| 461 |
static analysis can understand what the code does. |
| 462 |
Fixes Coverity CID 186978. |
| 463 |
* pro_arange.c: Now uses |
| 464 |
_dwarf_pro_pre_alloc_specific_reloc_slots |
| 465 |
instead of |
| 466 |
_dwarf_pro_pre_alloc_n_reloc_slots. |
| 467 |
2018-07-24 David Anderson |
| 468 |
* dwarf_init_finish.c(set_up_section): A simple |
| 469 |
revision eliminates any copying and simplifies |
| 470 |
the logic. And eliminates the use of safe_strcpy(). |
| 471 |
* dwarf_util.h, dwarf_util.c: Remove safe_strcpy(). |
| 472 |
2018-07-23 David Anderson |
| 473 |
* Makefile.am: Make it impossible for Make to build the |
| 474 |
libdwarf pdf files. We do not want users to be required |
| 475 |
to have the pdf tools. |
| 476 |
* pdfbld.sh: A script to build the libdwarf pdf files |
| 477 |
when required (the .mm files rarely change). |
| 478 |
2018-07-23 David Anderson |
| 479 |
* libdwarf_version.h: Updated version string. |
| 480 |
* pro_line.c: Added comments on the oddness |
| 481 |
of some return values (signed vs unsigned and |
| 482 |
error returns). |
| 483 |
* dwarf_die_deliv.c: Removed a statement that |
| 484 |
had no effect (A leftover of recent changes). |
| 485 |
* gennames.c: Signed vs unsigned compare was accidental |
| 486 |
in the code this generates. |
| 487 |
Changed the local var to unsigned. |
| 488 |
2018-07-22 David Anderson |
| 489 |
* dwarf_init_finish.c: Now calls _dwarf_safe_strcpy() |
| 490 |
so we are sure there is no string overrun. |
| 491 |
* dwarf_util.c: Implements _dwarf_safe_strcpy(). |
| 492 |
* dwarf_util.h: Declares _dwarf_safe_strcpy(). |
| 493 |
2018-07-22 David Anderson |
| 494 |
* pro_reloc_symbolic.c(_dwarf_symbolic_relocs_to_disk): |
| 495 |
Coverity CID 186884. A much cleaner and more |
| 496 |
readable fix. |
| 497 |
2018-07-21 David Anderson |
| 498 |
* libdwarf_version.h: Updated version string. |
| 499 |
* dwarf_init_finish.c: Coverity CID 186884. |
| 500 |
Revised the logic for clarity and added comments |
| 501 |
too. |
| 502 |
* libdwarf_version.h: Update version string. |
| 503 |
* dwarf_dnames.c: Coverity CID 186887. |
| 504 |
Encapsulating |
| 505 |
DECODE_LEB128_UWORD_CK in a function |
| 506 |
so we can catch an error |
| 507 |
and free appropriate resources. |
| 508 |
Fixed cases of error where DW_DLV_OK returned. |
| 509 |
* dwarf_abbrev.c,dwarf_arange.c,dwarf_die_deliv.c, |
| 510 |
dwarf_ranges.c,dwarf_tsearchhash.c: |
| 511 |
Removed trailing whitespace. |
| 512 |
* dwarf_xu_index.c: Coverity CID 186894. |
| 513 |
We know the string length (2) so we just assign the |
| 514 |
bytes directly avoiding any possibility of overrun. |
| 515 |
* pro_reloc_symbolic.c(_dwarf_symbolic_relocs_to_disk): |
| 516 |
Coverity CID 186978. |
| 517 |
Was dereferencing a pointer after zeroing the |
| 518 |
pointer, now fixed and the obfuscating single-call |
| 519 |
function code moved to where used, deleted function. |
| 520 |
* dwarf_macro.c: Coverity CID 186980. |
| 521 |
Removed code testing for zero count as it is impossible |
| 522 |
to get to that spot with count==0. |
| 523 |
* pro_forms.c: The new return of error is now |
| 524 |
return ((Dwarf_P_Attribute) DW_DLV_BADADDR); |
| 525 |
to at least avoid a warning about this |
| 526 |
necessary uglyness of pointer/integer confusion. |
| 527 |
The dwarf reader (consumer) interfaces have none |
| 528 |
of this. |
| 529 |
2018-07-20 David Anderson |
| 530 |
* dwarf_line_table_reader_common.h: Encapsulating |
| 531 |
DECODE_LEB128_UWORD_CK in a function |
| 532 |
so we can catch an error |
| 533 |
and free appropriate resources. |
| 534 |
2018-07-20 David Anderson |
| 535 |
* dwarf_frame.c: Coverity CID 186901. |
| 536 |
Removed duplicate check for dbg null. |
| 537 |
* dwarf_macro5.c: Coverity CID 186890. |
| 538 |
Was testing wrong status value. resattr -> lres |
| 539 |
2018-07-20 David Anderson |
| 540 |
* dwarf_arange.c(dwarf_get_aranges_list): Coverity CID 186976. |
| 541 |
This function has a serious problem, it reads agranges |
| 542 |
without knowing the CU version number so anything |
| 543 |
with segment_selector != 0 could be read wrong. |
| 544 |
Unless the compiler authors did in early versions |
| 545 |
what DWARF4 called for in aranges: a segment selector |
| 546 |
value. |
| 547 |
* dwarf_elf_access.c(update_entry): Coverity CID 187700. |
| 548 |
If we do not have |
| 549 |
ELF64 symbol type available avoid letting us fall through |
| 550 |
to dereference a null pointer. |
| 551 |
* dwarf_print_lines.c(dwarf_print_lines): Coverity CID 186985. |
| 552 |
Coverity CID 186973 |
| 553 |
Remove if(){} as it is not needed. |
| 554 |
* dwarf_macro.c(dwarf_get_macro_details): Coverity CID 186980. |
| 555 |
Removed dead code for count==0 as count will be at least 1. |
| 556 |
* pro_arange.c: Coverity CID 186974. |
| 557 |
Delete redundant check for null. |
| 558 |
* pro_section.c(dwarf_pro_getabbrev): Coverity CID 186983. |
| 559 |
Avoid dereferencing forms/attrs if they are null. |
| 560 |
* pro_forms.c(dwarf_add_AT_location_expr): Coverity CID 186984. |
| 561 |
Was potentially reading more from input than could |
| 562 |
possibly exist in the fixed-maximum-length input. |
| 563 |
Coverity CID 186975. Make block_size Dwarf_Unsigned |
| 564 |
to (possibly) avoid this warning. |
| 565 |
* pro_expr.c(dwarf_add_expr_gen): Coverity CID 186987. |
| 566 |
Add break; to the last case in the switch. |
| 567 |
* pro_macinfo.c(dwarf_vendor_ext): Coverity CID 186988. |
| 568 |
Coverity CIE 186981 |
| 569 |
Deleting dead code. |
| 570 |
* pro_types.c(_dwarf_transform_simplename_to_disk)): |
| 571 |
Coverity CID 186977. Delete dead code. |
| 572 |
* pro_init.c(common_init): Coverity CID 187001. Now we avoid |
| 573 |
dereferencing a potentially NULL pointer abiname. |
| 574 |
* pro_frame.c(dwarf_add_fde_inst): Coverity CID 186979. |
| 575 |
Added missing check of 'res' variable. |
| 576 |
2018-07-20 David Anderson |
| 577 |
* libdwarf_version.h: Updated version string. |
| 578 |
* pro_frame.c: Coverity CID 186989. Dereferenced tmpaug |
| 579 |
before NULL check. Fixed. |
| 580 |
* pro_section.c: Coverity CID 186990. copy-paste error |
| 581 |
changed val_len to val_len2. |
| 582 |
* dwarf_abbrev.c: Coverity CID 186982. dwarf_get_abbrev_count() |
| 583 |
could leak Dwarf_Error. No longer can. |
| 584 |
* dwarf_print_lines.c: Coverity CID 186973. Remove useless code. |
| 585 |
* dwarf_ranges.c: Coverity CID 186909. Ensure null not |
| 586 |
dereferenced. |
| 587 |
* dwarf_dnames.c: Coverity CID 186899. If needed !firstdab, |
| 588 |
not firstdab. Also, free local allocations on error. |
| 589 |
* dwarf_dsc.c: Coverity CID 186898. Null check on wrong variable. |
| 590 |
* dwarf_tsearchhash.c: Coverity CID 186893. Leak on error fixed. |
| 591 |
* dwarf_query.c: Coverity CID 186892. Testing res, now res3. |
| 592 |
* dwarf_macro5.c: Coverity CID 186891. Dead code moved to |
| 593 |
correct place. |
| 594 |
Coverity CID 186906. Only increment curopsonly if non-null. |
| 595 |
* dwarf_dnames.c: Coverity CID 186889. Fixed leak on error. |
| 596 |
* dwarf_die_deliv.c: Coverity CID 186888. Fixed: Removed |
| 597 |
assignment overridden later. |
| 598 |
Coverity CID 186904: deref before: null check, dataptr,dis. |
| 599 |
* dwarf_frame2.c: Coverity CID 186885. Fixed: loop inappropriate. |
| 600 |
Coverity CID 186908. Fixed test res->resf. |
| 601 |
* dwarf_line_table_reader_common.h: Coverity CID 186886. |
| 602 |
Fixed leak. |
| 603 |
2018-07-16 David Anderson |
| 604 |
* dwarf_incl.h: Refine ifdef of HAVE_STDAFX_H. |
| 605 |
* dwarf_tsearch.h: Correcting web references in comments. |
| 606 |
* pro_incl.h: Refine ifdef of HAVE_STDAFX_H. |
| 607 |
2018-07-16 David Anderson |
| 608 |
* Makefile.am: New, used by autotools to create configure. |
| 609 |
* configure.ac, Makefile.in, config.h.in: Deleted. |
| 610 |
2018-07-09 David Anderson |
| 611 |
* dwarf_dnames.c: free(tmp) -> free(dab) |
| 612 |
2018-06-19 David Anderson |
| 613 |
* configure.ac, config.h.in: Removed |
| 614 |
HAVE_NONSTANDARD_PRINTF_64_FORMAT. |
| 615 |
* configure: Regenerated. |
| 616 |
2018-06-19 David Anderson |
| 617 |
* pro_util.h: Deleted unused sizeof_sbyte macro, |
| 618 |
simplified sizeof_ubyte to 1. |
| 619 |
2018-06-19 David Anderson |
| 620 |
* dwarf_base_types.h,dwarf_die_deliv.c,dwarf_dnames.c, |
| 621 |
dwarf_form.c,dwarf_frame.c,dwarf_frame2.c,dwarf_init_finish.c, |
| 622 |
dwarf_loc2.h,dwarf_macro5.c,dwarf_query.c,dwarf_str_offsets.c, |
| 623 |
dwarf_util.c,pro_opaque.h: Now defining using |
| 624 |
DWARF_32BIT_SIZE DWARF_64BIT_SIZE DWARF_HALF_SIZE |
| 625 |
instead of using sizeof(Dwarf_Unsigned) or sizeof(Dwarf_Half). |
| 626 |
Making it clearer we're reading the size the standard |
| 627 |
says the items are. |
| 628 |
2018-06-14 David Anderson |
| 629 |
* libdwarf.h.in: Simplified definitions of Dwarf_Unsigned etc |
| 630 |
and DW_PR*. |
| 631 |
2018-06-12 David Anderson |
| 632 |
* dwarf_arange.c dwarf_base_types.h dwarf_die_deliv.c, |
| 633 |
dwarf_dnames.c,dwarf_form.c,dwarf_frame.c,dwarf_global.c, |
| 634 |
dwarf_line_table_reader_common.h,dwarf_loc.c,dwarf_macro5.c, |
| 635 |
dwarf_opaque.h,dwarf_str_offsets.c,dwarf_util.c,libdwarfdefs.h, |
| 636 |
pro_arange.c,pro_section.c,pro_types.c,pro_util.h: |
| 637 |
Now, if Dwarf_Half is not defined 16 bits it is likely |
| 638 |
that everything will still work right. |
| 639 |
We don't use sizeof(Dwarf_Half) now. |
| 640 |
2018-06-12 David Anderson |
| 641 |
* libdwarf.h.in: Removed Dwarf_Frame_Op3 |
| 642 |
struct declaration. It was never used |
| 643 |
and was a bad idea. A functional interface |
| 644 |
is a likely replacement. |
| 645 |
2018-05-30 David Anderson |
| 646 |
* Fix botch in revised Makefile.in. |
| 647 |
2018-05-30 David Anderson |
| 648 |
* Makefile.in: Add gennames dependency on libdwarf_version.h |
| 649 |
* libdwarf_version.h: Create to hold the |
| 650 |
DW_VERSION_DATE_STR string. |
| 651 |
2018-05-26 David Anderson |
| 652 |
* gennames.c: |
| 653 |
Update version string |
| 654 |
* dwarf_arange.c: Instead of load_section(dbg,.debug_info, |
| 655 |
and then *_abbrevr, call the combined _info and _abbrev |
| 656 |
function _dwarf_load_debug_info() as is done everywhere else. |
| 657 |
2018-05-24 David Anderson |
| 658 |
* dwarf_aranges.c: Calling dwarf_get_aranges() |
| 659 |
without loading .debug_info and .debug_abbrev |
| 660 |
resulted in an error when checking for the |
| 661 |
sanity of an offset into .debug_info: |
| 662 |
DW_DLE_ARANGE_OFFSET_BAD. |
| 663 |
Now libdwarf ensures the needed sections are loaded |
| 664 |
because the 'section length' of compressed |
| 665 |
sections is only correct after such are loaded. |
| 666 |
2018-05-17 David Anderson |
| 667 |
* config.h.in: Added #undef HAVE_VSNPRINTF HAVE_SNPRINTF |
| 668 |
* configure: regenerated. |
| 669 |
* configure.ac: Added AC_CHECK_FUNCS(snprintf) |
| 670 |
AC_CHECK_FUNCS(vsnprintf) |
| 671 |
* dwarf_alloc.c(_dwarf_free_all_of_one_debug): Added fclose |
| 672 |
of dbg->de_printf_callback_null_device_handle. |
| 673 |
* dwarf_opaque.h: Added de_printf_callback_null_device_handle |
| 674 |
Dwarf_Debug member. |
| 675 |
* dwarf_arange.c,dwarf_die_deliv.c,dwarf_frame2.c, |
| 676 |
gennames.c: Use static buffers, not on-stack char |
| 677 |
array targets for sprintf/snprintf. |
| 678 |
Testing HAVE_SNPRINTF(HAVE_VSNPRINTF) and use c99 function |
| 679 |
if present, else c90 |
| 680 |
* dwarf_util.c: Putting null_device_handle in Dwarf_Debug |
| 681 |
struct Use static buffers, not on-stack char array targets for |
| 682 |
sprintf/snprintf. |
| 683 |
Testing HAVE_SNPRINTF(HAVE_VSNPRINTF) and use c99 function |
| 684 |
if present, else c90. |
| 685 |
2018-05-16 David Anderson |
| 686 |
* dwarf_leb.c, dwarf_util.c: Removed use of C99 |
| 687 |
like vsnprintf. Now using C90. |
| 688 |
2018-05-15 David Anderson |
| 689 |
* dwarf_incl.h: Inserted <stddef.h> include here. |
| 690 |
stddef.h defines really basic useful C90 things like NULL. |
| 691 |
* dwarf_opaque.h: Remove nested include stddef.h. |
| 692 |
2018-05-15 David Anderson |
| 693 |
* dwarf_incl.h: Removed dwarf_alloc.h include |
| 694 |
* dwarf_abbrev.c,dwarf_alloc.c,dwarf_arange.c,dwarf_die_deliv.c, |
| 695 |
dwarf_dnames.c,dwarf_dsc.c,dwarf_error.c,dwarf_form.c dwarf_frame.c, |
| 696 |
dwarf_frame2.c,dwarf_gdbindex.c,dwarf_global.c,dwarf_incl.h, |
| 697 |
dwarf_init_finish.c,dwarf_line.c,dwarf_loc.c,dwarf_macro.c, |
| 698 |
dwarf_macro5.c,dwarf_print_lines.c,dwarf_query.c,dwarf_ranges.c, |
| 699 |
dwarf_str_offsets.c,dwarf_util.c,dwarf_xu_index.c: |
| 700 |
Added explicit include dwarf_alloc.h. |
| 701 |
2018-05-15 David Anderson |
| 702 |
* Makefile.in: dwarf_frame3.c now gone from build. |
| 703 |
It should be removed. Nothing in it is used. |
| 704 |
* dwarf_incl.h: Removed dwarf_error.h include |
| 705 |
* dwarf_*: put includes in local normal order |
| 706 |
and added include dwarf_error.h as needed |
| 707 |
(in many files). |
| 708 |
2018-05-15 David Anderson |
| 709 |
* dwarf_incl.h: Removed dwarf_util.h include |
| 710 |
* dwarf_abbrev.c,dwarf_alloc.c,dwarf_arange.c,dwarf_die_deliv.c, |
| 711 |
dwarf_dnames.c,dwarf_form.c,dwarf_frame.c,dwarf_frame2.c, |
| 712 |
dwarf_gdbindex.c,dwarf_global.c,dwarf_init_finish.c,dwarf_line.c, |
| 713 |
dwarf_loc.c,dwarf_macro5.c,dwarf_print_lines.c,dwarf_query.c, |
| 714 |
dwarf_ranges.c,dwarf_str_offsets.c,dwarf_util.c,dwarf_xu_index.c, |
| 715 |
dwarf_string.c,dwarf_macro.c: Added include dwarf_util.h. |
| 716 |
2018-05-15 David Anderson |
| 717 |
* dwarf_die_deliv.c,dwarf_dsc.c,dwarf_error.c, |
| 718 |
dwarf_init_finish.c,dwarf_original_elf_init.c, |
| 719 |
pro_error.c,pro_line.c: Removed the unnecessary |
| 720 |
inclusion of elf.h. |
| 721 |
* dwarf_incl.h: Removed the unnecessary |
| 722 |
inclusion of elf.h, limits.h, and dwarf_xu_index.h. |
| 723 |
2018-05-15 David Anderson |
| 724 |
* dwarf_abbrev.c,dwarf_alloc.c,dwarf_die_deliv.c, |
| 725 |
dwarf_dsc.c,dwarf_dsc.h,dwarf_elf_access.c,dwarf_error.h, |
| 726 |
dwarf_gdbindex.h,dwarf_global.h,dwarf_groups.c, |
| 727 |
dwarf_harmless.c,dwarf_harmless.h,dwarf_leb.c,dwarf_loc.h, |
| 728 |
dwarf_loc2.h,dwarf_opaque.h,dwarf_print_lines.c, |
| 729 |
dwarf_ranges.c,dwarf_string.c,dwarf_tsearch.h, |
| 730 |
dwarf_tsearchhash.c,dwarf_util.c,dwarf_xu_index.c, |
| 731 |
dwarf_xu_index.h,pro_alloc.c,pro_die.h,pro_finish.c, |
| 732 |
pro_util.h: Removed trailing blank lines. |
| 733 |
Updated copyright year. |
| 734 |
2018-05-15 David Anderson |
| 735 |
* dwarf_loc2.c, dwarf_line_table_reader_common.c, |
| 736 |
dwarf_errmsg_list.c: Renamed to end in .h, not .c, |
| 737 |
as these are all targets of #include. |
| 738 |
* dwarf_test_errmsg_list.c: New file with the test code |
| 739 |
extracted from dwarf_errmsg_list.c and #including |
| 740 |
the new dwarf_errmsg_list.h |
| 741 |
* Makefile.in: Renamings .c to .h and the errmsg checking |
| 742 |
builds the new dwarf_test_errmsg_list.c |
| 743 |
The -DTESTING in building dwarf_test_errmsg_list.c |
| 744 |
is no longer necessary. |
| 745 |
* dwarf_error.c, dwarf_line.c,dwarf_print_lines.c: |
| 746 |
Reflect the .c->h renamings |
| 747 |
2018-05-14 David Anderson |
| 748 |
* libdwarf.h.in: Removed trailing whitespace. |
| 749 |
2018-05-14 David Anderson |
| 750 |
* libdwarf2.1.mm: Documented dwarf_get_fde_info_for_reg3_b(). |
| 751 |
Refined some comments about frame data. |
| 752 |
* libdwarf2.1.pdf: Regenerated. Version 2.64 |
| 753 |
2018-05-14 David Anderson |
| 754 |
* gennames.c: Updated version string. |
| 755 |
2018-05-14 David Anderson |
| 756 |
* dwarf_frame2.c: Do a thorough check of every non-zero |
| 757 |
augmentation data length in a way that will catch |
| 758 |
integer overflows. |
| 759 |
* dwarf_str_offsets.c: Fixed a botch in the original |
| 760 |
dwarf_dealloc in dwarf_close_str_offsets_table_access(). |
| 761 |
2018-05-14 David Anderson |
| 762 |
* dwarf_frame.c: Implemented dwarf_get_fde_info_for_reg3_b(). |
| 763 |
* libdwarf.h.in: Fixed arg list for dwarf_get_fde_info_for_reg3_b. |
| 764 |
2018-05-14 David Anderson |
| 765 |
* libdwarf.h.in: Declare new frame function, |
| 766 |
next commit will have the code in dwarf_frame.c. |
| 767 |
2018-05-01 Carlos Alberto Enciso |
| 768 |
* gennames.c: Reversed the order of calling process_args() |
| 769 |
vs print_args(). There is no visible difference for |
| 770 |
linux/unix, and is just to match the convention |
| 771 |
now used in dwarfdump for the ordering. |
| 772 |
2018-04-22 David Anderson |
| 773 |
* gennames.c: Updated version string. |
| 774 |
* libdwarf.h.in: Removed trailing comma from enumeration list. |
| 775 |
2018-04-19 David Anderson |
| 776 |
* dwgetopt.c: Changed to match correction in dwarfdump version. |
| 777 |
2018-04-17 David Anderson |
| 778 |
* dwgetopt.c: Changed to match correction in dwarfdump version. |
| 779 |
2018-04-16 David Anderson |
| 780 |
* dwarf_str_offsets.c: Removed debug call to dump_bytes() |
| 781 |
* gennames.c: Updated version string. |
| 782 |
2018-04-14 David Anderson |
| 783 |
* CMakeLists.txt: Added new source/header files to cmake. |
| 784 |
2018-04-14 David Anderson |
| 785 |
* libdwarf2.1.mm: Complete doc on the new .debug_str_offsets |
| 786 |
interfaces. |
| 787 |
* Regenerated. Rev 2.63. |
| 788 |
2018-04-13 David Anderson |
| 789 |
* gennames.c: Updated version string. |
| 790 |
* Makefile.in: Added dwarf_str_offsets.o to target list. |
| 791 |
* checkexamples.c: Added example code for the .debug_str_offsets |
| 792 |
section interfaces. |
| 793 |
* dwarf_alloc.h: Update ALLOC_AREA_INDEX_TABLE_MAX for new |
| 794 |
allocatable. |
| 795 |
* dwarf_alloc.c:Add #include and array entry for DW_DLA_STR_OFFSETS |
| 796 |
* libdwarf.h.in: |
| 797 |
* dwarf_errmsg_list.c: Added new .debug_str_offsets section |
| 798 |
reader error codes. |
| 799 |
* dwarf_str_offsets.h: New. Hidden struct for .debug_str_offsets |
| 800 |
interfaces. |
| 801 |
* dwarf_str_offsets.c: New for .debug_str_offsets. |
| 802 |
* libdwarf2.1.mm: Incomplete doc on the new interfaces. |
| 803 |
2018-03-29 David Anderson |
| 804 |
* configure.ac: Now uses AC_COMPILE_IFELSE |
| 805 |
instead of AC_TRY_COMPILE. Substantial changes |
| 806 |
along those lines. |
| 807 |
* config.h.in, configure: Regenerated. |
| 808 |
2018-03-28 David Anderson |
| 809 |
* configure.ac: Replaces configure.in and |
| 810 |
uses AC_COMPILE_IFELSE instead of the |
| 811 |
deprecated AC_TRY_COMPILE. |
| 812 |
* configure: Regenerated. |
| 813 |
* config.h.in: Regenerated |
| 814 |
2018-03-27 David Anderson |
| 815 |
* configure.in: Cross compiling tested, working. |
| 816 |
* configure: regenerated. |
| 817 |
2018-03-25 David Anderson |
| 818 |
* configure.in: Support for cross compiling |
| 819 |
* configure: regenerated. |
| 820 |
* Makefile.in: Support for cross compiling |
| 821 |
2018-03-25 David Anderson |
| 822 |
* Makefile.in: Add comments about what is built for build |
| 823 |
system (as opposed to host or target). |
| 824 |
2018-03-24 David Anderson |
| 825 |
* checkexamples.c: This is just example code for |
| 826 |
libdwarf2.1.mm, not part of libdwarf. Now |
| 827 |
checked by cc for errors and organized in the |
| 828 |
same order the examples appear in the .mm. |
| 829 |
* dwarf_errmsg_list.c: Added error code |
| 830 |
DW_DLE_LINE_HEADER_CORRUPT. |
| 831 |
* dwarf_line.c(_dwarf_set_line_table_regs_default_values): |
| 832 |
Add line-table header version number argument so the |
| 833 |
function works for DWARF5 (and earlier as well). |
| 834 |
Now uses dwarf_srclines_files_indexes() several places, |
| 835 |
simplifying the code. |
| 836 |
* dwarf_line.h: Adds new fields to Dwarf_Line_Context_s |
| 837 |
so that dwarf_srclines_files_indexes() logic is |
| 838 |
simple. |
| 839 |
* dwarf_line_table_reader_common.c: Passes version number |
| 840 |
to _dwarf_set_line_table_regs_default_values() so it |
| 841 |
works right for DWARF5 (and for earlier DWARF). |
| 842 |
* libdwarf.h.in: Added DW_DLE_LINE_HEADER_CORRUPT to |
| 843 |
error list. Added function dwarf_srclines_files_indexes(). |
| 844 |
* libdwarf2.1.mm: Rev 2.61. Document the new function |
| 845 |
dwarf_srclines_files_indexes() |
| 846 |
and update all examples for formatting and correct C. |
| 847 |
* libdwarf2.1.pdf: Regenerated, Rev 2.61. |
| 848 |
2018-03-22 David Anderson |
| 849 |
* dwarf_line.c, dwarf_print_lines.c: Index file |
| 850 |
numbers for all versions of DWARF (DWARF5 |
| 851 |
indexes starting at 0). |
| 852 |
2018-03-21 David Anderson |
| 853 |
* gennames.c: Updated version string. |
| 854 |
2018-03-21 David Anderson |
| 855 |
* dwarf_elf_access.c: Allow for relocations on .debug_str_offsets. |
| 856 |
* dwarf_errmsg_list.c: Clarified meaning of |
| 857 |
DW_DLE_DIE_ABBREV_LIST_NULL, added new errors |
| 858 |
DW_DLE_STR_OFFSETS_BASE_WRONG_FORM, |
| 859 |
DW_DLE_DATA16_OUTSIDE_SECTION, |
| 860 |
DW_DLE_LNCT_MD5_WRONG_FORM |
| 861 |
* dwarf_form.c: Added support for DWARF5 new FORMs. |
| 862 |
* dwarf_line.c: Added dwarf_srclines_files_data_b() |
| 863 |
so clients needing DWARF5 line table support can |
| 864 |
get the DW_LNCT_MD5 value if it is present. |
| 865 |
* dwarf_line.h: Added support for the DWARF5 |
| 866 |
MD5 data. |
| 867 |
* dwarf_line_table_reader_common.c: Added |
| 868 |
DW_LNCT_MD5 support. |
| 869 |
* dwarf_opaque.h: Added _dwarf_extract_data16 so we do not |
| 870 |
have code duplication reading this data. |
| 871 |
* dwarf_print_lines.c: If MD5 present, we now print it. |
| 872 |
* dwarf_query.c: Correct handling of form for |
| 873 |
DW_AT_str_offsets_base. |
| 874 |
* dwarf_util.c: Add support for DWARF5 FORMs. |
| 875 |
* libdwarf.h.in: Define the values of the new |
| 876 |
DW_DLE codes mentioned above. |
| 877 |
Declare new function dwarf_srclines_files_data_b() |
| 878 |
* libdwarf2.1.mm: Document new function. Rev 2.61. |
| 879 |
* libdwarf2.1.pdf: Generated Rev 2.61 |
| 880 |
2018-01-05 David Anderson |
| 881 |
* dwarf_macro5.c(_dwarf_get_macro_ops_count_internal): |
| 882 |
A test duplicated the preceding loop condition so |
| 883 |
the body of the test was dead code. Removed the |
| 884 |
dead code. |
| 885 |
2018-01-29 David Anderson |
| 886 |
* dwarf_arange.c: Improve and comment checks for |
| 887 |
stepping off the end of arange data. |
| 888 |
* dwarf_die_deliv.c: Make an error code |
| 889 |
returned a bit more specific. |
| 890 |
DW_DLA_DIE_BAD becomes DW_DLE_ABBREV_MISSING. |
| 891 |
* dwarf_errmsg_list.c: Added new error codes |
| 892 |
DW_DLE_ABBREV_MISSING DW_DLE_NO_TAG_FOR_DIE |
| 893 |
DW_DLE_LOWPC_WRONG_CLASS DW_DLE_HIGHPC_WRONG_FORM. |
| 894 |
* dwarf_form.c: Used DW_DLE_NO_TAG_FOR_DIE instead of |
| 895 |
DW_DLA_DIE_BAD to make an error return more specific. |
| 896 |
* dwarf_frame2.c: Add new checks for corrupted dwarf |
| 897 |
frame data. |
| 898 |
* dwarf_query.c: Added error check and changed |
| 899 |
DW_DLE_DIE_BAD to DW_DLE_ABBREV_MISSING in one place. |
| 900 |
Other DWARF corruption checks and error refinements added. |
| 901 |
* libdwarf.h.in: Added the defines for the new DW_DLE |
| 902 |
codes. |
| 903 |
2018-01-29 David Anderson |
| 904 |
* gennames.c: Update version string. |
| 905 |
|