| 1 |
March 5, 2021 |
| 2 |
"dwarfdump found no file !" is a message one might see in |
| 3 |
dwarfdump before March 2021. It means dwarfdump cannot |
| 4 |
find a dwarfdump.conf . For several months dwarfdump |
| 5 |
has required a dwarfdump.conf be present in one of the |
| 6 |
defined standard places. $HOME/dwarfdump.conf and |
| 7 |
$HOME/.dwarfdump.conf are good choices. dwarfdump.conf |
| 8 |
is in every release. In years past dwarfdump.conf was |
| 9 |
only required if printing frames, but now dwarfdump |
| 10 |
needs to know appropriate register names in a variety |
| 11 |
of situations, hence a dwarfdump.conf is needed. |
| 12 |
As of the March 6 2021 release the basic error for this case is |
| 13 |
"dwarfdump found no dwarfdump.conf file in any of the |
| 14 |
standard places!" |
| 15 |
February 15, 2021 |
| 16 |
dwarfdump given -ku now prints brief lists counting |
| 17 |
the uses of each TAG, each ATtribute, and each FORM |
| 18 |
at the end.. |
| 19 |
These new lists report on all standard and extension |
| 20 |
attributes and forms used in the object file. |
| 21 |
November 16, 2020 |
| 22 |
dwarfdump now prints DWARF expression ops |
| 23 |
on indivdidual lines which makes it much easier to read the |
| 24 |
contents of a DWARF expression. |
| 25 |
dwarfdump.conf now implements support of |
| 26 |
'option: --format-expr-ops-joined' which gets you |
| 27 |
the older format without specifying --format-expr-ops-joined |
| 28 |
on the command line. |
| 29 |
May 23, 2020 |
| 30 |
dwarfdump now takes much less malloc() to work, as measured |
| 31 |
by valgrind --tool=massif and massif-visualizer. |
| 32 |
A dwarfdump run that did 2.2Gib of malloc/free before the changes |
| 33 |
now does 1.4GiB. If you add --suppress-de-alloc-tree |
| 34 |
to the dwarfdump options dwarfdump uses 1.1GB on the |
| 35 |
test run. |
| 36 |
December 24, 2018 |
| 37 |
Any - or -- option on the dwarfdump command line turns off the |
| 38 |
default set of things to print. So, for example, instead |
| 39 |
of 'dwarfdump -v a.out' or 'dwarfdump -x abi=mips a.out' |
| 40 |
(which do nothing) |
| 41 |
do 'dwarfdump -v -a a.out' or 'dwarfdump -f -x abi=mips a.out'. |
| 42 |
Or maybe 'dwarfdump a.out' suffices for you. |
| 43 |
Or use other print or check options depending |
| 44 |
on your needs. |
| 45 |
June 14, 2018 |
| 46 |
A small simplification of build options simplifies building |
| 47 |
across different environments. If your environment needs |
| 48 |
to use the non-standard elf_open() call instead of plain open() |
| 49 |
then at configure time do --enable-elf-open. |
| 50 |
May 17, 2017 |
| 51 |
Now dwarfdump understands both split-dwarf and COMDAT sections |
| 52 |
(it calls the section-groups 'Groups') |
| 53 |
so it is possible to properly print all such. A traditional |
| 54 |
DWARF2,3,4,5 consumer can ignore section groups. |
| 55 |
To print in more complicate situations the -x groupnumber=3 |
| 56 |
(3 as an example) lets you choose a specific group/comdat to print. |
| 57 |
Dwarfdump prints out a section-groupnumber table when appropriate |
| 58 |
a making it easy to know what groups are present. |
| 59 |
March 24, 2017 |
| 60 |
dwarfdump: Now argv[0] is checked before setting the program_name |
| 61 |
global variable. If it contains '/dwarfdump.O' that part of |
| 62 |
the string is shortened to '/dwarfdump'. |
| 63 |
Doing this removes a need for the regressiontests to use sed |
| 64 |
and shortens the regressiontests runtime on one machine from |
| 65 |
77 minutes to 23 minutes. |
| 66 |
September 20, 2016 |
| 67 |
dwarfdump now frees all memory it used when it terminates normally. |
| 68 |
No malloc space left behind. |
| 69 |
It gets a clean report from |
| 70 |
valgrind --leak-check=full --show-leak-kinds=all |
| 71 |
May 5, 2016 |
| 72 |
By default dwarfdump sanitizes strings, so if a corrupted |
| 73 |
DWARF file has non-printable bytes in a string they are |
| 74 |
each turned into %xx (% followed by |
| 75 |
two hex digits for a single string character). |
| 76 |
This is safe for terminals to print and shows the actual value. |
| 77 |
The '-x nosanitizestrings' option turns off this feature so bytes |
| 78 |
are shown as printf and your system show them. |
| 79 |
The same format as uri style, but only using % on characters |
| 80 |
that may have bad effects if printed to a terminal (not, |
| 81 |
for example, space or tab characters). |
| 82 |
Nor are normal '%' in a string altered (in uri such would be |
| 83 |
turned to %25 or to %%). |
| 84 |
February 25, 2015 |
| 85 |
Copied dwgetopt.c dwgetopt.h from libdwarf so dwarfdump can |
| 86 |
use dwgetopt() and still build without necessarily |
| 87 |
having the libdwarfsource easily available. |
| 88 |
Some environments do not have a getopt() so copying |
| 89 |
dwgetopt.h,.h here ensures we have this functionality |
| 90 |
for everyone. |
| 91 |
January 08, 2015 |
| 92 |
dwarfdump does new checking. See options -kD -kG -ku -kuf. |
| 93 |
In addition, dwarfdump output can be written to a file without |
| 94 |
using redirection by using the new -O file=<path> |
| 95 |
option. |
| 96 |
January 29, 2014 |
| 97 |
Now using dwarf_tsearch() so tsearch is available on every platform. |
| 98 |
November 17, 2012 |
| 99 |
Added new checking options. |
| 100 |
To get good relocation-handling dwarfdump now expects to read |
| 101 |
headers from libdwarf with the relocation numbers. That means |
| 102 |
building dwarfdump separate from the libdwarf source is no |
| 103 |
longer as useful as it was. It is best to build libdwarf |
| 104 |
and dwarfdump together for decent handling of relocatable |
| 105 |
objects. |
| 106 |
December 13, 2011 |
| 107 |
Now prints missing line table column number as 0 (now |
| 108 |
matching the DWARF spec), the previous |
| 109 |
practice of printing -1 was always wrong. |
| 110 |
And prints the DWARF3/4 new line table fields (when present). |
| 111 |
October 29, 2011 |
| 112 |
Added support for printing .debug_types (type unit) data. |
| 113 |
October 26, 2011 |
| 114 |
Added new features to Makefile.in and documented in README |
| 115 |
how to build dwarfdump with headers or libraries in |
| 116 |
non-standard places. |
| 117 |
October 23, 2011 |
| 118 |
By default the various places with string option values |
| 119 |
and file paths all use URI transformation on input and |
| 120 |
if the transformation does anything at all dwarfdump reports |
| 121 |
the input and transformed strings. This makes it easy |
| 122 |
to deal with strings and expressions and file paths |
| 123 |
that are difficult to express in a shell (or that getopt |
| 124 |
mangles). Options -q and -U give you control over this process. |
| 125 |
October 07, 2011 |
| 126 |
The -x abi=mips frame register abi in dwarfdump.conf is now |
| 127 |
usable with modern MIPS objects as well as old IRIX objects. |
| 128 |
There are other mips-* frame register setups described |
| 129 |
in dwarfdump.conf for anyone testing that nothing new has |
| 130 |
been added that conflicts with old IRIX/MIPS frame generation. |
| 131 |
June 04, 2011 |
| 132 |
Error checking is now distinct from section printing, making |
| 133 |
error checking (the -k options) much easier to work with on |
| 134 |
large objects. |
| 135 |
So compiler-created errors can be found, the error reporting |
| 136 |
now prints context information. |
| 137 |
March 29, 2011 |
| 138 |
Added many new correctness tests. Changed the format of |
| 139 |
various items (line data prints in a more compact form, numbers |
| 140 |
are more uniformly hexadecimal fixed length where that makes sense). |
| 141 |
All the source files are uniformly indented to a multiple of 4 |
| 142 |
characters and all intent-tabs in the source have been removed. |
| 143 |
Major logic changes involved changing error-reporting to be |
| 144 |
more detailed and adding new tests for incorrect DWARF. |
| 145 |
Now reports error summary by the compiler name, not just overall. |
| 146 |
January 26, 2010 |
| 147 |
Changed the default frame-data register names from MIPS to |
| 148 |
a generic set of registers. |
| 149 |
Try '-x abi=mips' to get the traditional old MIPS register |
| 150 |
naming. |
| 151 |
June 22, 2009 |
| 152 |
Added the -S option to dwarfdump. |
| 153 |
June 10, 2009 |
| 154 |
Moved the gennames.c code to libdwarf. |
| 155 |
May 4, 2009 |
| 156 |
Replaced awk source-generation of certain functions |
| 157 |
with new gennames.c code. |
| 158 |
Now we can print an object with an address_size that |
| 159 |
varies by compilation unit. |
| 160 |
April 4, 2009 |
| 161 |
Corrected aspects of the frame-printing by ensuring we pass |
| 162 |
all the information libdwarf needs for fully consistent behavior. |
| 163 |
Three newly defined libdwarf calls calls made to ensure |
| 164 |
that better behavior (specifically having dwarfdump consistently |
| 165 |
recognize when registers are the cfa, undefined-value or same-value |
| 166 |
pseudo registers). Updated dwarfdump.conf to set these same |
| 167 |
things consistently. |
| 168 |
Mar 22, 2009 |
| 169 |
The -f and -F flags no longer also imply -i (it just |
| 170 |
did not make sense to tie them (cannot recall why |
| 171 |
it might have been tied before). |
| 172 |
Mar 20, 2009 |
| 173 |
Moved print_* functions from print_sections.c to individual |
| 174 |
source files. Hopefully making the code a bit easier |
| 175 |
to read. |
| 176 |
Feb 16, 2009 |
| 177 |
Added the -C option. It is a sort of 'pedantic' option |
| 178 |
as it turns on warnings about certain commonly used |
| 179 |
non-standard tag->tag and tag->attr relationships. |
| 180 |
Added the tag_attr_ext.list tag_tree_ext.list files which |
| 181 |
define the 'common use' extensions. |
| 182 |
Feb 14, 2009 |
| 183 |
Added configure option --enable-nonstandardprintf |
| 184 |
which makes it easy to get printf of Dwarf_Unsigned (etc) |
| 185 |
types correct even for non-standard compilers. |
| 186 |
December 30, 2008 |
| 187 |
Now we print the .debug_ranges section (with -N) |
| 188 |
and the data for DW_AT_ranges (with -i). |
| 189 |
December 8, 2008 |
| 190 |
The -M option now causes printing of FORM details. |
| 191 |
And -v adds details about abbreviation 'indexes' into |
| 192 |
an abbreviation table (.debug_abbrev) |
| 193 |
providing more detail for folks debugging or |
| 194 |
improving their understanding of DWARF data. |
| 195 |
April 9, 2008 |
| 196 |
Added -H <num> to limit the number of compilation-units/FDEs |
| 197 |
dwarfdump prints in one run. Added -n to eliminate function-name |
| 198 |
printing in .debug_frame output (with a large-enough debug_info |
| 199 |
section function-name printing is too slow). The function name |
| 200 |
printing will be fixed in another release. |
| 201 |
December 8, 2007 |
| 202 |
Had to add an ugly configure conditional as libelf has |
| 203 |
unconditional use of off64_t in recent libelf.h |
| 204 |
July 3, 2007 |
| 205 |
Now with -v dwarf expression blocks in frame operations |
| 206 |
are printed expanded out. |
| 207 |
July 2, 2007 |
| 208 |
Added a new abi -x abi=general usable for any cpu with |
| 209 |
up to 1000 registers. |
| 210 |
May 7, 2007 |
| 211 |
Sun Microsystems contributes new dwarf.h extensions and a new -G option |
| 212 |
to dwarfdump -i (so one can see the 'global' offset to DIEs). |
| 213 |
Thanks to Chris Quenelle of Sun. |
| 214 |
April 17, 2006 |
| 215 |
New -x name=<conf file> -x abi=<abiname> and configuration file |
| 216 |
enable sensible printing of a wide range of .debug_frame eh_frame |
| 217 |
correctly without recompiling dwarfdump or touching libdwarf.h or |
| 218 |
dwarf.h. |
| 219 |
March 29, 2005 |
| 220 |
Now handles DWARF3. For non-MIPS objects, the list of register |
| 221 |
names in print_sections.c is not appropriate, #define |
| 222 |
DWARFDUMP_TURN_OFF_MIPS_REG_NAMES to turn off the MIPS names. |
| 223 |
December 1, 2005 |
| 224 |
Added new DWARF3 TAGs and ATtributes to the -k lists, |
| 225 |
clarified the -k reporting, and made the build more robust |
| 226 |
in the face of errors in the *.list relationship-spec-files. |
| 227 |
|
| 228 |
August 1, 2005 |
| 229 |
Now print_die.c deals with long loclists without a coredump. |
| 230 |
Added esb.h esb.c (and testesb.c for testing) to encapsulate |
| 231 |
getting space for possibly-long strings. |
| 232 |
Now print_die.c uses snprintf() not sprintf (hopefully this |
| 233 |
will not inconvenience anyone, snprintf() has been available |
| 234 |
on most systems for years now). |
| 235 |
Altered print of location lists a little bit - for better appearance. |
| 236 |
|
| 237 |
July 15, 2005 |
| 238 |
Now completely frees all allocated memory. Various |
| 239 |
routines were not calling dealloc() code and |
| 240 |
new libdwarf dealloc routines are now used where those |
| 241 |
are needed. |
| 242 |
|
| 243 |
Now prints DWARF3 .debug_pubtypes section (with -a or -y). |
| 244 |
The .debug_pubtypes section and SGI-specific .debug_typenames |
| 245 |
are equivalent so they are treated alike. |
| 246 |
|
| 247 |
Mar 21, 2005 |
| 248 |
The -f flag now prints only .debug_frame data. The .eh_frame section |
| 249 |
(GNU exceptions data) now prints with -F (not -a). |
| 250 |
Printing gcc 3.3 or 3.4 .eh_frame with zR augmentation |
| 251 |
does not work at this time, so do not use -F |
| 252 |
to print such an object. |
| 253 |
The line section print now prints a CU-DIE offset for each such DIEs |
| 254 |
line information. This makes it much easier to correctly associate |
| 255 |
-l (or -v -l) output with -v -v -l when debugging a faulty |
| 256 |
linetable in an executable. |
| 257 |
With -v -v -l (two -v) the output of line info continues to be a |
| 258 |
completely different format than zero or one -v, the two-v |
| 259 |
form showing the detailed line table opcodes. |
| 260 |
With g++ 3.3.3 one sees bad line addresses at times as the |
| 261 |
DW_LNE_set_address address for header files do not always |
| 262 |
get their relocations applied. I am told this is fixed in 3.4.x. |
| 263 |
|
| 264 |
|
| 265 |
Mar 18, 2005 |
| 266 |
In correcting printing of macro information the format |
| 267 |
of the macro (-m) output has changed substantially. |
| 268 |
Much more complete now. Still could use enhancement. |
| 269 |
|
| 270 |
Oct 28, 2004 |
| 271 |
Updated contact address in copyright: SGI moved 1/4 mile |
| 272 |
to a new address: 1500 Crittenden Lane. |
| 273 |
|
| 274 |
Oct 02, 2003 |
| 275 |
Now fully supports .debug_loc section. |
| 276 |
|
| 277 |
June 14, 2001 |
| 278 |
Now calling a new function dwarf_get_arange_cu_header_offset() |
| 279 |
in libdwarf and printing the returned cu header offset for |
| 280 |
aranges entries. Making it easier to track down internal |
| 281 |
errors in the dwarf2 data. Also added small other |
| 282 |
consistency checks, printing a message and exit()ing on |
| 283 |
error. |
| 284 |
|
| 285 |
April 14, 2000 |
| 286 |
The libdwarf copyright has changed to |
| 287 |
version 2.1 of the GNU Lesser General Public License. |
| 288 |
Anyone holding a version of libdwarf that was published |
| 289 |
before this new copyright |
| 290 |
is allowed to use |
| 291 |
the copyright published in that earlier libdwarf source |
| 292 |
on the earlier source |
| 293 |
or to use |
| 294 |
this new copyright on the earlier source, |
| 295 |
at their option. |
| 296 |
|
| 297 |
July 21, 1999 |
| 298 |
Added gnu extensions to the frame information printer |
| 299 |
and handling for egcs eh_frame printing. |
| 300 |
libdwarf changes mean this now can print little-endian |
| 301 |
object dwarf on a big-endian system and vice-versa. |
| 302 |
|
| 303 |
December, 1998 |
| 304 |
added dwarfdump to the dwarf public source distribution. |
| 305 |
|
| 306 |
June, 1994 |
| 307 |
libdwarf consumer interface changed completely so updated to match. |
| 308 |
|
| 309 |
May, 1993 |
| 310 |
Initial version of dwarfdump for dwarf version 2 |
| 311 |
written at sgi. |