diff options
| author | Jan Kratochvil <[email protected]> | 2013-10-30 10:48:20 +0100 |
|---|---|---|
| committer | Jan Kratochvil <[email protected]> | 2013-10-30 10:48:20 +0100 |
| commit | 3cf491ee10f10855a49e6a35cc9b8365a3197553 (patch) | |
| tree | d5b8aa9232861fab2e5075988e87b3a668054d30 /libdwfl/argp-std.c | |
| parent | e6a9bb8c63adaeaceafc50301b085121c962b631 (diff) | |
Fix executable_for_core for non-dwfl_standard_argp
./
2013-10-30 Jan Kratochvil <[email protected]>
* NEWS (Version 0.158): New.
libdw/
2013-10-30 Jan Kratochvil <[email protected]>
* libdw.map (ELFUTILS_0.158): New.
libdwfl/
2013-10-30 Jan Kratochvil <[email protected]>
* argp-std.c (parse_opt): Use executable parameter of
dwfl_core_file_report.
* core-file.c (dwfl_core_file_report): Add parameter executable. Set
it to DWFL. Add NEW_VERSION for it.
(_compat_without_executable_dwfl_core_file_report): New. Twice.
* libdwfl.h (dwfl_core_file_report): Add parameter executable, update
the function comment.
Signed-off-by: Jan Kratochvil <[email protected]>
Diffstat (limited to 'libdwfl/argp-std.c')
| -rw-r--r-- | libdwfl/argp-std.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libdwfl/argp-std.c b/libdwfl/argp-std.c index c8843909..322cdf49 100644 --- a/libdwfl/argp-std.c +++ b/libdwfl/argp-std.c @@ -295,9 +295,6 @@ parse_opt (int key, char *arg, struct argp_state *state) if (opt->core) { - if (opt->e) - dwfl->executable_for_core = strdup (opt->e); - int fd = open64 (opt->core, O_RDONLY); if (fd < 0) { @@ -317,7 +314,7 @@ parse_opt (int key, char *arg, struct argp_state *state) return error == DWFL_E_ERRNO ? errno : EIO; } - int result = INTUSE(dwfl_core_file_report) (dwfl, core); + int result = INTUSE(dwfl_core_file_report) (dwfl, core, opt->e); if (result < 0) { elf_end (core); |
