@@ -1405,6 +1405,10 @@ typedef struct Dwarf_Rnglists_Head_s * Dwarf_Rnglists_Head;
14051405/*! @brief Initialization based on path, the most common
14061406 initialization.
14071407
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+
14081412 @param dw_path
14091413 Pass in the path to the object file to open.
14101414 @param dw_true_path_out_buffer
@@ -1450,6 +1454,8 @@ typedef struct Dwarf_Rnglists_Head_s * Dwarf_Rnglists_Head;
14501454 @see dwarf_init_path_dl dwarf_init_b
14511455 @see exampleinit
14521456*/
1457+
1458+
14531459DW_API int dwarf_init_path (const char * dw_path ,
14541460 char * dw_true_path_out_buffer ,
14551461 unsigned int dw_true_path_bufferlen ,
@@ -1459,6 +1465,18 @@ DW_API int dwarf_init_path(const char * dw_path,
14591465 Dwarf_Debug * dw_dbg ,
14601466 Dwarf_Error * dw_error );
14611467
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+ */
14621480DW_API int dwarf_init_path_a (const char * dw_path ,
14631481 char * dw_true_path_out_buffer ,
14641482 unsigned int dw_true_path_bufferlen ,
@@ -1537,6 +1555,22 @@ DW_API int dwarf_init_path_dl(const char * dw_path,
15371555 unsigned char * dw_dl_path_source ,
15381556 Dwarf_Error * dw_error );
15391557
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+
15401574DW_API int dwarf_init_path_dl_a (const char * dw_path ,
15411575 char * dw_true_path_out_buffer ,
15421576 unsigned int dw_true_path_bufferlen ,
0 commit comments