[all-commits] [llvm/llvm-project] 5b460f: [llvm-dwarfdump] Print [=<offset>] after --debug-*...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Jun 2 11:06:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b460fb15e8bcd4b5f5ffad253b68aa2bc274049
      https://github.com/llvm/llvm-project/commit/5b460fb15e8bcd4b5f5ffad253b68aa2bc274049
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-dwarfdump.rst
    M llvm/include/llvm/BinaryFormat/Dwarf.def
    M llvm/include/llvm/DebugInfo/DIContext.h
    M llvm/lib/Support/CommandLine.cpp
    M llvm/test/tools/llvm-dwarfdump/cmdline.test
    M llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

  Log Message:
  -----------
  [llvm-dwarfdump] Print [=<offset>] after --debug-* options in help output.

Some of the --debug-* options can take an optional offset. Although the
man page does a good job of making that clear, it's much harder to
discover from the help output.

Currently the only reference to this is the following sentence:

> Where applicable these parameters take an optional =<offset> argument
> to dump only the entry at the specified offset.

This patch changes the help output from to print [=<offset>] after the
options that take an offset.

  --debug-info[=<offset>]    - Dump the .debug_info section

rdar://problem/63150066

Differential revision: https://reviews.llvm.org/D80959




More information about the All-commits mailing list