From: Jérémie Galarneau Date: Fri, 15 Apr 2016 21:30:32 +0000 (-0400) Subject: Fix: Don't skip binary path print-out in ELF-only case X-Git-Tag: v1.4.0-rc1~73 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=306dbb33cef20de141e182869fd8f1dec63ecb00;hp=ad2b5b38baf7f69697162ef460e86c90035fe088 Fix: Don't skip binary path print-out in ELF-only case Signed-off-by: Jérémie Galarneau --- diff --git a/lib/debuginfo.c b/lib/debuginfo.c index d5832173..7d12ebd2 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) {