Usage: eu-srcfiles [OPTION...] INPUT
Lists the source files of a DWARF/ELF file. The default input is the file
'a.out'.
Output options:
-0, --null Separate items by a null instead of a newline.
-b, --no-backup Disables local source file search when debuginfod
fails to fetch files. This option is only
applicable when fetching and zipping files.
-c, --cu-only Only list the CU names.
-v, --verbose Increase verbosity of logging messages.
-z, --zip Zip all the source files and send to stdout.
Cannot be used with the null option
Input selection options:
--core=COREFILE Find addresses from signatures found in COREFILE
--debuginfo-path=PATH Search path for separate debuginfo files
-e, --executable=FILE Find addresses in FILE
-k, --kernel Find addresses in the running kernel
-K, --offline-kernel[=RELEASE] Kernel with all modules
-M, --linux-process-map=FILE Find addresses in files mapped as read from
FILE in Linux /proc/PID/maps format
-p, --pid=PID Find addresses in files mapped into process PID
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
Report bugs to https://sourceware.org/bugzilla.
Options (15)
| Option | Description | Source |
|---|
-0, --null | Separate items by a null instead of a newline. | help + man |
-b, --no-backup | Disables local source file search when debuginfod fails to fetch files. | help + man |
-c, --cu-only | Only list the CU (compilation unit) names. | help + man |
-v, --verbose | Increase verbosity of logging messages. | help + man |
-z, --zip | Zip all the source files and send to stdout. | help + man |
--core COREFILE | Find addresses from signatures found in COREFILE. | help + man |
--debuginfo-path PATH | Search path for separate debuginfo files. | help + man |
-e, --executable FILE | Find addresses in FILE. | help + man |
-k, --kernel | Find addresses in the running kernel. | help + man |
-K, --offline-kernel RELEASE | Kernel with all modules | help |
-M, --linux-process-map FILE | Find addresses in files mapped as read from FILE in Linux /proc/PID/maps format. | help + man |
-p, --pid PID | Find addresses in files mapped into process PID. | help + man |
-?, --help | Give this help list. | help + man |
--usage | Give a short usage message. | help + man |
-V, --version | Print program version. | help + man |
Examples (6) from the manual page, untested
eu-srcfiles -e /bin/ls
List all source files for a binary.eu-srcfiles -c -p $$
List all compilation units (CU) names for a given process (including shared libraries).binary=`debuginfod-find executable 9c22d8d9e42bd051ffdc1064fdfd456ba781c629`
List source files of a binary based on its buildid, using debuginfod.binary=/usr/lib64/libc.so.6
Show the source code of the first CU of a shared library.eu-srcfiles -e /boot/vmlinuz-`uname -r`
List the source files of a kernel image.eu-srcfiles -z -e /bin/ls > ls.zip
Zip all the source files for a binary.
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.