Home | History | Annotate | Download | only in gprof

Lines Matching full:spec

44     char *spec;			/* Parsing modifies this.  */
91 sym_id_add (const char *spec, Table_Id which_table)
94 int len = strlen (spec);
99 id->spec = (char *) id + sizeof (*id);
100 strcpy (id->spec, spec);
108 /* A spec has the syntax FILENAME:(FUNCNAME|LINENUM). As a convenience
109 to the user, a spec without a colon is interpreted as:
119 parse_spec (char *spec, Sym *sym)
124 colon = strrchr (spec, ':');
130 if (colon > spec)
132 sym->file = source_file_lookup_name (spec);
138 spec = colon + 1;
140 if (strlen (spec))
142 if (ISDIGIT (spec[0]))
143 sym->line_num = atoi (spec);
145 sym->name = spec;
148 else if (strlen (spec))
150 /* No colon: spec is a filename if it contains a dot. */
151 if (strchr (spec, '.'))
153 sym->file = source_file_lookup_name (spec);
158 else if (ISDIGIT (*spec))
160 sym->line_num = atoi (spec);
162 else if (strlen (spec))
164 sym->name = spec;
170 /* A symbol id has the syntax SPEC[/SPEC], where SPEC is is defined
178 DBG (IDDEBUG, printf ("[parse_id] %s -> ", id->spec));
180 slash = strchr (id->spec, '/');
187 parse_spec (id->spec, &id->left.sym);