File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -960,7 +960,7 @@ process_one_file(
960
960
}
961
961
printf ("This is a Mach-O Universal Binary with %"
962
962
DW_PR_DUu " %s. This is object %"
963
- DW_PR_DUu "\n" ,
963
+ DW_PR_DUu "\n" ,
964
964
count ,name ,index );
965
965
}
966
966
}
@@ -990,6 +990,22 @@ process_one_file(
990
990
"dwarf_init_path on tied_file" ,
991
991
dres , onef_err );
992
992
}
993
+ {
994
+ Dwarf_Unsigned index = 0 ;
995
+ Dwarf_Unsigned count = 0 ;
996
+ dres = dwarf_get_universalbinary_count (dbg ,& index ,& count );
997
+ if (dres == DW_DLV_OK ) {
998
+ const char * name = "object" ;
999
+ if (count != 1 ) {
1000
+ name = "objects" ;
1001
+ }
1002
+ printf ("The tied-file is a Mach-O Universal Binary "
1003
+ "with %"
1004
+ DW_PR_DUu " %s. This is object %"
1005
+ DW_PR_DUu "\n" ,
1006
+ count ,name ,index );
1007
+ }
1008
+ }
993
1009
}
994
1010
995
1011
memset (& printfcallbackdata ,0 ,sizeof (printfcallbackdata ));
You can’t perform that action at this time.
0 commit comments