Add --debug-info-target-prefix
[babeltrace.git] / lib / so-info.c
index 6998fbfbf0328700c1bd8ce925a62c2b38e1dfd2..93d7167fee60244932fc15634a3fa797a5b54352 100644 (file)
@@ -78,7 +78,13 @@ struct so_info *so_info_create(const char *path, uint64_t low_addr,
                goto error;
        }
 
-       so->elf_path = strdup(path);
+       if (opt_debug_info_target_prefix) {
+               so->elf_path = g_build_path("/", opt_debug_info_target_prefix,
+                                               path, NULL);
+       } else {
+               so->elf_path = strdup(path);
+       }
+
        if (!so->elf_path) {
                goto error;
        }
This page took 0.022615 seconds and 4 git commands to generate.