]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Correct objdump command line error handling
authorAlan Modra <amodra@gmail.com>
Mon, 6 Mar 2023 00:12:22 +0000 (10:42 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 6 Mar 2023 00:12:22 +0000 (10:42 +1030)
commita734d906cc0e0d3f32705e67b72e7113c69890d6
tree81241663b72aceea2f6abf06f17761239c99608c
parentec95986dc23f3f3c55beb945516a0008a526e772
Correct objdump command line error handling

bfd_nonfatal is used when a bfd error is to be printed.  That's not
the case for command line errors.

* objdump.c (nonfatal): Rename to my_bfd_nonfatal.
(main): Use non_fatal and call usage on unrecognized arg errors.
Don't set exit_status when calling usage.
binutils/objdump.c