[PATCH] nm.c/objdump.c demangle short option bug fix.

Elias Athanasopoulos eathan@otenet.gr
Thu Jun 6 09:25:00 GMT 2002


Hi Alan,

On Thu, Jun 06, 2002 at 09:21:19PM +0930, Alan Modra wrote:
> On Tue, Jun 04, 2002 at 02:00:47AM +0300, Elias Athanasopoulos wrote:
> >         * nm.c: demangle short option bug fix.
> > 	* objdump.c: Likewise.
> 
> This isn't right.  -C doesn't take an arg.

I believe it does.

binutils/nm.c (main.c):

	case 'C': 
          do_demangle = 1; 
          if (optarg != NULL)
            {
              enum demangling_styles style;
              
              style = cplus_demangle_name_to_style (optarg);
              if (style == unknown_demangling) 
                fatal (_("unknown demangling style `%s'"),
                       optarg);
              
              cplus_demangle_set_style (style);
           }
          break;

Elias



More information about the Binutils mailing list