Skip to content

Commit f043ab5

Browse files
committed
Merge pull request #219 from abrt/rhbz1191586_i386_vdso
unwind: include filename for VDSOs
2 parents d918552 + 1436570 commit f043ab5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/core_unwind.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,12 @@ resolve_frame(Dwfl *dwfl, Dwarf_Addr ip, bool minus_one)
294294
sr_bin2hex(frame->build_id, (const char *)build_id_bits, ret);
295295
}
296296

297-
if (dwfl_module_info(mod, NULL, &start, NULL, NULL, NULL,
298-
&filename, NULL) != NULL)
297+
char *modname = dwfl_module_info(mod, NULL, &start, NULL, NULL, NULL,
298+
&filename, NULL);
299+
if (modname)
299300
{
300301
frame->build_id_offset = ip - start;
301-
if (filename)
302-
frame->file_name = sr_strdup(filename);
302+
frame->file_name = filename ? sr_strdup(filename) : sr_strdup(modname);
303303
}
304304

305305
funcname = dwfl_module_addrname(mod, (GElf_Addr)ip_adjusted);

0 commit comments

Comments
 (0)