[Patch] gprof: accept nested subprograms

Dave Korn dave.korn@artimi.com
Wed Jul 4 15:18:00 GMT 2007


On 04 July 2007 15:46, Tristan Gingold wrote:

>      for (name = sym->name; *name; ++name)
>        {
> !       if (*name == '$')
>          return 0;
> +       /* Do not discard nested subprograms (those which finishes

  s/finishes/finish

> +       if (*name == '.')
> +       {
> +         for (name++; *name; name++)
> +           if (*name < '0' || *name > '9')
> +             return 0;
> +       }

  You could use "if (!isdigit (*name))" here.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Binutils mailing list