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)
2312
2312
{
2313
2313
struct callchain_cursor * cursor = arg ;
2314
2314
const char * srcline = NULL ;
2315
- u64 addr ;
2315
+ u64 addr = entry -> ip ;
2316
2316
2317
2317
if (symbol_conf .hide_unresolved && entry -> sym == NULL )
2318
2318
return 0 ;
@@ -2324,7 +2324,8 @@ static int unwind_entry(struct unwind_entry *entry, void *arg)
2324
2324
* Convert entry->ip from a virtual address to an offset in
2325
2325
* its corresponding binary.
2326
2326
*/
2327
- addr = map__map_ip (entry -> map , entry -> ip );
2327
+ if (entry -> map )
2328
+ addr = map__map_ip (entry -> map , entry -> ip );
2328
2329
2329
2330
srcline = callchain_srcline (entry -> map , entry -> sym , addr );
2330
2331
return callchain_cursor_append (cursor , entry -> ip ,
You can’t perform that action at this time.
0 commit comments