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:
parent
78233e8352
commit
b6df6f911c
@ -1496,7 +1496,7 @@ addr_header_init(obj_info_t *obj, addr_header_t *header) {
|
|||||||
|
|
||||||
header->ptr = p;
|
header->ptr = p;
|
||||||
|
|
||||||
if (!p) return false;
|
if (!p) return true;
|
||||||
|
|
||||||
header->unit_length = *(uint32_t *)p;
|
header->unit_length = *(uint32_t *)p;
|
||||||
p += sizeof(uint32_t);
|
p += sizeof(uint32_t);
|
||||||
@ -1539,7 +1539,7 @@ static bool
|
|||||||
rnglists_header_init(obj_info_t *obj, rnglists_header_t *header) {
|
rnglists_header_init(obj_info_t *obj, rnglists_header_t *header) {
|
||||||
const char *p = obj->debug_rnglists.ptr;
|
const char *p = obj->debug_rnglists.ptr;
|
||||||
|
|
||||||
if (!p) return false;
|
if (!p) return true;
|
||||||
|
|
||||||
header->unit_length = *(uint32_t *)p;
|
header->unit_length = *(uint32_t *)p;
|
||||||
p += sizeof(uint32_t);
|
p += sizeof(uint32_t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user