]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
Fix add-symbol-file usage and errors
authorTom Tromey <tom@tromey.com>
Sun, 6 Aug 2017 17:07:28 +0000 (11:07 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 29 Nov 2017 16:21:43 +0000 (09:21 -0700)
commit02ca603a481d55e175765ab5bff30a04b86e905a
treefb350aae24af9313a5fc0e41f34c751de56ba8ce
parented6c0bfb2643861636581ac8775144efa1728c7c
Fix add-symbol-file usage and errors

This patch updates add-symbol-file help and error text.

It changes add-symbol-file to throw an exception if "-s" is seen but
not all of the arguments are given.  Previously this was silently
ignored.

It changes the unrecognized argument message to more clearly state
what went wrong.

Finally, it updates the usage line in the help text to follow GNU
style regarding "metasyntactic variables"; a change I believe should
be made to all gdb help messages.

gdb/ChangeLog
2017-11-29  Tom Tromey  <tom@tromey.com>

* symfile.c (add_symbol_file_command): Error if some arguments to
-s are missing.  Change unrecognized-argument error message.
(_initialize_symfile): Fix usage text for add-symbol-file.

gdb/testsuite/ChangeLog
2017-11-29  Tom Tromey  <tom@tromey.com>

* gdb.base/relocate.exp: Update invalid argument test.
Add new tests for invalid arguments.
gdb/ChangeLog
gdb/symfile.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/relocate.exp