dwarf_srclines_dealloc_b dwarf_srclines_from_linecontext dwarf_srclines_files_indexes dwarf_srclines_files_data_b dwarf_srclines_two_level_from_linecontext
*/
{
int sres = 0;
&table_count,&line_context,error);
if (sres != DW_DLV_OK) {
return sres;
}
if (table_count == 0) {
linebuf = 0;
line_context = 0;
} else if (table_count == 1) {
&baseindex,&file_count,&endindex,error);
if (sres != DW_DLV_OK) {
return sres;
}
for (i = baseindex; i < endindex; i++) {
int vres = 0;
const char *name = 0;
&name,&dirindex, &modtime,&flength,
&md5data,error);
if (vres != DW_DLV_OK) {
return vres;
}
}
&linebuf,&linecount,
error);
if (sres != DW_DLV_OK) {
return sres;
}
for (i = 0; i < linecount; ++i) {
}
linebuf = 0;
line_context = 0;
linecount = 0;
} else {
&linebuf,&linecount,
&linebuf_actuals,&linecount_actuals,
error);
if (sres == DW_DLV_OK) {
for (i = 0; i < linecount; ++i) {
}
for (i = 0; i < linecount_actuals; ++i) {
}
line_context = 0;
linebuf = 0;
linecount = 0;
linebuf_actuals = 0;
linecount_actuals = 0;
} else if (sres == DW_DLV_NO_ENTRY) {
line_context = 0;
linebuf = 0;
linecount = 0;
linebuf_actuals = 0;
linecount_actuals = 0;
} else {
line_context = 0;
linebuf = 0;
linecount = 0;
linebuf_actuals = 0;
linecount_actuals = 0;
}
}
return DW_DLV_OK;
}
struct Dwarf_Die_s * Dwarf_Die
Definition: libdwarf.h:608
struct Dwarf_Line_s * Dwarf_Line
Definition: libdwarf.h:619
struct Dwarf_Error_s * Dwarf_Error
Definition: libdwarf.h:597
struct Dwarf_Line_Context_s * Dwarf_Line_Context
Definition: libdwarf.h:697
unsigned char Dwarf_Small
Definition: libdwarf.h:204
signed long long Dwarf_Signed
Definition: libdwarf.h:197
unsigned long long Dwarf_Unsigned
Definition: libdwarf.h:196
int dwarf_srclines_files_indexes(Dwarf_Line_Context dw_context, Dwarf_Signed *dw_baseindex, Dwarf_Signed *dw_count, Dwarf_Signed *dw_endindex, Dwarf_Error *dw_error)
Return values easing indexing line table file numbers. Count is the real count of files array entries...
int dwarf_srclines_two_level_from_linecontext(Dwarf_Line_Context dw_context, Dwarf_Line **dw_linebuf, Dwarf_Signed *dw_linecount, Dwarf_Line **dw_linebuf_actuals, Dwarf_Signed *dw_linecount_actuals, Dwarf_Error *dw_error)
Returns line table counts and data.
void dwarf_srclines_dealloc_b(Dwarf_Line_Context dw_context)
Dealloc the memory allocated by dwarf_srclines_b.
int dwarf_srclines_b(Dwarf_Die dw_cudie, Dwarf_Unsigned *dw_version_out, Dwarf_Small *dw_table_count, Dwarf_Line_Context *dw_linecontext, Dwarf_Error *dw_error)
Initialize Dwarf_Line_Context for line table access.
int dwarf_srclines_from_linecontext(Dwarf_Line_Context dw_linecontext, Dwarf_Line **dw_linebuf, Dwarf_Signed *dw_linecount, Dwarf_Error *dw_error)
Access source lines from line context.
int dwarf_srclines_files_data_b(Dwarf_Line_Context dw_context, Dwarf_Signed dw_index_in, const char **dw_name, Dwarf_Unsigned *dw_directory_index, Dwarf_Unsigned *dw_last_mod_time, Dwarf_Unsigned *dw_file_length, Dwarf_Form_Data16 **dw_md5ptr, Dwarf_Error *dw_error)
Access data for each line table file.