* objdump.c (main) :Accept multiple -M switch.

* doc/binutils.texi: Document that multiple -M switches are accepted and that
  a single -M switch can contain comma separated options.
* arm-dis.c (parse_arm_disassembler_option): Do not expect option string to be
  NUL terminated.
  (parse_disassembler_options): Allow options to be space or comma separated.
This commit is contained in:
Nick Clifton 2003-07-18 11:34:41 +00:00
parent 278a7cf7f0
commit 31e0f3cd45
5 changed files with 37 additions and 33 deletions

View file

@ -2661,12 +2661,10 @@ main (argc, argv)
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;
/* Ignore potential memory leak for now. */
disassembler_options = concat (disassembler_options, ",", optarg, NULL);
else
disassembler_options = optarg;
break;
case 'j':
if (only == NULL)