projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display binary location even if source and symbol lookups fail
[babeltrace.git]
/
lib
/
debuginfo.c
diff --git
a/lib/debuginfo.c
b/lib/debuginfo.c
index 229307919f01ddd8e1d448b4c91b5ddbdc05c7e3..20c6fa013affa0ade8482bcdda17201f757d7771 100644
(file)
--- a/
lib/debuginfo.c
+++ b/
lib/debuginfo.c
@@
-111,13
+111,11
@@
struct debug_info_source *debug_info_source_create_from_bin(struct bin_info *bin
goto error;
}
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);
/* 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) {
}
if (src_loc) {
This page took
0.025106 seconds
and
4
git commands to generate.