[all-commits] [llvm/llvm-project] bc99fd: [llvm-objdump/mac] Add new function starts print mode

Keith Smiley via All-commits all-commits at lists.llvm.org
Fri Oct 14 15:45:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc99fd95e090a406a16fe431047d8b7d59af7dc0
      https://github.com/llvm/llvm-project/commit/bc99fd95e090a406a16fe431047d8b7d59af7dc0
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2022-10-14 (Fri, 14 Oct 2022)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objdump.rst
    M llvm/test/tools/llvm-objdump/MachO/function-starts.test
    M llvm/tools/llvm-objdump/MachODump.cpp
    M llvm/tools/llvm-objdump/MachODump.h
    M llvm/tools/llvm-objdump/ObjdumpOpts.td
    M llvm/tools/llvm-objdump/llvm-objdump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list