X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fdebuginfo.c;h=7d12ebd27da0fa66d38294e9efd53c623896dc8b;hb=306dbb33cef20de141e182869fd8f1dec63ecb00;hp=d5832173de356ab2ffb8653125ebdbd3980cd99b;hpb=ad2b5b38baf7f69697162ef460e86c90035fe088;p=deliverable%2Fbabeltrace.git diff --git a/lib/debuginfo.c b/lib/debuginfo.c index d5832173d..7d12ebd27 100644 --- a/lib/debuginfo.c +++ b/lib/debuginfo.c @@ -141,14 +141,12 @@ struct debug_info_source *debug_info_source_create_from_so(struct so_info *so, } /* Can't retrieve src_loc from ELF only, skip it */ - if (so->is_elf_only) { - goto end; - } - - /* Lookup source location */ - ret = so_info_lookup_source_location(so, ip, &src_loc); - if (ret) { - goto error; + if (!so->is_elf_only) { + /* Lookup source location */ + ret = so_info_lookup_source_location(so, ip, &src_loc); + if (ret) { + goto error; + } } if (src_loc) {