libdwarf: Reading .debug_weaknames (nonstandard)

libdwarf

Loading...
Searching...
No Matches
Reading .debug_weaknames (nonstandard)

Example. weaknames was IRIX/MIPS only.

Example. weaknames was IRIX/MIPS only.

This section is an SGI/MIPS extension, not created by modern compilers.

*/
int exampleh(Dwarf_Debug dbg,Dwarf_Error *error)
{
Dwarf_Signed count = 0;
Dwarf_Global *weaks = 0;
Dwarf_Signed i = 0;
int res = 0;
res = dwarf_globals_by_type(dbg,DW_GL_WEAKS,
&weaks,&count,error);
if (res != DW_DLV_OK) {
return res;
}
for (i = 0; i < count; ++i) {
/* use weaks[i]
Dwarf_Global
struct Dwarf_Global_s * Dwarf_Global
Definition libdwarf.h:644
Dwarf_Error
struct Dwarf_Error_s * Dwarf_Error
Definition libdwarf.h:611
Dwarf_Debug
struct Dwarf_Debug_s * Dwarf_Debug
Definition libdwarf.h:617
Dwarf_Signed
signed long long Dwarf_Signed
Definition libdwarf.h:197
dwarf_globals_by_type
DW_API int dwarf_globals_by_type(Dwarf_Debug dw_dbg, int dw_requested_section, Dwarf_Global **dw_contents, Dwarf_Signed *dw_count, Dwarf_Error *dw_error)
Allocate Any Fast Access DWARF2-DWARF4.