X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Flttng-utils%2Fdebug-info%2Fbin-info.c;h=c0546c861df8a4288f489bb089d860800fbdc7c5;hb=1ed6d0cc62643f0a6acfa13623339e18ae4daa79;hp=280462906b8192cd8e98ea6f84eb1adde02cea80;hpb=233b228c8d1fefaa04e33730bc67d7c010a3d4dd;p=babeltrace.git diff --git a/plugins/lttng-utils/debug-info/bin-info.c b/plugins/lttng-utils/debug-info/bin-info.c index 28046290..c0546c86 100644 --- a/plugins/lttng-utils/debug-info/bin-info.c +++ b/plugins/lttng-utils/debug-info/bin-info.c @@ -1435,7 +1435,9 @@ error: * @param cu bt_dwarf_cu instance in which to look for the address * @param addr The address for which to look for * @param src_loc Out parameter, the source location (filename and - * line number) for the address + * line number) for the address. Set only if the address + * is found and resolved successfully + * * @returns 0 on success, -1 on failure */ static @@ -1460,7 +1462,8 @@ int bin_info_lookup_cu_src_loc_no_inl(struct bt_dwarf_cu *cu, uint64_t addr, line = dwarf_getsrc_die(die->dwarf_die, addr); if (!line) { - goto error; + /* This is not an error. The caller needs to keep looking. */ + goto end; } ret = dwarf_lineaddr(line, &line_addr); @@ -1494,6 +1497,7 @@ int bin_info_lookup_cu_src_loc_no_inl(struct bt_dwarf_cu *cu, uint64_t addr, *src_loc = _src_loc; } +end: return 0; error: