Debian Codegraph @

NEWS

raw
1 2021-07-15:
2 libdwarf, dwarfdump, etc all now use a semantic version
3 number rather than a date string. As of today the
4 current version is "0.1.1".
5 2021-02-15:
6 dwarfdump given -ku now prints brief lists counting
7 the uses of every TAG, ATtribute, and FORM,
8 a concise summary of the basic building blocks of DWARF.
9 2021-01-23:
10 dwarfdump now reports and checks-for-sensible-values
11 the expression block offsets that DW_OP_bra and
12 DW_OP_skip use. If an expression does not use either of
13 those operators dwarfdump does not report the individual DW_OP
14 expression offsets.
15 2020-12-23:
16 dwarfdump --print-macinfo now follows DW_MACRO_imports
17 and does several additional checks on .debug_macro section
18 data. --check-macros skips printing most entries but does
19 all that and reports even more about that section. Since
20 .debug_macro does not reproduce all macro operations in
21 the original source the MACRONOTEs printed are indications
22 of things to consider, not errors.
23
24 2020-11-21:
25 dwarfdump now prints DWARF expression operators each on
26 its own line. This makes viewing DWARF expressions much
27 nicer given the increased use of much longer expressions.
28 Those expression operators that reference DIES are now
29 followed, verified, and the target DW_TAG and DW_AT_name
30 are printed. A new dwarfdump.conf command 'option:' lets
31 one specify option: --format-expr-ops-joined in case you
32 want the old style DWARF expression operators-on-one-line.
33 Where the DWARF DIE children nest > nine-deep dwarfdump
34 switches from indentation by spaces to a nest-level number.
35
36 2020-09-08:
37 libdwarf/dwarfdump work well with DWARF4 and DWARF5,
38 including DWP files.
39
40 2020-07-08:
41 libdwarf now reads .debug_gnu_pubtypes & pubnames
42 (non-standard but gcc creates them in DWARF5) via a small
43 number of new functions and dwarfdump --print-debug-gnu
44 prints both sections. Verifying the .debug_info offsets
45 is not yet done.
46
47 2020-06-29:
48 Dwarfdump now dumps DWARF5 .debug_rnglists and
49 .debug_loclists. To handle DWARF5 there are a small
50 number of new functions. All existing functions are
51 still supported, but to read DWARF5 some small changes
52 are required. In libdwarf see libdwarf2.1.pdf and also
53 see libdwarf/ChangeLog for details.
54
55 2020-05-23:
56 dwarfdump now takes much less malloc() to work, as
57 measured by valgrind --tool=massif and massif-visualizer.
58 A dwarfdump run that did 2.2Gib of malloc/free before the
59 changes now does 1.4GiB.
60
61 2020-05-19:
62 libdwarf and dwarfdump now support DWARF5 .debug_rnglists.
63 The new interfaces are documented in libdwarf/libdwarf2.1.pdf.
64 The new option to dwarfdump is "--print-raw-rnglists".
65 2019-11-04:
66 The code (dwarfdump/libdwarf), regressiontests,
67 and readelfobj directories and all their tests
68 are known to work on Linux(Ubuntu on x86_64 and i686),
69 FreeBSD, MacOS Catalina (with Apple Command Line Tools),
70 and IBM s390 (Big Endian!) running Ubuntu Linux.
71 On Windows-MinGW the full regression tests
72 have not been tested, but 'make check' works
73 for dwarfdump/libdwarf (the current dwarfdump
74 make check actually does run dwarfdump and
75 checks that dwarfdump basically works).
76 2019-04-16:
77 Now a --disable-libelf configure/build of libdwarf/dwarfdump
78 can read elf, mach-o DSYM, and PE executable/dll object files.
79 Such a build will not need or use libelf or elf.h .
80 The dwarfdump options that display Elf section headers
81 or relocation record data are not available in a
82 --disable-libelf build.
83 Nor is dwarfdump's support of reading archive files
84 available in a --disable-libelf build.
85 This libdwarf detects corrupt Elf object files much sooner
86 than before, but does not explain what the corruption
87 really is. Use GNU readelf (or readelfobj, a project
88 on sourceforge) to get more detail about the problems found.
89 See https://www.prevanders.net/dwarf.html for the git clone
90 command for readelfobj.
91 With --disable-libelf the --enable-dwarfgen option
92 does not work: the dwarfgen build will fail.
93 2019-02-18:
94 For building on machines without a usable elf.h or libelf
95 but possibly with a libelf.h visible, --disable-libelf
96 ensures the build won't use libelf or elf.h anywhere.
97 -lz will be done if zlib.h is visible, independent of
98 libelf, libelf.h, and elf.h
99 2019-02-08:
100 If one has a standard Bourne shell (sh) available
101 (such as sh on MacOS and sh in MinGW on Windows)
102 one may be able to build libdwarf and dwarfdump natively
103 and they can read Mach-o dSYM and PE object files
104 to access DWARF information.
105 This has NOT been tested under MacOS, so will likely
106 fail on MacOS.
107 No elf.h, libelf.h or zlib.h should be present.
108 For example, the following
109 is known to work under MinGW and this general plan
110 applies to all builds including all builds with elf.h
111 and libelf:
112 mkdir test
113 cd test
114 #(copy the source tree into test, if from git
115 #the name of the top level will likely be 'code')
116 cd code
117 sh -x scripts/FIX-CONFIGURE-TIMES
118 cd ..
119 mkdir bld
120 cd bld
121 ../code/configure (choose your preferred options here)
122 make
123
124 2019-01-15:
125 The pre-build dwarf_names.[hc] and the tag related
126 files are now part of the standard build so there is
127 no longer any two-stage aspect of the build.
128 The build simply compiles files in the distribution.
129 If you use git to access the source be sure to
130 sh scripts/FIX-CONFIGURE-TIMES
131 to adjust the file timestamps as having timestamps
132 in the right relationships is vital and git
133 does not maintain timestamps.
134 The script is always safe to run. It takes about 30 seconds.
135 2018-12-22:
136 The complicated process of building certain .c and .h
137 files has been relegated to the few people updating
138 files libdwarf/libdwarf.h.in, libdwarf/dwarf_errmsg_list.h,
139 dwarfdump/tag_attr_ext.list,dwarfdump/tag_attr.list,
140 dwarfdump/tag_tree_ext.list, and dwarfdump/tag_tree.list.
141 For everyone else the build is simply compiling
142 the .c and .h files in the distribution. Simpler.
143 sh scripts/buildstandardsource.sh
144 creates these files.
145 2018-10-22:
146 dwarfdump can now dump mach-o (MacOS) dSYM dwarf.
147 All the usual libdwarf interfaces work.
148 A new libdwarf initialization call dwarf_init_path()
149 may be convenient for you to use.
150 2018-08-05:
151 dwarfdump.conf is now installed by make install
152 in <install prefix>/shared/libdwarf/dwarfdump .
153 Any dwarfdump.conf or .dwarfdump.conf in your
154 $HOME directory will be found before the
155 one in shared. The file is only opened when
156 one wants a more accurate register naming in frame
157 reports (the default is just to name things r54
158 etc, choosing the right abi with -x abi=<something>
159 can be helpful at times).
160 2018-06-24:
161 The configure has been completely rewritten to follow
162 current standards and practices. For simple builds
163 the standard
164 ./configure
165 make
166 works as always, but the generated libdwarf.a appears
167 in libdwarf/.libs/libdwarf.a , as does the shared object
168 if "./configure --enable-shared" is used.
169
170 To build dwarfgen one adds the configure option --enable-dwarfgen
171 instead of using 'make all'.
172 To build the example code one adds the configure option
173 --enable-dwarfexample instead of using 'make all'.
174
175 "mkdir /tmp/bld ; cd /tmp/bld ; <sourcebase>/configure"
176 continues to work, as does configure --host=<name> .
177 2018-06-14:
178 A small simplification of build options simplifies building
179 across different environments. If your environment needs
180 to use the non-standard elf_open() call instead of unix/linux open()
181 then do <path>/configure --enable-elf-open which sets
182 HAVE_ELF_OPEN in config.h.
183 2018-03-27:
184 All the DWARF5 FORMs appear to be dealt with.
185 It's now possible to cross-compile libdwarf and dwarfdump.
186 See the README.
187 2016-11-30:
188 An alternative build mechanism using cmake is now in the source tree.
189 The builds for product testing continue to be done using configure && make.
190 2016-09-20:
191 --enable-sanitize option added to configure. This builds
192 with -fsanitize=address to check for out of bounds
193 memory access.
194 2016-09-05:
195 dwarfexample/simpleexample.c now has a simple option letting one
196 extract all .debug_info, .debug_types strings into a file by
197 themselves in case one wanted to examine string frequencies,
198 for example.
199 2016-06-01: Now we use DW_VERSION_DATE_STR for
200 dates everywhere instead of __DATE__ __TIME__
201 so a repeated build gets identical object output.
202 DW_VERSION_DATE_STR is updated by UPDATEDWARFDUMPVERSION.sh
203 wherever that string is needed.
204
205 2015-11-26: If DWARF section data you intend to read
206 with libdwarf is compressed by zlib (a section name
207 like .zdebug_info indicates such compression) libdwarf etc
208 will need zlib's headers and archive or shared-library
209 at build and link time. If you do not have zlib
210 everything will compile fine and will work
211 on ordinary DWARF sections but libdwarf will not be
212 able to read .zdebug_ compressed sections.
213 zlib.h is the main zlib header and libz.a is the
214 most likely zlib library you will encounter.
215
216 2015-11-15: It is now possible to build
217 outside of the source tree. See README.
218 So configure.in changed a little.
219 2015-01-13: Removed dwarfdump2 and references to it.
220 dwarfdump has the (tsearch) features needed so the C++
221 version no longer a benefit.