Debian Codegraph @

src/bin/dwarfdump/ChangeLog2019

raw
1 2019-11-07 David Anderson
2 * Makefile.am: Now set env vars so make check can
3 get the compiler options.
4 * Makefile.in: Regenerated.
5 * makename.c,makename_test.c: Refine the ifdef around the pragma
6 so it only appears with windows and when
7 the compile is not using gcc or clang to compile.
8 * runtests.sh: New the new env var to get the configure time
9 compiler options into the tests compilations.
10 2019-11-05 David Anderson
11 * README.testcases: Documentation of the three binary
12 testcases in the dwarfdump source directory.
13 * testobjLE32PE.test.c: Original source for the
14 testobjLE32PE.exe testcase. Not compiled here, just
15 present as documentation.
16 * Makefile.am: Name README.testcases and testobjLE32PE.test.c
17 so the get into releases.
18 * Makefile.in: Regenerated.
19 2019-11-05 David Anderson
20 * dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h,
21 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
22 dwarfdump-tt-table.h : new version string.
23 2019-11-04 David Anderson
24 * Makefile.am: Fixed a trailing blank after a backslash.
25 2019-10-28 David Anderson
26 * esb.c: Fixed a VSNPRINTF ifdef so it no longer
27 uses ifdef to separate parts of a va-arg.
28 Fixes a compiler warning.
29 * runtests.sh: Instead of assuming esb.o present
30 put $srcdir/esb.c in the test script.
31 2019-10-24 David Anderson
32 * esb.h: Removed the bogus and unnecessary test
33 of _MIPS_SZLONG. Just go with long long.
34 2019-10-22 David Anderson
35 * common.c: Now -V prints both the date/time string
36 and the PACKAGE_VERSION string from the top level
37 configure.ac/CMakeLists.txt.
38 * dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h,
39 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
40 dwarfdump-tt-table.h: Regenerated.
41 * tag_attr.c: The #include ordering was a bit wrong
42 as it checkded HAVE_UNISTD_H before config.h was
43 included (from globals.h). Fixed.
44 * getopttest.c: Added #include of config.h so
45 the #ifdef around standard headers compiles.
46 * print_reloc_decls.h,print_reloc_test.c,testesb.c: With
47 full warnings this needed ifdefs to the simple
48 testcode will build. And removal of unused
49 variables.
50 2019-10-21 David Anderson
51 * dwarfdump.c,dwgetopt.c,esb.c,esb.h,getopttest.c,
52 globals.h,makename.c,makename_test.c: Be much more
53 thorough in using config.h to check for headers before
54 including them.
55 2019-10-18 David Anderson
56 * runtests.sh: Improving some message test so context makes sense.
57 2019-10-17 David Anderson
58 * Makefile.am: A couple test files got left out of
59 the list of critical files, so doing dist
60 and then testing the result would fail 'make check'
61 * Makefile.in: Regenerated.
62 * runtests.sh: Small tweaks so 'make check'
63 from outside the source tree works now.
64 2019-10-16 David Anderson
65 * CMakeLists.txt: Now sets -I so the ctest results pass.
66 * dwarfdump.c: Altered a spelling to make a distinction
67 between various places that say 'could not open the file'.
68 * globals.h: Now #include use "" not <> on dwarf.h and libdwarf.h
69 so they match everything else in dwarfdump and libdwarf.
70 2019-10-14 David Anderson
71 * dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h,
72 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
73 dwarfdump-tt-table.h : new version string.
74 2019-10-14 David Anderson
75 * command_options.c: Revised the settings of
76 glflags.gf_gnu_debuglink_flag.
77 * dwarfdump.c: Now we only print debuglink etc
78 on request via --print-gnu-debuglink.
79 Now call the latest, best version of
80 dwarf_gnu_debuglink() handling both .gnu_debuglink
81 and .note.gnu.build-id sections.
82 2019-10-02 David Anderson
83 * runtests.sh: Added mach-o sanity test case.
84 * test-mach-o-32.base,testobjLE32PE.base,testuriLE64ELf.base:
85 each is limited to 500 lines to keep the space in use
86 with non-source a bit constrained.
87 2019-10-02 David Anderson
88 * addrmap.c: The include of addrmap.h was in the wrong
89 line. Noved down 4 lines.
90 * globals.h: Refined the setup as the requirement for
91 _GNU_SOURCE to be set does not apply when
92 we have no libelf at all.
93 * helpertree.c: Removed pointless include of esb.h.
94 * helpertree_test.c: Added include of <stdint.h>
95 so we are guaranteed uintptr_t for TSEARCHASH.
96 * macrocheck.c: Removed a pointless include of esb.h.
97 * runtests.sh: Removed useless tests of the native
98 getopt as we never use it.
99 Ensure we get cc or gcc if at least one
100 of them exists.
101 Use rm -f and name with and without trailing .exe
102 for portability to Windows/Mingw.
103 Now verifies that dwarfdump on a PE file and
104 an Elf file worked correctly as a
105 sanity check.
106 2019-10-02 David Anderson
107 * testobjPE.base -> testobjLE32PE.base
108 * testobjPE.exe -> testobjLE32PE.exe
109 * testuriBE64ELf.base -> testuriLE64ELf.base
110 * testuriBE64ELf.obj -> testuriLE64ELf.obj
111 * Makefile.am: Reflects the revised names.
112
113 2019-10-02 David Anderson
114 * Makefile.am: New test data for make check (runtests.sh)
115 * dwarf_names.c,dwarf_names.h: new date string.
116 * dwarfdump-ta-ext-table.h,dwarfdump/dwarfdump-ta-table.h,
117 dwarfdump-tt-ext-table.h,dwarfdump-tt-table.h:
118 new date string.
119 2019-10-02 David Anderson
120 * runtests.sh: Now runs dwarfdump on an elf and a PE
121 object to show things basically work.
122 * testobjPE.base,testobjPE.exe: New
123 * testuriBE64ELf.base,testuriBE64ELf.obj : New
124 2019-09-19 David Anderson
125 * dwarfdump.c: Fix indents and remove trailing whitespace.
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: version string update, regenerated
129 these.
130 * print_frames.c: Small clarifications of the logic.
131 2019-09-10 David Anderson
132 * dwarfdump.c: Now --print-gnu-debuglink prints
133 the .note.gnu.build-id and .gnu_debuglink sections
134 (does both if both exist).
135 2019-09-08 David Anderson
136 * command_options.c: Added --print-gnu-debuglink and set
137 gf_gnu_debuglink_flag as appropriate.
138 * dwarfdump.1: Document --print-gnu-debuglink.
139 * dwarfdump.c: Implement debuglink printing.
140 * glflags.h: Added boolean gf_gnu_debuglink_flag.
141 * globals.h: Added prototype of print_secname()
142 and now it is shared across dwarfdump.
143 * print_abbrevs.c,print_locs.c,print_strings.c: Deleted local
144 print_secname(), call
145 the shared one instead.
146 * print_die.c: Make this print_secname() the
147 single shared version.
148 2019-09-03 David Anderson
149 * esb.h, esb.c: Reformat copyright for shorter lines.
150 No change in the text.
151 * print_abbrevs.c: Fix indents and remove trailing
152 whitespace.
153 2019-09-02 David Anderson
154 * print_abbrevs.c: Improved .debug_abbrev error checking.
155 Now uses dwarf_get_abbrev_entry_b() which ensures
156 most (possibly all) corruptions can be detected.
157 * print_die.c: Reformatted a long comment.
158 2019-08-29 David Anderson
159 * print_die.c: Minor corrections including printing
160 DW_AT_GNU_odr_signature more sensibly.
161 Corrected checks for signature consistency in
162 CU vs the .debug_[tc]u_ index section.
163 Some reformatting for consistency.
164 * print_lines.c: Remove a blank line.
165 * print_ranges.c: Remove some debugging-only code.
166 2019-06-04 David Anderson
167 * print_die.c: Removed inttypes.h include as nothing in it
168 is referenced.
169 2019-05-29 David Anderson
170 * makename-test.c: change DW_TSHASHTYPE char *
171 to DW_TSHASHTYPE uintptr_t to match the rest
172 DW_TSHASHTYPE.
173 2019-05-29 David Anderson
174 * dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h,
175 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
176 dwarfdump-tt-table.h: Regenerated with latest version.
177 2019-05-26 David Anderson
178 * addrmap.c, makename.c: Include stdint.h for tsearch.
179 * checkutil.c: Delete include inttypes.h. Fix
180 trailing whitespace, reformat comments for
181 line length.
182 * dwarf_tsearch.h: Make include idempotent with
183 #ifndef DWARF_TSEARCH_H.
184 DW_TSHASHTYPE is now uintptr_t.
185 Turn double-blank-lines to a single blank line.
186 Use DW_TSHASHTYPE.
187 * dwarf_tsearchbal.c: Delete include inttypes.h. Fix
188 trailing whitespace. Define DW_PR_DUx and use
189 DW_PR_DUx so printf formats properly.
190 Remove const from keyptr: it's really wrong as
191 the user may actually free what it points to.
192 Use DW_TSHASHTYPE. Correctly arrange const
193 in casts.
194 * helpertree.c,macrocheck.c,print_die.c: Include
195 stdint.h for tsearch.
196 2019-05-24 David Anderson
197 * checkutil.c: Change %lx to instead use "%" DW_PR_DUx
198 so it adapts without compiler warnings.
199 2019-05-24 David Anderson
200 * Makefile.am: Delete mention of config.h.in.cmake.
201 * Makefile.in: Regenerate.
202 2019-05-20 David Anderson
203 * dwarf_tsearchbal.c: Add windows-only #define intended
204 to suppress warnings from particular compilers.
205 2019-05-20 David Anderson
206 * CMakeLists.txt: No longer generates a local-build-dir
207 config.h
208 * config.h.in.cmake: Deleted.
209 2019-05-20 David Anderson
210 * CMakeLists.txt: Added addrmap.h to the HEADERS list.
211 Reflects new names for the options and adds the
212 compiler warning options.
213 * config.h.in.cmake: Adding in the necessary HAVE_*
214 option defaults.
215 * dwarfdump.c: Adds part of the HAVE_CUSTOM_LIBELF
216 and DW_FTYPE_CUSTOM_ELF
217 support (for the one environment wanting that).
218 Drops the accidental print of date/time with -O <file>
219 option to dwarfdump.
220 * esb.c: Adding a Windows-specific define for Windows
221 builds.
222 * globals.h: Adding a comment.
223 * tag_attr.list, tag_attr_ext.list,tag_tree.list,
224 tag_tree_ext.list: Adding blank lines judiciously
225 makes the table easier for humans to read.
226 2019-05-14 David Anderson
227 * command_options.c: Removed unneeded trailing ','
228 in initializer as it caused a warning in compile.
229 2019-05-14 David Anderson
230 * print_reloc_test.c: Without libelf (in which case
231 dwarfdump is not interested in printing relocations)
232 we now compile a main program returning 0 (success).
233 With libelf we examine the relocation name tables
234 as usual to exit with success or failure.
235 2019-05-07 David Anderson
236 * CMakeLists.txt: Now the code from configure.cmake
237 is here. Previously there were two includes of
238 configure.cmake, which was a mistake.
239 * Makefile.am: Added the *_test.c so tar distributions
240 can run 'make check'.
241 * scripts/buildandreleasetest.sh: Now adds in cmake
242 build of dwarfgen and dwarfexample and test
243 so those are tested.
244 * configure.cmake: Deleted. It's all in
245 CMakeLists.txt now.
246 2019-05-05 David Anderson
247 * dwarf_names.c,dwarf_names.h, dwarfdump-ta-ext-table.h,
248 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
249 dwarfdump-tt-table.h: Regenerated with latest
250 libdwarf version string.
251 2019-05-02 David Anderson
252 * dwarfdump-ta-ext-table.h: Regenerated.
253 * tag_common.h: 16-> 15. Deleted a duplicate extension
254 TAG->Attr combo recently added so need to regenerate.
255 2019-05-02 David Anderson
256 * helpertree.c: Deleted trailing blank line.
257 * tag_attr_ext.list: Added gcc common extension
258 of DW_TAG_structure_type having a DW_AT_containing type.
259 * tag_common.h: Incremented EXT_ATTR_TABLE_ROWS to 16
260 for the change in tag_attr_ext.list.
261 * dwarfdump-ta-ext-table.h: Regenerated.
262 * dwarf_leb.c: Removed trailing whitespace on one line.
263 * dwarf_object_detector.c,dwarf_pe_descriptor.h,
264 dwarf_pe_read.c: Using the updated names
265 of some Windows types, adding _dw at the end to avoid
266 conflicts with Windows.
267 * dwarf_tied.c: Removed blank last line of the file.
268 * dwarf_tied_decls.h: Removed several blank lines
269 at the end of the file.
270 * dwarf_tied_test.c: Removed trailing whitespace.
271 2019-05-01 David Anderson
272 * dwarfdump.1: A stray letter 'i' was
273 in the --format-extensions wording.
274 2019-05-01 David Anderson
275 * configure.cmake: deleted.
276 * globals.h: Corrected typo in comment.
277 * CMakeLists.txt: Now does its configure_file on its own.
278 2019-05-01 David Anderson
279 * configure.cmake: Removed some lines, placing them in
280 base directory configure.cmake.
281 2019-04-30 David Anderson
282 * CMakeLists.txt: Added the new files. Revised the
283 testing area the tests can be run and pass.
284 2019-04-30 David Anderson
285 * helpertree_test.c,makename_test.c,print_reloc_decls.h,
286 print_reloc_test.c,section_bitmaps_test.c: New
287 source which separates the internal-api test code
288 from the code dwarfdump actually uses.
289 Removing most need of -DSELFTEST.
290 * helpertree.c,makename.c,print_reloc.c,section_bitmaps.c,
291 section_bitmaps.h: Now with just the code needed for
292 dwarfdump itself.
293 * runtests.sh: Reflects the refactoring of the internal
294 api test code.
295 2019-04-29 David Anderson
296 * dwarf_names.c,dwarf_names.h: Regenerated.
297 Version date update.
298 * dwarfdump_ta_ext_table.h,dwarfdump-ta-table.h,
299 dwarfdump-tt-ext-table.h,dwarfdump-tt-table.h: Regenerated.
300 * tag_attr_ext.list. Added DW_TAG_class_type
301 with common GNU extension DW_AT_containing_type
302 * tag_common.h: Increased EXT_ATTR_TABLE_ROWS to 15.
303 2019-04-28 David Anderson
304 * config.h.in.cmake, configure.cmake: Deleted all reference to
305 INT32 and INT64 as no longer needed.
306 2019-04-26 David Anderson
307 * config.h.in.cmake,configure.cmake: Now deals
308 with DWARF_WITH_LIBELF and more for cmake.
309 2019-04-25 David Anderson
310 * print_die.c: Removed trailing whitespace.
311 2019-04-25 David Anderson
312 * common.c,dwconf.c: Tiny changes to
313 avoid compiler warnings.
314 * print_die.c: Refactored to avoid annoying
315 compiler warning about a fall-through.
316 2019-04-24 David Anderson
317 * command_options.c: Remove trailing space, fold a long line
318 * dwarfdump.c: If init failed the message listed
319 the wrong function name.
320 2019-04-22 David Anderson
321 * dwarfdump.c: Prevent the -a option from requesting
322 Elf section data printing (no section
323 data was printed anyway as the request was
324 incomplete).
325 2019-04-22 David Anderson
326 * dwarfdump.c: Add test for _MSC_VER for Windows MSVC.
327 * print_die.c: Using uintptr_t to suppress a warning.
328 2019-04-22 David Anderson
329 * checkutil.c: Now uses uintptr_t so we can avoid
330 compile-time warnings about converting pointer to
331 integer.
332 * command_options.h: Ifdef a couple of static
333 function prototypes so, when regex missing,
334 we do not get warnings of undefined static functions.
335 * dwarf_tsearchbal.c: Add ifdef-d stdint.h and
336 inttypes.h so we can avoid some conversion warnings
337 from printf calls.
338 * dwarf_alloc.c: Add ifdef-d stdint.h and
339 inttypes.h so we can avoid some conversion warnings
340 from printf calls.
341 2019-04-19 David Anderson
342 * Apology. This enhances pubnames-like printing
343 and uses non-libelf elf access as much as possible
344 (even if libelf present). With --disable-libelf
345 it allows all but printing Elf section headers
346 and relocation records. It's excessively large
347 for one commit(mainly in libdwarf). Sorry.
348 * command_options.c: Conditionalize the help message
349 so the Elf section printing is not shown if
350 --disable-libelf chosen at configure time.
351 * dwarfdump.1: Mention that --disable-libelf removes
352 certain elf section header printing options.
353 * dwarfdump.c: Implements the elf reading changes.
354 * print_strings.c: Fixed a printf to use sanitized()
355 so we don't print non-ascii (we use uri form instead).
356 2019-03-08 David Anderson
357 * print_pubnames.c: Remove trailing whitespace.
358 2019-03-07 David Anderson
359 * print_pubnames.c(print_all_pubnames_style_records): A
360 struct esb_s was constructed and filled but then never
361 destructed, leading to a memory leak. Eliminated it
362 entirely.
363 2019-03-04 David Anderson
364 * dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h,
365 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
366 dwarfdump-tt-table.h,dwarf_names_enum.h,
367 dwarf_names_new.h: Regenerated with latest date string
368 and version.
369 * dwarfdump.c: Corrected indent mistakes.
370 * glflags.h: Removed blank line.
371 * globals.h: Added print_all_pubnames_style_records() declaration
372 so all the pubnames-like sections are printed by just one
373 function.
374 * print_die.c: Fixed indents. Removed trailing whitespace.
375 * print_pubnames.c: Now has the print code for all the
376 pubnames-like sections. The pubnames-like section
377 names only print if there is some data. We now
378 also (for those sections) print the section CU-headers
379 if dwarfdump -v. Some error messages modified slightly
380 to show the correct section name (as opposed to leaving it
381 off). Now can do the coded checks instead of ignoring them.
382 * print_sections.c: Moved deal_with_name_offset_err() over
383 to print_pubnames.c, where it is now a static function.
384 * print_sections.h: Removed declarations of deal_with_name_offset_err()
385 and print_pubname_style_entry() as those are now static functions
386 in print_pubnames.c.
387 * print_static_funcs.c, print_static_vars.c: Now only print
388 section name if there
389 is content. Corrected a long-incorrect section name of this
390 SGI-extension section you most likely have never seen.
391 Deleted the old printing code, do it via call into
392 print_pubnames.c.
393 * print_types.c,print_weaknames.c: Now only prints
394 section name if there is content.
395 Deleted the old printing code, do it via call into
396 print_pubnames.c.
397
398 2019-02-24 David Anderson
399 * dwarf_names.c,dwarf_names.h,dwarfdump-ta-ext-table.h,
400 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
401 dwarfdump-tt-table.h,dwarf_names_enum.h,
402 dwarf_names_new.h: Regenerated with latest date string
403 and version.
404 2019-02-19 David Anderson
405 * configure.cmake: Now defines DWARF_WITH_LIBELF
406 so builds work as always.
407 * dwarfdump.c,globals.h,print_reloc.c: Now uses
408 DWARF_WITH_LIBELF to determine how to build
409 with or without libelf.
410 2019-02-12 David Anderson
411 * print_die.c: Delete _dwarf_memcpy_swap_bytes() as it
412 is no longer needed. Use the new
413 dwarf_uncompress_integer_block_a() interface as it
414 is easier to use.
415 2019-02-07 David Anderson
416 * dwarf_names.c,dwarf_names.h,dwarfdump-ta-table.h,
417 dwarfdump-tt-ext-table.h, dwarfdump-tt-table.h:
418 Just a changed version string.
419 2019-02-07 David Anderson
420 * dwarfdump.c: Use ifdef HAVE_ELF_H so non-elf
421 builds work.
422 * print_reloc.c: ifdef HAVE_ELF_H, eliminating
423 the entire file of elf-header printing if elf.h
424 missing.
425 2019-01-31 David Anderson
426 * dwarfdump.c,dwconf.c,esb.c,print_abbrevs.c,
427 print_aranges.c,print_die.c,print_macro.c,
428 print_reloc.c,print_str_offsets.c: Fix warnings
429 emitted by llvm's scan-build tool.
430 2019-01-20 David Anderson
431 * globals.h: Remove the code for *UINT* and
432 all the ifdefs involved. No longer needed.
433 * print_die.c(get_FLAG_BLOCK_string): Remove
434 the__int32_t from this function (associated with
435 DW_AT_SUN_func_offsets). Simplify the printing
436 of these offsets.
437 2019-01-14 David Anderson
438 * dwarf_names.c, dwarf_names.h,dwarfdump-ta-ext-table.h,
439 dwarfdump-ta-table.h,dwarfdump-tt-ext-table.h,
440 dwarfdump-tt-table.h: Regenerated.
441 * print_lines.c: If missing a line number do not
442 supply a meaningless -1, supply 0.
443 If line table access gets an error, print the error
444 and attempt to continue.
445 * dwarfdump.c: We try to continue after major errors
446 in more places. If any major errors were seen
447 a final line of text is reported to standard-out.
448 2019-01-02 David Anderson
449 * ChangeLog: renamed ChangeLog 2018.
450 * Makefile.am: Added ChangeLog2018 to distribution files.