]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* objdump.c (main): Issue a warning message if multiple -M
authorNick Clifton <nickc@redhat.com>
Thu, 17 Jul 2003 17:02:46 +0000 (17:02 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 17 Jul 2003 17:02:46 +0000 (17:02 +0000)
switches are used.

* doc/binutils.texi (objdump): Update documentation about -M
option.

binutils/ChangeLog
binutils/doc/binutils.texi
binutils/objdump.c

index 2918f4b8fccff08620c5e410e791390d112b6c31..d715ad0c44c7a18be4c03903ca7ccbcd445e876b 100644 (file)
@@ -1,3 +1,11 @@
+2003-07-17  Nick Clifton  <nickc@redhat.com>
+
+       * objdump.c (main): Issue a warning message if multiple -M
+       switches are used.
+       
+       * doc/binutils.texi (objdump): Update documentation about -M
+       option.
+       
 2003-07-17  Nick Clifton  <nickc@redhat.com>
 
        * po/es.po: New Spanish translation.
index 899ab5367d3d2374df60e867c99aa6566af7c1f2..85025db946c071619370f9449242fae6cd3de0a0 100644 (file)
@@ -1625,7 +1625,15 @@ architectures with the @option{-i} option.
 @item -M @var{options}
 @itemx --disassembler-options=@var{options}
 Pass target specific information to the disassembler.  Only supported on
-some targets.
+some targets.  Note only a single instance of the option on the
+command line is supported.  If the option occurs more than once, the
+earlier versions will be ignored.  If it is necessary to specify more
+than one disassembler option then they should be placed together into
+a space separated list.  ie:
+
+@smallexample
+  -M"first-disassembler-option second-disassembler-option"
+@end smallexample
 
 If the target is an ARM architecture then this switch can be used to
 select which register name set is used during disassembler.  Specifying
index dd8a53624108b2957c86d55d37183e7b760d79fe..4fc84ffa5bb9c1beb89f789b1167b67b32d7374f 100644 (file)
@@ -2660,6 +2660,12 @@ main (argc, argv)
          machine = optarg;
          break;
        case 'M':
+         if (disassembler_options)
+           {
+             non_fatal ("multiple separate -M options are not supported.");
+             non_fatal ("please combine them into a single, space separated option.");
+             non_fatal ("ignoring option '-M%s'", disassembler_options);
+           }
          disassembler_options = optarg;
          break;
        case 'j':