This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: Support DW_TAG_entry_point
On Mon, Mar 23, 2009 at 11:14 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "H.J." == H J Lu <hjl.tools@gmail.com> writes:
>
> Tom> Yes. ?A rationale for the patch would also be helpful, at least to me.
>
> H.J.> DW_TAG_entry_point may be used by Fortran compiler. But gcc
> H.J.> doesn't use it. ?I guess one reason is gdb doesn't support it. Is
> H.J.> this good enough?
>
> Yeah. ?You also need that ChangeLog entry though...
Here is ChangeLog entry. OK to install?
Thanks.
H.J.
---
2009-03-23 H.J. Lu <hongjiu.lu@intel.com>
* dwarf2read.c (scan_partial_symbols): Make a recursive call
if a DIE has children. Handle DW_TAG_entry_point.
(load_partial_dies): Don't skip DW_TAG_entry_point. Follow
children of DW_TAG_subprogram if not C.
(add_partial_symbol): Handle DW_TAG_entry_point.
(process_die): Likewise.
(dwarf2_get_pc_bounds): Likewise.
(get_scope_pc_bounds): Likewise.
(fixup_partial_die): Likewise.
(new_symbol): Likewise.
(read_type_die): Likewise.