llvm.org GIT mirror llvm / 7fd3419
[llvm-symbolizer] Add -addresses, -a as aliases for -print-address Summary: Provides -addresses, -a as aliases for -print-address. Motivation: https://bugs.llvm.org/show_bug.cgi?id=40067. Reviewers: jhenderson, ruiu, rnk, fjricci Reviewed By: jhenderson Subscribers: rupprecht, llvm-commits Differential Revision: https://reviews.llvm.org/D56635 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351043 91177308-0d34-0410-b5e6-96231b3b80d8 Dmitry Venikov 7 months ago
3 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
105105 location, look for the debug info at the .dSYM path provided via the
106106 ``-dsym-hint`` flag. This flag can be used multiple times.
107107
108 .. option:: -print-address
108 .. option:: -print-address, -addresses, -a
109109
110110 Print address before the source code location. Defaults to false.
111111
1717 #Build as : clang -g -O2 addr.c
1818
1919 RUN: llvm-symbolizer -print-address -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s
20 RUN: llvm-symbolizer -addresses -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s
21 RUN: llvm-symbolizer -a -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s
2022 RUN: llvm-symbolizer -inlining -print-address -pretty-print -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
2123 RUN: llvm-symbolizer -inlining -print-address -p -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck -check-prefix="PRETTY" %s
2224 RUN: echo "0x1" > %t.input
8282 ClDsymHint("dsym-hint", cl::ZeroOrMore,
8383 cl::desc("Path to .dSYM bundles to search for debug info for the "
8484 "object files"));
85 static cl::opt
86 ClPrintAddress("print-address", cl::init(false),
87 cl::desc("Show address before line information"));
85
86 // -print-address, -addresses, -a
87 static cl::opt
88 ClPrintAddress("print-address", cl::init(false),
89 cl::desc("Show address before line information"));
90 static cl::alias
91 ClPrintAddressAliasAddresses("addresses", cl::desc("Alias for -print-address"),
92 cl::NotHidden, cl::aliasopt(ClPrintAddress));
93 static cl::alias
94 ClPrintAddressAliasA("a", cl::desc("Alias for -print-address"),
95 cl::NotHidden, cl::aliasopt(ClPrintAddress));
8896
8997 // -pretty-print, -p
9098 static cl::opt