diff options
author | Nick Clifton <nickc@redhat.com> | 2015-03-10 13:44:51 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-03-10 13:44:51 +0000 |
commit | b6370efb1efe39e62abd01e95c7957834c8bdf47 (patch) | |
tree | 615f88a08ab859218ea5c5c366f15c15a182fc82 /binutils/readelf.c | |
parent | cfad873011d6399aa88bc6ddcb4c93dda5dad9b0 (diff) | |
download | gdb-b6370efb1efe39e62abd01e95c7957834c8bdf47.zip gdb-b6370efb1efe39e62abd01e95c7957834c8bdf47.tar.gz gdb-b6370efb1efe39e62abd01e95c7957834c8bdf47.tar.bz2 |
Fixes "readelf -s --wide" not returning an error status or help message.
PR binutils/18101
* readelf.c (parse_args): Enhance check for nothing to do by
accounting for the --wide option.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index d0b66ae..771d29d 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -4232,7 +4232,7 @@ parse_args (int argc, char ** argv) && !do_section_groups && !do_archive_index && !do_dyn_syms) usage (stderr); - else if (argc < 3) + else if (argc < 3 || (do_wide && argc < 4)) { warn (_("Nothing to do.\n")); usage (stderr); |