This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: [Patch] gprof: accept nested subprograms
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Tristan Gingold'" <gingold at adacore dot com>, <binutils at sourceware dot org>
- Date: Wed, 4 Jul 2007 15:59:22 +0100
- Subject: RE: [Patch] gprof: accept nested subprograms
- References: <B553B877-8726-43B4-9803-9DF50F3E77BA@adacore.com>
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....