summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-12-24 19:33:22 +0000
committerAlexey Samsonov <samsonov@google.com>2013-12-24 19:33:22 +0000
commit60e59e29f88026399c484af48fbf9c4d380a570d (patch)
tree57471cbf4c79e9652362295846e7485e49c3f6ee /llvm/docs/CommandGuide
parent002019a2850ce1255f93c0ef4aed1796e62931a2 (diff)
downloadbcm5719-llvm-60e59e29f88026399c484af48fbf9c4d380a570d.tar.gz
bcm5719-llvm-60e59e29f88026399c484af48fbf9c4d380a570d.zip
llvm-symbolizer: add --obj flag to specify a single object file that should be symbolized.
llvm-svn: 197988
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-symbolizer.rst16
1 files changed, 15 insertions, 1 deletions
diff --git a/llvm/docs/CommandGuide/llvm-symbolizer.rst b/llvm/docs/CommandGuide/llvm-symbolizer.rst
index e03be9b1987..dfbdb3ac434 100644
--- a/llvm/docs/CommandGuide/llvm-symbolizer.rst
+++ b/llvm/docs/CommandGuide/llvm-symbolizer.rst
@@ -10,7 +10,9 @@ DESCRIPTION
-----------
:program:`llvm-symbolizer` reads object file names and addresses from standard
-input and prints corresponding source code locations to standard output. This
+input and prints corresponding source code locations to standard output.
+If object file is specified in command line, :program:`llvm-symbolizer` reads
+only addresses from standard input. This
program uses debug info sections and symbol table in the object files.
EXAMPLE
@@ -45,10 +47,22 @@ EXAMPLE
_main
/tmp/source_x86_64.cc:8
+ $ cat addr2.txt
+ 0x4004f4
+ 0x401000
+ $ llvm-symbolizer -obj=a.out < addr2.txt
+ main
+ /tmp/a.cc:4
+
+ foo(int)
+ /tmp/a.cc:12
OPTIONS
-------
+.. option:: -obj
+ Path to object file to be symbolized.
+
.. option:: -functions
Print function names as well as source file/line locations. Defaults to true.
OpenPOWER on IntegriCloud