@@ -363,7 +363,7 @@ static int read_unwind_spec_debug_frame(struct dso *dso,
363363 struct machine * machine , u64 * offset )
364364{
365365 int fd ;
366- u64 ofs = dso -> data . debug_frame_offset ;
366+ u64 ofs = dso__data ( dso ) -> debug_frame_offset ;
367367
368368 /* debug_frame can reside in:
369369 * - dso
@@ -379,7 +379,7 @@ static int read_unwind_spec_debug_frame(struct dso *dso,
379379 }
380380
381381 if (ofs <= 0 ) {
382- fd = open (dso -> symsrc_filename , O_RDONLY );
382+ fd = open (dso__symsrc_filename ( dso ) , O_RDONLY );
383383 if (fd >= 0 ) {
384384 ofs = elf_section_offset (fd , ".debug_frame" );
385385 close (fd );
@@ -407,21 +407,21 @@ static int read_unwind_spec_debug_frame(struct dso *dso,
407407 }
408408 }
409409 if (ofs > 0 ) {
410- if (dso -> symsrc_filename != NULL ) {
410+ if (dso__symsrc_filename ( dso ) != NULL ) {
411411 pr_warning (
412412 "%s: overwrite symsrc(%s,%s)\n" ,
413413 __func__ ,
414- dso -> symsrc_filename ,
414+ dso__symsrc_filename ( dso ) ,
415415 debuglink );
416- zfree (& dso -> symsrc_filename );
416+ zfree (& dso__symsrc_filename ( dso ) );
417417 }
418- dso -> symsrc_filename = debuglink ;
418+ dso__set_symsrc_filename ( dso , debuglink ) ;
419419 } else {
420420 free (debuglink );
421421 }
422422 }
423423
424- dso -> data . debug_frame_offset = ofs ;
424+ dso__data ( dso ) -> debug_frame_offset = ofs ;
425425 }
426426
427427 * offset = ofs ;
@@ -486,15 +486,15 @@ find_proc_info(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
486486 if (ret < 0 &&
487487 !read_unwind_spec_debug_frame (dso , ui -> machine , & segbase )) {
488488 int fd = dso__data_get_fd (dso , ui -> machine );
489- int is_exec = elf_is_exec (fd , dso -> name );
489+ int is_exec = elf_is_exec (fd , dso__name ( dso ) );
490490 u64 start = map__start (map );
491491 unw_word_t base = is_exec ? 0 : start ;
492492 const char * symfile ;
493493
494494 if (fd >= 0 )
495495 dso__data_put_fd (dso );
496496
497- symfile = dso -> symsrc_filename ?: dso -> name ;
497+ symfile = dso__symsrc_filename ( dso ) ?: dso__name ( dso ) ;
498498
499499 memset (& di , 0 , sizeof (di ));
500500 if (dwarf_find_debug_frame (0 , & di , ip , base , symfile , start , map__end (map )))
0 commit comments