This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

creating dwarf from scratch using dwarf_edit?


Hi,

I was experimenting with creating a dwarf file from scrach using 
dwarf_edit, but gut stuck when I was unable to figure out how to add an 
attribute to a die.  So is that a use case that we don't care about, or 
are the bits here and I just fail to see them?

Snippet:

   dwarf_edit tst;
   dwarf_edit::debug_info_entry cudie (DW_TAG_compile_unit);
   dwarf_edit::compile_unit u (cudie);

   dwarf_edit::debug_info_entry x (DW_TAG_base_type);
   x.attributes () [DW_AT_name] = /* now what ? */;

   tst.compile_units ().push_back (u);

PM

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]