return NULL;
}
- p_val = p_binfo->dwarf.p_infoval;
- for( i_cnt = 0; i_cnt < p_arvnow->i_items; i_cnt++, p_val++ ) {
- if( DW_AT_name == p_arvnow->dw_attribute[ i_cnt ] ) {
- pstr_srcpath = p_val->value.pstr_value;
- break;
- }
- }
-
+ p_val = DWARF_AttrForm_GetDIEValue( p_binfo, DW_AT_name );
+ if( NULL != p_val ) { pstr_srcpath = p_val->value.pstr_value; }
if( NULL == pstr_srcpath ) {
return NULL;
}
p_srcfile->dwarf.i_abbrevs = i_abbrevs;
p_srcfile->dwarf.p_abbrev = p_abbrev;
- printf( "\n SrcFile: %s, Orig.Path: %s\n",
- p_srcfile->str_filename, p_srcfile->str_srcpath );
+ //printf( "\n SrcFile: %s, Orig.Path: %s\n", p_srcfile->str_filename, p_srcfile->str_srcpath );
}
-
+/*
printf( " size: %ld, ver:%d, abbrev off.:%ld, addr.size: %d\n",
t_cuheader.qw_unitsize,
t_cuheader.w_version,
t_cuheader.qw_abbrev_offset,
t_cuheader.b_pointersize);
+*/
// Read & Process DWARF info TAG ---
i_childlv = 0;