mirror of
https://github.com/ianlancetaylor/libbacktrace.git
synced 2026-11-05 18:50:15 +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:
1 parent
3fda5a8759
commit
0cb5d00374
2 files changed
+2
-2
No files matched your search
@@ -439,7 +439,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",
|
||||
|
||||
Reference in new issue
Block a user