Continue even if addr or rnglists headers not found

Fix up commit 31d1226, "Avoid aborting inside addr2line.c".
Source code informations did not appear in C level backtrace since
that change.
This commit is contained in:
Nobuyoshi Nakada 2023-09-08 12:22:55 +09:00
parent 78233e8352
commit b6df6f911c
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -1496,7 +1496,7 @@ addr_header_init(obj_info_t *obj, addr_header_t *header) {
header->ptr = p;
if (!p) return false;
if (!p) return true;
header->unit_length = *(uint32_t *)p;
p += sizeof(uint32_t);
@ -1539,7 +1539,7 @@ static bool
rnglists_header_init(obj_info_t *obj, rnglists_header_t *header) {
const char *p = obj->debug_rnglists.ptr;
if (!p) return false;
if (!p) return true;
header->unit_length = *(uint32_t *)p;
p += sizeof(uint32_t);