diff options
Diffstat (limited to 'usr.bin/clang/llvm-dwarfdump')
-rw-r--r-- | usr.bin/clang/llvm-dwarfdump/Makefile | 21 | ||||
-rw-r--r-- | usr.bin/clang/llvm-dwarfdump/llvm-dwarfdump.1 | 60 |
2 files changed, 81 insertions, 0 deletions
diff --git a/usr.bin/clang/llvm-dwarfdump/Makefile b/usr.bin/clang/llvm-dwarfdump/Makefile new file mode 100644 index 0000000..d27a91e --- /dev/null +++ b/usr.bin/clang/llvm-dwarfdump/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +.include <bsd.own.mk> + +PROG_CXX=llvm-dwarfdump + +SRCDIR= tools/llvm-dwarfdump +SRCS= llvm-dwarfdump.cpp + +LIBDEPS=llvmdebuginfodwarf \ + llvmobject \ + llvmmcparser \ + llvmmc \ + llvmbitreader \ + llvmcore \ + llvmsupport + +.include "../clang.prog.mk" + +DPADD+= ${LIBZ} +LDADD+= -lz diff --git a/usr.bin/clang/llvm-dwarfdump/llvm-dwarfdump.1 b/usr.bin/clang/llvm-dwarfdump/llvm-dwarfdump.1 new file mode 100644 index 0000000..cb6cf64 --- /dev/null +++ b/usr.bin/clang/llvm-dwarfdump/llvm-dwarfdump.1 @@ -0,0 +1,60 @@ +.\" $FreeBSD$ +.\" Man page generated from reStructuredText. +. +.TH "LLVM-DWARFDUMP" "1" "2015-05-30" "3.7" "LLVM" +.SH NAME +llvm-dwarfdump \- print contents of DWARF sections +. +.nr rst2man-indent-level 0 +. +.de1 rstReportMargin +\\$1 \\n[an-margin] +level \\n[rst2man-indent-level] +level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] +- +\\n[rst2man-indent0] +\\n[rst2man-indent1] +\\n[rst2man-indent2] +.. +.de1 INDENT +.\" .rstReportMargin pre: +. RS \\$1 +. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] +. nr rst2man-indent-level +1 +.\" .rstReportMargin post: +.. +.de UNINDENT +. RE +.\" indent \\n[an-margin] +.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] +.nr rst2man-indent-level -1 +.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] +.in \\n[rst2man-indent\\n[rst2man-indent-level]]u +.. +.SH SYNOPSIS +.sp +\fBllvm\-dwarfdump\fP [\fIoptions\fP] [\fIfilenames...\fP] +.SH DESCRIPTION +.sp +\fBllvm\-dwarfdump\fP parses DWARF sections in the object files +and prints their contents in human\-readable form. +.SH OPTIONS +.INDENT 0.0 +.TP +.B \-debug\-dump=section +Specify the DWARF section to dump. +For example, use \fBabbrev\fP to dump the contents of \fB\&.debug_abbrev\fP section, +\fBloc.dwo\fP to dump the contents of \fB\&.debug_loc.dwo\fP etc. +See \fBllvm\-dwarfdump \-\-help\fP for the complete list of supported sections. +Use \fBall\fP to dump all DWARF sections. It is the default. +.UNINDENT +.SH EXIT STATUS +.sp +\fBllvm\-dwarfdump\fP returns 0. Other exit codes imply internal +program error. +.SH AUTHOR +Maintained by The LLVM Team (http://llvm.org/). +.SH COPYRIGHT +2003-2014, LLVM Project +.\" Generated by docutils manpage writer. +. |