Skip to content

Commit

Permalink
Avoid failing early when we cannot find symbols on macho
Browse files Browse the repository at this point in the history
  • Loading branch information
tkonolige committed Dec 16, 2020
1 parent 1da441c commit cdc600f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions macho.c
Original file line number Diff line number Diff line change
Expand Up @@ -1266,9 +1266,8 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
base_address = _dyld_get_image_vmaddr_slide (i);

mff = macho_nodebug;
if (!macho_add (state, name, d, 0, NULL, base_address, 0,
error_callback, data, &mff, &mfs))
return 0;
macho_add (state, name, d, 0, NULL, base_address, 0,
error_callback, data, &mff, &mfs);

if (mff != macho_nodebug)
macho_fileline_fn = mff;
Expand Down

0 comments on commit cdc600f

Please sign in to comment.