RFC: Support DW_TAG_entry_point
Tom Tromey
tromey@redhat.com
Wed Apr 22 21:13:00 GMT 2009
>>>>> "HJ" == H J Lu <hongjiu.lu@intel.com> writes:
HJ> I have a patch to support DW_TAG_entry_point.
I don't really understand most of this patch; perhaps someone more
familiar with dwarf2read.c could review it.
However:
HJ> + /* A DW_TAG_subprogram DIE may have DW_TAG_entry_point DIEs
HJ> + as children. */
HJ> + if (pdi->tag == DW_TAG_subprogram
HJ> + && pdi->has_children
HJ> + && pdi->die_child
HJ> + && pdi->die_child->tag == DW_TAG_entry_point)
HJ> + scan_partial_symbols (pdi->die_child, lowpc, highpc, cu);
This looks strange to me. IIUC, there's no requirement that
DW_TAG_entry_point be the first child.
Tom
More information about the Gdb-patches
mailing list