objdump: permit disassembling multiple individual functions

Compilers may split functions, e.g. into a "hot" and "cold" part, or
they may emit special case instantiations (e.g. as a result of IPA). It
can be helpful to be able to disassemble all of the parts or clones in
one go. Permit using "--disassemble=" multiple times.
This commit is contained in:
Jan Beulich
2025-03-07 11:24:19 +01:00
parent 60e254b701
commit cdd8492b05
4 changed files with 63 additions and 14 deletions

View File

@@ -2432,11 +2432,11 @@ with ctags tool.
Display the assembler mnemonics for the machine instructions from the
input file. This option only disassembles those sections which are
expected to contain instructions. If the optional @var{symbol}
argument is given, then display the assembler mnemonics starting at
@var{symbol}. If @var{symbol} is a function name then disassembly
will stop at the end of the function, otherwise it will stop when the
next symbol is encountered. If there are no matches for @var{symbol}
then nothing will be displayed.
argument is given (perhaps multiple times), then display the assembler
mnemonics starting at (all the) @var{symbol}. If @var{symbol} is a
function name then disassembly will stop at the end of the function,
otherwise it will stop when the next symbol is encountered. If there
are no matches for any @var{symbol} then nothing will be displayed.
Note if the @option{--dwarf=follow-links} option is enabled
then any symbol tables in linked debug info files will be read in and