From bc99fd95e090a406a16fe431047d8b7d59af7dc0 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 4 Feb 2022 18:07:12 -0800 Subject: [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 --- llvm/docs/CommandGuide/llvm-objdump.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'llvm/docs/CommandGuide/llvm-objdump.rst') 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 [=] - 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 -- cgit v1.1