[Dwarf-discuss] regarding listing class members
gireesh subramaniam
gireeshin@gmail.com
Wed Mar 7 17:00:37 GMT 2007
hello all,
i read the information in section 2.3 of the DWARF document,but however
contrary to the notion of the members of a class forming a graph ,i am not
able to find the exact link between the class ,the supposed owner,and the
members.Here i have included one part of the dwarfdump for asource file
in this file:
CLASS name:base
member :int i
i have pasted the .debug_info sections of the dwarfdump corresponding to
this.
<1><5b>: Abbrev Number: 2 (DW_TAG_structure_type)
DW_AT_sibling : <f3>
DW_AT_name : base
DW_AT_byte_size : 4
DW_AT_decl_file : 1
DW_AT_decl_line : 3
<2><68>: Abbrev Number: 3 (DW_TAG_member)
DW_AT_name : i
DW_AT_decl_file : 1
DW_AT_decl_line : 5
DW_AT_type : <f3>
DW_AT_data_member_location: 2 byte block: 23 0 (DW_OP_plus_uconst:
0)
DW_AT_accessibility: 3 (private)
Before i conclude,i would like to thank everyone those who have taken the
pain to reply,also i am able to see that the data members of the class are
in consecutive locations in the info section,so to list all the members
should i use only this piece of information or is there any other efficient
way to achieve this.
regards and thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20070307/e0f0340f/attachment.htm>
More information about the Dwarf-discuss
mailing list