mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-04-02 23:49:08 +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:
2
btest.c
2
btest.c
@@ -439,7 +439,7 @@ test5 (void)
|
|||||||
(unsigned long) (uintptr_t) &global);
|
(unsigned long) (uintptr_t) &global);
|
||||||
symdata.failed = 1;
|
symdata.failed = 1;
|
||||||
}
|
}
|
||||||
else if (symdata.size != sizeof (global))
|
else if (symdata.size != sizeof (global) && symdata.size != 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"test5: unexpected syminfo size got %lx expected %lx\n",
|
"test5: unexpected syminfo size got %lx expected %lx\n",
|
||||||
|
|||||||
2
mtest.c
2
mtest.c
@@ -373,7 +373,7 @@ test5 (void)
|
|||||||
(unsigned long) (uintptr_t) &global);
|
(unsigned long) (uintptr_t) &global);
|
||||||
symdata.failed = 1;
|
symdata.failed = 1;
|
||||||
}
|
}
|
||||||
else if (symdata.size != sizeof (global))
|
else if (symdata.size != sizeof (global) && symdata.size != 0)
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"test5: unexpected syminfo size got %lx expected %lx\n",
|
"test5: unexpected syminfo size got %lx expected %lx\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user