[Ups-cvs] ups/ups ao_dwfsyms.c,1.26,1.27
Brought to you by:
ianedwards
From: Tom H. <th...@us...> - 2008-07-07 10:34:53
|
Update of /cvsroot/ups/ups/ups In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv14716/ups Modified Files: ao_dwfsyms.c Log Message: Cope with types that have no name. Index: ao_dwfsyms.c =================================================================== RCS file: /cvsroot/ups/ups/ups/ao_dwfsyms.c,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ao_dwfsyms.c 14 Feb 2007 14:59:46 -0000 1.26 --- ao_dwfsyms.c 7 Jul 2008 10:34:48 -0000 1.27 *************** *** 648,652 **** * Extract the infomation and make a type. */ - name = dwf_get_string(dbg, ap, die, DW_AT_name); nbytes = dwf_get_number(dbg, die, DW_AT_byte_size); typecode = dwf_get_typecode(dbg, die); --- 648,651 ---- *************** *** 654,658 **** type = ci_make_type(ap, typecode); type->ty_size = nbytes; ! type->ty_name = name; type->ty_lexinfo = dwf_make_lexinfo(dbg, die, ap, stf); --- 653,658 ---- type = ci_make_type(ap, typecode); type->ty_size = nbytes; ! if (dwf_has_attribute(dbg, die, DW_AT_name)) ! type->ty_name = dwf_get_string(dbg, ap, die, DW_AT_name); type->ty_lexinfo = dwf_make_lexinfo(dbg, die, ap, stf); |