mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 02:44:18 +08:00
libbacktrace: don't fail if symbol size is unknown
* btest.c (test5): Don't fail if symbol size is 0. * mtest.c (test5): Likewise.
This commit is contained in:
parent
b870086904
commit
d7318f4cf8
@ -440,7 +440,7 @@ test5 (void)
|
||||
(unsigned long) (uintptr_t) &global);
|
||||
symdata.failed = 1;
|
||||
}
|
||||
else if (symdata.size != sizeof (global))
|
||||
else if (symdata.size != sizeof (global) && symdata.size != 0)
|
||||
{
|
||||
fprintf (stderr,
|
||||
"test5: unexpected syminfo size got %lx expected %lx\n",
|
||||
|
@ -373,7 +373,7 @@ test5 (void)
|
||||
(unsigned long) (uintptr_t) &global);
|
||||
symdata.failed = 1;
|
||||
}
|
||||
else if (symdata.size != sizeof (global))
|
||||
else if (symdata.size != sizeof (global) && symdata.size != 0)
|
||||
{
|
||||
fprintf (stderr,
|
||||
"test5: unexpected syminfo size got %lx expected %lx\n",
|
||||
|
Loading…
Reference in New Issue
Block a user