mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 10:30:46 +00:00
Add --inlines option to objdump to include scope backtrace of inlined functions when generating source line number information.
* objdump.c (unwind_inlines): Add. (option_values): Add OPTION_INLINES. (show_line): Unwind inlines if requested. (main): Parse OPTION_INLINES. (usage): Document --inlines. * doc/binutils.texi: Document --inlines. * NEWS: Likewise.
This commit is contained in:
@@ -761,7 +761,8 @@ nm [@option{-A}|@option{-o}|@option{--print-file-name}] [@option{-a}|@option{--d
|
||||
[@option{-B}|@option{--format=bsd}] [@option{-C}|@option{--demangle}[=@var{style}]]
|
||||
[@option{-D}|@option{--dynamic}] [@option{-f}@var{format}|@option{--format=}@var{format}]
|
||||
[@option{-g}|@option{--extern-only}] [@option{-h}|@option{--help}]
|
||||
[@option{-l}|@option{--line-numbers}] [@option{-n}|@option{-v}|@option{--numeric-sort}]
|
||||
[@option{-l}|@option{--line-numbers}] [@option{--inlines}]
|
||||
[@option{-n}|@option{-v}|@option{--numeric-sort}]
|
||||
[@option{-P}|@option{--portability}] [@option{-p}|@option{--no-sort}]
|
||||
[@option{-r}|@option{--reverse-sort}] [@option{-S}|@option{--print-size}]
|
||||
[@option{-s}|@option{--print-armap}] [@option{-t} @var{radix}|@option{--radix=}@var{radix}]
|
||||
@@ -968,6 +969,16 @@ address of the symbol. For an undefined symbol, look for the line
|
||||
number of a relocation entry which refers to the symbol. If line number
|
||||
information can be found, print it after the other symbol information.
|
||||
|
||||
@item --inlines
|
||||
@cindex objdump inlines
|
||||
When option @option{-l} is active, if the address belongs to a
|
||||
function that was inlined, then this option causes the source
|
||||
information for all enclosing scopes back to the first non-inlined
|
||||
function to be printed as well. For example, if @code{main} inlines
|
||||
@code{callee1} which inlines @code{callee2}, and address is from
|
||||
@code{callee2}, the source information for @code{callee1} and @code{main}
|
||||
will also be printed.
|
||||
|
||||
@item -n
|
||||
@itemx -v
|
||||
@itemx --numeric-sort
|
||||
|
||||
Reference in New Issue
Block a user