This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Support DW_TAG_entry_point
- From: Tom Tromey <tromey at redhat dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: GDB <gdb-patches at sourceware dot org>
- Date: Wed, 22 Apr 2009 15:13:27 -0600
- Subject: Re: RFC: Support DW_TAG_entry_point
- References: <20090320220041.GA26894@lucon.org>
- Reply-to: tromey at redhat dot com
>>>>> "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