coredump: fix parsing metadata without access to executable
authorLuca Boccassi <luca.boccassi@microsoft.com>
Fri, 26 Nov 2021 02:13:57 +0000 (02:13 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Nov 2021 10:25:48 +0000 (11:25 +0100)
commitc0775eb787fe9ca40d0e73f38e18623de7b6ff75
tree453c41e4f7b6285e41abbb8b729355a53712fe82
parentddf127cda450833e5f46fe7a977adf5af10163c8
coredump: fix parsing metadata without access to executable

This was broken in a subtle way: we'd get an ELF ref, but not the right one,
so no metadata note would be found.
Change the parsing function to return 1 when it finds something, so that
we can return early only when that happens.
src/coredump/stacktrace.c