[patch] fix error checking on add-symbol-file command.

Muhammad Bilal mbilal@codesourcery.com
Mon Sep 2 13:27:00 GMT 2013


Hi,

GDB does not recognizes the bad option on add-symbol-file command.

currently GDB shows

(gdb) add-symbol-file test 0 -readnow -blabla
add symbol table from file "test" at
     .text_addr = 0x0
(y or n) y
Reading symbols from /home/mbilal/test...done.
(gdb)


expected result

  (gdb) add-symbol-file test 0 -readnow -blabla
unknown option '-blabla'
(gdb)


Please find a attached file.



./testsuite
2013-09-02  Muhammad Bilal <mbilal@codesourcery.com>

         * gdb.base/relocate.exp: Error checking on unknown option
         with add-symbol-file command.

./
2013-09-02  Muhammad Bilal <mbilal@codesourcery.com>

         * symfile.c (add_symbol_file_command): Error checking on
         unkown option.




Thanks,
-Bilal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error-ckecking.patch
Type: text/x-patch
Size: 1241 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20130902/69137821/attachment.bin>


More information about the Gdb-patches mailing list