1e6c7e151Schristos@c This file contains the entry for the -w/--debug-dump (readelf) and 2e6c7e151Schristos@c -W/--dwarf (objdump) option that is common to both readelf and objdump. 3e6c7e151Schristos 4e6c7e151SchristosDisplays the contents of the DWARF debug sections in the file, if any 5e6c7e151Schristosare present. Compressed debug sections are automatically decompressed 6e6c7e151Schristos(temporarily) before they are displayed. If one or more of the 7e6c7e151Schristosoptional letters or words follows the switch then only those type(s) 8e6c7e151Schristosof data will be dumped. The letters and words refer to the following 9e6c7e151Schristosinformation: 10e6c7e151Schristos 11e6c7e151Schristos@c Please Keep This Table Alpha Sorted. 12e6c7e151Schristos@table @code 13e6c7e151Schristos@item a 14e6c7e151Schristos@itemx =abbrev 15e6c7e151SchristosDisplays the contents of the @samp{.debug_abbrev} section. 16e6c7e151Schristos 17e6c7e151Schristos@item A 18e6c7e151Schristos@itemx =addr 19e6c7e151SchristosDisplays the contents of the @samp{.debug_addr} section. 20e6c7e151Schristos 21e6c7e151Schristos@item c 22e6c7e151Schristos@itemx =cu_index 23e6c7e151SchristosDisplays the contents of the @samp{.debug_cu_index} and/or 24e6c7e151Schristos@samp{.debug_tu_index} sections. 25e6c7e151Schristos 26e6c7e151Schristos@item f 27e6c7e151Schristos@itemx =frames 28e6c7e151SchristosDisplay the raw contents of a @samp{.debug_frame} section. 29e6c7e151Schristos 30e6c7e151Schristos@item F 31*c42dbd0eSchristos@item =frames-interp 32e6c7e151SchristosDisplay the interpreted contents of a @samp{.debug_frame} section. 33e6c7e151Schristos 34e6c7e151Schristos@item g 35e6c7e151Schristos@itemx =gdb_index 36e6c7e151SchristosDisplays the contents of the @samp{.gdb_index} and/or 37e6c7e151Schristos@samp{.debug_names} sections. 38e6c7e151Schristos 39e6c7e151Schristos@item i 40e6c7e151Schristos@itemx =info 41e6c7e151SchristosDisplays the contents of the @samp{.debug_info} section. Note: the 42e6c7e151Schristosoutput from this option can also be restricted by the use of the 43e6c7e151Schristos@option{--dwarf-depth} and @option{--dwarf-start} options. 44e6c7e151Schristos 45e6c7e151Schristos@item k 46e6c7e151Schristos@itemx =links 47*c42dbd0eSchristosDisplays the contents of the @samp{.gnu_debuglink}, 48*c42dbd0eSchristos@samp{.gnu_debugaltlink} and @samp{.debug_sup} sections, if any of 49*c42dbd0eSchristosthem are present. Also displays any links to separate dwarf object 50*c42dbd0eSchristosfiles (dwo), if they are specified by the DW_AT_GNU_dwo_name or 51*c42dbd0eSchristosDW_AT_dwo_name attributes in the @samp{.debug_info} section. 52e6c7e151Schristos 53e6c7e151Schristos@item K 54e6c7e151Schristos@itemx =follow-links 55e6c7e151SchristosDisplay the contents of any selected debug sections that are found in 56867d70fcSchristoslinked, separate debug info file(s). This can result in multiple 57867d70fcSchristosversions of the same debug section being displayed if it exists in 58867d70fcSchristosmore than one file. 59e6c7e151Schristos 60e6c7e151SchristosIn addition, when displaying DWARF attributes, if a form is found that 61e6c7e151Schristosreferences the separate debug info file, then the referenced contents 62e6c7e151Schristoswill also be displayed. 63e6c7e151Schristos 64*c42dbd0eSchristosNote - in some distributions this option is enabled by default. It 65*c42dbd0eSchristoscan be disabled via the @option{N} debug option. The default can be 66*c42dbd0eSchristoschosen when configuring the binutils via the 67*c42dbd0eSchristos@option{--enable-follow-debug-links=yes} or 68*c42dbd0eSchristos@option{--enable-follow-debug-links=no} options. If these are not 69*c42dbd0eSchristosused then the default is to enable the following of debug links. 70*c42dbd0eSchristos 71*c42dbd0eSchristosNote - if support for the debuginfod protocol was enabled when the 72*c42dbd0eSchristosbinutils were built then this option will also include an attempt to 73*c42dbd0eSchristoscontact any debuginfod servers mentioned in the @var{DEBUGINFOD_URLS} 74*c42dbd0eSchristosenvironment variable. This could take some time to resolve. This 75*c42dbd0eSchristosbehaviour can be disabled via the @option{=do-not-use-debuginfod} debug 76*c42dbd0eSchristosoption. 77*c42dbd0eSchristos 78*c42dbd0eSchristos@item N 79*c42dbd0eSchristos@itemx =no-follow-links 80*c42dbd0eSchristosDisables the following of links to separate debug info files. 81*c42dbd0eSchristos 82*c42dbd0eSchristos@item D 83*c42dbd0eSchristos@itemx =use-debuginfod 84*c42dbd0eSchristosEnables contacting debuginfod servers if there is a need to follow 85*c42dbd0eSchristosdebug links. This is the default behaviour. 86*c42dbd0eSchristos 87*c42dbd0eSchristos@item E 88*c42dbd0eSchristos@itemx =do-not-use-debuginfod 89*c42dbd0eSchristosDisables contacting debuginfod servers when there is a need to follow 90*c42dbd0eSchristosdebug links. 91*c42dbd0eSchristos 92e6c7e151Schristos@item l 93e6c7e151Schristos@itemx =rawline 94e6c7e151SchristosDisplays the contents of the @samp{.debug_line} section in a raw 95e6c7e151Schristosformat. 96e6c7e151Schristos 97e6c7e151Schristos@item L 98e6c7e151Schristos@item =decodedline 99e6c7e151SchristosDisplays the interpreted contents of the @samp{.debug_line} section. 100e6c7e151Schristos 101e6c7e151Schristos@item m 102e6c7e151Schristos@itemx =macro 103e6c7e151SchristosDisplays the contents of the @samp{.debug_macro} and/or 104e6c7e151Schristos@samp{.debug_macinfo} sections. 105e6c7e151Schristos 106e6c7e151Schristos@item o 107e6c7e151Schristos@itemx =loc 108e6c7e151SchristosDisplays the contents of the @samp{.debug_loc} and/or 109e6c7e151Schristos@samp{.debug_loclists} sections. 110e6c7e151Schristos 111*c42dbd0eSchristos@item O 112*c42dbd0eSchristos@itemx =str-offsets 113*c42dbd0eSchristosDisplays the contents of the @samp{.debug_str_offsets} section. 114*c42dbd0eSchristos 115e6c7e151Schristos@item p 116e6c7e151Schristos@itemx =pubnames 117e6c7e151SchristosDisplays the contents of the @samp{.debug_pubnames} and/or 118e6c7e151Schristos@samp{.debug_gnu_pubnames} sections. 119e6c7e151Schristos 120e6c7e151Schristos@item r 121e6c7e151Schristos@itemx =aranges 122e6c7e151SchristosDisplays the contents of the @samp{.debug_aranges} section. 123e6c7e151Schristos 124e6c7e151Schristos@item R 125e6c7e151Schristos@itemx =Ranges 126e6c7e151SchristosDisplays the contents of the @samp{.debug_ranges} and/or 127e6c7e151Schristos@samp{.debug_rnglists} sections. 128e6c7e151Schristos 129e6c7e151Schristos@item s 130e6c7e151Schristos@itemx =str 131e6c7e151SchristosDisplays the contents of the @samp{.debug_str}, @samp{.debug_line_str} 132e6c7e151Schristosand/or @samp{.debug_str_offsets} sections. 133e6c7e151Schristos 134e6c7e151Schristos@item t 135e6c7e151Schristos@itemx =pubtype 136e6c7e151SchristosDisplays the contents of the @samp{.debug_pubtypes} and/or 137e6c7e151Schristos@samp{.debug_gnu_pubtypes} sections. 138e6c7e151Schristos 139e6c7e151Schristos@item T 140e6c7e151Schristos@itemx =trace_aranges 141e6c7e151SchristosDisplays the contents of the @samp{.trace_aranges} section. 142e6c7e151Schristos 143e6c7e151Schristos@item u 144e6c7e151Schristos@itemx =trace_abbrev 145e6c7e151SchristosDisplays the contents of the @samp{.trace_abbrev} section. 146e6c7e151Schristos 147e6c7e151Schristos@item U 148e6c7e151Schristos@itemx =trace_info 149e6c7e151SchristosDisplays the contents of the @samp{.trace_info} section. 150e6c7e151Schristos 151e6c7e151Schristos@end table 152e6c7e151Schristos 153e6c7e151SchristosNote: displaying the contents of @samp{.debug_static_funcs}, 154e6c7e151Schristos@samp{.debug_static_vars} and @samp{debug_weaknames} sections is not 155e6c7e151Schristoscurrently supported. 156e6c7e151Schristos 157e6c7e151Schristos@item --dwarf-depth=@var{n} 158e6c7e151SchristosLimit the dump of the @code{.debug_info} section to @var{n} children. 159e6c7e151SchristosThis is only useful with @option{--debug-dump=info}. The default is 160e6c7e151Schristosto print all DIEs; the special value 0 for @var{n} will also have this 161e6c7e151Schristoseffect. 162e6c7e151Schristos 163e6c7e151SchristosWith a non-zero value for @var{n}, DIEs at or deeper than @var{n} 164e6c7e151Schristoslevels will not be printed. The range for @var{n} is zero-based. 165e6c7e151Schristos 166e6c7e151Schristos@item --dwarf-start=@var{n} 167e6c7e151SchristosPrint only DIEs beginning with the DIE numbered @var{n}. This is only 168e6c7e151Schristosuseful with @option{--debug-dump=info}. 169e6c7e151Schristos 170e6c7e151SchristosIf specified, this option will suppress printing of any header 171e6c7e151Schristosinformation and all DIEs before the DIE numbered @var{n}. Only 172e6c7e151Schristossiblings and children of the specified DIE will be printed. 173e6c7e151Schristos 174e6c7e151SchristosThis can be used in conjunction with @option{--dwarf-depth}. 175e6c7e151Schristos 176