X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Fso-info.c;h=93d7167fee60244932fc15634a3fa797a5b54352;hp=6998fbfbf0328700c1bd8ce925a62c2b38e1dfd2;hb=b7b61ced2a4d4e3222640ad20e6655cb4379c012;hpb=1c47ec6cee3670631b54e449939703aebe4e182e diff --git a/lib/so-info.c b/lib/so-info.c index 6998fbfb..93d7167f 100644 --- a/lib/so-info.c +++ b/lib/so-info.c @@ -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; }