diff options
author | Muhammad Bilal <mbilal@sourceware.org> | 2013-09-04 06:17:08 +0000 |
---|---|---|
committer | Muhammad Bilal <mbilal@sourceware.org> | 2013-09-04 06:17:08 +0000 |
commit | 41dc8db876c8ee46687555fbff68b497b48d5ee4 (patch) | |
tree | ea97c5f6d275bf5cd9f908594aa23395446d28d8 /gdb/testsuite | |
parent | 4cb70f9a2fa49db73ea8defcbd7e172b5784df19 (diff) | |
download | gdb-41dc8db876c8ee46687555fbff68b497b48d5ee4.zip gdb-41dc8db876c8ee46687555fbff68b497b48d5ee4.tar.gz gdb-41dc8db876c8ee46687555fbff68b497b48d5ee4.tar.bz2 |
2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
Pedro Alves <palves@redhat.com>
* symfile.c (add_symbol_file_command): Error out on unknown
option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
options and collapse into single conditional branch.
2013-09-13 Muhammad Bilal <mbilal@codesourcery.com>
Pedro Alves <palves@redhat.com>
* gdb.base/relocate.exp: Check that invalid options are
rejected.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/relocate.exp | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 0710472..62d26d2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-09-13 Muhammad Bilal <mbilal@codesourcery.com> + Pedro Alves <palves@redhat.com> + + * gdb.base/relocate.exp: Check that invalid options are + rejected. + 2013-08-30 Andrew Burgess <aburgess@broadcom.com> * gdb.base/code_elim1.c (my_bss_symbol): New variable added. diff --git a/gdb/testsuite/gdb.base/relocate.exp b/gdb/testsuite/gdb.base/relocate.exp index d69bca1..99ce83b 100644 --- a/gdb/testsuite/gdb.base/relocate.exp +++ b/gdb/testsuite/gdb.base/relocate.exp @@ -52,6 +52,13 @@ gdb_exit gdb_start gdb_reinitialize_dir $srcdir/$subdir +#Check that invalid options are rejected. +foreach x {"-raednow" "readnow" "foo" "-readnow s"} { + gdb_test "add-symbol-file ${binfile} 0 $x" \ + "USAGE: add-symbol-file <filename> <textaddress>.*-readnow.*-s <secname> <addr>.*" \ + "add-symbol-file: unknown option $x" +} + # Load the object file. gdb_test "add-symbol-file ${binfile} 0" \ "Reading symbols from .*${testfile}\\.o\\.\\.\\.done\\.(|\r\nUsing host libthread_db library .*libthread_db.so.*\\.)" \ |