mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00: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