Display binary location even if source and symbol lookups fail
[babeltrace.git] / lib / debuginfo.c
index 229307919f01ddd8e1d448b4c91b5ddbdc05c7e3..20c6fa013affa0ade8482bcdda17201f757d7771 100644 (file)
@@ -111,13 +111,11 @@ struct debug_info_source *debug_info_source_create_from_bin(struct bin_info *bin
                goto error;
        }
 
-       /* Can't retrieve src_loc from ELF only, skip it */
-       if (!bin->is_elf_only) {
+       /* Can't retrieve src_loc from ELF, or could not find binary, skip. */
+       if (!bin->is_elf_only || !debug_info_src->func) {
                /* Lookup source location */
                ret = bin_info_lookup_source_location(bin, ip, &src_loc);
-               if (ret) {
-                       goto error;
-               }
+               printf_verbose("Failed to lookup source location (err: %i)\n", ret);
        }
 
        if (src_loc) {
This page took 0.023454 seconds and 4 git commands to generate.