* corefile.c (core_sym_class): Fix handling of subprogram names
and add support for cloned function names.
This commit is contained in:
parent
4e92bb1cd7
commit
183e4ed8bc
@ -1,3 +1,8 @@
|
|||||||
|
2010-07-16 James Blackburn <james.blackburn@broadcom.com>
|
||||||
|
|
||||||
|
* corefile.c (core_sym_class): Fix handling of subprogram names
|
||||||
|
and add support for cloned function names.
|
||||||
|
|
||||||
2010-06-15 Doug Semler <dougsemler@gmail.com>
|
2010-06-15 Doug Semler <dougsemler@gmail.com>
|
||||||
|
|
||||||
* gmon_io.c (gmon_out_read): Remove double fclose of input file.
|
* gmon_io.c (gmon_out_read): Remove double fclose of input file.
|
||||||
|
@ -385,12 +385,20 @@ core_sym_class (asymbol *sym)
|
|||||||
if (*name == '$')
|
if (*name == '$')
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Do not discard nested subprograms (those
|
|
||||||
which end with .NNN, where N are digits). */
|
|
||||||
if (*name == '.')
|
if (*name == '.')
|
||||||
for (name++; *name; name++)
|
{
|
||||||
if (! ISDIGIT (*name))
|
/* Allow GCC cloned functions. */
|
||||||
return 0;
|
if (strlen (name) > 7 && strncmp (name, ".clone.", 7) == 0)
|
||||||
|
name += 6;
|
||||||
|
|
||||||
|
/* Do not discard nested subprograms (those
|
||||||
|
which end with .NNN, where N are digits). */
|
||||||
|
for (name++; *name; name++)
|
||||||
|
if (! ISDIGIT (*name))
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* On systems where the C compiler adds an underscore to all
|
/* On systems where the C compiler adds an underscore to all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user