mirror of git://gcc.gnu.org/git/gcc.git
runtime: Recognize morestack.S if there is no function name.
From-SVN: r195634
This commit is contained in:
parent
c5f4be845a
commit
cfbafb9a7e
|
|
@ -34,13 +34,24 @@ callback (void *data, uintptr_t pc, const char *filename, int lineno,
|
||||||
/* Skip split stack functions. */
|
/* Skip split stack functions. */
|
||||||
if (function != NULL)
|
if (function != NULL)
|
||||||
{
|
{
|
||||||
const char *p = function;
|
const char *p;
|
||||||
|
|
||||||
|
p = function;
|
||||||
if (__builtin_strncmp (p, "___", 3) == 0)
|
if (__builtin_strncmp (p, "___", 3) == 0)
|
||||||
++p;
|
++p;
|
||||||
if (__builtin_strncmp (p, "__morestack_", 12) == 0)
|
if (__builtin_strncmp (p, "__morestack_", 12) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else if (filename != NULL)
|
||||||
|
{
|
||||||
|
const char *p;
|
||||||
|
|
||||||
|
p = strrchr (filename, '/');
|
||||||
|
if (p == NULL)
|
||||||
|
p = filename;
|
||||||
|
if (__builtin_strncmp (p, "morestack.S", 11) == 0)
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (arg->skip > 0)
|
if (arg->skip > 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue