File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2312,7 +2312,7 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
23122312{
23132313 struct callchain_cursor * cursor = arg ;
23142314 const char * srcline = NULL ;
2315- u64 addr ;
2315+ u64 addr = entry -> ip ;
23162316
23172317 if (symbol_conf .hide_unresolved && entry -> sym == NULL )
23182318 return 0 ;
@@ -2324,7 +2324,8 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
23242324 * Convert entry->ip from a virtual address to an offset in
23252325 * its corresponding binary.
23262326 */
2327- addr = map__map_ip (entry -> map , entry -> ip );
2327+ if (entry -> map )
2328+ addr = map__map_ip (entry -> map , entry -> ip );
23282329
23292330 srcline = callchain_srcline (entry -> map , entry -> sym , addr );
23302331 return callchain_cursor_append (cursor , entry -> ip ,
You can’t perform that action at this time.
0 commit comments