This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: RFC: Support DW_TAG_entry_point


>>>>> "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


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