diff options
author | Roland McGrath <roland@redhat.com> | 2005-12-23 01:49:50 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2005-12-23 01:49:50 +0000 |
commit | 1656bc00ae97fa16a941a8cefacc4e01488d0e8a (patch) | |
tree | 0eca35f6f6f63f23cda09f6eac13de2bccd6ad90 /libdwfl/libdwfl.h | |
parent | fceb7b4965b5088a8215ffaf861991687460671e (diff) | |
download | elfutils-1656bc00ae97fa16a941a8cefacc4e01488d0e8a.tar.gz |
2005-12-22 Roland McGrath <roland@redhat.com>
* argp-std.c (parse_opt): Call dwfl_end in failure cases.
* linux-proc-maps.c (proc_maps_report): New function, broken out of ...
(dwfl_linux_proc_report): ... here. Call it.
(dwfl_linux_proc_maps_report): New function.
* libdwfl.h: Declare it.
* libdwflP.h: Add INTDECL.
* argp-std.c (options, parse_opt): Grok -M/--linux-process-map.
Diffstat (limited to 'libdwfl/libdwfl.h')
-rw-r--r-- | libdwfl/libdwfl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h index f4652809..4135fc3d 100644 --- a/libdwfl/libdwfl.h +++ b/libdwfl/libdwfl.h @@ -15,6 +15,7 @@ #define _LIBDWFL_H 1 #include "libdw.h" +#include <stdio.h> /* Handle for a session using the library. */ typedef struct Dwfl Dwfl; @@ -213,6 +214,10 @@ extern int dwfl_linux_kernel_report_offline (Dwfl *dwfl, const char *release, or an errno code if opening the kernel binary failed. */ extern int dwfl_linux_proc_report (Dwfl *dwfl, pid_t pid); +/* Similar, but reads an input stream in the format of Linux /proc/PID/maps + files giving module layout, not the file for a live process. */ +extern int dwfl_linux_proc_maps_report (Dwfl *dwfl, FILE *); + /* Trivial find_elf callback for use with dwfl_linux_proc_report. This uses the module name as a file name directly and tries to open it if it begin with a slash, or handles the magic string "[vdso]". */ |