diff options
author | Roland McGrath <roland@redhat.com> | 2008-03-26 20:51:59 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2008-03-26 20:51:59 +0000 |
commit | d11f9cbecac4a5ac3848a68597028d1924f3ff6b (patch) | |
tree | bebe015f7e02d133fa3dec01f3d34c76fdb74756 /libdwfl/argp-std.c | |
parent | 472b20d24ffbc2485f8a5e2be208a11d77e8e846 (diff) | |
download | elfutils-d11f9cbecac4a5ac3848a68597028d1924f3ff6b.tar.gz |
libdwfl/
* dwfl_module_getdwarf.c (load_symtab): Don't return success for
SHT_DYNSYM, just set *SYMSCN like the comment says.
Diffstat (limited to 'libdwfl/argp-std.c')
-rw-r--r-- | libdwfl/argp-std.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdwfl/argp-std.c b/libdwfl/argp-std.c index 11397889..1abb568f 100644 --- a/libdwfl/argp-std.c +++ b/libdwfl/argp-std.c @@ -1,5 +1,5 @@ /* Standard argp argument parsers for tools using libdwfl. - Copyright (C) 2005, 2007 Red Hat, Inc. + Copyright (C) 2005, 2007, 2008 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -108,13 +108,13 @@ parse_opt (int key, char *arg, struct argp_state *state) { inline void failure (Dwfl *dwfl, int errnum, const char *msg) { + if (dwfl != NULL) + dwfl_end (dwfl); if (errnum == -1) argp_failure (state, EXIT_FAILURE, 0, "%s: %s", msg, INTUSE(dwfl_errmsg) (-1)); else argp_failure (state, EXIT_FAILURE, errnum, "%s", msg); - if (dwfl != NULL) - dwfl_end (dwfl); } inline error_t fail (Dwfl *dwfl, int errnum, const char *msg) { |