| 1 |
2020-12-26 David Anderson |
| 2 |
* buildopscounttab.c,esb.c: Fixed indentation and trailing |
| 3 |
whitespace. |
| 4 |
2020-12-25 David Anderson |
| 5 |
* command_options.c,dwconf.c,dwgetopt.c,dwgetopt.h, |
| 6 |
print_die.c,print_frames.c,print_locs.c,print_pubnames.c, |
| 7 |
testesb.c: Correct spelling in comments. |
| 8 |
2020-12-25 David Anderson |
| 9 |
* print_die.c: expresssion -> expression in a printf string. |
| 10 |
2020-12-24 David Anderson |
| 11 |
* CMakeLists.txt: Needed the same sed transformation |
| 12 |
that was added in runtests.sh a few minutes ago to |
| 13 |
pass 'make test'. |
| 14 |
2020-12-24 David Anderson |
| 15 |
* runtests.sh: The 'last time' timestamp expansion |
| 16 |
got different strings out of libc depending on timezone. |
| 17 |
We do not really care what the date/time is, so |
| 18 |
now we trim off the date/time text portion. |
| 19 |
* testobjLE32PE.base: Now contains the trimmed |
| 20 |
data with 0x0 but no day or year or time |
| 21 |
so we can compare equal with 'make check' |
| 22 |
anywhere we run it. |
| 23 |
2020-12-24 David Anderson |
| 24 |
* macrocheck.h: Added a needed 'extern' for macdefundeftree. |
| 25 |
2020-12-23 David Anderson |
| 26 |
* CMakeLists.txt: Adds opscounttab.c and opscounttab.h |
| 27 |
to the files in the build of dwarfdump. |
| 28 |
* Makefile.am: Adds opscounttab.c opscounttab.h and |
| 29 |
buildopscounttab.c appropriately. |
| 30 |
* Makefile.in: Regenerated. |
| 31 |
* buildopscounttab.h: Fixes spelling mistake. |
| 32 |
* buildopscounttab.c: Fixes DW_OP_lit0 input. |
| 33 |
Adjusts indents, remove trailing white and trailing |
| 34 |
blank lines. |
| 35 |
* esb.c: Added ESBERR checks and that found mistakes |
| 36 |
in dwarfdump source. |
| 37 |
* print_die.c: include opscounttab.h. op_has_no_operands() |
| 38 |
is just reference to a byte in dwarf_opscounttab array. |
| 39 |
Deleted a struct and table that is not used. |
| 40 |
* print_macro.c: Fixed a esb_append_printf_u() call |
| 41 |
missing a % . Removed a stray newline from printf output. |
| 42 |
* print_ranges.c: An error message was missing |
| 43 |
a % to esb_append_printf_u. Fixed. |
| 44 |
* print_loclists.c: Rearranged 4 lines so it is easy |
| 45 |
to see that the printf has its 0x% before DW_PR_XZEROS etc. |
| 46 |
2020-12-22 David Anderson |
| 47 |
* buildopscounttab.c: Builds a simple table per DW_OP |
| 48 |
operator. More use of it shortly. |
| 49 |
* opscounttab.h: Type decl and array decl. |
| 50 |
* opscounttab.c: Generated this file.Speeds up |
| 51 |
inquiring if a DW_OP has zero operands. |
| 52 |
2020-12-22 David Anderson |
| 53 |
* dwarfdump.1: Added descriptions to the |
| 54 |
options for |
| 55 |
.debug_macro printing and checking. |
| 56 |
* dwarfdump.c: Ensure a total of the MACRONOTES |
| 57 |
messages gets printed at the end. |
| 58 |
* glflags.h: Added gf_count_macronotes. |
| 59 |
* print_macro.c: Now issue MACRONOTE, not ERROR, |
| 60 |
for items of interest that are possibly |
| 61 |
not errors at all, and only list the counts |
| 62 |
of def/undef with -kw (--check-macros). |
| 63 |
2020-12-20 David Anderson |
| 64 |
* dwconf.c: Removed BOOLEAN_TYPEDEF as the 'boolean' |
| 65 |
define it referred to is no longer present anywhere. |
| 66 |
2020-12-20 David Anderson |
| 67 |
* sanitized.c: Removed unused global variable. |
| 68 |
* command_options.c,compiler_info.c,compiler_info.h, |
| 69 |
defined_types.h,dwarfdump.c,glflags.c,glflags.h,globals.h, |
| 70 |
print_aranges.c,print_die.c,print_hipc_lopc_attr.c, |
| 71 |
print_lines.c,print_macro.c,print_ranges.c,print_reloc.c, |
| 72 |
print_section_groups.c,sanitized.h,section_bitmaps.c, |
| 73 |
section_bitmaps.h,strstrnocase.c,tag_attr.c,tag_common.c, |
| 74 |
tag_common.h,tag_tree.c: Switched all instances of |
| 75 |
'boolean' to be Dwarf_Bool. |
| 76 |
2020-12-20 David Anderson |
| 77 |
* dwarfdump.c: Revised calls to print DWARF5 macro data. |
| 78 |
* dwconf.c: Removed dead code. |
| 79 |
* glflags.c, glflags.h: Renamed two flags as the names |
| 80 |
in use were awkwardly long. |
| 81 |
* globals.h: Moved a couple extern decls to macrocheck.c |
| 82 |
Revised prototypes for printing .debug_macro data. |
| 83 |
* macrocheck.c: Major changes to support full printing |
| 84 |
and checking of .debug_macro data. |
| 85 |
* macrocheck.h: extern decls for .debug_macro moved from |
| 86 |
globals.h to here. |
| 87 |
* print_die.c: Revised dwarfdump arglists to deal |
| 88 |
with .debug_macro data and revised glflags names. |
| 89 |
* print_frames.c: To match revised glflags names. |
| 90 |
* print_macinfo.c: To match revised import recording |
| 91 |
function args to add_macro_import(). |
| 92 |
* print_macro.c: Major revisions to descend through |
| 93 |
imported macros and print and assess-correctness. |
| 94 |
* runtests.sh: Changing comments to make it clearer |
| 95 |
what each test is. |
| 96 |
* testobjLE32PE.base: Updated baseline to match |
| 97 |
improved .debug_macro reporting. |
| 98 |
2020-12-10 David Anderson |
| 99 |
* command_options.c, dwarfdump.1: Refined the |
| 100 |
description of the --file-tied option to be |
| 101 |
a bit more accurate. |
| 102 |
2020-12-07 David Anderson |
| 103 |
* dwarf_names.c: Regenerated. The new version has |
| 104 |
a new comment (no code change). |
| 105 |
2020-12-06 David Anderson |
| 106 |
* addrmap.c,checkutil.c,command_options.c,dwarfdump.c, |
| 107 |
getopttest.c,helpertree.c,macrocheck.c,naming.c, |
| 108 |
print_aranges.c,print_debug_gnu.c,print_debug_names.c, |
| 109 |
print_debug_sup.c,print_debugfission.c,print_die.c, |
| 110 |
print_frames.c,print_gdbindex.c,print_hipc_lopc_attr.c, |
| 111 |
print_llex_codes.c,print_loclists.c,print_loclists_codes.c, |
| 112 |
print_locs.c,print_macinfo.c,print_macro.c,print_pubnames.c, |
| 113 |
print_ranges.c,print_rnglist.c,print_section_groups.c, |
| 114 |
print_static_funcs.c,print_static_vars.c,print_str_offsets.c: |
| 115 |
Small adjustments to comments and code lines to |
| 116 |
get close to libdwarf codingstyle. |
| 117 |
2020-12-05 David Anderson |
| 118 |
* addrmap.h,checkutil.h,dwgetopt.c,dwgetopt.h,helpertree.h, |
| 119 |
macrocheck.h,naming.h,print_frames.h,print_reloc.h, |
| 120 |
print_reloc_decls.h: modified for line length. |
| 121 |
No logic changes. |
| 122 |
|
| 123 |
* tag_attr.c,tag_tree.c: Modified to generate no |
| 124 |
long C source lines. |
| 125 |
|
| 126 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 127 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 128 |
dwarfdump-tt-table.h: Regenerated using the above |
| 129 |
tag_*.c sources, now with no long lines. |
| 130 |
2020-12-04 David Anderson |
| 131 |
* print_reloc.c,print_reloc_test.c,print_types.c, |
| 132 |
print_weaknames.c: Trivial tiny changes for codingstyle. |
| 133 |
2020-12-04 David Anderson |
| 134 |
* dwarf_tsearchbal.c,dwarfdump.c,dwconf.c,dwconf.h,dwgetopt.c: |
| 135 |
Trivial tiny changes for codingstyle. |
| 136 |
2020-12-04 David Anderson |
| 137 |
* esb.c,glflags.c,glflags.h,globals.h,sanitized.c, |
| 138 |
section_bitmaps.c,section_bitmap,.h,section_bitmaps_test.c, |
| 139 |
strstrnocase.c: Trivial tiny changes for codingstyle. |
| 140 |
2020-12-04 David Anderson |
| 141 |
* tag_common.c,testesb.c,uritablebuild.c: Revisions to pass |
| 142 |
dicheck coding-style |
| 143 |
rules (libdwarf codingstyle). |
| 144 |
2020-12-04 David Anderson |
| 145 |
* compiler_info.h: Reduced 2 line lengths for consistency |
| 146 |
with libdwarf codingstyle. |
| 147 |
* compiler_info.c: Introducing a local pointer shortened |
| 148 |
a few lines. Is now easier to read two small functions. |
| 149 |
2020-12-03 David Anderson |
| 150 |
* command_options.c: The --print-macinfo prints whatever |
| 151 |
.debug_macro or .debug_macinfo section exists. |
| 152 |
Updated the --help output to say that. |
| 153 |
Removed trailing whitespace and a few other |
| 154 |
small changes to match libdwarf codingstyle. |
| 155 |
* compiler_info.c: Removed trailing whitespace and a few other |
| 156 |
small changes to match libdwarf codingstyle. |
| 157 |
2020-11-30 David Anderson |
| 158 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 159 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 160 |
dwarfdump-tt-table.h: Regenerated with latest |
| 161 |
version string. |
| 162 |
2020-11-26 David Anderson |
| 163 |
* print_debug_gnu.c: In current compilers the blocks |
| 164 |
have a CU offset to the skeleton DIEs (when |
| 165 |
is split dwarf) so we print some data on |
| 166 |
each CU DIE now. |
| 167 |
2020-11-25 David Anderson |
| 168 |
* Makefile.in: Regenerated from configure.ac. |
| 169 |
To support data needed for dwarfexample make check. |
| 170 |
2020-11-25: David Anderson |
| 171 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 172 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 173 |
dwarfdump-tt-table.h: Regenerated with latest |
| 174 |
version string. |
| 175 |
2020-11-23: David Anderson |
| 176 |
* CMakeLists.txt: now -D-DDWARF_WITH_LIBELF=OFF works |
| 177 |
2020-11-23: David Anderson |
| 178 |
* glflags.h, glflags.c: Added field glflags.gf_max_space_indent |
| 179 |
with value 10 so that really deep TAG nesting does not |
| 180 |
result in mostly blank thousand-character lines. |
| 181 |
If there is a call for it, the value could be supplied |
| 182 |
by a new dwarfdump option. |
| 183 |
* globals.h: Removed two functions defined and |
| 184 |
only used in print_die.c. |
| 185 |
* print_die.c: Too deep nesting is unreadable so now |
| 186 |
when 10 or more deep the output uses for example ...100... |
| 187 |
instead of hundreds of spaces to indicate depth. |
| 188 |
Indentation of DW_OP output changed in some cases. |
| 189 |
2020-11-22: David Anderson |
| 190 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 191 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 192 |
dwarfdump-tt-table.h: Regenerated with latest |
| 193 |
version string. |
| 194 |
2020-11-22: David Anderson |
| 195 |
* print_frames.c: The refactoring left old dealloc |
| 196 |
in place that are no longer appropriate. Removed them. |
| 197 |
* print_die.c: DW_FORM_exprloc was, when printing FORMs, |
| 198 |
printing the FORM later than desired. Now shows |
| 199 |
up in the right place. |
| 200 |
2020-11-22: David Anderson |
| 201 |
* print_die.c: When an attribute expression DW_OP is |
| 202 |
a DWARF5 reference to a DW_TAG the details of the |
| 203 |
reference are indented a little and printed on |
| 204 |
the line after the DW_OP itself. |
| 205 |
Seems easier to read that way. |
| 206 |
2020-11-22: David Anderson |
| 207 |
* command_options.c: The option is now |
| 208 |
--format-expr-ops-joined |
| 209 |
* dwarfdump.1,dwarfdump.conf,testdwarfdump.conf: Reflects |
| 210 |
the new option. |
| 211 |
* dwconf.c,glflags.c,glflags.h: Reflects the new option. |
| 212 |
* print_die.c: Reflects the new option. |
| 213 |
2020-11-21: David Anderson |
| 214 |
* dwconf.c: Error message needed a slight wording change |
| 215 |
when we discover the abi requested does not exist. |
| 216 |
2020-11-21: David Anderson |
| 217 |
* command_options.c: Added a new option, but it will be |
| 218 |
removed shortly as not needed. |
| 219 |
* dwconf.c: Clarified the code with a more complete |
| 220 |
set of return values. |
| 221 |
* dwconf.h: Macro defines for the new return values. |
| 222 |
* print_die.c: Now allows printing expression operations |
| 223 |
one per line. Which will be the default very soon. |
| 224 |
2020-11-21: David Anderson |
| 225 |
* print_frames.c: Error message improvements and |
| 226 |
refactored fde/cie printing to make it easier |
| 227 |
to follow. Now if fde printing errors-out |
| 228 |
we continue on to attempting to print cies. |
| 229 |
2020-11-20: David Anderson |
| 230 |
* print_frames.c: A better indent for expression ops |
| 231 |
from frames. More detailed error message too. |
| 232 |
2020-11-17: David Anderson |
| 233 |
* command_options.c: Minor line shortening. |
| 234 |
* dwconf.c: Previous commit introduced a few bugs. |
| 235 |
Fixed, and clearer now. |
| 236 |
2020-11-16: David Anderson |
| 237 |
* command_options.c: Now accepts --format-expr-op-per-line |
| 238 |
* dwarfdump.1: Mentions the option. |
| 239 |
* dwarfdump.c: Small changes passing die_indent_level |
| 240 |
around so formatting looks sensible with the new option. |
| 241 |
* dwconf.c: Now deals with |
| 242 |
option: --format-expr-op-per-line |
| 243 |
in dwarfdump.conf. the option: command must preceed every |
| 244 |
beginabi: command. |
| 245 |
* esb_using_functions.h: Adding die_indent level to another |
| 246 |
function prototype. |
| 247 |
* glflags.c,glflags.h: Renamed the flag for the option to |
| 248 |
gf_expr_op_per_line. |
| 249 |
* print_die.c,print_frames.c,print_frames.h, |
| 250 |
print_hipc_lopc_attr.c,print_locs.c: Now passing |
| 251 |
die_indent_level anywhere needed. |
| 252 |
2020-11-15: David Anderson |
| 253 |
* testdwarfdump.conf: A special version to test |
| 254 |
the 'option:' command. |
| 255 |
2020-11-15: David Anderson |
| 256 |
* esb_using_functions.h: Add Dwarf_Die arg to |
| 257 |
dwarfdump_print_location_operations(). |
| 258 |
* glflags.h, glflags.c: Adding gf_multi_line_expr. Not used yet. |
| 259 |
* globals.h: Adding Dwarf_Die to check_die_expr_op_basic_data(). |
| 260 |
* print_die.c: Now printing references to DIEs in |
| 261 |
DWARF expressions. |
| 262 |
* print_frames.c,print_frames.h,print_locs.c: Adding Dwarf_Die |
| 263 |
to arg lists. Some reformatting to libdwarf coding style. |
| 264 |
2020-11-12: David Anderson |
| 265 |
* dwarfdump.1: Clarified the role of the --verbose |
| 266 |
option and corrected spelling and formatting errors. |
| 267 |
* print_lines.c: Revised one glflags.verbose test so it |
| 268 |
reads the same way as other verbose tests. Fixed |
| 269 |
various lines to meet the libdwarf coding style. |
| 270 |
* tag_attr.c,tag_tree.c: Changed to meet the |
| 271 |
libdwarf coding style. |
| 272 |
2020-11-11: David Anderson |
| 273 |
* print_abbrevs.c: Fixing a mistake in the |
| 274 |
new code. The error lead to an |
| 275 |
erroneous error being reported |
| 276 |
in objects where the compiler left off the final |
| 277 |
zero in the .debug_abbrev section. |
| 278 |
2020-11-09: David Anderson |
| 279 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 280 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 281 |
dwarfdump-tt-table.h: Regenerated with latest |
| 282 |
version string. |
| 283 |
2020-11-08: David Anderson |
| 284 |
* globals.h: Declaring new function print_all_abbrevs_for_cu() |
| 285 |
* print_abbrevs.c: Refactored to allow printing abbrevs |
| 286 |
for a single CU and/or all abbreves at once. |
| 287 |
* print_die.c: If -vvvv and printing .debug_info/.debug_types |
| 288 |
print the abbrev section applying to each CU reported. |
| 289 |
If checking (as with -ka) check for errors in |
| 290 |
the abbrevs of each CU (no -v required for checking). |
| 291 |
2020-11-05: David Anderson |
| 292 |
* dwarf_tsearchbal.c,dwarfdump.c,print_lines.c,tag_attr.c: |
| 293 |
These had some #include not protected by the HAVE_*H |
| 294 |
config.h (and cmake) provide. Fixed. |
| 295 |
* testobjLE32PE.base: baseline update to match current |
| 296 |
output. |
| 297 |
|
| 298 |
2020-11-04: David Anderson |
| 299 |
* globals.h,print_lines.c,print_die.c: Adding arguments for a |
| 300 |
srcfiles array for the CU to |
| 301 |
to print_line_numbers_this_cu(). Now, with -vvv |
| 302 |
just printing line tables will print the dwarf_srcfiles |
| 303 |
array of strings. |
| 304 |
2020-11-03: David Anderson |
| 305 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 306 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 307 |
dwarfdump-tt-table.h: Regenerated with latest |
| 308 |
version string. |
| 309 |
2020-11-03: David Anderson |
| 310 |
* Makefile.am, CMakeLists.txt: print_macros.c renamed |
| 311 |
to print_macinfo.c for clarity in naming. |
| 312 |
* Makefile.in: Regenerated. |
| 313 |
* globals.h: Added Dwarf_Die argument to |
| 314 |
print_macinfo_by_offset(). |
| 315 |
Added srccfiles, count argument to |
| 316 |
print_macros_5style_this_cu(). |
| 317 |
* print_die.c: Renamed macro_check_cu() to |
| 318 |
print_macinfo_for_cu() for clarity in naming. |
| 319 |
print_macinfo_for_cu() now prints the file name |
| 320 |
(from srcfiles list) if it is DW_MACINFO_start_file. |
| 321 |
* print_macinfo.c: Nowuses passed-in srcfiles |
| 322 |
to get the full path for the file index |
| 323 |
DW_MACINFO_start_file. |
| 324 |
* print_macro.c: Prints the DWARF5 set_file macro |
| 325 |
correctly with name. |
| 326 |
* runtests.sh: 'make check' baselines made a bit |
| 327 |
larger and added -vvv to the dwarfdump command |
| 328 |
generating those baselines. |
| 329 |
* test-mach-o-32.base,testobjLE32PE.base, |
| 330 |
testobjLE32PE.base,testuriLE64ELf.base: New baselines |
| 331 |
with additional content per CU and more lines. |
| 332 |
2020-11-01: David Anderson |
| 333 |
* print_die.c: With -vvv dwarfdump now prints |
| 334 |
the array dwarf_srcfiles generates so library |
| 335 |
users can compare the compilation unit, its |
| 336 |
line table header, and what dwarf_srcfile() |
| 337 |
provides. DW_AT_decl_file and DW_AT_call_file |
| 338 |
now result (in printing attributes) in the right |
| 339 |
source file printing. |
| 340 |
2020-10-30: David Anderson |
| 341 |
* esb.c,esb.h,uri.c: Removed trailing whitespace, |
| 342 |
shortened a few lines. |
| 343 |
2020-10-29: David Anderson |
| 344 |
* command_options.c,print_die.c: Fix indents, remove |
| 345 |
trailing whitespace. |
| 346 |
* In this ChangeLog some of the August lines |
| 347 |
had tabs and the lines were kind of messed up. |
| 348 |
Fixed. |
| 349 |
2020-10-29: David Anderson |
| 350 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 351 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 352 |
dwarfdump-tt-table.h: Regenerated with latest |
| 353 |
version string. |
| 354 |
2020-10-29: David Anderson |
| 355 |
* print_die.c: Factored out the indent-spaces code |
| 356 |
into static function print_indent_prefix(). |
| 357 |
For now there is no change in output format, |
| 358 |
though for large indents (greater than around 6) |
| 359 |
the spacing gets so large the output becomes |
| 360 |
unreadable. |
| 361 |
2020-10-28: David Anderson |
| 362 |
* print_die.c: Dwarfbug DW202010-002. In case of |
| 363 |
a circular DIE tree memory outside of the target |
| 364 |
DIE stack array would be written to and |
| 365 |
referenced. Now we test at all the places |
| 366 |
the stack index is incremented and print |
| 367 |
a useful error message. |
| 368 |
* print_section_groups.c: #if 0 code updating |
| 369 |
glftab as the table data has never been used. |
| 370 |
2020-10-22: David Anderson |
| 371 |
* command_options.c,dwarfdump.1: The man |
| 372 |
page and the -h (help) output spelled the long-form |
| 373 |
option for seeing Elf Section Group DWARF data |
| 374 |
incorrectly as --format-group=<n> but the real option |
| 375 |
has always been --format-group-number=<n> . To see |
| 376 |
any section groups and the number libdwarf assigns |
| 377 |
to them do dwarfdump -i -vv <object name> Most object |
| 378 |
will have just section group 1 and dwarfdump/libdwarf |
| 379 |
handle that automatically. Groupnumber support was |
| 380 |
added in May 2017. See dwarf_init_path() page 34 |
| 381 |
and Section 6.3 Page 46 in libdwarf2.1.pdf . |
| 382 |
2020-10-20: David Anderson |
| 383 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 384 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 385 |
dwarfdump-tt-table.h: Regenerated with latest |
| 386 |
version string. |
| 387 |
* glflags.c: see TRIVIAL_NAMING, used when doing |
| 388 |
scripts/buildstandardsource.sh |
| 389 |
2020-10-19: David Anderson |
| 390 |
* dwarfdump.1: Document --format-suppress-sanitize |
| 391 |
Added documentation on --format-suppress-uri too. |
| 392 |
Reorganized the URI sections for greater clarity. |
| 393 |
* command_options.c: show --format-suppress-sanitize |
| 394 |
thus mentioning the option. If there are corruptions |
| 395 |
or bad string data in an object this can be dangerous |
| 396 |
to your terminal window. |
| 397 |
* esb.c: Remove #if 0 and the code for a function |
| 398 |
that was not a good idea: esb_constructor_rigid(). |
| 399 |
* glflags.c: Adding glflags.gf_no_sanitize_strings |
| 400 |
initializer (used to use a global not in glflags). |
| 401 |
* glflags.c: Adding boolean gf_no_sanitize_strings |
| 402 |
declaration. |
| 403 |
* print_frames.c(print_location_operations): Remove |
| 404 |
unwanted code #if 0 through #endif |
| 405 |
* print_macro.c(print_macros_5style_this_cu): #if 0 |
| 406 |
code removed. So deleted duplicate die printing |
| 407 |
calls. |
| 408 |
* print_pubnames.c: deal_with_name_offset_err() |
| 409 |
has not been used in a long time. Deleted. |
| 410 |
* sanitized.c(sanitized): add includes to allow |
| 411 |
glflags.h |
| 412 |
and use glflags.gf_no_sanitize_strings for checking |
| 413 |
whether to sanitize. |
| 414 |
2020-10-19: David Anderson |
| 415 |
* dwarfdump.c,getopttest.c,print_lines.c, |
| 416 |
testobjLE32PE.test.c: Fixed indents and |
| 417 |
removed trailing whitespace. |
| 418 |
2020-10-19: David Anderson |
| 419 |
* *.c *.h: No license terms changed but nearly |
| 420 |
all the copyright notices are now reformatted to |
| 421 |
line lengths appropriate for dwarfdump. |
| 422 |
2020-10-18: David Anderson |
| 423 |
* tag_attr.list: Added standard tag-attribute |
| 424 |
relationships |
| 425 |
that are being used now. |
| 426 |
* tag_tree.list: Added standard tag-tag relationships |
| 427 |
that are being used now. |
| 428 |
* dwarfdump-ta-table.h: Regenerated. |
| 429 |
* dwarfdump-tt-table.h: Regenerated. |
| 430 |
2020-10-17: David Anderson |
| 431 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 432 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 433 |
dwarfdump-tt-table.h: Regenerated with latest |
| 434 |
version string. |
| 435 |
2020-10-15: David Anderson |
| 436 |
* print_lines.c(print_line_context_record): Fixed the |
| 437 |
comments about DWARF4 vs 5. |
| 438 |
2020-10-13: David Anderson |
| 439 |
* print_macro.c: Added the required check for 0 |
| 440 |
opcode and print appropriately (it's the null byte |
| 441 |
at end of macro operands). |
| 442 |
2020-10-12: David Anderson |
| 443 |
* dwarfdump.c: Now printf callbacks from libdwarf |
| 444 |
are sanitized() to prevent corrupted line data from |
| 445 |
compromising user terminal settings. |
| 446 |
* print_lines.c: Accommodation of DWARF5 in more places. |
| 447 |
2020-10-11: David Anderson |
| 448 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 449 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 450 |
dwarfdump-tt-table.h: Regenerated with latest |
| 451 |
version string. |
| 452 |
2020-10-11: David Anderson |
| 453 |
* command_options.c: Refined a wordy comment. |
| 454 |
* dwarfdump.1: Document the new ability to |
| 455 |
get to GNU debuglink files automatically. |
| 456 |
* dwarfdump.c: Implement support for reading GNU |
| 457 |
debuglink and use it to find the target object. |
| 458 |
2020-10-05: David Anderson |
| 459 |
* command_options.c: Implemented first part of |
| 460 |
making GNU debuglink options work. |
| 461 |
* dwarfdump.c: Now using dwarf_init_path() |
| 462 |
working toward making GNU debuglink options work. |
| 463 |
* glflags.h: Commented gf_debug_names_flag |
| 464 |
to avoid confusing it with debuglink. |
| 465 |
2020-10-03: David Anderson |
| 466 |
* Makefile.in: Autoreconf using Ubuntu 20.04 |
| 467 |
made small changes. |
| 468 |
* COPYING: Corrected the references to the BSD |
| 469 |
copyright |
| 470 |
to use "two-clause BSD license". |
| 471 |
2020-10-02: David Anderson |
| 472 |
* command_options.c,glflags.h,print_frames.c: Remove |
| 473 |
trailing whitespace. |
| 474 |
2020-10-02: David Anderson |
| 475 |
* command_options.c: New options --no-follow-debuglink |
| 476 |
and --add-debuglink_path=<text> for working with |
| 477 |
GNU debuglink. |
| 478 |
* glflags.h: Added gf_no_follow_debuglink and |
| 479 |
gf_global_debuglink_paths and |
| 480 |
gf_global_debuglink_count. |
| 481 |
2020-09-30: David Anderson |
| 482 |
* command_options.c: If more than one non-dash |
| 483 |
word is at the end of the dwarfdump command it used |
| 484 |
to complain no object name given. Now in that case |
| 485 |
it complains that more than one was given. Slightly |
| 486 |
more sensible. |
| 487 |
2020-09-27: David Anderson |
| 488 |
* dwarfdump.c: --print-gnu_debuglink output wording |
| 489 |
made clearer. |
| 490 |
2020-09-27: David Anderson |
| 491 |
* dwarfdump.c: Now --print-gnu_debuglink also |
| 492 |
indicates what files it found in the paths |
| 493 |
calculated, making --print-gnu_debuglink more useful. |
| 494 |
* command_options.c: Corrected a typo in a comment |
| 495 |
about |
| 496 |
the option --print-gnu_debuglink. |
| 497 |
2020-09-26: David Anderson |
| 498 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 499 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 500 |
dwarfdump-tt-table.h: Regenerated with latest |
| 501 |
version string. |
| 502 |
2020-09-18: David Anderson |
| 503 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 504 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 505 |
dwarfdump-tt-table.h: Regenerated with latest |
| 506 |
version string. |
| 507 |
2020-09-18: David Anderson |
| 508 |
* print_frames.c: Shortened too-long comment lines. |
| 509 |
2020-09-17: David Anderson |
| 510 |
* print_frames.c: A very old typgraphical error |
| 511 |
meant that in rare circumstances memory leakage |
| 512 |
of a few bytes was possible with option |
| 513 |
--suppress-de-alloc-tree. |
| 514 |
2020-09-10: David Anderson |
| 515 |
* esb_using_functions.h: Adding new argument to |
| 516 |
the print_ranges_list_to_extra() prototype. |
| 517 |
* print_die.c: Using that new argument to |
| 518 |
pass the true offset to the printing code. |
| 519 |
* print_ranges.c: Updated the printing to make it |
| 520 |
clearer |
| 521 |
it clearer the .debug_ranges offset is using a base |
| 522 |
address (when there is one). |
| 523 |
2020-09-10: David Anderson |
| 524 |
* dwarfdump.c: Remove trailing whitespace. |
| 525 |
2020-09-08: David Anderson |
| 526 |
* dwarfdump.c: Now cleans up terminating DW_DLV_ERROR |
| 527 |
allocation even when the object cannot finish |
| 528 |
dwarf_init*(). Fixes print_error() so it works |
| 529 |
right with dbg null. |
| 530 |
2020-09-08: David Anderson |
| 531 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 532 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 533 |
dwarfdump-tt-table.h: Regenerated with latest |
| 534 |
version string. |
| 535 |
2020-09-07: David Anderson |
| 536 |
* glflags.h,print_die.c: Fixed idents and trailing |
| 537 |
whitespace. |
| 538 |
2020-09-06: David Anderson |
| 539 |
* globals.h: print_die_and_children() declaration |
| 540 |
removed, the function is now static in print_die.c. |
| 541 |
* print_die.c: On an error following a call to |
| 542 |
dwarf_child |
| 543 |
(but where dwarf_child() succeeded) we were failing |
| 544 |
to dwarf_dealloc_die(child). And even the main path |
| 545 |
(no error from dwarf_child) failed to dealloc child. |
| 546 |
2020-09-05: David Anderson |
| 547 |
* print_die.c: In a couple error messages spell the |
| 548 |
function name that returned error correctly. |
| 549 |
2020-08-28: David Anderson |
| 550 |
* print_die.c: Fixed indent and trailing whitespace. |
| 551 |
2020-08-27: David Anderson |
| 552 |
* dwarfdump.c: Fix some warnings counted as errors |
| 553 |
by ensuring the ERROR string is in them (they just |
| 554 |
flag in particular situations that the DW_AT_producer |
| 555 |
attribute is missing on the Compilation Unit). |
| 556 |
* print_die.c: Fix places where we double-counted |
| 557 |
errors. |
| 558 |
* print_frames.c: Annotate an existing ERROR so that |
| 559 |
it is counted in the ERROR count. |
| 560 |
* print_llex_codes.c, print_origloclist_codes.c, |
| 561 |
print_ranges.c,print_reloc.c: Fix double-counts |
| 562 |
of errors. |
| 563 |
* print_reloc_decls.h: Just do a printf, no reason |
| 564 |
to use struct esb_s here. |
| 565 |
2020-08-23: David Anderson |
| 566 |
* compiler_info.c: Now we apply sanitized() to all |
| 567 |
the printed strings (just in case an object file is |
| 568 |
corrupted or maybe not plain ascii strings). |
| 569 |
2020-08-23: David Anderson |
| 570 |
* dwarfdump-ta-ext-table.h: Regenerated |
| 571 |
* tag_attr_ext.list: Added DW_AT_GNU_macros |
| 572 |
to the known-extensions list. |
| 573 |
2020-08-23: David Anderson |
| 574 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 575 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 576 |
dwarfdump-tt-table.h: Regenerated with latest |
| 577 |
version string. |
| 578 |
2020-08-23: David Anderson |
| 579 |
* checkutil.c,dwarfdump.c,print_die.c: Removed trailing |
| 580 |
whitespace, fixed indents. |
| 581 |
2020-08-23: David Anderson |
| 582 |
* checkutil.c: Removed #if 0 lines from previous |
| 583 |
commit. |
| 584 |
* dwarfdump.c: Removed debug printf lines. |
| 585 |
* print_die.c: Removed debug printf lines. |
| 586 |
2020-08-22: David Anderson |
| 587 |
* checkutil.c: Temporary debug printf. |
| 588 |
* dwarfdump.c: Revised pRangesInfo reset |
| 589 |
when we have a tied dbg, as in that case we often |
| 590 |
miss function/scope address ranges. Temporary debug |
| 591 |
printf too. |
| 592 |
* globals.h: Adding a Dwarf_Debug argument to |
| 593 |
tag_specific_checks_setup() for when tied file |
| 594 |
present. |
| 595 |
* print_abbreves.c: Temporary debug. |
| 596 |
New arglist for tag_specific_checks_setup() |
| 597 |
* print_die.c: Get the text section bounds |
| 598 |
set (from tied object, if any) so checks of address |
| 599 |
will not incorrectly fail. |
| 600 |
2020-08-22: David Anderson |
| 601 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 602 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 603 |
dwarfdump-tt-table.h: Regenerated with latest |
| 604 |
version string. |
| 605 |
2020-08-10: David Anderson |
| 606 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 607 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 608 |
dwarfdump-tt-table.h: Updated version string, |
| 609 |
regenerated files using it. |
| 610 |
2020-08-02: David Anderson |
| 611 |
* print_die.c: Now with Additional checking of DW_LKIND |
| 612 |
values and an error report if one tries to use |
| 613 |
the original location interface with newer DWARF |
| 614 |
location data. |
| 615 |
* print_frames.c: Added short comments for clarity. |
| 616 |
2020-07-28: David Anderson |
| 617 |
* dwarf_names.c: Regenerated. |
| 618 |
* print_die.c: Added DW_OP_GNU_variable_value to the table. |
| 619 |
2020-07-19: David Anderson |
| 620 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 621 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 622 |
dwarfdump-tt-table.h: Regenerated with latest |
| 623 |
version string. |
| 624 |
2020-07-16: David Anderson |
| 625 |
* tag_attr.list: Added some normal standard TAG/ATTR |
| 626 |
combinations (some new in DWARF5) |
| 627 |
* tag_attr_ext.list: Added some normal GNU |
| 628 |
TAG/ATTR usages. |
| 629 |
* tag_tree.list: Added some normal standard TAG/TAG |
| 630 |
relationships. |
| 631 |
* tag_common.h: Increased a row maximum by one |
| 632 |
to match the increase in the lists. |
| 633 |
* dwarfdump.1: Improved the wording for -kt -kr |
| 634 |
and the modifier -C (they have longopts names too). |
| 635 |
* dwarfdump-ta-ext-table.h,dwarfdump-ta-table.h, |
| 636 |
dwarfdump-tt-table.h: Regenerated |
| 637 |
* print_hipc_lopc_attr.c: Fixed indents and |
| 638 |
trailing whitespace. |
| 639 |
2020-07-16: David Anderson |
| 640 |
* tag_attr.list,tag_attr_ext.list,tag_tree.list: |
| 641 |
corrections and some DWARF5 additions to the tables. |
| 642 |
* tag_common.h: Increased table sizes where necessary |
| 643 |
for the new *list data. |
| 644 |
* dwarfdump-ta-ext-table.h,dwarfdump-ta-table.h, |
| 645 |
dwarfdump-tt-table.h: Regenerated |
| 646 |
2020-07-16: David Anderson |
| 647 |
* globals.h,print_die.c: Revised a key function name, |
| 648 |
yesterdays name was excessively long. New name is |
| 649 |
dd_get_integer_and_name(). |
| 650 |
* print_hipc_lopc_attr.c: That name changed here too. |
| 651 |
and a blob of code was factored out into a new |
| 652 |
function update_cu_base_addresses() which just |
| 653 |
establishes names used in presenting details in |
| 654 |
case of errors (a function with no side effects but |
| 655 |
setting the glflags fields for use in error reports). |
| 656 |
2020-07-15: David Anderson |
| 657 |
* CMakeLists.txt,Makefile.am: Added print_hipc_lopc_attr.c. |
| 658 |
* Makefile.in: Regenerated. |
| 659 |
* print_die.c: Moved print_hipc_lopc_attribute() from |
| 660 |
here to print_hipc_lopc_attr.c. Moved file-static |
| 661 |
variables bSawLow bSawHigh lowAddr highAddr |
| 662 |
to print_one_die(), no need to be global. |
| 663 |
get_small_encoding_integer_and_name() renamed. |
| 664 |
* print_hipc_lopc_attr.c: New. Holds the larg-ish |
| 665 |
function print_hipc_lopc_attribute() from . |
| 666 |
* globals.h: Now |
| 667 |
_dwarf_get_small_encoding_integer_and_name() |
| 668 |
can be called from more than one file in libdwarf. |
| 669 |
Added print_hipc_lopc_attribute() declaration as it |
| 670 |
is moved to its own source file. |
| 671 |
* glflags.h: Added new member in_valid_code. |
| 672 |
* glflags.c: Added glflags.in_valid_code = FALSE, |
| 673 |
a new global-like variable to replace the old |
| 674 |
print_die.c static variable in_valid_code. Adds a |
| 675 |
bit of clarity. |
| 676 |
* dwarfdump.c(tag_specific_checks_setup): Added new |
| 677 |
DWARF5 CU DIE tags here. |
| 678 |
* print_debug_sup.c: Fixed indent and trailing |
| 679 |
whitespace. |
| 680 |
2020-07-14: David Anderson |
| 681 |
* print_die.c: Moved 4 variables, including |
| 682 |
bSawLow and bSawHigh from static to being local |
| 683 |
variables. Altered one internal interface to suit. |
| 684 |
Now easier to understand. |
| 685 |
2020-07-14: David Anderson |
| 686 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 687 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 688 |
dwarfdump-tt-table.h: Regenerated with new version |
| 689 |
string. |
| 690 |
2020-07-13: David Anderson |
| 691 |
* CMAkeLists.txt: Adding print_debug_sup.c . |
| 692 |
* Makefile.am: Adding print_debug_sup.c . |
| 693 |
* Makefile.in: Regenerated. |
| 694 |
* command_options.c: Added |
| 695 |
flag gf_debug_sup_flag |
| 696 |
amd --print-debug-sup options. |
| 697 |
* dwarf_names.c: Regenerated. Reflects the correction |
| 698 |
of |
| 699 |
DW_GNUIVIS_static value for the .debug_sup section. |
| 700 |
* dwarfdump.c: Adds check of gf_debug_sup_flag and |
| 701 |
call of print_debug_sup(). |
| 702 |
* glflags.h: Adds boolean gf_debug_sup_flag. |
| 703 |
* globals.h: Adds print_debug_sup() declaration. |
| 704 |
* print_debug_sup.c: new to print .debug_sup. |
| 705 |
2020-07-11: David Anderson |
| 706 |
* print_debug_gnu.c: After printing the section |
| 707 |
added the dwarf_gnu_index_dealloc() to immediately |
| 708 |
free the data allocated for printing the section. |
| 709 |
2020-07-08: David Anderson |
| 710 |
* dwarfdump.1: Mentioning new print options (the |
| 711 |
latest additions to dwarfdump) and suggesting that |
| 712 |
-v -G and -M are sometimes helpful. |
| 713 |
2020-07-08: David Anderson |
| 714 |
* print_debug_gnu.c,print_die.c: Fixed indents and |
| 715 |
removed trailing whitespace. |
| 716 |
2020-07-08: David Anderson |
| 717 |
* command_options.c: Misspelled argname in a comment. |
| 718 |
* print_debug_gnu.c: Added minor checking for errors, |
| 719 |
there is more to come in error checking. |
| 720 |
2020-07-06: David Anderson |
| 721 |
* dwarf_names.c, dwarf_names.h: Regenerated, |
| 722 |
Adding the non-standard dwarf prefixes |
| 723 |
DW_GNUIVIS* and DW_GNUIKIND* in support of |
| 724 |
.debug_gnu_pubtypes and .debug_gnu_pubnames. |
| 725 |
The first support for these sections. |
| 726 |
DW_DLE_GNU_PUBNAMES_ERROR DW_DLE_GNU_PUBTYPES_ERROR |
| 727 |
DW_DLE_DUPLICATE_GNU_DEBUG_PUBNAMES |
| 728 |
DW_DLE_DUPLICATE_GNU_DEBUG_PUBTYPES |
| 729 |
* Makefile.am: Adding print_debug_gnu.[ch] to |
| 730 |
the files list. |
| 731 |
* Makefile.in: Regenerated. |
| 732 |
* command_options.c: Add --print-debug-gnu option |
| 733 |
to print these sections. |
| 734 |
* dwarfdump.c: Implement printing of these sections. |
| 735 |
* glflags.h: Addd boolean gf_debug_gnu_flag for the |
| 736 |
--print-debug-gnu option. |
| 737 |
* print_debug_gnu.c: Now prints these sections. |
| 738 |
2020-07-04: David Anderson |
| 739 |
* print_die.c(dot_ok_in_identifier): Removed unused |
| 740 |
argument. |
| 741 |
Added DW_TAG_skeleton_unit to the if condition. |
| 742 |
This function affects only whether a CHECK message |
| 743 |
reports a warning, it has no effect when printing. |
| 744 |
2020-07-04: David Anderson |
| 745 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 746 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 747 |
dwarfdump-tt-table.h: Regenerated with new version |
| 748 |
string. |
| 749 |
2020-07-03: David Anderson |
| 750 |
* CMakeLists.txt, Makefile.am: Renamed print_dnames.c |
| 751 |
to |
| 752 |
print_debug_names.c |
| 753 |
* Makefile.in: Regenerated. |
| 754 |
* command_options.c: Corrected the help text for |
| 755 |
--print-fission. Added --print-debug_names, which |
| 756 |
does not yet do anything useful. |
| 757 |
2020-07-01: David Anderson |
| 758 |
* esb.h: Make debug-only locals unsigned long instead |
| 759 |
of long. * print_die.c: Where there is a N iteration |
| 760 |
loop adding |
| 761 |
to esb strings use N and an estimate of per-loop text |
| 762 |
size request a sensible space increment to ensure |
| 763 |
there is enough space that completing the set of |
| 764 |
strings will not need another malloc. Saved about 1% |
| 765 |
of cputime in full regression test. |
| 766 |
2020-06-29: David Anderson |
| 767 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 768 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 769 |
dwarfdump-tt-table.h: Regenerated with new version |
| 770 |
string. |
| 771 |
2020-06-29: David Anderson |
| 772 |
* print_die.c: Fixed a minor formatting error on |
| 773 |
DW_AT_location and related attributes. |
| 774 |
2020-06-28: David Anderson |
| 775 |
* tag_attr.list,tag_tree.list: Adding standard DWARF5 |
| 776 |
tag-tag and tag-attr relationships to the lists. |
| 777 |
* dwarfdump-ta-ext-table.h,dwarfdump-ta-table.h, |
| 778 |
dwarfdump-tt-table.h: Regenerated. |
| 779 |
2020-06-26: David Anderson |
| 780 |
* print_die.c (print_attribute): Increased the stack |
| 781 |
alloc of a string so that even fairly long |
| 782 |
loclists/rangelists won't require malloc. A tiny |
| 783 |
indent and trailing whitespace instance fixed too. |
| 784 |
* test-mach-o-32.base: Updated baseline so make check |
| 785 |
passes again. |
| 786 |
2020-06-25: David Anderson |
| 787 |
* checkutil.c: Removed trailing whitespace. * |
| 788 |
command_options.c: * dwarfdump.1: Making the -C |
| 789 |
option intent |
| 790 |
clearer. |
| 791 |
* dwarfdump.c: Fixed trailing whitespace and indents. |
| 792 |
* naming.c: Fixed trailing whitespace. * print_die.c: |
| 793 |
Removed dead code. Corrected printing |
| 794 |
if rnglists, ranges, loclists locations. Corrected |
| 795 |
handling of the output with -k detected an error. |
| 796 |
Ensured a couple esb_s variables get destructed |
| 797 |
in case of error. Added explanation how the |
| 798 |
print_attribute() code actually works. |
| 799 |
* print_frames.c: Corrected handling location |
| 800 |
operations |
| 801 |
when checking (-k options). |
| 802 |
* print_llex_codes.c,print_loclists_codes.c, |
| 803 |
print_origloclist_codes.c: Corrected handling |
| 804 |
location data when checking (-k options). |
| 805 |
* tag_attr_ext_list.c: Added DW_AT_MIPS_linkage_name |
| 806 |
as a common extension on a couple TAGs. |
| 807 |
2020-06-22: David Anderson |
| 808 |
* checkutil.c: Document a bit |
| 809 |
more about how this works. * |
| 810 |
dwarfdump-ta-ext-table.h,dwarfdump-ta-table.h, |
| 811 |
dwarfdump-tt-table.h: regenerated |
| 812 |
* dwarfdump.c: Doing a slightly better job identifying |
| 813 |
the true range of text addresses in the object file, |
| 814 |
which matters for some -k (checking) options. |
| 815 |
* globals.h: Revised some argument lists for nicer |
| 816 |
reporting of errors found with -k options. |
| 817 |
* naming.c: regenerated. * print_die.c: Certain names |
| 818 |
revised for greater |
| 819 |
clarity of intent. print_information -> |
| 820 |
print_else_name_match which at least hints at what |
| 821 |
the variable is doing. |
| 822 |
* print_frames.c: Suppresses some output when checking. |
| 823 |
* print_llex_codes.c: When checking suppress some |
| 824 |
output. |
| 825 |
* print_loclists.c: Removed pointless {}. |
| 826 |
* print_loclists_codes.c,print_original_loclist_linecodes.c: |
| 827 |
Suppresses some output when checking. |
| 828 |
* print_rnglists.c: Clarify which routines apply solely |
| 829 |
to printing raw rangelists. |
| 830 |
* tag_attr_ext.list: Added DW_AT_encoding to |
| 831 |
common extensions |
| 832 |
* tag_common.h: Incremented |
| 833 |
EXT_ATTR_TABLE_ROWS 16 |
| 834 |
so the tables can be rebuilt. |
| 835 |
2020-06-22: David Anderson |
| 836 |
* dwarfdump.c: Fixing some old formatting mistakes. |
| 837 |
NOT TO BE USED Yet. |
| 838 |
2020-06-20: David Anderson |
| 839 |
* tag_attr.c,tag_attr.list,tag_common.h: Adding in |
| 840 |
DWARF5 TAG ATTR combinations required raising hard |
| 841 |
coded value, and improving one of the error messages |
| 842 |
appearing with the wrong limit. |
| 843 |
2020-06-20: David Anderson |
| 844 |
* tag_attr.list: Added DW_AT_loclists_base, |
| 845 |
DW_AT_alignment,DW_AT_call_all_calls,DW_AT_noreturn |
| 846 |
with the TAGs they go with. |
| 847 |
2020-06-17: David Anderson |
| 848 |
* Makefile.am, CMakeLists.txt: Renamed |
| 849 |
print_loclist_original.c -> print_origloclist_codes.c |
| 850 |
so the three distinct format loclist printers all |
| 851 |
end in codes.c. |
| 852 |
* Makefile.in: Regenerated |
| 853 |
2020-06-17: David Anderson |
| 854 |
* print_loclists.c: Improve the formatting |
| 855 |
of the raw report. |
| 856 |
* print_rnglists.c: Significantly improve |
| 857 |
the formatting of the raw report. |
| 858 |
2020-06-17: David Anderson |
| 859 |
* globals.h: Some args now just values, not pointers, |
| 860 |
the Dwarf_Addr * hipc in print_llex_linecodes() |
| 861 |
was a holdover from past versions. Not needed. |
| 862 |
* print_die.c,print_llex_codes.c,print_loclist_original.c, |
| 863 |
print_loclists_codes.c: Similarly. |
| 864 |
2020-06-12: David Anderson |
| 865 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 866 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 867 |
dwarfdump-tt-table.h : updated version string. |
| 868 |
2020-06-12: David Anderson |
| 869 |
* dwarfdump.c, |
| 870 |
globals.h,print_die.c,print_llex_codes.c, |
| 871 |
print_loclist_original.c,print_loclists.c, |
| 872 |
print_loclists_codes.c,print_rnglists.c: Fix indents |
| 873 |
and remove trailing whitespace. |
| 874 |
2020-06-10: David Anderson |
| 875 |
* CMakeLists.txt: Added print_loclists.c to the C |
| 876 |
file list. |
| 877 |
* runtests.sh: Changed the generated |
| 878 |
(temporary) filenames |
| 879 |
so it is easier to understand where to copy the new |
| 880 |
baseline result to update the right baseline. |
| 881 |
* testobjLE32PE.base: New baseline, needed as loclist |
| 882 |
output changed. |
| 883 |
* print_frames.c: Calling loclist dealloc on |
| 884 |
error to avoid leaks. |
| 885 |
2020-06-10: David Anderson |
| 886 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 887 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 888 |
dwarfdump-tt-table.h : Updated version string |
| 889 |
2020-06-09: David Anderson |
| 890 |
* Makefile.am: New files due to refactoring. |
| 891 |
* Makefile.in: Regenerated. |
| 892 |
* command_options.c: Added --print-raw-loclists |
| 893 |
which prints all the details of .debug_lists but does |
| 894 |
not do any reference to .debug_info or .debug_addr |
| 895 |
(for example). |
| 896 |
* dwarfdump.c: Deals with --print-raw-loclists by |
| 897 |
calling new function print_raw_all_loclists() |
| 898 |
* esb_using_functions.c: Minor change to support |
| 899 |
revised internal function interface to |
| 900 |
dwarfdump_print_location_operations(). |
| 901 |
* glflags.h: Added global flag gf_print_raw_loclists. |
| 902 |
* globals.h: Several new interfaces added so |
| 903 |
dwarf_loc.c and dwarf_loclists.c call each other |
| 904 |
as needed. And support for the different loclists |
| 905 |
supported: DWARF 3, GNU Dwarf4 dwo extension, |
| 906 |
and DWARF5. |
| 907 |
* print_die.c: Added die_indent_level a few places |
| 908 |
for loclist printing. Significant changes to support |
| 909 |
the loclist details. Some renaming of things (data, |
| 910 |
functions) whose purpose was obfuscated by the name. |
| 911 |
Using new libdwarf interfaces that support the new |
| 912 |
data in libdwarf. Some significant refactoring so the |
| 913 |
structure of what is being done can be easily seen. |
| 914 |
No longer computes final loclist low/high addr as |
| 915 |
libdwarf does that for us now. |
| 916 |
* print_frames.c: Reflects the revised function |
| 917 |
naming. |
| 918 |
* print_frames.h: Reflects the revised function name. |
| 919 |
* print_llex_codes.c: Factored out of print_die.c |
| 920 |
and heavily revised to reflect the new location data. |
| 921 |
* print_loclist_original.c: Factored out of print_die.c |
| 922 |
and heavily revised to reflect the new location data. |
| 923 |
* print_loclists.c: All new, this does the |
| 924 |
.debug_loclists |
| 925 |
specific printing. |
| 926 |
* print_loclists_codes.c: All new. Prints DWARF5 |
| 927 |
loclists data properly. |
| 928 |
* print_locs.c: Reflects a revised function name. * |
| 929 |
print_rnglists.c: Corrected an out of date comment. |
| 930 |
* uri.c: 'unsigned int' instead of 'unsigned' for a |
| 931 |
picky compiler. |
| 932 |
2020-05-23: David Anderson |
| 933 |
* dwarf_globals.h: Define ESB_FIXED_ALLOC_SIZE 380. |
| 934 |
* print_die.c,print_lines.c,print_pubnames.c: Now using |
| 935 |
ESB_FIXED_ALLOC_SIZE in many places to (mostly) |
| 936 |
avoid any need for malloc/free by the esb functions. |
| 937 |
2020-05-21: David Anderson |
| 938 |
* dwarfdump.c: Now using DROP_ERROR_INSTANCE macro |
| 939 |
everwhere needed, avoiding the hand-coding. |
| 940 |
Using dwarf_dealloc_attribute() now. |
| 941 |
* dwarf_globals.h: Extra parens in DROP_ERROR_INSTANCE |
| 942 |
for readability, and using dwarf_dealloc_error() |
| 943 |
in it for type-checking. |
| 944 |
* print_die.c: Using dwarf_dealloc_attribute() |
| 945 |
and dwarf_dealloc_die() now. |
| 946 |
* print_frames.c: Now we call DROP_ERROR_INSTANCE |
| 947 |
with the proper arguments as the compiler can |
| 948 |
type-check that sort of thing. And fixed code to |
| 949 |
honor its invariants (a function that should not |
| 950 |
return DW_DLV_ERROR now avoids doing so). |
| 951 |
* print_lines.c: Also using DROP_ERROR_INSTANCE now. |
| 952 |
* print_macro.c: Now using DROP_ERROR_INSTANCE |
| 953 |
and dwarf_dealloc_attribute(). |
| 954 |
2020-05-19: David Anderson |
| 955 |
* print_die.c: In an error case failed to dealloc the |
| 956 |
rnglists head. |
| 957 |
2020-05-19: David Anderson |
| 958 |
* dwarf_names.c,dwarf_names.h, |
| 959 |
dwarfdump-ta-ext-table.h, |
| 960 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 961 |
dwarfdump-tt-table.h: New version string. |
| 962 |
2020-05-19: David Anderson |
| 963 |
* print_die.c: Removed arguments that were not |
| 964 |
needed from |
| 965 |
a couple of libdwarf rnglists functions and changed |
| 966 |
code here to match. |
| 967 |
* print_rnglists.c: Fix trailing whitespace. |
| 968 |
Turn on printing range lists and offset table entries |
| 969 |
(if any) with --print-raw-rnglists even if no -v. |
| 970 |
2020-05-17: David Anderson |
| 971 |
* globals.h: Remove trailing whitespace. * |
| 972 |
print_die.c: Now prints DWARF5 .debug_rnglists section. |
| 973 |
Fixes issues with handling certain attributes with |
| 974 |
new FORMs in DWARF5. |
| 975 |
* print_frames.c: Avoids terminating frame printing |
| 976 |
when |
| 977 |
errors are seen attempting to get a function name |
| 978 |
for an fde. |
| 979 |
* print_rnglists.c: New. Implements the details |
| 980 |
of reading |
| 981 |
the .debug_rnglists section. |
| 982 |
* dwarf_alloc.c: Added new type, DW_DLA_RNGLISTS_HEAD. |
| 983 |
* dwarf_die_deliv.c: Now reads all the DWARF5 CU |
| 984 |
DIE fields |
| 985 |
that are needed to evaluate FORMs and section |
| 986 |
references. |
| 987 |
2020-05-04: David Anderson |
| 988 |
* print_rnglists.c: Completing the code to print |
| 989 |
all the details of the raw content of the DWARF5 |
| 990 |
.debug_rnglists section. |
| 991 |
2020-05-02: David Anderson |
| 992 |
* CMakeLists.txt: Added print_rnglists.c. * |
| 993 |
Makefile.am: Added print_rnglists.c. * Makefile.in: |
| 994 |
Regenerated. * command_options.c: Added a new option |
| 995 |
--print-raw-rnglists. * dwarfdump.c: Implemented |
| 996 |
printing raw rangelists, but |
| 997 |
not yet completely. |
| 998 |
* gflags.c: Added a new flag gf_print_raw_rnglists. |
| 999 |
* print_rnglists.c: Prints an initial partial |
| 1000 |
report on contents of any .debug_rnglists[.dwo] |
| 1001 |
section. |
| 1002 |
* print_sections.h: Just minor reformatting of |
| 1003 |
comments. No change. |
| 1004 |
2020-04-28: David Anderson |
| 1005 |
* dwarfdump.c,print_die.c,print_frames.c: Removed |
| 1006 |
the use of tab chars in the output and use a space or |
| 1007 |
two instead. This greatly shortens the line length |
| 1008 |
needed when printing frame information details. |
| 1009 |
Looks better without the 16 or 24 leading blanks on |
| 1010 |
all those lines too. The tab characters elsewhere |
| 1011 |
were removed long ago. |
| 1012 |
2020-04-26: David Anderson |
| 1013 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 1014 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 1015 |
dwarfdump-tt-table.h: Updated version string. |
| 1016 |
2020-04-25: David Anderson |
| 1017 |
* print_die.c: Fix indents and remove trailing |
| 1018 |
whitespace. * print_frames.c: Rearranged what was |
| 1019 |
local Dwarf_Error |
| 1020 |
and what was local. Fixed a dwarf_dealloc to say |
| 1021 |
DW_DLA_ERROR, not DW_DLV_ERROR. Yikes. |
| 1022 |
* print_lines.c: Changed a local variable name, |
| 1023 |
filename->lsrc_filename so searches were more |
| 1024 |
meaningful. Added missing dwarf_dealloc to clear |
| 1025 |
dead data when appropriate. |
| 1026 |
2020-04-24 David Anderson |
| 1027 |
* dwarf_names.c, dwarf_names.h: Updated version string. |
| 1028 |
* dwarfdump-ta-ext-table.h,dwarfdump-ta-table.h, |
| 1029 |
dwarfdump-tt-ext-table.h,dwarfdump-tt-table.h: |
| 1030 |
Updated version string. |
| 1031 |
2020-04-23 David Anderson |
| 1032 |
* print_aranges.c: Remove a debugging printf. |
| 1033 |
Delete duplicate dealloc calls. |
| 1034 |
* print_lines.c: clarify what the dealloc's do |
| 1035 |
so we don't call dealloc on something already |
| 1036 |
cleared. |
| 1037 |
2020-04-23 David Anderson |
| 1038 |
* dwarfdump.c: Added in dealloc to prevent leaks. |
| 1039 |
* print_aranges.c: More thorough doing dealloc |
| 1040 |
as soon as appropriate. |
| 1041 |
* print_die.c,print_frames.c,print_lines.c: Doing |
| 1042 |
appropriate early dealloc in the necessary places. |
| 1043 |
2020-04-22 David Anderson |
| 1044 |
* command_options.c: Added to a stderr warning |
| 1045 |
(longer message). * dwarfdump.1: Removed SELECTIVE |
| 1046 |
ENTRY PRINTING |
| 1047 |
section in favor of the new URI-STYLE INPUT/OUTPUT |
| 1048 |
and the SELECTIVE* data renamed as LIMITING OUTPUT. |
| 1049 |
* dwarfdump.c: Now everywhere expects to get back |
| 1050 |
status |
| 1051 |
from printing DWARF section data, reports on it if |
| 1052 |
there as an error , and continues. |
| 1053 |
* esb_using_functions.h: Various functions now have |
| 1054 |
Dwarf_Error * arg and return a DW_DLV_* value. |
| 1055 |
* globals.h: Now all the relevant functions return |
| 1056 |
a DW_DLV_* value and require Dwarf_Error * argument. |
| 1057 |
* print_aranges.c: Some formatting fixes plus |
| 1058 |
now get_producer_name() returns a DW_DLV* value, |
| 1059 |
like more or less everything else. |
| 1060 |
* print_die.c: Major revision to now return on error |
| 1061 |
with DW_DLV_* instead of printf followed by exit(). |
| 1062 |
* print_frames.c: New local function |
| 1063 |
dealloc_loc_atlist() |
| 1064 |
to clean up on-the-spot. Reintroduced |
| 1065 |
load_CU_error_data() to amplify the information |
| 1066 |
reported on error. |
| 1067 |
* print_lines.c: Line formatting corrected. |
| 1068 |
* print_macro.c: Line formatting corrected. |
| 1069 |
* print_pubnames.c: Reflects new arglist to |
| 1070 |
get_producer_name(). |
| 1071 |
* print_ranges.c: Line |
| 1072 |
formatting corrected. |
| 1073 |
* dwarf_errmsg_list.h: Added |
| 1074 |
DW_DLE_USER_DECLARED_ERROR so |
| 1075 |
dwarfdump can declare an error on its own. |
| 1076 |
* dwarf_error.c: Added dwarf_error_creation() to |
| 1077 |
allow dwarfdump |
| 1078 |
to create an error with a detailed explanation. |
| 1079 |
* dwarf_form.c: declared a DW_FORM_rnglistx to be |
| 1080 |
used soon. |
| 1081 |
* dwarf_ranges.c: Comments about the |
| 1082 |
missing .debug_rnglists |
| 1083 |
section support (coming soon). |
| 1084 |
2020-04-22 David Anderson |
| 1085 |
* dwarfdump-ta-ext-table.h: regenerated |
| 1086 |
* tag_attr_ext.list: Added to common extensions list |
| 1087 |
DW_AT_GNU_pubnames DW_AT_GNU_pubtypes |
| 1088 |
DW_AT_GNU_dwo_name DW_AT_GNU_ranges_base |
| 1089 |
DW_AT_GNU_addr_base |
| 1090 |
2020-04-17 David Anderson |
| 1091 |
* dwarfdump.c: Clarified some error messages and |
| 1092 |
changed the should_skip_this_cu() from a predicate |
| 1093 |
function to one in the standard form returning |
| 1094 |
a DW_DLV_* value with a boolean pointer and a |
| 1095 |
Dwarf_Error* |
| 1096 |
* globals.h: Now should_skip_this_cu and |
| 1097 |
print_section_groups_data are in standard form for |
| 1098 |
calling libdwarf functions, returning a DW_DLV*. |
| 1099 |
* print_die.c, print_aranges.c, print_pubmames.c, |
| 1100 |
print_ranges.c,print_section_groups.c: Now with the |
| 1101 |
standard form returning a DW_DLV* and no longer call |
| 1102 |
print_error so returns on error, does not exit(). |
| 1103 |
Also fixed a lack of a dealloc of cu_die2 in |
| 1104 |
print_die.c. |
| 1105 |
* print_macro.c: Deleted dwarf_dealloc() that are |
| 1106 |
no longer appropriate given we don't just call |
| 1107 |
exit(). These were not allocated by the function that |
| 1108 |
was dealloc-ing so removed the deallocs here: Let |
| 1109 |
higher levels do it when we return the DW_DLV_ERROR. |
| 1110 |
2020-04-16 David Anderson |
| 1111 |
* globals.h:prototypes of print_line_numbers_this_cu |
| 1112 |
and |
| 1113 |
print_macros_5style_this_cu changed to the new style |
| 1114 |
with int return and Dwarf_Error *argument. |
| 1115 |
* dwarf_macrocheck.c: Added a comment line. * |
| 1116 |
print_die.c(print_one_die_section): Calls the |
| 1117 |
revised section prints per-CU- so errors are passed |
| 1118 |
back and dealt with. |
| 1119 |
* print_lines.c: Now functions return int instead |
| 1120 |
of print_error and exit. Various errors get more |
| 1121 |
detailed output too. |
| 1122 |
* print_macro.c: Now with the new style of returning |
| 1123 |
errors up to caller. |
| 1124 |
2020-04-14 David Anderson |
| 1125 |
* globals.h: Deleted unused function prototype. |
| 1126 |
Updated print_macinfo_by_offset() to the new style |
| 1127 |
of returning a DW_DLV*. |
| 1128 |
* print_die.c: Now a couple of places we avoid |
| 1129 |
calling print_error() as it exits and deal sensibly |
| 1130 |
with return values. |
| 1131 |
* print_macros.c: The printing of DWARF2,3,4 macro data |
| 1132 |
is now updated to avoid print_error() and to print |
| 1133 |
more details about problems. And report output now |
| 1134 |
looks more regular. |
| 1135 |
* print_abbrevs.c: Fixed indents and trailing |
| 1136 |
whitespace. |
| 1137 |
2020-04-13 David Anderson |
| 1138 |
* dwarfdump.c,globals.h, print_abbrevs.c: |
| 1139 |
print_abbrevs() |
| 1140 |
now returns an error properly with the details so |
| 1141 |
dwarfdump can deal with it properly. |
| 1142 |
2020-04-10 David Anderson |
| 1143 |
* dwarfdump.c: Printing gdb_index and debugfission |
| 1144 |
index |
| 1145 |
code now all returns DW_DLV* in the new style. |
| 1146 |
* globals.h: print_gdb_index() and |
| 1147 |
print_debugfission_index() |
| 1148 |
get updated prototypes. |
| 1149 |
* print_debugfission.c: Code to match the new protypes, |
| 1150 |
passig errors back up. Revised formatting a bit |
| 1151 |
for accuracy and completeness. |
| 1152 |
* print_die.c: Eliminated the odd use of stderr. All |
| 1153 |
now stdout. |
| 1154 |
* print_gdbindex.c: Improved various error messages. |
| 1155 |
Updated print_gdb_index() to the new return-on-error |
| 1156 |
approach. |
| 1157 |
2020-04-07 David Anderson |
| 1158 |
* compiler_info.c: Clarified a comment and |
| 1159 |
split a too-long line. |
| 1160 |
* dwarfdump.c: Now handles a print_pubnames that |
| 1161 |
returns a DW_DLV* and deals with it. Made |
| 1162 |
a dwarf_dealloc conditional on a non-null |
| 1163 |
cu_die_for_print_frames. get_producer_name() |
| 1164 |
now always returns and avoids leaks. We add |
| 1165 |
DEBUG_PUBNAMES to the list wh print CU data on error |
| 1166 |
(It knows the CU-DIE) |
| 1167 |
* gflags.c: Reformatted to avoid a too-long line. |
| 1168 |
* globals.h: Revised prototype for print_pubnames(). |
| 1169 |
* print_aranges.c: Removed too early destructor |
| 1170 |
on producer_name. |
| 1171 |
* print_die.c: Fixed a too-long-comment-line. * |
| 1172 |
print_frames.c: Moved a check for DW_DLV_ERROR up |
| 1173 |
a few lines so we don't check gf_check_frames() |
| 1174 |
when not needed. |
| 1175 |
* print_pubnames.c: Removed deal_with_name_offset_err() |
| 1176 |
as not the right thing to do. Now print_pubnames |
| 1177 |
accepts a Dwarf_Error * argument and always returns |
| 1178 |
a DW_DLV* result. |
| 1179 |
2020-04-03 David Anderson |
| 1180 |
* print_aranges.c: Fixed trailing whitespace and |
| 1181 |
indents. |
| 1182 |
2020-04-03 David Anderson |
| 1183 |
* dwarfdump.c: Now print_strings() and |
| 1184 |
print_macro_statistics() |
| 1185 |
take Dwarf_Error * as argument and return a DW_DLV* |
| 1186 |
value. |
| 1187 |
* globals.h: prototype of print_strings altered. * |
| 1188 |
macrocheck.c(print_macro_statistics): Using esb_s to |
| 1189 |
more detailed messages and returning a DW_DLV* |
| 1190 |
value.. |
| 1191 |
* macrocheck.h: Updated prototype for |
| 1192 |
print_macro_statistics(). * print_frames.c: Deleted |
| 1193 |
many #if 0/#endif and their |
| 1194 |
debug printf-s. |
| 1195 |
* print_strings.c: Now uses get_true_section_name() so |
| 1196 |
we report on any compression used. |
| 1197 |
2020-04-03 David Anderson |
| 1198 |
* runtests.sh: Added esb to the build of selfmc as |
| 1199 |
macro check |
| 1200 |
now uses esb.c. Made the dwarfdump tests mention |
| 1201 |
of update 'mv' commands be conditional on having |
| 1202 |
actually found a difference (having them show when |
| 1203 |
no difference was pointlessly confusing). |
| 1204 |
2020-04-03 David Anderson |
| 1205 |
* dwarfdump.c: print_aranges() now uses the new form |
| 1206 |
and returns |
| 1207 |
a DW_DLV_* value. |
| 1208 |
* globals.h: print_aranges returns a value and has |
| 1209 |
a Dwarf_Error* |
| 1210 |
second argument now. |
| 1211 |
* print_aranges.c: No longer calls print_error() |
| 1212 |
but instead |
| 1213 |
returns a DW_DLV to dwarfdump.c. |
| 1214 |
2020-04-03 David Anderson |
| 1215 |
* |
| 1216 |
dwarfdump.c,glflags.h,globals.h,print_die.c,print_frames.c, |
| 1217 |
print_locs.c,print_reloc.c,print_reloc_decls.h,print_static_funcs.c: |
| 1218 |
Fix indent errors and remove trailing whitespace. |
| 1219 |
2020-04-02 David Anderson |
| 1220 |
* addrmap.c: Ensure it wn't try to use a null input to |
| 1221 |
addr_map_destroy(). * dwarfdump.1: Add documentation |
| 1222 |
on running dwarfdump on split-dwarf |
| 1223 |
objects (See DWARF5 standard, section 6.3). |
| 1224 |
* dwarfdump.c (process_one_file):Applyingthe new |
| 1225 |
error-return scheme |
| 1226 |
to dwarf_frames.c required serious revisions and |
| 1227 |
refactoring. |
| 1228 |
* dwconf_using_functions.h: The declaration of |
| 1229 |
print_frames() |
| 1230 |
changed. |
| 1231 |
* glflags.h: gf_debug_addr_missing_search_by_address, |
| 1232 |
gf_error_code_in_name_search_by_address, and |
| 1233 |
gf_all_cus_seen_search_by_address are here now |
| 1234 |
instead of being hard to reason about global/local |
| 1235 |
data. |
| 1236 |
* glflags.c: Initializes the three fields. |
| 1237 |
* globals.h: Revised declaration of print_frames() and |
| 1238 |
get_proc_name. Removed the declaration of |
| 1239 |
current_cu_die_for_print_frames. |
| 1240 |
* print_die.c(print_attribute): Properly use the |
| 1241 |
return value |
| 1242 |
of dwarfdump function get_proc_name_by_die(). |
| 1243 |
Also renamed a small number of local variables |
| 1244 |
in print_exprloc_content() to make the code more |
| 1245 |
readable( tempud -> exprlength, tempud->fileindex); |
| 1246 |
* print frames.c: Major revisions to clarify |
| 1247 |
data lifetimes and to return DW_DLV_ERROR |
| 1248 |
to let higher levels clean up for themselves. |
| 1249 |
Stop returning true/false and return DW_DLV_OK or |
| 1250 |
DW_DLV_NO_ENTRY with respect to finding procedure |
| 1251 |
names from code addresses`. |
| 1252 |
* print_locs.c: Added an accidentally-omitted |
| 1253 |
esb_constructor for secname.` |
| 1254 |
* print_ranges.c: Move acquiring section name down |
| 1255 |
after the first call of dwarf_get_ranges() so we get |
| 1256 |
the true name with any compression involed reported. |
| 1257 |
* print_sections.c: Removed Dwarf_Die |
| 1258 |
current_cu_die_for_print_frames, |
| 1259 |
it is no longer needed. |
| 1260 |
* print_reloc.c: Was failing to free locally allocated |
| 1261 |
space in some places in print_relocinfo_32(). |
| 1262 |
2020-03-30 David Anderson |
| 1263 |
* dwarfdump.c,dwconf_using_functions.h, |
| 1264 |
globals.h,print_die.c,print_frames.c,print_frames.h, |
| 1265 |
print_locs.c: Applyingthe new error-return scheme |
| 1266 |
to print_locs.c involves a number of changes beyond |
| 1267 |
print_locs.c itself. |
| 1268 |
2020-03-29 David Anderson |
| 1269 |
* dwarfdump.c: Change several section reports to the |
| 1270 |
new approach of errors propagating back to dwarfdump |
| 1271 |
process_one_file(). |
| 1272 |
* globals.h: print_debug_names(), print_object_header() |
| 1273 |
print_relocinfo(),print_tag_attributes_usage() |
| 1274 |
print_attributes_encoding() all now return status |
| 1275 |
DW_DLV_OK etc as appropriate. |
| 1276 |
* print_die.c(print_attributes_encoding, |
| 1277 |
print_tag_attributes_usage): Implement passing status |
| 1278 |
back to process_one_file(). |
| 1279 |
* print_dnames.c,print_reloc.c,print_reloc_decls.h: |
| 1280 |
Implement passing status back to process_one_file(). |
| 1281 |
2020-03-28 David Anderson |
| 1282 |
* dwarfdump.c: print debuglink and print str_offsets |
| 1283 |
now getting dwarf status and Dwarf_Error back. |
| 1284 |
* dwarf_globals.h: Revised prototype for |
| 1285 |
print_str_offsets_section(). |
| 1286 |
* print_str_offsets.c: Now returns libdwarf status |
| 1287 |
and lets dwarfdump print the error if there is one. |
| 1288 |
2020-03-28 David Anderson |
| 1289 |
* dwarfdump.c(process_one_file): Beginning a |
| 1290 |
project to pass libdwarf status all the way back to |
| 1291 |
dwarfdump.c. Enables more flexibility in printing |
| 1292 |
and better ability to dealloc memory. |
| 1293 |
* globals.h: print_static_funcs(), print_static_vars(), |
| 1294 |
print_types(), and print_weaknames() now return int |
| 1295 |
and pass in a Dwarf_Error. |
| 1296 |
* print_static_funcs.c,print_static_vars.c, |
| 1297 |
print_types.c, print_weaknames.c: Implement |
| 1298 |
passing back (to dwarfdump.c) of libdwarf status |
| 1299 |
and Dwarf_Error by returning as required when |
| 1300 |
DW_DLV_ERROR encountered. |
| 1301 |
2020-03-27 David Anderson |
| 1302 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 1303 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 1304 |
dwarfdump-tt-table.h: regenerated with latest version |
| 1305 |
date string. |
| 1306 |
2020-03-27 David Anderson |
| 1307 |
* print_die.c: Cleaned trailing whitespace and an |
| 1308 |
indent error. |
| 1309 |
2020-03-27 David Anderson |
| 1310 |
* print_die.c: Now does a better job of cleaning |
| 1311 |
up libdwarf data it requested when there is a serious |
| 1312 |
DWARF error. |
| 1313 |
2020-03-26 David Anderson |
| 1314 |
* print_ranges.c: For a particular serious |
| 1315 |
error/corruption |
| 1316 |
print a detailed error message, dwarf_dealloc() the |
| 1317 |
Dwarf_Error instance and skip to the next section |
| 1318 |
to continue. |
| 1319 |
2020-03-26 David Anderson |
| 1320 |
* dwarfdump.c: Now calls the new free_all_dwconf() |
| 1321 |
to avoid leaking memory. should_skip_this_cu() |
| 1322 |
ensures it does not leak. |
| 1323 |
* dwconf.c: Use struct esb to build a string, avoid |
| 1324 |
leaving a static string pointer around. |
| 1325 |
Add free_all_dwconf() so the dwconf malloc space |
| 1326 |
can be cleaned up at end of run. |
| 1327 |
* dwconf.h: Declare free_all_dwconf(). * |
| 1328 |
print_frames.c(get_proc_name): Add loopok variable so |
| 1329 |
the loop |
| 1330 |
on cu contexts can stop early when a serious error |
| 1331 |
is encountered. The procedure name is not very |
| 1332 |
critical, just nice to have. Ensured no leaks in |
| 1333 |
dwarfdump here. |
| 1334 |
* print_lines.c: When an error but we wish to continue |
| 1335 |
ensure the Dwarf_Error is dealloc-d. |
| 1336 |
* print_pubnames.c: Ensure no leaks on error from |
| 1337 |
libdwarf. |
| 1338 |
2020-03-25 David Anderson |
| 1339 |
* print_die.c,print_lines.c,print_pubnames.c: |
| 1340 |
Fix indents and remove trailing whitespace. |
| 1341 |
* print_frames.c : Fix whitespace and ensure |
| 1342 |
a return of DW_DLV_ERROR (which will basically be |
| 1343 |
ignored anyway) gets a dwarf_dealloc applied to the |
| 1344 |
Dwarf_Error argument. |
| 1345 |
2020-03-24 David Anderson |
| 1346 |
* print_lines.c: Added a dwarf_dealloc DW DLA STRING |
| 1347 |
that had been overlooked. |
| 1348 |
2020-03-24 David Anderson |
| 1349 |
* print_die.c: Ensuring that when an error is |
| 1350 |
created it gets dealloc-d. |
| 1351 |
* print_gdbindex.c(print_gdb_index): It was failing |
| 1352 |
to dealloc |
| 1353 |
the data it requested from libdwarf. |
| 1354 |
2020-03-23 David Anderson |
| 1355 |
* print_die.c: More cases trying to continue after |
| 1356 |
error. |
| 1357 |
And ensuring no dwarf leakages. |
| 1358 |
* print_frames.c: More accurate error report (one |
| 1359 |
place). * print_pubnames.c: Fixing leaks and making |
| 1360 |
some error |
| 1361 |
message more precise (showing values). |
| 1362 |
2020-03-21 David Anderson |
| 1363 |
* dwarfdump.c:Add flag_data_post_cleanup() in a few |
| 1364 |
more places early termination situations. |
| 1365 |
* print_abbrevs.c: Move some variables to the most |
| 1366 |
local scope. Revise the while loop so we can ensure |
| 1367 |
local alloc cleaned up in case of error. Remove |
| 1368 |
pointless duplicate tests for zero abbrev_code. |
| 1369 |
* print_die_stack: Refactor, adding dealloc_die_stack() |
| 1370 |
and calling it where needed to free up local malloc |
| 1371 |
data. |
| 1372 |
* print_frames.c: Add more dwarf_fde_cie_list_dealloc() |
| 1373 |
where appropriate. |
| 1374 |
2020-03-20 David Anderson |
| 1375 |
* print_aranges.c: In case of error was not cleaning |
| 1376 |
up allocations immediately in all cases. |
| 1377 |
2020-03-20 David Anderson |
| 1378 |
* print_frames.c,print_dgbindex.c,print_macros.c, |
| 1379 |
print_pubnames.c,print_ranges.c,print_reloc.c, |
| 1380 |
sanitized.c,tag_attr.c,testesb.c, uri.c: Remove use |
| 1381 |
of esb_append_printf() and use esb_append_printf_i |
| 1382 |
etc instead. Then null device will never be set up. |
| 1383 |
2020-03-19 David Anderson |
| 1384 |
* globals.h: Using parens in the DROP_ERROR_INSTANCE |
| 1385 |
macro to avoid accidental side effects. |
| 1386 |
* print_die.c: Now uses more localized pointers |
| 1387 |
where possible to make understanding the code |
| 1388 |
simpler. Much more careful to dwarf_dealloc |
| 1389 |
things in the face of errors in the DWARF and early |
| 1390 |
termination of dwarfdump. |
| 1391 |
* print_lines.c: Much more careful to dwarf_dealloc |
| 1392 |
things in case of error. |
| 1393 |
2020-03-17: David Anderson |
| 1394 |
* dwarfdump.c: Report the number of major errors |
| 1395 |
more accurately. |
| 1396 |
* print_die.c: Report the number of major errors |
| 1397 |
more accurately. |
| 1398 |
* print_pubnames.c: Revise certain if/then/else |
| 1399 |
to make the flow clearer. |
| 1400 |
2020-03-16: David Anderson |
| 1401 |
* print_ranges.c: Added a dealloc of |
| 1402 |
rangeset,DW_DLA_RANGES. |
| 1403 |
2020-03-15: David Anderson |
| 1404 |
* glflags.c: Now defaults to not printing the global |
| 1405 |
alloc sums. Use --print-alloc-sums option to |
| 1406 |
dwarfdump to print them (ensure GLOBAL_ALLOC_SUMS |
| 1407 |
defined in libdwarf/dwarf_alloc.c). |
| 1408 |
2020-03-15: David Anderson |
| 1409 |
* print_pubnames.c: Reformat a too-long line. |
| 1410 |
2020-03-14: David Anderson |
| 1411 |
* dwarfdump.c: Changed an argument name in the |
| 1412 |
print_error* |
| 1413 |
group of functions to reflect the real meaning, |
| 1414 |
dwarf_code -> dwarf_ret_val. |
| 1415 |
* print_aranges.c (print_aranges): Only call |
| 1416 |
dwarf_dealloc() in |
| 1417 |
case pa_error is non-null. |
| 1418 |
* print_die: Initialize no_of_elements at long last. |
| 1419 |
* print_pubnames.c: A code line was ... long. 2 |
| 1420 |
lines now. |
| 1421 |
2020-03-12: David Anderson |
| 1422 |
* print_abbrevs.c: Add zero of dealloc'd pointer. |
| 1423 |
2020-03-12: David Anderson |
| 1424 |
* dwarfdump.c: Simplified check_for_major_errors(). |
| 1425 |
Deleted some #if 0 code. |
| 1426 |
* print_die.c: Fiexed indent and trailing whitespace. |
| 1427 |
* print_macro.c: Deleted a bogus |
| 1428 |
dwarf_dealloc_macro_context() call. |
| 1429 |
2020-03-12: David Anderson |
| 1430 |
* print_die.c: Small changes to cleanup DIE allocations |
| 1431 |
so not relying on de_alloc_tree. |
| 1432 |
2020-03-12: David Anderson |
| 1433 |
* print_aranges.c: Fixed trailing whitespace and |
| 1434 |
indents. |
| 1435 |
2020-03-12: David Anderson |
| 1436 |
* esb.c, dwarfdump.c: Fixed trailing whitespace and |
| 1437 |
indents. |
| 1438 |
2020-03-12: David Anderson |
| 1439 |
* print_str_offsets.c: Clean up by doing |
| 1440 |
proper dealloc calls instead of relying on |
| 1441 |
de_alloc_tree to clean up. |
| 1442 |
2020-03-12: David Anderson |
| 1443 |
* print_pubnames.c: Clean up by doing |
| 1444 |
proper dealloc calls instead of relying on |
| 1445 |
de_alloc_tree to clean up. |
| 1446 |
2020-03-12: David Anderson |
| 1447 |
* print_macro.c: Clean up by doing |
| 1448 |
proper dealloc calls instead of relying on |
| 1449 |
de_alloc_tree to clean up. |
| 1450 |
2020-03-12: David Anderson |
| 1451 |
* print_lines.c: Eliminate leaks that relied |
| 1452 |
on de_alloc_tree to clean up. |
| 1453 |
2020-03-12: David Anderson |
| 1454 |
* makename.c: Correct some comments. |
| 1455 |
2020-03-12: David Anderson |
| 1456 |
* print_aranges.c: Eliminate leaks that relied |
| 1457 |
on de_alloc_tree to clean up. |
| 1458 |
2020-03-12: David Anderson |
| 1459 |
* print_abbrevs.c: Eliminate leaks that relied |
| 1460 |
on de_alloc_tree to clean up. |
| 1461 |
2020-03-12: David Anderson |
| 1462 |
* command_options.h, command_options.c: Adds |
| 1463 |
uri_data_constructor() and uri_data_destructor() to |
| 1464 |
avoid an old memory leak (called from dwarfdump.c). |
| 1465 |
2020-03-12: David Anderson |
| 1466 |
* dwarfdump.c: Cleans up old and small memory |
| 1467 |
leaks and simplifies the code as well. |
| 1468 |
2020-03-09: David Anderson |
| 1469 |
* command_options.c: Implements two options primarily |
| 1470 |
for |
| 1471 |
dwarfdump developers: --suppress-de-alloc-tree and |
| 1472 |
--print-alloc-sums. |
| 1473 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 1474 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 1475 |
dwarfdump-tt-table.h: regenerated with latest version |
| 1476 |
date string. |
| 1477 |
* dwarfdump.c: Implements the two new options. * |
| 1478 |
glflags.c,glflags.h: declares and instantiates |
| 1479 |
a new global flag gf_print_alloc_sums for the new |
| 1480 |
option --print-alloc-sums. |
| 1481 |
* print_die.c: Arranged correct dwarf_dealloc of |
| 1482 |
DW_DLA_ERROR errors when calling |
| 1483 |
dwarf_formudata/sdata and discarding errors. |
| 1484 |
2020-02-25: David Anderson |
| 1485 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 1486 |
dwarfdump-ta-table.h dwarfdump-tt-ext-table.h |
| 1487 |
dwarfdump-tt-table.h: updated date string. |
| 1488 |
2020-02-25: David Anderson |
| 1489 |
* esb.c: Slight corrections so a %-12s will ignore |
| 1490 |
the -12 |
| 1491 |
if the string to be inserted is more than 11 bytes |
| 1492 |
long. Allowed use of UNUSEDARG. |
| 1493 |
* runtests.sh: Restore the running of the testesb.c |
| 1494 |
test program. |
| 1495 |
* testesb.c: Added a new test case specifically for |
| 1496 |
testing the change in esb.c. Eliminated the unneeded |
| 1497 |
tests on allocation-size, that was not helpful, |
| 1498 |
yet was tedious to make meaningful. |
| 1499 |
2020-02-20: David Anderson |
| 1500 |
* print_die.c: Removed the last snprintf the required |
| 1501 |
fixed spaces and now use esb functions to do the |
| 1502 |
message creation. |
| 1503 |
2020-02-19: David Anderson |
| 1504 |
* |
| 1505 |
checkutil.c,common.c,naming.c,print_abbrevs.c,print_die.c, |
| 1506 |
print_lines.c: Removed the ORIGINAL_SPRINTF versions |
| 1507 |
in favor of esb_append_printf_[usi] versions. |
| 1508 |
We have not been using the s[n]printf versions for |
| 1509 |
a while now. |
| 1510 |
2020-02-16: David Anderson |
| 1511 |
* globals.h: Adds DWVERSION5 to use with testing for |
| 1512 |
version number details (which matters when calling |
| 1513 |
dwarf_srcfiles()) |
| 1514 |
* print_die.c: Now recognizes that DWARF5 is different |
| 1515 |
from earlier versions in the way dwarf_srcfiles() |
| 1516 |
array of string pointers is to be used. Refactored |
| 1517 |
the srcfiles checking to its own function to simplify |
| 1518 |
reading the code. |
| 1519 |
2020-02-13: David Anderson |
| 1520 |
* dwarf_names.c dwarf_names.c,dwarfdump-ta-ext-table.h, |
| 1521 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h, |
| 1522 |
dwarfdump-tt-table.h: regenerated with new date |
| 1523 |
string. |
| 1524 |
2020-01-27: David Anderson |
| 1525 |
* print_die.c: Now attributes the correct actual form |
| 1526 |
in more places (meaning in error messages, here and |
| 1527 |
in the previous commit).. |
| 1528 |
2020-01-25: David Anderson |
| 1529 |
* print_die.c: Now attributes the correct actual form |
| 1530 |
name (as opposed to a vaguely generic FORM name) |
| 1531 |
2020-01-16: David Anderson |
| 1532 |
* print_die.c: Now ensures local Dwarf_Sig8 |
| 1533 |
variables are always initialized with zero bytes. |
| 1534 |
This does not fix bugs, but it makes the code easier |
| 1535 |
for the reader to reason about. |
| 1536 |
* testobjLE32PE.test.c: Removed trailing whitespace |
| 1537 |
and fixed indentation errors. |
| 1538 |
2020-01-14: |
| 1539 |
* dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h, |
| 1540 |
dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,dwarfdump-tt-table.h: |
| 1541 |
Updated version string. |
| 1542 |
2020-01-05: |
| 1543 |
* dwconf.c: Fix CoveritySan CID 206594 resource leak |
| 1544 |
if an error reading dwarfdump.conf. |
| 1545 |
* sanitized.c(no_questionable_chars): Fixed |
| 1546 |
CoverityScan |
| 1547 |
CID 206595. The code was failing to sanitize % |
| 1548 |
characters: the test for % has been moved up a |
| 1549 |
few lines. do_sanity_insert() had the same problem |
| 1550 |
with %. Fixed. And do_sanity_insert() had a final |
| 1551 |
line of unreachable code; now fixed by simplifying |
| 1552 |
the code (an ASSERT added in a comment). Coverity |
| 1553 |
Scan CID 206596. |
| 1554 |
* print_die.c(traverse_one_die): Was failing to check |
| 1555 |
for the normal dwarf return int and letting next |
| 1556 |
code deal with the fallout (and leak an error |
| 1557 |
record). Now we check and avoid any leak or surprise. |
| 1558 |
Coverity Scan CID 20659 |
| 1559 |
|
| 1560 |
|