diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2022-02-04 18:07:12 -0800 |
---|---|---|
committer | Keith Smiley <keithbsmiley@gmail.com> | 2022-10-14 15:42:18 -0700 |
commit | bc99fd95e090a406a16fe431047d8b7d59af7dc0 (patch) | |
tree | e8e8d6f5c66f648c06101a7d52261fccae4bce72 /llvm/docs/CommandGuide/llvm-objdump.rst | |
parent | c2d209476c494b3b3194e80bcd3062444eb41993 (diff) | |
download | llvm-bc99fd95e090a406a16fe431047d8b7d59af7dc0.zip llvm-bc99fd95e090a406a16fe431047d8b7d59af7dc0.tar.gz llvm-bc99fd95e090a406a16fe431047d8b7d59af7dc0.tar.bz2 |
[llvm-objdump/mac] Add new function starts print mode
This updates the `--function-starts` argument to now accept 3 different
modes, `addrs` for just printing the addresses of the function starts
(previous behavior), `names` for just printing the names of the function
starts, and `both` to print them both side by side.
In general if you're debugging function starts issues it's useful to see
the symbol name alongside the address. This also mirrors Apple's
`dyldinfo -function_starts` command which prints both.
Differential Revision: https://reviews.llvm.org/D119050
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objdump.rst')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objdump.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst index 7879ac1..65a26bb 100644 --- a/llvm/docs/CommandGuide/llvm-objdump.rst +++ b/llvm/docs/CommandGuide/llvm-objdump.rst @@ -356,9 +356,12 @@ MACH-O ONLY OPTIONS AND COMMANDS Display exported symbols. -.. option:: --function-starts +.. option:: --function-starts [=<addrs|names|both>] - Print the function starts table for Mach-O objects. + Print the function starts table for Mach-O objects. Either ``addrs`` + (default) to print only the addresses of functions, ``names`` to print only + the names of the functions (when available), or ``both`` to print the + names beside the addresses. .. option:: -g |