mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue