@@ -1405,6 +1405,10 @@ typedef struct Dwarf_Rnglists_Head_s * Dwarf_Rnglists_Head;
1405
1405
/*! @brief Initialization based on path, the most common
1406
1406
initialization.
1407
1407
1408
+ On a Mach-O universal binary this function can
1409
+ only return information about the first (zero index)
1410
+ object in the universal binary.
1411
+
1408
1412
@param dw_path
1409
1413
Pass in the path to the object file to open.
1410
1414
@param dw_true_path_out_buffer
@@ -1450,6 +1454,8 @@ typedef struct Dwarf_Rnglists_Head_s * Dwarf_Rnglists_Head;
1450
1454
@see dwarf_init_path_dl dwarf_init_b
1451
1455
@see exampleinit
1452
1456
*/
1457
+
1458
+
1453
1459
DW_API int dwarf_init_path (const char * dw_path ,
1454
1460
char * dw_true_path_out_buffer ,
1455
1461
unsigned int dw_true_path_bufferlen ,
@@ -1459,6 +1465,18 @@ DW_API int dwarf_init_path(const char * dw_path,
1459
1465
Dwarf_Debug * dw_dbg ,
1460
1466
Dwarf_Error * dw_error );
1461
1467
1468
+ /*! @brief Initialization based on path
1469
+
1470
+ This identical to dwarf_init_path() except that it
1471
+ adds a new argument, dw_universalnumber,
1472
+ with which you can specify which object in
1473
+ a Mach-O universal binary you wish to open.
1474
+
1475
+ It is always safe and appropriate to pass
1476
+ zero as the dw_universalnumber.
1477
+ Elf and PE and (non-universal) Mach-O object
1478
+ files ignore the value of dw_universalnumber.
1479
+ */
1462
1480
DW_API int dwarf_init_path_a (const char * dw_path ,
1463
1481
char * dw_true_path_out_buffer ,
1464
1482
unsigned int dw_true_path_bufferlen ,
@@ -1537,6 +1555,22 @@ DW_API int dwarf_init_path_dl(const char * dw_path,
1537
1555
unsigned char * dw_dl_path_source ,
1538
1556
Dwarf_Error * dw_error );
1539
1557
1558
+ /*! @brief Initialization based on path with debuglink
1559
+
1560
+ This identical to dwarf_init_path_dl() except that it
1561
+ adds a new argument, dw_universalnumber,
1562
+ with which you can specify which object in
1563
+ a Mach-O universal binary you wish to open.
1564
+
1565
+ It is always safe and appropriate to pass
1566
+ zero as the dw_universalnumber.
1567
+ Elf and PE and (non-universal) Mach-O object
1568
+ files ignore the value of dw_universalnumber.
1569
+
1570
+ Mach-O objects do not contain or use debuglink
1571
+ data.
1572
+ */
1573
+
1540
1574
DW_API int dwarf_init_path_dl_a (const char * dw_path ,
1541
1575
char * dw_true_path_out_buffer ,
1542
1576
unsigned int dw_true_path_bufferlen ,
0 commit comments