Fix: Don't skip binary path print-out in ELF-only case
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 15 Apr 2016 21:30:32 +0000 (17:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 May 2016 19:42:41 +0000 (15:42 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/debuginfo.c

index d5832173de356ab2ffb8653125ebdbd3980cd99b..7d12ebd27da0fa66d38294e9efd53c623896dc8b 100644 (file)
@@ -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) {
This page took 0.024696 seconds and 4 git commands to generate.