summaryrefslogtreecommitdiff
path: root/binutils/doc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-01-17 15:29:43 +0000
committerNick Clifton <nickc@redhat.com>2019-01-17 15:29:43 +0000
commitbaae986a40eb2ed6d612436586bfa7dd1d88702d (patch)
treedbd18a9b28eb55af549e1e9bd5d94132c7fc7472 /binutils/doc
parente89c69419641d638a96cb7ca3c9fa4b3feac5ce0 (diff)
downloadbinutils-gdb-baae986a40eb2ed6d612436586bfa7dd1d88702d.tar.gz
Update objdump's --disassemble=<symbol> feature so that if <symbol> is a function, the entire function will be disassembled, regardless of the presence of interveening symbols.
* objdump.c (disassemble_section): When disassembling from a symbol only stop at the next symbol if the original symbol was not a function symbol. Otherwise continue disassembling until a new function is reached. * testsuite/binutils-all/objdump.exp: Add tests of extended functionality. * testsuite/binutils-all/disasm.s: New test source file.
Diffstat (limited to 'binutils/doc')
-rw-r--r--binutils/doc/binutils.texi8
1 files changed, 5 insertions, 3 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi
index 5664b9c7a56..49101888f5a 100644
--- a/binutils/doc/binutils.texi
+++ b/binutils/doc/binutils.texi
@@ -2230,9 +2230,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 only from
-@var{symbol} up to next symbol. If there are no matches for
-@var{symbol} then nothing will be displayed.
+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.
@item -D
@itemx --disassemble-all